This commit is contained in:
nub31
2025-06-02 17:50:48 +02:00
parent 420e581c85
commit a4bda0b715

View File

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