Writing 'return'
The complete source of functions_no_return_keyword.ek9, which fails to compile exactly as captioned. Shown on flowControl.html, functions.html, concepts/no-return.html.
Fails with E01072: 'return' does not exist in EK9 - declare return values with '<-' and compiler ensures all paths initialize
#!ek9 defines module bad.site.functions.noreturn.keyword defines function sign() as pure -> amount as Integer <- rtn as String? if amount < 0 return "negative" return "not negative"
Download functions_no_return_keyword.ek9 - it fails to compile on purpose, with the error its @Error line states.