diff options
author | Oscar NihlgÄrd <oscarnihlgard@gmail.com> | 2019-10-24 11:04:04 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2019-10-24 11:04:04 +0200 |
commit | 9ccfcf5dd2572c858913cf092a6a571a5e4a8df0 (patch) | |
tree | 43c76d728596a0f8f847a3fe6be0140562cfd6e9 /tests/misc | |
parent | 822078ed12a48aa61eda0c65bc9ee675836a9fd3 (diff) | |
download | Nim-9ccfcf5dd2572c858913cf092a6a571a5e4a8df0.tar.gz |
Fix compiler crash caused by top level return (#12501)
Diffstat (limited to 'tests/misc')
-rw-r--r-- | tests/misc/t12480.nim | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/misc/t12480.nim b/tests/misc/t12480.nim new file mode 100644 index 000000000..992533ef6 --- /dev/null +++ b/tests/misc/t12480.nim @@ -0,0 +1,5 @@ +discard """ + errormsg: "'return' not allowed here" +""" + +return \ No newline at end of file |