K2/MPP: add test confirming proper work of KT-62024
#KT-62024 Obsolete
This commit is contained in:
committed by
Space Team
parent
50bfd19959
commit
c2d031254c
+6
@@ -24317,6 +24317,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
|
||||
@TestMetadata("compiler/testData/diagnostics/tests/multiplatform")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class Multiplatform {
|
||||
@Test
|
||||
@TestMetadata("actualClassDelegationWithImplicitType.kt")
|
||||
public void testActualClassDelegationWithImplicitType() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/multiplatform/actualClassDelegationWithImplicitType.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("actualFakeOverride.kt")
|
||||
public void testActualFakeOverride() throws Exception {
|
||||
|
||||
+6
@@ -24317,6 +24317,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
|
||||
@TestMetadata("compiler/testData/diagnostics/tests/multiplatform")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class Multiplatform {
|
||||
@Test
|
||||
@TestMetadata("actualClassDelegationWithImplicitType.kt")
|
||||
public void testActualClassDelegationWithImplicitType() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/multiplatform/actualClassDelegationWithImplicitType.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("actualFakeOverride.kt")
|
||||
public void testActualFakeOverride() throws Exception {
|
||||
|
||||
+6
@@ -20,6 +20,12 @@ import java.util.regex.Pattern;
|
||||
@TestMetadata("compiler/testData/diagnostics/tests/multiplatform")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class FirOldFrontendMPPDiagnosticsWithLightTreeTestGenerated extends AbstractFirLightTreeWithActualizerDiagnosticsTest {
|
||||
@Test
|
||||
@TestMetadata("actualClassDelegationWithImplicitType.kt")
|
||||
public void testActualClassDelegationWithImplicitType() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/multiplatform/actualClassDelegationWithImplicitType.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("actualFakeOverride.kt")
|
||||
public void testActualFakeOverride() throws Exception {
|
||||
|
||||
+6
@@ -20,6 +20,12 @@ import java.util.regex.Pattern;
|
||||
@TestMetadata("compiler/testData/diagnostics/tests/multiplatform")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class FirOldFrontendMPPDiagnosticsWithPsiTestGenerated extends AbstractFirPsiWithActualizerDiagnosticsTest {
|
||||
@Test
|
||||
@TestMetadata("actualClassDelegationWithImplicitType.kt")
|
||||
public void testActualClassDelegationWithImplicitType() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/multiplatform/actualClassDelegationWithImplicitType.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("actualFakeOverride.kt")
|
||||
public void testActualFakeOverride() throws Exception {
|
||||
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
// FIR_IDENTICAL
|
||||
// ISSUE: KT-62024
|
||||
// MODULE: m1-common
|
||||
// FILE: common.kt
|
||||
|
||||
expect class Foo {
|
||||
fun foo(): Int
|
||||
}
|
||||
|
||||
// MODULE: m2-jvm()()(m1-common)
|
||||
// FILE: jvm.kt
|
||||
|
||||
interface I {
|
||||
fun foo() = 1
|
||||
}
|
||||
|
||||
actual class Foo(i: I) : I by i
|
||||
|
||||
fun test(foo: Foo) {
|
||||
foo.foo()
|
||||
}
|
||||
Generated
+6
@@ -24317,6 +24317,12 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
|
||||
@TestMetadata("compiler/testData/diagnostics/tests/multiplatform")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
public class Multiplatform {
|
||||
@Test
|
||||
@TestMetadata("actualClassDelegationWithImplicitType.kt")
|
||||
public void testActualClassDelegationWithImplicitType() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/multiplatform/actualClassDelegationWithImplicitType.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("actualFakeOverride.kt")
|
||||
public void testActualFakeOverride() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user