Resolve callable reference expressions
#KT-1183 In Progress
This commit is contained in:
@@ -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>
|
||||
}
|
||||
Reference in New Issue
Block a user