stage2: update for new usingnamespace semantics

This commit is contained in:
Andrew Kelley
2021-08-30 18:47:00 -07:00
parent a2ff3a13fe
commit e41e75a486
10 changed files with 40 additions and 28 deletions
+1 -1
View File
@@ -197,7 +197,7 @@ pub const Type = extern union {
/// Prefer `castTag` to this.
pub fn cast(self: Type, comptime T: type) ?*T {
if (@hasField(T, "base_tag")) {
return base.castTag(T.base_tag);
return self.castTag(T.base_tag);
}
if (self.tag_if_small_enough < Tag.no_payload_count) {
return null;