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,19 @@
class A
fun main() {
fun foo() {}
fun bar(<!UNUSED_PARAMETER!>x<!>: Int) {}
fun baz() = "OK"
class B {
fun A.ext() {
val x = ::foo
val y = ::bar
val z = ::baz
x : KFunction0<Unit>
y : KFunction1<Int, Unit>
z : KFunction0<String>
}
}
}