From 373c33453cabc30190b731d39aa348390a40c17a Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Sat, 23 Apr 2022 14:14:10 +0200 Subject: [PATCH] :art: Add implicit exp return to lambdas --- ast | 2 +- tests/{new => lambdas}/lambda.gw | 0 tests/{new => lambdas}/lambda2.gw | 0 tests/{new => lambdas}/lambda3.gw | 0 tests/lambdas/lambda_exp.gw | 2 ++ tests/{tree => lambdas}/lambda_member.gw | 0 tests/{error => lambdas}/lambda_mismatch1.gw | 0 tests/{error => lambdas}/lambda_mismatch2.gw | 0 tests/{error => lambdas}/lambda_mismatch3.gw | 0 tests/{new => lambdas}/lambda_return.gw | 0 10 files changed, 3 insertions(+), 1 deletion(-) rename tests/{new => lambdas}/lambda.gw (100%) rename tests/{new => lambdas}/lambda2.gw (100%) rename tests/{new => lambdas}/lambda3.gw (100%) create mode 100644 tests/lambdas/lambda_exp.gw rename tests/{tree => lambdas}/lambda_member.gw (100%) rename tests/{error => lambdas}/lambda_mismatch1.gw (100%) rename tests/{error => lambdas}/lambda_mismatch2.gw (100%) rename tests/{error => lambdas}/lambda_mismatch3.gw (100%) rename tests/{new => lambdas}/lambda_return.gw (100%) 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 -- 2.43.0