Tanguy
f2bbff989f
Fix nested finally handling in closureiters [backport] ( #19933 )
...
* Fix nested finally handling in closureiters
* Fix CI
* review comment
* third time the charm
* Update compiler/closureiters.nim
Co-authored-by: Dominik Picheta <dominikpicheta@googlemail.com >
Co-authored-by: Dominik Picheta <dominikpicheta@googlemail.com >
(cherry picked from commit fb5fbf1e08 )
2022-07-18 17:16:06 +02:00
Andreas Rumpf
7ef706fef9
fixes #15360 [backport:1.2] ( #15378 )
...
(cherry picked from commit c2434d939e )
2020-09-21 18:19:13 +02:00
Andreas Rumpf
7ee08b8cf6
Revert "fix #13417 ( #13712 )" ( #13728 )
...
This reverts commit a5f02cac85 .
2020-03-23 09:57:17 +01:00
Arne Döring
a5f02cac85
fix #13417 ( #13712 )
...
* fix #13417
* add test
2020-03-22 20:03:51 +01:00
cooldome
b3176b8817
Attempt to finish off araq cpp exceptions ( #13695 )
...
* config update
* disable a questionable test
* remove c++ exception handling IDs, new impl doesn't require it anymore
* C++ based exceptions finally work
* fixes bootstrapping problem in C++ mode
* teach GCC it's 2020 now
* more bugfixes for C++ based exception handling
* apply cooldome's patch
* another attempt to enable C++11
* bug fix
Co-authored-by: Araq <rumpf_a@web.de >
Co-authored-by: cooldome <ariabushenko@bk.ru >
2020-03-19 20:38:25 +01:00
cooldome
613ea6e85e
fixes #12747 [backport] ( #13651 )
...
* fixes #12747
* fix tests
* improve code style
Co-authored-by: cooldome <ariabushenko@bk.ru >
2020-03-16 13:40:40 +01:00
cooldome
649bf326bf
fixes #12945 ( #12959 )
2019-12-24 20:34:14 +01:00
narimiran
c6a451c584
remove unused imports from tests
2019-11-06 14:35:45 +01:00
Araq
1794cd477d
expr -> untyped
2019-11-05 16:55:08 +01:00
Andreas Rumpf
3ba3307d61
remove deprecated procs ( #12535 )
2019-11-05 11:05:46 +01:00
Arne Döring
7cf3395d85
refactor illegal iterator assignment detection ( #12212 )
...
* refactor illegal iterator assignment detection
* delete crappy test
2019-10-11 08:43:58 +02:00
Yuriy Glukhov
60911304b4
Fixed yield in nnkChckRange ( #12160 )
2019-09-10 07:54:06 +02:00
cooldome
2b565aad89
Support iterators returning lent T ( #11938 )
...
* lent iterators
* rebase tests
* update changelog
* fix comments, more tests
2019-08-31 19:23:54 +02:00
narimiran
cb71564785
close #9827 by adding a test
2019-05-30 11:18:17 +02:00
narimiran
d1b4f1082e
close #5859 by adding a test
2019-05-29 13:37:55 +02:00
Ico Doornekamp
c01f7bfdaf
More specific error message for unsupported recursion in iterators ( #11283 )
2019-05-20 15:22:42 +02:00
Jasper Jenkins
6fc74cec55
Iterator fixes ( #11234 )
2019-05-13 20:50:21 +02:00
Jasper Jenkins
55a3b51e40
fix complex typdesc iterators
2019-05-08 14:29:42 -07:00
Arne Döring
9c3e23e075
Fix ..< iterator ( #11103 )
...
* add iterator overloads
* add test
2019-05-03 23:43:41 +02:00
Miran
e7878c0d08
add tests for recently closed issues ( #10722 )
2019-02-23 10:41:35 +01:00
Andreas Rumpf
06a8b48811
disable one more test for C++
2019-01-15 10:02:09 +01:00
Araq
3b783f7e13
Testament: refactoring; makes the test joiner green
2018-12-11 21:23:23 +01:00
Arne Döring
a5ecbf823f
lots of small changes
2018-12-11 21:23:22 +01:00
Arne Döring
2a4c09ff88
megatest can be executed
2018-12-11 21:23:21 +01:00
Arne Döring
1105d03644
require errormsg to be specified before file.
2018-12-11 21:23:21 +01:00
Yuriy Glukhov
410fd1deae
Fixes 9716 [backport] ( #9790 )
...
* reuse temporary variable
* fixes #9716 [backport]
* Declare local vars in safer place
2018-11-24 10:50:48 +01:00
Arne Döring
031bfdec6f
make run the default action of a test in tester
2018-11-23 11:58:28 +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
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
Araq
68c6d709d3
fixes #5519
2018-10-18 17:06:04 +02:00
Araq
4644484fb7
closes #5321
2018-10-18 17:00:23 +02:00
Miran
749dbce4c6
Merge tests into a larger file (part 5 of ∞) ( #9368 )
...
* merge magics
* merge metatype tests
* merge method tests
* merge objects tests
* change `import future` to `import sugar`
Nim in Action tests are left with `import future`, to ensure compatibility.
* merge overload tests
* merge proc tests
* merge procvar tests
* merge range tests
* merge seq tests
* merge sets tests
* remove wrong assert from `tsets3`
* fix `jsTests`
* better fix
2018-10-16 10:50:10 +02:00
Miran
3c9fcc4c30
Merge tests into a larger file (part 2 of ∞) ( #9335 )
...
* merge controlflow tests
* merge distinct tests
* merge enum tests
* merge fields tests
* merge implicit tests
* merge iter issues tests
2018-10-13 14:58:31 +02:00
Miran
462bff48b2
Iter test: closes #3819 ( #9272 )
2018-10-10 10:21:38 +02:00
Araq
6892ce336c
enhance iterator test case, ensure consistency between inline and closure iterators regarding parameter passing semantics
2018-09-22 13:29:00 +02:00
Andreas Rumpf
c554c2a581
closes #3837
2018-09-16 21:37:11 +02:00
Yuriy Glukhov
1e6eca973d
Fixes #8243 ( #8904 )
2018-09-07 16:30:50 +02:00
Yuriy Glukhov
d2eea9e1c9
Fixes #8851 ( #8859 )
2018-09-04 08:18:11 +02:00
LemonBoy
1fc3a68205
Access implicit result trough envP in closures ( #8471 )
...
Reuse the existing machinery, most of the changes are only needed to
handle the `result = result` node in nkReturnStmt produced by the
closure iterator transform.
Fixes #338
2018-07-30 08:34:15 +02:00
LemonBoy
64c84a7d11
Fix codegen for mInSet magic and empty sets ( #8140 )
...
Fixes #8041
2018-06-29 15:10:51 +02:00
Yuriy Glukhov
ec1d42b9f0
Cleanup copypaste leftover
2018-06-07 15:28:41 +03:00
Yuriy Glukhov
fef60716bf
Fixed yield in nkBlockExpr
2018-06-07 00:15:46 +03:00
Yuriy Glukhov
0ec2b33c50
Fixed yield in dotExpr and nkOfBranch lowering. Closes #7969 .
2018-06-06 16:35:40 +03:00
Yuriy Glukhov
14ca79fe1f
More elaborate nkStmtListExpr lowering
2018-05-09 22:25:28 +03:00
Yuriy Glukhov
ce63490928
Yield in try
2018-05-09 22:25:28 +03:00
Jacek Sieka
72dfe176f5
remove dead code elimination option ( #7669 )
2018-04-23 11:02:38 +02:00
Andreas Rumpf
b35ee82c48
fixes #6992
2018-02-25 17:28:47 +01:00
Andreas Rumpf
27e89eef6b
closes #3583
2017-09-01 16:22:23 +02:00
Andreas Rumpf
39b25cf4dc
simple closure iterator calling closure iterator works; refs #3837
2016-12-27 09:51:58 +01:00
Andreas Rumpf
9c9a7b6520
fixes #3221
2016-08-22 18:31:26 +02:00