This commit is contained in:
nub31
2025-06-02 17:50:48 +02:00
parent eb8ad3819e
commit d53a01ba67

View File

@@ -535,7 +535,7 @@ public class Parser
if (type is not NubStructType structType)
{
throw new ParseException(Diagnostic
.Error($"Cannot use new keyword on type {type}")
.Error($"Cannot alloc type '{type}'")
.At(symbolToken)
.Build());
}