0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00

introduce @as builtin for type coercion

This commit also hooks up type coercion (previously called implicit
casting) into the result location mechanism, and additionally hooks up
variable declarations, maintaining the property that:

    var a: T = b;

is semantically equivalent to:

    var a = @as(T, b);

See #1757
This commit is contained in:
Andrew Kelley 2019-11-06 23:21:31 -05:00
commit 2a6fbbd8fb
No known key found for this signature in database
GPG key ID: 7C5F548F728501A9
4 changed files with 175 additions and 64 deletions