diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2022-03-17 19:59:20 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2022-03-17 19:59:20 -0700 |
| commit | 1d1364c3cd296d628501bce131513ce18d2055a3 (patch) | |
| tree | 1cbd0803b10a57c980edca7223875d15e5a41af9 /test/behavior/basic.zig | |
| parent | 46ba24010af521936e416160decb660fe56cb484 (diff) | |
| download | zig-1d1364c3cd296d628501bce131513ce18d2055a3.tar.gz zig-1d1364c3cd296d628501bce131513ce18d2055a3.zip | |
Sema: change how undefined is handled in coerce
Instead of doing it before the switch tower, do it afterwards, so that
special handling may be done before undefined gets casted to the
destination type.
In this case the special handling we want to do is *[N]T to []T setting
the slice length based on the array length, even when the array value is
undefined.
Diffstat (limited to 'test/behavior/basic.zig')
0 files changed, 0 insertions, 0 deletions
