Files
kotlin-fork/idea/testData/inspectionsLocal/simplifyAssertNotNull/errorFunctionInContext.kt.after
T
2017-12-26 18:39:49 +03:00

11 lines
198 B
Plaintext
Vendored

// FIX: "Replace with '?: error(...)'"
// WITH_RUNTIME
class C {
fun error(message: String) { }
fun foo(p: Array<String?>) {
val v = p[0] <caret>?: kotlin.error("message")
}
}