mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-10 00:21:35 +00:00
26 lines
540 B
Kotlin
Vendored
26 lines
540 B
Kotlin
Vendored
// !LANGUAGE: -BoundCallableReferences
|
|
|
|
class C { companion object }
|
|
val ok1 = C::hashCode
|
|
val fail1 = <!UNSUPPORTED_FEATURE!>C.Companion<!>::hashCode
|
|
|
|
object O {
|
|
class Y {
|
|
companion object
|
|
}
|
|
}
|
|
val fail2 = <!UNSUPPORTED_FEATURE!>O<!>::hashCode
|
|
val ok2 = O::Y
|
|
val ok3 = O.Y::hashCode
|
|
|
|
enum class E {
|
|
Entry
|
|
}
|
|
val ok4 = E.Entry::hashCode
|
|
|
|
fun hashCode() {}
|
|
|
|
val fail3 = <!UNSUPPORTED_FEATURE!>""<!>::hashCode
|
|
val fail4 = <!UNSUPPORTED_FEATURE!>(C)<!>::hashCode
|
|
val fail5 = <!UNSUPPORTED_FEATURE!>(C.Companion)<!>::hashCode
|