Files
kotlin-fork/compiler/testData/diagnostics/tests/resolve/invoke/kt3833-invokeInsideNestedClass.kt
T
2013-09-13 16:04:17 +04:00

36 lines
439 B
Kotlin

//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()
}
}
}