diff options
| author | mlugg <mlugg@mlugg.co.uk> | 2024-08-14 00:08:38 +0100 |
|---|---|---|
| committer | Jacob Young <jacobly0@users.noreply.github.com> | 2024-08-17 18:50:10 -0400 |
| commit | 3fb5cad07dd3b10ad32a116cbd7195218b0a93fe (patch) | |
| tree | fc4ce5844b794bc131a4dde5b4ae2d4885e29ba4 /src/Compilation.zig | |
| parent | 50960fac80b1d04f7858215d963fa64a7583210b (diff) | |
| download | zig-3fb5cad07dd3b10ad32a116cbd7195218b0a93fe.tar.gz zig-3fb5cad07dd3b10ad32a116cbd7195218b0a93fe.zip | |
Sema: don't delete reified enum type with error in field
An enum type is kind of like a struct or union type, in that field
errors are happening during type resolution. The only difference is that
type resolution happens at the time the type is created. So, errors in
fields should not cause the type to be deleted: we've already added a
reference entry, and incremenetal dependencies which must be invalidated
if the compile error is fixed. Once we call `WipEnumType.prepare`, we
should never call `WipEnumType.cancel`. This is analagous to logic for
enum declarations in `Sema.zirEnumDecl`.
Diffstat (limited to 'src/Compilation.zig')
0 files changed, 0 insertions, 0 deletions
