Resolve callable reference expressions

#KT-1183 In Progress
This commit is contained in:
Alexander Udalov
2013-04-02 22:23:28 +04:00
parent 1db026aac5
commit c4b4fa750c
52 changed files with 1171 additions and 13 deletions
@@ -0,0 +1,25 @@
// FILE: a.kt
package first
class A {
fun foo() {}
fun bar(<!UNUSED_PARAMETER!>x<!>: Int) {}
fun baz() = "OK"
}
// FILE: b.kt
package other
import first.A
fun main() {
val x = first.A::foo
val y = first.A::bar
val z = A::baz
x : KMemberFunction0<A, Unit>
y : KMemberFunction1<A, Int, Unit>
z : KMemberFunction0<A, String>
}