mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 05:04:40 +02:00
Do rest args
This commit is contained in:
@ -722,3 +722,8 @@ fn flag_param_value() -> TestResult {
|
||||
"155",
|
||||
)
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn do_rest_args() -> TestResult {
|
||||
run_test(r#"(do { |...rest| $rest } 1 2).1 + 10"#, "12")
|
||||
}
|
||||
|
Reference in New Issue
Block a user