c4b4fa750c
#KT-1183 In Progress
20 lines
350 B
Kotlin
20 lines
350 B
Kotlin
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>
|
|
}
|
|
}
|
|
}
|