mirror of
https://github.com/ziglang/zig.git
synced 2026-11-22 04:37:39 -05:00
Sema: bad union field access safety
This commit is contained in:
1 parent
55fe34100f
commit
ff7ec4efb5
15 files changed
+194
-90
No files matched your search
+1
-1
@@ -787,7 +787,7 @@ pub const Decl = struct {
|
||||
const opaque_obj = ty.cast(Type.Payload.Opaque).?.data;
|
||||
return &opaque_obj.namespace;
|
||||
},
|
||||
.@"union", .union_tagged => {
|
||||
.@"union", .union_safety_tagged, .union_tagged => {
|
||||
const union_obj = ty.cast(Type.Payload.Union).?.data;
|
||||
return &union_obj.namespace;
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user