]> Nishi Git Mirror - gwion.git/commitdiff
:art: improve return in defer reporting
authorfennecdjay <fennecdjay@gmail.com>
Thu, 20 Oct 2022 13:00:16 +0000 (15:00 +0200)
committerfennecdjay <fennecdjay@gmail.com>
Thu, 20 Oct 2022 13:00:16 +0000 (15:00 +0200)
ast
tests/defer/return_in_defer.gw [new file with mode: 0644]

diff --git a/ast b/ast
index d341be4f3a787e5c4dd80f7ab8bc919a7ca807ec..1da715dc9243b3fe1662b649d25bd4066f0316ac 160000 (submodule)
--- a/ast
+++ b/ast
@@ -1 +1 @@
-Subproject commit d341be4f3a787e5c4dd80f7ab8bc919a7ca807ec
+Subproject commit 1da715dc9243b3fe1662b649d25bd4066f0316ac
diff --git a/tests/defer/return_in_defer.gw b/tests/defer/return_in_defer.gw
new file mode 100644 (file)
index 0000000..b38ae29
--- /dev/null
@@ -0,0 +1,5 @@
+fun int foo() {
+  defer return 123;
+  return 456;
+}
+<<< foo() >>>;