DenialAdams / roland

Roland programming language
https://www.brick.codes/roland
Apache License 2.0
46 stars 0 forks source link

Code after unreachable function #77

Open DenialAdams opened 1 year ago

DenialAdams commented 1 year ago

proc foo() -> u8 { unreachable(); some_computation(); ....

} We should warn that everything after `unreachable()` is unreachable. We could also allow there to be no final return statement, although i should think on that a little