From a4bda0b7154f6afeda08a560beb5ce19a33b99d3 Mon Sep 17 00:00:00 2001 From: nub31 Date: Mon, 2 Jun 2025 17:50:48 +0200 Subject: [PATCH] Fix typo --- src/lang/Nub.Lang/Frontend/Parsing/Parser.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()); }