Arne Döring
39ad3a0da6
fix #9726 ( #9765 )
2018-11-20 13:12:47 +01:00
Arne Döring
1e08fff2d5
bitsize respected in size calculation. ( #9756 )
2018-11-19 13:48:40 +01:00
Araq
2418d0cac5
fixes #9743
2018-11-19 11:28:06 +01:00
Randy Smith
6c7abe6e5b
Fixes #9671 ( #9750 )
2018-11-19 09:22:21 +01:00
cooldome
9b9f5dee0b
Fixes discard bug in cpp codegen ( #9747 ) [backport]
...
Fixes discard bug in cpp codegen
2018-11-19 08:44:49 +01:00
Yuriy Glukhov
5a2290f788
Fixed yield in nkObjConstr. Fixes #9694 [backport] ( #9744 )
...
* Fixed yield in nkObjConstr. Fixes #9694
* Separate expr lowering from state splitting, introduce a clear lowering internal error
2018-11-18 23:09:33 +01:00
Arne Döring
5dfcc4e91c
make tsizeof run on C++ backend ( #9734 )
2018-11-18 14:36:20 +01:00
Araq
6279b0587a
make tests green again
2018-11-16 19:54:49 +01:00
Araq
3f6168b337
removes deprecated T/P types
2018-11-16 13:27:56 +01:00
Araq
9a05fd9dcf
disable some tests for the C++ target; refs #7870
2018-11-15 15:10:50 +01:00
cooldome
c5c4da4f3c
Converter bug fixes ( #9700 )
...
* Fixes #9698
* Fixes #9699
2018-11-15 13:14:48 +01:00
cooldome
8c1083d3b7
Of operator in vm fixes [backport] ( #9717 )
...
* fixes #9701
* fixes #9702
* optimize of statement to bool
2018-11-15 13:03:42 +01:00
Timothee Cour
b5448bf25c
fix #9647 tmpl=>nimf ( #9658 )
2018-11-14 08:27:48 +01:00
Dominik Picheta
d89c815c41
Disable tasyncssl on Windows to fix CI
...
Workarounds #9689
2018-11-13 21:14:57 +00:00
Dominik Picheta
679a52f53c
Merge pull request #9687 from narimiran/fix-7192
...
export `asyncdispatch.callSoon` (fixes #7192 )
2018-11-13 21:12:19 +00:00
narimiran
c2b16b46ec
export asyncdispatch.callSoon ( fixes #7192 )
2018-11-12 15:40:33 +01:00
Lolo Iccl
37d88e5168
Add proc [](n: NimNode, s: HSlice[T, U]): seq[NimNode] to macros ( #7735 )
...
fixes #7670 .
2018-11-10 14:10:50 +01:00
Miran
964b5dac7c
complete future only once in or ( fixes #8982 ) ( #9632 )
...
* complete future only once in `or`
Analogous to `and`.
Credits to @k0zmo for proposing the solution.
* add test
2018-11-09 22:45:17 +00:00
Andreas Rumpf
8d850f7a69
deprecated ospaths ( #9665 )
2018-11-09 16:36:49 +01:00
Arne Döring
573d02760e
newLit works on enum ( #9662 )
...
* newLit works on enum
* remove debugging echo
2018-11-09 12:15:00 +01:00
Andreas Rumpf
c0fc2f5726
fixes #9619
2018-11-09 09:03:28 +01:00
Arne Döring
fdd09ad090
add illegal discard test
2018-11-08 22:28:29 +01:00
Arne Döring
77a0f3768b
adopt tests
2018-11-08 22:28:29 +01:00
Andreas Rumpf
05683e3aab
fixes #9633
2018-11-08 09:15:15 +01:00
Dominik Picheta
d0a02fe66b
Merge pull request #9642 from narimiran/callback-order
...
keep the order of the callbacks
2018-11-07 23:46:29 +00:00
Andreas Rumpf
8a357c270b
parser change: 'not' is always a unary operator; fixes #9574
2018-11-07 21:17:52 +01:00
narimiran
15c66a06f9
keep the order of the callbacks
2018-11-07 15:22:02 +01:00
jcosborn
fc740c54ec
fixes #9600 ( #9601 )
2018-11-07 08:40:00 +01:00
pgkos
b9cdad7497
times - remove unneeded negative sign when parsing formats z and zz ( #9631 )
...
* fix wrong utcoffset sign for formats z and zz
* add tests for the timezone offset formats
2018-11-06 22:29:23 +01:00
Miran
66a76d3165
Merge tests into a larger file (part 8 of ∞) ( #9583 )
...
* merge tuple tests
* merge trmacros tests
* merge template tests
2018-11-06 18:33:58 +01:00
Araq
1fa22d4cfe
removed the undocumented #? strongSpaces parsing mode
2018-11-06 13:55:03 +01:00
Araq
e71410d74e
language cleanup: the .unchecked pragma is dead
2018-11-06 13:55:03 +01:00
skilchen
da178e4090
make mod on floats available in the VM ( #9591 )
...
* make `mod` on floats available in the VM
* add testcase
* removed no longer needed imports
2018-11-05 09:36:28 +01:00
Araq
2eff0ca2b8
added test case for #9594
2018-11-03 22:50:46 +01:00
Neelesh Chandola
2bc016b172
Add test for #6836 ( #9602 )
2018-11-02 13:17:57 +01:00
Alexandros Naskos
eb3c9e1d1c
Added "typeof" and "restrict" to special words. ( #9226 )
...
* Added "typeof" and "restrict" to special words.
* Added C and C++ reserved keyword as object field identifier test
2018-11-01 17:24:02 +01:00
PMunch
e9ed4dccb6
Quote do now works with result in block ( #7343 )
...
* Fix result not being able to use in quote do
This fixes the annoying issue of not be able to use result inside a
quote do block. It works by a simple trick. The quote do mechanic is
based on dynamically creating a template and immediately calling it with
the arguments found within the quote do block. Since this is called in
the scope of the macro the result variable is shadowed. This trick works
by changing all occurences of result (which shouldn't cause any issues
as result isn't used for anything else for the same reason) to another
name and then passing in an IdentNode with result as a named parameter
with that name.
Note that currently this just replaces it with a fixed named variable
"res" which should be changed to a non-colliding, dynamically created
name.
* Fix hard coded parameter "res" to anonymous symbol
This fixes the hard coded parameter "res" to be an anonymous symbol
instead so it won't collide with other parts of the argument list.
* Add test case for result in quote do block
A simple test case based on GitHub issue #7323 on how you can't put
result in a quote do block. This test verifies that it actually works
correctly now.
* Add test for explicit capturing of result
* Rebased against devel
2018-10-31 22:14:29 +01:00
Araq
7ae6b7e9a2
make more tests green for C++; refs #7870
2018-10-30 16:52:33 +01:00
Arne Döring
1ec5c6fdf5
Sizeof alignof fixes ( #9568 )
...
fixes #9545
2018-10-30 16:41:06 +01:00
Araq
432a4d1787
fixes #5549
2018-10-30 15:30:33 +01:00
rec
9899c4525c
Add parsing empty attribs to htmlparser ( #9559 )
2018-10-30 06:58:39 +01:00
jcosborn
69c0a9c6fb
getTypeImpl now returns pragmas for object types ( #9538 )
2018-10-30 06:41:12 +01:00
Ian
5ddeead29c
#9348 Merge some small test files ( #9561 )
...
* Consolidated types issue tests
* Consolidated vm issue tests
2018-10-30 06:30:39 +01:00
Miran
1b17c9f693
More descriptive names of test files ( #9531 )
...
* change generic `tissues` name to more specific
* change `tvarious` to more specific names
2018-10-29 17:07:27 +01:00
Arne Döring
5ebd111f7f
Merge pull request #9541 from narimiran/fix-6986
...
Closes #6986
2018-10-29 12:01:22 +01:00
rec
9fd0a71e4d
Make htmlparser parse unquoted attrib values ( #9537 )
...
Fixes #6154
2018-10-29 11:10:00 +01:00
cooldome
dfb8730f51
Implements #9434 . Minimal Stacktrace for Exceptions in release mode ( #9480 )
...
* Fixes #9434
2018-10-28 13:40:42 +01:00
Utwo
a68a4bfaf2
Remove install.txt and readme.txt ( #9521 )
...
* Remove install.txt and readme.txt
* Refactor tests that use readme.txt
* Tests open own source code
2018-10-28 13:36:52 +01:00
xzfc
95a60dc780
Fix strscans.scanp ( #9518 )
...
* strscans: fix typo
* strscans: fix #9240
* strscans: add tests
2018-10-28 13:35:30 +01:00
zah
ee54d6977b
Parse the usage of the SQL in operator properly ( #9527 )
...
Also adds a `treeRepr` renderer for the SQL nodes.
2018-10-28 13:34:57 +01:00