diff options
author | Daniel Spaniol <mail@daniel-spaniol.de> | 2019-02-20 20:49:48 +0100 |
---|---|---|
committer | Daniel Spaniol <mail@daniel-spaniol.de> | 2019-02-20 21:38:11 +0100 |
commit | 79176decd5dcbe7abc938458864f2191757b07dc (patch) | |
tree | a4bec80390611e483fc48048ff9a6c6b0826ba3d /modules/mobile_vr | |
parent | 132e2f458df7a3551a251d68afeccd0362ca6be2 (diff) |
Require `return` in all match branches
Before the parser only checked if the catch-all branch has a return in
order to determine if the entire match block has a return.
This code block was assumed to always return.
match value:
"test":
print("test")
_:
return
Now as soon as one of the branches has no return, the entire match block
is marked to not have a return.
Diffstat (limited to 'modules/mobile_vr')
0 files changed, 0 insertions, 0 deletions