Fix typo
This commit is contained in:
@@ -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());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user