Files
kotlin-fork/idea/testData/refactoring/inline/function/fromIntellij/CallUnderIf.kt
T

17 lines
278 B
Kotlin
Vendored

class Foo {
fun getComponent(i: Int?): String? {
return null
}
var myI: Int? = null
fun usage() {
if (myI != null)
method(myI)
}
fun <caret>method(i: Int?) {
println(getComponent(myI)!! + getComponent(i)!!)
}
}