Resolve callable reference expressions
#KT-1183 In Progress
This commit is contained in:
+17
@@ -0,0 +1,17 @@
|
||||
class B
|
||||
|
||||
class A {
|
||||
fun B.main() {
|
||||
val x = ::foo
|
||||
val y = ::bar
|
||||
val z = ::baz
|
||||
|
||||
x : KExtensionFunction0<A, Unit>
|
||||
y : KExtensionFunction1<A, Int, Unit>
|
||||
z : KExtensionFunction0<A, String>
|
||||
}
|
||||
}
|
||||
|
||||
fun A.foo() {}
|
||||
fun A.bar(<!UNUSED_PARAMETER!>x<!>: Int) {}
|
||||
fun A.baz() = "OK"
|
||||
Reference in New Issue
Block a user