diff --git a/src/lang/Nub.Lang/Frontend/Parsing/Parser.cs b/src/lang/Nub.Lang/Frontend/Parsing/Parser.cs index c6d2efb..2b1d7fa 100644 --- a/src/lang/Nub.Lang/Frontend/Parsing/Parser.cs +++ b/src/lang/Nub.Lang/Frontend/Parsing/Parser.cs @@ -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()); }