summary refs log tree commit diff stats
path: root/tests/controlflow
Commit message (Collapse)AuthorAgeFilesLines
* Fix endsInNoReturn for case statements (#23009)SirOlaf2023-11-301-4/+41
| | | | | | | | | 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 <>
* Fix #22604: Make endsInNoReturn traverse the tree (#22612)SirOlaf2023-09-011-2/+12
| | | | | | | | | | | | | | | | | * 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 <>
* fixes #9839; fixes noReturn pragma doesn't work for non-simple templates ↵ringabout2022-12-081-0/+32
| | | | (#21048)
* An unnamed break in a block now gives an `UnnamedBreak` warning (#20901)ringabout2022-11-242-1/+35
| | | | | | | | | | | | | | | | | | | | | * 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
* Make unreachable code a warning instead of an error (#14816)Clyybber2020-06-291-3/+3
| | | | | | | * Make unreachable code a warning * Adapt test * Trigger CI
* Testament: refactoring; makes the test joiner greenAraq2018-12-111-5/+5
|
* require errormsg to be specified before file.Arne Döring2018-12-112-7/+2
|
* fix #9832 (fixup) (#9859)Timothee Cour2018-12-041-1/+1
|
* fixes #9832 (#9841) [backport]Timothee Cour2018-12-041-1/+1
|
* Merge tests into a larger file (part 2 of ∞) (#9335)Miran2018-10-134-96/+97
| | | | | | | | | | | | | | * merge controlflow tests * merge distinct tests * merge enum tests * merge fields tests * merge implicit tests * merge iter issues tests
* make tests green againAraq2018-05-141-1/+1
|
* tests: Trim .nim files trailing whitespaceAdam Strzelecki2015-09-044-36/+36
| | | | via OSX: find . -name '*.nim' -exec sed -i '' -E 's/[[:space:]]+$//' {} +
* fixes recently introduced regressionAraq2014-08-211-1/+12
|
* fixes #1418Araq2014-08-201-0/+33
|
* next steps for closure iteratorsAraq2014-01-222-0/+42
|
* new tester; all tests categorizedAraq2014-01-132-0/+40