From: fennecdjay Date: Thu, 20 Oct 2022 13:00:16 +0000 (+0200) Subject: :art: improve return in defer reporting X-Git-Tag: nightly~209 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=ff2eaa0d7aeaab06fbe478d84f5fb82ac2fe54a0;p=gwion.git :art: improve return in defer reporting --- diff --git a/ast b/ast index d341be4f..1da715dc 160000 --- 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 index 00000000..b38ae29e --- /dev/null +++ b/tests/defer/return_in_defer.gw @@ -0,0 +1,5 @@ +fun int foo() { + defer return 123; + return 456; +} +<<< foo() >>>;