Add test for KT-53124
The issue itself is supposed to be fixed after eb19d39cbf reverted
^KT-53124 Fixed
This commit is contained in:
+6
@@ -14024,6 +14024,12 @@ public class DiagnosisCompilerTestFE10TestdataTestGenerated extends AbstractDiag
|
|||||||
runTest("compiler/testData/diagnostics/tests/inference/kt50232a.kt");
|
runTest("compiler/testData/diagnostics/tests/inference/kt50232a.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("kt53124.kt")
|
||||||
|
public void testKt53124() throws Exception {
|
||||||
|
runTest("compiler/testData/diagnostics/tests/inference/kt53124.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("kt6175.kt")
|
@TestMetadata("kt6175.kt")
|
||||||
public void testKt6175() throws Exception {
|
public void testKt6175() throws Exception {
|
||||||
|
|||||||
+6
@@ -14024,6 +14024,12 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirDiagnosti
|
|||||||
runTest("compiler/testData/diagnostics/tests/inference/kt50232a.kt");
|
runTest("compiler/testData/diagnostics/tests/inference/kt50232a.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("kt53124.kt")
|
||||||
|
public void testKt53124() throws Exception {
|
||||||
|
runTest("compiler/testData/diagnostics/tests/inference/kt53124.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("kt6175.kt")
|
@TestMetadata("kt6175.kt")
|
||||||
public void testKt6175() throws Exception {
|
public void testKt6175() throws Exception {
|
||||||
|
|||||||
+6
@@ -14024,6 +14024,12 @@ public class FirOldFrontendDiagnosticsWithLightTreeTestGenerated extends Abstrac
|
|||||||
runTest("compiler/testData/diagnostics/tests/inference/kt50232a.kt");
|
runTest("compiler/testData/diagnostics/tests/inference/kt50232a.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("kt53124.kt")
|
||||||
|
public void testKt53124() throws Exception {
|
||||||
|
runTest("compiler/testData/diagnostics/tests/inference/kt53124.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("kt6175.kt")
|
@TestMetadata("kt6175.kt")
|
||||||
public void testKt6175() throws Exception {
|
public void testKt6175() throws Exception {
|
||||||
|
|||||||
@@ -0,0 +1,26 @@
|
|||||||
|
// 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
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
package
|
||||||
|
|
||||||
|
package exp {
|
||||||
|
public val exp.Ns.Foo<*>.name: kotlin.String!
|
||||||
|
|
||||||
|
public final class Ns {
|
||||||
|
public constructor Ns()
|
||||||
|
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||||
|
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||||
|
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||||
|
|
||||||
|
public open class Bar</*0*/ U : exp.Ns.Element<U!>!> {
|
||||||
|
public constructor Bar</*0*/ U : exp.Ns.Element<U!>!>()
|
||||||
|
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||||
|
public open fun getName(): kotlin.String!
|
||||||
|
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||||
|
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||||
|
}
|
||||||
|
|
||||||
|
public open class Element</*0*/ E : exp.Ns.Element<E!>!> {
|
||||||
|
public constructor Element</*0*/ E : exp.Ns.Element<E!>!>()
|
||||||
|
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||||
|
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||||
|
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||||
|
}
|
||||||
|
|
||||||
|
public open class Foo</*0*/ T : exp.Ns.Element<T!>!> {
|
||||||
|
public constructor Foo</*0*/ T : exp.Ns.Element<T!>!>()
|
||||||
|
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||||
|
public open fun getBar(): exp.Ns.Bar<T!>!
|
||||||
|
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||||
|
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Generated
+6
@@ -14030,6 +14030,12 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
|
|||||||
runTest("compiler/testData/diagnostics/tests/inference/kt50232a.kt");
|
runTest("compiler/testData/diagnostics/tests/inference/kt50232a.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("kt53124.kt")
|
||||||
|
public void testKt53124() throws Exception {
|
||||||
|
runTest("compiler/testData/diagnostics/tests/inference/kt53124.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("kt6175.kt")
|
@TestMetadata("kt6175.kt")
|
||||||
public void testKt6175() throws Exception {
|
public void testKt6175() throws Exception {
|
||||||
|
|||||||
Reference in New Issue
Block a user