mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 14:45:56 +02:00
each
signature fix (#12666)
# Description Removes the second `Int` parameter from the closure in the signature of `each`. This parameter doesn't exist / isn't supported.
This commit is contained in:
@ -416,10 +416,7 @@ fn proper_missing_param() -> TestResult {
|
||||
|
||||
#[test]
|
||||
fn block_arity_check1() -> TestResult {
|
||||
fail_test(
|
||||
r#"ls | each { |x, y, z| 1}"#,
|
||||
"expected 2 closure parameters",
|
||||
)
|
||||
fail_test(r#"ls | each { |x, y| 1}"#, "expected 1 closure parameter")
|
||||
}
|
||||
|
||||
// deprecating former support for escapes like `/uNNNN`, dropping test.
|
||||
|
Reference in New Issue
Block a user