diff --git a/compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/backend/generators/DelegatedMemberGenerator.kt b/compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/backend/generators/DelegatedMemberGenerator.kt index 96adcdbf1b5..bcae521cba9 100644 --- a/compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/backend/generators/DelegatedMemberGenerator.kt +++ b/compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/backend/generators/DelegatedMemberGenerator.kt @@ -12,6 +12,7 @@ import org.jetbrains.kotlin.fir.scopes.* import org.jetbrains.kotlin.fir.scopes.impl.delegatedWrapperData import org.jetbrains.kotlin.fir.symbols.ConeClassLikeLookupTag import org.jetbrains.kotlin.fir.symbols.PossiblyFirFakeOverrideSymbol +import org.jetbrains.kotlin.fir.symbols.StandardClassIds import org.jetbrains.kotlin.fir.symbols.impl.* import org.jetbrains.kotlin.ir.declarations.* import org.jetbrains.kotlin.ir.expressions.IrBlockBody @@ -49,7 +50,12 @@ internal class DelegatedMemberGenerator( declarationStorage.getIrFunctionSymbol(unwrapped.symbol).owner as? IrSimpleFunction ?: return@processAllFunctions - if (isJavaDefault(unwrapped)) return@processAllFunctions + if (isJavaDefault(unwrapped)) { + return@processAllFunctions + } + if (firSubClass is FirRegularClass && firSubClass.isData && unwrapped.symbol.callableId.classId == StandardClassIds.Any) { + return@processAllFunctions + } val irSubFunction = generateDelegatedFunction( subClass, firSubClass, irField, member, functionSymbol.fir diff --git a/compiler/testData/ir/irText/firProblems/SignatureClash.fir.txt b/compiler/testData/ir/irText/firProblems/SignatureClash.fir.txt index 522dd3209d5..b034dcca96b 100644 --- a/compiler/testData/ir/irText/firProblems/SignatureClash.fir.txt +++ b/compiler/testData/ir/irText/firProblems/SignatureClash.fir.txt @@ -32,3 +32,155 @@ FILE fqName: fileName:/SignatureClash.kt overridden: public open fun toString (): kotlin.String declared in kotlin.Any $this: VALUE_PARAMETER name: type:kotlin.Any + CLASS INTERFACE name:Base modality:ABSTRACT visibility:public superTypes:[kotlin.Any] + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Base + 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: 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: 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: type:kotlin.Any + CLASS INTERFACE name:Delegate modality:ABSTRACT visibility:public superTypes:[.Base] + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Delegate + FUN name:bar visibility:public modality:ABSTRACT <> ($this:.Delegate) returnType:kotlin.Unit + $this: VALUE_PARAMETER name: type:.Delegate + 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: 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: 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: type:kotlin.Any + CLASS INTERFACE name:Derived modality:ABSTRACT visibility:public superTypes:[.Delegate] + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Derived + FUN FAKE_OVERRIDE name:bar visibility:public modality:ABSTRACT <> ($this:.Delegate) returnType:kotlin.Unit [fake_override] + overridden: + public abstract fun bar (): kotlin.Unit declared in .Delegate + $this: VALUE_PARAMETER name: type:.Delegate + 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: 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: 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: type:kotlin.Any + CLASS CLASS name:DataClass modality:FINAL visibility:public [data] superTypes:[.Derived; .Delegate] + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.DataClass + CONSTRUCTOR visibility:public <> (delegate:.Delegate) returnType:.DataClass [primary] + VALUE_PARAMETER name:delegate index:0 type:.Delegate + BLOCK_BODY + DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:DataClass modality:FINAL visibility:public [data] superTypes:[.Derived; .Delegate]' + SET_FIELD 'FIELD DELEGATE name:<$$delegate_0> type:.Delegate visibility:local [final]' type=kotlin.Unit origin=EQ + receiver: GET_VAR ': .DataClass declared in .DataClass' type=.DataClass origin=null + value: GET_VAR 'delegate: .Delegate declared in .DataClass.' type=.Delegate origin=null + PROPERTY name:delegate visibility:public modality:FINAL [val] + FIELD PROPERTY_BACKING_FIELD name:delegate type:.Delegate visibility:private [final] + EXPRESSION_BODY + GET_VAR 'delegate: .Delegate declared in .DataClass.' type=.Delegate origin=INITIALIZE_PROPERTY_FROM_PARAMETER + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:.DataClass) returnType:.Delegate + correspondingProperty: PROPERTY name:delegate visibility:public modality:FINAL [val] + $this: VALUE_PARAMETER name: type:.DataClass + BLOCK_BODY + RETURN type=kotlin.Nothing from='public final fun (): .Delegate declared in .DataClass' + GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:delegate type:.Delegate visibility:private [final]' type=.Delegate origin=null + receiver: GET_VAR ': .DataClass declared in .DataClass.' type=.DataClass origin=null + FUN name:component1 visibility:public modality:FINAL <> ($this:.DataClass) returnType:.Delegate + $this: VALUE_PARAMETER name: type:.DataClass + BLOCK_BODY + RETURN type=kotlin.Nothing from='public final fun component1 (): .Delegate declared in .DataClass' + GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:delegate type:.Delegate visibility:private [final]' type=.Delegate origin=null + receiver: GET_VAR ': .DataClass declared in .DataClass.component1' type=.DataClass origin=null + FUN name:copy visibility:public modality:FINAL <> ($this:.DataClass, delegate:.Delegate) returnType:.DataClass + $this: VALUE_PARAMETER name: type:.DataClass + VALUE_PARAMETER name:delegate index:0 type:.Delegate + EXPRESSION_BODY + GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:delegate type:.Delegate visibility:private [final]' type=.Delegate origin=null + receiver: GET_VAR ': .DataClass declared in .DataClass.copy' type=.DataClass origin=null + BLOCK_BODY + RETURN type=kotlin.Nothing from='public final fun copy (delegate: .Delegate): .DataClass declared in .DataClass' + CONSTRUCTOR_CALL 'public constructor (delegate: .Delegate) [primary] declared in .DataClass' type=.DataClass origin=null + delegate: GET_VAR 'delegate: .Delegate declared in .DataClass.copy' type=.Delegate origin=null + FUN DELEGATED_MEMBER name:bar visibility:public modality:OPEN <> ($this:.DataClass) returnType:kotlin.Unit + overridden: + public abstract fun bar (): kotlin.Unit declared in .Delegate + $this: VALUE_PARAMETER name: type:.DataClass + BLOCK_BODY + CALL 'public abstract fun bar (): kotlin.Unit declared in .Delegate' type=kotlin.Unit origin=null + $this: GET_FIELD 'FIELD DELEGATE name:<$$delegate_0> type:.Delegate visibility:local [final]' type=.Delegate origin=null + receiver: GET_VAR ': .DataClass declared in .DataClass.bar' type=.DataClass origin=null + FIELD DELEGATE name:<$$delegate_0> type:.Delegate visibility:local [final] + FUN GENERATED_DATA_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:.DataClass, other:kotlin.Any?) returnType:kotlin.Boolean + overridden: + public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Any + $this: VALUE_PARAMETER GENERATED_DATA_CLASS_MEMBER name: type:.DataClass + VALUE_PARAMETER GENERATED_DATA_CLASS_MEMBER name:other index:0 type:kotlin.Any? + BLOCK_BODY + WHEN type=kotlin.Unit origin=null + BRANCH + if: CALL 'public final fun EQEQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQEQ + arg0: GET_VAR ': .DataClass declared in .DataClass.equals' type=.DataClass origin=null + arg1: GET_VAR 'other: kotlin.Any? declared in .DataClass.equals' type=kotlin.Any? origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .DataClass' + CONST Boolean type=kotlin.Boolean value=true + WHEN type=kotlin.Unit origin=null + BRANCH + if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=.DataClass + GET_VAR 'other: kotlin.Any? declared in .DataClass.equals' type=kotlin.Any? origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .DataClass' + CONST Boolean type=kotlin.Boolean value=false + VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:.DataClass [val] + TYPE_OP type=.DataClass origin=CAST typeOperand=.DataClass + GET_VAR 'other: kotlin.Any? declared in .DataClass.equals' type=kotlin.Any? origin=null + WHEN type=kotlin.Unit origin=null + BRANCH + if: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ + $this: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EXCLEQ + arg0: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:delegate type:.Delegate visibility:private [final]' type=.Delegate origin=null + receiver: GET_VAR ': .DataClass declared in .DataClass.equals' type=.DataClass origin=null + arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:delegate type:.Delegate visibility:private [final]' type=.Delegate origin=null + receiver: GET_VAR 'val tmp_0: .DataClass [val] declared in .DataClass.equals' type=.DataClass origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .DataClass' + CONST Boolean type=kotlin.Boolean value=false + RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .DataClass' + CONST Boolean type=kotlin.Boolean value=true + FUN GENERATED_DATA_CLASS_MEMBER name:hashCode visibility:public modality:OPEN <> ($this:.DataClass) returnType:kotlin.Int + overridden: + public open fun hashCode (): kotlin.Int declared in kotlin.Any + $this: VALUE_PARAMETER GENERATED_DATA_CLASS_MEMBER name: type:.DataClass + BLOCK_BODY + RETURN type=kotlin.Nothing from='public open fun hashCode (): kotlin.Int declared in .DataClass' + CALL 'public open fun hashCode (): kotlin.Int declared in kotlin.Any' type=kotlin.Int origin=null + $this: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:delegate type:.Delegate visibility:private [final]' type=.Delegate origin=null + receiver: GET_VAR ': .DataClass declared in .DataClass.hashCode' type=.DataClass origin=null + FUN GENERATED_DATA_CLASS_MEMBER name:toString visibility:public modality:OPEN <> ($this:.DataClass) returnType:kotlin.String + overridden: + public open fun toString (): kotlin.String declared in kotlin.Any + $this: VALUE_PARAMETER GENERATED_DATA_CLASS_MEMBER name: type:.DataClass + BLOCK_BODY + RETURN type=kotlin.Nothing from='public open fun toString (): kotlin.String declared in .DataClass' + STRING_CONCATENATION type=kotlin.String + CONST String type=kotlin.String value="DataClass(" + CONST String type=kotlin.String value="delegate=" + GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:delegate type:.Delegate visibility:private [final]' type=.Delegate origin=null + receiver: GET_VAR ': .DataClass declared in .DataClass.toString' type=.DataClass origin=null + CONST String type=kotlin.String value=")" diff --git a/compiler/testData/ir/irText/firProblems/SignatureClash.kt b/compiler/testData/ir/irText/firProblems/SignatureClash.kt index e5aa52ada06..25c71f0e8ef 100644 --- a/compiler/testData/ir/irText/firProblems/SignatureClash.kt +++ b/compiler/testData/ir/irText/firProblems/SignatureClash.kt @@ -9,4 +9,14 @@ object Factory { a: String, f: Some ): String = "Omega" -} \ No newline at end of file +} + +interface Base + +interface Delegate : Base { + fun bar() +} + +interface Derived : Delegate + +data class DataClass(val delegate: Delegate): Derived, Delegate by delegate \ No newline at end of file diff --git a/compiler/testData/ir/irText/firProblems/SignatureClash.txt b/compiler/testData/ir/irText/firProblems/SignatureClash.txt index 9e9979489b1..0ad1f3e60d2 100644 --- a/compiler/testData/ir/irText/firProblems/SignatureClash.txt +++ b/compiler/testData/ir/irText/firProblems/SignatureClash.txt @@ -32,3 +32,155 @@ FILE fqName: fileName:/SignatureClash.kt overridden: public open fun toString (): kotlin.String declared in kotlin.Any $this: VALUE_PARAMETER name: type:kotlin.Any + CLASS INTERFACE name:Base modality:ABSTRACT visibility:public superTypes:[kotlin.Any] + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Base + 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: 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: 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: type:kotlin.Any + CLASS INTERFACE name:Delegate modality:ABSTRACT visibility:public superTypes:[.Base] + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Delegate + FUN name:bar visibility:public modality:ABSTRACT <> ($this:.Delegate) returnType:kotlin.Unit + $this: VALUE_PARAMETER name: type:.Delegate + 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 .Base + $this: VALUE_PARAMETER name: 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 .Base + $this: VALUE_PARAMETER name: 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 .Base + $this: VALUE_PARAMETER name: type:kotlin.Any + CLASS INTERFACE name:Derived modality:ABSTRACT visibility:public superTypes:[.Delegate] + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Derived + FUN FAKE_OVERRIDE name:bar visibility:public modality:ABSTRACT <> ($this:.Delegate) returnType:kotlin.Unit [fake_override] + overridden: + public abstract fun bar (): kotlin.Unit declared in .Delegate + $this: VALUE_PARAMETER name: type:.Delegate + 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 .Delegate + $this: VALUE_PARAMETER name: 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 .Delegate + $this: VALUE_PARAMETER name: 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 .Delegate + $this: VALUE_PARAMETER name: type:kotlin.Any + CLASS CLASS name:DataClass modality:FINAL visibility:public [data] superTypes:[.Derived; .Delegate] + $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.DataClass + CONSTRUCTOR visibility:public <> (delegate:.Delegate) returnType:.DataClass [primary] + VALUE_PARAMETER name:delegate index:0 type:.Delegate + BLOCK_BODY + DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:DataClass modality:FINAL visibility:public [data] superTypes:[.Derived; .Delegate]' + PROPERTY name:delegate visibility:public modality:FINAL [val] + FIELD PROPERTY_BACKING_FIELD name:delegate type:.Delegate visibility:private [final] + EXPRESSION_BODY + GET_VAR 'delegate: .Delegate declared in .DataClass.' type=.Delegate origin=INITIALIZE_PROPERTY_FROM_PARAMETER + FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:.DataClass) returnType:.Delegate + correspondingProperty: PROPERTY name:delegate visibility:public modality:FINAL [val] + $this: VALUE_PARAMETER name: type:.DataClass + BLOCK_BODY + RETURN type=kotlin.Nothing from='public final fun (): .Delegate declared in .DataClass' + GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:delegate type:.Delegate visibility:private [final]' type=.Delegate origin=null + receiver: GET_VAR ': .DataClass declared in .DataClass.' type=.DataClass origin=null + FUN DELEGATED_MEMBER name:bar visibility:public modality:OPEN <> ($this:.DataClass) returnType:kotlin.Unit + overridden: + public abstract fun bar (): kotlin.Unit [fake_override] declared in .Derived + public abstract fun bar (): kotlin.Unit declared in .Delegate + $this: VALUE_PARAMETER name: type:.DataClass + BLOCK_BODY + CALL 'public abstract fun bar (): kotlin.Unit declared in .Delegate' type=kotlin.Unit origin=null + $this: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:delegate type:.Delegate visibility:private [final]' type=.Delegate origin=null + receiver: GET_VAR ': .DataClass declared in .DataClass.bar' type=.DataClass origin=null + FUN GENERATED_DATA_CLASS_MEMBER name:component1 visibility:public modality:FINAL <> ($this:.DataClass) returnType:.Delegate [operator] + $this: VALUE_PARAMETER name: type:.DataClass + BLOCK_BODY + RETURN type=kotlin.Nothing from='public final fun component1 (): .Delegate [operator] declared in .DataClass' + GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:delegate type:.Delegate visibility:private [final]' type=.Delegate origin=null + receiver: GET_VAR ': .DataClass declared in .DataClass.component1' type=.DataClass origin=null + FUN GENERATED_DATA_CLASS_MEMBER name:copy visibility:public modality:FINAL <> ($this:.DataClass, delegate:.Delegate) returnType:.DataClass + $this: VALUE_PARAMETER name: type:.DataClass + VALUE_PARAMETER name:delegate index:0 type:.Delegate + EXPRESSION_BODY + GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:delegate type:.Delegate visibility:private [final]' type=.Delegate origin=null + receiver: GET_VAR ': .DataClass declared in .DataClass.copy' type=.DataClass origin=null + BLOCK_BODY + RETURN type=kotlin.Nothing from='public final fun copy (delegate: .Delegate): .DataClass declared in .DataClass' + CONSTRUCTOR_CALL 'public constructor (delegate: .Delegate) [primary] declared in .DataClass' type=.DataClass origin=null + delegate: GET_VAR 'delegate: .Delegate declared in .DataClass.copy' type=.Delegate origin=null + FUN GENERATED_DATA_CLASS_MEMBER name:toString visibility:public modality:OPEN <> ($this:.DataClass) returnType:kotlin.String + overridden: + public open fun toString (): kotlin.String [fake_override] declared in .Derived + public open fun toString (): kotlin.String [fake_override] declared in .Delegate + $this: VALUE_PARAMETER name: type:.DataClass + BLOCK_BODY + RETURN type=kotlin.Nothing from='public open fun toString (): kotlin.String declared in .DataClass' + STRING_CONCATENATION type=kotlin.String + CONST String type=kotlin.String value="DataClass(" + CONST String type=kotlin.String value="delegate=" + GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:delegate type:.Delegate visibility:private [final]' type=.Delegate origin=null + receiver: GET_VAR ': .DataClass declared in .DataClass.toString' type=.DataClass origin=null + CONST String type=kotlin.String value=")" + FUN GENERATED_DATA_CLASS_MEMBER name:hashCode visibility:public modality:OPEN <> ($this:.DataClass) returnType:kotlin.Int + overridden: + public open fun hashCode (): kotlin.Int [fake_override] declared in .Derived + public open fun hashCode (): kotlin.Int [fake_override] declared in .Delegate + $this: VALUE_PARAMETER name: type:.DataClass + BLOCK_BODY + RETURN type=kotlin.Nothing from='public open fun hashCode (): kotlin.Int declared in .DataClass' + CALL 'public open fun hashCode (): kotlin.Int [fake_override] declared in .Delegate' type=kotlin.Int origin=null + $this: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:delegate type:.Delegate visibility:private [final]' type=.Delegate origin=null + receiver: GET_VAR ': .DataClass declared in .DataClass.hashCode' type=.DataClass origin=null + FUN GENERATED_DATA_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:.DataClass, other:kotlin.Any?) returnType:kotlin.Boolean [operator] + overridden: + public open fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .Derived + public open fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .Delegate + $this: VALUE_PARAMETER name: type:.DataClass + VALUE_PARAMETER name:other index:0 type:kotlin.Any? + BLOCK_BODY + WHEN type=kotlin.Unit origin=null + BRANCH + if: CALL 'public final fun EQEQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQEQ + arg0: GET_VAR ': .DataClass declared in .DataClass.equals' type=.DataClass origin=null + arg1: GET_VAR 'other: kotlin.Any? declared in .DataClass.equals' type=kotlin.Any? origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .DataClass' + CONST Boolean type=kotlin.Boolean value=true + WHEN type=kotlin.Unit origin=null + BRANCH + if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=.DataClass + GET_VAR 'other: kotlin.Any? declared in .DataClass.equals' type=kotlin.Any? origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .DataClass' + CONST Boolean type=kotlin.Boolean value=false + VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:.DataClass [val] + TYPE_OP type=.DataClass origin=CAST typeOperand=.DataClass + GET_VAR 'other: kotlin.Any? declared in .DataClass.equals' type=kotlin.Any? origin=null + WHEN type=kotlin.Unit origin=null + BRANCH + if: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ + $this: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EXCLEQ + arg0: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:delegate type:.Delegate visibility:private [final]' type=.Delegate origin=null + receiver: GET_VAR ': .DataClass declared in .DataClass.equals' type=.DataClass origin=null + arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:delegate type:.Delegate visibility:private [final]' type=.Delegate origin=null + receiver: GET_VAR 'val tmp_0: .DataClass [val] declared in .DataClass.equals' type=.DataClass origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .DataClass' + CONST Boolean type=kotlin.Boolean value=false + RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .DataClass' + CONST Boolean type=kotlin.Boolean value=true