| ... | @@ -4011,7 +4011,7 @@ pub const LoadedStructType = struct { | ... | @@ -4011,7 +4011,7 @@ pub const LoadedStructType = struct { |
| 4011 | | 4011 | |
| 4012 | pub fn haveFieldTypes(s: LoadedStructType, ip: *const InternPool) bool { | 4012 | pub fn haveFieldTypes(s: LoadedStructType, ip: *const InternPool) bool { |
| 4013 | const types = s.field_types.get(ip); | 4013 | const types = s.field_types.get(ip); |
| 4014 | return types.len == 0 or types[0] != .none; | 4014 | return types.len == 0 or types[types.len - 1] != .none; |
| 4015 | } | 4015 | } |
| 4016 | | 4016 | |
| 4017 | pub fn haveFieldInits(s: LoadedStructType, ip: *const InternPool) bool { | 4017 | pub fn haveFieldInits(s: LoadedStructType, ip: *const InternPool) bool { |