type check tuning

This commit is contained in:
Irmen de Jong
2025-05-04 18:35:49 +02:00
parent 0e0377d1f0
commit d11386ef26
12 changed files with 172 additions and 81 deletions

View File

@@ -100,8 +100,8 @@ class TestVariables: FunSpec({
val errors = ErrorReporterForTests()
compileText(C64Target(), false, text, outputDir, writeAssembly = true, errors=errors) shouldBe null
errors.errors.size shouldBe 2
errors.errors[0] shouldContain "value has incompatible type"
errors.errors[1] shouldContain "value has incompatible type"
errors.errors[0] shouldContain "undefined array type"
errors.errors[1] shouldContain "undefined array type"
}
test("global var init with array lookup should sometimes be const") {