This commit is contained in:
nub31
2025-10-20 18:32:27 +02:00
parent 78441549c7
commit 5be9f122e9
5 changed files with 28 additions and 379 deletions

View File

@@ -727,6 +727,8 @@ public sealed class TypeChecker
.Error($"Struct {structType.Name} does not have a field named {initializer.Key}")
.At(initializer.Value)
.Build());
continue;
}
initializers.Add(initializer.Key, CheckExpression(initializer.Value, typeField.Type));