flywind
c645dba038
fixes #14139 ( #15107 )
...
* fix #14139
* Update lib/pure/collections/heapqueue.nim
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
Co-authored-by: Clyybber <darkmine956@gmail.com >
2020-07-29 16:18:27 +02:00
Clyybber
2629d619a1
Fix forward declaration issues in template/macro context ( #15091 )
...
* Fix forward declaration issues in template/macro context
* Correct forward declaration resolving for overloads
* Remove old dead code
* WIP consistent gensym ids
* Minimize diff
* Remove obsoleted hack
* Add templInstCounter to give unique IDs to template instantiations
* Remove obsoleted code
* Eh, init in myOpen, not myProcess...
* Remove optNimV019
* Add testcase for #13484
2020-07-29 16:17:20 +02:00
Andreas Rumpf
a3a87cdb29
fixes #14616 [backport:1.2] ( #15109 )
2020-07-29 11:11:58 +02:00
Andreas Rumpf
86c9b78339
disable sink inference, only enable it for the stdlib. Reason: better source code compatibility ( #15105 )
2020-07-28 19:18:46 +02:00
Bung
e2b1491905
Fix #11352 strutil.insertSep() fails on negative numbers ( #15087 )
...
* fix #11352 strutil.insertSep handle negtive number
* test for #11352
* optimize
* not parts string var
* Update lib/pure/strutils.nim
Thanks!
Co-authored-by: alaviss <leorize+oss@disroot.org >
* need to be countdown
Co-authored-by: alaviss <leorize+oss@disroot.org >
2020-07-28 11:47:22 +02:00
Andreas Rumpf
e6f0d4a5a5
fixes #15076 ( #15095 )
2020-07-27 23:27:20 +02:00
Timothee Cour
377f716766
fix #14698 nkRecWhen caused internalAssert in semConstructFields when generic type not mentioned in fields ( #14709 )
...
* fix #14698 nkRecWhen caused internalAssert in semConstructFields when generic type not mentioned in fields
* address comment
* Update compiler/semtypinst.nim
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
2020-07-27 22:32:21 +02:00
Bung
cac09a43ae
fix #11354 jsgen not carefully handle genAddr with nkHiddenAddr,nkStm… ( #15078 )
...
* fix #11354 jsgen not carefully handle genAddr with nkHiddenAddr,nkStmtListExpr; genAsgn with lvalue tyVar and rvalue tyPtr
* correct logic
* add test for #11354
* handle nkHiddenAddr when n.len == 1
* Update compiler/jsgen.nim
* Update compiler/jsgen.nim
* Apply suggestions from code review
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
2020-07-27 21:13:49 +02:00
Araq
318f0992ea
fixes a closure iterator memory leaks, progress on #15076
2020-07-27 13:07:09 +02:00
Danil Yarantsev
4c43915b59
Add test-cases for #12576 and #12523 ( #15085 )
...
* Add a test-case for #12576
* Add a test-case for #12523
2020-07-27 13:01:50 +02:00
Andreas Rumpf
aae998feff
fixes #15038 [backport:1.2]
2020-07-26 01:16:06 +02:00
Andreas Rumpf
624762cfb7
fixes #15052
2020-07-26 01:16:06 +02:00
Danil Yarantsev
080bed8b6b
Add a test-case for #12990 ( #15072 )
...
* closes #12990
* Add a test-case for #12990
2020-07-25 20:35:20 +02:00
Andreas Rumpf
2aca748ddd
strict func: much better error messages ( #15068 )
...
* strict func: much better error messages
* documented the 'strict funcs' mode
2020-07-25 19:36:53 +02:00
Andreas Rumpf
7ca32c86bb
writing to a location counts as "side effect"; implements https://github.com/nim-lang/RFCs/issues/234 ( #15030 )
2020-07-25 15:14:28 +02:00
jcosborn
add003a074
fix assignment to converted concept type ( #15051 )
...
* fix assignment to converted concept type
* check for resolved concepts
* add extra test
2020-07-24 21:19:11 +02:00
Andreas Rumpf
c90c53e8bb
fixes #15044 [backport:1.2]
2020-07-23 20:27:17 +02:00
Danil Yarantsev
f25454d5c6
Add a testcase for #14480 . Fixes #14480 ( #15037 )
2020-07-22 09:52:38 +02:00
Andreas Rumpf
3a4e4cec4d
cursor inference bugfix
2020-07-20 18:37:14 +02:00
Andreas Rumpf
71dd5f85b9
'isolate' builtin; refs https://github.com/nim-lang/RFCs/issues/244 ( #15011 )
2020-07-20 07:50:19 +02:00
Dominik Picheta
1e3a0ef1e1
[Backport] Fixes callbacks being dropped on Linux/macOS/BSD. ( #15012 )
...
Fixes #15003 .
This is a serious bug which occurs when data cannot be read/sent
immediately and there are a bunch of other read/write events
pending. What happens is that the new events are dropped which
results in the case of the reported bug resulted in some data not
being sent (!).
2020-07-19 08:41:36 +02:00
Timothee Cour
169ca37d26
enable,document,test getImplTransformed, very useful for understanding how nim transforms code ( #14924 )
...
* enable,document,test getImplTransformed, very useful for understanding how nim transforms code
2020-07-18 10:49:36 +02:00
Tomohiro
c983466c15
Fix #14906 ( #14949 )
...
* Fix #14906 by wrapping outputStream with PipeOutStream
* Fix compile error when ./build_all.sh
* Use PipeOutStream on posix
* Fix compile error when build_all.sh
* Use ptr UncheckedArray
* Replace copyRefObj
* Remove tmp buffer from posPeekData
* Add more tests for outputStream
* Add comments about PipeOutStream.buffer
* Fix bug in posReadLine
* Move implementation of newPipeOutStream to streamwrapper module
2020-07-18 10:41:33 +02:00
Andreas Rumpf
d4984e069a
arc: cursors for simple for loop variables ( #15008 )
...
* arc: cursors for simple for loop variables
* merged devel
2020-07-17 15:24:36 +02:00
Clyybber
1355b461aa
Show that a variable is cursor in --expandArc ( #15002 )
2020-07-17 10:56:17 +02:00
Clyybber
282128ab66
Fix #14994 ( #14996 )
...
* Fix #14994
* Revert misplaced "optimization"
* Typo
2020-07-15 23:33:58 +02:00
Andreas Rumpf
c5358b0d4b
An optimizer for ARC ( #14962 )
...
* WIP: an optimizer for ARC
* do not optimize away destructors in 'finally' if unstructured control flow is involved
* optimized the optimizer
* minor code cleanup
* first steps to .cursor inference
* cursor inference: big steps to a working solution
* baby steps
* better .cursor inference
* new feature: expandArc for easy inspection of the AST after ARC transformations
* added topt_cursor test
* adapt tests
* cleanups, make tests green
* optimize common traversal patterns
* moved test case
* fixes .cursor inference so that npeg compiles once again
* cursor inference: more bugfixes
Co-authored-by: Clyybber <darkmine956@gmail.com >
2020-07-15 23:00:06 +02:00
Clyybber
813dd1b670
repr_v2 improvements ( #14992 )
...
* Support proc in arc repr
* Typo
* Improve repr for strings and chars
2020-07-15 22:04:15 +02:00
Clyybber
e057b1d839
Fix #14990 ( #14991 )
...
* Fix #14990
* Add testcase
2020-07-15 19:00:52 +02:00
Clyybber
08159733cd
Fix #14985 ( #14988 )
2020-07-15 11:34:10 +02:00
flywind
c5f64f101b
fix #13086 ( #14987 )
...
* fix #6608
* minor
* fix
* clean tests
* make testamnet happy
* again
* minor
* fix #13086
2020-07-15 03:46:17 -04:00
Clyybber
f2b041f168
Reenable a few tests
2020-07-14 19:50:42 +02:00
Clyybber
ddfb7d9877
Closes #10396
2020-07-14 19:50:42 +02:00
Clyybber
695a537c05
Closes #13253
2020-07-14 19:50:42 +02:00
Clyybber
03b0374e5c
Closes #8426
2020-07-14 19:50:42 +02:00
Juan Carlos
9465b5db44
Clean up macros ( #14959 )
2020-07-14 16:44:56 +02:00
Clyybber
2b0e336c97
injectdestructors fixes and refactor ( #14964 )
...
* injectdestructors fixes and refactor
* Tiny cleanup
* Refactor and expand testcase
* Closes #14902 by adding testcase
* Better naming
* Fix test failures
* Misc cleanup
* Add testcase for #14968
* Better approach; expand testcases
* Optimizations and fixes
* Add testcase
* typo
* Tiny cleanup
2020-07-14 14:15:39 +02:00
Timothee Cour
e07d661d16
fix #14475 ; unittest.require now works with nim c; require and check now works with -d:nodejs ( #14676 )
...
* fix #14475 ; make unittest work with -d:nodejs
* fixup
* fixup
* disable inim, delaunay which failed after unittest.require got fixed
* re-enable tests that have been fixed
2020-07-14 13:14:32 +02:00
jcosborn
ffaf4797be
add full tests from #9463 ( #14975 )
2020-07-14 11:24:17 +02:00
flywind
086efac49b
fix #6608 ( #14963 )
...
* fix #6608
2020-07-14 09:22:48 +02:00
flywind
9ec9a31f46
Fix #12759 ( #14967 )
...
* add testcase for #5926
* fix #12759
2020-07-12 03:31:03 -04:00
Clyybber
d409694b02
:D
2020-07-11 19:17:40 +02:00
flywind
21772b6419
add testcase for #5926 ( #14965 )
2020-07-11 17:09:41 +02:00
Clyybber
425972c4e8
Add testcase for some old fixed issues ( #14960 )
...
* Add testcase for #2703
* Add testcase for #2586
* Small fix
2020-07-10 19:21:50 +02:00
Clyybber
1850efbb6c
Add testcase for #14383 ( #14957 )
2020-07-10 18:10:32 +02:00
Clyybber
db6ffeba8e
Add testcase for #13815 ( #14956 )
2020-07-10 17:31:15 +02:00
Clyybber
0db32e9885
Add testcase for #12571 ( #14955 )
2020-07-10 17:13:37 +02:00
Clyybber
b21782a667
Add testcase for #4722 ( #14954 )
2020-07-10 17:02:49 +02:00
Miran
371b416ac8
fix #14912 , make --useVersion:1.0 work again ( #14945 )
...
* fix #14912 , make `--useVersion:1.0` work again
* a better fix
* add test
2020-07-10 16:44:12 +02:00
Andreas Rumpf
c38a459582
fixes #14925 ( #14947 )
2020-07-09 17:24:23 +02:00