Daniel Spaniol
79176decd5
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.
2019-02-20 21:38:11 +01:00
..
2019-01-01 12:58:10 +01:00
2019-02-20 15:06:08 +01:00
2019-02-12 13:34:25 +01:00
2019-01-01 12:58:10 +01:00
2019-01-01 12:58:10 +01:00
2019-02-20 16:28:53 +01:00
2019-01-09 02:06:13 +01:00
2019-01-01 12:58:10 +01:00
2019-02-18 10:26:22 +01:00
2019-02-20 21:38:11 +01:00
2019-01-07 10:06:12 +01:00
2019-01-28 06:29:39 +01:00
2019-01-01 12:58:10 +01:00
2019-02-20 01:49:47 +01:00
2019-02-12 14:39:47 +01:00
2019-02-19 22:38:22 +01:00
2019-01-01 12:58:10 +01:00
2019-01-01 12:58:10 +01:00
2019-01-01 12:58:10 +01:00
2019-01-25 12:41:54 +01:00
2019-01-01 12:58:10 +01:00
2019-01-01 12:58:10 +01:00
2019-01-01 12:58:10 +01:00
2019-02-12 13:34:25 +01:00
2019-01-28 16:00:15 +01:00
2019-01-01 12:58:10 +01:00
2019-01-01 12:58:10 +01:00
2019-01-10 12:45:57 +01:00
2019-01-01 12:58:10 +01:00
2019-02-12 22:59:56 +01:00
2019-02-10 13:30:48 +01:00
2019-01-01 12:58:10 +01:00
2019-01-16 11:39:39 +01:00
2019-01-01 12:58:10 +01:00
2019-02-18 21:54:31 +01:00
2019-01-01 12:58:10 +01:00
2019-01-01 12:58:10 +01:00
2018-09-28 14:07:39 +02:00