diff --git a/schala-lang/language/src/eval.rs b/schala-lang/language/src/eval.rs index d8719de..7a89823 100644 --- a/schala-lang/language/src/eval.rs +++ b/schala-lang/language/src/eval.rs @@ -733,4 +733,15 @@ let y = \(m, n, o) { m + n + o }(1,2,3) "#; test_in_fresh_env!(source, r"(10, 6)"); } + + #[test] + fn lambda_syntax_2() { + let source = r#" +fn milta() { + \(x) { x + 33 } +} +milta()(10) + "#; + test_in_fresh_env!(source, "43"); + } }