fix assigning value to type

This commit is contained in:
agra
2026-02-11 13:08:23 +02:00
parent c085aeef4c
commit cdc6c59dda
2 changed files with 4 additions and 1 deletions

View File

@@ -2056,6 +2056,7 @@ pub const CodeGen = struct {
}
return null;
}
return self.emitErrorFmt("cannot assign non-type value to Type variable '{s}'", .{name});
}
// Union reassignment: s = .circle(3.14) or s = .none