Files
kotlin-fork/compiler/testData/diagnostics/tests/inference/kt53124.kt
T
Denis.Zharkov db1bd4f232 Add test for KT-53124
The issue itself is supposed to be fixed after eb19d39cbf reverted

^KT-53124 Fixed
2022-08-30 15:56:31 +00:00

27 lines
476 B
Kotlin
Vendored

// FIR_IDENTICAL
// FILE: exp/Ns.java
package exp;
public final class Ns {
public static class Element<E extends Element<E>> {}
public static class Foo<T extends Element<T>> {
public Bar<T> getBar() {
return new Bar<>();
}
}
public static class Bar<U extends Element<U>> {
public String getName() {
return "";
}
}
}
// FILE: exp/main.kt
package exp
val Ns.Foo<*>.name
get() = this.bar.name