Do rest args

This commit is contained in:
JT
2021-10-12 16:28:39 +13:00
parent 9f02307bd7
commit c8277a3da9
2 changed files with 59 additions and 14 deletions

View File

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