Files
kotlin-fork/idea/testData/intentions/simplifyAssertNotNull/commentsNoMessage.kt.after
T
2016-06-21 22:23:23 +03:00

9 lines
194 B
Plaintext
Vendored

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