| ... | ... | @@ -261,7 +261,8 @@ pub fn declarations(comptime T: type) []const TypeInfo.Declaration { |
| 261 | 261 | .Struct => |info| info.decls, |
| 262 | 262 | .Enum => |info| info.decls, |
| 263 | 263 | .Union => |info| info.decls, |
| 264 | | else => @compileError("Expected struct, enum or union type, found '" ++ @typeName(T) ++ "'"), |
| 264 | .Opaque => |info| info.decls, |
| 265 | else => @compileError("Expected struct, enum, union, or opaque type, found '" ++ @typeName(T) ++ "'"), |
| 265 | 266 | }; |
| 266 | 267 | } |
| 267 | 268 | |