Pseudocode: Add test for parenthesized call in selector

This commit is contained in:
Alexey Sedunov
2014-07-25 15:49:19 +04:00
parent 85bb4f9b8e
commit 2a19016d58
5 changed files with 150 additions and 0 deletions
@@ -0,0 +1,10 @@
fun <T> with(t: T, f : T.() -> Unit) {
t.f()
}
val Int.foo: String.() -> Unit get() = {}
fun bar() {
with(1) {
"".(foo)()
}
}