blob: 93204206b601a64de473db3433ad7fdcae3e9dc3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
comptime {
var f = Foo{ .int = 42 };
f.float = 12.34;
}
const Foo = union {
float: f32,
int: u32,
};
// test_error=access of union field 'float' while field 'int' is active
|