blob: ab5c7700902bbcf50819df809fd10bcd500946c3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
const expect = @import("std").testing.expect;
test "fully anonymous list literal" {
dump(.{ @as(u32, 1234), @as(f64, 12.34), true, "hi"});
}
fn dump(args: anytype) void {
expect(args.@"0" == 1234);
expect(args.@"1" == 12.34);
expect(args.@"2");
expect(args.@"3"[0] == 'h');
expect(args.@"3"[1] == 'i');
}
|