8 lines
228 B
Plaintext
Vendored
8 lines
228 B
Plaintext
Vendored
// FIX: "Replace with '?: error(...)'"
|
|
// WITH_RUNTIME
|
|
|
|
fun foo(p: Array<String?>) {
|
|
val v = p[0] ?: error(/* null */ /* lazy message */"Should be not null")
|
|
// now let's check it for null
|
|
// 'v' should not be null
|
|
} |