mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-05-28 20:06:38 +03:00
stage2: update for new usingnamespace semantics
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user