Introduce Variable: Do not compare explicit receivers using ReceiverValue

#KT-5319 Fixed
This commit is contained in:
Alexey Sedunov
2014-06-25 13:56:33 +04:00
parent 1452ffec6d
commit cd44bc3fb0
10 changed files with 116 additions and 6 deletions
@@ -0,0 +1,12 @@
class Bar {
}
class Foo() {
fun Bar.invoke(): Int = 1
}
fun main(args: Array<String>) {
val f = Foo()
println(<selection>Bar().f()</selection>)
println(Bar().f())
}