7 lines
233 B
Text
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
|