Fix compiler crash caused by top level return (#12501)
This commit is contained in:
parent
822078ed12
commit
9ccfcf5dd2
2 changed files with 6 additions and 1 deletions
5
tests/misc/t12480.nim
Normal file
5
tests/misc/t12480.nim
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
discard """
|
||||
errormsg: "'return' not allowed here"
|
||||
"""
|
||||
|
||||
return
|
||||
Loading…
Add table
Add a link
Reference in a new issue