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

8 lines
213 B
Kotlin
Vendored

// INTENTION_TEXT: "Replace with '!!' operator"
// WITH_RUNTIME
fun foo(p: Array<String?>) {
val v = p[0]
// now let's check it for null
<caret>assert(v != null /* null */) // 'v' should not be null
}