FIR2IR: make enum with abstract members from interfaces abstract
Related to KT-55828
This commit is contained in:
-2
@@ -1,5 +1,3 @@
|
||||
// KT-55828
|
||||
// IGNORE_BACKEND_K2: NATIVE
|
||||
interface IFoo {
|
||||
fun foo(): String
|
||||
}
|
||||
|
||||
-2
@@ -1,5 +1,3 @@
|
||||
// KT-55828
|
||||
// IGNORE_BACKEND_K2: NATIVE
|
||||
interface IFoo {
|
||||
fun foo(): String
|
||||
}
|
||||
|
||||
-2
@@ -1,5 +1,3 @@
|
||||
// KT-55828
|
||||
// IGNORE_BACKEND_K2: NATIVE
|
||||
interface IFoo {
|
||||
fun foo(): String
|
||||
}
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
// KT-55828
|
||||
// IGNORE_BACKEND_K2: NATIVE
|
||||
package test
|
||||
|
||||
fun box() = MyEnum.E1.f() + MyEnum.E2.f()
|
||||
|
||||
@@ -542,13 +542,13 @@ FILE fqName:<root> fileName:/enumClassModality.kt
|
||||
overridden:
|
||||
public open fun toString (): kotlin.String declared in kotlin.Any
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Any
|
||||
CLASS ENUM_CLASS name:TestAbstractEnum2 modality:OPEN visibility:public superTypes:[<root>.IFoo; kotlin.Enum<<root>.TestAbstractEnum2>]
|
||||
CLASS ENUM_CLASS name:TestAbstractEnum2 modality:ABSTRACT visibility:public superTypes:[<root>.IFoo; kotlin.Enum<<root>.TestAbstractEnum2>]
|
||||
$this: VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.TestAbstractEnum2
|
||||
CONSTRUCTOR visibility:private <> () returnType:<root>.TestAbstractEnum2 [primary]
|
||||
BLOCK_BODY
|
||||
ENUM_CONSTRUCTOR_CALL 'public constructor <init> (name: kotlin.String, ordinal: kotlin.Int) [primary] declared in kotlin.Enum'
|
||||
<E>: <root>.TestAbstractEnum2
|
||||
INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_CLASS name:TestAbstractEnum2 modality:OPEN visibility:public superTypes:[<root>.IFoo; kotlin.Enum<<root>.TestAbstractEnum2>]'
|
||||
INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_CLASS name:TestAbstractEnum2 modality:ABSTRACT visibility:public superTypes:[<root>.IFoo; kotlin.Enum<<root>.TestAbstractEnum2>]'
|
||||
ENUM_ENTRY name:X1
|
||||
init: EXPRESSION_BODY
|
||||
ENUM_CONSTRUCTOR_CALL 'private constructor <init> () [primary] declared in <root>.TestAbstractEnum2.X1'
|
||||
|
||||
@@ -156,7 +156,7 @@ interface IFoo {
|
||||
|
||||
}
|
||||
|
||||
open enum class TestAbstractEnum2 : IFoo, Enum<TestAbstractEnum2> {
|
||||
abstract enum class TestAbstractEnum2 : IFoo, Enum<TestAbstractEnum2> {
|
||||
private constructor() /* primary */ {
|
||||
super/*Enum*/<TestAbstractEnum2>()
|
||||
/* <init>() */
|
||||
|
||||
Reference in New Issue
Block a user