FE: add test for KT-53408 to have stable behavior here
This commit is contained in:
+6
@@ -23106,6 +23106,12 @@ public class DiagnosisCompilerTestFE10TestdataTestGenerated extends AbstractDiag
|
||||
runTest("compiler/testData/diagnostics/tests/override/kt4785.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt53408.kt")
|
||||
public void testKt53408() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/override/kt53408.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt6014.kt")
|
||||
public void testKt6014() throws Exception {
|
||||
|
||||
+6
@@ -23106,6 +23106,12 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirDiagnosti
|
||||
runTest("compiler/testData/diagnostics/tests/override/kt4785.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt53408.kt")
|
||||
public void testKt53408() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/override/kt53408.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt6014.kt")
|
||||
public void testKt6014() throws Exception {
|
||||
|
||||
+6
@@ -23106,6 +23106,12 @@ public class FirOldFrontendDiagnosticsWithLightTreeTestGenerated extends Abstrac
|
||||
runTest("compiler/testData/diagnostics/tests/override/kt4785.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt53408.kt")
|
||||
public void testKt53408() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/override/kt53408.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt6014.kt")
|
||||
public void testKt6014() throws Exception {
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
// FIR_IDENTICAL
|
||||
interface A {
|
||||
fun f() { }
|
||||
}
|
||||
|
||||
interface B {
|
||||
fun f() { }
|
||||
}
|
||||
|
||||
abstract class C : A {
|
||||
abstract override fun f()
|
||||
}
|
||||
|
||||
class D : C(), A, B {
|
||||
override fun f() {
|
||||
super.f() // Resolves to super<B>.f call, but should be error
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
package
|
||||
|
||||
public interface A {
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open fun f(): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
public interface B {
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open fun f(): 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 C : A {
|
||||
public constructor C()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public abstract override /*1*/ fun f(): kotlin.Unit
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
public final class D : C, A, B {
|
||||
public constructor D()
|
||||
public open override /*3*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*3*/ fun f(): kotlin.Unit
|
||||
public open override /*3*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*3*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
Generated
+6
@@ -23112,6 +23112,12 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
|
||||
runTest("compiler/testData/diagnostics/tests/override/kt4785.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt53408.kt")
|
||||
public void testKt53408() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/override/kt53408.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("kt6014.kt")
|
||||
public void testKt6014() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user