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:
Svetlana Isakova
2014-07-18 18:58:03 +04:00
parent 19d35b8ec6
commit e4e09d6c70
34 changed files with 551 additions and 22 deletions
@@ -0,0 +1,20 @@
class A {
class object {
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 {<class-object-for-A>}
Receiver argument = NO_RECEIVER
Value arguments mapping:
SUCCESS i : Int = 1