[FIR2IR] Consider isExpect value of super members during fake-overrides generating

It's important for FIR2IR and IrActualizer

Because `isExpect` is a part of signature, and it's considered during actualization
This commit is contained in:
Ivan Kochurkin
2023-04-18 19:17:13 +02:00
committed by Space Team
parent 41cb2ce3d8
commit d06d3ff467
14 changed files with 388 additions and 4 deletions
@@ -136,7 +136,7 @@ class FakeOverrideGenerator(
session, symbol, firFunction,
derivedClassLookupTag = firClass.symbol.toLookupTag(),
newDispatchReceiverType = firClass.defaultType(),
isExpect = (firClass as? FirRegularClass)?.isExpect == true
isExpect = (firClass as? FirRegularClass)?.isExpect == true || firFunction.isExpect
)
},
baseFunctionSymbols,
@@ -164,7 +164,7 @@ class FakeOverrideGenerator(
session, symbolForOverride, firProperty,
derivedClassLookupTag = firClass.symbol.toLookupTag(),
newDispatchReceiverType = firClass.defaultType(),
isExpect = (firClass as? FirRegularClass)?.isExpect == true
isExpect = (firClass as? FirRegularClass)?.isExpect == true || firProperty.isExpect
)
},
basePropertySymbols,
@@ -344,7 +344,7 @@ class FakeOverrideGenerator(
session, callableSymbol, firFunction,
derivedClassLookupTag = klass.symbol.toLookupTag(),
newDispatchReceiverType = klass.defaultType(),
isExpect = (klass as? FirRegularClass)?.isExpect == true
isExpect = (klass as? FirRegularClass)?.isExpect == true || firFunction.isExpect
)
},
computeDirectOverridden = FirTypeScope::getDirectOverriddenFunctions,
@@ -363,7 +363,7 @@ class FakeOverrideGenerator(
session, callableSymbol, firProperty,
derivedClassLookupTag = klass.symbol.toLookupTag(),
newDispatchReceiverType = klass.defaultType(),
isExpect = (klass as? FirRegularClass)?.isExpect == true
isExpect = (klass as? FirRegularClass)?.isExpect == true || firProperty.isExpect
)
},
computeDirectOverridden = FirTypeScope::getDirectOverriddenProperties,
@@ -1009,6 +1009,18 @@ public class FirLightTreeJvmIrTextTestGenerated extends AbstractFirLightTreeJvmI
runTest("compiler/testData/ir/irText/declarations/multiplatform/expectIntersectionOverride.kt");
}
@Test
@TestMetadata("expectMemberInNotExpectClass.kt")
public void testExpectMemberInNotExpectClass() throws Exception {
runTest("compiler/testData/ir/irText/declarations/multiplatform/expectMemberInNotExpectClass.kt");
}
@Test
@TestMetadata("expectMemberInNotExpectClassFir.kt")
public void testExpectMemberInNotExpectClassFir() throws Exception {
runTest("compiler/testData/ir/irText/declarations/multiplatform/expectMemberInNotExpectClassFir.kt");
}
@Test
@TestMetadata("expectedEnumClass.kt")
public void testExpectedEnumClass() throws Exception {
@@ -1009,6 +1009,18 @@ public class FirPsiJvmIrTextTestGenerated extends AbstractFirPsiJvmIrTextTest {
runTest("compiler/testData/ir/irText/declarations/multiplatform/expectIntersectionOverride.kt");
}
@Test
@TestMetadata("expectMemberInNotExpectClass.kt")
public void testExpectMemberInNotExpectClass() throws Exception {
runTest("compiler/testData/ir/irText/declarations/multiplatform/expectMemberInNotExpectClass.kt");
}
@Test
@TestMetadata("expectMemberInNotExpectClassFir.kt")
public void testExpectMemberInNotExpectClassFir() throws Exception {
runTest("compiler/testData/ir/irText/declarations/multiplatform/expectMemberInNotExpectClassFir.kt");
}
@Test
@TestMetadata("expectedEnumClass.kt")
public void testExpectedEnumClass() throws Exception {
@@ -0,0 +1,90 @@
FILE fqName:<root> fileName:/expectMemberInNotExpectClass.kt
CLASS CLASS name:C1 modality:OPEN visibility:public [expect] superTypes:[kotlin.Any]
$this: VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.C1
CONSTRUCTOR visibility:public <> () returnType:<root>.C1 [primary,expect]
FUN name:f visibility:public modality:FINAL <> ($this:<root>.C1) returnType:kotlin.String [expect]
$this: VALUE_PARAMETER name:<this> type:<root>.C1
PROPERTY name:p visibility:public modality:FINAL [expect,val]
FIELD PROPERTY_BACKING_FIELD name:p type:kotlin.Int visibility:private [final]
FUN DEFAULT_PROPERTY_ACCESSOR name:<get-p> visibility:public modality:FINAL <> ($this:<root>.C1) returnType:kotlin.Int
correspondingProperty: PROPERTY name:p visibility:public modality:FINAL [expect,val]
$this: VALUE_PARAMETER name:<this> type:<root>.C1
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 [operator] 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:C2 modality:FINAL visibility:public superTypes:[<root>.C1]
$this: VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.C2
CONSTRUCTOR visibility:public <> () returnType:<root>.C2 [primary]
BLOCK_BODY
DELEGATING_CONSTRUCTOR_CALL 'public constructor <init> () [primary] declared in <root>.C1'
INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C2 modality:FINAL visibility:public superTypes:[<root>.C1]'
FUN FAKE_OVERRIDE name:f visibility:public modality:FINAL <> ($this:<root>.C1) returnType:kotlin.String [fake_override]
overridden:
public final fun f (): kotlin.String declared in <root>.C1
$this: VALUE_PARAMETER name:<this> type:<root>.C1
PROPERTY FAKE_OVERRIDE name:p visibility:public modality:FINAL [fake_override,val]
overridden:
public final p: kotlin.Int [val]
FUN FAKE_OVERRIDE name:<get-p> visibility:public modality:FINAL <> ($this:<root>.C1) returnType:kotlin.Int [fake_override]
correspondingProperty: PROPERTY FAKE_OVERRIDE name:p visibility:public modality:FINAL [fake_override,val]
overridden:
public final fun <get-p> (): kotlin.Int declared in <root>.C1
$this: VALUE_PARAMETER name:<this> type:<root>.C1
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 [fake_override,operator] declared in <root>.C1
$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 [fake_override] declared in <root>.C1
$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 [fake_override] declared in <root>.C1
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
CLASS CLASS name:C1 modality:OPEN visibility:public superTypes:[kotlin.Any]
$this: VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.C1
CONSTRUCTOR visibility:public <> () returnType:<root>.C1 [primary]
BLOCK_BODY
DELEGATING_CONSTRUCTOR_CALL 'public constructor <init> () [primary] declared in kotlin.Any'
INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C1 modality:OPEN visibility:public superTypes:[kotlin.Any]'
FUN name:f visibility:public modality:FINAL <> ($this:<root>.C1) returnType:kotlin.String
$this: VALUE_PARAMETER name:<this> type:<root>.C1
BLOCK_BODY
RETURN type=kotlin.Nothing from='public final fun f (): kotlin.String declared in <root>.C1'
CONST String type=kotlin.String value="O"
PROPERTY name:p visibility:public modality:FINAL [val]
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:FINAL <> ($this:<root>.C1) returnType:kotlin.Int
correspondingProperty: PROPERTY name:p visibility:public modality:FINAL [val]
$this: VALUE_PARAMETER name:<this> type:<root>.C1
BLOCK_BODY
RETURN type=kotlin.Nothing from='public final fun <get-p> (): kotlin.Int declared in <root>.C1'
GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:p type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null
receiver: GET_VAR '<this>: <root>.C1 declared in <root>.C1.<get-p>' type=<root>.C1 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 [operator] 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
@@ -0,0 +1,17 @@
// IGNORE_BACKEND_K2: ANY
// SKIP_KLIB_TEST
// LANGUAGE: +MultiPlatformProjects
expect open class C1() {
fun f(): String
val p: Int
}
class C2 : C1()
actual open class C1 {
actual fun f() = "O"
actual val p = 42
}
@@ -0,0 +1,34 @@
expect open class C1 {
expect constructor() /* primary */
expect fun f(): String
expect val p: Int
get
}
class C2 : C1 {
constructor() /* primary */ {
super/*C1*/()
/* <init>() */
}
}
open class C1 {
constructor() /* primary */ {
super/*Any*/()
/* <init>() */
}
fun f(): String {
return "O"
}
val p: Int
field = 42
get
}
@@ -0,0 +1,97 @@
Module: <common>
FILE fqName:<root> fileName:/common.kt
CLASS CLASS name:C1 modality:OPEN visibility:public [expect] superTypes:[kotlin.Any]
$this: VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.C1
CONSTRUCTOR visibility:public <> () returnType:<root>.C1 [primary,expect]
FUN name:f visibility:public modality:FINAL <> ($this:<root>.C1) returnType:kotlin.String [expect]
$this: VALUE_PARAMETER name:<this> type:<root>.C1
PROPERTY name:p visibility:public modality:FINAL [expect,val]
FIELD PROPERTY_BACKING_FIELD name:p type:kotlin.Int visibility:private [final]
FUN DEFAULT_PROPERTY_ACCESSOR name:<get-p> visibility:public modality:FINAL <> ($this:<root>.C1) returnType:kotlin.Int
correspondingProperty: PROPERTY name:p visibility:public modality:FINAL [expect,val]
$this: VALUE_PARAMETER name:<this> type:<root>.C1
BLOCK_BODY
RETURN type=kotlin.Nothing from='public final fun <get-p> (): kotlin.Int declared in <root>.C1'
GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:p type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null
receiver: GET_VAR '<this>: <root>.C1 declared in <root>.C1.<get-p>' type=<root>.C1 origin=null
FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean [expect,fake_override,operator]
overridden:
public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] 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 [expect,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 [expect,fake_override]
overridden:
public open fun toString (): kotlin.String declared in kotlin.Any
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
CLASS CLASS name:C2 modality:FINAL visibility:public superTypes:[<root>.C1]
$this: VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.C2
CONSTRUCTOR visibility:public <> () returnType:<root>.C2 [primary]
BLOCK_BODY
DELEGATING_CONSTRUCTOR_CALL 'public constructor <init> () [primary,expect] declared in <root>.C1'
INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C2 modality:FINAL visibility:public superTypes:[<root>.C1]'
FUN FAKE_OVERRIDE name:f visibility:public modality:FINAL <> ($this:<root>.C1) returnType:kotlin.String [expect,fake_override]
overridden:
public final fun f (): kotlin.String [expect] declared in <root>.C1
$this: VALUE_PARAMETER name:<this> type:<root>.C1
PROPERTY FAKE_OVERRIDE name:p visibility:public modality:FINAL [expect,fake_override,val]
overridden:
public final p: kotlin.Int [expect,val]
FUN FAKE_OVERRIDE name:<get-p> visibility:public modality:FINAL <> ($this:<root>.C1) returnType:kotlin.Int [fake_override]
correspondingProperty: PROPERTY FAKE_OVERRIDE name:p visibility:public modality:FINAL [expect,fake_override,val]
overridden:
public final fun <get-p> (): kotlin.Int declared in <root>.C1
$this: VALUE_PARAMETER name:<this> type:<root>.C1
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 [expect,fake_override,operator] declared in <root>.C1
$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 [expect,fake_override] declared in <root>.C1
$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 [expect,fake_override] declared in <root>.C1
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
Module: platform
FILE fqName:<root> fileName:/platform.kt
CLASS CLASS name:C1 modality:OPEN visibility:public superTypes:[kotlin.Any]
$this: VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.C1
CONSTRUCTOR visibility:public <> () returnType:<root>.C1 [primary]
BLOCK_BODY
DELEGATING_CONSTRUCTOR_CALL 'public constructor <init> () [primary] declared in kotlin.Any'
INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C1 modality:OPEN visibility:public superTypes:[kotlin.Any]'
FUN name:f visibility:public modality:FINAL <> ($this:<root>.C1) returnType:kotlin.String
$this: VALUE_PARAMETER name:<this> type:<root>.C1
BLOCK_BODY
RETURN type=kotlin.Nothing from='public final fun f (): kotlin.String declared in <root>.C1'
CONST String type=kotlin.String value="O"
PROPERTY name:p visibility:public modality:FINAL [val]
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:FINAL <> ($this:<root>.C1) returnType:kotlin.Int
correspondingProperty: PROPERTY name:p visibility:public modality:FINAL [val]
$this: VALUE_PARAMETER name:<this> type:<root>.C1
BLOCK_BODY
RETURN type=kotlin.Nothing from='public final fun <get-p> (): kotlin.Int declared in <root>.C1'
GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:p type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null
receiver: GET_VAR '<this>: <root>.C1 declared in <root>.C1.<get-p>' type=<root>.C1 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 [operator] 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
@@ -0,0 +1,24 @@
// FIR_IDENTICAL
// IGNORE_BACKEND_K1: JVM_IR, JS_IR
// SKIP_KLIB_TEST
// LANGUAGE: +MultiPlatformProjects
// MODULE: common
// FILE: common.kt
expect open class C1() {
fun f(): String
val p: Int
}
class C2 : C1()
// MODULE: platform()()(common)
// FILE: platform.kt
actual open class C1 {
actual fun f() = "O"
actual val p = 42
}
@@ -0,0 +1,40 @@
// MODULE: <common>
// FILE: common.kt
expect open class C1 {
expect constructor() /* primary */
expect fun f(): String
expect val p: Int
get
}
class C2 : C1 {
constructor() /* primary */ {
super/*C1*/()
/* <init>() */
}
}
// MODULE: platform
// FILE: platform.kt
open class C1 {
constructor() /* primary */ {
super/*Any*/()
/* <init>() */
}
fun f(): String {
return "O"
}
val p: Int
field = 42
get
}
@@ -1009,6 +1009,18 @@ public class ClassicJvmIrTextTestGenerated extends AbstractClassicJvmIrTextTest
runTest("compiler/testData/ir/irText/declarations/multiplatform/expectIntersectionOverride.kt");
}
@Test
@TestMetadata("expectMemberInNotExpectClass.kt")
public void testExpectMemberInNotExpectClass() throws Exception {
runTest("compiler/testData/ir/irText/declarations/multiplatform/expectMemberInNotExpectClass.kt");
}
@Test
@TestMetadata("expectMemberInNotExpectClassFir.kt")
public void testExpectMemberInNotExpectClassFir() throws Exception {
runTest("compiler/testData/ir/irText/declarations/multiplatform/expectMemberInNotExpectClassFir.kt");
}
@Test
@TestMetadata("expectedEnumClass.kt")
public void testExpectedEnumClass() throws Exception {
@@ -737,6 +737,16 @@ public class KlibIrTextTestCaseGenerated extends AbstractKlibIrTextTestCase {
runTest("compiler/testData/ir/irText/declarations/multiplatform/expectIntersectionOverride.kt");
}
@TestMetadata("expectMemberInNotExpectClass.kt")
public void testExpectMemberInNotExpectClass() throws Exception {
runTest("compiler/testData/ir/irText/declarations/multiplatform/expectMemberInNotExpectClass.kt");
}
@TestMetadata("expectMemberInNotExpectClassFir.kt")
public void testExpectMemberInNotExpectClassFir() throws Exception {
runTest("compiler/testData/ir/irText/declarations/multiplatform/expectMemberInNotExpectClassFir.kt");
}
@TestMetadata("expectedEnumClass.kt")
public void testExpectedEnumClass() throws Exception {
runTest("compiler/testData/ir/irText/declarations/multiplatform/expectedEnumClass.kt");
@@ -829,6 +829,18 @@ public class FirLightTreeJsIrTextTestGenerated extends AbstractFirLightTreeJsIrT
runTest("compiler/testData/ir/irText/declarations/multiplatform/expectIntersectionOverride.kt");
}
@Test
@TestMetadata("expectMemberInNotExpectClass.kt")
public void testExpectMemberInNotExpectClass() throws Exception {
runTest("compiler/testData/ir/irText/declarations/multiplatform/expectMemberInNotExpectClass.kt");
}
@Test
@TestMetadata("expectMemberInNotExpectClassFir.kt")
public void testExpectMemberInNotExpectClassFir() throws Exception {
runTest("compiler/testData/ir/irText/declarations/multiplatform/expectMemberInNotExpectClassFir.kt");
}
@Test
@TestMetadata("expectedEnumClass.kt")
public void testExpectedEnumClass() throws Exception {
@@ -829,6 +829,18 @@ public class FirPsiJsIrTextTestGenerated extends AbstractFirPsiJsIrTextTest {
runTest("compiler/testData/ir/irText/declarations/multiplatform/expectIntersectionOverride.kt");
}
@Test
@TestMetadata("expectMemberInNotExpectClass.kt")
public void testExpectMemberInNotExpectClass() throws Exception {
runTest("compiler/testData/ir/irText/declarations/multiplatform/expectMemberInNotExpectClass.kt");
}
@Test
@TestMetadata("expectMemberInNotExpectClassFir.kt")
public void testExpectMemberInNotExpectClassFir() throws Exception {
runTest("compiler/testData/ir/irText/declarations/multiplatform/expectMemberInNotExpectClassFir.kt");
}
@Test
@TestMetadata("expectedEnumClass.kt")
public void testExpectedEnumClass() throws Exception {
@@ -829,6 +829,18 @@ public class ClassicJsIrTextTestGenerated extends AbstractClassicJsIrTextTest {
runTest("compiler/testData/ir/irText/declarations/multiplatform/expectIntersectionOverride.kt");
}
@Test
@TestMetadata("expectMemberInNotExpectClass.kt")
public void testExpectMemberInNotExpectClass() throws Exception {
runTest("compiler/testData/ir/irText/declarations/multiplatform/expectMemberInNotExpectClass.kt");
}
@Test
@TestMetadata("expectMemberInNotExpectClassFir.kt")
public void testExpectMemberInNotExpectClassFir() throws Exception {
runTest("compiler/testData/ir/irText/declarations/multiplatform/expectMemberInNotExpectClassFir.kt");
}
@Test
@TestMetadata("expectedEnumClass.kt")
public void testExpectedEnumClass() throws Exception {