summaryrefslogtreecommitdiff
path: root/tests/functions/test_lambda_arrow.zc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/functions/test_lambda_arrow.zc')
-rw-r--r--tests/functions/test_lambda_arrow.zc8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/functions/test_lambda_arrow.zc b/tests/functions/test_lambda_arrow.zc
index c976ecf..111487d 100644
--- a/tests/functions/test_lambda_arrow.zc
+++ b/tests/functions/test_lambda_arrow.zc
@@ -18,3 +18,11 @@ test "test_lambda_arrow" {
"compute((a, b) -> a * b, 3, 4) = {res3}";
if res3 != 12 { exit(1); }
}
+
+test "lambda_inference_repro" {
+ var dble = x -> x * 2.0;
+ var res = dble(9.0);
+ if res != 18.0 {
+ exit(1);
+ }
+}