[test] Add missing KMP IR text tests to "K1-only" and "K2-only" groups
^KT-60390
This commit is contained in:
committed by
Space Team
parent
0b3d64719f
commit
44d57c7751
+71
-33
@@ -1031,46 +1031,84 @@ public class FirLightTreeJvmIrTextTestGenerated extends AbstractFirLightTreeJvmI
|
|||||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations/multiplatform"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations/multiplatform"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Nested
|
||||||
@TestMetadata("K1_expectClassInherited.kt")
|
@TestMetadata("compiler/testData/ir/irText/declarations/multiplatform/k1")
|
||||||
public void testK1_expectClassInherited() throws Exception {
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
runTest("compiler/testData/ir/irText/declarations/multiplatform/K1_expectClassInherited.kt");
|
public class K1 {
|
||||||
|
@Test
|
||||||
|
public void testAllFilesPresentInK1() throws Exception {
|
||||||
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations/multiplatform/k1"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("expectClassInherited.kt")
|
||||||
|
public void testExpectClassInherited() throws Exception {
|
||||||
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k1/expectClassInherited.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("expectIntersectionOverride.kt")
|
||||||
|
public void testExpectIntersectionOverride() throws Exception {
|
||||||
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k1/expectIntersectionOverride.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("expectMemberInNotExpectClass.kt")
|
||||||
|
public void testExpectMemberInNotExpectClass() throws Exception {
|
||||||
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k1/expectMemberInNotExpectClass.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("expectedEnumClass.kt")
|
||||||
|
public void testExpectedEnumClass() throws Exception {
|
||||||
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k1/expectedEnumClass.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("expectedSealedClass.kt")
|
||||||
|
public void testExpectedSealedClass() throws Exception {
|
||||||
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k1/expectedSealedClass.kt");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Nested
|
||||||
@TestMetadata("K1_expectMemberInNotExpectClass.kt")
|
@TestMetadata("compiler/testData/ir/irText/declarations/multiplatform/k2")
|
||||||
public void testK1_expectMemberInNotExpectClass() throws Exception {
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
runTest("compiler/testData/ir/irText/declarations/multiplatform/K1_expectMemberInNotExpectClass.kt");
|
public class K2 {
|
||||||
}
|
@Test
|
||||||
|
public void testAllFilesPresentInK2() throws Exception {
|
||||||
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations/multiplatform/k2"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("K1_expectedEnumClass.kt")
|
@TestMetadata("expectClassInherited.kt")
|
||||||
public void testK1_expectedEnumClass() throws Exception {
|
public void testExpectClassInherited() throws Exception {
|
||||||
runTest("compiler/testData/ir/irText/declarations/multiplatform/K1_expectedEnumClass.kt");
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k2/expectClassInherited.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("K1_expectedSealedClass.kt")
|
@TestMetadata("expectIntersectionOverride.kt")
|
||||||
public void testK1_expectedSealedClass() throws Exception {
|
public void testExpectIntersectionOverride() throws Exception {
|
||||||
runTest("compiler/testData/ir/irText/declarations/multiplatform/K1_expectedSealedClass.kt");
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k2/expectIntersectionOverride.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("K2_expectIntersectionOverride.kt")
|
@TestMetadata("expectMemberInNotExpectClass.kt")
|
||||||
public void testK2_expectIntersectionOverride() throws Exception {
|
public void testExpectMemberInNotExpectClass() throws Exception {
|
||||||
runTest("compiler/testData/ir/irText/declarations/multiplatform/K2_expectIntersectionOverride.kt");
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k2/expectMemberInNotExpectClass.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("K2_expectMemberInNotExpectClass.kt")
|
@TestMetadata("expectedEnumClass.kt")
|
||||||
public void testK2_expectMemberInNotExpectClass() throws Exception {
|
public void testExpectedEnumClass() throws Exception {
|
||||||
runTest("compiler/testData/ir/irText/declarations/multiplatform/K2_expectMemberInNotExpectClass.kt");
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k2/expectedEnumClass.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("K2_expectedEnumClass.kt")
|
@TestMetadata("expectedSealedClass.kt")
|
||||||
public void testK2_expectedEnumClass() throws Exception {
|
public void testExpectedSealedClass() throws Exception {
|
||||||
runTest("compiler/testData/ir/irText/declarations/multiplatform/K2_expectedEnumClass.kt");
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k2/expectedSealedClass.kt");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/ir/FirPsiJvmIrTextTestGenerated.java
Generated
+71
-33
@@ -1031,46 +1031,84 @@ public class FirPsiJvmIrTextTestGenerated extends AbstractFirPsiJvmIrTextTest {
|
|||||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations/multiplatform"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations/multiplatform"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Nested
|
||||||
@TestMetadata("K1_expectClassInherited.kt")
|
@TestMetadata("compiler/testData/ir/irText/declarations/multiplatform/k1")
|
||||||
public void testK1_expectClassInherited() throws Exception {
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
runTest("compiler/testData/ir/irText/declarations/multiplatform/K1_expectClassInherited.kt");
|
public class K1 {
|
||||||
|
@Test
|
||||||
|
public void testAllFilesPresentInK1() throws Exception {
|
||||||
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations/multiplatform/k1"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("expectClassInherited.kt")
|
||||||
|
public void testExpectClassInherited() throws Exception {
|
||||||
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k1/expectClassInherited.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("expectIntersectionOverride.kt")
|
||||||
|
public void testExpectIntersectionOverride() throws Exception {
|
||||||
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k1/expectIntersectionOverride.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("expectMemberInNotExpectClass.kt")
|
||||||
|
public void testExpectMemberInNotExpectClass() throws Exception {
|
||||||
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k1/expectMemberInNotExpectClass.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("expectedEnumClass.kt")
|
||||||
|
public void testExpectedEnumClass() throws Exception {
|
||||||
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k1/expectedEnumClass.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("expectedSealedClass.kt")
|
||||||
|
public void testExpectedSealedClass() throws Exception {
|
||||||
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k1/expectedSealedClass.kt");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Nested
|
||||||
@TestMetadata("K1_expectMemberInNotExpectClass.kt")
|
@TestMetadata("compiler/testData/ir/irText/declarations/multiplatform/k2")
|
||||||
public void testK1_expectMemberInNotExpectClass() throws Exception {
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
runTest("compiler/testData/ir/irText/declarations/multiplatform/K1_expectMemberInNotExpectClass.kt");
|
public class K2 {
|
||||||
}
|
@Test
|
||||||
|
public void testAllFilesPresentInK2() throws Exception {
|
||||||
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations/multiplatform/k2"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("K1_expectedEnumClass.kt")
|
@TestMetadata("expectClassInherited.kt")
|
||||||
public void testK1_expectedEnumClass() throws Exception {
|
public void testExpectClassInherited() throws Exception {
|
||||||
runTest("compiler/testData/ir/irText/declarations/multiplatform/K1_expectedEnumClass.kt");
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k2/expectClassInherited.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("K1_expectedSealedClass.kt")
|
@TestMetadata("expectIntersectionOverride.kt")
|
||||||
public void testK1_expectedSealedClass() throws Exception {
|
public void testExpectIntersectionOverride() throws Exception {
|
||||||
runTest("compiler/testData/ir/irText/declarations/multiplatform/K1_expectedSealedClass.kt");
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k2/expectIntersectionOverride.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("K2_expectIntersectionOverride.kt")
|
@TestMetadata("expectMemberInNotExpectClass.kt")
|
||||||
public void testK2_expectIntersectionOverride() throws Exception {
|
public void testExpectMemberInNotExpectClass() throws Exception {
|
||||||
runTest("compiler/testData/ir/irText/declarations/multiplatform/K2_expectIntersectionOverride.kt");
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k2/expectMemberInNotExpectClass.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("K2_expectMemberInNotExpectClass.kt")
|
@TestMetadata("expectedEnumClass.kt")
|
||||||
public void testK2_expectMemberInNotExpectClass() throws Exception {
|
public void testExpectedEnumClass() throws Exception {
|
||||||
runTest("compiler/testData/ir/irText/declarations/multiplatform/K2_expectMemberInNotExpectClass.kt");
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k2/expectedEnumClass.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("K2_expectedEnumClass.kt")
|
@TestMetadata("expectedSealedClass.kt")
|
||||||
public void testK2_expectedEnumClass() throws Exception {
|
public void testExpectedSealedClass() throws Exception {
|
||||||
runTest("compiler/testData/ir/irText/declarations/multiplatform/K2_expectedEnumClass.kt");
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k2/expectedSealedClass.kt");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Vendored
+125
@@ -0,0 +1,125 @@
|
|||||||
|
FILE fqName:<root> fileName:/expectIntersectionOverride.kt
|
||||||
|
CLASS INTERFACE name:I1 modality:ABSTRACT visibility:public superTypes:[kotlin.Any]
|
||||||
|
$this: VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.I1
|
||||||
|
FUN name:f visibility:public modality:ABSTRACT <> ($this:<root>.I1) returnType:kotlin.String
|
||||||
|
$this: VALUE_PARAMETER name:<this> type:<root>.I1
|
||||||
|
PROPERTY name:p visibility:public modality:ABSTRACT [val]
|
||||||
|
FUN DEFAULT_PROPERTY_ACCESSOR name:<get-p> visibility:public modality:ABSTRACT <> ($this:<root>.I1) returnType:kotlin.Int
|
||||||
|
correspondingProperty: PROPERTY name:p visibility:public modality:ABSTRACT [val]
|
||||||
|
$this: VALUE_PARAMETER name:<this> type:<root>.I1
|
||||||
|
FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator]
|
||||||
|
overridden:
|
||||||
|
public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any
|
||||||
|
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||||
|
VALUE_PARAMETER name:other index:0 type:kotlin.Any?
|
||||||
|
FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.Int [fake_override]
|
||||||
|
overridden:
|
||||||
|
public open fun hashCode (): kotlin.Int declared in kotlin.Any
|
||||||
|
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||||
|
FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String [fake_override]
|
||||||
|
overridden:
|
||||||
|
public open fun toString (): kotlin.String declared in kotlin.Any
|
||||||
|
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||||
|
CLASS INTERFACE name:I2 modality:ABSTRACT visibility:public superTypes:[kotlin.Any]
|
||||||
|
$this: VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.I2
|
||||||
|
FUN name:f visibility:public modality:ABSTRACT <> ($this:<root>.I2) returnType:kotlin.String
|
||||||
|
$this: VALUE_PARAMETER name:<this> type:<root>.I2
|
||||||
|
PROPERTY name:p visibility:public modality:ABSTRACT [val]
|
||||||
|
FUN DEFAULT_PROPERTY_ACCESSOR name:<get-p> visibility:public modality:ABSTRACT <> ($this:<root>.I2) returnType:kotlin.Int
|
||||||
|
correspondingProperty: PROPERTY name:p visibility:public modality:ABSTRACT [val]
|
||||||
|
$this: VALUE_PARAMETER name:<this> type:<root>.I2
|
||||||
|
FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator]
|
||||||
|
overridden:
|
||||||
|
public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any
|
||||||
|
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||||
|
VALUE_PARAMETER name:other index:0 type:kotlin.Any?
|
||||||
|
FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.Int [fake_override]
|
||||||
|
overridden:
|
||||||
|
public open fun hashCode (): kotlin.Int declared in kotlin.Any
|
||||||
|
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||||
|
FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String [fake_override]
|
||||||
|
overridden:
|
||||||
|
public open fun toString (): kotlin.String declared in kotlin.Any
|
||||||
|
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||||
|
CLASS CLASS name:C modality:FINAL visibility:public [expect] superTypes:[<root>.I1; <root>.I2]
|
||||||
|
$this: VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.C
|
||||||
|
CONSTRUCTOR visibility:public <> () returnType:<root>.C [primary,expect]
|
||||||
|
FUN name:f visibility:public modality:OPEN <> ($this:<root>.C) returnType:kotlin.String [expect]
|
||||||
|
overridden:
|
||||||
|
public abstract fun f (): kotlin.String declared in <root>.I1
|
||||||
|
public abstract fun f (): kotlin.String declared in <root>.I2
|
||||||
|
$this: VALUE_PARAMETER name:<this> type:<root>.C
|
||||||
|
PROPERTY name:p visibility:public modality:OPEN [expect,val]
|
||||||
|
overridden:
|
||||||
|
public abstract p: kotlin.Int
|
||||||
|
public abstract p: kotlin.Int
|
||||||
|
FIELD PROPERTY_BACKING_FIELD name:p type:kotlin.Int visibility:private [final]
|
||||||
|
FUN DEFAULT_PROPERTY_ACCESSOR name:<get-p> visibility:public modality:OPEN <> ($this:<root>.C) returnType:kotlin.Int
|
||||||
|
correspondingProperty: PROPERTY name:p visibility:public modality:OPEN [expect,val]
|
||||||
|
overridden:
|
||||||
|
public abstract fun <get-p> (): kotlin.Int declared in <root>.I1
|
||||||
|
public abstract fun <get-p> (): kotlin.Int declared in <root>.I2
|
||||||
|
$this: VALUE_PARAMETER name:<this> type:<root>.C
|
||||||
|
FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator]
|
||||||
|
overridden:
|
||||||
|
public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in <root>.I1
|
||||||
|
public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in <root>.I2
|
||||||
|
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||||
|
VALUE_PARAMETER name:other index:0 type:kotlin.Any?
|
||||||
|
FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.Int [fake_override]
|
||||||
|
overridden:
|
||||||
|
public open fun hashCode (): kotlin.Int declared in <root>.I1
|
||||||
|
public open fun hashCode (): kotlin.Int declared in <root>.I2
|
||||||
|
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||||
|
FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String [fake_override]
|
||||||
|
overridden:
|
||||||
|
public open fun toString (): kotlin.String declared in <root>.I1
|
||||||
|
public open fun toString (): kotlin.String declared in <root>.I2
|
||||||
|
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||||
|
CLASS CLASS name:C modality:FINAL visibility:public superTypes:[<root>.I1; <root>.I2]
|
||||||
|
$this: VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.C
|
||||||
|
CONSTRUCTOR visibility:public <> () returnType:<root>.C [primary]
|
||||||
|
BLOCK_BODY
|
||||||
|
DELEGATING_CONSTRUCTOR_CALL 'public constructor <init> () declared in kotlin.Any'
|
||||||
|
INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C modality:FINAL visibility:public superTypes:[<root>.I1; <root>.I2]'
|
||||||
|
FUN name:f visibility:public modality:OPEN <> ($this:<root>.C) returnType:kotlin.String
|
||||||
|
overridden:
|
||||||
|
public abstract fun f (): kotlin.String declared in <root>.I1
|
||||||
|
public abstract fun f (): kotlin.String declared in <root>.I2
|
||||||
|
$this: VALUE_PARAMETER name:<this> type:<root>.C
|
||||||
|
BLOCK_BODY
|
||||||
|
RETURN type=kotlin.Nothing from='public open fun f (): kotlin.String declared in <root>.C'
|
||||||
|
CONST String type=kotlin.String value="OK"
|
||||||
|
PROPERTY name:p visibility:public modality:OPEN [val]
|
||||||
|
overridden:
|
||||||
|
public abstract p: kotlin.Int
|
||||||
|
public abstract p: kotlin.Int
|
||||||
|
FIELD PROPERTY_BACKING_FIELD name:p type:kotlin.Int visibility:private [final]
|
||||||
|
EXPRESSION_BODY
|
||||||
|
CONST Int type=kotlin.Int value=42
|
||||||
|
FUN DEFAULT_PROPERTY_ACCESSOR name:<get-p> visibility:public modality:OPEN <> ($this:<root>.C) returnType:kotlin.Int
|
||||||
|
correspondingProperty: PROPERTY name:p visibility:public modality:OPEN [val]
|
||||||
|
overridden:
|
||||||
|
public abstract fun <get-p> (): kotlin.Int declared in <root>.I1
|
||||||
|
public abstract fun <get-p> (): kotlin.Int declared in <root>.I2
|
||||||
|
$this: VALUE_PARAMETER name:<this> type:<root>.C
|
||||||
|
BLOCK_BODY
|
||||||
|
RETURN type=kotlin.Nothing from='public open fun <get-p> (): kotlin.Int declared in <root>.C'
|
||||||
|
GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:p type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null
|
||||||
|
receiver: GET_VAR '<this>: <root>.C declared in <root>.C.<get-p>' type=<root>.C origin=null
|
||||||
|
FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator]
|
||||||
|
overridden:
|
||||||
|
public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in <root>.I1
|
||||||
|
public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in <root>.I2
|
||||||
|
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||||
|
VALUE_PARAMETER name:other index:0 type:kotlin.Any?
|
||||||
|
FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.Int [fake_override]
|
||||||
|
overridden:
|
||||||
|
public open fun hashCode (): kotlin.Int declared in <root>.I1
|
||||||
|
public open fun hashCode (): kotlin.Int declared in <root>.I2
|
||||||
|
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||||
|
FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String [fake_override]
|
||||||
|
overridden:
|
||||||
|
public open fun toString (): kotlin.String declared in <root>.I1
|
||||||
|
public open fun toString (): kotlin.String declared in <root>.I2
|
||||||
|
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||||
+24
@@ -0,0 +1,24 @@
|
|||||||
|
// IGNORE_BACKEND_K2: ANY
|
||||||
|
// ^^^ In FIR, declaring the same `expect` and `actual` classes in one compiler module is not possible (see KT-55177).
|
||||||
|
|
||||||
|
// !LANGUAGE: +MultiPlatformProjects
|
||||||
|
|
||||||
|
interface I1 {
|
||||||
|
fun f(): String
|
||||||
|
val p: Int
|
||||||
|
}
|
||||||
|
|
||||||
|
interface I2 {
|
||||||
|
fun f(): String
|
||||||
|
val p: Int
|
||||||
|
}
|
||||||
|
|
||||||
|
expect class C() : I1, I2 {
|
||||||
|
override fun f(): String
|
||||||
|
override val p: Int
|
||||||
|
}
|
||||||
|
|
||||||
|
actual class C : I1, I2 {
|
||||||
|
actual override fun f() = "OK"
|
||||||
|
actual override val p = 42
|
||||||
|
}
|
||||||
Vendored
+42
@@ -0,0 +1,42 @@
|
|||||||
|
interface I1 {
|
||||||
|
abstract fun f(): String
|
||||||
|
|
||||||
|
abstract val p: Int
|
||||||
|
abstract get
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
interface I2 {
|
||||||
|
abstract fun f(): String
|
||||||
|
|
||||||
|
abstract val p: Int
|
||||||
|
abstract get
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
expect class C : I1, I2 {
|
||||||
|
expect constructor() /* primary */
|
||||||
|
|
||||||
|
expect override fun f(): String
|
||||||
|
|
||||||
|
expect override val p: Int
|
||||||
|
override get
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
class C : I1, I2 {
|
||||||
|
constructor() /* primary */ {
|
||||||
|
super/*Any*/()
|
||||||
|
/* <init>() */
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun f(): String {
|
||||||
|
return "OK"
|
||||||
|
}
|
||||||
|
|
||||||
|
override val p: Int
|
||||||
|
field = 42
|
||||||
|
override get
|
||||||
|
|
||||||
|
}
|
||||||
Vendored
+135
@@ -0,0 +1,135 @@
|
|||||||
|
// CHECK:
|
||||||
|
// Mangled name: C
|
||||||
|
// Public signature: /C|null[1]
|
||||||
|
expect class C : I1, I2 {
|
||||||
|
// CHECK:
|
||||||
|
// Mangled name: C{}p
|
||||||
|
// Public signature: /C.p|6715504260787941082[1]
|
||||||
|
// Public signature debug description: {}p
|
||||||
|
expect override val p: Int
|
||||||
|
// CHECK JS_IR NATIVE:
|
||||||
|
// Mangled name: C#<get-p>(){}
|
||||||
|
// Public signature: /C.p.<get-p>|-1162552463316289847[1]
|
||||||
|
// Public signature debug description: <get-p>(){}
|
||||||
|
// CHECK JVM_IR:
|
||||||
|
// Mangled name: C#<get-p>(){}kotlin.Int
|
||||||
|
// Public signature: /C.p.<get-p>|5329635969197638839[1]
|
||||||
|
// Public signature debug description: <get-p>(){}kotlin.Int
|
||||||
|
override get
|
||||||
|
|
||||||
|
// CHECK:
|
||||||
|
// Mangled name: C#<init>(){}
|
||||||
|
// Public signature: /C.<init>|-5645683436151566731[1]
|
||||||
|
// Public signature debug description: <init>(){}
|
||||||
|
expect constructor() /* primary */
|
||||||
|
|
||||||
|
// CHECK JS_IR NATIVE:
|
||||||
|
// Mangled name: C#f(){}
|
||||||
|
// Public signature: /C.f|5316533450599009716[1]
|
||||||
|
// Public signature debug description: f(){}
|
||||||
|
// CHECK JVM_IR:
|
||||||
|
// Mangled name: C#f(){}kotlin.String
|
||||||
|
// Public signature: /C.f|9098388873611041001[1]
|
||||||
|
// Public signature debug description: f(){}kotlin.String
|
||||||
|
expect override fun f(): String
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// CHECK:
|
||||||
|
// Mangled name: C
|
||||||
|
// Public signature: /C|null[0]
|
||||||
|
class C : I1, I2 {
|
||||||
|
// CHECK:
|
||||||
|
// Mangled name: C{}p
|
||||||
|
// Public signature: /C.p|6715504260787941082[0]
|
||||||
|
// Public signature debug description: {}p
|
||||||
|
override val p: Int
|
||||||
|
// CHECK JS_IR NATIVE:
|
||||||
|
// Mangled name: C#<get-p>(){}
|
||||||
|
// Public signature: /C.p.<get-p>|-1162552463316289847[0]
|
||||||
|
// Public signature debug description: <get-p>(){}
|
||||||
|
// CHECK JVM_IR:
|
||||||
|
// Mangled name: C#<get-p>(){}kotlin.Int
|
||||||
|
// Public signature: /C.p.<get-p>|5329635969197638839[0]
|
||||||
|
// Public signature debug description: <get-p>(){}kotlin.Int
|
||||||
|
override get
|
||||||
|
|
||||||
|
// CHECK:
|
||||||
|
// Mangled name: C#<init>(){}
|
||||||
|
// Public signature: /C.<init>|-5645683436151566731[0]
|
||||||
|
// Public signature debug description: <init>(){}
|
||||||
|
constructor() /* primary */
|
||||||
|
|
||||||
|
// CHECK JS_IR NATIVE:
|
||||||
|
// Mangled name: C#f(){}
|
||||||
|
// Public signature: /C.f|5316533450599009716[0]
|
||||||
|
// Public signature debug description: f(){}
|
||||||
|
// CHECK JVM_IR:
|
||||||
|
// Mangled name: C#f(){}kotlin.String
|
||||||
|
// Public signature: /C.f|9098388873611041001[0]
|
||||||
|
// Public signature debug description: f(){}kotlin.String
|
||||||
|
override fun f(): String
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// CHECK:
|
||||||
|
// Mangled name: I1
|
||||||
|
// Public signature: /I1|null[0]
|
||||||
|
interface I1 {
|
||||||
|
// CHECK JS_IR NATIVE:
|
||||||
|
// Mangled name: I1#f(){}
|
||||||
|
// Public signature: /I1.f|5316533450599009716[0]
|
||||||
|
// Public signature debug description: f(){}
|
||||||
|
// CHECK JVM_IR:
|
||||||
|
// Mangled name: I1#f(){}kotlin.String
|
||||||
|
// Public signature: /I1.f|9098388873611041001[0]
|
||||||
|
// Public signature debug description: f(){}kotlin.String
|
||||||
|
abstract fun f(): String
|
||||||
|
|
||||||
|
// CHECK:
|
||||||
|
// Mangled name: I1{}p
|
||||||
|
// Public signature: /I1.p|6715504260787941082[0]
|
||||||
|
// Public signature debug description: {}p
|
||||||
|
abstract val p: Int
|
||||||
|
// CHECK JS_IR NATIVE:
|
||||||
|
// Mangled name: I1#<get-p>(){}
|
||||||
|
// Public signature: /I1.p.<get-p>|-1162552463316289847[0]
|
||||||
|
// Public signature debug description: <get-p>(){}
|
||||||
|
// CHECK JVM_IR:
|
||||||
|
// Mangled name: I1#<get-p>(){}kotlin.Int
|
||||||
|
// Public signature: /I1.p.<get-p>|5329635969197638839[0]
|
||||||
|
// Public signature debug description: <get-p>(){}kotlin.Int
|
||||||
|
abstract get
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// CHECK:
|
||||||
|
// Mangled name: I2
|
||||||
|
// Public signature: /I2|null[0]
|
||||||
|
interface I2 {
|
||||||
|
// CHECK JS_IR NATIVE:
|
||||||
|
// Mangled name: I2#f(){}
|
||||||
|
// Public signature: /I2.f|5316533450599009716[0]
|
||||||
|
// Public signature debug description: f(){}
|
||||||
|
// CHECK JVM_IR:
|
||||||
|
// Mangled name: I2#f(){}kotlin.String
|
||||||
|
// Public signature: /I2.f|9098388873611041001[0]
|
||||||
|
// Public signature debug description: f(){}kotlin.String
|
||||||
|
abstract fun f(): String
|
||||||
|
|
||||||
|
// CHECK:
|
||||||
|
// Mangled name: I2{}p
|
||||||
|
// Public signature: /I2.p|6715504260787941082[0]
|
||||||
|
// Public signature debug description: {}p
|
||||||
|
abstract val p: Int
|
||||||
|
// CHECK JS_IR NATIVE:
|
||||||
|
// Mangled name: I2#<get-p>(){}
|
||||||
|
// Public signature: /I2.p.<get-p>|-1162552463316289847[0]
|
||||||
|
// Public signature debug description: <get-p>(){}
|
||||||
|
// CHECK JVM_IR:
|
||||||
|
// Mangled name: I2#<get-p>(){}kotlin.Int
|
||||||
|
// Public signature: /I2.p.<get-p>|5329635969197638839[0]
|
||||||
|
// Public signature debug description: <get-p>(){}kotlin.Int
|
||||||
|
abstract get
|
||||||
|
|
||||||
|
}
|
||||||
+52
@@ -0,0 +1,52 @@
|
|||||||
|
FILE fqName:<root> fileName:/common.kt
|
||||||
|
FILE fqName:<root> fileName:/platform.kt
|
||||||
|
CLASS CLASS name:A modality:ABSTRACT visibility:public superTypes:[kotlin.Any]
|
||||||
|
$this: VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.A
|
||||||
|
CONSTRUCTOR visibility:protected <> () returnType:<root>.A [primary]
|
||||||
|
BLOCK_BODY
|
||||||
|
DELEGATING_CONSTRUCTOR_CALL 'public constructor <init> () declared in kotlin.Any'
|
||||||
|
INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:A modality:ABSTRACT visibility:public superTypes:[kotlin.Any]'
|
||||||
|
FUN name:foo visibility:public modality:ABSTRACT <> ($this:<root>.A) returnType:kotlin.Unit
|
||||||
|
$this: VALUE_PARAMETER name:<this> type:<root>.A
|
||||||
|
FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator]
|
||||||
|
overridden:
|
||||||
|
public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any
|
||||||
|
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||||
|
VALUE_PARAMETER name:other index:0 type:kotlin.Any?
|
||||||
|
FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.Int [fake_override]
|
||||||
|
overridden:
|
||||||
|
public open fun hashCode (): kotlin.Int declared in kotlin.Any
|
||||||
|
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||||
|
FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String [fake_override]
|
||||||
|
overridden:
|
||||||
|
public open fun toString (): kotlin.String declared in kotlin.Any
|
||||||
|
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||||
|
CLASS CLASS name:B modality:OPEN visibility:public superTypes:[<root>.A]
|
||||||
|
$this: VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.B
|
||||||
|
CONSTRUCTOR visibility:public <> (i:kotlin.Int) returnType:<root>.B [primary]
|
||||||
|
VALUE_PARAMETER name:i index:0 type:kotlin.Int
|
||||||
|
BLOCK_BODY
|
||||||
|
DELEGATING_CONSTRUCTOR_CALL 'protected constructor <init> () declared in <root>.A'
|
||||||
|
INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:B modality:OPEN visibility:public superTypes:[<root>.A]'
|
||||||
|
FUN name:foo visibility:public modality:OPEN <> ($this:<root>.B) returnType:kotlin.Unit
|
||||||
|
overridden:
|
||||||
|
public abstract fun foo (): kotlin.Unit declared in <root>.A
|
||||||
|
$this: VALUE_PARAMETER name:<this> type:<root>.B
|
||||||
|
BLOCK_BODY
|
||||||
|
FUN name:bar visibility:public modality:OPEN <> ($this:<root>.B, s:kotlin.String) returnType:kotlin.Unit
|
||||||
|
$this: VALUE_PARAMETER name:<this> type:<root>.B
|
||||||
|
VALUE_PARAMETER name:s index:0 type:kotlin.String
|
||||||
|
BLOCK_BODY
|
||||||
|
FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator]
|
||||||
|
overridden:
|
||||||
|
public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in <root>.A
|
||||||
|
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||||
|
VALUE_PARAMETER name:other index:0 type:kotlin.Any?
|
||||||
|
FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.Int [fake_override]
|
||||||
|
overridden:
|
||||||
|
public open fun hashCode (): kotlin.Int declared in <root>.A
|
||||||
|
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||||
|
FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String [fake_override]
|
||||||
|
overridden:
|
||||||
|
public open fun toString (): kotlin.String declared in <root>.A
|
||||||
|
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||||
+29
@@ -0,0 +1,29 @@
|
|||||||
|
// IGNORE_BACKEND_K1: ANY
|
||||||
|
// ^^^ K1 as well as K1-based test infra do not support "fragment refinement".
|
||||||
|
|
||||||
|
// FIR_IDENTICAL
|
||||||
|
// !LANGUAGE: +MultiPlatformProjects
|
||||||
|
|
||||||
|
// MODULE: common
|
||||||
|
// FILE: common.kt
|
||||||
|
|
||||||
|
expect abstract class A protected constructor() {
|
||||||
|
abstract fun foo()
|
||||||
|
}
|
||||||
|
|
||||||
|
expect open class B(i: Int): A {
|
||||||
|
override fun foo()
|
||||||
|
open fun bar(s: String)
|
||||||
|
}
|
||||||
|
|
||||||
|
// MODULE: platform()()(common)
|
||||||
|
// FILE: platform.kt
|
||||||
|
|
||||||
|
actual abstract class A protected actual constructor() {
|
||||||
|
actual abstract fun foo()
|
||||||
|
}
|
||||||
|
|
||||||
|
actual open class B actual constructor(i: Int): A() {
|
||||||
|
actual override fun foo() {}
|
||||||
|
actual open fun bar(s: String) {}
|
||||||
|
}
|
||||||
+29
@@ -0,0 +1,29 @@
|
|||||||
|
// FILE: common.kt
|
||||||
|
|
||||||
|
// FILE: platform.kt
|
||||||
|
|
||||||
|
abstract class A {
|
||||||
|
protected constructor() /* primary */ {
|
||||||
|
super/*Any*/()
|
||||||
|
/* <init>() */
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
abstract fun foo()
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
open class B : A {
|
||||||
|
constructor(i: Int) /* primary */ {
|
||||||
|
super/*A*/()
|
||||||
|
/* <init>() */
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun foo() {
|
||||||
|
}
|
||||||
|
|
||||||
|
open fun bar(s: String) {
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
+45
@@ -0,0 +1,45 @@
|
|||||||
|
// FILE: common.kt
|
||||||
|
|
||||||
|
// FILE: platform.kt
|
||||||
|
|
||||||
|
// CHECK:
|
||||||
|
// Mangled name: A
|
||||||
|
// Public signature: /A|null[0]
|
||||||
|
abstract class A {
|
||||||
|
// CHECK:
|
||||||
|
// Mangled name: A#<init>(){}
|
||||||
|
// Public signature: /A.<init>|-5645683436151566731[0]
|
||||||
|
// Public signature debug description: <init>(){}
|
||||||
|
protected constructor() /* primary */
|
||||||
|
|
||||||
|
// CHECK:
|
||||||
|
// Mangled name: A#foo(){}
|
||||||
|
// Public signature: /A.foo|-1041209573719867811[0]
|
||||||
|
// Public signature debug description: foo(){}
|
||||||
|
abstract fun foo(): Unit
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// CHECK:
|
||||||
|
// Mangled name: B
|
||||||
|
// Public signature: /B|null[0]
|
||||||
|
open class B : A {
|
||||||
|
// CHECK:
|
||||||
|
// Mangled name: B#<init>(kotlin.Int){}
|
||||||
|
// Public signature: /B.<init>|-5182794243525578284[0]
|
||||||
|
// Public signature debug description: <init>(kotlin.Int){}
|
||||||
|
constructor(i: Int) /* primary */
|
||||||
|
|
||||||
|
// CHECK:
|
||||||
|
// Mangled name: B#bar(kotlin.String){}
|
||||||
|
// Public signature: /B.bar|5132770888056479978[0]
|
||||||
|
// Public signature debug description: bar(kotlin.String){}
|
||||||
|
open fun bar(s: String): Unit
|
||||||
|
|
||||||
|
// CHECK:
|
||||||
|
// Mangled name: B#foo(){}
|
||||||
|
// Public signature: /B.foo|-1041209573719867811[0]
|
||||||
|
// Public signature debug description: foo(){}
|
||||||
|
override fun foo(): Unit
|
||||||
|
|
||||||
|
}
|
||||||
+42
@@ -0,0 +1,42 @@
|
|||||||
|
FILE fqName:<root> fileName:/common.kt
|
||||||
|
FILE fqName:<root> fileName:/platform.kt
|
||||||
|
CLASS CLASS name:Ops modality:SEALED visibility:public superTypes:[kotlin.Any]
|
||||||
|
sealedSubclasses:
|
||||||
|
CLASS CLASS name:Add modality:FINAL visibility:public superTypes:[<root>.Ops]
|
||||||
|
$this: VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.Ops
|
||||||
|
CONSTRUCTOR visibility:protected <> () returnType:<root>.Ops [primary]
|
||||||
|
BLOCK_BODY
|
||||||
|
DELEGATING_CONSTRUCTOR_CALL 'public constructor <init> () declared in kotlin.Any'
|
||||||
|
INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Ops modality:SEALED visibility:public superTypes:[kotlin.Any]'
|
||||||
|
FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator]
|
||||||
|
overridden:
|
||||||
|
public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any
|
||||||
|
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||||
|
VALUE_PARAMETER name:other index:0 type:kotlin.Any?
|
||||||
|
FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.Int [fake_override]
|
||||||
|
overridden:
|
||||||
|
public open fun hashCode (): kotlin.Int declared in kotlin.Any
|
||||||
|
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||||
|
FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String [fake_override]
|
||||||
|
overridden:
|
||||||
|
public open fun toString (): kotlin.String declared in kotlin.Any
|
||||||
|
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||||
|
CLASS CLASS name:Add modality:FINAL visibility:public superTypes:[<root>.Ops]
|
||||||
|
$this: VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.Add
|
||||||
|
CONSTRUCTOR visibility:public <> () returnType:<root>.Add [primary]
|
||||||
|
BLOCK_BODY
|
||||||
|
DELEGATING_CONSTRUCTOR_CALL 'protected constructor <init> () declared in <root>.Ops'
|
||||||
|
INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Add modality:FINAL visibility:public superTypes:[<root>.Ops]'
|
||||||
|
FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator]
|
||||||
|
overridden:
|
||||||
|
public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in <root>.Ops
|
||||||
|
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||||
|
VALUE_PARAMETER name:other index:0 type:kotlin.Any?
|
||||||
|
FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.Int [fake_override]
|
||||||
|
overridden:
|
||||||
|
public open fun hashCode (): kotlin.Int declared in <root>.Ops
|
||||||
|
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||||
|
FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String [fake_override]
|
||||||
|
overridden:
|
||||||
|
public open fun toString (): kotlin.String declared in <root>.Ops
|
||||||
|
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||||
+18
@@ -0,0 +1,18 @@
|
|||||||
|
// IGNORE_BACKEND_K1: ANY
|
||||||
|
// ^^^ K1 as well as K1-based test infra do not support "fragment refinement".
|
||||||
|
|
||||||
|
// FIR_IDENTICAL
|
||||||
|
// !LANGUAGE: +MultiPlatformProjects
|
||||||
|
// SKIP_KLIB_TEST
|
||||||
|
|
||||||
|
// MODULE: common
|
||||||
|
// FILE: common.kt
|
||||||
|
|
||||||
|
expect sealed class Ops()
|
||||||
|
expect class Add() : Ops
|
||||||
|
|
||||||
|
// MODULE: platform()()(common)
|
||||||
|
// FILE: platform.kt
|
||||||
|
|
||||||
|
actual sealed class Ops actual constructor()
|
||||||
|
actual class Add actual constructor() : Ops()
|
||||||
+21
@@ -0,0 +1,21 @@
|
|||||||
|
// FILE: common.kt
|
||||||
|
|
||||||
|
// FILE: platform.kt
|
||||||
|
|
||||||
|
sealed class Ops {
|
||||||
|
protected constructor() /* primary */ {
|
||||||
|
super/*Any*/()
|
||||||
|
/* <init>() */
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
class Add : Ops {
|
||||||
|
constructor() /* primary */ {
|
||||||
|
super/*Ops*/()
|
||||||
|
/* <init>() */
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
+27
@@ -0,0 +1,27 @@
|
|||||||
|
// FILE: common.kt
|
||||||
|
|
||||||
|
// FILE: platform.kt
|
||||||
|
|
||||||
|
// CHECK:
|
||||||
|
// Mangled name: Add
|
||||||
|
// Public signature: /Add|null[0]
|
||||||
|
class Add : Ops {
|
||||||
|
// CHECK:
|
||||||
|
// Mangled name: Add#<init>(){}
|
||||||
|
// Public signature: /Add.<init>|-5645683436151566731[0]
|
||||||
|
// Public signature debug description: <init>(){}
|
||||||
|
constructor() /* primary */
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// CHECK:
|
||||||
|
// Mangled name: Ops
|
||||||
|
// Public signature: /Ops|null[0]
|
||||||
|
sealed class Ops {
|
||||||
|
// CHECK:
|
||||||
|
// Mangled name: Ops#<init>(){}
|
||||||
|
// Public signature: /Ops.<init>|-5645683436151566731[0]
|
||||||
|
// Public signature debug description: <init>(){}
|
||||||
|
protected constructor() /* primary */
|
||||||
|
|
||||||
|
}
|
||||||
+71
-33
@@ -1031,46 +1031,84 @@ public class ClassicJvmIrTextTestGenerated extends AbstractClassicJvmIrTextTest
|
|||||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations/multiplatform"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations/multiplatform"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Nested
|
||||||
@TestMetadata("K1_expectClassInherited.kt")
|
@TestMetadata("compiler/testData/ir/irText/declarations/multiplatform/k1")
|
||||||
public void testK1_expectClassInherited() throws Exception {
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
runTest("compiler/testData/ir/irText/declarations/multiplatform/K1_expectClassInherited.kt");
|
public class K1 {
|
||||||
|
@Test
|
||||||
|
public void testAllFilesPresentInK1() throws Exception {
|
||||||
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations/multiplatform/k1"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("expectClassInherited.kt")
|
||||||
|
public void testExpectClassInherited() throws Exception {
|
||||||
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k1/expectClassInherited.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("expectIntersectionOverride.kt")
|
||||||
|
public void testExpectIntersectionOverride() throws Exception {
|
||||||
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k1/expectIntersectionOverride.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("expectMemberInNotExpectClass.kt")
|
||||||
|
public void testExpectMemberInNotExpectClass() throws Exception {
|
||||||
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k1/expectMemberInNotExpectClass.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("expectedEnumClass.kt")
|
||||||
|
public void testExpectedEnumClass() throws Exception {
|
||||||
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k1/expectedEnumClass.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("expectedSealedClass.kt")
|
||||||
|
public void testExpectedSealedClass() throws Exception {
|
||||||
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k1/expectedSealedClass.kt");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Nested
|
||||||
@TestMetadata("K1_expectMemberInNotExpectClass.kt")
|
@TestMetadata("compiler/testData/ir/irText/declarations/multiplatform/k2")
|
||||||
public void testK1_expectMemberInNotExpectClass() throws Exception {
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
runTest("compiler/testData/ir/irText/declarations/multiplatform/K1_expectMemberInNotExpectClass.kt");
|
public class K2 {
|
||||||
}
|
@Test
|
||||||
|
public void testAllFilesPresentInK2() throws Exception {
|
||||||
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations/multiplatform/k2"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JVM_IR, true);
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("K1_expectedEnumClass.kt")
|
@TestMetadata("expectClassInherited.kt")
|
||||||
public void testK1_expectedEnumClass() throws Exception {
|
public void testExpectClassInherited() throws Exception {
|
||||||
runTest("compiler/testData/ir/irText/declarations/multiplatform/K1_expectedEnumClass.kt");
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k2/expectClassInherited.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("K1_expectedSealedClass.kt")
|
@TestMetadata("expectIntersectionOverride.kt")
|
||||||
public void testK1_expectedSealedClass() throws Exception {
|
public void testExpectIntersectionOverride() throws Exception {
|
||||||
runTest("compiler/testData/ir/irText/declarations/multiplatform/K1_expectedSealedClass.kt");
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k2/expectIntersectionOverride.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("K2_expectIntersectionOverride.kt")
|
@TestMetadata("expectMemberInNotExpectClass.kt")
|
||||||
public void testK2_expectIntersectionOverride() throws Exception {
|
public void testExpectMemberInNotExpectClass() throws Exception {
|
||||||
runTest("compiler/testData/ir/irText/declarations/multiplatform/K2_expectIntersectionOverride.kt");
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k2/expectMemberInNotExpectClass.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("K2_expectMemberInNotExpectClass.kt")
|
@TestMetadata("expectedEnumClass.kt")
|
||||||
public void testK2_expectMemberInNotExpectClass() throws Exception {
|
public void testExpectedEnumClass() throws Exception {
|
||||||
runTest("compiler/testData/ir/irText/declarations/multiplatform/K2_expectMemberInNotExpectClass.kt");
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k2/expectedEnumClass.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("K2_expectedEnumClass.kt")
|
@TestMetadata("expectedSealedClass.kt")
|
||||||
public void testK2_expectedEnumClass() throws Exception {
|
public void testExpectedSealedClass() throws Exception {
|
||||||
runTest("compiler/testData/ir/irText/declarations/multiplatform/K2_expectedEnumClass.kt");
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k2/expectedSealedClass.kt");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+67
-26
@@ -835,39 +835,80 @@ public class KlibIrTextTestCaseGenerated extends AbstractKlibIrTextTestCase {
|
|||||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations/multiplatform"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations/multiplatform"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@TestMetadata("K1_expectClassInherited.kt")
|
@TestMetadata("compiler/testData/ir/irText/declarations/multiplatform/k1")
|
||||||
public void testK1_expectClassInherited() throws Exception {
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
runTest("compiler/testData/ir/irText/declarations/multiplatform/K1_expectClassInherited.kt");
|
@RunWith(JUnit3RunnerWithInners.class)
|
||||||
|
public static class K1 extends AbstractKlibIrTextTestCase {
|
||||||
|
private void runTest(String testDataFilePath) throws Exception {
|
||||||
|
KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JS_IR, testDataFilePath, "// IGNORE_BACKEND_KLIB: ");
|
||||||
|
}
|
||||||
|
|
||||||
|
public void testAllFilesPresentInK1() throws Exception {
|
||||||
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations/multiplatform/k1"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
@TestMetadata("expectClassInherited.kt")
|
||||||
|
public void testExpectClassInherited() throws Exception {
|
||||||
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k1/expectClassInherited.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@TestMetadata("expectIntersectionOverride.kt")
|
||||||
|
public void testExpectIntersectionOverride() throws Exception {
|
||||||
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k1/expectIntersectionOverride.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@TestMetadata("expectMemberInNotExpectClass.kt")
|
||||||
|
public void testExpectMemberInNotExpectClass() throws Exception {
|
||||||
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k1/expectMemberInNotExpectClass.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@TestMetadata("expectedEnumClass.kt")
|
||||||
|
public void testExpectedEnumClass() throws Exception {
|
||||||
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k1/expectedEnumClass.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@TestMetadata("expectedSealedClass.kt")
|
||||||
|
public void testExpectedSealedClass() throws Exception {
|
||||||
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k1/expectedSealedClass.kt");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@TestMetadata("K1_expectMemberInNotExpectClass.kt")
|
@TestMetadata("compiler/testData/ir/irText/declarations/multiplatform/k2")
|
||||||
public void testK1_expectMemberInNotExpectClass() throws Exception {
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
runTest("compiler/testData/ir/irText/declarations/multiplatform/K1_expectMemberInNotExpectClass.kt");
|
@RunWith(JUnit3RunnerWithInners.class)
|
||||||
}
|
public static class K2 extends AbstractKlibIrTextTestCase {
|
||||||
|
private void runTest(String testDataFilePath) throws Exception {
|
||||||
|
KotlinTestUtils.runTestWithCustomIgnoreDirective(this::doTest, TargetBackend.JS_IR, testDataFilePath, "// IGNORE_BACKEND_KLIB: ");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("K1_expectedEnumClass.kt")
|
public void testAllFilesPresentInK2() throws Exception {
|
||||||
public void testK1_expectedEnumClass() throws Exception {
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations/multiplatform/k2"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
|
||||||
runTest("compiler/testData/ir/irText/declarations/multiplatform/K1_expectedEnumClass.kt");
|
}
|
||||||
}
|
|
||||||
|
|
||||||
@TestMetadata("K1_expectedSealedClass.kt")
|
@TestMetadata("expectClassInherited.kt")
|
||||||
public void testK1_expectedSealedClass() throws Exception {
|
public void testExpectClassInherited() throws Exception {
|
||||||
runTest("compiler/testData/ir/irText/declarations/multiplatform/K1_expectedSealedClass.kt");
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k2/expectClassInherited.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
@TestMetadata("K2_expectIntersectionOverride.kt")
|
@TestMetadata("expectIntersectionOverride.kt")
|
||||||
public void testK2_expectIntersectionOverride() throws Exception {
|
public void testExpectIntersectionOverride() throws Exception {
|
||||||
runTest("compiler/testData/ir/irText/declarations/multiplatform/K2_expectIntersectionOverride.kt");
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k2/expectIntersectionOverride.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
@TestMetadata("K2_expectMemberInNotExpectClass.kt")
|
@TestMetadata("expectMemberInNotExpectClass.kt")
|
||||||
public void testK2_expectMemberInNotExpectClass() throws Exception {
|
public void testExpectMemberInNotExpectClass() throws Exception {
|
||||||
runTest("compiler/testData/ir/irText/declarations/multiplatform/K2_expectMemberInNotExpectClass.kt");
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k2/expectMemberInNotExpectClass.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
@TestMetadata("K2_expectedEnumClass.kt")
|
@TestMetadata("expectedEnumClass.kt")
|
||||||
public void testK2_expectedEnumClass() throws Exception {
|
public void testExpectedEnumClass() throws Exception {
|
||||||
runTest("compiler/testData/ir/irText/declarations/multiplatform/K2_expectedEnumClass.kt");
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k2/expectedEnumClass.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@TestMetadata("expectedSealedClass.kt")
|
||||||
|
public void testExpectedSealedClass() throws Exception {
|
||||||
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k2/expectedSealedClass.kt");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Generated
+71
-33
@@ -941,46 +941,84 @@ public class FirLightTreeJsIrTextTestGenerated extends AbstractFirLightTreeJsIrT
|
|||||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations/multiplatform"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations/multiplatform"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Nested
|
||||||
@TestMetadata("K1_expectClassInherited.kt")
|
@TestMetadata("compiler/testData/ir/irText/declarations/multiplatform/k1")
|
||||||
public void testK1_expectClassInherited() throws Exception {
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
runTest("compiler/testData/ir/irText/declarations/multiplatform/K1_expectClassInherited.kt");
|
public class K1 {
|
||||||
|
@Test
|
||||||
|
public void testAllFilesPresentInK1() throws Exception {
|
||||||
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations/multiplatform/k1"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("expectClassInherited.kt")
|
||||||
|
public void testExpectClassInherited() throws Exception {
|
||||||
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k1/expectClassInherited.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("expectIntersectionOverride.kt")
|
||||||
|
public void testExpectIntersectionOverride() throws Exception {
|
||||||
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k1/expectIntersectionOverride.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("expectMemberInNotExpectClass.kt")
|
||||||
|
public void testExpectMemberInNotExpectClass() throws Exception {
|
||||||
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k1/expectMemberInNotExpectClass.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("expectedEnumClass.kt")
|
||||||
|
public void testExpectedEnumClass() throws Exception {
|
||||||
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k1/expectedEnumClass.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("expectedSealedClass.kt")
|
||||||
|
public void testExpectedSealedClass() throws Exception {
|
||||||
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k1/expectedSealedClass.kt");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Nested
|
||||||
@TestMetadata("K1_expectMemberInNotExpectClass.kt")
|
@TestMetadata("compiler/testData/ir/irText/declarations/multiplatform/k2")
|
||||||
public void testK1_expectMemberInNotExpectClass() throws Exception {
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
runTest("compiler/testData/ir/irText/declarations/multiplatform/K1_expectMemberInNotExpectClass.kt");
|
public class K2 {
|
||||||
}
|
@Test
|
||||||
|
public void testAllFilesPresentInK2() throws Exception {
|
||||||
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations/multiplatform/k2"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("K1_expectedEnumClass.kt")
|
@TestMetadata("expectClassInherited.kt")
|
||||||
public void testK1_expectedEnumClass() throws Exception {
|
public void testExpectClassInherited() throws Exception {
|
||||||
runTest("compiler/testData/ir/irText/declarations/multiplatform/K1_expectedEnumClass.kt");
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k2/expectClassInherited.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("K1_expectedSealedClass.kt")
|
@TestMetadata("expectIntersectionOverride.kt")
|
||||||
public void testK1_expectedSealedClass() throws Exception {
|
public void testExpectIntersectionOverride() throws Exception {
|
||||||
runTest("compiler/testData/ir/irText/declarations/multiplatform/K1_expectedSealedClass.kt");
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k2/expectIntersectionOverride.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("K2_expectIntersectionOverride.kt")
|
@TestMetadata("expectMemberInNotExpectClass.kt")
|
||||||
public void testK2_expectIntersectionOverride() throws Exception {
|
public void testExpectMemberInNotExpectClass() throws Exception {
|
||||||
runTest("compiler/testData/ir/irText/declarations/multiplatform/K2_expectIntersectionOverride.kt");
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k2/expectMemberInNotExpectClass.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("K2_expectMemberInNotExpectClass.kt")
|
@TestMetadata("expectedEnumClass.kt")
|
||||||
public void testK2_expectMemberInNotExpectClass() throws Exception {
|
public void testExpectedEnumClass() throws Exception {
|
||||||
runTest("compiler/testData/ir/irText/declarations/multiplatform/K2_expectMemberInNotExpectClass.kt");
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k2/expectedEnumClass.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("K2_expectedEnumClass.kt")
|
@TestMetadata("expectedSealedClass.kt")
|
||||||
public void testK2_expectedEnumClass() throws Exception {
|
public void testExpectedSealedClass() throws Exception {
|
||||||
runTest("compiler/testData/ir/irText/declarations/multiplatform/K2_expectedEnumClass.kt");
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k2/expectedSealedClass.kt");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+71
-33
@@ -941,46 +941,84 @@ public class FirPsiJsIrTextTestGenerated extends AbstractFirPsiJsIrTextTest {
|
|||||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations/multiplatform"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations/multiplatform"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Nested
|
||||||
@TestMetadata("K1_expectClassInherited.kt")
|
@TestMetadata("compiler/testData/ir/irText/declarations/multiplatform/k1")
|
||||||
public void testK1_expectClassInherited() throws Exception {
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
runTest("compiler/testData/ir/irText/declarations/multiplatform/K1_expectClassInherited.kt");
|
public class K1 {
|
||||||
|
@Test
|
||||||
|
public void testAllFilesPresentInK1() throws Exception {
|
||||||
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations/multiplatform/k1"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("expectClassInherited.kt")
|
||||||
|
public void testExpectClassInherited() throws Exception {
|
||||||
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k1/expectClassInherited.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("expectIntersectionOverride.kt")
|
||||||
|
public void testExpectIntersectionOverride() throws Exception {
|
||||||
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k1/expectIntersectionOverride.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("expectMemberInNotExpectClass.kt")
|
||||||
|
public void testExpectMemberInNotExpectClass() throws Exception {
|
||||||
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k1/expectMemberInNotExpectClass.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("expectedEnumClass.kt")
|
||||||
|
public void testExpectedEnumClass() throws Exception {
|
||||||
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k1/expectedEnumClass.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("expectedSealedClass.kt")
|
||||||
|
public void testExpectedSealedClass() throws Exception {
|
||||||
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k1/expectedSealedClass.kt");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Nested
|
||||||
@TestMetadata("K1_expectMemberInNotExpectClass.kt")
|
@TestMetadata("compiler/testData/ir/irText/declarations/multiplatform/k2")
|
||||||
public void testK1_expectMemberInNotExpectClass() throws Exception {
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
runTest("compiler/testData/ir/irText/declarations/multiplatform/K1_expectMemberInNotExpectClass.kt");
|
public class K2 {
|
||||||
}
|
@Test
|
||||||
|
public void testAllFilesPresentInK2() throws Exception {
|
||||||
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations/multiplatform/k2"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("K1_expectedEnumClass.kt")
|
@TestMetadata("expectClassInherited.kt")
|
||||||
public void testK1_expectedEnumClass() throws Exception {
|
public void testExpectClassInherited() throws Exception {
|
||||||
runTest("compiler/testData/ir/irText/declarations/multiplatform/K1_expectedEnumClass.kt");
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k2/expectClassInherited.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("K1_expectedSealedClass.kt")
|
@TestMetadata("expectIntersectionOverride.kt")
|
||||||
public void testK1_expectedSealedClass() throws Exception {
|
public void testExpectIntersectionOverride() throws Exception {
|
||||||
runTest("compiler/testData/ir/irText/declarations/multiplatform/K1_expectedSealedClass.kt");
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k2/expectIntersectionOverride.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("K2_expectIntersectionOverride.kt")
|
@TestMetadata("expectMemberInNotExpectClass.kt")
|
||||||
public void testK2_expectIntersectionOverride() throws Exception {
|
public void testExpectMemberInNotExpectClass() throws Exception {
|
||||||
runTest("compiler/testData/ir/irText/declarations/multiplatform/K2_expectIntersectionOverride.kt");
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k2/expectMemberInNotExpectClass.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("K2_expectMemberInNotExpectClass.kt")
|
@TestMetadata("expectedEnumClass.kt")
|
||||||
public void testK2_expectMemberInNotExpectClass() throws Exception {
|
public void testExpectedEnumClass() throws Exception {
|
||||||
runTest("compiler/testData/ir/irText/declarations/multiplatform/K2_expectMemberInNotExpectClass.kt");
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k2/expectedEnumClass.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("K2_expectedEnumClass.kt")
|
@TestMetadata("expectedSealedClass.kt")
|
||||||
public void testK2_expectedEnumClass() throws Exception {
|
public void testExpectedSealedClass() throws Exception {
|
||||||
runTest("compiler/testData/ir/irText/declarations/multiplatform/K2_expectedEnumClass.kt");
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k2/expectedSealedClass.kt");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+71
-33
@@ -941,46 +941,84 @@ public class ClassicJsIrTextTestGenerated extends AbstractClassicJsIrTextTest {
|
|||||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations/multiplatform"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations/multiplatform"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Nested
|
||||||
@TestMetadata("K1_expectClassInherited.kt")
|
@TestMetadata("compiler/testData/ir/irText/declarations/multiplatform/k1")
|
||||||
public void testK1_expectClassInherited() throws Exception {
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
runTest("compiler/testData/ir/irText/declarations/multiplatform/K1_expectClassInherited.kt");
|
public class K1 {
|
||||||
|
@Test
|
||||||
|
public void testAllFilesPresentInK1() throws Exception {
|
||||||
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations/multiplatform/k1"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("expectClassInherited.kt")
|
||||||
|
public void testExpectClassInherited() throws Exception {
|
||||||
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k1/expectClassInherited.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("expectIntersectionOverride.kt")
|
||||||
|
public void testExpectIntersectionOverride() throws Exception {
|
||||||
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k1/expectIntersectionOverride.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("expectMemberInNotExpectClass.kt")
|
||||||
|
public void testExpectMemberInNotExpectClass() throws Exception {
|
||||||
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k1/expectMemberInNotExpectClass.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("expectedEnumClass.kt")
|
||||||
|
public void testExpectedEnumClass() throws Exception {
|
||||||
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k1/expectedEnumClass.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("expectedSealedClass.kt")
|
||||||
|
public void testExpectedSealedClass() throws Exception {
|
||||||
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k1/expectedSealedClass.kt");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Nested
|
||||||
@TestMetadata("K1_expectMemberInNotExpectClass.kt")
|
@TestMetadata("compiler/testData/ir/irText/declarations/multiplatform/k2")
|
||||||
public void testK1_expectMemberInNotExpectClass() throws Exception {
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
runTest("compiler/testData/ir/irText/declarations/multiplatform/K1_expectMemberInNotExpectClass.kt");
|
public class K2 {
|
||||||
}
|
@Test
|
||||||
|
public void testAllFilesPresentInK2() throws Exception {
|
||||||
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations/multiplatform/k2"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.JS_IR, true);
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("K1_expectedEnumClass.kt")
|
@TestMetadata("expectClassInherited.kt")
|
||||||
public void testK1_expectedEnumClass() throws Exception {
|
public void testExpectClassInherited() throws Exception {
|
||||||
runTest("compiler/testData/ir/irText/declarations/multiplatform/K1_expectedEnumClass.kt");
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k2/expectClassInherited.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("K1_expectedSealedClass.kt")
|
@TestMetadata("expectIntersectionOverride.kt")
|
||||||
public void testK1_expectedSealedClass() throws Exception {
|
public void testExpectIntersectionOverride() throws Exception {
|
||||||
runTest("compiler/testData/ir/irText/declarations/multiplatform/K1_expectedSealedClass.kt");
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k2/expectIntersectionOverride.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("K2_expectIntersectionOverride.kt")
|
@TestMetadata("expectMemberInNotExpectClass.kt")
|
||||||
public void testK2_expectIntersectionOverride() throws Exception {
|
public void testExpectMemberInNotExpectClass() throws Exception {
|
||||||
runTest("compiler/testData/ir/irText/declarations/multiplatform/K2_expectIntersectionOverride.kt");
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k2/expectMemberInNotExpectClass.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("K2_expectMemberInNotExpectClass.kt")
|
@TestMetadata("expectedEnumClass.kt")
|
||||||
public void testK2_expectMemberInNotExpectClass() throws Exception {
|
public void testExpectedEnumClass() throws Exception {
|
||||||
runTest("compiler/testData/ir/irText/declarations/multiplatform/K2_expectMemberInNotExpectClass.kt");
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k2/expectedEnumClass.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("K2_expectedEnumClass.kt")
|
@TestMetadata("expectedSealedClass.kt")
|
||||||
public void testK2_expectedEnumClass() throws Exception {
|
public void testExpectedSealedClass() throws Exception {
|
||||||
runTest("compiler/testData/ir/irText/declarations/multiplatform/K2_expectedEnumClass.kt");
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k2/expectedSealedClass.kt");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+71
-33
@@ -941,46 +941,84 @@ public class ClassicNativeIrTextTestGenerated extends AbstractClassicNativeIrTex
|
|||||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations/multiplatform"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations/multiplatform"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Nested
|
||||||
@TestMetadata("K1_expectClassInherited.kt")
|
@TestMetadata("compiler/testData/ir/irText/declarations/multiplatform/k1")
|
||||||
public void testK1_expectClassInherited() throws Exception {
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
runTest("compiler/testData/ir/irText/declarations/multiplatform/K1_expectClassInherited.kt");
|
public class K1 {
|
||||||
|
@Test
|
||||||
|
public void testAllFilesPresentInK1() throws Exception {
|
||||||
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations/multiplatform/k1"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("expectClassInherited.kt")
|
||||||
|
public void testExpectClassInherited() throws Exception {
|
||||||
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k1/expectClassInherited.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("expectIntersectionOverride.kt")
|
||||||
|
public void testExpectIntersectionOverride() throws Exception {
|
||||||
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k1/expectIntersectionOverride.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("expectMemberInNotExpectClass.kt")
|
||||||
|
public void testExpectMemberInNotExpectClass() throws Exception {
|
||||||
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k1/expectMemberInNotExpectClass.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("expectedEnumClass.kt")
|
||||||
|
public void testExpectedEnumClass() throws Exception {
|
||||||
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k1/expectedEnumClass.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("expectedSealedClass.kt")
|
||||||
|
public void testExpectedSealedClass() throws Exception {
|
||||||
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k1/expectedSealedClass.kt");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Nested
|
||||||
@TestMetadata("K1_expectMemberInNotExpectClass.kt")
|
@TestMetadata("compiler/testData/ir/irText/declarations/multiplatform/k2")
|
||||||
public void testK1_expectMemberInNotExpectClass() throws Exception {
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
runTest("compiler/testData/ir/irText/declarations/multiplatform/K1_expectMemberInNotExpectClass.kt");
|
public class K2 {
|
||||||
}
|
@Test
|
||||||
|
public void testAllFilesPresentInK2() throws Exception {
|
||||||
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations/multiplatform/k2"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("K1_expectedEnumClass.kt")
|
@TestMetadata("expectClassInherited.kt")
|
||||||
public void testK1_expectedEnumClass() throws Exception {
|
public void testExpectClassInherited() throws Exception {
|
||||||
runTest("compiler/testData/ir/irText/declarations/multiplatform/K1_expectedEnumClass.kt");
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k2/expectClassInherited.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("K1_expectedSealedClass.kt")
|
@TestMetadata("expectIntersectionOverride.kt")
|
||||||
public void testK1_expectedSealedClass() throws Exception {
|
public void testExpectIntersectionOverride() throws Exception {
|
||||||
runTest("compiler/testData/ir/irText/declarations/multiplatform/K1_expectedSealedClass.kt");
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k2/expectIntersectionOverride.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("K2_expectIntersectionOverride.kt")
|
@TestMetadata("expectMemberInNotExpectClass.kt")
|
||||||
public void testK2_expectIntersectionOverride() throws Exception {
|
public void testExpectMemberInNotExpectClass() throws Exception {
|
||||||
runTest("compiler/testData/ir/irText/declarations/multiplatform/K2_expectIntersectionOverride.kt");
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k2/expectMemberInNotExpectClass.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("K2_expectMemberInNotExpectClass.kt")
|
@TestMetadata("expectedEnumClass.kt")
|
||||||
public void testK2_expectMemberInNotExpectClass() throws Exception {
|
public void testExpectedEnumClass() throws Exception {
|
||||||
runTest("compiler/testData/ir/irText/declarations/multiplatform/K2_expectMemberInNotExpectClass.kt");
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k2/expectedEnumClass.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("K2_expectedEnumClass.kt")
|
@TestMetadata("expectedSealedClass.kt")
|
||||||
public void testK2_expectedEnumClass() throws Exception {
|
public void testExpectedSealedClass() throws Exception {
|
||||||
runTest("compiler/testData/ir/irText/declarations/multiplatform/K2_expectedEnumClass.kt");
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k2/expectedSealedClass.kt");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+71
-33
@@ -941,46 +941,84 @@ public class FirLightTreeNativeIrTextTestGenerated extends AbstractFirLightTreeN
|
|||||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations/multiplatform"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations/multiplatform"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Nested
|
||||||
@TestMetadata("K1_expectClassInherited.kt")
|
@TestMetadata("compiler/testData/ir/irText/declarations/multiplatform/k1")
|
||||||
public void testK1_expectClassInherited() throws Exception {
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
runTest("compiler/testData/ir/irText/declarations/multiplatform/K1_expectClassInherited.kt");
|
public class K1 {
|
||||||
|
@Test
|
||||||
|
public void testAllFilesPresentInK1() throws Exception {
|
||||||
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations/multiplatform/k1"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("expectClassInherited.kt")
|
||||||
|
public void testExpectClassInherited() throws Exception {
|
||||||
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k1/expectClassInherited.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("expectIntersectionOverride.kt")
|
||||||
|
public void testExpectIntersectionOverride() throws Exception {
|
||||||
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k1/expectIntersectionOverride.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("expectMemberInNotExpectClass.kt")
|
||||||
|
public void testExpectMemberInNotExpectClass() throws Exception {
|
||||||
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k1/expectMemberInNotExpectClass.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("expectedEnumClass.kt")
|
||||||
|
public void testExpectedEnumClass() throws Exception {
|
||||||
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k1/expectedEnumClass.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("expectedSealedClass.kt")
|
||||||
|
public void testExpectedSealedClass() throws Exception {
|
||||||
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k1/expectedSealedClass.kt");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Nested
|
||||||
@TestMetadata("K1_expectMemberInNotExpectClass.kt")
|
@TestMetadata("compiler/testData/ir/irText/declarations/multiplatform/k2")
|
||||||
public void testK1_expectMemberInNotExpectClass() throws Exception {
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
runTest("compiler/testData/ir/irText/declarations/multiplatform/K1_expectMemberInNotExpectClass.kt");
|
public class K2 {
|
||||||
}
|
@Test
|
||||||
|
public void testAllFilesPresentInK2() throws Exception {
|
||||||
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations/multiplatform/k2"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("K1_expectedEnumClass.kt")
|
@TestMetadata("expectClassInherited.kt")
|
||||||
public void testK1_expectedEnumClass() throws Exception {
|
public void testExpectClassInherited() throws Exception {
|
||||||
runTest("compiler/testData/ir/irText/declarations/multiplatform/K1_expectedEnumClass.kt");
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k2/expectClassInherited.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("K1_expectedSealedClass.kt")
|
@TestMetadata("expectIntersectionOverride.kt")
|
||||||
public void testK1_expectedSealedClass() throws Exception {
|
public void testExpectIntersectionOverride() throws Exception {
|
||||||
runTest("compiler/testData/ir/irText/declarations/multiplatform/K1_expectedSealedClass.kt");
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k2/expectIntersectionOverride.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("K2_expectIntersectionOverride.kt")
|
@TestMetadata("expectMemberInNotExpectClass.kt")
|
||||||
public void testK2_expectIntersectionOverride() throws Exception {
|
public void testExpectMemberInNotExpectClass() throws Exception {
|
||||||
runTest("compiler/testData/ir/irText/declarations/multiplatform/K2_expectIntersectionOverride.kt");
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k2/expectMemberInNotExpectClass.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("K2_expectMemberInNotExpectClass.kt")
|
@TestMetadata("expectedEnumClass.kt")
|
||||||
public void testK2_expectMemberInNotExpectClass() throws Exception {
|
public void testExpectedEnumClass() throws Exception {
|
||||||
runTest("compiler/testData/ir/irText/declarations/multiplatform/K2_expectMemberInNotExpectClass.kt");
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k2/expectedEnumClass.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("K2_expectedEnumClass.kt")
|
@TestMetadata("expectedSealedClass.kt")
|
||||||
public void testK2_expectedEnumClass() throws Exception {
|
public void testExpectedSealedClass() throws Exception {
|
||||||
runTest("compiler/testData/ir/irText/declarations/multiplatform/K2_expectedEnumClass.kt");
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k2/expectedSealedClass.kt");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+71
-33
@@ -941,46 +941,84 @@ public class FirPsiNativeIrTextTestGenerated extends AbstractFirPsiNativeIrTextT
|
|||||||
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations/multiplatform"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations/multiplatform"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Nested
|
||||||
@TestMetadata("K1_expectClassInherited.kt")
|
@TestMetadata("compiler/testData/ir/irText/declarations/multiplatform/k1")
|
||||||
public void testK1_expectClassInherited() throws Exception {
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
runTest("compiler/testData/ir/irText/declarations/multiplatform/K1_expectClassInherited.kt");
|
public class K1 {
|
||||||
|
@Test
|
||||||
|
public void testAllFilesPresentInK1() throws Exception {
|
||||||
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations/multiplatform/k1"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("expectClassInherited.kt")
|
||||||
|
public void testExpectClassInherited() throws Exception {
|
||||||
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k1/expectClassInherited.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("expectIntersectionOverride.kt")
|
||||||
|
public void testExpectIntersectionOverride() throws Exception {
|
||||||
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k1/expectIntersectionOverride.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("expectMemberInNotExpectClass.kt")
|
||||||
|
public void testExpectMemberInNotExpectClass() throws Exception {
|
||||||
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k1/expectMemberInNotExpectClass.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("expectedEnumClass.kt")
|
||||||
|
public void testExpectedEnumClass() throws Exception {
|
||||||
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k1/expectedEnumClass.kt");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("expectedSealedClass.kt")
|
||||||
|
public void testExpectedSealedClass() throws Exception {
|
||||||
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k1/expectedSealedClass.kt");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Nested
|
||||||
@TestMetadata("K1_expectMemberInNotExpectClass.kt")
|
@TestMetadata("compiler/testData/ir/irText/declarations/multiplatform/k2")
|
||||||
public void testK1_expectMemberInNotExpectClass() throws Exception {
|
@TestDataPath("$PROJECT_ROOT")
|
||||||
runTest("compiler/testData/ir/irText/declarations/multiplatform/K1_expectMemberInNotExpectClass.kt");
|
public class K2 {
|
||||||
}
|
@Test
|
||||||
|
public void testAllFilesPresentInK2() throws Exception {
|
||||||
|
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/ir/irText/declarations/multiplatform/k2"), Pattern.compile("^(.+)\\.kt$"), null, TargetBackend.NATIVE, true);
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("K1_expectedEnumClass.kt")
|
@TestMetadata("expectClassInherited.kt")
|
||||||
public void testK1_expectedEnumClass() throws Exception {
|
public void testExpectClassInherited() throws Exception {
|
||||||
runTest("compiler/testData/ir/irText/declarations/multiplatform/K1_expectedEnumClass.kt");
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k2/expectClassInherited.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("K1_expectedSealedClass.kt")
|
@TestMetadata("expectIntersectionOverride.kt")
|
||||||
public void testK1_expectedSealedClass() throws Exception {
|
public void testExpectIntersectionOverride() throws Exception {
|
||||||
runTest("compiler/testData/ir/irText/declarations/multiplatform/K1_expectedSealedClass.kt");
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k2/expectIntersectionOverride.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("K2_expectIntersectionOverride.kt")
|
@TestMetadata("expectMemberInNotExpectClass.kt")
|
||||||
public void testK2_expectIntersectionOverride() throws Exception {
|
public void testExpectMemberInNotExpectClass() throws Exception {
|
||||||
runTest("compiler/testData/ir/irText/declarations/multiplatform/K2_expectIntersectionOverride.kt");
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k2/expectMemberInNotExpectClass.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("K2_expectMemberInNotExpectClass.kt")
|
@TestMetadata("expectedEnumClass.kt")
|
||||||
public void testK2_expectMemberInNotExpectClass() throws Exception {
|
public void testExpectedEnumClass() throws Exception {
|
||||||
runTest("compiler/testData/ir/irText/declarations/multiplatform/K2_expectMemberInNotExpectClass.kt");
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k2/expectedEnumClass.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("K2_expectedEnumClass.kt")
|
@TestMetadata("expectedSealedClass.kt")
|
||||||
public void testK2_expectedEnumClass() throws Exception {
|
public void testExpectedSealedClass() throws Exception {
|
||||||
runTest("compiler/testData/ir/irText/declarations/multiplatform/K2_expectedEnumClass.kt");
|
runTest("compiler/testData/ir/irText/declarations/multiplatform/k2/expectedSealedClass.kt");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user