12 lines
211 B
Kotlin
Vendored
12 lines
211 B
Kotlin
Vendored
// FIX: "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" }
|
|
}
|
|
}
|