c4b4fa750c
#KT-1183 In Progress
16 lines
311 B
Kotlin
16 lines
311 B
Kotlin
class A {
|
|
fun 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"
|