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`.
3fb5cad07dmlugg committed on 8/17/2024, 10:50:10 PM· committed by Jacob Youngparent50960fa
1 file changedLine totals unavailable