Files
kotlin-fork/compiler/testData/cfg/expressions/parenthesizedSelector.kt
T
2014-07-28 13:07:34 +04:00

10 lines
147 B
Kotlin
Vendored

fun <T> with(t: T, f : T.() -> Unit) {
t.f()
}
val Int.foo: String.() -> Unit get() = {}
fun bar() {
with(1) {
"".(foo)()
}
}