1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-04 19:21:46 +00:00
Files
godot/modules
Daniel Spaniol 044ec35f62 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.

(cherry picked from commit 79176decd5)
2019-04-03 16:51:43 +02:00
..
2019-01-01 12:58:10 +01:00
2019-02-22 12:46:54 +01:00
2019-01-01 12:58:10 +01:00
2019-02-21 19:34:35 +01:00
2019-01-28 06:29:39 +01:00
2019-01-01 12:58:10 +01:00
2019-01-01 12:58:10 +01:00
2019-02-27 07:45:57 +01:00
2019-01-01 12:58:10 +01:00
2019-01-01 12:58:10 +01:00
2019-03-04 13:13:33 +01:00