mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-17 15:54:03 +00:00
21 lines
373 B
Kotlin
Vendored
21 lines
373 B
Kotlin
Vendored
// !CHECK_TYPE
|
|
// !DIAGNOSTICS: -UNUSED_EXPRESSION
|
|
import kotlin.reflect.KFunction0
|
|
|
|
class A {
|
|
class Nested
|
|
}
|
|
|
|
fun A.main() {
|
|
::Nested
|
|
val y = A::Nested
|
|
|
|
<!INAPPLICABLE_CANDIDATE!>checkSubtype<!><KFunction0<A.Nested>>(y)
|
|
}
|
|
|
|
fun Int.main() {
|
|
::Nested
|
|
val y = A::Nested
|
|
|
|
<!INAPPLICABLE_CANDIDATE!>checkSubtype<!><KFunction0<A.Nested>>(y)
|
|
} |