Update tests to (Foo) { ... } syntax.

This commit is contained in:
Christoffer Lerno
2025-02-18 18:53:30 +01:00
parent 168c11e006
commit cbacd64987
98 changed files with 449 additions and 551 deletions

View File

@@ -1843,7 +1843,7 @@ static inline Decl *parse_interface_declaration(ParseContext *c)
{
do
{
ASSIGN_TYPE_OR_RET(TypeInfo *type, parse_type(c), poisoned_decl);
ASSIGN_TYPE_OR_RET(TypeInfo *type, parse_optional_type_no_generic(c), poisoned_decl);
vec_add(parents, type);
} while (try_consume(c, TOKEN_COMMA));
}

View File

@@ -394,9 +394,12 @@ INLINE bool sema_resolve_generic_type(SemaContext *context, TypeInfo *type_info)
{
RETURN_SEMA_ERROR(inner, "Parameterization required a concrete type name here.");
}
if (inner->resolve_status != RESOLVE_NOT_DONE)
if (inner->resolve_status == RESOLVE_DONE)
{
puts("feokf");
if (!type_is_user_defined(inner->type))
{
RETURN_SEMA_ERROR(inner, "A user defined type was expected here, not %s.", type_quoted_error_string(inner->type));
}
}
ASSERT_SPAN(inner, inner->resolve_status == RESOLVE_NOT_DONE);