mirror of
https://github.com/ziglang/zig.git
synced 2025-12-08 07:13:08 +00:00
parser: anytype is not a vaild return type
This commit is contained in:
parent
34c08a91d5
commit
ce9b3ee0f9
@ -2414,14 +2414,14 @@ test "zig fmt: preserve spacing" {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
//test "zig fmt: return types" {
|
test "zig fmt: return types" {
|
||||||
// try testCanonical(
|
try testCanonical(
|
||||||
// \\pub fn main() !void {}
|
\\pub fn main() !void {}
|
||||||
// \\pub fn main() anytype {}
|
\\pub fn main() FooBar {}
|
||||||
// \\pub fn main() i32 {}
|
\\pub fn main() i32 {}
|
||||||
// \\
|
\\
|
||||||
// );
|
);
|
||||||
//}
|
}
|
||||||
|
|
||||||
test "zig fmt: imports" {
|
test "zig fmt: imports" {
|
||||||
try testCanonical(
|
try testCanonical(
|
||||||
@ -2652,12 +2652,12 @@ test "zig fmt: call expression" {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
//test "zig fmt: anytype type" {
|
test "zig fmt: anytype type" {
|
||||||
// try testCanonical(
|
try testCanonical(
|
||||||
// \\fn print(args: anytype) anytype {}
|
\\fn print(args: anytype) @This() {}
|
||||||
// \\
|
\\
|
||||||
// );
|
);
|
||||||
//}
|
}
|
||||||
|
|
||||||
test "zig fmt: functions" {
|
test "zig fmt: functions" {
|
||||||
try testCanonical(
|
try testCanonical(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user