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,17 @@
|
||||
enum class A {
|
||||
ONE
|
||||
TWO
|
||||
|
||||
fun invoke(i: Int) = i
|
||||
}
|
||||
|
||||
fun test() = A.<caret>ONE(1)
|
||||
|
||||
|
||||
Resolved call:
|
||||
|
||||
Resulting descriptor: enum entry ONE : A
|
||||
|
||||
Explicit receiver kind = NO_EXPLICIT_RECEIVER
|
||||
This object = NO_RECEIVER
|
||||
Receiver argument = NO_RECEIVER
|
||||
Reference in New Issue
Block a user