Files
kotlin-fork/compiler/testData/cfg/conventions/getViaVar.kt
T
2015-05-26 19:28:07 +03:00

15 lines
180 B
Kotlin
Vendored

class Bar {
fun invoke(x: Int): Int = x
}
class Foo {
val get: Bar = Bar()
}
fun test1(foo: Foo) {
foo[1]
}
fun test2(foo: Foo, get: Foo.(Int) -> Int) {
foo[1]
}