ringabout
b7a275da1d
fixes regression; block can have arbitrary exit points; too hard for a simple analysis ( #23839 )
...
follow up https://github.com/nim-lang/Nim/pull/23681
ref https://forum.nim-lang.org/t/11987
ref https://github.com/nim-lang/Nim/issues/23836#issuecomment-2227267251
2024-07-16 07:37:06 +02:00
SirOlaf
9140f8e221
Fix endsInNoReturn for case statements ( #23009 )
...
While looking at the CI I noticed that there's a couple false positives
for `case` statements that cannot be checked for exhaustiveness since my
changes, this should resolve them.
---------
Co-authored-by: SirOlaf <>
2023-11-30 11:01:42 +01:00
SirOlaf
3b206ed988
Fix #22604 : Make endsInNoReturn traverse the tree ( #22612 )
...
* Rewrite endsInNoReturn
* Handle `try` stmt again and add tests
* Fix unreachable code warning
* Remove unreachable code in semexprs again
* Check `it.len` before skip
* Move import of assertions
---------
Co-authored-by: SirOlaf <>
2023-09-01 06:41:39 +02:00
ringabout
c5eb3fd4f0
fixes #9839 ; fixes noReturn pragma doesn't work for non-simple templates ( #21048 )
2022-12-08 10:37:02 +01:00
ringabout
ef29987781
An unnamed break in a block now gives an UnnamedBreak warning ( #20901 )
...
* unnamed break in the block now gives an error
* bootstrap
* fixes
* more fixes
* break with label
* label again
* one moee
* Delete test5.txt
* it now gives a UnnamedBreak warning
* change the URL of bump back to the original one
2022-11-24 07:31:47 +01:00
Clyybber
299ddda5f6
Make unreachable code a warning instead of an error ( #14816 )
...
* Make unreachable code a warning
* Adapt test
* Trigger CI
2020-06-29 08:49:53 +02:00
Araq
3b783f7e13
Testament: refactoring; makes the test joiner green
2018-12-11 21:23:23 +01:00
Arne Döring
1105d03644
require errormsg to be specified before file.
2018-12-11 21:23:21 +01:00
Timothee Cour
d502ddea9e
fix #9832 (fixup) ( #9859 )
2018-12-04 16:48:08 +01:00
Timothee Cour
05769020d3
fixes #9832 ( #9841 ) [backport]
2018-12-04 11:13:49 +01: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
Araq
02b78d3f94
make tests green again
2018-05-14 21:38:18 +02:00
Adam Strzelecki
e80465dacf
tests: Trim .nim files trailing whitespace
...
via OSX: find . -name '*.nim' -exec sed -i '' -E 's/[[:space:]]+$//' {} +
2015-09-04 23:04:32 +02:00
Araq
5432b2b83a
fixes recently introduced regression
2014-08-21 09:59:57 +02:00
Araq
15b2d6d351
fixes #1418
2014-08-20 02:14:30 +02:00
Araq
37229df7fc
next steps for closure iterators
2014-01-22 17:32:38 +01:00
Araq
20b5f31c03
new tester; all tests categorized
2014-01-13 02:10:03 +01:00