Skip to content

Commit

Permalink
trailing comma after var args is not supported
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewrk committed May 26, 2018
1 parent 4405897 commit c029f4b
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions test/cases/syntax.zig
Expand Up @@ -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 {
Expand Down

0 comments on commit c029f4b

Please sign in to comment.