Skip to content

Commit

Permalink
tests: add a test for the for-related crash
Browse files Browse the repository at this point in the history
  • Loading branch information
zerbina committed Jul 5, 2024
1 parent 73c4fb3 commit e344bf6
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/error_propagation/tfor_loop_error.nim
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
discard """
description: '''
Ensure for-loop vars are usable in call expressions when the iterable slot
has an error.
'''
matrix: "--errorMax:100"
errormsg: "undeclared identifier: 'unknown'"
line: 11
"""

for x in unknown:
echo x

0 comments on commit e344bf6

Please sign in to comment.