mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-17 08:31:29 +00:00
21 lines
299 B
Kotlin
Vendored
21 lines
299 B
Kotlin
Vendored
// !DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_EXPRESSION
|
|
class A {
|
|
fun Int.extInt() = 42
|
|
fun A.extA(x: String) = x
|
|
|
|
fun main() {
|
|
Int::extInt
|
|
A::extA
|
|
|
|
eat(Int::extInt)
|
|
eat(A::extA)
|
|
}
|
|
}
|
|
|
|
fun eat(value: Any) {}
|
|
|
|
fun main() {
|
|
A::extInt
|
|
A::extA
|
|
}
|