Files
kotlin-fork/compiler/testData/diagnostics/tests/resolve/invoke/kt3833-invokeInsideNestedClass.kt
T
Pavel V. Talanov 59f192ef90 Replace 'class object' with 'default object' in renderers and test data
Includes changes to decompiled text
Old syntax is used in builtins and project code for now
2015-03-06 19:36:54 +03:00

36 lines
443 B
Kotlin

//KT-3833 Invoke method not working inside default 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{
default object {
fun f(){
Foo.v()
}
}
}