Forgot the fix...

This commit is contained in:
Christoffer Lerno
2025-07-03 15:46:35 +02:00
parent ee1ed73fc5
commit b3e7f074e9

View File

@@ -2867,6 +2867,12 @@ EXIT:
SEMA_NOTE(decl, "The macro was declared here."); SEMA_NOTE(decl, "The macro was declared here.");
return false; return false;
} }
if (call_expr->type == type_untypedlist)
{
SEMA_ERROR(call_expr, "The macro returns an untyped list, but the macro did not evaluate to a constant. The macro needs to explicitly cast the return value to the expected type.");
SEMA_NOTE(decl, "The macro was declared here.");
return false;
}
} }
return true; return true;
EXIT_FAIL: EXIT_FAIL: