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

View File

@@ -315,7 +315,7 @@ pub const Value = extern union {
/// Prefer `castTag` to this.
pub fn cast(self: Value, 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;