mirror of
https://github.com/ziglang/zig.git
synced 2024-12-04 02:48:50 +00:00
4307436b99
And fix test cases to make them pass. This is in preparation for starting to pass behavior tests with self-hosted.
9 lines
273 B
Zig
9 lines
273 B
Zig
test "@Type should resolve its children types" {
|
|
const sparse = enum(u2) { a, b, c };
|
|
const dense = enum(u2) { a, b, c, d };
|
|
|
|
comptime var sparse_info = @typeInfo(anyerror!sparse);
|
|
sparse_info.ErrorUnion.payload = dense;
|
|
const B = @Type(sparse_info);
|
|
}
|