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

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" }
}
}