Files
kotlin-fork/idea/testData/intentions/convertToScope/convertToRun/callExpression.kt.after
T
2019-02-01 12:13:05 +03:00

16 lines
191 B
Plaintext
Vendored

// WITH_RUNTIME
class Foo {
fun foo(i: Int) {}
}
fun bar(i: Int, f: Foo) {}
fun test(f: Foo) {
val f2 = Foo()
f.run {
foo(1)
bar(2, this)
}
bar(3, f2)
}