mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 00:21:29 +00:00
Added FakeCallableDescriptorForObject to make a resolved call with object as variable in 'variable as function call' #KT-4321 Fixed #KT-4863 Fixed
12 lines
123 B
Kotlin
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"
|
|
|