11 lines
236 B
Kotlin
Vendored
11 lines
236 B
Kotlin
Vendored
// FIR_IDENTICAL
|
|
class Foo<T>
|
|
|
|
class Bar<T> {
|
|
fun <S : T> takeFoo(foo: Foo<in S>) {}
|
|
}
|
|
|
|
fun <K : <!FINAL_UPPER_BOUND!>String<!>> main() {
|
|
val foo = Foo<K>()
|
|
Bar<String>().takeFoo(foo) // error in 1.3.72, no error in 1.4.31
|
|
} |