924898afb7
Merge-request: KT-MR-7905 Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com>
33 lines
602 B
Kotlin
Vendored
33 lines
602 B
Kotlin
Vendored
// IGNORE_BACKEND_K1: JS_IR, NATIVE
|
|
// ISSUE: KT-55318
|
|
// KT-55486: native linker error with `-Pkotlin.internal.native.test.cacheMode=STATIC_EVERYWHERE`
|
|
// IGNORE_BACKEND_K2: NATIVE
|
|
|
|
// MODULE: lib
|
|
// FILE: lib.kt
|
|
package repro
|
|
|
|
interface I<out InterfaceTP>
|
|
|
|
open class Super<SuperTP> {
|
|
fun foo(i: I</*redundant*/out SuperTP>) {}
|
|
}
|
|
|
|
class Sub<SubTP>: Super<SubTP>() {
|
|
/* override fun foo(i: I<out SubTP>) */
|
|
}
|
|
|
|
// MODULE: main(lib)
|
|
// FILE: main.kt
|
|
|
|
package repro
|
|
|
|
class User<UserTP> {
|
|
val sub = Sub<UserTP>()
|
|
fun foo(i: I<UserTP>) = sub.foo(i)
|
|
}
|
|
|
|
fun box(): String {
|
|
return "OK"
|
|
}
|