KT-3833 Invoke method not working inside class object?

#KT-3833 Fixed
This commit is contained in:
Svetlana Isakova
2013-09-11 16:26:20 +04:00
parent d50f65634a
commit 5f189a8c0f
3 changed files with 41 additions and 1 deletions
@@ -0,0 +1,35 @@
//KT-3833 Invoke method not working inside class object?
package m
class Either1 {
class Left() {
fun match(left: () -> Unit) {
left()
}
}
inner class Right() {
fun match(right: () -> Unit) {
right()
}
}
}
class X {
fun invoke() {
}
}
object Foo{
val v : X = X()
}
class C{
class object {
fun f(){
Foo.v()
}
}
}