Inline function: add extra tests taken from intellij-community
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
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)!!)
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user