| ... | @@ -261,7 +261,7 @@ test containerLayout { | ... | @@ -261,7 +261,7 @@ test containerLayout { |
| 261 | try testing.expect(containerLayout(U3) == .@"extern"); | 261 | try testing.expect(containerLayout(U3) == .@"extern"); |
| 262 | } | 262 | } |
| 263 | | 263 | |
| 264 | /// Instead of this function, prefer to use e.g. `@typeInfo(foo).Struct.decls` | 264 | /// Instead of this function, prefer to use e.g. `@typeInfo(foo).@"struct".decls` |
| 265 | /// directly when you know what kind of type it is. | 265 | /// directly when you know what kind of type it is. |
| 266 | pub fn declarations(comptime T: type) []const Type.Declaration { | 266 | pub fn declarations(comptime T: type) []const Type.Declaration { |
| 267 | return switch (@typeInfo(T)) { | 267 | return switch (@typeInfo(T)) { |