mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-18 15:54:05 +00:00
Previously examples were failing with IllegalStateException from JVM back-end because there was an error type without any error reported
15 lines
396 B
Kotlin
Vendored
15 lines
396 B
Kotlin
Vendored
// !LANGUAGE: -BoundCallableReferences
|
|
|
|
class C { companion object }
|
|
val ok1 = C::hashCode
|
|
val fail1 = <!UNSUPPORTED_FEATURE!>C.Companion<!>::hashCode
|
|
|
|
object O
|
|
val fail2 = <!UNSUPPORTED_FEATURE!>O<!>::hashCode
|
|
|
|
fun hashCode() {}
|
|
|
|
val fail3 = <!UNSUPPORTED_FEATURE!>""<!>::hashCode
|
|
val fail4 = <!UNSUPPORTED_FEATURE!>(C)<!>::hashCode
|
|
val fail5 = <!UNSUPPORTED_FEATURE!>(C.Companion)<!>::hashCode
|