mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-12 14:23:45 +00:00
* 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
16 lines
429 B
Nim
16 lines
429 B
Nim
|
|
discard """
|
|
cmd: "nim check $file"
|
|
action: "reject"
|
|
nimout: '''
|
|
tunamedbreak.nim(12, 5) Error: Using an unnamed break in a block is deprecated; Use a named block with a named break instead [UnnamedBreak]
|
|
tunamedbreak.nim(15, 3) Error: Using an unnamed break in a block is deprecated; Use a named block with a named break instead [UnnamedBreak]
|
|
'''
|
|
"""
|
|
for i in 1..2: # errors
|
|
block:
|
|
break
|
|
|
|
block: # errors
|
|
break
|