552359ce03
#KT-7443 Fixed
12 lines
222 B
Kotlin
Vendored
12 lines
222 B
Kotlin
Vendored
// INTENTION_TEXT: "Replace with '?: error(...)'"
|
|
// WITH_RUNTIME
|
|
|
|
class C {
|
|
fun error(message: String) { }
|
|
|
|
fun foo(p: Array<String?>) {
|
|
val v = p[0]
|
|
<caret>assert(v != null) { "message" }
|
|
}
|
|
}
|