Pseudocode: Add test for parenthesized call in selector
This commit is contained in:
@@ -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)()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user