From: Jérémie Astor Date: Sat, 23 Apr 2022 12:14:10 +0000 (+0200) Subject: :art: Add implicit exp return to lambdas X-Git-Tag: nightly~277 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=373c33453cabc30190b731d39aa348390a40c17a;p=gwion.git :art: Add implicit exp return to lambdas --- diff --git a/ast b/ast index 841ddb8e..f2438438 160000 --- a/ast +++ b/ast @@ -1 +1 @@ -Subproject commit 841ddb8e0c49cb742c701eaf828920a5d5c651a1 +Subproject commit f2438438e053f26be2f768a01d0ac5fc2f96a7e6 diff --git a/tests/new/lambda.gw b/tests/lambdas/lambda.gw similarity index 100% rename from tests/new/lambda.gw rename to tests/lambdas/lambda.gw diff --git a/tests/new/lambda2.gw b/tests/lambdas/lambda2.gw similarity index 100% rename from tests/new/lambda2.gw rename to tests/lambdas/lambda2.gw diff --git a/tests/new/lambda3.gw b/tests/lambdas/lambda3.gw similarity index 100% rename from tests/new/lambda3.gw rename to tests/lambdas/lambda3.gw diff --git a/tests/lambdas/lambda_exp.gw b/tests/lambdas/lambda_exp.gw new file mode 100644 index 00000000..0af5db2f --- /dev/null +++ b/tests/lambdas/lambda_exp.gw @@ -0,0 +1,2 @@ +#! [contains] 42 +<<< \a { a + 2 }(40) >>>; diff --git a/tests/tree/lambda_member.gw b/tests/lambdas/lambda_member.gw similarity index 100% rename from tests/tree/lambda_member.gw rename to tests/lambdas/lambda_member.gw diff --git a/tests/error/lambda_mismatch1.gw b/tests/lambdas/lambda_mismatch1.gw similarity index 100% rename from tests/error/lambda_mismatch1.gw rename to tests/lambdas/lambda_mismatch1.gw diff --git a/tests/error/lambda_mismatch2.gw b/tests/lambdas/lambda_mismatch2.gw similarity index 100% rename from tests/error/lambda_mismatch2.gw rename to tests/lambdas/lambda_mismatch2.gw diff --git a/tests/error/lambda_mismatch3.gw b/tests/lambdas/lambda_mismatch3.gw similarity index 100% rename from tests/error/lambda_mismatch3.gw rename to tests/lambdas/lambda_mismatch3.gw diff --git a/tests/new/lambda_return.gw b/tests/lambdas/lambda_return.gw similarity index 100% rename from tests/new/lambda_return.gw rename to tests/lambdas/lambda_return.gw