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
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
import A.Nested
|
||||
|
||||
class A {
|
||||
class Nested {
|
||||
class object {
|
||||
fun invoke(i: Int) = i
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fun box() = if (Nested(42) == 42) "OK" else "fail"
|
||||
Reference in New Issue
Block a user