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:
@@ -0,0 +1,18 @@
|
||||
object A {
|
||||
fun invoke(i: Int) = i
|
||||
}
|
||||
|
||||
fun test() = A<caret>(1)
|
||||
|
||||
|
||||
Resolved call:
|
||||
|
||||
Resulting descriptor: fun invoke(i: Int): Int
|
||||
|
||||
Explicit receiver kind = THIS_OBJECT
|
||||
This object = A {A}
|
||||
Receiver argument = NO_RECEIVER
|
||||
|
||||
Value arguments mapping:
|
||||
|
||||
SUCCESS i : Int = 1
|
||||
Reference in New Issue
Block a user