trailing comma after var args is not supported
parent
4405897cbd
commit
c029f4bfc4
|
@ -34,16 +34,11 @@ fn switch_prongs(x: i32) void {
|
||||||
|
|
||||||
const fn_no_comma = fn(i32, i32)void;
|
const fn_no_comma = fn(i32, i32)void;
|
||||||
const fn_trailing_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 fn_calls() void {
|
||||||
fn add(x: i32, y: i32,) i32 { x + y };
|
fn add(x: i32, y: i32,) i32 { x + y };
|
||||||
_ = add(1, 2);
|
_ = add(1, 2);
|
||||||
_ = add(1, 2,);
|
_ = add(1, 2,);
|
||||||
|
|
||||||
fn swallow(x: ...,) void {};
|
|
||||||
_ = swallow(1,2,3,);
|
|
||||||
_ = swallow();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn asm_lists() void {
|
fn asm_lists() void {
|
||||||
|
|
Loading…
Reference in New Issue