Files
kotlin-fork/idea/testData/refactoring/introduceVariable/notNullAssertion.kt
T
Alexey Sedunov b18b888161 PSI Pattern Matching: Fix matching of !!
#KT-6021 Fixed
2014-10-15 15:41:47 +04:00

8 lines
145 B
Kotlin
Vendored

fun foo(): Int {
val s: String? = ""
return if (true) {
<selection>s!!.length</selection>
} else {
s!!.length
}
}