@(..) now also accepts pointer to ubyte address

This commit is contained in:
Irmen de Jong
2025-05-15 20:07:02 +02:00
parent f4b2264fcf
commit 86eef7039f
6 changed files with 82 additions and 22 deletions

View File

@@ -243,7 +243,7 @@ main {
compileText(VMTarget(), false, src, outputDir, errors=errors)
val err = errors.errors
err.size shouldBe 1
err[0] shouldContain("15:16: can only assign uword or correct pointer type to a pointer")
err[0] shouldContain("15:16: incompatible value type, can only assign uword or correct pointer")
}
})

View File

@@ -131,7 +131,7 @@ main {
val errors = ErrorReporterForTests()
compileText(C64Target(), false, text, outputDir, writeAssembly = true, errors = errors)
errors.errors.size shouldBe 2
errors.errors[0] shouldContain "isn't uword"
errors.errors[0] shouldContain "invalid address type"
errors.errors[1] shouldContain "undefined symbol: doesnotexist"
}