From ff2eaa0d7aeaab06fbe478d84f5fb82ac2fe54a0 Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Thu, 20 Oct 2022 15:00:16 +0200 Subject: [PATCH] :art: improve return in defer reporting --- ast | 2 +- tests/defer/return_in_defer.gw | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 tests/defer/return_in_defer.gw 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() >>>; -- 2.43.0