Compile to boolean in if cond and exitwhen stmtOtherwise the typing context of the surrounding function will be used which isthe return type of the function. (commit: 2ad187c)