954204da82
Report warning on extensions shadowed by members.
16 lines
208 B
Kotlin
Vendored
16 lines
208 B
Kotlin
Vendored
// !CHECK_TYPE
|
|
|
|
import kotlin.reflect.KFunction1
|
|
|
|
class A {
|
|
fun foo() = 42
|
|
}
|
|
|
|
fun A.<!EXTENSION_SHADOWED_BY_MEMBER!>foo<!>() {}
|
|
|
|
fun main() {
|
|
val x = A::foo
|
|
|
|
checkSubtype<KFunction1<A, Int>>(x)
|
|
}
|