Files
kotlin/compiler/testData/codegen/box/functions/invoke/onObjects/invokeOnClassObject2.kt
Svetlana Isakova e4e09d6c70 Resolve invoke on class objects and enum entries
Added FakeCallableDescriptorForObject to make a resolved call
with object as variable in 'variable as function call'

 #KT-4321 Fixed
 #KT-4863 Fixed
2014-09-01 12:32:48 +04:00

12 lines
123 B
Kotlin

trait B
fun B.invoke(i: Int) = i
class A {
class object: B {
}
}
fun box() = if (A(42) == 42) "OK" else "fail"