Files
kotlin-fork/compiler/testData/diagnostics/tests/callableReference/generic/boundViolated.kt
T
Dmitriy Novozhilov 6c7eb0167c [FIR] Report errors about type arguments on resolved qualifiers
^KT-56186 Fixed
^KT-56187 Fixed
^KT-59553
2023-06-22 07:09:15 +00:00

14 lines
279 B
Kotlin
Vendored

// FIR_IDENTICAL
// WITH_STDLIB
// ISSUE: KT-56187
class Foo<T : Number> {
val value: String = "OK"
val genericValue: T = null!!
}
fun main() {
val a = Foo<<!UPPER_BOUND_VIOLATED!>String<!>>::value
val b = Foo<<!UPPER_BOUND_VIOLATED!>String<!>>::genericValue
}