degory / ghul

compiler for the ghūl programming language
https://ghul.dev
GNU Affero General Public License v3.0
4 stars 0 forks source link

`let` `in` not accepted in return statement #1162

Closed degory closed 7 months ago

degory commented 7 months ago

let ... in expressions are not accepted as the value of a return statement

times_two(i: int) -> int is
    return
       let result = i * 2
       in result;
si