From 1816bda7eae7431ad3d8705697aef899b6d13776 Mon Sep 17 00:00:00 2001 From: Irmen de Jong Date: Thu, 25 Jan 2024 21:54:40 +0100 Subject: [PATCH] extra check --- compiler/src/prog8/CompilerMain.kt | 2 -- compiler/test/TestTypecasts.kt | 10 +++++++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/compiler/src/prog8/CompilerMain.kt b/compiler/src/prog8/CompilerMain.kt index 6a0f9b8d8..f3e86e557 100644 --- a/compiler/src/prog8/CompilerMain.kt +++ b/compiler/src/prog8/CompilerMain.kt @@ -69,8 +69,6 @@ private fun compileMain(args: Array): Boolean { return false } - println("BREAKPOINTINSTR=$breakpointCpuInstruction") - val outputPath = pathFrom(outputDir) if(!outputPath.toFile().isDirectory) { System.err.println("Output path doesn't exist") diff --git a/compiler/test/TestTypecasts.kt b/compiler/test/TestTypecasts.kt index 4d01eaec1..7e9007bff 100644 --- a/compiler/test/TestTypecasts.kt +++ b/compiler/test/TestTypecasts.kt @@ -1098,6 +1098,14 @@ main { bool @shared bb = 6144 } }""" - compileText(C64Target(), true, src, writeAssembly = true) shouldNotBe null + compileText(C64Target(), true, src, writeAssembly = false) shouldNotBe null + + val src2=""" +main { + sub start() { + ubyte @shared ubb = 6144 >> 2 ; should still be type error + } +}""" + compileText(C64Target(), true, src2, writeAssembly = false) shouldBe null } })