Add test for KT-53124

The issue itself is supposed to be fixed after eb19d39cbf reverted

^KT-53124 Fixed
This commit is contained in:
Denis.Zharkov
2022-08-26 09:46:14 +02:00
committed by teamcity
parent 42c41a1916
commit db1bd4f232
6 changed files with 85 additions and 0 deletions
@@ -14024,6 +14024,12 @@ public class DiagnosisCompilerTestFE10TestdataTestGenerated extends AbstractDiag
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
@TestMetadata("kt6175.kt")
public void testKt6175() throws Exception {
@@ -14024,6 +14024,12 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirDiagnosti
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
@TestMetadata("kt6175.kt")
public void testKt6175() throws Exception {
@@ -14024,6 +14024,12 @@ public class FirOldFrontendDiagnosticsWithLightTreeTestGenerated extends Abstrac
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
@TestMetadata("kt6175.kt")
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
}
}
}
@@ -14030,6 +14030,12 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
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
@TestMetadata("kt6175.kt")
public void testKt6175() throws Exception {