mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 20:11:17 +00:00
Update tests to (Foo) { ... } syntax.
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user