trailing comma after var args is not supported

master
Andrew Kelley 2018-05-25 20:41:14 -04:00
parent 4405897cbd
commit c029f4bfc4
1 changed files with 0 additions and 5 deletions

View File

@ -34,16 +34,11 @@ fn switch_prongs(x: i32) void {
const fn_no_comma = fn(i32, i32)void;
const fn_trailing_comma = fn(i32, i32,)void;
const fn_vararg_trailing_comma = fn(i32, i32, ...,)void;
fn fn_calls() void {
fn add(x: i32, y: i32,) i32 { x + y };
_ = add(1, 2);
_ = add(1, 2,);
fn swallow(x: ...,) void {};
_ = swallow(1,2,3,);
_ = swallow();
}
fn asm_lists() void {