[FE 1.0] Fix remaining codegen spec tests

This commit is contained in:
Dmitriy Novozhilov
2021-07-27 10:10:03 +03:00
committed by Mikhael Bogdanov
parent ee68962c02
commit 262c9e88d1
5 changed files with 9 additions and 5 deletions
@@ -18,6 +18,7 @@ internal open class A: `true`() {
val x2 = false
}
@Target(AnnotationTarget.CLASS, AnnotationTarget.TYPE)
annotation class `false`(val x2: Boolean)
@`false`(false) internal class B: @`false`(false) A() {}
@@ -40,4 +41,4 @@ fun box(): String? {
if (!checkClassName(`true`::class, "true")) return null
return "OK"
}
}
@@ -1 +1 @@
java.lang.IllegalStateException: NO_ELSE_IN_WHEN: 'when' expression must be exhaustive, add necessary 'false' branch or 'else' branch instead (15,17) in /1.2.kt
java.lang.IllegalStateException: NO_ELSE_IN_WHEN: 'when' expression must be exhaustive, add necessary 'true', 'false' branches or 'else' branch instead (15,17) in /1.2.kt
@@ -15,6 +15,7 @@ fun box(): String {
false -> { "NOK" }
!false -> { "OK" }
!false -> { "NOK" }
else -> { "NOK" }
}
return when2
}
}
@@ -1,3 +1,4 @@
// LANGUAGE: -SafeCallsAreAlwaysNullable
// WITH_RUNTIME
/*
@@ -70,4 +71,4 @@ operator fun B.plusAssign(c: Any?) {
}
class C
class C
@@ -1,3 +1,4 @@
// LANGUAGE: -SafeCallsAreAlwaysNullable
// WITH_RUNTIME
/*
@@ -70,4 +71,4 @@ infix operator fun B.plusAssign(c: Any?) {
}
class C
class C