Files
kotlin-fork/idea/testData/intentions/simplifyAssertNotNull/errorFunctionInContext.kt.after
T
2016-01-18 15:34:20 +03:00

11 lines
209 B
Plaintext
Vendored

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