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

7 lines
158 B
Kotlin
Vendored

// FIX: "Replace with '?: error(...)'"
// WITH_RUNTIME
fun foo(p: Array<String?>) {
val v = p[0]
<caret>assert(v != null, { "Should be not null" })
}