diff --git a/compiler/testData/codegen/box/binaryOp/call.kt b/compiler/testData/codegen/box/binaryOp/call.kt index c7a2752f4bb..0f3d0139001 100644 --- a/compiler/testData/codegen/box/binaryOp/call.kt +++ b/compiler/testData/codegen/box/binaryOp/call.kt @@ -5,6 +5,8 @@ fun box(): String { val a4: Long = 1.plus(1) val a5: Double = 1.0.plus(1) val a6: Float = 1f.plus(1) + val a7: Char = 'A'.plus(1) + val a8: Int = 'B'.minus('A') if (a1 != 2.toByte()) return "fail 1" if (a2 != 2.toShort()) return "fail 2" @@ -12,6 +14,8 @@ fun box(): String { if (a4 != 2L) return "fail 4" if (a5 != 2.0) return "fail 5" if (a6 != 2f) return "fail 6" + if (a7 != 'B') return "fail 7" + if (a8 != 1) return "fail 8" return "OK" } \ No newline at end of file diff --git a/compiler/testData/codegen/box/binaryOp/callNullable.kt b/compiler/testData/codegen/box/binaryOp/callNullable.kt index 802bef63e31..0167a38ed04 100644 --- a/compiler/testData/codegen/box/binaryOp/callNullable.kt +++ b/compiler/testData/codegen/box/binaryOp/callNullable.kt @@ -5,6 +5,8 @@ fun box(): String { val a4: Long? = 1.plus(1) val a5: Double? = 1.0.plus(1) val a6: Float? = 1f.plus(1) + val a7: Char? = 'A'.plus(1) + val a8: Int? = 'B'.minus('A') if (a1!! != 2.toByte()) return "fail 1" if (a2!! != 2.toShort()) return "fail 2" @@ -12,6 +14,8 @@ fun box(): String { if (a4!! != 2L) return "fail 4" if (a5!! != 2.0) return "fail 5" if (a6!! != 2f) return "fail 6" + if (a7!! != 'B') return "fail 7" + if (a8!! != 1) return "fail 8" return "OK" } diff --git a/compiler/testData/codegen/box/binaryOp/infixCall.kt b/compiler/testData/codegen/box/binaryOp/infixCall.kt index f8f688298c4..76c0d070d01 100644 --- a/compiler/testData/codegen/box/binaryOp/infixCall.kt +++ b/compiler/testData/codegen/box/binaryOp/infixCall.kt @@ -5,6 +5,8 @@ fun box(): String { val a4: Long = 1 plus 1 val a5: Double = 1.0 plus 1 val a6: Float = 1f plus 1 + val a7: Char = 'A' plus 1 + val a8: Int = 'B' minus 'A' if (a1 != 2.toByte()) return "fail 1" if (a2 != 2.toShort()) return "fail 2" @@ -12,6 +14,8 @@ fun box(): String { if (a4 != 2L) return "fail 4" if (a5 != 2.0) return "fail 5" if (a6 != 2f) return "fail 6" + if (a7 != 'B') return "fail 7" + if (a8 != 1) return "fail 8" return "OK" } \ No newline at end of file diff --git a/compiler/testData/codegen/box/binaryOp/infixCallNullable.kt b/compiler/testData/codegen/box/binaryOp/infixCallNullable.kt index 4a8ed98d307..9fbd75a5c27 100644 --- a/compiler/testData/codegen/box/binaryOp/infixCallNullable.kt +++ b/compiler/testData/codegen/box/binaryOp/infixCallNullable.kt @@ -5,6 +5,8 @@ fun box(): String { val a4: Long? = 1 plus 1 val a5: Double? = 1.0 plus 1 val a6: Float? = 1f plus 1 + val a7: Char? = 'A' plus 1 + val a8: Int? = 'B' minus 'A' if (a1!! != 2.toByte()) return "fail 1" if (a2!! != 2.toShort()) return "fail 2" @@ -12,6 +14,8 @@ fun box(): String { if (a4!! != 2L) return "fail 4" if (a5!! != 2.0) return "fail 5" if (a6!! != 2f) return "fail 6" + if (a7!! != 'B') return "fail 7" + if (a8!! != 1) return "fail 8" return "OK" } diff --git a/compiler/testData/codegen/box/binaryOp/intrinsic.kt b/compiler/testData/codegen/box/binaryOp/intrinsic.kt index cd39565e450..7434a7848e5 100644 --- a/compiler/testData/codegen/box/binaryOp/intrinsic.kt +++ b/compiler/testData/codegen/box/binaryOp/intrinsic.kt @@ -5,6 +5,8 @@ fun box(): String { val a4: Long = 1 + 1 val a5: Double = 1.0 + 1 val a6: Float = 1f + 1 + val a7: Char = 'A' + 1 + val a8: Int = 'B' - 'A' if (a1 != 2.toByte()) return "fail 1" if (a2 != 2.toShort()) return "fail 2" @@ -12,6 +14,8 @@ fun box(): String { if (a4 != 2L) return "fail 4" if (a5 != 2.0) return "fail 5" if (a6 != 2f) return "fail 6" + if (a7 != 'B') return "fail 7" + if (a8 != 1) return "fail 8" return "OK" } \ No newline at end of file diff --git a/compiler/testData/codegen/box/binaryOp/intrinsicNullable.kt b/compiler/testData/codegen/box/binaryOp/intrinsicNullable.kt index 75288bc5be8..fdfc98f3bb4 100644 --- a/compiler/testData/codegen/box/binaryOp/intrinsicNullable.kt +++ b/compiler/testData/codegen/box/binaryOp/intrinsicNullable.kt @@ -5,6 +5,8 @@ fun box(): String { val a4: Long? = 1 + 1 val a5: Double? = 1.0 + 1 val a6: Float? = 1f + 1 + val a7: Char? = 'A' + 1 + val a8: Int? = 'B' - 'A' if (a1!! != 2.toByte()) return "fail 1" if (a2!! != 2.toShort()) return "fail 2" @@ -12,6 +14,8 @@ fun box(): String { if (a4!! != 2L) return "fail 4" if (a5!! != 2.0) return "fail 5" if (a6!! != 2f) return "fail 6" + if (a7!! != 'B') return "fail 7" + if (a8!! != 1) return "fail 8" return "OK" }