fmt: support trailing comma after var_args
This commit is contained in:
committed by
Andrew Kelley
parent
6cc2d3938e
commit
2f236e6efb
@@ -354,6 +354,15 @@ test "zig fmt: fn decl with trailing comma" {
|
||||
);
|
||||
}
|
||||
|
||||
test "zig fmt: var_args with trailing comma" {
|
||||
try testCanonical(
|
||||
\\pub fn add(
|
||||
\\ a: ...,
|
||||
\\) void {}
|
||||
\\
|
||||
);
|
||||
}
|
||||
|
||||
test "zig fmt: enum decl with no trailing comma" {
|
||||
try testTransform(
|
||||
\\const StrLitKind = enum {Normal, C};
|
||||
|
||||
Reference in New Issue
Block a user