mirror of
https://github.com/nushell/nushell.git
synced 2025-07-01 15:11:52 +02:00
early return for parsing closure and block with interchanged shape (#7618)
This commit is contained in:
@ -349,7 +349,10 @@ fn proper_missing_param() -> TestResult {
|
||||
|
||||
#[test]
|
||||
fn block_arity_check1() -> TestResult {
|
||||
fail_test(r#"ls | each { |x, y, z| 1}"#, "expected 2 block parameters")
|
||||
fail_test(
|
||||
r#"ls | each { |x, y, z| 1}"#,
|
||||
"expected 2 closure parameters",
|
||||
)
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
Reference in New Issue
Block a user