zig/test/behavior
Andrew Kelley 09e1f37cb6 stage2: implement union coercion to its own tag
* AIR: add `get_union_tag` instruction
   - implement in LLVM backend
 * Sema: implement == and != for union and enum literal
   - Also implement coercion from union to its own tag type
 * Value: implement hashing for union values

The motivating example is this snippet:

    comptime assert(@typeInfo(T) == .Float);

This was the next blocker for stage2 building compiler-rt.
Now it is switch at compile-time on an integer.
2021-09-27 23:11:00 -07:00
..
2021-09-24 13:39:20 -04:00
2021-06-21 17:03:03 -07:00
2021-09-24 13:39:20 -04:00
2021-08-01 12:36:04 -07:00
2021-06-05 22:08:36 -04:00
2021-08-30 18:50:07 -04:00
2021-09-24 13:39:20 -04:00
2021-06-21 17:03:03 -07:00
2021-06-21 17:03:03 -07:00
2021-08-07 20:34:28 -07:00
2021-07-25 22:43:52 -04:00
2021-07-26 20:41:00 -04:00
2021-06-21 17:03:03 -07:00
2021-08-07 15:46:53 -07:00
2021-07-25 20:35:55 -04:00
2021-07-26 20:05:48 -04:00
2021-09-24 13:39:20 -04:00
2021-09-24 13:39:20 -04:00
2021-06-21 17:03:03 -07:00