Test for nested function call

This commit is contained in:
greg 2018-11-06 02:42:28 -08:00
parent f4f89b39b6
commit 837a55c718

View File

@ -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");
}
}