Test for nested function call
This commit is contained in:
parent
f4f89b39b6
commit
837a55c718
@ -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");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user