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