[FE 1.0] Fix remaining codegen spec tests
This commit is contained in:
committed by
Mikhael Bogdanov
parent
ee68962c02
commit
262c9e88d1
+2
-1
@@ -18,6 +18,7 @@ internal open class A: `true`() {
|
|||||||
val x2 = false
|
val x2 = false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Target(AnnotationTarget.CLASS, AnnotationTarget.TYPE)
|
||||||
annotation class `false`(val x2: Boolean)
|
annotation class `false`(val x2: Boolean)
|
||||||
|
|
||||||
@`false`(false) internal class B: @`false`(false) A() {}
|
@`false`(false) internal class B: @`false`(false) A() {}
|
||||||
@@ -40,4 +41,4 @@ fun box(): String? {
|
|||||||
if (!checkClassName(`true`::class, "true")) return null
|
if (!checkClassName(`true`::class, "true")) return null
|
||||||
|
|
||||||
return "OK"
|
return "OK"
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -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
|
||||||
|
|||||||
+2
-1
@@ -15,6 +15,7 @@ fun box(): String {
|
|||||||
false -> { "NOK" }
|
false -> { "NOK" }
|
||||||
!false -> { "OK" }
|
!false -> { "OK" }
|
||||||
!false -> { "NOK" }
|
!false -> { "NOK" }
|
||||||
|
else -> { "NOK" }
|
||||||
}
|
}
|
||||||
return when2
|
return when2
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-1
@@ -1,3 +1,4 @@
|
|||||||
|
// LANGUAGE: -SafeCallsAreAlwaysNullable
|
||||||
// WITH_RUNTIME
|
// WITH_RUNTIME
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -70,4 +71,4 @@ operator fun B.plusAssign(c: Any?) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
class C
|
class C
|
||||||
|
|||||||
+2
-1
@@ -1,3 +1,4 @@
|
|||||||
|
// LANGUAGE: -SafeCallsAreAlwaysNullable
|
||||||
// WITH_RUNTIME
|
// WITH_RUNTIME
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -70,4 +71,4 @@ infix operator fun B.plusAssign(c: Any?) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
class C
|
class C
|
||||||
|
|||||||
Reference in New Issue
Block a user