FE: add test reproducing KT-54049
This commit is contained in:
+6
@@ -19588,6 +19588,12 @@ public class DiagnosisCompilerTestFE10TestdataTestGenerated extends AbstractDiag
|
|||||||
runTest("compiler/testData/diagnostics/tests/java8Overrides/defaultVsAbstract.kt");
|
runTest("compiler/testData/diagnostics/tests/java8Overrides/defaultVsAbstract.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("falseManyImplementations.kt")
|
||||||
|
public void testFalseManyImplementations() throws Exception {
|
||||||
|
runTest("compiler/testData/diagnostics/tests/java8Overrides/falseManyImplementations.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("hidingMethodOfAny.kt")
|
@TestMetadata("hidingMethodOfAny.kt")
|
||||||
public void testHidingMethodOfAny() throws Exception {
|
public void testHidingMethodOfAny() throws Exception {
|
||||||
|
|||||||
+6
@@ -19588,6 +19588,12 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirDiagnosti
|
|||||||
runTest("compiler/testData/diagnostics/tests/java8Overrides/defaultVsAbstract.kt");
|
runTest("compiler/testData/diagnostics/tests/java8Overrides/defaultVsAbstract.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("falseManyImplementations.kt")
|
||||||
|
public void testFalseManyImplementations() throws Exception {
|
||||||
|
runTest("compiler/testData/diagnostics/tests/java8Overrides/falseManyImplementations.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("hidingMethodOfAny.kt")
|
@TestMetadata("hidingMethodOfAny.kt")
|
||||||
public void testHidingMethodOfAny() throws Exception {
|
public void testHidingMethodOfAny() throws Exception {
|
||||||
|
|||||||
+6
@@ -19588,6 +19588,12 @@ public class FirOldFrontendDiagnosticsWithLightTreeTestGenerated extends Abstrac
|
|||||||
runTest("compiler/testData/diagnostics/tests/java8Overrides/defaultVsAbstract.kt");
|
runTest("compiler/testData/diagnostics/tests/java8Overrides/defaultVsAbstract.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("falseManyImplementations.kt")
|
||||||
|
public void testFalseManyImplementations() throws Exception {
|
||||||
|
runTest("compiler/testData/diagnostics/tests/java8Overrides/falseManyImplementations.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("hidingMethodOfAny.kt")
|
@TestMetadata("hidingMethodOfAny.kt")
|
||||||
public void testHidingMethodOfAny() throws Exception {
|
public void testHidingMethodOfAny() throws Exception {
|
||||||
|
|||||||
+13
@@ -0,0 +1,13 @@
|
|||||||
|
abstract class ClassEmpty {
|
||||||
|
abstract fun foo()
|
||||||
|
}
|
||||||
|
|
||||||
|
interface BaseEmpty {
|
||||||
|
fun foo()
|
||||||
|
}
|
||||||
|
|
||||||
|
interface BaseDefault {
|
||||||
|
fun foo() {}
|
||||||
|
}
|
||||||
|
|
||||||
|
abstract <!MANY_IMPL_MEMBER_NOT_IMPLEMENTED!>class ClassEmpty_BaseEmpty_BaseDefault<!> : ClassEmpty(), BaseEmpty, BaseDefault
|
||||||
+13
@@ -0,0 +1,13 @@
|
|||||||
|
abstract class ClassEmpty {
|
||||||
|
abstract fun foo()
|
||||||
|
}
|
||||||
|
|
||||||
|
interface BaseEmpty {
|
||||||
|
fun foo()
|
||||||
|
}
|
||||||
|
|
||||||
|
interface BaseDefault {
|
||||||
|
fun foo() {}
|
||||||
|
}
|
||||||
|
|
||||||
|
abstract class ClassEmpty_BaseEmpty_BaseDefault : ClassEmpty(), BaseEmpty, BaseDefault
|
||||||
+31
@@ -0,0 +1,31 @@
|
|||||||
|
package
|
||||||
|
|
||||||
|
public interface BaseDefault {
|
||||||
|
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||||
|
public open fun foo(): kotlin.Unit
|
||||||
|
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||||
|
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||||
|
}
|
||||||
|
|
||||||
|
public interface BaseEmpty {
|
||||||
|
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||||
|
public abstract fun foo(): kotlin.Unit
|
||||||
|
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||||
|
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||||
|
}
|
||||||
|
|
||||||
|
public abstract class ClassEmpty {
|
||||||
|
public constructor ClassEmpty()
|
||||||
|
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||||
|
public abstract fun foo(): kotlin.Unit
|
||||||
|
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||||
|
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||||
|
}
|
||||||
|
|
||||||
|
public abstract class ClassEmpty_BaseEmpty_BaseDefault : ClassEmpty, BaseEmpty, BaseDefault {
|
||||||
|
public constructor ClassEmpty_BaseEmpty_BaseDefault()
|
||||||
|
public open override /*3*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||||
|
public open override /*3*/ /*fake_override*/ fun foo(): kotlin.Unit
|
||||||
|
public open override /*3*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||||
|
public open override /*3*/ /*fake_override*/ fun toString(): kotlin.String
|
||||||
|
}
|
||||||
Generated
+6
@@ -19594,6 +19594,12 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
|
|||||||
runTest("compiler/testData/diagnostics/tests/java8Overrides/defaultVsAbstract.kt");
|
runTest("compiler/testData/diagnostics/tests/java8Overrides/defaultVsAbstract.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("falseManyImplementations.kt")
|
||||||
|
public void testFalseManyImplementations() throws Exception {
|
||||||
|
runTest("compiler/testData/diagnostics/tests/java8Overrides/falseManyImplementations.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("hidingMethodOfAny.kt")
|
@TestMetadata("hidingMethodOfAny.kt")
|
||||||
public void testHidingMethodOfAny() throws Exception {
|
public void testHidingMethodOfAny() throws Exception {
|
||||||
|
|||||||
Reference in New Issue
Block a user