]> Nishi Git Mirror - gwion.git/commitdiff
:art: Add implicit exp return to lambdas
authorJérémie Astor <fennecdjay@gmail.com>
Sat, 23 Apr 2022 12:14:10 +0000 (14:14 +0200)
committerJérémie Astor <fennecdjay@gmail.com>
Sat, 23 Apr 2022 12:14:10 +0000 (14:14 +0200)
ast
tests/lambdas/lambda.gw [moved from tests/new/lambda.gw with 100% similarity]
tests/lambdas/lambda2.gw [moved from tests/new/lambda2.gw with 100% similarity]
tests/lambdas/lambda3.gw [moved from tests/new/lambda3.gw with 100% similarity]
tests/lambdas/lambda_exp.gw [new file with mode: 0644]
tests/lambdas/lambda_member.gw [moved from tests/tree/lambda_member.gw with 100% similarity]
tests/lambdas/lambda_mismatch1.gw [moved from tests/error/lambda_mismatch1.gw with 100% similarity]
tests/lambdas/lambda_mismatch2.gw [moved from tests/error/lambda_mismatch2.gw with 100% similarity]
tests/lambdas/lambda_mismatch3.gw [moved from tests/error/lambda_mismatch3.gw with 100% similarity]
tests/lambdas/lambda_return.gw [moved from tests/new/lambda_return.gw with 100% similarity]

diff --git a/ast b/ast
index 841ddb8e0c49cb742c701eaf828920a5d5c651a1..f2438438e053f26be2f768a01d0ac5fc2f96a7e6 160000 (submodule)
--- a/ast
+++ b/ast
@@ -1 +1 @@
-Subproject commit 841ddb8e0c49cb742c701eaf828920a5d5c651a1
+Subproject commit f2438438e053f26be2f768a01d0ac5fc2f96a7e6
similarity index 100%
rename from tests/new/lambda.gw
rename to tests/lambdas/lambda.gw
diff --git a/tests/lambdas/lambda_exp.gw b/tests/lambdas/lambda_exp.gw
new file mode 100644 (file)
index 0000000..0af5db2
--- /dev/null
@@ -0,0 +1,2 @@
+#! [contains] 42
+<<< \a { a + 2 }(40) >>>;