IR text tests: Unmute enum class-related tests
Making enum class-related tests unmuted requires implementing a special "compatibility" mode for IR tree dumper to filter out fake override declarations leaking from java.enum.Enum and kotlin.Enum (JVM-only) classes.
This commit is contained in:
committed by
Space Team
parent
fd96ee1d0b
commit
4532f52898
-12
@@ -147,10 +147,6 @@ FILE fqName:<root> fileName:/classesWithAnnotations.kt
|
||||
FUN ENUM_CLASS_SPECIAL_MEMBER name:<get-entries> visibility:public modality:FINAL <> () returnType:kotlin.enums.EnumEntries<<root>.TestEnum>
|
||||
correspondingProperty: PROPERTY ENUM_CLASS_SPECIAL_MEMBER name:entries visibility:public modality:FINAL [val]
|
||||
SYNTHETIC_BODY kind=ENUM_ENTRIES
|
||||
FUN FAKE_OVERRIDE name:clone visibility:protected modality:FINAL <> ($this:kotlin.Enum<<root>.TestEnum>) returnType:kotlin.Any [fake_override]
|
||||
overridden:
|
||||
protected final fun clone (): kotlin.Any declared in kotlin.Enum
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Enum<<root>.TestEnum>
|
||||
FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum<<root>.TestEnum>, other:<root>.TestEnum) returnType:kotlin.Int [fake_override,operator]
|
||||
overridden:
|
||||
public final fun compareTo (other: E of kotlin.Enum): kotlin.Int declared in kotlin.Enum
|
||||
@@ -187,14 +183,6 @@ FILE fqName:<root> fileName:/classesWithAnnotations.kt
|
||||
overridden:
|
||||
public final fun <get-ordinal> (): kotlin.Int declared in kotlin.Enum
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Enum<<root>.TestEnum>
|
||||
FUN FAKE_OVERRIDE name:getDeclaringClass visibility:public modality:FINAL <> ($this:kotlin.Enum<<root>.TestEnum>) returnType:@[FlexibleNullability] java.lang.Class<@[FlexibleNullability] <root>.TestEnum?>? [fake_override]
|
||||
overridden:
|
||||
public final fun getDeclaringClass (): @[FlexibleNullability] java.lang.Class<@[FlexibleNullability] E of kotlin.Enum?>? declared in kotlin.Enum
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Enum<<root>.TestEnum>
|
||||
FUN FAKE_OVERRIDE name:finalize visibility:protected/*protected and package*/ modality:FINAL <> ($this:kotlin.Enum<<root>.TestEnum>) returnType:kotlin.Unit [fake_override]
|
||||
overridden:
|
||||
protected/*protected and package*/ final fun finalize (): kotlin.Unit declared in kotlin.Enum
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Enum<<root>.TestEnum>
|
||||
CLASS ANNOTATION_CLASS name:TestAnnotation modality:OPEN visibility:public superTypes:[kotlin.Annotation]
|
||||
annotations:
|
||||
TestAnn(x = "annotation")
|
||||
|
||||
-12
@@ -156,10 +156,6 @@ FILE fqName:<root> fileName:/classesWithAnnotations.kt
|
||||
overridden:
|
||||
public final fun <get-ordinal> (): kotlin.Int declared in kotlin.Enum
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Enum<<root>.TestEnum>
|
||||
FUN FAKE_OVERRIDE name:clone visibility:protected modality:FINAL <> ($this:kotlin.Enum<<root>.TestEnum>) returnType:kotlin.Any [fake_override]
|
||||
overridden:
|
||||
protected final fun clone (): kotlin.Any declared in kotlin.Enum
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Enum<<root>.TestEnum>
|
||||
FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum<<root>.TestEnum>, other:<root>.TestEnum) returnType:kotlin.Int [fake_override,operator]
|
||||
overridden:
|
||||
public final fun compareTo (other: E of kotlin.Enum): kotlin.Int declared in kotlin.Enum
|
||||
@@ -170,14 +166,6 @@ FILE fqName:<root> fileName:/classesWithAnnotations.kt
|
||||
public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Enum
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Enum<<root>.TestEnum>
|
||||
VALUE_PARAMETER name:other index:0 type:kotlin.Any?
|
||||
FUN FAKE_OVERRIDE name:finalize visibility:protected/*protected and package*/ modality:FINAL <> ($this:kotlin.Enum<<root>.TestEnum>) returnType:kotlin.Unit [fake_override]
|
||||
overridden:
|
||||
protected/*protected and package*/ final fun finalize (): kotlin.Unit declared in kotlin.Enum
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Enum<<root>.TestEnum>
|
||||
FUN FAKE_OVERRIDE name:getDeclaringClass visibility:public modality:FINAL <> ($this:kotlin.Enum<<root>.TestEnum>) returnType:@[FlexibleNullability] java.lang.Class<@[FlexibleNullability] <root>.TestEnum?>? [fake_override]
|
||||
overridden:
|
||||
public final fun getDeclaringClass (): @[FlexibleNullability] java.lang.Class<@[FlexibleNullability] E of kotlin.Enum?>? declared in kotlin.Enum
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Enum<<root>.TestEnum>
|
||||
FUN FAKE_OVERRIDE name:hashCode visibility:public modality:FINAL <> ($this:kotlin.Enum<<root>.TestEnum>) returnType:kotlin.Int [fake_override]
|
||||
overridden:
|
||||
public final fun hashCode (): kotlin.Int declared in kotlin.Enum
|
||||
|
||||
-5
@@ -1,8 +1,3 @@
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
|
||||
// KT-61141: absent enum fake_overrides: finalize, getDeclaringClass, clone
|
||||
// IGNORE_BACKEND: NATIVE
|
||||
|
||||
annotation class TestAnn(val x: String)
|
||||
|
||||
@TestAnn("class")
|
||||
|
||||
+21
-30
@@ -106,24 +106,14 @@ enum class TestEnum : Enum<TestEnum> {
|
||||
// Public signature debug description: values#static(){}
|
||||
fun values(): Array<TestEnum>
|
||||
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: TestEnum#clone(){}kotlin.Any
|
||||
// Public signature: /TestEnum.clone|-6903128697527593263[0]
|
||||
// Public signature debug description: clone(){}kotlin.Any
|
||||
// CHECK JS_IR NATIVE:
|
||||
// Mangled name: TestEnum#compareTo(TestEnum){}
|
||||
// Public signature: /TestEnum.compareTo|7350720606720122863[0]
|
||||
// Public signature debug description: compareTo(TestEnum){}
|
||||
protected /* fake */ override fun clone(): Any
|
||||
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: TestEnum#compareTo(TestEnum){}kotlin.Int
|
||||
// Public signature: /TestEnum.compareTo|7559751212169934687[0]
|
||||
// Public signature debug description: compareTo(TestEnum){}kotlin.Int
|
||||
// CHECK JS_IR NATIVE:
|
||||
// Mangled name: TestEnum#equals(kotlin.Any?){}
|
||||
// Public signature: /TestEnum.equals|4638265728071529943[0]
|
||||
// Public signature debug description: equals(kotlin.Any?){}
|
||||
// Mangled name: TestEnum#compareTo(TestEnum){}
|
||||
// Public signature: /TestEnum.compareTo|7350720606720122863[0]
|
||||
// Public signature debug description: compareTo(TestEnum){}
|
||||
/* fake */ override operator fun compareTo(other: TestEnum): Int
|
||||
|
||||
// CHECK JVM_IR:
|
||||
@@ -131,9 +121,9 @@ enum class TestEnum : Enum<TestEnum> {
|
||||
// Public signature: /TestEnum.equals|722809408929142791[0]
|
||||
// Public signature debug description: equals(kotlin.Any?){}kotlin.Boolean
|
||||
// CHECK JS_IR NATIVE:
|
||||
// Mangled name: TestEnum#hashCode(){}
|
||||
// Public signature: /TestEnum.hashCode|3409210261493131192[0]
|
||||
// Public signature debug description: hashCode(){}
|
||||
// Mangled name: TestEnum#equals(kotlin.Any?){}
|
||||
// Public signature: /TestEnum.equals|4638265728071529943[0]
|
||||
// Public signature debug description: equals(kotlin.Any?){}
|
||||
/* fake */ override operator fun equals(other: Any?): Boolean
|
||||
|
||||
// CHECK JVM_IR:
|
||||
@@ -141,9 +131,9 @@ enum class TestEnum : Enum<TestEnum> {
|
||||
// Public signature: /TestEnum.hashCode|-8048879360829830756[0]
|
||||
// Public signature debug description: hashCode(){}kotlin.Int
|
||||
// CHECK JS_IR NATIVE:
|
||||
// Mangled name: TestEnum#toString(){}
|
||||
// Public signature: /TestEnum.toString|-1522858123163872138[0]
|
||||
// Public signature debug description: toString(){}
|
||||
// Mangled name: TestEnum#hashCode(){}
|
||||
// Public signature: /TestEnum.hashCode|3409210261493131192[0]
|
||||
// Public signature debug description: hashCode(){}
|
||||
/* fake */ override fun hashCode(): Int
|
||||
|
||||
// CHECK JVM_IR:
|
||||
@@ -151,9 +141,9 @@ enum class TestEnum : Enum<TestEnum> {
|
||||
// Public signature: /TestEnum.toString|6958853723545266802[0]
|
||||
// Public signature debug description: toString(){}kotlin.String
|
||||
// CHECK JS_IR NATIVE:
|
||||
// Mangled name: TestEnum#static{}entries
|
||||
// Public signature: /TestEnum.entries|-5134227801081826149[0]
|
||||
// Public signature debug description: #static{}entries
|
||||
// Mangled name: TestEnum#toString(){}
|
||||
// Public signature: /TestEnum.toString|-1522858123163872138[0]
|
||||
// Public signature debug description: toString(){}
|
||||
/* fake */ override fun toString(): String
|
||||
|
||||
// CHECK:
|
||||
@@ -166,9 +156,9 @@ enum class TestEnum : Enum<TestEnum> {
|
||||
// Public signature: /TestEnum.entries.<get-entries>|6962221716588245012[0]
|
||||
// Public signature debug description: <get-entries>#static(){}kotlin.enums.EnumEntries<TestEnum>
|
||||
// CHECK JS_IR NATIVE:
|
||||
// Mangled name: TestEnum{}name
|
||||
// Public signature: /TestEnum.name|4231860309499509769[0]
|
||||
// Public signature debug description: {}name
|
||||
// Mangled name: TestEnum#<get-entries>#static(){}
|
||||
// Public signature: /TestEnum.entries.<get-entries>|-6068527377476727729[0]
|
||||
// Public signature debug description: <get-entries>#static(){}
|
||||
get(): EnumEntries<TestEnum>
|
||||
|
||||
// CHECK:
|
||||
@@ -181,9 +171,9 @@ enum class TestEnum : Enum<TestEnum> {
|
||||
// Public signature: /TestEnum.name.<get-name>|-8006111524522882650[0]
|
||||
// Public signature debug description: <get-name>(){}kotlin.String
|
||||
// CHECK JS_IR NATIVE:
|
||||
// Mangled name: TestEnum{}ordinal
|
||||
// Public signature: /TestEnum.ordinal|1912745122988592376[0]
|
||||
// Public signature debug description: {}ordinal
|
||||
// Mangled name: TestEnum#<get-name>(){}
|
||||
// Public signature: /TestEnum.name.<get-name>|5879344792307730109[0]
|
||||
// Public signature debug description: <get-name>(){}
|
||||
/* fake */ override get(): String
|
||||
|
||||
// CHECK:
|
||||
@@ -196,8 +186,9 @@ enum class TestEnum : Enum<TestEnum> {
|
||||
// Public signature: /TestEnum.ordinal.<get-ordinal>|-6902664390061762634[0]
|
||||
// Public signature debug description: <get-ordinal>(){}kotlin.Int
|
||||
// CHECK JS_IR NATIVE:
|
||||
// Mangled name: TestInterface
|
||||
// Public signature: /TestInterface|null[0]
|
||||
// Mangled name: TestEnum#<get-ordinal>(){}
|
||||
// Public signature: /TestEnum.ordinal.<get-ordinal>|8409904226035914023[0]
|
||||
// Public signature debug description: <get-ordinal>(){}
|
||||
/* fake */ override get(): Int
|
||||
|
||||
}
|
||||
|
||||
-24
@@ -64,10 +64,6 @@ FILE fqName:<root> fileName:/enumEntriesWithAnnotations.kt
|
||||
RETURN type=kotlin.Nothing from='public final fun <get-x> (): kotlin.Int declared in <root>.TestEnum.ENTRY2'
|
||||
GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null
|
||||
receiver: GET_VAR '<this>: <root>.TestEnum.ENTRY2 declared in <root>.TestEnum.ENTRY2.<get-x>' type=<root>.TestEnum.ENTRY2 origin=null
|
||||
FUN FAKE_OVERRIDE name:clone visibility:protected modality:FINAL <> ($this:kotlin.Enum<<root>.TestEnum>) returnType:kotlin.Any [fake_override]
|
||||
overridden:
|
||||
protected final fun clone (): kotlin.Any declared in <root>.TestEnum
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Enum<<root>.TestEnum>
|
||||
FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum<<root>.TestEnum>, other:<root>.TestEnum) returnType:kotlin.Int [fake_override,operator]
|
||||
overridden:
|
||||
public final fun compareTo (other: <root>.TestEnum): kotlin.Int declared in <root>.TestEnum
|
||||
@@ -104,14 +100,6 @@ FILE fqName:<root> fileName:/enumEntriesWithAnnotations.kt
|
||||
overridden:
|
||||
public final fun <get-ordinal> (): kotlin.Int declared in <root>.TestEnum
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Enum<<root>.TestEnum>
|
||||
FUN FAKE_OVERRIDE name:getDeclaringClass visibility:public modality:FINAL <> ($this:kotlin.Enum<<root>.TestEnum>) returnType:@[FlexibleNullability] java.lang.Class<@[FlexibleNullability] <root>.TestEnum?>? [fake_override]
|
||||
overridden:
|
||||
public final fun getDeclaringClass (): @[FlexibleNullability] java.lang.Class<@[FlexibleNullability] <root>.TestEnum?>? declared in <root>.TestEnum
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Enum<<root>.TestEnum>
|
||||
FUN FAKE_OVERRIDE name:finalize visibility:protected/*protected and package*/ modality:FINAL <> ($this:kotlin.Enum<<root>.TestEnum>) returnType:kotlin.Unit [fake_override]
|
||||
overridden:
|
||||
protected/*protected and package*/ final fun finalize (): kotlin.Unit declared in <root>.TestEnum
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Enum<<root>.TestEnum>
|
||||
FUN ENUM_CLASS_SPECIAL_MEMBER name:values visibility:public modality:FINAL <> () returnType:kotlin.Array<<root>.TestEnum>
|
||||
SYNTHETIC_BODY kind=ENUM_VALUES
|
||||
FUN ENUM_CLASS_SPECIAL_MEMBER name:valueOf visibility:public modality:FINAL <> (value:kotlin.String) returnType:<root>.TestEnum
|
||||
@@ -121,10 +109,6 @@ FILE fqName:<root> fileName:/enumEntriesWithAnnotations.kt
|
||||
FUN ENUM_CLASS_SPECIAL_MEMBER name:<get-entries> visibility:public modality:FINAL <> () returnType:kotlin.enums.EnumEntries<<root>.TestEnum>
|
||||
correspondingProperty: PROPERTY ENUM_CLASS_SPECIAL_MEMBER name:entries visibility:public modality:FINAL [val]
|
||||
SYNTHETIC_BODY kind=ENUM_ENTRIES
|
||||
FUN FAKE_OVERRIDE name:clone visibility:protected modality:FINAL <> ($this:kotlin.Enum<<root>.TestEnum>) returnType:kotlin.Any [fake_override]
|
||||
overridden:
|
||||
protected final fun clone (): kotlin.Any declared in kotlin.Enum
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Enum<<root>.TestEnum>
|
||||
FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum<<root>.TestEnum>, other:<root>.TestEnum) returnType:kotlin.Int [fake_override,operator]
|
||||
overridden:
|
||||
public final fun compareTo (other: E of kotlin.Enum): kotlin.Int declared in kotlin.Enum
|
||||
@@ -161,11 +145,3 @@ FILE fqName:<root> fileName:/enumEntriesWithAnnotations.kt
|
||||
overridden:
|
||||
public final fun <get-ordinal> (): kotlin.Int declared in kotlin.Enum
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Enum<<root>.TestEnum>
|
||||
FUN FAKE_OVERRIDE name:getDeclaringClass visibility:public modality:FINAL <> ($this:kotlin.Enum<<root>.TestEnum>) returnType:@[FlexibleNullability] java.lang.Class<@[FlexibleNullability] <root>.TestEnum?>? [fake_override]
|
||||
overridden:
|
||||
public final fun getDeclaringClass (): @[FlexibleNullability] java.lang.Class<@[FlexibleNullability] E of kotlin.Enum?>? declared in kotlin.Enum
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Enum<<root>.TestEnum>
|
||||
FUN FAKE_OVERRIDE name:finalize visibility:protected/*protected and package*/ modality:FINAL <> ($this:kotlin.Enum<<root>.TestEnum>) returnType:kotlin.Unit [fake_override]
|
||||
overridden:
|
||||
protected/*protected and package*/ final fun finalize (): kotlin.Unit declared in kotlin.Enum
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Enum<<root>.TestEnum>
|
||||
|
||||
-24
@@ -85,10 +85,6 @@ FILE fqName:<root> fileName:/enumEntriesWithAnnotations.kt
|
||||
overridden:
|
||||
public final fun <get-ordinal> (): kotlin.Int declared in <root>.TestEnum
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Enum<<root>.TestEnum>
|
||||
FUN FAKE_OVERRIDE name:clone visibility:protected modality:FINAL <> ($this:kotlin.Enum<<root>.TestEnum>) returnType:kotlin.Any [fake_override]
|
||||
overridden:
|
||||
protected final fun clone (): kotlin.Any declared in <root>.TestEnum
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Enum<<root>.TestEnum>
|
||||
FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum<<root>.TestEnum>, other:<root>.TestEnum) returnType:kotlin.Int [fake_override,operator]
|
||||
overridden:
|
||||
public final fun compareTo (other: <root>.TestEnum): kotlin.Int declared in <root>.TestEnum
|
||||
@@ -99,14 +95,6 @@ FILE fqName:<root> fileName:/enumEntriesWithAnnotations.kt
|
||||
public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in <root>.TestEnum
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Enum<<root>.TestEnum>
|
||||
VALUE_PARAMETER name:other index:0 type:kotlin.Any?
|
||||
FUN FAKE_OVERRIDE name:finalize visibility:protected/*protected and package*/ modality:FINAL <> ($this:kotlin.Enum<<root>.TestEnum>) returnType:kotlin.Unit [fake_override]
|
||||
overridden:
|
||||
protected/*protected and package*/ final fun finalize (): kotlin.Unit declared in <root>.TestEnum
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Enum<<root>.TestEnum>
|
||||
FUN FAKE_OVERRIDE name:getDeclaringClass visibility:public modality:FINAL <> ($this:kotlin.Enum<<root>.TestEnum>) returnType:@[FlexibleNullability] java.lang.Class<@[FlexibleNullability] <root>.TestEnum?>? [fake_override]
|
||||
overridden:
|
||||
public final fun getDeclaringClass (): @[FlexibleNullability] java.lang.Class<@[FlexibleNullability] <root>.TestEnum?>? declared in <root>.TestEnum
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Enum<<root>.TestEnum>
|
||||
FUN FAKE_OVERRIDE name:hashCode visibility:public modality:FINAL <> ($this:kotlin.Enum<<root>.TestEnum>) returnType:kotlin.Int [fake_override]
|
||||
overridden:
|
||||
public final fun hashCode (): kotlin.Int declared in <root>.TestEnum
|
||||
@@ -133,10 +121,6 @@ FILE fqName:<root> fileName:/enumEntriesWithAnnotations.kt
|
||||
overridden:
|
||||
public final fun <get-ordinal> (): kotlin.Int declared in kotlin.Enum
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Enum<<root>.TestEnum>
|
||||
FUN FAKE_OVERRIDE name:clone visibility:protected modality:FINAL <> ($this:kotlin.Enum<<root>.TestEnum>) returnType:kotlin.Any [fake_override]
|
||||
overridden:
|
||||
protected final fun clone (): kotlin.Any declared in kotlin.Enum
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Enum<<root>.TestEnum>
|
||||
FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum<<root>.TestEnum>, other:<root>.TestEnum) returnType:kotlin.Int [fake_override,operator]
|
||||
overridden:
|
||||
public final fun compareTo (other: E of kotlin.Enum): kotlin.Int declared in kotlin.Enum
|
||||
@@ -147,14 +131,6 @@ FILE fqName:<root> fileName:/enumEntriesWithAnnotations.kt
|
||||
public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Enum
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Enum<<root>.TestEnum>
|
||||
VALUE_PARAMETER name:other index:0 type:kotlin.Any?
|
||||
FUN FAKE_OVERRIDE name:finalize visibility:protected/*protected and package*/ modality:FINAL <> ($this:kotlin.Enum<<root>.TestEnum>) returnType:kotlin.Unit [fake_override]
|
||||
overridden:
|
||||
protected/*protected and package*/ final fun finalize (): kotlin.Unit declared in kotlin.Enum
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Enum<<root>.TestEnum>
|
||||
FUN FAKE_OVERRIDE name:getDeclaringClass visibility:public modality:FINAL <> ($this:kotlin.Enum<<root>.TestEnum>) returnType:@[FlexibleNullability] java.lang.Class<@[FlexibleNullability] <root>.TestEnum?>? [fake_override]
|
||||
overridden:
|
||||
public final fun getDeclaringClass (): @[FlexibleNullability] java.lang.Class<@[FlexibleNullability] E of kotlin.Enum?>? declared in kotlin.Enum
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Enum<<root>.TestEnum>
|
||||
FUN FAKE_OVERRIDE name:hashCode visibility:public modality:FINAL <> ($this:kotlin.Enum<<root>.TestEnum>) returnType:kotlin.Int [fake_override]
|
||||
overridden:
|
||||
public final fun hashCode (): kotlin.Int declared in kotlin.Enum
|
||||
|
||||
-5
@@ -1,11 +1,6 @@
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
|
||||
// SKIP_SIGNATURE_DUMP
|
||||
// ^ Difference in annotations generated by K1 and K2
|
||||
|
||||
// KT-61141: absent enum fake_overrides: finalize, getDeclaringClass, clone
|
||||
// IGNORE_BACKEND: NATIVE
|
||||
|
||||
annotation class TestAnn(val x: String)
|
||||
|
||||
enum class TestEnum {
|
||||
|
||||
-12
@@ -27,10 +27,6 @@ FILE fqName:<root> fileName:/enumsInAnnotationArguments.kt
|
||||
FUN ENUM_CLASS_SPECIAL_MEMBER name:<get-entries> visibility:public modality:FINAL <> () returnType:kotlin.enums.EnumEntries<<root>.En>
|
||||
correspondingProperty: PROPERTY ENUM_CLASS_SPECIAL_MEMBER name:entries visibility:public modality:FINAL [val]
|
||||
SYNTHETIC_BODY kind=ENUM_ENTRIES
|
||||
FUN FAKE_OVERRIDE name:clone visibility:protected modality:FINAL <> ($this:kotlin.Enum<<root>.En>) returnType:kotlin.Any [fake_override]
|
||||
overridden:
|
||||
protected final fun clone (): kotlin.Any declared in kotlin.Enum
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Enum<<root>.En>
|
||||
FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum<<root>.En>, other:<root>.En) returnType:kotlin.Int [fake_override,operator]
|
||||
overridden:
|
||||
public final fun compareTo (other: E of kotlin.Enum): kotlin.Int declared in kotlin.Enum
|
||||
@@ -67,14 +63,6 @@ FILE fqName:<root> fileName:/enumsInAnnotationArguments.kt
|
||||
overridden:
|
||||
public final fun <get-ordinal> (): kotlin.Int declared in kotlin.Enum
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Enum<<root>.En>
|
||||
FUN FAKE_OVERRIDE name:getDeclaringClass visibility:public modality:FINAL <> ($this:kotlin.Enum<<root>.En>) returnType:@[FlexibleNullability] java.lang.Class<@[FlexibleNullability] <root>.En?>? [fake_override]
|
||||
overridden:
|
||||
public final fun getDeclaringClass (): @[FlexibleNullability] java.lang.Class<@[FlexibleNullability] E of kotlin.Enum?>? declared in kotlin.Enum
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Enum<<root>.En>
|
||||
FUN FAKE_OVERRIDE name:finalize visibility:protected/*protected and package*/ modality:FINAL <> ($this:kotlin.Enum<<root>.En>) returnType:kotlin.Unit [fake_override]
|
||||
overridden:
|
||||
protected/*protected and package*/ final fun finalize (): kotlin.Unit declared in kotlin.Enum
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Enum<<root>.En>
|
||||
CLASS ANNOTATION_CLASS name:TestAnn modality:OPEN visibility:public superTypes:[kotlin.Annotation]
|
||||
$this: VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.TestAnn
|
||||
CONSTRUCTOR visibility:public <> (x:<root>.En) returnType:<root>.TestAnn [primary]
|
||||
|
||||
-12
@@ -36,10 +36,6 @@ FILE fqName:<root> fileName:/enumsInAnnotationArguments.kt
|
||||
overridden:
|
||||
public final fun <get-ordinal> (): kotlin.Int declared in kotlin.Enum
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Enum<<root>.En>
|
||||
FUN FAKE_OVERRIDE name:clone visibility:protected modality:FINAL <> ($this:kotlin.Enum<<root>.En>) returnType:kotlin.Any [fake_override]
|
||||
overridden:
|
||||
protected final fun clone (): kotlin.Any declared in kotlin.Enum
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Enum<<root>.En>
|
||||
FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum<<root>.En>, other:<root>.En) returnType:kotlin.Int [fake_override,operator]
|
||||
overridden:
|
||||
public final fun compareTo (other: E of kotlin.Enum): kotlin.Int declared in kotlin.Enum
|
||||
@@ -50,14 +46,6 @@ FILE fqName:<root> fileName:/enumsInAnnotationArguments.kt
|
||||
public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Enum
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Enum<<root>.En>
|
||||
VALUE_PARAMETER name:other index:0 type:kotlin.Any?
|
||||
FUN FAKE_OVERRIDE name:finalize visibility:protected/*protected and package*/ modality:FINAL <> ($this:kotlin.Enum<<root>.En>) returnType:kotlin.Unit [fake_override]
|
||||
overridden:
|
||||
protected/*protected and package*/ final fun finalize (): kotlin.Unit declared in kotlin.Enum
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Enum<<root>.En>
|
||||
FUN FAKE_OVERRIDE name:getDeclaringClass visibility:public modality:FINAL <> ($this:kotlin.Enum<<root>.En>) returnType:@[FlexibleNullability] java.lang.Class<@[FlexibleNullability] <root>.En?>? [fake_override]
|
||||
overridden:
|
||||
public final fun getDeclaringClass (): @[FlexibleNullability] java.lang.Class<@[FlexibleNullability] E of kotlin.Enum?>? declared in kotlin.Enum
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Enum<<root>.En>
|
||||
FUN FAKE_OVERRIDE name:hashCode visibility:public modality:FINAL <> ($this:kotlin.Enum<<root>.En>) returnType:kotlin.Int [fake_override]
|
||||
overridden:
|
||||
public final fun hashCode (): kotlin.Int declared in kotlin.Enum
|
||||
|
||||
-5
@@ -1,8 +1,3 @@
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
|
||||
// KT-61141: absent enum fake_overrides: finalize, getDeclaringClass, clone
|
||||
// IGNORE_BACKEND: NATIVE
|
||||
|
||||
enum class En { A, B, C, D }
|
||||
|
||||
annotation class TestAnn(val x: En)
|
||||
|
||||
+19
-29
@@ -74,23 +74,13 @@ enum class En : Enum<En> {
|
||||
// Public signature debug description: values#static(){}
|
||||
fun values(): Array<En>
|
||||
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: En#clone(){}kotlin.Any
|
||||
// Public signature: /En.clone|-6903128697527593263[0]
|
||||
// Public signature debug description: clone(){}kotlin.Any
|
||||
// CHECK JS_IR NATIVE:
|
||||
// Mangled name: En#compareTo(En){}
|
||||
// Public signature: /En.compareTo|3555292261046836181[0]
|
||||
// Public signature debug description: clone(){}
|
||||
protected /* fake */ override fun clone(): Any
|
||||
|
||||
// CHECK JVM_IR:
|
||||
// Mangled name: En#compareTo(En){}kotlin.Int
|
||||
// Public signature: /En.compareTo|7450321438177070471[0]
|
||||
// Public signature debug description: compareTo(En){}kotlin.Int
|
||||
// CHECK JS_IR NATIVE:
|
||||
// Mangled name: En#equals(kotlin.Any?){}
|
||||
// Public signature: /En.equals|4638265728071529943[0]
|
||||
// Mangled name: En#compareTo(En){}
|
||||
// Public signature: /En.compareTo|3555292261046836181[0]
|
||||
// Public signature debug description: compareTo(En){}
|
||||
/* fake */ override operator fun compareTo(other: En): Int
|
||||
|
||||
@@ -99,8 +89,8 @@ enum class En : Enum<En> {
|
||||
// Public signature: /En.equals|722809408929142791[0]
|
||||
// Public signature debug description: equals(kotlin.Any?){}kotlin.Boolean
|
||||
// CHECK JS_IR NATIVE:
|
||||
// Mangled name: En#hashCode(){}
|
||||
// Public signature: /En.hashCode|3409210261493131192[0]
|
||||
// Mangled name: En#equals(kotlin.Any?){}
|
||||
// Public signature: /En.equals|4638265728071529943[0]
|
||||
// Public signature debug description: equals(kotlin.Any?){}
|
||||
/* fake */ override operator fun equals(other: Any?): Boolean
|
||||
|
||||
@@ -109,9 +99,9 @@ enum class En : Enum<En> {
|
||||
// Public signature: /En.hashCode|-8048879360829830756[0]
|
||||
// Public signature debug description: hashCode(){}kotlin.Int
|
||||
// CHECK JS_IR NATIVE:
|
||||
// Mangled name: En#toString(){}
|
||||
// Public signature: /En.toString|-1522858123163872138[0]
|
||||
// Public signature debug description: toString(){}
|
||||
// Mangled name: En#hashCode(){}
|
||||
// Public signature: /En.hashCode|3409210261493131192[0]
|
||||
// Public signature debug description: hashCode(){}
|
||||
/* fake */ override fun hashCode(): Int
|
||||
|
||||
// CHECK JVM_IR:
|
||||
@@ -119,9 +109,9 @@ enum class En : Enum<En> {
|
||||
// Public signature: /En.toString|6958853723545266802[0]
|
||||
// Public signature debug description: toString(){}kotlin.String
|
||||
// CHECK JS_IR NATIVE:
|
||||
// Mangled name: En#static{}entries
|
||||
// Public signature: /En.entries|-5134227801081826149[0]
|
||||
// Public signature debug description: #static{}entries
|
||||
// Mangled name: En#toString(){}
|
||||
// Public signature: /En.toString|-1522858123163872138[0]
|
||||
// Public signature debug description: toString(){}
|
||||
/* fake */ override fun toString(): String
|
||||
|
||||
// CHECK:
|
||||
@@ -134,9 +124,9 @@ enum class En : Enum<En> {
|
||||
// Public signature: /En.entries.<get-entries>|7832995474718587298[0]
|
||||
// Public signature debug description: <get-entries>#static(){}kotlin.enums.EnumEntries<En>
|
||||
// CHECK JS_IR NATIVE:
|
||||
// Mangled name: En{}name
|
||||
// Public signature: /En.name|4231860309499509769[0]
|
||||
// Public signature debug description: {}name
|
||||
// Mangled name: En#<get-entries>#static(){}
|
||||
// Public signature: /En.entries.<get-entries>|-6068527377476727729[0]
|
||||
// Public signature debug description: <get-entries>#static(){}
|
||||
get(): EnumEntries<En>
|
||||
|
||||
// CHECK:
|
||||
@@ -149,9 +139,9 @@ enum class En : Enum<En> {
|
||||
// Public signature: /En.name.<get-name>|-8006111524522882650[0]
|
||||
// Public signature debug description: <get-name>(){}kotlin.String
|
||||
// CHECK JS_IR NATIVE:
|
||||
// Mangled name: En{}ordinal
|
||||
// Public signature: /En.ordinal|1912745122988592376[0]
|
||||
// Public signature debug description: {}ordinal
|
||||
// Mangled name: En#<get-name>(){}
|
||||
// Public signature: /En.name.<get-name>|5879344792307730109[0]
|
||||
// Public signature debug description: <get-name>(){}
|
||||
/* fake */ override get(): String
|
||||
|
||||
// CHECK:
|
||||
@@ -164,9 +154,9 @@ enum class En : Enum<En> {
|
||||
// Public signature: /En.ordinal.<get-ordinal>|-6902664390061762634[0]
|
||||
// Public signature debug description: <get-ordinal>(){}kotlin.Int
|
||||
// CHECK JS_IR NATIVE:
|
||||
// Mangled name: #test1(){}
|
||||
// Public signature: /test1|4297044443957252634[0]
|
||||
// Public signature debug description: test1(){}
|
||||
// Mangled name: En#<get-ordinal>(){}
|
||||
// Public signature: /En.ordinal.<get-ordinal>|8409904226035914023[0]
|
||||
// Public signature debug description: <get-ordinal>(){}
|
||||
/* fake */ override get(): Int
|
||||
|
||||
}
|
||||
|
||||
-12
@@ -49,10 +49,6 @@ FILE fqName:<root> fileName:/C.kt
|
||||
FUN ENUM_CLASS_SPECIAL_MEMBER name:<get-entries> visibility:public modality:FINAL <> () returnType:kotlin.enums.EnumEntries<<root>.E>
|
||||
correspondingProperty: PROPERTY ENUM_CLASS_SPECIAL_MEMBER name:entries visibility:public modality:FINAL [val]
|
||||
SYNTHETIC_BODY kind=ENUM_ENTRIES
|
||||
FUN FAKE_OVERRIDE name:clone visibility:protected modality:FINAL <> ($this:kotlin.Enum<<root>.E>) returnType:kotlin.Any [fake_override]
|
||||
overridden:
|
||||
protected final fun clone (): kotlin.Any declared in kotlin.Enum
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Enum<<root>.E>
|
||||
FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum<<root>.E>, other:<root>.E) returnType:kotlin.Int [fake_override,operator]
|
||||
overridden:
|
||||
public final fun compareTo (other: E of kotlin.Enum): kotlin.Int declared in kotlin.Enum
|
||||
@@ -89,14 +85,6 @@ FILE fqName:<root> fileName:/C.kt
|
||||
overridden:
|
||||
public final fun <get-ordinal> (): kotlin.Int declared in kotlin.Enum
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Enum<<root>.E>
|
||||
FUN FAKE_OVERRIDE name:getDeclaringClass visibility:public modality:FINAL <> ($this:kotlin.Enum<<root>.E>) returnType:@[FlexibleNullability] java.lang.Class<@[FlexibleNullability] <root>.E?>? [fake_override]
|
||||
overridden:
|
||||
public final fun getDeclaringClass (): @[FlexibleNullability] java.lang.Class<@[FlexibleNullability] E of kotlin.Enum?>? declared in kotlin.Enum
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Enum<<root>.E>
|
||||
FUN FAKE_OVERRIDE name:finalize visibility:protected/*protected and package*/ modality:FINAL <> ($this:kotlin.Enum<<root>.E>) returnType:kotlin.Unit [fake_override]
|
||||
overridden:
|
||||
protected/*protected and package*/ final fun finalize (): kotlin.Unit declared in kotlin.Enum
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Enum<<root>.E>
|
||||
CLASS ANNOTATION_CLASS name:Annos modality:OPEN visibility:public superTypes:[kotlin.Annotation]
|
||||
$this: VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.Annos
|
||||
CONSTRUCTOR visibility:public <> (value:kotlin.Array<<root>.Anno>) returnType:<root>.Annos [primary]
|
||||
|
||||
Vendored
-12
@@ -58,10 +58,6 @@ FILE fqName:<root> fileName:/C.kt
|
||||
overridden:
|
||||
public final fun <get-ordinal> (): kotlin.Int declared in kotlin.Enum
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Enum<<root>.E>
|
||||
FUN FAKE_OVERRIDE name:clone visibility:protected modality:FINAL <> ($this:kotlin.Enum<<root>.E>) returnType:kotlin.Any [fake_override]
|
||||
overridden:
|
||||
protected final fun clone (): kotlin.Any declared in kotlin.Enum
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Enum<<root>.E>
|
||||
FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum<<root>.E>, other:<root>.E) returnType:kotlin.Int [fake_override,operator]
|
||||
overridden:
|
||||
public final fun compareTo (other: E of kotlin.Enum): kotlin.Int declared in kotlin.Enum
|
||||
@@ -72,14 +68,6 @@ FILE fqName:<root> fileName:/C.kt
|
||||
public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Enum
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Enum<<root>.E>
|
||||
VALUE_PARAMETER name:other index:0 type:kotlin.Any?
|
||||
FUN FAKE_OVERRIDE name:finalize visibility:protected/*protected and package*/ modality:FINAL <> ($this:kotlin.Enum<<root>.E>) returnType:kotlin.Unit [fake_override]
|
||||
overridden:
|
||||
protected/*protected and package*/ final fun finalize (): kotlin.Unit declared in kotlin.Enum
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Enum<<root>.E>
|
||||
FUN FAKE_OVERRIDE name:getDeclaringClass visibility:public modality:FINAL <> ($this:kotlin.Enum<<root>.E>) returnType:@[FlexibleNullability] java.lang.Class<@[FlexibleNullability] <root>.E?>? [fake_override]
|
||||
overridden:
|
||||
public final fun getDeclaringClass (): @[FlexibleNullability] java.lang.Class<@[FlexibleNullability] E of kotlin.Enum?>? declared in kotlin.Enum
|
||||
$this: VALUE_PARAMETER name:<this> type:kotlin.Enum<<root>.E>
|
||||
FUN FAKE_OVERRIDE name:hashCode visibility:public modality:FINAL <> ($this:kotlin.Enum<<root>.E>) returnType:kotlin.Int [fake_override]
|
||||
overridden:
|
||||
public final fun hashCode (): kotlin.Int declared in kotlin.Enum
|
||||
|
||||
Reference in New Issue
Block a user