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

12 lines
310 B
Kotlin
Vendored

// PARAM_TYPES: kotlin.String?, kotlin.Comparable<String>?, kotlin.CharSequence?, kotlin.Any?
// PARAM_DESCRIPTOR: val s: kotlin.String? defined in foo
// SIBLING:
fun foo(): Int {
val s: String? = ""
return if (true) {
<selection>s!!.length</selection>
} else {
s!!.length
}
}