Ganesh Viswanathan
e07a256f74
Test case for #6483
2018-09-14 14:04:32 -05:00
genotrance
7af659cf59
Test case for #6163 ( #8960 )
...
* Test case for #6163
2018-09-14 17:09:16 +02:00
LemonBoy
382fe446c3
Merge pull request #8956 from genotrance/devel
...
Test cases for #6969 #7346 #7581
2018-09-12 20:59:01 +02:00
Ganesh Viswanathan
f4356d6115
Fix system.nim line number test case failure
2018-09-12 12:58:50 -05:00
Ganesh Viswanathan
9b2115558b
Test cases for #6969 #7346 #7581
2018-09-12 12:00:01 -05:00
Andreas Rumpf
8f046792cf
Merge pull request #8941 from timotheecour/pr_fix_8928
...
fix #8928 regression
2018-09-12 10:28:57 +02:00
Andreas Rumpf
132eb31e32
Merge pull request #8949 from nim-lang/araq-for-loop-expressions
...
For loop expressions
2018-09-12 10:27:54 +02:00
LemonBoy
b195204549
Fix add(string, cstring) when the lhs is null ( #8951 )
2018-09-12 10:10:00 +02:00
LemonBoy
87955eaf30
Fix concat behaviour for uninitialized strings ( #8950 )
2018-09-11 23:35:21 +02:00
Timothee Cour
72170b443d
add testcase
2018-09-11 11:52:51 -07:00
Timothee Cour
b5f463c3f6
fix #8928
2018-09-11 11:36:15 -07:00
LemonBoy
8670f4911b
Fix semantic pass with borrowed magic procs ( #8945 )
...
Reported by pqflx3 on the forum.
2018-09-11 20:32:25 +02:00
Andreas Rumpf
de02f5fa0a
add tcollect test for the new for-loops as expressions feature
2018-09-11 19:14:31 +02:00
Andreas Rumpf
84d122b5c8
extended system.type/typeof to support an upcoming 'collect' macro that works much better than sugar.lc
2018-09-11 19:02:05 +02:00
Andreas Rumpf
f7d1902043
fixes merge conflicts
2018-09-11 17:27:47 +02:00
LemonBoy
e7d4043406
Always emit hti object types if needed ( #8940 )
...
The compiler is now smart enough to emit types only if needed without
all the importc tricks. This also fixes a codegen bug where, if all the
stars align correctly, typeinfo doesn't include any definition of
`TNimType` but uses it.
Found by @skilchen in #8938
2018-09-11 17:03:21 +02:00
Andreas Rumpf
af94946517
Merge branch 'devel' of github.com:nim-lang/Nim into devel
2018-09-11 16:41:34 +02:00
LemonBoy
9ba80d2044
JS strings have no trailing zero anymore ( #8936 )
2018-09-11 11:45:02 +02:00
LemonBoy
7107ec05de
Narrowing casts are applied after every op if needed ( #8918 )
...
This way we make sure not to end up with weird values every now and
then.
Fixes #7300
Fixes #8909
2018-09-08 19:41:07 +02:00
LemonBoy
3f16711254
Fix insert/delete for JS ( #8915 )
...
Fixes #8914
2018-09-08 10:38:18 +02:00
LemonBoy
91b37311d9
Fix AST generation for case statements ( #8908 )
...
Fixes #7534
2018-09-07 21:07:06 +02:00
LemonBoy
eae3c305a7
Don't segfault if the line is empty ( #8906 )
2018-09-07 21:06:51 +02:00
LemonBoy
e69d8ec416
Fix type comparison in semConv ( #8907 )
...
Fixes #8905
2018-09-07 21:06:30 +02:00
LemonBoy
90025e242d
Minor fixes for asyncjs ( #8894 )
...
* Minor fixes for asyncjs
Mark internal procedures as used
Allow .async. for more node kinds
Make .async. work for nkStmtList
* Fix logic error in both the async macros
2018-09-07 16:42:38 +02:00
Yuriy Glukhov
1e6eca973d
Fixes #8243 ( #8904 )
2018-09-07 16:30:50 +02:00
LemonBoy
e81fe6d32f
Allow wCodegenDecl on lambdas ( #8892 )
2018-09-07 01:58:49 +02:00
LemonBoy
84eab97fed
Sync line generation between C and JS backends ( #8888 )
...
Fixes #7224
2018-09-07 01:56:36 +02:00
LemonBoy
af1e84f54d
Automatic deref for everything but pointers in asm/emit ( #8891 )
...
Fixes #7249
2018-09-07 01:54:59 +02:00
cooldome
c033ff990a
Renderer bug fixes ( #8804 )
...
Fixes #8763 : render bug: pure enums not handled correctly
Fixes #8762 : render bug: binary operators called with quotes rendered incorrectly
FIxes #8761 : render bug: inversion of operator priorities
2018-09-07 01:52:42 +02:00
LemonBoy
36e6ca16d1
Fix too broad generic match for toHex ( #8889 )
...
Fixes #8865
2018-09-05 20:57:50 +02:00
Vindaar
d34233b501
[DOC] fix typos in strscans documentation ( #8885 )
2018-09-05 14:57:36 +02:00
Andreas Rumpf
49708d9c25
fixes #3655
2018-09-05 08:47:39 +02:00
LemonBoy
4aba2981dd
Codegen fix for function pointers marked inline ( #8866 )
...
Fixes #5345
Fixes #5701
2018-09-04 15:28:14 +02:00
c-blake
cec89d8354
This has been unnecessary as long as rawNewObj has called zeroMem, ( #8867 )
...
and more recently indexing past the Nim-logical end has become
illegal making this line cause a crash.
2018-09-04 15:26:34 +02:00
Yuriy Glukhov
d2eea9e1c9
Fixes #8851 ( #8859 )
2018-09-04 08:18:11 +02:00
Dominik Picheta
e789acb59b
Merge pull request #8840 from pigmej/fix_with_timeout
...
Handle fut.failed in asyncdispatch.WithTimeout
2018-09-03 21:34:52 +01:00
Andreas Rumpf
e4be1cb814
system.compileDate and compileTime are in UTC; fixes #7305 ; docgen supports SOURCE_DATE_EPOCH, fixes #3113
2018-09-03 22:23:10 +02:00
Araq
b53531ee31
make 'koch web' work again
2018-09-03 20:02:59 +02:00
Araq
320582a55c
cleanup Nim's examples/ directory; closes #7725
2018-09-03 18:29:11 +02:00
LemonBoy
1a60ffcf1d
Correctly mangle this in the JS backend ( #8853 )
...
As shown in pragmagic/karax#67 using `this` as parameter name made the
codegen output wrong code (and the user didn't notice the errors in the
browser console).
2018-09-03 17:51:30 +02:00
Araq
0694c9080f
fixes #8043
2018-09-03 16:07:44 +02:00
cooldome
e63c66b810
Add sym owner to macros ( #8253 )
2018-09-03 13:25:59 +02:00
Araq
1abef2dc59
improve the error message for 'addQuitProc' etc; fixes #5794
2018-09-03 12:27:23 +02:00
Araq
6261309d1b
document the fact that --define symbols are completely case insensitive; closes #7506
2018-09-03 12:09:14 +02:00
Araq
4e05bca96f
manual: add a note about the terminating zero for strings; refs #5596
2018-09-03 12:06:34 +02:00
Araq
d1e3a7c827
document Nim's signal handling briefly; closes #8224
2018-09-03 12:02:56 +02:00
Araq
4b823b2825
manual: more documentation for the 'using' statement; closes #8565
2018-09-03 11:51:15 +02:00
Araq
602aeef4d4
manual: document the 'unsafeAddr' operator; closes #5038
2018-09-03 11:40:14 +02:00
Araq
4993274f2f
document 'var T' and 'typedesc' restriction in generics; closes #1156
2018-09-03 11:38:15 +02:00
Araq
47cbe0e54d
fixes #8852
2018-09-03 11:19:18 +02:00