zig/doc
Andrew Kelley bb38931c71 stage1: @intToEnum implicitly does an @intCast
This is a backwards-compatible language change.

Previously, `@intToEnum` coerced its integer operand to the integer tag
type of the destination enum type, often requiring the callsite to
additionally wrap the operand in an `@intCast`. Now, the `@intCast` is
implicit, and any integer operand can be passed to `@intToEnum`.

The same as before, it is illegal behavior to pass any integer which does
not have a corresponding enum tag.
2021-08-23 15:30:57 -07:00
..
docgen.zig add -femit-llvm-bc CLI option and implement it 2021-07-22 19:51:32 -07:00
langref.html.in stage1: @intToEnum implicitly does an @intCast 2021-08-23 15:30:57 -07:00