cusel/parser-tests/statements-after-return.bad
Juhani Krekelä 02bbcf64d2 First commit
2026-11-13 20:48:22 +02:00

7 lines
233 B
Text

fn func()
-- we cannot distinguish between a return with a value and a return
-- without one, if the statement is not at the end of a block
-- therefore, we do like lua, and require return to be at the end
return
x: u32 = 5
end