From 9ccfcf5dd2572c858913cf092a6a571a5e4a8df0 Mon Sep 17 00:00:00 2001 From: Oscar NihlgÄrd Date: Thu, 24 Oct 2019 11:04:04 +0200 Subject: Fix compiler crash caused by top level return (#12501) --- tests/misc/t12480.nim | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 tests/misc/t12480.nim (limited to 'tests/misc') 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 -- cgit 1.4.1-2-gfad0