diff --git a/compiler/ir/ir.tree/src/org/jetbrains/kotlin/ir/util/DumpIrTree.kt b/compiler/ir/ir.tree/src/org/jetbrains/kotlin/ir/util/DumpIrTree.kt index 72dd440de38..e13f06691f8 100644 --- a/compiler/ir/ir.tree/src/org/jetbrains/kotlin/ir/util/DumpIrTree.kt +++ b/compiler/ir/ir.tree/src/org/jetbrains/kotlin/ir/util/DumpIrTree.kt @@ -50,12 +50,15 @@ fun IrFile.dumpTreesFromLineNumber(lineNumber: Int, options: DumpIrTreeOptions = * @property verboseErrorTypes Whether to dump the value of [IrErrorType.kotlinType] for [IrErrorType] nodes * @property printFacadeClassInFqNames Whether printed fully-qualified names of top-level declarations should include the name of * the file facade class (see [IrDeclarationOrigin.FILE_CLASS]) + * @property printFlagsInDeclarationReferences If `false`, flags like `fake_override`, `inline` etc. are not printed in rendered declaration + * references. */ data class DumpIrTreeOptions( val normalizeNames: Boolean = false, val stableOrder: Boolean = false, val verboseErrorTypes: Boolean = true, val printFacadeClassInFqNames: Boolean = true, + val printFlagsInDeclarationReferences: Boolean = true, ) private fun IrFile.shouldSkipDump(): Boolean { diff --git a/compiler/ir/ir.tree/src/org/jetbrains/kotlin/ir/util/RenderIrElement.kt b/compiler/ir/ir.tree/src/org/jetbrains/kotlin/ir/util/RenderIrElement.kt index 00ff496ebdc..f93982b877c 100644 --- a/compiler/ir/ir.tree/src/org/jetbrains/kotlin/ir/util/RenderIrElement.kt +++ b/compiler/ir/ir.tree/src/org/jetbrains/kotlin/ir/util/RenderIrElement.kt @@ -86,7 +86,9 @@ class RenderIrElementVisitor(private val options: DumpIrTreeOptions = DumpIrTree append(declaration.type.renderTypeWithRenderer(null, options)) append(' ') - append(declaration.renderVariableFlags()) + if (options.printFlagsInDeclarationReferences) { + append(declaration.renderVariableFlags()) + } renderDeclaredIn(declaration) } @@ -98,7 +100,9 @@ class RenderIrElementVisitor(private val options: DumpIrTreeOptions = DumpIrTree append(declaration.type.renderTypeWithRenderer(null, options)) append(' ') - append(declaration.renderValueParameterFlags()) + if (options.printFlagsInDeclarationReferences) { + append(declaration.renderValueParameterFlags()) + } renderDeclaredIn(declaration) } @@ -144,9 +148,11 @@ class RenderIrElementVisitor(private val options: DumpIrTreeOptions = DumpIrTree } append(' ') - when (declaration) { - is IrSimpleFunction -> append(declaration.renderSimpleFunctionFlags()) - is IrConstructor -> append(declaration.renderConstructorFlags()) + if (options.printFlagsInDeclarationReferences) { + when (declaration) { + is IrSimpleFunction -> append(declaration.renderSimpleFunctionFlags()) + is IrConstructor -> append(declaration.renderConstructorFlags()) + } } renderDeclaredIn(declaration) @@ -179,8 +185,10 @@ class RenderIrElementVisitor(private val options: DumpIrTreeOptions = DumpIrTree append(type.renderTypeWithRenderer(null, options)) } - append(' ') - append(declaration.renderPropertyFlags()) + if (options.printFlagsInDeclarationReferences) { + append(' ') + append(declaration.renderPropertyFlags()) + } } override fun visitLocalDelegatedProperty(declaration: IrLocalDelegatedProperty, data: Nothing?): String = diff --git a/compiler/testData/codegen/box/annotations/javaTargetOnPrimaryCtorParameter.fir.ir.txt b/compiler/testData/codegen/box/annotations/javaTargetOnPrimaryCtorParameter.fir.ir.txt index 627e45a3d22..89cf0e99724 100644 --- a/compiler/testData/codegen/box/annotations/javaTargetOnPrimaryCtorParameter.fir.ir.txt +++ b/compiler/testData/codegen/box/annotations/javaTargetOnPrimaryCtorParameter.fir.ir.txt @@ -8,7 +8,7 @@ FILE fqName: fileName:/test.kt PropValueField ParameterOnly BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Foo modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:param visibility:public modality:FINAL [var] FIELD PROPERTY_BACKING_FIELD name:param type:kotlin.Int visibility:private @@ -33,7 +33,7 @@ FILE fqName: fileName:/test.kt value: GET_VAR ': kotlin.Int declared in .Foo.' type=kotlin.Int 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -51,17 +51,17 @@ FILE fqName: fileName:/test.kt VAR name:parameterAnnotations type:kotlin.collections.Set [val] CALL 'public final fun toSet (): kotlin.collections.Set declared in kotlin.collections.CollectionsKt' type=kotlin.collections.Set origin=null : kotlin.String - $receiver: CALL 'public final fun map (transform: kotlin.Function1): kotlin.collections.List [inline] declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List origin=null + $receiver: CALL 'public final fun map (transform: kotlin.Function1): kotlin.collections.List declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List origin=null : kotlin.Annotation : kotlin.String - $receiver: CALL 'public abstract fun (): kotlin.collections.List [fake_override] declared in kotlin.reflect.KParameter' type=kotlin.collections.List origin=GET_PROPERTY + $receiver: CALL 'public abstract fun (): kotlin.collections.List declared in kotlin.reflect.KParameter' type=kotlin.collections.List origin=GET_PROPERTY $this: CALL 'public final fun single (): T of kotlin.collections.CollectionsKt.single declared in kotlin.collections.CollectionsKt' type=kotlin.reflect.KParameter origin=null : kotlin.reflect.KParameter - $receiver: CALL 'public abstract fun (): kotlin.collections.List [fake_override] declared in kotlin.reflect.KFunction' type=kotlin.collections.List origin=GET_PROPERTY + $receiver: CALL 'public abstract fun (): kotlin.collections.List declared in kotlin.reflect.KFunction' type=kotlin.collections.List origin=GET_PROPERTY $this: CALL 'public final fun single (): T of kotlin.collections.CollectionsKt.single declared in kotlin.collections.CollectionsKt' type=kotlin.reflect.KFunction<.Foo> origin=null : kotlin.reflect.KFunction<.Foo> $receiver: CALL 'public abstract fun (): kotlin.collections.Collection> declared in kotlin.reflect.KClass' type=kotlin.collections.Collection.Foo>> origin=GET_PROPERTY - $this: GET_VAR 'val clazz: kotlin.reflect.KClass<.Foo> [val] declared in .box' type=kotlin.reflect.KClass<.Foo> origin=null + $this: GET_VAR 'val clazz: kotlin.reflect.KClass<.Foo> declared in .box' type=kotlin.reflect.KClass<.Foo> origin=null transform: FUN_EXPR type=kotlin.Function1 origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> (it:kotlin.Annotation) returnType:kotlin.String VALUE_PARAMETER name:it index:0 type:kotlin.Annotation @@ -76,20 +76,20 @@ FILE fqName: fileName:/test.kt WHEN type=kotlin.String origin=ELVIS BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_0: kotlin.String? [val] declared in .box.' type=kotlin.String? origin=null + arg0: GET_VAR 'val tmp_0: kotlin.String? declared in .box.' type=kotlin.String? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST String type=kotlin.String value="" BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val tmp_0: kotlin.String? [val] declared in .box.' type=kotlin.String? origin=null + then: GET_VAR 'val tmp_0: kotlin.String? declared in .box.' type=kotlin.String? origin=null VAR name:fieldAnnotations type:kotlin.collections.Set [val] CALL 'public final fun toSet (): kotlin.collections.Set declared in kotlin.collections.CollectionsKt' type=kotlin.collections.Set origin=null : kotlin.String - $receiver: CALL 'public final fun map (transform: kotlin.Function1): kotlin.collections.List [inline] declared in kotlin.collections.ArraysKt' type=kotlin.collections.List origin=null + $receiver: CALL 'public final fun map (transform: kotlin.Function1): kotlin.collections.List declared in kotlin.collections.ArraysKt' type=kotlin.collections.List origin=null : @[FlexibleNullability] kotlin.Annotation? : kotlin.String $receiver: TYPE_OP type=kotlin.Array origin=IMPLICIT_NOTNULL typeOperand=kotlin.Array - CALL 'public open fun getAnnotations (): @[FlexibleNullability] kotlin.Array? [fake_override] declared in java.lang.reflect.Field' type=@[FlexibleNullability] kotlin.Array? origin=GET_PROPERTY + CALL 'public open fun getAnnotations (): @[FlexibleNullability] kotlin.Array? declared in java.lang.reflect.Field' type=@[FlexibleNullability] kotlin.Array? origin=GET_PROPERTY $this: CALL 'public open fun getDeclaredField (p0: @[FlexibleNullability] kotlin.String?): @[FlexibleNullability] java.lang.reflect.Field? declared in java.lang.Class' type=@[FlexibleNullability] java.lang.reflect.Field? origin=null $this: CALL 'public final fun (): java.lang.Class> declared in kotlin.jvm' type=java.lang.Class<.Foo> origin=GET_PROPERTY : .Foo @@ -110,17 +110,17 @@ FILE fqName: fileName:/test.kt WHEN type=kotlin.String origin=ELVIS BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_1: kotlin.String? [val] declared in .box.' type=kotlin.String? origin=null + arg0: GET_VAR 'val tmp_1: kotlin.String? declared in .box.' type=kotlin.String? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST String type=kotlin.String value="" BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val tmp_1: kotlin.String? [val] declared in .box.' type=kotlin.String? origin=null + then: GET_VAR 'val tmp_1: kotlin.String? declared in .box.' type=kotlin.String? origin=null WHEN type=kotlin.Unit origin=IF BRANCH - if: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ + if: CALL 'public final fun not (): kotlin.Boolean 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_VAR 'val parameterAnnotations: kotlin.collections.Set [val] declared in .box' type=kotlin.collections.Set origin=null + arg0: GET_VAR 'val parameterAnnotations: kotlin.collections.Set declared in .box' type=kotlin.collections.Set origin=null arg1: CALL 'public final fun setOf (vararg elements: T of kotlin.collections.SetsKt.setOf): kotlin.collections.Set declared in kotlin.collections.SetsKt' type=kotlin.collections.Set origin=null : kotlin.String elements: VARARG type=kotlin.Array varargElementType=kotlin.String @@ -128,20 +128,20 @@ FILE fqName: fileName:/test.kt CONST String type=kotlin.String value="PropValueField" CONST String type=kotlin.String value="ParameterOnly" then: RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' - CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS + CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS $this: CONST String type=kotlin.String value="Parameters:" - other: GET_VAR 'val parameterAnnotations: kotlin.collections.Set [val] declared in .box' type=kotlin.collections.Set origin=null + other: GET_VAR 'val parameterAnnotations: kotlin.collections.Set declared in .box' type=kotlin.collections.Set origin=null WHEN type=kotlin.Unit origin=IF BRANCH - if: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ + if: CALL 'public final fun not (): kotlin.Boolean 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_VAR 'val fieldAnnotations: kotlin.collections.Set [val] declared in .box' type=kotlin.collections.Set origin=null + arg0: GET_VAR 'val fieldAnnotations: kotlin.collections.Set declared in .box' type=kotlin.collections.Set origin=null arg1: CALL 'public final fun setOf (element: T of kotlin.collections.SetsKt.setOf): kotlin.collections.Set declared in kotlin.collections.SetsKt' type=kotlin.collections.Set origin=null : kotlin.String element: CONST String type=kotlin.String value="FieldOnly" then: RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' - CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS + CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS $this: CONST String type=kotlin.String value="Field:" - other: GET_VAR 'val fieldAnnotations: kotlin.collections.Set [val] declared in .box' type=kotlin.collections.Set origin=null + other: GET_VAR 'val fieldAnnotations: kotlin.collections.Set declared in .box' type=kotlin.collections.Set origin=null RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' CONST String type=kotlin.String value="OK" diff --git a/compiler/testData/codegen/box/annotations/javaTargetOnPrimaryCtorParameter.ir.txt b/compiler/testData/codegen/box/annotations/javaTargetOnPrimaryCtorParameter.ir.txt index cc8f16117bb..76f058217c1 100644 --- a/compiler/testData/codegen/box/annotations/javaTargetOnPrimaryCtorParameter.ir.txt +++ b/compiler/testData/codegen/box/annotations/javaTargetOnPrimaryCtorParameter.ir.txt @@ -8,7 +8,7 @@ FILE fqName: fileName:/test.kt PropValueField ParameterOnly BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Foo modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:param visibility:public modality:FINAL [var] FIELD PROPERTY_BACKING_FIELD name:param type:kotlin.Int visibility:private @@ -33,7 +33,7 @@ FILE fqName: fileName:/test.kt value: GET_VAR ': kotlin.Int declared in .Foo.' type=kotlin.Int 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -51,17 +51,17 @@ FILE fqName: fileName:/test.kt VAR name:parameterAnnotations type:kotlin.collections.Set [val] CALL 'public final fun toSet (): kotlin.collections.Set declared in kotlin.collections.CollectionsKt' type=kotlin.collections.Set origin=null : kotlin.String - $receiver: CALL 'public final fun map (transform: kotlin.Function1): kotlin.collections.List [inline] declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List origin=null + $receiver: CALL 'public final fun map (transform: kotlin.Function1): kotlin.collections.List declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List origin=null : kotlin.Annotation : kotlin.String - $receiver: CALL 'public abstract fun (): kotlin.collections.List [fake_override] declared in kotlin.reflect.KParameter' type=kotlin.collections.List origin=GET_PROPERTY + $receiver: CALL 'public abstract fun (): kotlin.collections.List declared in kotlin.reflect.KParameter' type=kotlin.collections.List origin=GET_PROPERTY $this: CALL 'public final fun single (): T of kotlin.collections.CollectionsKt.single declared in kotlin.collections.CollectionsKt' type=kotlin.reflect.KParameter origin=null : kotlin.reflect.KParameter - $receiver: CALL 'public abstract fun (): kotlin.collections.List [fake_override] declared in kotlin.reflect.KFunction' type=kotlin.collections.List origin=GET_PROPERTY + $receiver: CALL 'public abstract fun (): kotlin.collections.List declared in kotlin.reflect.KFunction' type=kotlin.collections.List origin=GET_PROPERTY $this: CALL 'public final fun single (): T of kotlin.collections.CollectionsKt.single declared in kotlin.collections.CollectionsKt' type=kotlin.reflect.KFunction<.Foo> origin=null : kotlin.reflect.KFunction<.Foo> $receiver: CALL 'public abstract fun (): kotlin.collections.Collection> declared in kotlin.reflect.KClass' type=kotlin.collections.Collection.Foo>> origin=GET_PROPERTY - $this: GET_VAR 'val clazz: kotlin.reflect.KClass<.Foo> [val] declared in .box' type=kotlin.reflect.KClass<.Foo> origin=null + $this: GET_VAR 'val clazz: kotlin.reflect.KClass<.Foo> declared in .box' type=kotlin.reflect.KClass<.Foo> origin=null transform: FUN_EXPR type=kotlin.Function1 origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> (it:kotlin.Annotation) returnType:kotlin.String VALUE_PARAMETER name:it index:0 type:kotlin.Annotation @@ -76,20 +76,20 @@ FILE fqName: fileName:/test.kt WHEN type=kotlin.String origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_0: kotlin.String? [val] declared in .box.' type=kotlin.String? origin=null + arg0: GET_VAR 'val tmp_0: kotlin.String? declared in .box.' type=kotlin.String? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST String type=kotlin.String value="" BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val tmp_0: kotlin.String? [val] declared in .box.' type=kotlin.String? origin=null + then: GET_VAR 'val tmp_0: kotlin.String? declared in .box.' type=kotlin.String? origin=null VAR name:fieldAnnotations type:kotlin.collections.Set [val] CALL 'public final fun toSet (): kotlin.collections.Set declared in kotlin.collections.CollectionsKt' type=kotlin.collections.Set origin=null : kotlin.String - $receiver: CALL 'public final fun map (transform: kotlin.Function1): kotlin.collections.List [inline] declared in kotlin.collections.ArraysKt' type=kotlin.collections.List origin=null + $receiver: CALL 'public final fun map (transform: kotlin.Function1): kotlin.collections.List declared in kotlin.collections.ArraysKt' type=kotlin.collections.List origin=null : @[FlexibleNullability] kotlin.Annotation? : kotlin.String $receiver: TYPE_OP type=kotlin.Array origin=IMPLICIT_NOTNULL typeOperand=kotlin.Array - CALL 'public open fun getAnnotations (): @[FlexibleNullability] kotlin.Array? [fake_override] declared in java.lang.reflect.Field' type=@[FlexibleNullability] kotlin.Array? origin=GET_PROPERTY + CALL 'public open fun getAnnotations (): @[FlexibleNullability] kotlin.Array? declared in java.lang.reflect.Field' type=@[FlexibleNullability] kotlin.Array? origin=GET_PROPERTY $this: TYPE_OP type=java.lang.reflect.Field origin=IMPLICIT_NOTNULL typeOperand=java.lang.reflect.Field CALL 'public open fun getDeclaredField (p0: @[FlexibleNullability] kotlin.String?): @[FlexibleNullability] java.lang.reflect.Field? declared in java.lang.Class' type=@[FlexibleNullability] java.lang.reflect.Field? origin=null $this: CALL 'public final fun (): java.lang.Class> declared in kotlin.jvm' type=java.lang.Class<.Foo> origin=GET_PROPERTY @@ -110,17 +110,17 @@ FILE fqName: fileName:/test.kt WHEN type=kotlin.String origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_1: kotlin.String? [val] declared in .box.' type=kotlin.String? origin=null + arg0: GET_VAR 'val tmp_1: kotlin.String? declared in .box.' type=kotlin.String? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST String type=kotlin.String value="" BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val tmp_1: kotlin.String? [val] declared in .box.' type=kotlin.String? origin=null + then: GET_VAR 'val tmp_1: kotlin.String? declared in .box.' type=kotlin.String? origin=null WHEN type=kotlin.Unit origin=IF BRANCH - if: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ + if: CALL 'public final fun not (): kotlin.Boolean 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_VAR 'val parameterAnnotations: kotlin.collections.Set [val] declared in .box' type=kotlin.collections.Set origin=null + arg0: GET_VAR 'val parameterAnnotations: kotlin.collections.Set declared in .box' type=kotlin.collections.Set origin=null arg1: CALL 'public final fun setOf (vararg elements: T of kotlin.collections.SetsKt.setOf): kotlin.collections.Set declared in kotlin.collections.SetsKt' type=kotlin.collections.Set origin=null : kotlin.String elements: VARARG type=kotlin.Array varargElementType=kotlin.String @@ -128,20 +128,20 @@ FILE fqName: fileName:/test.kt CONST String type=kotlin.String value="PropValueField" CONST String type=kotlin.String value="ParameterOnly" then: RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' - CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS + CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS $this: CONST String type=kotlin.String value="Parameters:" - other: GET_VAR 'val parameterAnnotations: kotlin.collections.Set [val] declared in .box' type=kotlin.collections.Set origin=null + other: GET_VAR 'val parameterAnnotations: kotlin.collections.Set declared in .box' type=kotlin.collections.Set origin=null WHEN type=kotlin.Unit origin=IF BRANCH - if: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ + if: CALL 'public final fun not (): kotlin.Boolean 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_VAR 'val fieldAnnotations: kotlin.collections.Set [val] declared in .box' type=kotlin.collections.Set origin=null + arg0: GET_VAR 'val fieldAnnotations: kotlin.collections.Set declared in .box' type=kotlin.collections.Set origin=null arg1: CALL 'public final fun setOf (element: T of kotlin.collections.SetsKt.setOf): kotlin.collections.Set declared in kotlin.collections.SetsKt' type=kotlin.collections.Set origin=null : kotlin.String element: CONST String type=kotlin.String value="FieldOnly" then: RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' - CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS + CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS $this: CONST String type=kotlin.String value="Field:" - other: GET_VAR 'val fieldAnnotations: kotlin.collections.Set [val] declared in .box' type=kotlin.collections.Set origin=null + other: GET_VAR 'val fieldAnnotations: kotlin.collections.Set declared in .box' type=kotlin.collections.Set origin=null RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' CONST String type=kotlin.String value="OK" diff --git a/compiler/testData/codegen/box/annotations/targetOnPrimaryCtorParameter.fir.ir.txt b/compiler/testData/codegen/box/annotations/targetOnPrimaryCtorParameter.fir.ir.txt index 9efeea69b98..227a3c337ef 100644 --- a/compiler/testData/codegen/box/annotations/targetOnPrimaryCtorParameter.fir.ir.txt +++ b/compiler/testData/codegen/box/annotations/targetOnPrimaryCtorParameter.fir.ir.txt @@ -3,20 +3,20 @@ FILE fqName: fileName:/targetOnPrimaryCtorParameter.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.NoTarget CONSTRUCTOR visibility:public <> () returnType:.NoTarget [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:NoTarget modality:OPEN visibility:public superTypes:[kotlin.Annotation]' 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 kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any CLASS ANNOTATION_CLASS name:PropValueField modality:OPEN visibility:public superTypes:[kotlin.Annotation] annotations: @@ -24,20 +24,20 @@ FILE fqName: fileName:/targetOnPrimaryCtorParameter.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.PropValueField CONSTRUCTOR visibility:public <> () returnType:.PropValueField [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:PropValueField modality:OPEN visibility:public superTypes:[kotlin.Annotation]' 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 kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any CLASS ANNOTATION_CLASS name:PropertyOnly modality:OPEN visibility:public superTypes:[kotlin.Annotation] annotations: @@ -45,20 +45,20 @@ FILE fqName: fileName:/targetOnPrimaryCtorParameter.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.PropertyOnly CONSTRUCTOR visibility:public <> () returnType:.PropertyOnly [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:PropertyOnly modality:OPEN visibility:public superTypes:[kotlin.Annotation]' 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 kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any CLASS ANNOTATION_CLASS name:ParameterOnly modality:OPEN visibility:public superTypes:[kotlin.Annotation] annotations: @@ -66,20 +66,20 @@ FILE fqName: fileName:/targetOnPrimaryCtorParameter.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.ParameterOnly CONSTRUCTOR visibility:public <> () returnType:.ParameterOnly [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:ParameterOnly modality:OPEN visibility:public superTypes:[kotlin.Annotation]' 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 kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any CLASS ANNOTATION_CLASS name:FieldOnly modality:OPEN visibility:public superTypes:[kotlin.Annotation] annotations: @@ -87,20 +87,20 @@ FILE fqName: fileName:/targetOnPrimaryCtorParameter.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.FieldOnly CONSTRUCTOR visibility:public <> () returnType:.FieldOnly [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:FieldOnly modality:OPEN visibility:public superTypes:[kotlin.Annotation]' 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 kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any CLASS ANNOTATION_CLASS name:PropertyOnly2 modality:OPEN visibility:public superTypes:[kotlin.Annotation] annotations: @@ -108,20 +108,20 @@ FILE fqName: fileName:/targetOnPrimaryCtorParameter.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.PropertyOnly2 CONSTRUCTOR visibility:public <> () returnType:.PropertyOnly2 [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:PropertyOnly2 modality:OPEN visibility:public superTypes:[kotlin.Annotation]' 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 kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:Foo modality:FINAL visibility:public superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Foo @@ -132,7 +132,7 @@ FILE fqName: fileName:/targetOnPrimaryCtorParameter.kt PropValueField ParameterOnly BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Foo modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:param visibility:public modality:FINAL [var] annotations: @@ -160,7 +160,7 @@ FILE fqName: fileName:/targetOnPrimaryCtorParameter.kt value: GET_VAR ': kotlin.Int declared in .Foo.' type=kotlin.Int 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -178,17 +178,17 @@ FILE fqName: fileName:/targetOnPrimaryCtorParameter.kt VAR name:parameterAnnotations type:kotlin.collections.Set [val] CALL 'public final fun toSet (): kotlin.collections.Set declared in kotlin.collections.CollectionsKt' type=kotlin.collections.Set origin=null : kotlin.String - $receiver: CALL 'public final fun map (transform: kotlin.Function1): kotlin.collections.List [inline] declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List origin=null + $receiver: CALL 'public final fun map (transform: kotlin.Function1): kotlin.collections.List declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List origin=null : kotlin.Annotation : kotlin.String - $receiver: CALL 'public abstract fun (): kotlin.collections.List [fake_override] declared in kotlin.reflect.KParameter' type=kotlin.collections.List origin=GET_PROPERTY + $receiver: CALL 'public abstract fun (): kotlin.collections.List declared in kotlin.reflect.KParameter' type=kotlin.collections.List origin=GET_PROPERTY $this: CALL 'public final fun single (): T of kotlin.collections.CollectionsKt.single declared in kotlin.collections.CollectionsKt' type=kotlin.reflect.KParameter origin=null : kotlin.reflect.KParameter - $receiver: CALL 'public abstract fun (): kotlin.collections.List [fake_override] declared in kotlin.reflect.KFunction' type=kotlin.collections.List origin=GET_PROPERTY + $receiver: CALL 'public abstract fun (): kotlin.collections.List declared in kotlin.reflect.KFunction' type=kotlin.collections.List origin=GET_PROPERTY $this: CALL 'public final fun single (): T of kotlin.collections.CollectionsKt.single declared in kotlin.collections.CollectionsKt' type=kotlin.reflect.KFunction<.Foo> origin=null : kotlin.reflect.KFunction<.Foo> $receiver: CALL 'public abstract fun (): kotlin.collections.Collection> declared in kotlin.reflect.KClass' type=kotlin.collections.Collection.Foo>> origin=GET_PROPERTY - $this: GET_VAR 'val clazz: kotlin.reflect.KClass<.Foo> [val] declared in .box' type=kotlin.reflect.KClass<.Foo> origin=null + $this: GET_VAR 'val clazz: kotlin.reflect.KClass<.Foo> declared in .box' type=kotlin.reflect.KClass<.Foo> origin=null transform: FUN_EXPR type=kotlin.Function1 origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> (it:kotlin.Annotation) returnType:kotlin.String VALUE_PARAMETER name:it index:0 type:kotlin.Annotation @@ -203,24 +203,24 @@ FILE fqName: fileName:/targetOnPrimaryCtorParameter.kt WHEN type=kotlin.String origin=ELVIS BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_0: kotlin.String? [val] declared in .box.' type=kotlin.String? origin=null + arg0: GET_VAR 'val tmp_0: kotlin.String? declared in .box.' type=kotlin.String? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST String type=kotlin.String value="" BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val tmp_0: kotlin.String? [val] declared in .box.' type=kotlin.String? origin=null + then: GET_VAR 'val tmp_0: kotlin.String? declared in .box.' type=kotlin.String? origin=null VAR name:propertyAnnotations type:kotlin.collections.Set [val] CALL 'public final fun toSet (): kotlin.collections.Set declared in kotlin.collections.CollectionsKt' type=kotlin.collections.Set origin=null : kotlin.String - $receiver: CALL 'public final fun map (transform: kotlin.Function1): kotlin.collections.List [inline] declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List origin=null + $receiver: CALL 'public final fun map (transform: kotlin.Function1): kotlin.collections.List declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List origin=null : kotlin.Annotation : kotlin.String - $receiver: CALL 'public abstract fun (): kotlin.collections.List [fake_override] declared in kotlin.reflect.KProperty1' type=kotlin.collections.List origin=GET_PROPERTY + $receiver: CALL 'public abstract fun (): kotlin.collections.List declared in kotlin.reflect.KProperty1' type=kotlin.collections.List origin=GET_PROPERTY $this: CALL 'public final fun single (): T of kotlin.collections.CollectionsKt.single declared in kotlin.collections.CollectionsKt' type=kotlin.reflect.KProperty1<.Foo, *> origin=null : kotlin.reflect.KProperty1<.Foo, *> $receiver: CALL 'public final fun (): kotlin.collections.Collection, *>> declared in kotlin.reflect.full' type=kotlin.collections.Collection.Foo, *>> origin=GET_PROPERTY : .Foo - $receiver: GET_VAR 'val clazz: kotlin.reflect.KClass<.Foo> [val] declared in .box' type=kotlin.reflect.KClass<.Foo> origin=null + $receiver: GET_VAR 'val clazz: kotlin.reflect.KClass<.Foo> declared in .box' type=kotlin.reflect.KClass<.Foo> origin=null transform: FUN_EXPR type=kotlin.Function1 origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> (it:kotlin.Annotation) returnType:kotlin.String VALUE_PARAMETER name:it index:0 type:kotlin.Annotation @@ -235,20 +235,20 @@ FILE fqName: fileName:/targetOnPrimaryCtorParameter.kt WHEN type=kotlin.String origin=ELVIS BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_1: kotlin.String? [val] declared in .box.' type=kotlin.String? origin=null + arg0: GET_VAR 'val tmp_1: kotlin.String? declared in .box.' type=kotlin.String? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST String type=kotlin.String value="" BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val tmp_1: kotlin.String? [val] declared in .box.' type=kotlin.String? origin=null + then: GET_VAR 'val tmp_1: kotlin.String? declared in .box.' type=kotlin.String? origin=null VAR name:fieldAnnotations type:kotlin.collections.Set [val] CALL 'public final fun toSet (): kotlin.collections.Set declared in kotlin.collections.CollectionsKt' type=kotlin.collections.Set origin=null : kotlin.String - $receiver: CALL 'public final fun map (transform: kotlin.Function1): kotlin.collections.List [inline] declared in kotlin.collections.ArraysKt' type=kotlin.collections.List origin=null + $receiver: CALL 'public final fun map (transform: kotlin.Function1): kotlin.collections.List declared in kotlin.collections.ArraysKt' type=kotlin.collections.List origin=null : @[FlexibleNullability] kotlin.Annotation? : kotlin.String $receiver: TYPE_OP type=kotlin.Array origin=IMPLICIT_NOTNULL typeOperand=kotlin.Array - CALL 'public open fun getAnnotations (): @[FlexibleNullability] kotlin.Array? [fake_override] declared in java.lang.reflect.Field' type=@[FlexibleNullability] kotlin.Array? origin=GET_PROPERTY + CALL 'public open fun getAnnotations (): @[FlexibleNullability] kotlin.Array? declared in java.lang.reflect.Field' type=@[FlexibleNullability] kotlin.Array? origin=GET_PROPERTY $this: CALL 'public open fun getDeclaredField (p0: @[FlexibleNullability] kotlin.String?): @[FlexibleNullability] java.lang.reflect.Field? declared in java.lang.Class' type=@[FlexibleNullability] java.lang.reflect.Field? origin=null $this: CALL 'public final fun (): java.lang.Class> declared in kotlin.jvm' type=java.lang.Class<.Foo> origin=GET_PROPERTY : .Foo @@ -269,17 +269,17 @@ FILE fqName: fileName:/targetOnPrimaryCtorParameter.kt WHEN type=kotlin.String origin=ELVIS BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_2: kotlin.String? [val] declared in .box.' type=kotlin.String? origin=null + arg0: GET_VAR 'val tmp_2: kotlin.String? declared in .box.' type=kotlin.String? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST String type=kotlin.String value="" BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val tmp_2: kotlin.String? [val] declared in .box.' type=kotlin.String? origin=null + then: GET_VAR 'val tmp_2: kotlin.String? declared in .box.' type=kotlin.String? origin=null WHEN type=kotlin.Unit origin=IF BRANCH - if: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ + if: CALL 'public final fun not (): kotlin.Boolean 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_VAR 'val parameterAnnotations: kotlin.collections.Set [val] declared in .box' type=kotlin.collections.Set origin=null + arg0: GET_VAR 'val parameterAnnotations: kotlin.collections.Set declared in .box' type=kotlin.collections.Set origin=null arg1: CALL 'public final fun setOf (vararg elements: T of kotlin.collections.SetsKt.setOf): kotlin.collections.Set declared in kotlin.collections.SetsKt' type=kotlin.collections.Set origin=null : kotlin.String elements: VARARG type=kotlin.Array varargElementType=kotlin.String @@ -287,40 +287,40 @@ FILE fqName: fileName:/targetOnPrimaryCtorParameter.kt CONST String type=kotlin.String value="PropValueField" CONST String type=kotlin.String value="ParameterOnly" then: RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' - CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS + CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS $this: CONST String type=kotlin.String value="Parameters:" other: CALL 'public final fun joinToString (separator: kotlin.CharSequence, prefix: kotlin.CharSequence, postfix: kotlin.CharSequence, limit: kotlin.Int, truncated: kotlin.CharSequence, transform: kotlin.Function1?): kotlin.String declared in kotlin.collections.CollectionsKt' type=kotlin.String origin=null : kotlin.String - $receiver: GET_VAR 'val parameterAnnotations: kotlin.collections.Set [val] declared in .box' type=kotlin.collections.Set origin=null + $receiver: GET_VAR 'val parameterAnnotations: kotlin.collections.Set declared in .box' type=kotlin.collections.Set origin=null WHEN type=kotlin.Unit origin=IF BRANCH - if: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ + if: CALL 'public final fun not (): kotlin.Boolean 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_VAR 'val propertyAnnotations: kotlin.collections.Set [val] declared in .box' type=kotlin.collections.Set origin=null + arg0: GET_VAR 'val propertyAnnotations: kotlin.collections.Set declared in .box' type=kotlin.collections.Set origin=null arg1: CALL 'public final fun setOf (vararg elements: T of kotlin.collections.SetsKt.setOf): kotlin.collections.Set declared in kotlin.collections.SetsKt' type=kotlin.collections.Set origin=null : kotlin.String elements: VARARG type=kotlin.Array varargElementType=kotlin.String CONST String type=kotlin.String value="PropertyOnly" CONST String type=kotlin.String value="PropertyOnly2" then: RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' - CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS + CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS $this: CONST String type=kotlin.String value="Property:" other: CALL 'public final fun joinToString (separator: kotlin.CharSequence, prefix: kotlin.CharSequence, postfix: kotlin.CharSequence, limit: kotlin.Int, truncated: kotlin.CharSequence, transform: kotlin.Function1?): kotlin.String declared in kotlin.collections.CollectionsKt' type=kotlin.String origin=null : kotlin.String - $receiver: GET_VAR 'val propertyAnnotations: kotlin.collections.Set [val] declared in .box' type=kotlin.collections.Set origin=null + $receiver: GET_VAR 'val propertyAnnotations: kotlin.collections.Set declared in .box' type=kotlin.collections.Set origin=null WHEN type=kotlin.Unit origin=IF BRANCH - if: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ + if: CALL 'public final fun not (): kotlin.Boolean 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_VAR 'val fieldAnnotations: kotlin.collections.Set [val] declared in .box' type=kotlin.collections.Set origin=null + arg0: GET_VAR 'val fieldAnnotations: kotlin.collections.Set declared in .box' type=kotlin.collections.Set origin=null arg1: CALL 'public final fun setOf (element: T of kotlin.collections.SetsKt.setOf): kotlin.collections.Set declared in kotlin.collections.SetsKt' type=kotlin.collections.Set origin=null : kotlin.String element: CONST String type=kotlin.String value="FieldOnly" then: RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' - CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS + CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS $this: CONST String type=kotlin.String value="Field:" other: CALL 'public final fun joinToString (separator: kotlin.CharSequence, prefix: kotlin.CharSequence, postfix: kotlin.CharSequence, limit: kotlin.Int, truncated: kotlin.CharSequence, transform: kotlin.Function1?): kotlin.String declared in kotlin.collections.CollectionsKt' type=kotlin.String origin=null : kotlin.String - $receiver: GET_VAR 'val fieldAnnotations: kotlin.collections.Set [val] declared in .box' type=kotlin.collections.Set origin=null + $receiver: GET_VAR 'val fieldAnnotations: kotlin.collections.Set declared in .box' type=kotlin.collections.Set origin=null RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' CONST String type=kotlin.String value="OK" diff --git a/compiler/testData/codegen/box/annotations/targetOnPrimaryCtorParameter.ir.txt b/compiler/testData/codegen/box/annotations/targetOnPrimaryCtorParameter.ir.txt index 3d154ad469f..35262ce1997 100644 --- a/compiler/testData/codegen/box/annotations/targetOnPrimaryCtorParameter.ir.txt +++ b/compiler/testData/codegen/box/annotations/targetOnPrimaryCtorParameter.ir.txt @@ -3,20 +3,20 @@ FILE fqName: fileName:/targetOnPrimaryCtorParameter.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.NoTarget CONSTRUCTOR visibility:public <> () returnType:.NoTarget [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:NoTarget modality:OPEN visibility:public superTypes:[kotlin.Annotation]' 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 kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any CLASS ANNOTATION_CLASS name:PropValueField modality:OPEN visibility:public superTypes:[kotlin.Annotation] annotations: @@ -24,20 +24,20 @@ FILE fqName: fileName:/targetOnPrimaryCtorParameter.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.PropValueField CONSTRUCTOR visibility:public <> () returnType:.PropValueField [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:PropValueField modality:OPEN visibility:public superTypes:[kotlin.Annotation]' 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 kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any CLASS ANNOTATION_CLASS name:PropertyOnly modality:OPEN visibility:public superTypes:[kotlin.Annotation] annotations: @@ -45,20 +45,20 @@ FILE fqName: fileName:/targetOnPrimaryCtorParameter.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.PropertyOnly CONSTRUCTOR visibility:public <> () returnType:.PropertyOnly [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:PropertyOnly modality:OPEN visibility:public superTypes:[kotlin.Annotation]' 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 kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any CLASS ANNOTATION_CLASS name:ParameterOnly modality:OPEN visibility:public superTypes:[kotlin.Annotation] annotations: @@ -66,20 +66,20 @@ FILE fqName: fileName:/targetOnPrimaryCtorParameter.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.ParameterOnly CONSTRUCTOR visibility:public <> () returnType:.ParameterOnly [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:ParameterOnly modality:OPEN visibility:public superTypes:[kotlin.Annotation]' 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 kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any CLASS ANNOTATION_CLASS name:FieldOnly modality:OPEN visibility:public superTypes:[kotlin.Annotation] annotations: @@ -87,20 +87,20 @@ FILE fqName: fileName:/targetOnPrimaryCtorParameter.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.FieldOnly CONSTRUCTOR visibility:public <> () returnType:.FieldOnly [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:FieldOnly modality:OPEN visibility:public superTypes:[kotlin.Annotation]' 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 kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any CLASS ANNOTATION_CLASS name:PropertyOnly2 modality:OPEN visibility:public superTypes:[kotlin.Annotation] annotations: @@ -108,20 +108,20 @@ FILE fqName: fileName:/targetOnPrimaryCtorParameter.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.PropertyOnly2 CONSTRUCTOR visibility:public <> () returnType:.PropertyOnly2 [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:PropertyOnly2 modality:OPEN visibility:public superTypes:[kotlin.Annotation]' 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 kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:Foo modality:FINAL visibility:public superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Foo @@ -132,7 +132,7 @@ FILE fqName: fileName:/targetOnPrimaryCtorParameter.kt PropValueField ParameterOnly BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Foo modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:param visibility:public modality:FINAL [var] annotations: @@ -160,7 +160,7 @@ FILE fqName: fileName:/targetOnPrimaryCtorParameter.kt value: GET_VAR ': kotlin.Int declared in .Foo.' type=kotlin.Int 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -178,17 +178,17 @@ FILE fqName: fileName:/targetOnPrimaryCtorParameter.kt VAR name:parameterAnnotations type:kotlin.collections.Set [val] CALL 'public final fun toSet (): kotlin.collections.Set declared in kotlin.collections.CollectionsKt' type=kotlin.collections.Set origin=null : kotlin.String - $receiver: CALL 'public final fun map (transform: kotlin.Function1): kotlin.collections.List [inline] declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List origin=null + $receiver: CALL 'public final fun map (transform: kotlin.Function1): kotlin.collections.List declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List origin=null : kotlin.Annotation : kotlin.String - $receiver: CALL 'public abstract fun (): kotlin.collections.List [fake_override] declared in kotlin.reflect.KParameter' type=kotlin.collections.List origin=GET_PROPERTY + $receiver: CALL 'public abstract fun (): kotlin.collections.List declared in kotlin.reflect.KParameter' type=kotlin.collections.List origin=GET_PROPERTY $this: CALL 'public final fun single (): T of kotlin.collections.CollectionsKt.single declared in kotlin.collections.CollectionsKt' type=kotlin.reflect.KParameter origin=null : kotlin.reflect.KParameter - $receiver: CALL 'public abstract fun (): kotlin.collections.List [fake_override] declared in kotlin.reflect.KFunction' type=kotlin.collections.List origin=GET_PROPERTY + $receiver: CALL 'public abstract fun (): kotlin.collections.List declared in kotlin.reflect.KFunction' type=kotlin.collections.List origin=GET_PROPERTY $this: CALL 'public final fun single (): T of kotlin.collections.CollectionsKt.single declared in kotlin.collections.CollectionsKt' type=kotlin.reflect.KFunction<.Foo> origin=null : kotlin.reflect.KFunction<.Foo> $receiver: CALL 'public abstract fun (): kotlin.collections.Collection> declared in kotlin.reflect.KClass' type=kotlin.collections.Collection.Foo>> origin=GET_PROPERTY - $this: GET_VAR 'val clazz: kotlin.reflect.KClass<.Foo> [val] declared in .box' type=kotlin.reflect.KClass<.Foo> origin=null + $this: GET_VAR 'val clazz: kotlin.reflect.KClass<.Foo> declared in .box' type=kotlin.reflect.KClass<.Foo> origin=null transform: FUN_EXPR type=kotlin.Function1 origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> (it:kotlin.Annotation) returnType:kotlin.String VALUE_PARAMETER name:it index:0 type:kotlin.Annotation @@ -203,24 +203,24 @@ FILE fqName: fileName:/targetOnPrimaryCtorParameter.kt WHEN type=kotlin.String origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_0: kotlin.String? [val] declared in .box.' type=kotlin.String? origin=null + arg0: GET_VAR 'val tmp_0: kotlin.String? declared in .box.' type=kotlin.String? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST String type=kotlin.String value="" BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val tmp_0: kotlin.String? [val] declared in .box.' type=kotlin.String? origin=null + then: GET_VAR 'val tmp_0: kotlin.String? declared in .box.' type=kotlin.String? origin=null VAR name:propertyAnnotations type:kotlin.collections.Set [val] CALL 'public final fun toSet (): kotlin.collections.Set declared in kotlin.collections.CollectionsKt' type=kotlin.collections.Set origin=null : kotlin.String - $receiver: CALL 'public final fun map (transform: kotlin.Function1): kotlin.collections.List [inline] declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List origin=null + $receiver: CALL 'public final fun map (transform: kotlin.Function1): kotlin.collections.List declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List origin=null : kotlin.Annotation : kotlin.String - $receiver: CALL 'public abstract fun (): kotlin.collections.List [fake_override] declared in kotlin.reflect.KProperty1' type=kotlin.collections.List origin=GET_PROPERTY + $receiver: CALL 'public abstract fun (): kotlin.collections.List declared in kotlin.reflect.KProperty1' type=kotlin.collections.List origin=GET_PROPERTY $this: CALL 'public final fun single (): T of kotlin.collections.CollectionsKt.single declared in kotlin.collections.CollectionsKt' type=kotlin.reflect.KProperty1<.Foo, *> origin=null : kotlin.reflect.KProperty1<.Foo, *> $receiver: CALL 'public final fun (): kotlin.collections.Collection, *>> declared in kotlin.reflect.full' type=kotlin.collections.Collection.Foo, *>> origin=GET_PROPERTY : .Foo - $receiver: GET_VAR 'val clazz: kotlin.reflect.KClass<.Foo> [val] declared in .box' type=kotlin.reflect.KClass<.Foo> origin=null + $receiver: GET_VAR 'val clazz: kotlin.reflect.KClass<.Foo> declared in .box' type=kotlin.reflect.KClass<.Foo> origin=null transform: FUN_EXPR type=kotlin.Function1 origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> (it:kotlin.Annotation) returnType:kotlin.String VALUE_PARAMETER name:it index:0 type:kotlin.Annotation @@ -235,20 +235,20 @@ FILE fqName: fileName:/targetOnPrimaryCtorParameter.kt WHEN type=kotlin.String origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_1: kotlin.String? [val] declared in .box.' type=kotlin.String? origin=null + arg0: GET_VAR 'val tmp_1: kotlin.String? declared in .box.' type=kotlin.String? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST String type=kotlin.String value="" BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val tmp_1: kotlin.String? [val] declared in .box.' type=kotlin.String? origin=null + then: GET_VAR 'val tmp_1: kotlin.String? declared in .box.' type=kotlin.String? origin=null VAR name:fieldAnnotations type:kotlin.collections.Set [val] CALL 'public final fun toSet (): kotlin.collections.Set declared in kotlin.collections.CollectionsKt' type=kotlin.collections.Set origin=null : kotlin.String - $receiver: CALL 'public final fun map (transform: kotlin.Function1): kotlin.collections.List [inline] declared in kotlin.collections.ArraysKt' type=kotlin.collections.List origin=null + $receiver: CALL 'public final fun map (transform: kotlin.Function1): kotlin.collections.List declared in kotlin.collections.ArraysKt' type=kotlin.collections.List origin=null : @[FlexibleNullability] kotlin.Annotation? : kotlin.String $receiver: TYPE_OP type=kotlin.Array origin=IMPLICIT_NOTNULL typeOperand=kotlin.Array - CALL 'public open fun getAnnotations (): @[FlexibleNullability] kotlin.Array? [fake_override] declared in java.lang.reflect.Field' type=@[FlexibleNullability] kotlin.Array? origin=GET_PROPERTY + CALL 'public open fun getAnnotations (): @[FlexibleNullability] kotlin.Array? declared in java.lang.reflect.Field' type=@[FlexibleNullability] kotlin.Array? origin=GET_PROPERTY $this: TYPE_OP type=java.lang.reflect.Field origin=IMPLICIT_NOTNULL typeOperand=java.lang.reflect.Field CALL 'public open fun getDeclaredField (p0: @[FlexibleNullability] kotlin.String?): @[FlexibleNullability] java.lang.reflect.Field? declared in java.lang.Class' type=@[FlexibleNullability] java.lang.reflect.Field? origin=null $this: CALL 'public final fun (): java.lang.Class> declared in kotlin.jvm' type=java.lang.Class<.Foo> origin=GET_PROPERTY @@ -269,17 +269,17 @@ FILE fqName: fileName:/targetOnPrimaryCtorParameter.kt WHEN type=kotlin.String origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_2: kotlin.String? [val] declared in .box.' type=kotlin.String? origin=null + arg0: GET_VAR 'val tmp_2: kotlin.String? declared in .box.' type=kotlin.String? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST String type=kotlin.String value="" BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val tmp_2: kotlin.String? [val] declared in .box.' type=kotlin.String? origin=null + then: GET_VAR 'val tmp_2: kotlin.String? declared in .box.' type=kotlin.String? origin=null WHEN type=kotlin.Unit origin=IF BRANCH - if: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ + if: CALL 'public final fun not (): kotlin.Boolean 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_VAR 'val parameterAnnotations: kotlin.collections.Set [val] declared in .box' type=kotlin.collections.Set origin=null + arg0: GET_VAR 'val parameterAnnotations: kotlin.collections.Set declared in .box' type=kotlin.collections.Set origin=null arg1: CALL 'public final fun setOf (vararg elements: T of kotlin.collections.SetsKt.setOf): kotlin.collections.Set declared in kotlin.collections.SetsKt' type=kotlin.collections.Set origin=null : kotlin.String elements: VARARG type=kotlin.Array varargElementType=kotlin.String @@ -287,40 +287,40 @@ FILE fqName: fileName:/targetOnPrimaryCtorParameter.kt CONST String type=kotlin.String value="PropValueField" CONST String type=kotlin.String value="ParameterOnly" then: RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' - CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS + CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS $this: CONST String type=kotlin.String value="Parameters:" other: CALL 'public final fun joinToString (separator: kotlin.CharSequence, prefix: kotlin.CharSequence, postfix: kotlin.CharSequence, limit: kotlin.Int, truncated: kotlin.CharSequence, transform: kotlin.Function1?): kotlin.String declared in kotlin.collections.CollectionsKt' type=kotlin.String origin=null : kotlin.String - $receiver: GET_VAR 'val parameterAnnotations: kotlin.collections.Set [val] declared in .box' type=kotlin.collections.Set origin=null + $receiver: GET_VAR 'val parameterAnnotations: kotlin.collections.Set declared in .box' type=kotlin.collections.Set origin=null WHEN type=kotlin.Unit origin=IF BRANCH - if: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ + if: CALL 'public final fun not (): kotlin.Boolean 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_VAR 'val propertyAnnotations: kotlin.collections.Set [val] declared in .box' type=kotlin.collections.Set origin=null + arg0: GET_VAR 'val propertyAnnotations: kotlin.collections.Set declared in .box' type=kotlin.collections.Set origin=null arg1: CALL 'public final fun setOf (vararg elements: T of kotlin.collections.SetsKt.setOf): kotlin.collections.Set declared in kotlin.collections.SetsKt' type=kotlin.collections.Set origin=null : kotlin.String elements: VARARG type=kotlin.Array varargElementType=kotlin.String CONST String type=kotlin.String value="PropertyOnly" CONST String type=kotlin.String value="PropertyOnly2" then: RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' - CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS + CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS $this: CONST String type=kotlin.String value="Property:" other: CALL 'public final fun joinToString (separator: kotlin.CharSequence, prefix: kotlin.CharSequence, postfix: kotlin.CharSequence, limit: kotlin.Int, truncated: kotlin.CharSequence, transform: kotlin.Function1?): kotlin.String declared in kotlin.collections.CollectionsKt' type=kotlin.String origin=null : kotlin.String - $receiver: GET_VAR 'val propertyAnnotations: kotlin.collections.Set [val] declared in .box' type=kotlin.collections.Set origin=null + $receiver: GET_VAR 'val propertyAnnotations: kotlin.collections.Set declared in .box' type=kotlin.collections.Set origin=null WHEN type=kotlin.Unit origin=IF BRANCH - if: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ + if: CALL 'public final fun not (): kotlin.Boolean 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_VAR 'val fieldAnnotations: kotlin.collections.Set [val] declared in .box' type=kotlin.collections.Set origin=null + arg0: GET_VAR 'val fieldAnnotations: kotlin.collections.Set declared in .box' type=kotlin.collections.Set origin=null arg1: CALL 'public final fun setOf (element: T of kotlin.collections.SetsKt.setOf): kotlin.collections.Set declared in kotlin.collections.SetsKt' type=kotlin.collections.Set origin=null : kotlin.String element: CONST String type=kotlin.String value="FieldOnly" then: RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' - CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS + CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS $this: CONST String type=kotlin.String value="Field:" other: CALL 'public final fun joinToString (separator: kotlin.CharSequence, prefix: kotlin.CharSequence, postfix: kotlin.CharSequence, limit: kotlin.Int, truncated: kotlin.CharSequence, transform: kotlin.Function1?): kotlin.String declared in kotlin.collections.CollectionsKt' type=kotlin.String origin=null : kotlin.String - $receiver: GET_VAR 'val fieldAnnotations: kotlin.collections.Set [val] declared in .box' type=kotlin.collections.Set origin=null + $receiver: GET_VAR 'val fieldAnnotations: kotlin.collections.Set declared in .box' type=kotlin.collections.Set origin=null RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' CONST String type=kotlin.String value="OK" diff --git a/compiler/testData/codegen/box/callableReference/serializability/referenceToCompanionFunction.fir.ir.txt b/compiler/testData/codegen/box/callableReference/serializability/referenceToCompanionFunction.fir.ir.txt index bd50c4bf0f6..880a747bc57 100644 --- a/compiler/testData/codegen/box/callableReference/serializability/referenceToCompanionFunction.fir.ir.txt +++ b/compiler/testData/codegen/box/callableReference/serializability/referenceToCompanionFunction.fir.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/referenceToCompanionFunction.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Base CONSTRUCTOR visibility:public <> () returnType:.Base [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Base modality:ABSTRACT visibility:public superTypes:[kotlin.Any]' FUN name:foo visibility:public modality:FINAL <> ($this:.Base) returnType:kotlin.String $this: VALUE_PARAMETER name: type:.Base @@ -14,7 +14,7 @@ FILE fqName: fileName:/referenceToCompanionFunction.kt $this: VALUE_PARAMETER 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -29,13 +29,13 @@ FILE fqName: fileName:/referenceToCompanionFunction.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Some CONSTRUCTOR visibility:public <> () returnType:.Some [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Some modality:FINAL visibility:public superTypes:[kotlin.Any]' CLASS OBJECT name:Companion modality:FINAL visibility:public [companion] superTypes:[.Base] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Some.Companion CONSTRUCTOR visibility:private <> () returnType:.Some.Companion [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .Base' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .Base' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:Companion modality:FINAL visibility:public [companion] superTypes:[.Base]' FUN name:bar visibility:public modality:OPEN <> ($this:.Some.Companion) returnType:kotlin.String overridden: @@ -50,20 +50,20 @@ FILE fqName: fileName:/referenceToCompanionFunction.kt $this: VALUE_PARAMETER 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 [fake_override,operator] declared in .Base + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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 + public open fun hashCode (): kotlin.Int 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 + public open fun toString (): kotlin.String declared in .Base $this: VALUE_PARAMETER name: type: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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -78,7 +78,7 @@ FILE fqName: fileName:/referenceToCompanionFunction.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Singleton CONSTRUCTOR visibility:private <> () returnType:.Singleton [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .Base' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .Base' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:Singleton modality:FINAL visibility:public superTypes:[.Base]' FUN name:bar visibility:public modality:OPEN <> ($this:.Singleton) returnType:kotlin.String overridden: @@ -93,64 +93,64 @@ FILE fqName: fileName:/referenceToCompanionFunction.kt $this: VALUE_PARAMETER 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 [fake_override,operator] declared in .Base + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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 + public open fun hashCode (): kotlin.Int 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 + public open fun toString (): kotlin.String declared in .Base $this: VALUE_PARAMETER name: type:kotlin.Any FUN name:box visibility:public modality:FINAL <> () returnType:kotlin.String BLOCK_BODY VAR name:ref1 type:kotlin.reflect.KFunction0 [val] - FUNCTION_REFERENCE 'public final fun foo (): kotlin.String [fake_override] declared in .Some.Companion' type=kotlin.reflect.KFunction0 origin=null reflectionTarget= + FUNCTION_REFERENCE 'public final fun foo (): kotlin.String declared in .Some.Companion' type=kotlin.reflect.KFunction0 origin=null reflectionTarget= $this: GET_OBJECT 'CLASS OBJECT name:Companion modality:FINAL visibility:public [companion] superTypes:[.Base]' type=.Some.Companion VAR name:ref2 type:kotlin.reflect.KFunction0 [val] FUNCTION_REFERENCE 'public open fun bar (): kotlin.String declared in .Some.Companion' type=kotlin.reflect.KFunction0 origin=null reflectionTarget= $this: GET_OBJECT 'CLASS OBJECT name:Companion modality:FINAL visibility:public [companion] superTypes:[.Base]' type=.Some.Companion VAR name:ref3 type:kotlin.reflect.KFunction0 [val] - FUNCTION_REFERENCE 'public final fun foo (): kotlin.String [fake_override] declared in .Some.Companion' type=kotlin.reflect.KFunction0 origin=null reflectionTarget= + FUNCTION_REFERENCE 'public final fun foo (): kotlin.String declared in .Some.Companion' type=kotlin.reflect.KFunction0 origin=null reflectionTarget= $this: GET_OBJECT 'CLASS OBJECT name:Companion modality:FINAL visibility:public [companion] superTypes:[.Base]' type=.Some.Companion VAR name:ref4 type:kotlin.reflect.KFunction0 [val] FUNCTION_REFERENCE 'public open fun bar (): kotlin.String declared in .Some.Companion' type=kotlin.reflect.KFunction0 origin=null reflectionTarget= $this: GET_OBJECT 'CLASS OBJECT name:Companion modality:FINAL visibility:public [companion] superTypes:[.Base]' type=.Some.Companion VAR name:ref5 type:kotlin.reflect.KFunction0 [val] - FUNCTION_REFERENCE 'public final fun foo (): kotlin.String [fake_override] declared in .Singleton' type=kotlin.reflect.KFunction0 origin=null reflectionTarget= + FUNCTION_REFERENCE 'public final fun foo (): kotlin.String declared in .Singleton' type=kotlin.reflect.KFunction0 origin=null reflectionTarget= $this: GET_OBJECT 'CLASS OBJECT name:Singleton modality:FINAL visibility:public superTypes:[.Base]' type=.Singleton VAR name:ref6 type:kotlin.reflect.KFunction0 [val] FUNCTION_REFERENCE 'public open fun bar (): kotlin.String declared in .Singleton' type=kotlin.reflect.KFunction0 origin=null reflectionTarget= $this: GET_OBJECT 'CLASS OBJECT name:Singleton modality:FINAL visibility:public superTypes:[.Base]' type=.Singleton VAR name:result type:kotlin.String [val] - CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public abstract fun invoke (): R of kotlin.reflect.KFunction0 [operator] declared in kotlin.reflect.KFunction0' type=kotlin.String origin=INVOKE - $this: GET_VAR 'val ref1: kotlin.reflect.KFunction0 [val] declared in .box' type=kotlin.reflect.KFunction0 origin=VARIABLE_AS_FUNCTION - other: CALL 'public abstract fun invoke (): R of kotlin.reflect.KFunction0 [operator] declared in kotlin.reflect.KFunction0' type=kotlin.String origin=INVOKE - $this: GET_VAR 'val ref2: kotlin.reflect.KFunction0 [val] declared in .box' type=kotlin.reflect.KFunction0 origin=VARIABLE_AS_FUNCTION - other: CALL 'public abstract fun invoke (): R of kotlin.reflect.KFunction0 [operator] declared in kotlin.reflect.KFunction0' type=kotlin.String origin=INVOKE - $this: GET_VAR 'val ref3: kotlin.reflect.KFunction0 [val] declared in .box' type=kotlin.reflect.KFunction0 origin=VARIABLE_AS_FUNCTION - other: CALL 'public abstract fun invoke (): R of kotlin.reflect.KFunction0 [operator] declared in kotlin.reflect.KFunction0' type=kotlin.String origin=INVOKE - $this: GET_VAR 'val ref4: kotlin.reflect.KFunction0 [val] declared in .box' type=kotlin.reflect.KFunction0 origin=VARIABLE_AS_FUNCTION - other: CALL 'public abstract fun invoke (): R of kotlin.reflect.KFunction0 [operator] declared in kotlin.reflect.KFunction0' type=kotlin.String origin=INVOKE - $this: GET_VAR 'val ref5: kotlin.reflect.KFunction0 [val] declared in .box' type=kotlin.reflect.KFunction0 origin=VARIABLE_AS_FUNCTION - other: CALL 'public abstract fun invoke (): R of kotlin.reflect.KFunction0 [operator] declared in kotlin.reflect.KFunction0' type=kotlin.String origin=INVOKE - $this: GET_VAR 'val ref6: kotlin.reflect.KFunction0 [val] declared in .box' type=kotlin.reflect.KFunction0 origin=VARIABLE_AS_FUNCTION + CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public abstract fun invoke (): R of kotlin.reflect.KFunction0 declared in kotlin.reflect.KFunction0' type=kotlin.String origin=INVOKE + $this: GET_VAR 'val ref1: kotlin.reflect.KFunction0 declared in .box' type=kotlin.reflect.KFunction0 origin=VARIABLE_AS_FUNCTION + other: CALL 'public abstract fun invoke (): R of kotlin.reflect.KFunction0 declared in kotlin.reflect.KFunction0' type=kotlin.String origin=INVOKE + $this: GET_VAR 'val ref2: kotlin.reflect.KFunction0 declared in .box' type=kotlin.reflect.KFunction0 origin=VARIABLE_AS_FUNCTION + other: CALL 'public abstract fun invoke (): R of kotlin.reflect.KFunction0 declared in kotlin.reflect.KFunction0' type=kotlin.String origin=INVOKE + $this: GET_VAR 'val ref3: kotlin.reflect.KFunction0 declared in .box' type=kotlin.reflect.KFunction0 origin=VARIABLE_AS_FUNCTION + other: CALL 'public abstract fun invoke (): R of kotlin.reflect.KFunction0 declared in kotlin.reflect.KFunction0' type=kotlin.String origin=INVOKE + $this: GET_VAR 'val ref4: kotlin.reflect.KFunction0 declared in .box' type=kotlin.reflect.KFunction0 origin=VARIABLE_AS_FUNCTION + other: CALL 'public abstract fun invoke (): R of kotlin.reflect.KFunction0 declared in kotlin.reflect.KFunction0' type=kotlin.String origin=INVOKE + $this: GET_VAR 'val ref5: kotlin.reflect.KFunction0 declared in .box' type=kotlin.reflect.KFunction0 origin=VARIABLE_AS_FUNCTION + other: CALL 'public abstract fun invoke (): R of kotlin.reflect.KFunction0 declared in kotlin.reflect.KFunction0' type=kotlin.String origin=INVOKE + $this: GET_VAR 'val ref6: kotlin.reflect.KFunction0 declared in .box' type=kotlin.reflect.KFunction0 origin=VARIABLE_AS_FUNCTION RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' WHEN type=kotlin.String origin=IF BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val result: kotlin.String [val] declared in .box' type=kotlin.String origin=null + arg0: GET_VAR 'val result: kotlin.String declared in .box' type=kotlin.String origin=null arg1: CONST String type=kotlin.String value="ABABAC" then: CONST String type=kotlin.String value="OK" BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: STRING_CONCATENATION type=kotlin.String CONST String type=kotlin.String value="Fail: " - GET_VAR 'val result: kotlin.String [val] declared in .box' type=kotlin.String origin=null + GET_VAR 'val result: kotlin.String declared in .box' type=kotlin.String origin=null diff --git a/compiler/testData/codegen/box/delegation/delegationToIntersectionType.fir.ir.txt b/compiler/testData/codegen/box/delegation/delegationToIntersectionType.fir.ir.txt index a8646b805f1..e7071524a21 100644 --- a/compiler/testData/codegen/box/delegation/delegationToIntersectionType.fir.ir.txt +++ b/compiler/testData/codegen/box/delegation/delegationToIntersectionType.fir.ir.txt @@ -10,7 +10,7 @@ FILE fqName: fileName:/delegationToIntersectionType.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -27,7 +27,7 @@ FILE fqName: fileName:/delegationToIntersectionType.kt $this: VALUE_PARAMETER name: type:.B 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -42,7 +42,7 @@ FILE fqName: fileName:/delegationToIntersectionType.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.C CONSTRUCTOR visibility:public <> () returnType:.C [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C modality:FINAL visibility:public superTypes:[.A; .B]' FUN name:foo visibility:public modality:OPEN <> ($this:.C) returnType:kotlin.String overridden: @@ -53,25 +53,25 @@ FILE fqName: fileName:/delegationToIntersectionType.kt CONST String type=kotlin.String value="OK" 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 .A - public open fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .B + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .A + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .B $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 .A - public open fun hashCode (): kotlin.Int [fake_override] declared in .B + public open fun hashCode (): kotlin.Int declared in .A + public open fun hashCode (): kotlin.Int declared in .B $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 .A - public open fun toString (): kotlin.String [fake_override] declared in .B + public open fun toString (): kotlin.String declared in .A + public open fun toString (): kotlin.String declared in .B $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:D modality:FINAL visibility:public superTypes:[.A; .B] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.D CONSTRUCTOR visibility:public <> () returnType:.D [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:D modality:FINAL visibility:public superTypes:[.A; .B]' FUN name:foo visibility:public modality:OPEN <> ($this:.D) returnType:kotlin.String overridden: @@ -82,19 +82,19 @@ FILE fqName: fileName:/delegationToIntersectionType.kt CONST String type=kotlin.String value="FAIL" 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 .A - public open fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .B + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .A + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .B $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 .A - public open fun hashCode (): kotlin.Int [fake_override] declared in .B + public open fun hashCode (): kotlin.Int declared in .A + public open fun hashCode (): kotlin.Int declared in .B $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 .A - public open fun toString (): kotlin.String [fake_override] declared in .B + public open fun toString (): kotlin.String declared in .A + public open fun toString (): kotlin.String declared in .B $this: VALUE_PARAMETER name: type:kotlin.Any FUN name:test visibility:public modality:FINAL <> (c:.C, d:.D) returnType:kotlin.String VALUE_PARAMETER name:c index:0 type:.C @@ -112,7 +112,7 @@ FILE fqName: fileName:/delegationToIntersectionType.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.test. CONSTRUCTOR visibility:public <> () returnType:.test. [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name: modality:FINAL visibility:local superTypes:[.B]' FUN DELEGATED_MEMBER name:foo visibility:public modality:OPEN <> ($this:.test.) returnType:kotlin.String overridden: @@ -126,24 +126,24 @@ FILE fqName: fileName:/delegationToIntersectionType.kt receiver: GET_VAR ': .test. declared in .test..foo' type=.test. origin=null FIELD DELEGATE name:$$delegate_0 type:.A visibility:private [final] EXPRESSION_BODY - GET_VAR 'val intersection: .A [val] declared in .test' type=.A origin=null + GET_VAR 'val intersection: .A declared in .test' type=.A 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 [fake_override,operator] declared in .B + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .B $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 .B + public open fun hashCode (): kotlin.Int declared in .B $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 .B + public open fun toString (): kotlin.String declared in .B $this: VALUE_PARAMETER name: type:kotlin.Any - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .test.' type=.test. origin=OBJECT_LITERAL + CONSTRUCTOR_CALL 'public constructor () declared in .test.' type=.test. origin=OBJECT_LITERAL FUN name:box visibility:public modality:FINAL <> () returnType:kotlin.String BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' CALL 'public final fun test (c: .C, d: .D): kotlin.String declared in ' type=kotlin.String origin=null - c: CONSTRUCTOR_CALL 'public constructor () [primary] declared in .C' type=.C origin=null - d: CONSTRUCTOR_CALL 'public constructor () [primary] declared in .D' type=.D origin=null + c: CONSTRUCTOR_CALL 'public constructor () declared in .C' type=.C origin=null + d: CONSTRUCTOR_CALL 'public constructor () declared in .D' type=.D origin=null diff --git a/compiler/testData/codegen/box/delegation/delegationToIntersectionType.ir.txt b/compiler/testData/codegen/box/delegation/delegationToIntersectionType.ir.txt index bd7996204ef..20b3f706f6a 100644 --- a/compiler/testData/codegen/box/delegation/delegationToIntersectionType.ir.txt +++ b/compiler/testData/codegen/box/delegation/delegationToIntersectionType.ir.txt @@ -10,7 +10,7 @@ FILE fqName: fileName:/delegationToIntersectionType.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -27,7 +27,7 @@ FILE fqName: fileName:/delegationToIntersectionType.kt $this: VALUE_PARAMETER name: type:.B 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -42,7 +42,7 @@ FILE fqName: fileName:/delegationToIntersectionType.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.C CONSTRUCTOR visibility:public <> () returnType:.C [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C modality:FINAL visibility:public superTypes:[.A; .B]' FUN name:foo visibility:public modality:OPEN <> ($this:.C) returnType:kotlin.String overridden: @@ -53,25 +53,25 @@ FILE fqName: fileName:/delegationToIntersectionType.kt CONST String type=kotlin.String value="OK" 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 .A - public open fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .B + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .A + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .B $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 .A - public open fun hashCode (): kotlin.Int [fake_override] declared in .B + public open fun hashCode (): kotlin.Int declared in .A + public open fun hashCode (): kotlin.Int declared in .B $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 .A - public open fun toString (): kotlin.String [fake_override] declared in .B + public open fun toString (): kotlin.String declared in .A + public open fun toString (): kotlin.String declared in .B $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:D modality:FINAL visibility:public superTypes:[.A; .B] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.D CONSTRUCTOR visibility:public <> () returnType:.D [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:D modality:FINAL visibility:public superTypes:[.A; .B]' FUN name:foo visibility:public modality:OPEN <> ($this:.D) returnType:kotlin.String overridden: @@ -82,19 +82,19 @@ FILE fqName: fileName:/delegationToIntersectionType.kt CONST String type=kotlin.String value="FAIL" 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 .A - public open fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .B + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .A + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .B $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 .A - public open fun hashCode (): kotlin.Int [fake_override] declared in .B + public open fun hashCode (): kotlin.Int declared in .A + public open fun hashCode (): kotlin.Int declared in .B $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 .A - public open fun toString (): kotlin.String [fake_override] declared in .B + public open fun toString (): kotlin.String declared in .A + public open fun toString (): kotlin.String declared in .B $this: VALUE_PARAMETER name: type:kotlin.Any FUN name:test visibility:public modality:FINAL <> (c:.C, d:.D) returnType:kotlin.String VALUE_PARAMETER name:c index:0 type:.C @@ -112,11 +112,11 @@ FILE fqName: fileName:/delegationToIntersectionType.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.test. CONSTRUCTOR visibility:public <> () returnType:.test. [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name: modality:FINAL visibility:local superTypes:[.B]' FIELD DELEGATE name:$$delegate_0 type:kotlin.Any visibility:private [final] EXPRESSION_BODY - GET_VAR 'val intersection: kotlin.Any [val] declared in .test' type=kotlin.Any origin=null + GET_VAR 'val intersection: kotlin.Any declared in .test' type=kotlin.Any origin=null FUN DELEGATED_MEMBER name:foo visibility:public modality:OPEN <> ($this:.test.) returnType:kotlin.String overridden: public abstract fun foo (): kotlin.String declared in .B @@ -129,21 +129,21 @@ FILE fqName: fileName:/delegationToIntersectionType.kt receiver: GET_VAR ': .test. declared in .test..foo' type=.test. 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 [fake_override,operator] declared in .B + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .B $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 .B + public open fun hashCode (): kotlin.Int declared in .B $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 .B + public open fun toString (): kotlin.String declared in .B $this: VALUE_PARAMETER name: type:kotlin.Any - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .test.' type=.test. origin=OBJECT_LITERAL + CONSTRUCTOR_CALL 'public constructor () declared in .test.' type=.test. origin=OBJECT_LITERAL FUN name:box visibility:public modality:FINAL <> () returnType:kotlin.String BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' CALL 'public final fun test (c: .C, d: .D): kotlin.String declared in ' type=kotlin.String origin=null - c: CONSTRUCTOR_CALL 'public constructor () [primary] declared in .C' type=.C origin=null - d: CONSTRUCTOR_CALL 'public constructor () [primary] declared in .D' type=.D origin=null + c: CONSTRUCTOR_CALL 'public constructor () declared in .C' type=.C origin=null + d: CONSTRUCTOR_CALL 'public constructor () declared in .D' type=.D origin=null diff --git a/compiler/testData/codegen/box/delegation/delegationToIntersectionType2.fir.ir.txt b/compiler/testData/codegen/box/delegation/delegationToIntersectionType2.fir.ir.txt index b23aa6280ef..ab966622b65 100644 --- a/compiler/testData/codegen/box/delegation/delegationToIntersectionType2.fir.ir.txt +++ b/compiler/testData/codegen/box/delegation/delegationToIntersectionType2.fir.ir.txt @@ -12,7 +12,7 @@ FILE fqName: fileName:/delegationToIntersectionType2.kt $this: VALUE_PARAMETER name: type:.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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -29,7 +29,7 @@ FILE fqName: fileName:/delegationToIntersectionType2.kt $this: VALUE_PARAMETER name: type:.B 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -44,7 +44,7 @@ FILE fqName: fileName:/delegationToIntersectionType2.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.C CONSTRUCTOR visibility:public <> () returnType:.C [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C modality:FINAL visibility:public superTypes:[.A; .B]' FUN name:foo visibility:public modality:OPEN <> ($this:.C) returnType:kotlin.String overridden: @@ -56,25 +56,25 @@ FILE fqName: fileName:/delegationToIntersectionType2.kt CONST String type=kotlin.String value="OK" 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 .A - public open fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .B + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .A + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .B $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 .A - public open fun hashCode (): kotlin.Int [fake_override] declared in .B + public open fun hashCode (): kotlin.Int declared in .A + public open fun hashCode (): kotlin.Int declared in .B $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 .A - public open fun toString (): kotlin.String [fake_override] declared in .B + public open fun toString (): kotlin.String declared in .A + public open fun toString (): kotlin.String declared in .B $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:D modality:FINAL visibility:public superTypes:[.A; .B] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.D CONSTRUCTOR visibility:public <> () returnType:.D [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:D modality:FINAL visibility:public superTypes:[.A; .B]' FUN name:foo visibility:public modality:OPEN <> ($this:.D) returnType:kotlin.String overridden: @@ -86,19 +86,19 @@ FILE fqName: fileName:/delegationToIntersectionType2.kt CONST String type=kotlin.String value="FAIL" 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 .A - public open fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .B + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .A + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .B $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 .A - public open fun hashCode (): kotlin.Int [fake_override] declared in .B + public open fun hashCode (): kotlin.Int declared in .A + public open fun hashCode (): kotlin.Int declared in .B $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 .A - public open fun toString (): kotlin.String [fake_override] declared in .B + public open fun toString (): kotlin.String declared in .A + public open fun toString (): kotlin.String declared in .B $this: VALUE_PARAMETER name: type:kotlin.Any FUN name:test visibility:public modality:FINAL <> (c:.C, d:.D) returnType:kotlin.String VALUE_PARAMETER name:c index:0 type:.C @@ -117,7 +117,7 @@ FILE fqName: fileName:/delegationToIntersectionType2.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.test. CONSTRUCTOR visibility:public <> () returnType:.test. [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name: modality:FINAL visibility:local superTypes:[.A]' FUN DELEGATED_MEMBER name:foo visibility:public modality:OPEN <> ($this:.test.) returnType:kotlin.Any overridden: @@ -131,24 +131,24 @@ FILE fqName: fileName:/delegationToIntersectionType2.kt receiver: GET_VAR ': .test. declared in .test..foo' type=.test. origin=null FIELD DELEGATE name:$$delegate_0 type:.A visibility:private [final] EXPRESSION_BODY - GET_VAR 'val intersection: .A [val] declared in .test' type=.A origin=null + GET_VAR 'val intersection: .A declared in .test' type=.A 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 [fake_override,operator] declared in .A + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .A $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 .A + public open fun hashCode (): kotlin.Int declared in .A $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 .A + public open fun toString (): kotlin.String declared in .A $this: VALUE_PARAMETER name: type:kotlin.Any - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .test.' type=.test. origin=OBJECT_LITERAL + CONSTRUCTOR_CALL 'public constructor () declared in .test.' type=.test. origin=OBJECT_LITERAL FUN name:box visibility:public modality:FINAL <> () returnType:kotlin.String BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' CALL 'public final fun test (c: .C, d: .D): kotlin.String declared in ' type=kotlin.String origin=null - c: CONSTRUCTOR_CALL 'public constructor () [primary] declared in .C' type=.C origin=null - d: CONSTRUCTOR_CALL 'public constructor () [primary] declared in .D' type=.D origin=null + c: CONSTRUCTOR_CALL 'public constructor () declared in .C' type=.C origin=null + d: CONSTRUCTOR_CALL 'public constructor () declared in .D' type=.D origin=null diff --git a/compiler/testData/codegen/box/fir/callableReferenceToJavaField.fir.ir.txt b/compiler/testData/codegen/box/fir/callableReferenceToJavaField.fir.ir.txt index a16fbbb8eed..62c76ffa321 100644 --- a/compiler/testData/codegen/box/fir/callableReferenceToJavaField.fir.ir.txt +++ b/compiler/testData/codegen/box/fir/callableReferenceToJavaField.fir.ir.txt @@ -4,7 +4,7 @@ FILE fqName:foo fileName:/main.kt CONSTRUCTOR visibility:public <> (s:kotlin.String) returnType:foo.A [primary] VALUE_PARAMETER name:s index:0 type:kotlin.String BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:A modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:s visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:s type:kotlin.String visibility:private [final] @@ -19,7 +19,7 @@ FILE fqName:foo fileName:/main.kt receiver: GET_VAR ': foo.A declared in foo.A.' type=foo.A 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -34,22 +34,22 @@ FILE fqName:foo fileName:/main.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:foo.Derived CONSTRUCTOR visibility:public <> () returnType:foo.Derived [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in bar.Base' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in bar.Base' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Derived modality:FINAL visibility:public superTypes:[bar.Base]' FUN name:foo visibility:protected modality:OPEN <> ($this:foo.Derived) returnType:kotlin.Unit overridden: protected/*protected and package*/ open fun foo (): kotlin.Unit declared in bar.Base $this: VALUE_PARAMETER name: type:foo.Derived BLOCK_BODY - CALL 'public open fun set (p0: @[FlexibleNullability] kotlin.Any?, p1: @[FlexibleNullability] kotlin.Any?): kotlin.Unit [operator] declared in java.lang.reflect.Field' type=kotlin.Unit origin=null + CALL 'public open fun set (p0: @[FlexibleNullability] kotlin.Any?, p1: @[FlexibleNullability] kotlin.Any?): kotlin.Unit declared in java.lang.reflect.Field' type=kotlin.Unit origin=null $this: CALL 'public final fun CHECK_NOT_NULL (arg0: T0 of kotlin.internal.ir.CHECK_NOT_NULL?): {T0 of kotlin.internal.ir.CHECK_NOT_NULL & Any} declared in kotlin.internal.ir' type=java.lang.reflect.Field origin=EXCLEXCL : java.lang.reflect.Field arg0: CALL 'public final fun (): java.lang.reflect.Field? declared in kotlin.reflect.jvm' type=java.lang.reflect.Field? origin=GET_PROPERTY - $receiver: PROPERTY_REFERENCE 'protected/*protected and package*/ open a: @[FlexibleNullability] foo.A? [var]' field='FIELD IR_EXTERNAL_JAVA_DECLARATION_STUB name:a type:@[FlexibleNullability] foo.A? visibility:protected/*protected and package*/' getter='protected/*protected and package*/ open fun (): @[FlexibleNullability] foo.A? declared in bar.Base' setter='protected/*protected and package*/ open fun (: @[FlexibleNullability] foo.A?): kotlin.Unit declared in bar.Base' type=kotlin.reflect.KMutableProperty1 origin=null + $receiver: PROPERTY_REFERENCE 'protected/*protected and package*/ open a: @[FlexibleNullability] foo.A?' field='FIELD IR_EXTERNAL_JAVA_DECLARATION_STUB name:a type:@[FlexibleNullability] foo.A? visibility:protected/*protected and package*/' getter='protected/*protected and package*/ open fun (): @[FlexibleNullability] foo.A? declared in bar.Base' setter='protected/*protected and package*/ open fun (: @[FlexibleNullability] foo.A?): kotlin.Unit declared in bar.Base' type=kotlin.reflect.KMutableProperty1 origin=null <1>: <2>: p0: GET_VAR ': foo.Derived declared in foo.Derived.foo' type=foo.Derived origin=null - p1: CONSTRUCTOR_CALL 'public constructor (s: kotlin.String) [primary] declared in foo.A' type=foo.A origin=null + p1: CONSTRUCTOR_CALL 'public constructor (s: kotlin.String) declared in foo.A' type=foo.A origin=null s: CONST String type=kotlin.String value="OK" FUN name:box visibility:public modality:FINAL <> ($this:foo.Derived) returnType:kotlin.String $this: VALUE_PARAMETER name: type:foo.Derived @@ -62,19 +62,19 @@ FILE fqName:foo fileName:/main.kt receiver: GET_VAR ': foo.Derived declared in foo.Derived.box' type=foo.Derived 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 [fake_override,operator] declared in bar.Base + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in bar.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 bar.Base + public open fun hashCode (): kotlin.Int declared in bar.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 bar.Base + public open fun toString (): kotlin.String declared in bar.Base $this: VALUE_PARAMETER name: type:kotlin.Any FUN name:box visibility:public modality:FINAL <> () returnType:kotlin.String BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in foo' CALL 'public final fun box (): kotlin.String declared in foo.Derived' type=kotlin.String origin=null - $this: CONSTRUCTOR_CALL 'public constructor () [primary] declared in foo.Derived' type=foo.Derived origin=null + $this: CONSTRUCTOR_CALL 'public constructor () declared in foo.Derived' type=foo.Derived origin=null diff --git a/compiler/testData/codegen/box/fir/callableReferenceToJavaField.ir.txt b/compiler/testData/codegen/box/fir/callableReferenceToJavaField.ir.txt index d8bf09a9034..6914e5e1c28 100644 --- a/compiler/testData/codegen/box/fir/callableReferenceToJavaField.ir.txt +++ b/compiler/testData/codegen/box/fir/callableReferenceToJavaField.ir.txt @@ -4,7 +4,7 @@ FILE fqName:foo fileName:/main.kt CONSTRUCTOR visibility:public <> (s:kotlin.String) returnType:foo.A [primary] VALUE_PARAMETER name:s index:0 type:kotlin.String BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:A modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:s visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:s type:kotlin.String visibility:private [final] @@ -19,7 +19,7 @@ FILE fqName:foo fileName:/main.kt receiver: GET_VAR ': foo.A declared in foo.A.' type=foo.A 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -34,20 +34,20 @@ FILE fqName:foo fileName:/main.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:foo.Derived CONSTRUCTOR visibility:public <> () returnType:foo.Derived [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in bar.Base' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in bar.Base' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Derived modality:FINAL visibility:public superTypes:[bar.Base]' FUN name:foo visibility:protected modality:OPEN <> ($this:foo.Derived) returnType:kotlin.Unit overridden: protected/*protected and package*/ open fun foo (): kotlin.Unit declared in bar.Base $this: VALUE_PARAMETER name: type:foo.Derived BLOCK_BODY - CALL 'public open fun set (p0: @[FlexibleNullability] kotlin.Any?, p1: @[FlexibleNullability] kotlin.Any?): kotlin.Unit [operator] declared in java.lang.reflect.Field' type=kotlin.Unit origin=EQ + CALL 'public open fun set (p0: @[FlexibleNullability] kotlin.Any?, p1: @[FlexibleNullability] kotlin.Any?): kotlin.Unit declared in java.lang.reflect.Field' type=kotlin.Unit origin=EQ $this: CALL 'public final fun CHECK_NOT_NULL (arg0: T0 of kotlin.internal.ir.CHECK_NOT_NULL?): {T0 of kotlin.internal.ir.CHECK_NOT_NULL & Any} declared in kotlin.internal.ir' type=java.lang.reflect.Field origin=EXCLEXCL : java.lang.reflect.Field arg0: CALL 'public final fun (): java.lang.reflect.Field? declared in kotlin.reflect.jvm' type=java.lang.reflect.Field? origin=GET_PROPERTY - $receiver: PROPERTY_REFERENCE 'protected/*protected and package*/ final a [fake_override,var]' field='FIELD IR_EXTERNAL_JAVA_DECLARATION_STUB name:a type:@[FlexibleNullability] foo.A? visibility:protected/*protected and package*/' getter=null setter=null type=kotlin.reflect.KMutableProperty1 origin=null + $receiver: PROPERTY_REFERENCE 'protected/*protected and package*/ final a' field='FIELD IR_EXTERNAL_JAVA_DECLARATION_STUB name:a type:@[FlexibleNullability] foo.A? visibility:protected/*protected and package*/' getter=null setter=null type=kotlin.reflect.KMutableProperty1 origin=null p0: GET_VAR ': foo.Derived declared in foo.Derived.foo' type=foo.Derived origin=null - p1: CONSTRUCTOR_CALL 'public constructor (s: kotlin.String) [primary] declared in foo.A' type=foo.A origin=null + p1: CONSTRUCTOR_CALL 'public constructor (s: kotlin.String) declared in foo.A' type=foo.A origin=null s: CONST String type=kotlin.String value="OK" FUN name:box visibility:public modality:FINAL <> ($this:foo.Derived) returnType:kotlin.String $this: VALUE_PARAMETER name: type:foo.Derived @@ -61,22 +61,22 @@ FILE fqName:foo fileName:/main.kt receiver: GET_VAR ': foo.Derived declared in foo.Derived.box' type=foo.Derived 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 [fake_override,operator] declared in bar.Base + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in bar.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 bar.Base + public open fun hashCode (): kotlin.Int declared in bar.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 bar.Base + public open fun toString (): kotlin.String declared in bar.Base $this: VALUE_PARAMETER name: type:kotlin.Any PROPERTY FAKE_OVERRIDE name:a visibility:protected/*protected and package*/ modality:FINAL [fake_override,var] overridden: - protected/*protected and package*/ final a: @[FlexibleNullability] foo.A? [var] + protected/*protected and package*/ final a: @[FlexibleNullability] foo.A? FUN name:box visibility:public modality:FINAL <> () returnType:kotlin.String BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in foo' CALL 'public final fun box (): kotlin.String declared in foo.Derived' type=kotlin.String origin=null - $this: CONSTRUCTOR_CALL 'public constructor () [primary] declared in foo.Derived' type=foo.Derived origin=null + $this: CONSTRUCTOR_CALL 'public constructor () declared in foo.Derived' type=foo.Derived origin=null diff --git a/compiler/testData/codegen/box/fir/noSymbolForIntRangeIterator.fir.ir.txt b/compiler/testData/codegen/box/fir/noSymbolForIntRangeIterator.fir.ir.txt index 52b95b24fa4..be2edbd72f6 100644 --- a/compiler/testData/codegen/box/fir/noSymbolForIntRangeIterator.fir.ir.txt +++ b/compiler/testData/codegen/box/fir/noSymbolForIntRangeIterator.fir.ir.txt @@ -17,7 +17,7 @@ FILE fqName: fileName:/noSymbolForIntRangeIterator.kt FUN name:takeString visibility:public modality:FINAL <> (s:kotlin.String) returnType:kotlin.Unit VALUE_PARAMETER name:s index:0 type:kotlin.String BLOCK_BODY - CALL 'public final fun forEach (action: kotlin.Function1): kotlin.Unit [inline] declared in kotlin.collections.CollectionsKt' type=kotlin.Unit origin=null + CALL 'public final fun forEach (action: kotlin.Function1): kotlin.Unit declared in kotlin.collections.CollectionsKt' type=kotlin.Unit origin=null : kotlin.String $receiver: CALL 'public final fun split (vararg delimiters: kotlin.String, ignoreCase: kotlin.Boolean, limit: kotlin.Int): kotlin.collections.List declared in kotlin.text.StringsKt' type=kotlin.collections.List origin=null $receiver: GET_VAR 's: kotlin.String declared in .takeString' type=kotlin.String origin=null @@ -28,7 +28,7 @@ FILE fqName: fileName:/noSymbolForIntRangeIterator.kt VALUE_PARAMETER name:it index:0 type:kotlin.String BLOCK_BODY CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=EQ - : CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null + : CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: CALL 'public final fun (): kotlin.Int declared in ' type=kotlin.Int origin=GET_PROPERTY other: BLOCK type=kotlin.Int origin=ELVIS VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:kotlin.Int? [val] @@ -37,12 +37,12 @@ FILE fqName: fileName:/noSymbolForIntRangeIterator.kt WHEN type=kotlin.Int origin=ELVIS BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_0: kotlin.Int? [val] declared in .takeString.' type=kotlin.Int? origin=null + arg0: GET_VAR 'val tmp_0: kotlin.Int? declared in .takeString.' type=kotlin.Int? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Int type=kotlin.Int value=0 BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val tmp_0: kotlin.Int? [val] declared in .takeString.' type=kotlin.Int? origin=null + then: GET_VAR 'val tmp_0: kotlin.Int? declared in .takeString.' type=kotlin.Int? origin=null FUN name:test visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY VAR name:x type:kotlin.Int [val] @@ -53,45 +53,45 @@ FILE fqName: fileName:/noSymbolForIntRangeIterator.kt BLOCK_BODY BLOCK type=kotlin.Unit origin=FOR_LOOP VAR FOR_LOOP_ITERATOR name:tmp_1 type:kotlin.collections.IntIterator [val] - CALL 'public open fun iterator (): kotlin.collections.IntIterator [fake_override,operator] declared in kotlin.ranges.IntRange' type=kotlin.collections.IntIterator origin=FOR_LOOP_ITERATOR - $this: CALL 'public final fun rangeTo (other: kotlin.Int): kotlin.ranges.IntRange [operator] declared in kotlin.Int' type=kotlin.ranges.IntRange origin=RANGE + CALL 'public open fun iterator (): kotlin.collections.IntIterator declared in kotlin.ranges.IntRange' type=kotlin.collections.IntIterator origin=FOR_LOOP_ITERATOR + $this: CALL 'public final fun rangeTo (other: kotlin.Int): kotlin.ranges.IntRange declared in kotlin.Int' type=kotlin.ranges.IntRange origin=RANGE $this: CONST Int type=kotlin.Int value=0 - other: GET_VAR 'val x: kotlin.Int [val] declared in .test' type=kotlin.Int origin=null + other: GET_VAR 'val x: kotlin.Int declared in .test' type=kotlin.Int origin=null WHILE label=null origin=FOR_LOOP_INNER_WHILE - condition: CALL 'public abstract fun hasNext (): kotlin.Boolean [fake_override,operator] declared in kotlin.collections.IntIterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT - $this: GET_VAR 'val tmp_1: kotlin.collections.IntIterator [val] declared in .test.localFunc' type=kotlin.collections.IntIterator origin=null + condition: CALL 'public abstract fun hasNext (): kotlin.Boolean declared in kotlin.collections.IntIterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT + $this: GET_VAR 'val tmp_1: kotlin.collections.IntIterator declared in .test.localFunc' type=kotlin.collections.IntIterator origin=null body: BLOCK type=kotlin.Unit origin=FOR_LOOP_INNER_WHILE VAR FOR_LOOP_VARIABLE name:i type:kotlin.Int [val] - CALL 'public final fun next (): kotlin.Int [operator] declared in kotlin.collections.IntIterator' type=kotlin.Int origin=FOR_LOOP_NEXT - $this: GET_VAR 'val tmp_1: kotlin.collections.IntIterator [val] declared in .test.localFunc' type=kotlin.collections.IntIterator origin=null + CALL 'public final fun next (): kotlin.Int declared in kotlin.collections.IntIterator' type=kotlin.Int origin=FOR_LOOP_NEXT + $this: GET_VAR 'val tmp_1: kotlin.collections.IntIterator declared in .test.localFunc' type=kotlin.collections.IntIterator origin=null BLOCK type=kotlin.Unit origin=null VAR name:s type:kotlin.String [val] - CALL 'public final fun buildString (builderAction: @[ExtensionFunctionType] kotlin.Function1): kotlin.String [inline] declared in kotlin.text.StringsKt' type=kotlin.String origin=null + CALL 'public final fun buildString (builderAction: @[ExtensionFunctionType] kotlin.Function1): kotlin.String declared in kotlin.text.StringsKt' type=kotlin.String origin=null builderAction: FUN_EXPR type=@[ExtensionFunctionType] kotlin.Function1 origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> ($receiver:java.lang.StringBuilder) returnType:kotlin.Unit $receiver: VALUE_PARAMETER name:$this$buildString type:java.lang.StringBuilder BLOCK_BODY BLOCK type=kotlin.Unit origin=FOR_LOOP VAR FOR_LOOP_ITERATOR name:tmp_2 type:kotlin.collections.IntIterator [val] - CALL 'public open fun iterator (): kotlin.collections.IntIterator [fake_override,operator] declared in kotlin.ranges.IntRange' type=kotlin.collections.IntIterator origin=FOR_LOOP_ITERATOR - $this: CALL 'public final fun rangeTo (other: kotlin.Int): kotlin.ranges.IntRange [operator] declared in kotlin.Int' type=kotlin.ranges.IntRange origin=RANGE + CALL 'public open fun iterator (): kotlin.collections.IntIterator declared in kotlin.ranges.IntRange' type=kotlin.collections.IntIterator origin=FOR_LOOP_ITERATOR + $this: CALL 'public final fun rangeTo (other: kotlin.Int): kotlin.ranges.IntRange declared in kotlin.Int' type=kotlin.ranges.IntRange origin=RANGE $this: CONST Int type=kotlin.Int value=0 - other: GET_VAR 'val y: kotlin.Int [val] declared in .test' type=kotlin.Int origin=null + other: GET_VAR 'val y: kotlin.Int declared in .test' type=kotlin.Int origin=null WHILE label=null origin=FOR_LOOP_INNER_WHILE - condition: CALL 'public abstract fun hasNext (): kotlin.Boolean [fake_override,operator] declared in kotlin.collections.IntIterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT - $this: GET_VAR 'val tmp_2: kotlin.collections.IntIterator [val] declared in .test.localFunc.' type=kotlin.collections.IntIterator origin=null + condition: CALL 'public abstract fun hasNext (): kotlin.Boolean declared in kotlin.collections.IntIterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT + $this: GET_VAR 'val tmp_2: kotlin.collections.IntIterator declared in .test.localFunc.' type=kotlin.collections.IntIterator origin=null body: BLOCK type=kotlin.Unit origin=FOR_LOOP_INNER_WHILE VAR FOR_LOOP_VARIABLE name:j type:kotlin.Int [val] - CALL 'public final fun next (): kotlin.Int [operator] declared in kotlin.collections.IntIterator' type=kotlin.Int origin=FOR_LOOP_NEXT - $this: GET_VAR 'val tmp_2: kotlin.collections.IntIterator [val] declared in .test.localFunc.' type=kotlin.collections.IntIterator origin=null - CALL 'public final fun appendLine (value: kotlin.String?): java.lang.StringBuilder [inline] declared in kotlin.text.StringsKt' type=java.lang.StringBuilder origin=null + CALL 'public final fun next (): kotlin.Int declared in kotlin.collections.IntIterator' type=kotlin.Int origin=FOR_LOOP_NEXT + $this: GET_VAR 'val tmp_2: kotlin.collections.IntIterator declared in .test.localFunc.' type=kotlin.collections.IntIterator origin=null + CALL 'public final fun appendLine (value: kotlin.String?): java.lang.StringBuilder declared in kotlin.text.StringsKt' type=java.lang.StringBuilder origin=null $receiver: GET_VAR '$this$buildString: java.lang.StringBuilder declared in .test.localFunc.' type=java.lang.StringBuilder origin=null value: STRING_CONCATENATION type=kotlin.String - CALL 'public final fun times (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=MUL - $this: GET_VAR 'val i: kotlin.Int [val] declared in .test.localFunc' type=kotlin.Int origin=null - other: GET_VAR 'val j: kotlin.Int [val] declared in .test.localFunc.' type=kotlin.Int origin=null + CALL 'public final fun times (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=MUL + $this: GET_VAR 'val i: kotlin.Int declared in .test.localFunc' type=kotlin.Int origin=null + other: GET_VAR 'val j: kotlin.Int declared in .test.localFunc.' type=kotlin.Int origin=null CALL 'public final fun takeString (s: kotlin.String): kotlin.Unit declared in ' type=kotlin.Unit origin=null - s: GET_VAR 'val s: kotlin.String [val] declared in .test.localFunc' type=kotlin.String origin=null + s: GET_VAR 'val s: kotlin.String declared in .test.localFunc' type=kotlin.String origin=null CALL 'local final fun localFunc (): kotlin.Unit declared in .test' type=kotlin.Unit origin=null FUN name:box visibility:public modality:FINAL <> () returnType:kotlin.String BLOCK_BODY diff --git a/compiler/testData/codegen/box/fir/noSymbolForIntRangeIterator.ir.txt b/compiler/testData/codegen/box/fir/noSymbolForIntRangeIterator.ir.txt index f2351374d63..8b83b7b3ed7 100644 --- a/compiler/testData/codegen/box/fir/noSymbolForIntRangeIterator.ir.txt +++ b/compiler/testData/codegen/box/fir/noSymbolForIntRangeIterator.ir.txt @@ -17,7 +17,7 @@ FILE fqName: fileName:/noSymbolForIntRangeIterator.kt FUN name:takeString visibility:public modality:FINAL <> (s:kotlin.String) returnType:kotlin.Unit VALUE_PARAMETER name:s index:0 type:kotlin.String BLOCK_BODY - CALL 'public final fun forEach (action: kotlin.Function1): kotlin.Unit [inline] declared in kotlin.collections.CollectionsKt' type=kotlin.Unit origin=null + CALL 'public final fun forEach (action: kotlin.Function1): kotlin.Unit declared in kotlin.collections.CollectionsKt' type=kotlin.Unit origin=null : kotlin.String $receiver: CALL 'public final fun split (vararg delimiters: kotlin.String, ignoreCase: kotlin.Boolean, limit: kotlin.Int): kotlin.collections.List declared in kotlin.text.StringsKt' type=kotlin.collections.List origin=null $receiver: GET_VAR 's: kotlin.String declared in .takeString' type=kotlin.String origin=null @@ -29,7 +29,7 @@ FILE fqName: fileName:/noSymbolForIntRangeIterator.kt BLOCK_BODY BLOCK type=kotlin.Unit origin=PLUSEQ CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=PLUSEQ - : CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ + : CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ $this: CALL 'public final fun (): kotlin.Int declared in ' type=kotlin.Int origin=PLUSEQ other: BLOCK type=kotlin.Int origin=ELVIS VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:kotlin.Int? [val] @@ -38,12 +38,12 @@ FILE fqName: fileName:/noSymbolForIntRangeIterator.kt WHEN type=kotlin.Int origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_0: kotlin.Int? [val] declared in .takeString.' type=kotlin.Int? origin=null + arg0: GET_VAR 'val tmp_0: kotlin.Int? declared in .takeString.' type=kotlin.Int? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Int type=kotlin.Int value=0 BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val tmp_0: kotlin.Int? [val] declared in .takeString.' type=kotlin.Int? origin=null + then: GET_VAR 'val tmp_0: kotlin.Int? declared in .takeString.' type=kotlin.Int? origin=null FUN name:test visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY VAR name:x type:kotlin.Int [val] @@ -54,47 +54,47 @@ FILE fqName: fileName:/noSymbolForIntRangeIterator.kt BLOCK_BODY BLOCK type=kotlin.Unit origin=FOR_LOOP VAR FOR_LOOP_ITERATOR name:tmp_1 type:kotlin.collections.IntIterator [val] - CALL 'public open fun iterator (): kotlin.collections.IntIterator [fake_override,operator] declared in kotlin.ranges.IntRange' type=kotlin.collections.IntIterator origin=FOR_LOOP_ITERATOR - $this: CALL 'public final fun rangeTo (other: kotlin.Int): kotlin.ranges.IntRange [operator] declared in kotlin.Int' type=kotlin.ranges.IntRange origin=RANGE + CALL 'public open fun iterator (): kotlin.collections.IntIterator declared in kotlin.ranges.IntRange' type=kotlin.collections.IntIterator origin=FOR_LOOP_ITERATOR + $this: CALL 'public final fun rangeTo (other: kotlin.Int): kotlin.ranges.IntRange declared in kotlin.Int' type=kotlin.ranges.IntRange origin=RANGE $this: CONST Int type=kotlin.Int value=0 - other: GET_VAR 'val x: kotlin.Int [val] declared in .test' type=kotlin.Int origin=null + other: GET_VAR 'val x: kotlin.Int declared in .test' type=kotlin.Int origin=null WHILE label=null origin=FOR_LOOP_INNER_WHILE - condition: CALL 'public abstract fun hasNext (): kotlin.Boolean [fake_override,operator] declared in kotlin.collections.IntIterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT - $this: GET_VAR 'val tmp_1: kotlin.collections.IntIterator [val] declared in .test.localFunc' type=kotlin.collections.IntIterator origin=null + condition: CALL 'public abstract fun hasNext (): kotlin.Boolean declared in kotlin.collections.IntIterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT + $this: GET_VAR 'val tmp_1: kotlin.collections.IntIterator declared in .test.localFunc' type=kotlin.collections.IntIterator origin=null body: BLOCK type=kotlin.Unit origin=FOR_LOOP_INNER_WHILE VAR FOR_LOOP_VARIABLE name:i type:kotlin.Int [val] - CALL 'public final fun next (): kotlin.Int [operator] declared in kotlin.collections.IntIterator' type=kotlin.Int origin=FOR_LOOP_NEXT - $this: GET_VAR 'val tmp_1: kotlin.collections.IntIterator [val] declared in .test.localFunc' type=kotlin.collections.IntIterator origin=null + CALL 'public final fun next (): kotlin.Int declared in kotlin.collections.IntIterator' type=kotlin.Int origin=FOR_LOOP_NEXT + $this: GET_VAR 'val tmp_1: kotlin.collections.IntIterator declared in .test.localFunc' type=kotlin.collections.IntIterator origin=null BLOCK type=kotlin.Unit origin=null VAR name:s type:kotlin.String [val] - CALL 'public final fun buildString (builderAction: @[ExtensionFunctionType] kotlin.Function1): kotlin.String [inline] declared in kotlin.text.StringsKt' type=kotlin.String origin=null + CALL 'public final fun buildString (builderAction: @[ExtensionFunctionType] kotlin.Function1): kotlin.String declared in kotlin.text.StringsKt' type=kotlin.String origin=null builderAction: FUN_EXPR type=@[ExtensionFunctionType] kotlin.Function1 origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> ($receiver:java.lang.StringBuilder{ kotlin.text.StringBuilder }) returnType:kotlin.Unit $receiver: VALUE_PARAMETER name:$this$buildString type:java.lang.StringBuilder{ kotlin.text.StringBuilder } BLOCK_BODY BLOCK type=kotlin.Unit origin=FOR_LOOP VAR FOR_LOOP_ITERATOR name:tmp_2 type:kotlin.collections.IntIterator [val] - CALL 'public open fun iterator (): kotlin.collections.IntIterator [fake_override,operator] declared in kotlin.ranges.IntRange' type=kotlin.collections.IntIterator origin=FOR_LOOP_ITERATOR - $this: CALL 'public final fun rangeTo (other: kotlin.Int): kotlin.ranges.IntRange [operator] declared in kotlin.Int' type=kotlin.ranges.IntRange origin=RANGE + CALL 'public open fun iterator (): kotlin.collections.IntIterator declared in kotlin.ranges.IntRange' type=kotlin.collections.IntIterator origin=FOR_LOOP_ITERATOR + $this: CALL 'public final fun rangeTo (other: kotlin.Int): kotlin.ranges.IntRange declared in kotlin.Int' type=kotlin.ranges.IntRange origin=RANGE $this: CONST Int type=kotlin.Int value=0 - other: GET_VAR 'val y: kotlin.Int [val] declared in .test' type=kotlin.Int origin=null + other: GET_VAR 'val y: kotlin.Int declared in .test' type=kotlin.Int origin=null WHILE label=null origin=FOR_LOOP_INNER_WHILE - condition: CALL 'public abstract fun hasNext (): kotlin.Boolean [fake_override,operator] declared in kotlin.collections.IntIterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT - $this: GET_VAR 'val tmp_2: kotlin.collections.IntIterator [val] declared in .test.localFunc.' type=kotlin.collections.IntIterator origin=null + condition: CALL 'public abstract fun hasNext (): kotlin.Boolean declared in kotlin.collections.IntIterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT + $this: GET_VAR 'val tmp_2: kotlin.collections.IntIterator declared in .test.localFunc.' type=kotlin.collections.IntIterator origin=null body: BLOCK type=kotlin.Unit origin=FOR_LOOP_INNER_WHILE VAR FOR_LOOP_VARIABLE name:j type:kotlin.Int [val] - CALL 'public final fun next (): kotlin.Int [operator] declared in kotlin.collections.IntIterator' type=kotlin.Int origin=FOR_LOOP_NEXT - $this: GET_VAR 'val tmp_2: kotlin.collections.IntIterator [val] declared in .test.localFunc.' type=kotlin.collections.IntIterator origin=null + CALL 'public final fun next (): kotlin.Int declared in kotlin.collections.IntIterator' type=kotlin.Int origin=FOR_LOOP_NEXT + $this: GET_VAR 'val tmp_2: kotlin.collections.IntIterator declared in .test.localFunc.' type=kotlin.collections.IntIterator origin=null BLOCK type=kotlin.Unit origin=null TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit - CALL 'public final fun appendLine (value: kotlin.String?): java.lang.StringBuilder{ kotlin.text.StringBuilder } [inline] declared in kotlin.text.StringsKt' type=java.lang.StringBuilder{ kotlin.text.StringBuilder } origin=null + CALL 'public final fun appendLine (value: kotlin.String?): java.lang.StringBuilder{ kotlin.text.StringBuilder } declared in kotlin.text.StringsKt' type=java.lang.StringBuilder{ kotlin.text.StringBuilder } origin=null $receiver: GET_VAR '$this$buildString: java.lang.StringBuilder{ kotlin.text.StringBuilder } declared in .test.localFunc.' type=java.lang.StringBuilder{ kotlin.text.StringBuilder } origin=null value: STRING_CONCATENATION type=kotlin.String - CALL 'public final fun times (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=MUL - $this: GET_VAR 'val i: kotlin.Int [val] declared in .test.localFunc' type=kotlin.Int origin=null - other: GET_VAR 'val j: kotlin.Int [val] declared in .test.localFunc.' type=kotlin.Int origin=null + CALL 'public final fun times (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=MUL + $this: GET_VAR 'val i: kotlin.Int declared in .test.localFunc' type=kotlin.Int origin=null + other: GET_VAR 'val j: kotlin.Int declared in .test.localFunc.' type=kotlin.Int origin=null CALL 'public final fun takeString (s: kotlin.String): kotlin.Unit declared in ' type=kotlin.Unit origin=null - s: GET_VAR 'val s: kotlin.String [val] declared in .test.localFunc' type=kotlin.String origin=null + s: GET_VAR 'val s: kotlin.String declared in .test.localFunc' type=kotlin.String origin=null CALL 'local final fun localFunc (): kotlin.Unit declared in .test' type=kotlin.Unit origin=null FUN name:box visibility:public modality:FINAL <> () returnType:kotlin.String BLOCK_BODY diff --git a/compiler/testData/codegen/box/functions/delegatedPropertyWithMultipleOverriddens_generics.fir.ir.txt b/compiler/testData/codegen/box/functions/delegatedPropertyWithMultipleOverriddens_generics.fir.ir.txt index f1b180d9137..6833500b2e5 100644 --- a/compiler/testData/codegen/box/functions/delegatedPropertyWithMultipleOverriddens_generics.fir.ir.txt +++ b/compiler/testData/codegen/box/functions/delegatedPropertyWithMultipleOverriddens_generics.fir.ir.txt @@ -10,7 +10,7 @@ FILE fqName: fileName:/delegatedPropertyWithMultipleOverriddens_generics.k $this: VALUE_PARAMETER name: type:.MyCollection.MyCollection> 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -30,7 +30,7 @@ FILE fqName: fileName:/delegatedPropertyWithMultipleOverriddens_generics.k $this: VALUE_PARAMETER name: type:.MyList.MyList> PROPERTY name:bar visibility:public modality:ABSTRACT [val] overridden: - public abstract bar: E1 of .MyCollection [val] + public abstract bar: E1 of .MyCollection FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:ABSTRACT <> ($this:.MyList.MyList>) returnType:E2 of .MyList correspondingProperty: PROPERTY name:bar visibility:public modality:ABSTRACT [val] overridden: @@ -38,16 +38,16 @@ FILE fqName: fileName:/delegatedPropertyWithMultipleOverriddens_generics.k $this: VALUE_PARAMETER name: type:.MyList.MyList> 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 .MyCollection + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .MyCollection $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 .MyCollection + public open fun hashCode (): kotlin.Int declared in .MyCollection $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 .MyCollection + public open fun toString (): kotlin.String declared in .MyCollection $this: VALUE_PARAMETER name: type:kotlin.Any CLASS INTERFACE name:MyMutableCollection modality:ABSTRACT visibility:public superTypes:[.MyCollection.MyMutableCollection>] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.MyMutableCollection.MyMutableCollection> @@ -58,7 +58,7 @@ FILE fqName: fileName:/delegatedPropertyWithMultipleOverriddens_generics.k $this: VALUE_PARAMETER name: type:.MyCollection.MyCollection> PROPERTY FAKE_OVERRIDE name:bar visibility:public modality:ABSTRACT [fake_override,val] overridden: - public abstract bar: E1 of .MyCollection [val] + public abstract bar: E1 of .MyCollection FUN FAKE_OVERRIDE name: visibility:public modality:ABSTRACT <> ($this:.MyCollection.MyCollection>) returnType:E3 of .MyMutableCollection [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:bar visibility:public modality:ABSTRACT [fake_override,val] overridden: @@ -66,16 +66,16 @@ FILE fqName: fileName:/delegatedPropertyWithMultipleOverriddens_generics.k $this: VALUE_PARAMETER name: type:.MyCollection.MyCollection> 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 .MyCollection + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .MyCollection $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 .MyCollection + public open fun hashCode (): kotlin.Int declared in .MyCollection $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 .MyCollection + public open fun toString (): kotlin.String declared in .MyCollection $this: VALUE_PARAMETER name: type:kotlin.Any CLASS INTERFACE name:MyMutableList modality:ABSTRACT visibility:public superTypes:[.MyList.MyMutableList>; .MyMutableCollection.MyMutableList>] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.MyMutableList.MyMutableList> @@ -86,7 +86,7 @@ FILE fqName: fileName:/delegatedPropertyWithMultipleOverriddens_generics.k $this: VALUE_PARAMETER name: type:.MyList.MyList> PROPERTY FAKE_OVERRIDE name:bar visibility:public modality:ABSTRACT [fake_override,val] overridden: - public abstract bar: E2 of .MyList [val] + public abstract bar: E2 of .MyList FUN FAKE_OVERRIDE name: visibility:public modality:ABSTRACT <> ($this:.MyList.MyList>) returnType:E4 of .MyMutableList [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:bar visibility:public modality:ABSTRACT [fake_override,val] overridden: @@ -94,26 +94,26 @@ FILE fqName: fileName:/delegatedPropertyWithMultipleOverriddens_generics.k $this: VALUE_PARAMETER name: type:.MyList.MyList> 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 .MyList - public open fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .MyMutableCollection + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .MyList + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .MyMutableCollection $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 .MyList - public open fun hashCode (): kotlin.Int [fake_override] declared in .MyMutableCollection + public open fun hashCode (): kotlin.Int declared in .MyList + public open fun hashCode (): kotlin.Int declared in .MyMutableCollection $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 .MyList - public open fun toString (): kotlin.String [fake_override] declared in .MyMutableCollection + public open fun toString (): kotlin.String declared in .MyList + public open fun toString (): kotlin.String declared in .MyMutableCollection $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:MyAbstractCollection modality:ABSTRACT visibility:public superTypes:[.MyCollection.MyAbstractCollection>] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.MyAbstractCollection.MyAbstractCollection> TYPE_PARAMETER name:E5 index:0 variance:out superTypes:[kotlin.Any?] reified:false CONSTRUCTOR visibility:protected <> () returnType:.MyAbstractCollection.MyAbstractCollection> [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:MyAbstractCollection modality:ABSTRACT visibility:public superTypes:[.MyCollection.MyAbstractCollection>]' FUN name:foo visibility:public modality:ABSTRACT <> ($this:.MyAbstractCollection.MyAbstractCollection>) returnType:E5 of .MyAbstractCollection overridden: @@ -121,7 +121,7 @@ FILE fqName: fileName:/delegatedPropertyWithMultipleOverriddens_generics.k $this: VALUE_PARAMETER name: type:.MyAbstractCollection.MyAbstractCollection> PROPERTY name:bar visibility:public modality:ABSTRACT [val] overridden: - public abstract bar: E1 of .MyCollection [val] + public abstract bar: E1 of .MyCollection FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:ABSTRACT <> ($this:.MyAbstractCollection.MyAbstractCollection>) returnType:E5 of .MyAbstractCollection correspondingProperty: PROPERTY name:bar visibility:public modality:ABSTRACT [val] overridden: @@ -129,28 +129,28 @@ FILE fqName: fileName:/delegatedPropertyWithMultipleOverriddens_generics.k $this: VALUE_PARAMETER name: type:.MyAbstractCollection.MyAbstractCollection> 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 .MyCollection + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .MyCollection $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 .MyCollection + public open fun hashCode (): kotlin.Int declared in .MyCollection $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 .MyCollection + public open fun toString (): kotlin.String declared in .MyCollection $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:MyArrayList modality:FINAL visibility:public superTypes:[.MyMutableList.MyArrayList>; .MyAbstractCollection.MyArrayList>] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.MyArrayList.MyArrayList> TYPE_PARAMETER name:E6 index:0 variance: superTypes:[kotlin.Any?] reified:false CONSTRUCTOR visibility:public <> () returnType:.MyArrayList.MyArrayList> [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'protected constructor () [primary] declared in .MyAbstractCollection' + DELEGATING_CONSTRUCTOR_CALL 'protected constructor () declared in .MyAbstractCollection' : E6 of .MyArrayList INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:MyArrayList modality:FINAL visibility:public superTypes:[.MyMutableList.MyArrayList>; .MyAbstractCollection.MyArrayList>]' FUN name:foo visibility:public modality:OPEN <> ($this:.MyArrayList.MyArrayList>) returnType:E6 of .MyArrayList overridden: - public abstract fun foo (): E4 of .MyMutableList [fake_override] declared in .MyMutableList + public abstract fun foo (): E4 of .MyMutableList declared in .MyMutableList public abstract fun foo (): E5 of .MyAbstractCollection declared in .MyAbstractCollection $this: VALUE_PARAMETER name: type:.MyArrayList.MyArrayList> BLOCK_BODY @@ -159,8 +159,8 @@ FILE fqName: fileName:/delegatedPropertyWithMultipleOverriddens_generics.k CONST String type=kotlin.String value="O" PROPERTY name:bar visibility:public modality:OPEN [val] overridden: - public abstract bar: E4 of .MyMutableList [fake_override,val] - public abstract bar: E5 of .MyAbstractCollection [val] + public abstract bar: E4 of .MyMutableList + public abstract bar: E5 of .MyAbstractCollection FIELD PROPERTY_BACKING_FIELD name:bar type:E6 of .MyArrayList visibility:private [final] EXPRESSION_BODY TYPE_OP type=E6 of .MyArrayList origin=CAST typeOperand=E6 of .MyArrayList @@ -168,7 +168,7 @@ FILE fqName: fileName:/delegatedPropertyWithMultipleOverriddens_generics.k FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:OPEN <> ($this:.MyArrayList.MyArrayList>) returnType:E6 of .MyArrayList correspondingProperty: PROPERTY name:bar visibility:public modality:OPEN [val] overridden: - public abstract fun (): E4 of .MyMutableList [fake_override] declared in .MyMutableList + public abstract fun (): E4 of .MyMutableList declared in .MyMutableList public abstract fun (): E5 of .MyAbstractCollection declared in .MyAbstractCollection $this: VALUE_PARAMETER name: type:.MyArrayList.MyArrayList> BLOCK_BODY @@ -177,29 +177,29 @@ FILE fqName: fileName:/delegatedPropertyWithMultipleOverriddens_generics.k receiver: GET_VAR ': .MyArrayList.MyArrayList> declared in .MyArrayList.' type=.MyArrayList.MyArrayList> 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 [fake_override,operator] declared in .MyMutableList - public open fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .MyAbstractCollection + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .MyMutableList + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .MyAbstractCollection $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 .MyMutableList - public open fun hashCode (): kotlin.Int [fake_override] declared in .MyAbstractCollection + public open fun hashCode (): kotlin.Int declared in .MyMutableList + public open fun hashCode (): kotlin.Int declared in .MyAbstractCollection $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 .MyMutableList - public open fun toString (): kotlin.String [fake_override] declared in .MyAbstractCollection + public open fun toString (): kotlin.String declared in .MyMutableList + public open fun toString (): kotlin.String declared in .MyAbstractCollection $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:MC modality:FINAL visibility:public superTypes:[.MyMutableCollection] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.MC CONSTRUCTOR visibility:public <> () returnType:.MC [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:MC modality:FINAL visibility:public superTypes:[.MyMutableCollection]' FUN DELEGATED_MEMBER name:foo visibility:public modality:OPEN <> ($this:.MC) returnType:kotlin.String overridden: - public abstract fun foo (): E3 of .MyMutableCollection [fake_override] declared in .MyMutableCollection + public abstract fun foo (): E3 of .MyMutableCollection declared in .MyMutableCollection $this: VALUE_PARAMETER name: type:.MC BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun foo (): kotlin.String declared in .MC' @@ -208,11 +208,11 @@ FILE fqName: fileName:/delegatedPropertyWithMultipleOverriddens_generics.k receiver: GET_VAR ': .MC declared in .MC.foo' type=.MC origin=null PROPERTY DELEGATED_MEMBER name:bar visibility:public modality:OPEN [val] overridden: - public abstract bar: E3 of .MyMutableCollection [fake_override,val] + public abstract bar: E3 of .MyMutableCollection FUN DELEGATED_MEMBER name: visibility:public modality:OPEN <> ($this:.MC) returnType:kotlin.String correspondingProperty: PROPERTY DELEGATED_MEMBER name:bar visibility:public modality:OPEN [val] overridden: - public abstract fun (): E3 of .MyMutableCollection [fake_override] declared in .MyMutableCollection + public abstract fun (): E3 of .MyMutableCollection declared in .MyMutableCollection $this: VALUE_PARAMETER name: type:.MC BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun (): kotlin.String declared in .MC' @@ -221,28 +221,28 @@ FILE fqName: fileName:/delegatedPropertyWithMultipleOverriddens_generics.k receiver: GET_VAR ': .MC declared in .MC.' type=.MC origin=null FIELD DELEGATE name:$$delegate_0 type:.MyArrayList visibility:private [final] EXPRESSION_BODY - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .MyArrayList' type=.MyArrayList origin=null + CONSTRUCTOR_CALL 'public constructor () declared in .MyArrayList' type=.MyArrayList origin=null : kotlin.String 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 .MyMutableCollection + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .MyMutableCollection $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 .MyMutableCollection + public open fun hashCode (): kotlin.Int declared in .MyMutableCollection $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 .MyMutableCollection + public open fun toString (): kotlin.String declared in .MyMutableCollection $this: VALUE_PARAMETER name: type:kotlin.Any FUN name:box visibility:public modality:FINAL <> () returnType:kotlin.String BLOCK_BODY VAR name:x type:.MC [val] - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .MC' type=.MC origin=null + CONSTRUCTOR_CALL 'public constructor () declared in .MC' type=.MC origin=null RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' - CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS + CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS $this: CALL 'public open fun foo (): kotlin.String declared in .MC' type=kotlin.String origin=null - $this: GET_VAR 'val x: .MC [val] declared in .box' type=.MC origin=null + $this: GET_VAR 'val x: .MC declared in .box' type=.MC origin=null other: CALL 'public open fun (): kotlin.String declared in .MC' type=kotlin.String origin=GET_PROPERTY - $this: GET_VAR 'val x: .MC [val] declared in .box' type=.MC origin=null + $this: GET_VAR 'val x: .MC declared in .box' type=.MC origin=null diff --git a/compiler/testData/codegen/box/functions/delegatedPropertyWithMultipleOverriddens_generics.ir.txt b/compiler/testData/codegen/box/functions/delegatedPropertyWithMultipleOverriddens_generics.ir.txt index b04c654f4f3..41d3184f077 100644 --- a/compiler/testData/codegen/box/functions/delegatedPropertyWithMultipleOverriddens_generics.ir.txt +++ b/compiler/testData/codegen/box/functions/delegatedPropertyWithMultipleOverriddens_generics.ir.txt @@ -10,7 +10,7 @@ FILE fqName: fileName:/delegatedPropertyWithMultipleOverriddens_generics.k $this: VALUE_PARAMETER name: type:.MyCollection.MyCollection> 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -30,7 +30,7 @@ FILE fqName: fileName:/delegatedPropertyWithMultipleOverriddens_generics.k $this: VALUE_PARAMETER name: type:.MyList.MyList> PROPERTY name:bar visibility:public modality:ABSTRACT [val] overridden: - public abstract bar: E1 of .MyCollection [val] + public abstract bar: E1 of .MyCollection FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:ABSTRACT <> ($this:.MyList.MyList>) returnType:E2 of .MyList correspondingProperty: PROPERTY name:bar visibility:public modality:ABSTRACT [val] overridden: @@ -38,16 +38,16 @@ FILE fqName: fileName:/delegatedPropertyWithMultipleOverriddens_generics.k $this: VALUE_PARAMETER name: type:.MyList.MyList> 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 .MyCollection + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .MyCollection $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 .MyCollection + public open fun hashCode (): kotlin.Int declared in .MyCollection $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 .MyCollection + public open fun toString (): kotlin.String declared in .MyCollection $this: VALUE_PARAMETER name: type:kotlin.Any CLASS INTERFACE name:MyMutableCollection modality:ABSTRACT visibility:public superTypes:[.MyCollection.MyMutableCollection>] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.MyMutableCollection.MyMutableCollection> @@ -58,7 +58,7 @@ FILE fqName: fileName:/delegatedPropertyWithMultipleOverriddens_generics.k $this: VALUE_PARAMETER name: type:.MyCollection.MyMutableCollection> PROPERTY FAKE_OVERRIDE name:bar visibility:public modality:ABSTRACT [fake_override,val] overridden: - public abstract bar: E1 of .MyCollection [val] + public abstract bar: E1 of .MyCollection FUN FAKE_OVERRIDE name: visibility:public modality:ABSTRACT <> ($this:.MyCollection.MyMutableCollection>) returnType:E3 of .MyMutableCollection [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:bar visibility:public modality:ABSTRACT [fake_override,val] overridden: @@ -66,16 +66,16 @@ FILE fqName: fileName:/delegatedPropertyWithMultipleOverriddens_generics.k $this: VALUE_PARAMETER name: type:.MyCollection.MyMutableCollection> 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 .MyCollection + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .MyCollection $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 .MyCollection + public open fun hashCode (): kotlin.Int declared in .MyCollection $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 .MyCollection + public open fun toString (): kotlin.String declared in .MyCollection $this: VALUE_PARAMETER name: type:kotlin.Any CLASS INTERFACE name:MyMutableList modality:ABSTRACT visibility:public superTypes:[.MyList.MyMutableList>; .MyMutableCollection.MyMutableList>] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.MyMutableList.MyMutableList> @@ -83,40 +83,40 @@ FILE fqName: fileName:/delegatedPropertyWithMultipleOverriddens_generics.k FUN FAKE_OVERRIDE name:foo visibility:public modality:ABSTRACT <> ($this:.MyList.MyMutableList>) returnType:E4 of .MyMutableList [fake_override] overridden: public abstract fun foo (): E2 of .MyList declared in .MyList - public abstract fun foo (): E3 of .MyMutableCollection [fake_override] declared in .MyMutableCollection + public abstract fun foo (): E3 of .MyMutableCollection declared in .MyMutableCollection $this: VALUE_PARAMETER name: type:.MyList.MyMutableList> PROPERTY FAKE_OVERRIDE name:bar visibility:public modality:ABSTRACT [fake_override,val] overridden: - public abstract bar: E2 of .MyList [val] - public abstract bar: E3 of .MyMutableCollection [fake_override,val] + public abstract bar: E2 of .MyList + public abstract bar: E3 of .MyMutableCollection FUN FAKE_OVERRIDE name: visibility:public modality:ABSTRACT <> ($this:.MyList.MyMutableList>) returnType:E4 of .MyMutableList [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:bar visibility:public modality:ABSTRACT [fake_override,val] overridden: public abstract fun (): E2 of .MyList declared in .MyList - public abstract fun (): E3 of .MyMutableCollection [fake_override] declared in .MyMutableCollection + public abstract fun (): E3 of .MyMutableCollection declared in .MyMutableCollection $this: VALUE_PARAMETER name: type:.MyList.MyMutableList> 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 .MyList - public open fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .MyMutableCollection + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .MyList + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .MyMutableCollection $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 .MyList - public open fun hashCode (): kotlin.Int [fake_override] declared in .MyMutableCollection + public open fun hashCode (): kotlin.Int declared in .MyList + public open fun hashCode (): kotlin.Int declared in .MyMutableCollection $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 .MyList - public open fun toString (): kotlin.String [fake_override] declared in .MyMutableCollection + public open fun toString (): kotlin.String declared in .MyList + public open fun toString (): kotlin.String declared in .MyMutableCollection $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:MyAbstractCollection modality:ABSTRACT visibility:public superTypes:[.MyCollection.MyAbstractCollection>] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.MyAbstractCollection.MyAbstractCollection> TYPE_PARAMETER name:E5 index:0 variance:out superTypes:[kotlin.Any?] reified:false CONSTRUCTOR visibility:protected <> () returnType:.MyAbstractCollection.MyAbstractCollection> [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:MyAbstractCollection modality:ABSTRACT visibility:public superTypes:[.MyCollection.MyAbstractCollection>]' FUN name:foo visibility:public modality:ABSTRACT <> ($this:.MyAbstractCollection.MyAbstractCollection>) returnType:E5 of .MyAbstractCollection overridden: @@ -124,7 +124,7 @@ FILE fqName: fileName:/delegatedPropertyWithMultipleOverriddens_generics.k $this: VALUE_PARAMETER name: type:.MyAbstractCollection.MyAbstractCollection> PROPERTY name:bar visibility:public modality:ABSTRACT [val] overridden: - public abstract bar: E1 of .MyCollection [val] + public abstract bar: E1 of .MyCollection FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:ABSTRACT <> ($this:.MyAbstractCollection.MyAbstractCollection>) returnType:E5 of .MyAbstractCollection correspondingProperty: PROPERTY name:bar visibility:public modality:ABSTRACT [val] overridden: @@ -132,28 +132,28 @@ FILE fqName: fileName:/delegatedPropertyWithMultipleOverriddens_generics.k $this: VALUE_PARAMETER name: type:.MyAbstractCollection.MyAbstractCollection> 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 .MyCollection + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .MyCollection $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 .MyCollection + public open fun hashCode (): kotlin.Int declared in .MyCollection $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 .MyCollection + public open fun toString (): kotlin.String declared in .MyCollection $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:MyArrayList modality:FINAL visibility:public superTypes:[.MyMutableList.MyArrayList>; .MyAbstractCollection.MyArrayList>] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.MyArrayList.MyArrayList> TYPE_PARAMETER name:E6 index:0 variance: superTypes:[kotlin.Any?] reified:false CONSTRUCTOR visibility:public <> () returnType:.MyArrayList.MyArrayList> [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'protected constructor () [primary] declared in .MyAbstractCollection' + DELEGATING_CONSTRUCTOR_CALL 'protected constructor () declared in .MyAbstractCollection' : E6 of .MyArrayList INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:MyArrayList modality:FINAL visibility:public superTypes:[.MyMutableList.MyArrayList>; .MyAbstractCollection.MyArrayList>]' FUN name:foo visibility:public modality:OPEN <> ($this:.MyArrayList.MyArrayList>) returnType:E6 of .MyArrayList overridden: - public abstract fun foo (): E4 of .MyMutableList [fake_override] declared in .MyMutableList + public abstract fun foo (): E4 of .MyMutableList declared in .MyMutableList public abstract fun foo (): E5 of .MyAbstractCollection declared in .MyAbstractCollection $this: VALUE_PARAMETER name: type:.MyArrayList.MyArrayList> BLOCK_BODY @@ -162,8 +162,8 @@ FILE fqName: fileName:/delegatedPropertyWithMultipleOverriddens_generics.k CONST String type=kotlin.String value="O" PROPERTY name:bar visibility:public modality:OPEN [val] overridden: - public abstract bar: E4 of .MyMutableList [fake_override,val] - public abstract bar: E5 of .MyAbstractCollection [val] + public abstract bar: E4 of .MyMutableList + public abstract bar: E5 of .MyAbstractCollection FIELD PROPERTY_BACKING_FIELD name:bar type:E6 of .MyArrayList visibility:private [final] EXPRESSION_BODY TYPE_OP type=E6 of .MyArrayList origin=CAST typeOperand=E6 of .MyArrayList @@ -171,7 +171,7 @@ FILE fqName: fileName:/delegatedPropertyWithMultipleOverriddens_generics.k FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:OPEN <> ($this:.MyArrayList.MyArrayList>) returnType:E6 of .MyArrayList correspondingProperty: PROPERTY name:bar visibility:public modality:OPEN [val] overridden: - public abstract fun (): E4 of .MyMutableList [fake_override] declared in .MyMutableList + public abstract fun (): E4 of .MyMutableList declared in .MyMutableList public abstract fun (): E5 of .MyAbstractCollection declared in .MyAbstractCollection $this: VALUE_PARAMETER name: type:.MyArrayList.MyArrayList> BLOCK_BODY @@ -180,37 +180,37 @@ FILE fqName: fileName:/delegatedPropertyWithMultipleOverriddens_generics.k receiver: GET_VAR ': .MyArrayList.MyArrayList> declared in .MyArrayList.' type=.MyArrayList.MyArrayList> 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 [fake_override,operator] declared in .MyMutableList - public open fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .MyAbstractCollection + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .MyMutableList + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .MyAbstractCollection $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 .MyMutableList - public open fun hashCode (): kotlin.Int [fake_override] declared in .MyAbstractCollection + public open fun hashCode (): kotlin.Int declared in .MyMutableList + public open fun hashCode (): kotlin.Int declared in .MyAbstractCollection $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 .MyMutableList - public open fun toString (): kotlin.String [fake_override] declared in .MyAbstractCollection + public open fun toString (): kotlin.String declared in .MyMutableList + public open fun toString (): kotlin.String declared in .MyAbstractCollection $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:MC modality:FINAL visibility:public superTypes:[.MyMutableCollection] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.MC CONSTRUCTOR visibility:public <> () returnType:.MC [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:MC modality:FINAL visibility:public superTypes:[.MyMutableCollection]' FIELD DELEGATE name:$$delegate_0 type:.MyArrayList visibility:private [final] EXPRESSION_BODY - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .MyArrayList' type=.MyArrayList origin=null + CONSTRUCTOR_CALL 'public constructor () declared in .MyArrayList' type=.MyArrayList origin=null : kotlin.String PROPERTY DELEGATED_MEMBER name:bar visibility:public modality:OPEN [val] overridden: - public abstract bar: E3 of .MyMutableCollection [fake_override,val] + public abstract bar: E3 of .MyMutableCollection FUN DELEGATED_MEMBER name: visibility:public modality:OPEN <> ($this:.MC) returnType:kotlin.String correspondingProperty: PROPERTY DELEGATED_MEMBER name:bar visibility:public modality:OPEN [val] overridden: - public abstract fun (): E3 of .MyMutableCollection [fake_override] declared in .MyMutableCollection + public abstract fun (): E3 of .MyMutableCollection declared in .MyMutableCollection $this: VALUE_PARAMETER name: type:.MC BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun (): kotlin.String declared in .MC' @@ -219,7 +219,7 @@ FILE fqName: fileName:/delegatedPropertyWithMultipleOverriddens_generics.k receiver: GET_VAR ': .MC declared in .MC.' type=.MC origin=null FUN DELEGATED_MEMBER name:foo visibility:public modality:OPEN <> ($this:.MC) returnType:kotlin.String overridden: - public abstract fun foo (): E3 of .MyMutableCollection [fake_override] declared in .MyMutableCollection + public abstract fun foo (): E3 of .MyMutableCollection declared in .MyMutableCollection $this: VALUE_PARAMETER name: type:.MC BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun foo (): kotlin.String declared in .MC' @@ -228,24 +228,24 @@ FILE fqName: fileName:/delegatedPropertyWithMultipleOverriddens_generics.k receiver: GET_VAR ': .MC declared in .MC.foo' type=.MC 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 [fake_override,operator] declared in .MyMutableCollection + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .MyMutableCollection $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 .MyMutableCollection + public open fun hashCode (): kotlin.Int declared in .MyMutableCollection $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 .MyMutableCollection + public open fun toString (): kotlin.String declared in .MyMutableCollection $this: VALUE_PARAMETER name: type:kotlin.Any FUN name:box visibility:public modality:FINAL <> () returnType:kotlin.String BLOCK_BODY VAR name:x type:.MC [val] - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .MC' type=.MC origin=null + CONSTRUCTOR_CALL 'public constructor () declared in .MC' type=.MC origin=null RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' - CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS + CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS $this: CALL 'public open fun foo (): kotlin.String declared in .MC' type=kotlin.String origin=null - $this: GET_VAR 'val x: .MC [val] declared in .box' type=.MC origin=null + $this: GET_VAR 'val x: .MC declared in .box' type=.MC origin=null other: CALL 'public open fun (): kotlin.String declared in .MC' type=kotlin.String origin=GET_PROPERTY - $this: GET_VAR 'val x: .MC [val] declared in .box' type=.MC origin=null + $this: GET_VAR 'val x: .MC declared in .box' type=.MC origin=null diff --git a/compiler/testData/codegen/box/functions/delegatedPropertyWithMultipleOverriddens_noGenerics.fir.ir.txt b/compiler/testData/codegen/box/functions/delegatedPropertyWithMultipleOverriddens_noGenerics.fir.ir.txt index 9f73e6309b9..2975c3fdbed 100644 --- a/compiler/testData/codegen/box/functions/delegatedPropertyWithMultipleOverriddens_noGenerics.fir.ir.txt +++ b/compiler/testData/codegen/box/functions/delegatedPropertyWithMultipleOverriddens_noGenerics.fir.ir.txt @@ -9,7 +9,7 @@ FILE fqName: fileName:/delegatedPropertyWithMultipleOverriddens_noGenerics $this: VALUE_PARAMETER name: type:.MyCollection 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -28,7 +28,7 @@ FILE fqName: fileName:/delegatedPropertyWithMultipleOverriddens_noGenerics $this: VALUE_PARAMETER name: type:.MyList PROPERTY name:bar visibility:public modality:ABSTRACT [val] overridden: - public abstract bar: kotlin.String [val] + public abstract bar: kotlin.String FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:ABSTRACT <> ($this:.MyList) returnType:kotlin.String correspondingProperty: PROPERTY name:bar visibility:public modality:ABSTRACT [val] overridden: @@ -36,16 +36,16 @@ FILE fqName: fileName:/delegatedPropertyWithMultipleOverriddens_noGenerics $this: VALUE_PARAMETER name: type:.MyList 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 .MyCollection + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .MyCollection $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 .MyCollection + public open fun hashCode (): kotlin.Int declared in .MyCollection $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 .MyCollection + public open fun toString (): kotlin.String declared in .MyCollection $this: VALUE_PARAMETER name: type:kotlin.Any CLASS INTERFACE name:MyMutableCollection modality:ABSTRACT visibility:public superTypes:[.MyCollection] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.MyMutableCollection @@ -55,7 +55,7 @@ FILE fqName: fileName:/delegatedPropertyWithMultipleOverriddens_noGenerics $this: VALUE_PARAMETER name: type:.MyCollection PROPERTY FAKE_OVERRIDE name:bar visibility:public modality:ABSTRACT [fake_override,val] overridden: - public abstract bar: kotlin.String [val] + public abstract bar: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:ABSTRACT <> ($this:.MyCollection) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:bar visibility:public modality:ABSTRACT [fake_override,val] overridden: @@ -63,16 +63,16 @@ FILE fqName: fileName:/delegatedPropertyWithMultipleOverriddens_noGenerics $this: VALUE_PARAMETER name: type:.MyCollection 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 .MyCollection + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .MyCollection $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 .MyCollection + public open fun hashCode (): kotlin.Int declared in .MyCollection $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 .MyCollection + public open fun toString (): kotlin.String declared in .MyCollection $this: VALUE_PARAMETER name: type:kotlin.Any CLASS INTERFACE name:MyMutableList modality:ABSTRACT visibility:public superTypes:[.MyList; .MyMutableCollection] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.MyMutableList @@ -82,7 +82,7 @@ FILE fqName: fileName:/delegatedPropertyWithMultipleOverriddens_noGenerics $this: VALUE_PARAMETER name: type:.MyList PROPERTY FAKE_OVERRIDE name:bar visibility:public modality:ABSTRACT [fake_override,val] overridden: - public abstract bar: kotlin.String [val] + public abstract bar: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:ABSTRACT <> ($this:.MyList) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:bar visibility:public modality:ABSTRACT [fake_override,val] overridden: @@ -90,25 +90,25 @@ FILE fqName: fileName:/delegatedPropertyWithMultipleOverriddens_noGenerics $this: VALUE_PARAMETER name: type:.MyList 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 .MyList - public open fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .MyMutableCollection + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .MyList + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .MyMutableCollection $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 .MyList - public open fun hashCode (): kotlin.Int [fake_override] declared in .MyMutableCollection + public open fun hashCode (): kotlin.Int declared in .MyList + public open fun hashCode (): kotlin.Int declared in .MyMutableCollection $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 .MyList - public open fun toString (): kotlin.String [fake_override] declared in .MyMutableCollection + public open fun toString (): kotlin.String declared in .MyList + public open fun toString (): kotlin.String declared in .MyMutableCollection $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:MyAbstractCollection modality:ABSTRACT visibility:public superTypes:[.MyCollection] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.MyAbstractCollection CONSTRUCTOR visibility:protected <> () returnType:.MyAbstractCollection [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:MyAbstractCollection modality:ABSTRACT visibility:public superTypes:[.MyCollection]' FUN name:foo visibility:public modality:ABSTRACT <> ($this:.MyAbstractCollection) returnType:kotlin.String overridden: @@ -116,7 +116,7 @@ FILE fqName: fileName:/delegatedPropertyWithMultipleOverriddens_noGenerics $this: VALUE_PARAMETER name: type:.MyAbstractCollection PROPERTY name:bar visibility:public modality:ABSTRACT [val] overridden: - public abstract bar: kotlin.String [val] + public abstract bar: kotlin.String FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:ABSTRACT <> ($this:.MyAbstractCollection) returnType:kotlin.String correspondingProperty: PROPERTY name:bar visibility:public modality:ABSTRACT [val] overridden: @@ -124,26 +124,26 @@ FILE fqName: fileName:/delegatedPropertyWithMultipleOverriddens_noGenerics $this: VALUE_PARAMETER name: type:.MyAbstractCollection 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 .MyCollection + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .MyCollection $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 .MyCollection + public open fun hashCode (): kotlin.Int declared in .MyCollection $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 .MyCollection + public open fun toString (): kotlin.String declared in .MyCollection $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:MyArrayList modality:FINAL visibility:public superTypes:[.MyMutableList; .MyAbstractCollection] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.MyArrayList CONSTRUCTOR visibility:public <> () returnType:.MyArrayList [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'protected constructor () [primary] declared in .MyAbstractCollection' + DELEGATING_CONSTRUCTOR_CALL 'protected constructor () declared in .MyAbstractCollection' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:MyArrayList modality:FINAL visibility:public superTypes:[.MyMutableList; .MyAbstractCollection]' FUN name:foo visibility:public modality:OPEN <> ($this:.MyArrayList) returnType:kotlin.String overridden: - public abstract fun foo (): kotlin.String [fake_override] declared in .MyMutableList + public abstract fun foo (): kotlin.String declared in .MyMutableList public abstract fun foo (): kotlin.String declared in .MyAbstractCollection $this: VALUE_PARAMETER name: type:.MyArrayList BLOCK_BODY @@ -151,15 +151,15 @@ FILE fqName: fileName:/delegatedPropertyWithMultipleOverriddens_noGenerics CONST String type=kotlin.String value="O" PROPERTY name:bar visibility:public modality:OPEN [val] overridden: - public abstract bar: kotlin.String [fake_override,val] - public abstract bar: kotlin.String [val] + public abstract bar: kotlin.String + public abstract bar: kotlin.String FIELD PROPERTY_BACKING_FIELD name:bar type:kotlin.String visibility:private [final] EXPRESSION_BODY CONST String type=kotlin.String value="K" FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:OPEN <> ($this:.MyArrayList) returnType:kotlin.String correspondingProperty: PROPERTY name:bar visibility:public modality:OPEN [val] overridden: - public abstract fun (): kotlin.String [fake_override] declared in .MyMutableList + public abstract fun (): kotlin.String declared in .MyMutableList public abstract fun (): kotlin.String declared in .MyAbstractCollection $this: VALUE_PARAMETER name: type:.MyArrayList BLOCK_BODY @@ -168,29 +168,29 @@ FILE fqName: fileName:/delegatedPropertyWithMultipleOverriddens_noGenerics receiver: GET_VAR ': .MyArrayList declared in .MyArrayList.' type=.MyArrayList 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 [fake_override,operator] declared in .MyMutableList - public open fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .MyAbstractCollection + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .MyMutableList + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .MyAbstractCollection $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 .MyMutableList - public open fun hashCode (): kotlin.Int [fake_override] declared in .MyAbstractCollection + public open fun hashCode (): kotlin.Int declared in .MyMutableList + public open fun hashCode (): kotlin.Int declared in .MyAbstractCollection $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 .MyMutableList - public open fun toString (): kotlin.String [fake_override] declared in .MyAbstractCollection + public open fun toString (): kotlin.String declared in .MyMutableList + public open fun toString (): kotlin.String declared in .MyAbstractCollection $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:MC modality:FINAL visibility:public superTypes:[.MyMutableCollection] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.MC CONSTRUCTOR visibility:public <> () returnType:.MC [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:MC modality:FINAL visibility:public superTypes:[.MyMutableCollection]' FUN DELEGATED_MEMBER name:foo visibility:public modality:OPEN <> ($this:.MC) returnType:kotlin.String overridden: - public abstract fun foo (): kotlin.String [fake_override] declared in .MyMutableCollection + public abstract fun foo (): kotlin.String declared in .MyMutableCollection $this: VALUE_PARAMETER name: type:.MC BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun foo (): kotlin.String declared in .MC' @@ -199,11 +199,11 @@ FILE fqName: fileName:/delegatedPropertyWithMultipleOverriddens_noGenerics receiver: GET_VAR ': .MC declared in .MC.foo' type=.MC origin=null PROPERTY DELEGATED_MEMBER name:bar visibility:public modality:OPEN [val] overridden: - public abstract bar: kotlin.String [fake_override,val] + public abstract bar: kotlin.String FUN DELEGATED_MEMBER name: visibility:public modality:OPEN <> ($this:.MC) returnType:kotlin.String correspondingProperty: PROPERTY DELEGATED_MEMBER name:bar visibility:public modality:OPEN [val] overridden: - public abstract fun (): kotlin.String [fake_override] declared in .MyMutableCollection + public abstract fun (): kotlin.String declared in .MyMutableCollection $this: VALUE_PARAMETER name: type:.MC BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun (): kotlin.String declared in .MC' @@ -212,27 +212,27 @@ FILE fqName: fileName:/delegatedPropertyWithMultipleOverriddens_noGenerics receiver: GET_VAR ': .MC declared in .MC.' type=.MC origin=null FIELD DELEGATE name:$$delegate_0 type:.MyArrayList visibility:private [final] EXPRESSION_BODY - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .MyArrayList' type=.MyArrayList origin=null + CONSTRUCTOR_CALL 'public constructor () declared in .MyArrayList' type=.MyArrayList 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 [fake_override,operator] declared in .MyMutableCollection + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .MyMutableCollection $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 .MyMutableCollection + public open fun hashCode (): kotlin.Int declared in .MyMutableCollection $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 .MyMutableCollection + public open fun toString (): kotlin.String declared in .MyMutableCollection $this: VALUE_PARAMETER name: type:kotlin.Any FUN name:box visibility:public modality:FINAL <> () returnType:kotlin.String BLOCK_BODY VAR name:x type:.MC [val] - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .MC' type=.MC origin=null + CONSTRUCTOR_CALL 'public constructor () declared in .MC' type=.MC origin=null RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' - CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS + CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS $this: CALL 'public open fun foo (): kotlin.String declared in .MC' type=kotlin.String origin=null - $this: GET_VAR 'val x: .MC [val] declared in .box' type=.MC origin=null + $this: GET_VAR 'val x: .MC declared in .box' type=.MC origin=null other: CALL 'public open fun (): kotlin.String declared in .MC' type=kotlin.String origin=GET_PROPERTY - $this: GET_VAR 'val x: .MC [val] declared in .box' type=.MC origin=null + $this: GET_VAR 'val x: .MC declared in .box' type=.MC origin=null diff --git a/compiler/testData/codegen/box/functions/delegatedPropertyWithMultipleOverriddens_noGenerics.ir.txt b/compiler/testData/codegen/box/functions/delegatedPropertyWithMultipleOverriddens_noGenerics.ir.txt index 3c1f741d1ff..24f3229b69c 100644 --- a/compiler/testData/codegen/box/functions/delegatedPropertyWithMultipleOverriddens_noGenerics.ir.txt +++ b/compiler/testData/codegen/box/functions/delegatedPropertyWithMultipleOverriddens_noGenerics.ir.txt @@ -9,7 +9,7 @@ FILE fqName: fileName:/delegatedPropertyWithMultipleOverriddens_noGenerics $this: VALUE_PARAMETER name: type:.MyCollection 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -28,7 +28,7 @@ FILE fqName: fileName:/delegatedPropertyWithMultipleOverriddens_noGenerics $this: VALUE_PARAMETER name: type:.MyList PROPERTY name:bar visibility:public modality:ABSTRACT [val] overridden: - public abstract bar: kotlin.String [val] + public abstract bar: kotlin.String FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:ABSTRACT <> ($this:.MyList) returnType:kotlin.String correspondingProperty: PROPERTY name:bar visibility:public modality:ABSTRACT [val] overridden: @@ -36,16 +36,16 @@ FILE fqName: fileName:/delegatedPropertyWithMultipleOverriddens_noGenerics $this: VALUE_PARAMETER name: type:.MyList 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 .MyCollection + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .MyCollection $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 .MyCollection + public open fun hashCode (): kotlin.Int declared in .MyCollection $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 .MyCollection + public open fun toString (): kotlin.String declared in .MyCollection $this: VALUE_PARAMETER name: type:kotlin.Any CLASS INTERFACE name:MyMutableCollection modality:ABSTRACT visibility:public superTypes:[.MyCollection] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.MyMutableCollection @@ -55,7 +55,7 @@ FILE fqName: fileName:/delegatedPropertyWithMultipleOverriddens_noGenerics $this: VALUE_PARAMETER name: type:.MyCollection PROPERTY FAKE_OVERRIDE name:bar visibility:public modality:ABSTRACT [fake_override,val] overridden: - public abstract bar: kotlin.String [val] + public abstract bar: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:ABSTRACT <> ($this:.MyCollection) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:bar visibility:public modality:ABSTRACT [fake_override,val] overridden: @@ -63,55 +63,55 @@ FILE fqName: fileName:/delegatedPropertyWithMultipleOverriddens_noGenerics $this: VALUE_PARAMETER name: type:.MyCollection 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 .MyCollection + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .MyCollection $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 .MyCollection + public open fun hashCode (): kotlin.Int declared in .MyCollection $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 .MyCollection + public open fun toString (): kotlin.String declared in .MyCollection $this: VALUE_PARAMETER name: type:kotlin.Any CLASS INTERFACE name:MyMutableList modality:ABSTRACT visibility:public superTypes:[.MyList; .MyMutableCollection] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.MyMutableList FUN FAKE_OVERRIDE name:foo visibility:public modality:ABSTRACT <> ($this:.MyList) returnType:kotlin.String [fake_override] overridden: public abstract fun foo (): kotlin.String declared in .MyList - public abstract fun foo (): kotlin.String [fake_override] declared in .MyMutableCollection + public abstract fun foo (): kotlin.String declared in .MyMutableCollection $this: VALUE_PARAMETER name: type:.MyList PROPERTY FAKE_OVERRIDE name:bar visibility:public modality:ABSTRACT [fake_override,val] overridden: - public abstract bar: kotlin.String [val] - public abstract bar: kotlin.String [fake_override,val] + public abstract bar: kotlin.String + public abstract bar: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:ABSTRACT <> ($this:.MyList) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:bar visibility:public modality:ABSTRACT [fake_override,val] overridden: public abstract fun (): kotlin.String declared in .MyList - public abstract fun (): kotlin.String [fake_override] declared in .MyMutableCollection + public abstract fun (): kotlin.String declared in .MyMutableCollection $this: VALUE_PARAMETER name: type:.MyList 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 .MyList - public open fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .MyMutableCollection + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .MyList + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .MyMutableCollection $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 .MyList - public open fun hashCode (): kotlin.Int [fake_override] declared in .MyMutableCollection + public open fun hashCode (): kotlin.Int declared in .MyList + public open fun hashCode (): kotlin.Int declared in .MyMutableCollection $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 .MyList - public open fun toString (): kotlin.String [fake_override] declared in .MyMutableCollection + public open fun toString (): kotlin.String declared in .MyList + public open fun toString (): kotlin.String declared in .MyMutableCollection $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:MyAbstractCollection modality:ABSTRACT visibility:public superTypes:[.MyCollection] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.MyAbstractCollection CONSTRUCTOR visibility:protected <> () returnType:.MyAbstractCollection [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:MyAbstractCollection modality:ABSTRACT visibility:public superTypes:[.MyCollection]' FUN name:foo visibility:public modality:ABSTRACT <> ($this:.MyAbstractCollection) returnType:kotlin.String overridden: @@ -119,7 +119,7 @@ FILE fqName: fileName:/delegatedPropertyWithMultipleOverriddens_noGenerics $this: VALUE_PARAMETER name: type:.MyAbstractCollection PROPERTY name:bar visibility:public modality:ABSTRACT [val] overridden: - public abstract bar: kotlin.String [val] + public abstract bar: kotlin.String FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:ABSTRACT <> ($this:.MyAbstractCollection) returnType:kotlin.String correspondingProperty: PROPERTY name:bar visibility:public modality:ABSTRACT [val] overridden: @@ -127,26 +127,26 @@ FILE fqName: fileName:/delegatedPropertyWithMultipleOverriddens_noGenerics $this: VALUE_PARAMETER name: type:.MyAbstractCollection 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 .MyCollection + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .MyCollection $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 .MyCollection + public open fun hashCode (): kotlin.Int declared in .MyCollection $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 .MyCollection + public open fun toString (): kotlin.String declared in .MyCollection $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:MyArrayList modality:FINAL visibility:public superTypes:[.MyMutableList; .MyAbstractCollection] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.MyArrayList CONSTRUCTOR visibility:public <> () returnType:.MyArrayList [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'protected constructor () [primary] declared in .MyAbstractCollection' + DELEGATING_CONSTRUCTOR_CALL 'protected constructor () declared in .MyAbstractCollection' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:MyArrayList modality:FINAL visibility:public superTypes:[.MyMutableList; .MyAbstractCollection]' FUN name:foo visibility:public modality:OPEN <> ($this:.MyArrayList) returnType:kotlin.String overridden: - public abstract fun foo (): kotlin.String [fake_override] declared in .MyMutableList + public abstract fun foo (): kotlin.String declared in .MyMutableList public abstract fun foo (): kotlin.String declared in .MyAbstractCollection $this: VALUE_PARAMETER name: type:.MyArrayList BLOCK_BODY @@ -154,15 +154,15 @@ FILE fqName: fileName:/delegatedPropertyWithMultipleOverriddens_noGenerics CONST String type=kotlin.String value="O" PROPERTY name:bar visibility:public modality:OPEN [val] overridden: - public abstract bar: kotlin.String [fake_override,val] - public abstract bar: kotlin.String [val] + public abstract bar: kotlin.String + public abstract bar: kotlin.String FIELD PROPERTY_BACKING_FIELD name:bar type:kotlin.String visibility:private [final] EXPRESSION_BODY CONST String type=kotlin.String value="K" FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:OPEN <> ($this:.MyArrayList) returnType:kotlin.String correspondingProperty: PROPERTY name:bar visibility:public modality:OPEN [val] overridden: - public abstract fun (): kotlin.String [fake_override] declared in .MyMutableList + public abstract fun (): kotlin.String declared in .MyMutableList public abstract fun (): kotlin.String declared in .MyAbstractCollection $this: VALUE_PARAMETER name: type:.MyArrayList BLOCK_BODY @@ -171,36 +171,36 @@ FILE fqName: fileName:/delegatedPropertyWithMultipleOverriddens_noGenerics receiver: GET_VAR ': .MyArrayList declared in .MyArrayList.' type=.MyArrayList 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 [fake_override,operator] declared in .MyMutableList - public open fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .MyAbstractCollection + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .MyMutableList + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .MyAbstractCollection $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 .MyMutableList - public open fun hashCode (): kotlin.Int [fake_override] declared in .MyAbstractCollection + public open fun hashCode (): kotlin.Int declared in .MyMutableList + public open fun hashCode (): kotlin.Int declared in .MyAbstractCollection $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 .MyMutableList - public open fun toString (): kotlin.String [fake_override] declared in .MyAbstractCollection + public open fun toString (): kotlin.String declared in .MyMutableList + public open fun toString (): kotlin.String declared in .MyAbstractCollection $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:MC modality:FINAL visibility:public superTypes:[.MyMutableCollection] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.MC CONSTRUCTOR visibility:public <> () returnType:.MC [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:MC modality:FINAL visibility:public superTypes:[.MyMutableCollection]' FIELD DELEGATE name:$$delegate_0 type:.MyArrayList visibility:private [final] EXPRESSION_BODY - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .MyArrayList' type=.MyArrayList origin=null + CONSTRUCTOR_CALL 'public constructor () declared in .MyArrayList' type=.MyArrayList origin=null PROPERTY DELEGATED_MEMBER name:bar visibility:public modality:OPEN [val] overridden: - public abstract bar: kotlin.String [fake_override,val] + public abstract bar: kotlin.String FUN DELEGATED_MEMBER name: visibility:public modality:OPEN <> ($this:.MC) returnType:kotlin.String correspondingProperty: PROPERTY DELEGATED_MEMBER name:bar visibility:public modality:OPEN [val] overridden: - public abstract fun (): kotlin.String [fake_override] declared in .MyMutableCollection + public abstract fun (): kotlin.String declared in .MyMutableCollection $this: VALUE_PARAMETER name: type:.MC BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun (): kotlin.String declared in .MC' @@ -209,7 +209,7 @@ FILE fqName: fileName:/delegatedPropertyWithMultipleOverriddens_noGenerics receiver: GET_VAR ': .MC declared in .MC.' type=.MC origin=null FUN DELEGATED_MEMBER name:foo visibility:public modality:OPEN <> ($this:.MC) returnType:kotlin.String overridden: - public abstract fun foo (): kotlin.String [fake_override] declared in .MyMutableCollection + public abstract fun foo (): kotlin.String declared in .MyMutableCollection $this: VALUE_PARAMETER name: type:.MC BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun foo (): kotlin.String declared in .MC' @@ -218,24 +218,24 @@ FILE fqName: fileName:/delegatedPropertyWithMultipleOverriddens_noGenerics receiver: GET_VAR ': .MC declared in .MC.foo' type=.MC 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 [fake_override,operator] declared in .MyMutableCollection + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .MyMutableCollection $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 .MyMutableCollection + public open fun hashCode (): kotlin.Int declared in .MyMutableCollection $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 .MyMutableCollection + public open fun toString (): kotlin.String declared in .MyMutableCollection $this: VALUE_PARAMETER name: type:kotlin.Any FUN name:box visibility:public modality:FINAL <> () returnType:kotlin.String BLOCK_BODY VAR name:x type:.MC [val] - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .MC' type=.MC origin=null + CONSTRUCTOR_CALL 'public constructor () declared in .MC' type=.MC origin=null RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' - CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS + CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS $this: CALL 'public open fun foo (): kotlin.String declared in .MC' type=kotlin.String origin=null - $this: GET_VAR 'val x: .MC [val] declared in .box' type=.MC origin=null + $this: GET_VAR 'val x: .MC declared in .box' type=.MC origin=null other: CALL 'public open fun (): kotlin.String declared in .MC' type=kotlin.String origin=GET_PROPERTY - $this: GET_VAR 'val x: .MC [val] declared in .box' type=.MC origin=null + $this: GET_VAR 'val x: .MC declared in .box' type=.MC origin=null diff --git a/compiler/testData/codegen/box/javaFieldAndKotlinProperty/javaFieldAndKotlinProperty.fir.ir.txt b/compiler/testData/codegen/box/javaFieldAndKotlinProperty/javaFieldAndKotlinProperty.fir.ir.txt index 4d5b9392a24..2de99b2e641 100644 --- a/compiler/testData/codegen/box/javaFieldAndKotlinProperty/javaFieldAndKotlinProperty.fir.ir.txt +++ b/compiler/testData/codegen/box/javaFieldAndKotlinProperty/javaFieldAndKotlinProperty.fir.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/Derived.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Derived CONSTRUCTOR visibility:public <> () returnType:.Derived [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .BaseJava' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .BaseJava' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Derived modality:FINAL visibility:public superTypes:[.BaseJava]' PROPERTY name:a visibility:public modality:FINAL [var] FIELD PROPERTY_BACKING_FIELD name:a type:kotlin.String visibility:private @@ -26,58 +26,58 @@ FILE fqName: fileName:/Derived.kt value: GET_VAR ': kotlin.String declared in .Derived.' type=kotlin.String 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 [fake_override,operator] declared in .BaseJava + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .BaseJava $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 .BaseJava + public open fun hashCode (): kotlin.Int declared in .BaseJava $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 .BaseJava + public open fun toString (): kotlin.String declared in .BaseJava $this: VALUE_PARAMETER name: type:kotlin.Any FUN name:box visibility:public modality:FINAL <> () returnType:kotlin.String BLOCK_BODY VAR name:first type:kotlin.String [val] CALL 'public final fun (): kotlin.String declared in .Derived' type=kotlin.String origin=GET_PROPERTY - $this: CONSTRUCTOR_CALL 'public constructor () [primary] declared in .Derived' type=.Derived origin=null + $this: CONSTRUCTOR_CALL 'public constructor () declared in .Derived' type=.Derived origin=null WHEN type=kotlin.Unit origin=IF BRANCH - if: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ + if: CALL 'public final fun not (): kotlin.Boolean 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_VAR 'val first: kotlin.String [val] declared in .box' type=kotlin.String origin=null + arg0: GET_VAR 'val first: kotlin.String declared in .box' type=kotlin.String origin=null arg1: CONST String type=kotlin.String value="OK" then: RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' - GET_VAR 'val first: kotlin.String [val] declared in .box' type=kotlin.String origin=null + GET_VAR 'val first: kotlin.String declared in .box' type=kotlin.String origin=null VAR name:d type:.Derived [val] - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .Derived' type=.Derived origin=null + CONSTRUCTOR_CALL 'public constructor () declared in .Derived' type=.Derived origin=null WHEN type=kotlin.Unit origin=IF BRANCH - if: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ + if: CALL 'public final fun not (): kotlin.Boolean 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: CALL 'public abstract fun get (): V of kotlin.reflect.KMutableProperty0 [expect,fake_override] declared in kotlin.reflect.KMutableProperty0' type=kotlin.String origin=null - $this: PROPERTY_REFERENCE 'public final a: kotlin.String [var]' field=null getter='public final fun (): kotlin.String declared in .Derived' setter='public final fun (: kotlin.String): kotlin.Unit declared in .Derived' type=kotlin.reflect.KMutableProperty0 origin=null - $this: GET_VAR 'val d: .Derived [val] declared in .box' type=.Derived origin=null + arg0: CALL 'public abstract fun get (): V of kotlin.reflect.KMutableProperty0 declared in kotlin.reflect.KMutableProperty0' type=kotlin.String origin=null + $this: PROPERTY_REFERENCE 'public final a: kotlin.String' field=null getter='public final fun (): kotlin.String declared in .Derived' setter='public final fun (: kotlin.String): kotlin.Unit declared in .Derived' type=kotlin.reflect.KMutableProperty0 origin=null + $this: GET_VAR 'val d: .Derived declared in .box' type=.Derived origin=null arg1: CONST String type=kotlin.String value="OK" then: RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' - CALL 'public abstract fun get (): V of kotlin.reflect.KMutableProperty0 [expect,fake_override] declared in kotlin.reflect.KMutableProperty0' type=kotlin.String origin=null - $this: PROPERTY_REFERENCE 'public final a: kotlin.String [var]' field=null getter='public final fun (): kotlin.String declared in .Derived' setter='public final fun (: kotlin.String): kotlin.Unit declared in .Derived' type=kotlin.reflect.KMutableProperty0 origin=null - $this: GET_VAR 'val d: .Derived [val] declared in .box' type=.Derived origin=null + CALL 'public abstract fun get (): V of kotlin.reflect.KMutableProperty0 declared in kotlin.reflect.KMutableProperty0' type=kotlin.String origin=null + $this: PROPERTY_REFERENCE 'public final a: kotlin.String' field=null getter='public final fun (): kotlin.String declared in .Derived' setter='public final fun (: kotlin.String): kotlin.Unit declared in .Derived' type=kotlin.reflect.KMutableProperty0 origin=null + $this: GET_VAR 'val d: .Derived declared in .box' type=.Derived origin=null CALL 'public final fun (: kotlin.String): kotlin.Unit declared in .Derived' type=kotlin.Unit origin=EQ - $this: GET_VAR 'val d: .Derived [val] declared in .box' type=.Derived origin=null + $this: GET_VAR 'val d: .Derived declared in .box' type=.Derived origin=null : CONST String type=kotlin.String value="12" WHEN type=kotlin.Unit origin=IF BRANCH - if: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ + if: CALL 'public final fun not (): kotlin.Boolean 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: CALL 'public final fun (): kotlin.String declared in .Derived' type=kotlin.String origin=GET_PROPERTY - $this: GET_VAR 'val d: .Derived [val] declared in .box' type=.Derived origin=null + $this: GET_VAR 'val d: .Derived declared in .box' type=.Derived origin=null arg1: CONST String type=kotlin.String value="12" then: RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' STRING_CONCATENATION type=kotlin.String CONST String type=kotlin.String value="Error writing: " CALL 'public final fun (): kotlin.String declared in .Derived' type=kotlin.String origin=GET_PROPERTY - $this: GET_VAR 'val d: .Derived [val] declared in .box' type=.Derived origin=null + $this: GET_VAR 'val d: .Derived declared in .box' type=.Derived origin=null RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' CONST String type=kotlin.String value="OK" diff --git a/compiler/testData/codegen/box/javaVisibility/package/cannotAccessInterfaceMemberViaReceiver.fir.ir.txt b/compiler/testData/codegen/box/javaVisibility/package/cannotAccessInterfaceMemberViaReceiver.fir.ir.txt index a4810590cdb..cab04570505 100644 --- a/compiler/testData/codegen/box/javaVisibility/package/cannotAccessInterfaceMemberViaReceiver.fir.ir.txt +++ b/compiler/testData/codegen/box/javaVisibility/package/cannotAccessInterfaceMemberViaReceiver.fir.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/Child.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Child CONSTRUCTOR visibility:public <> () returnType:.Child [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in javapackage.PublicParentClass' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in javapackage.PublicParentClass' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Child modality:FINAL visibility:public superTypes:[javapackage.PublicParentClass]' FUN name:foo visibility:public modality:FINAL <> ($this:.Child) returnType:kotlin.String $this: VALUE_PARAMETER name: type:.Child @@ -12,20 +12,20 @@ FILE fqName: fileName:/Child.kt GET_FIELD 'FIELD IR_EXTERNAL_JAVA_DECLARATION_STUB name:publicStaticField type:kotlin.String visibility:public [final,static]' type=kotlin.String origin=GET_PROPERTY 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 javapackage.PublicParentClass + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in javapackage.PublicParentClass $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 javapackage.PublicParentClass + public open fun hashCode (): kotlin.Int declared in javapackage.PublicParentClass $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 javapackage.PublicParentClass + public open fun toString (): kotlin.String declared in javapackage.PublicParentClass $this: VALUE_PARAMETER name: type:kotlin.Any FILE fqName: fileName:/test.kt FUN name:box visibility:public modality:FINAL <> () returnType:kotlin.String BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' CALL 'public final fun foo (): kotlin.String declared in .Child' type=kotlin.String origin=null - $this: CONSTRUCTOR_CALL 'public constructor () [primary] declared in .Child' type=.Child origin=null + $this: CONSTRUCTOR_CALL 'public constructor () declared in .Child' type=.Child origin=null diff --git a/compiler/testData/codegen/box/javaVisibility/package/cannotAccessInterfaceMemberViaReceiver.ir.txt b/compiler/testData/codegen/box/javaVisibility/package/cannotAccessInterfaceMemberViaReceiver.ir.txt index a4810590cdb..cab04570505 100644 --- a/compiler/testData/codegen/box/javaVisibility/package/cannotAccessInterfaceMemberViaReceiver.ir.txt +++ b/compiler/testData/codegen/box/javaVisibility/package/cannotAccessInterfaceMemberViaReceiver.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/Child.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Child CONSTRUCTOR visibility:public <> () returnType:.Child [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in javapackage.PublicParentClass' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in javapackage.PublicParentClass' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Child modality:FINAL visibility:public superTypes:[javapackage.PublicParentClass]' FUN name:foo visibility:public modality:FINAL <> ($this:.Child) returnType:kotlin.String $this: VALUE_PARAMETER name: type:.Child @@ -12,20 +12,20 @@ FILE fqName: fileName:/Child.kt GET_FIELD 'FIELD IR_EXTERNAL_JAVA_DECLARATION_STUB name:publicStaticField type:kotlin.String visibility:public [final,static]' type=kotlin.String origin=GET_PROPERTY 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 javapackage.PublicParentClass + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in javapackage.PublicParentClass $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 javapackage.PublicParentClass + public open fun hashCode (): kotlin.Int declared in javapackage.PublicParentClass $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 javapackage.PublicParentClass + public open fun toString (): kotlin.String declared in javapackage.PublicParentClass $this: VALUE_PARAMETER name: type:kotlin.Any FILE fqName: fileName:/test.kt FUN name:box visibility:public modality:FINAL <> () returnType:kotlin.String BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' CALL 'public final fun foo (): kotlin.String declared in .Child' type=kotlin.String origin=null - $this: CONSTRUCTOR_CALL 'public constructor () [primary] declared in .Child' type=.Child origin=null + $this: CONSTRUCTOR_CALL 'public constructor () declared in .Child' type=.Child origin=null diff --git a/compiler/testData/codegen/box/smartCasts/kt44814.fir.ir.txt b/compiler/testData/codegen/box/smartCasts/kt44814.fir.ir.txt index f3873eac7b6..7e23c3c3adf 100644 --- a/compiler/testData/codegen/box/smartCasts/kt44814.fir.ir.txt +++ b/compiler/testData/codegen/box/smartCasts/kt44814.fir.ir.txt @@ -3,11 +3,11 @@ FILE fqName: fileName:/kt44814.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.FlyweightCapableTreeStructure CONSTRUCTOR visibility:public <> () returnType:.FlyweightCapableTreeStructure [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:FlyweightCapableTreeStructure modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -25,7 +25,7 @@ FILE fqName: fileName:/kt44814.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.FirSourceElement CONSTRUCTOR visibility:protected <> () returnType:.FirSourceElement [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:FirSourceElement modality:SEALED visibility:public superTypes:[kotlin.Any]' PROPERTY name:lighterASTNode visibility:public modality:ABSTRACT [val] FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:ABSTRACT <> ($this:.FirSourceElement) returnType:.LighterASTNode @@ -37,7 +37,7 @@ FILE fqName: fileName:/kt44814.kt $this: VALUE_PARAMETER name: type:.FirSourceElement 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -55,7 +55,7 @@ FILE fqName: fileName:/kt44814.kt VALUE_PARAMETER name:lighterASTNode index:1 type:.LighterASTNode VALUE_PARAMETER name:treeStructure index:2 type:.FlyweightCapableTreeStructure BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'protected constructor () [primary] declared in .FirSourceElement' + DELEGATING_CONSTRUCTOR_CALL 'protected constructor () declared in .FirSourceElement' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:FirPsiSourceElement modality:FINAL visibility:public superTypes:[.FirSourceElement]' PROPERTY name:psi visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:psi type:.PsiElement visibility:private [final] @@ -70,7 +70,7 @@ FILE fqName: fileName:/kt44814.kt receiver: GET_VAR ': .FirPsiSourceElement declared in .FirPsiSourceElement.' type=.FirPsiSourceElement origin=null PROPERTY name:lighterASTNode visibility:public modality:OPEN [val] overridden: - public abstract lighterASTNode: .LighterASTNode [val] + public abstract lighterASTNode: .LighterASTNode FIELD PROPERTY_BACKING_FIELD name:lighterASTNode type:.LighterASTNode visibility:private [final] EXPRESSION_BODY GET_VAR 'lighterASTNode: .LighterASTNode declared in .FirPsiSourceElement.' type=.LighterASTNode origin=INITIALIZE_PROPERTY_FROM_PARAMETER @@ -85,7 +85,7 @@ FILE fqName: fileName:/kt44814.kt receiver: GET_VAR ': .FirPsiSourceElement declared in .FirPsiSourceElement.' type=.FirPsiSourceElement origin=null PROPERTY name:treeStructure visibility:public modality:OPEN [val] overridden: - public abstract treeStructure: .FlyweightCapableTreeStructure [val] + public abstract treeStructure: .FlyweightCapableTreeStructure FIELD PROPERTY_BACKING_FIELD name:treeStructure type:.FlyweightCapableTreeStructure visibility:private [final] EXPRESSION_BODY GET_VAR 'treeStructure: .FlyweightCapableTreeStructure declared in .FirPsiSourceElement.' type=.FlyweightCapableTreeStructure origin=INITIALIZE_PROPERTY_FROM_PARAMETER @@ -100,16 +100,16 @@ FILE fqName: fileName:/kt44814.kt receiver: GET_VAR ': .FirPsiSourceElement declared in .FirPsiSourceElement.' type=.FirPsiSourceElement 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 [fake_override,operator] declared in .FirSourceElement + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .FirSourceElement $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 .FirSourceElement + public open fun hashCode (): kotlin.Int declared in .FirSourceElement $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 .FirSourceElement + public open fun toString (): kotlin.String declared in .FirSourceElement $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:FirLightSourceElement modality:FINAL visibility:public superTypes:[.FirSourceElement] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.FirLightSourceElement @@ -117,11 +117,11 @@ FILE fqName: fileName:/kt44814.kt VALUE_PARAMETER name:lighterASTNode index:0 type:.LighterASTNode VALUE_PARAMETER name:treeStructure index:1 type:.FlyweightCapableTreeStructure BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'protected constructor () [primary] declared in .FirSourceElement' + DELEGATING_CONSTRUCTOR_CALL 'protected constructor () declared in .FirSourceElement' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:FirLightSourceElement modality:FINAL visibility:public superTypes:[.FirSourceElement]' PROPERTY name:lighterASTNode visibility:public modality:OPEN [val] overridden: - public abstract lighterASTNode: .LighterASTNode [val] + public abstract lighterASTNode: .LighterASTNode FIELD PROPERTY_BACKING_FIELD name:lighterASTNode type:.LighterASTNode visibility:private [final] EXPRESSION_BODY GET_VAR 'lighterASTNode: .LighterASTNode declared in .FirLightSourceElement.' type=.LighterASTNode origin=INITIALIZE_PROPERTY_FROM_PARAMETER @@ -136,7 +136,7 @@ FILE fqName: fileName:/kt44814.kt receiver: GET_VAR ': .FirLightSourceElement declared in .FirLightSourceElement.' type=.FirLightSourceElement origin=null PROPERTY name:treeStructure visibility:public modality:OPEN [val] overridden: - public abstract treeStructure: .FlyweightCapableTreeStructure [val] + public abstract treeStructure: .FlyweightCapableTreeStructure FIELD PROPERTY_BACKING_FIELD name:treeStructure type:.FlyweightCapableTreeStructure visibility:private [final] EXPRESSION_BODY GET_VAR 'treeStructure: .FlyweightCapableTreeStructure declared in .FirLightSourceElement.' type=.FlyweightCapableTreeStructure origin=INITIALIZE_PROPERTY_FROM_PARAMETER @@ -151,26 +151,26 @@ FILE fqName: fileName:/kt44814.kt receiver: GET_VAR ': .FirLightSourceElement declared in .FirLightSourceElement.' type=.FirLightSourceElement 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 [fake_override,operator] declared in .FirSourceElement + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .FirSourceElement $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 .FirSourceElement + public open fun hashCode (): kotlin.Int declared in .FirSourceElement $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 .FirSourceElement + public open fun toString (): kotlin.String declared in .FirSourceElement $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:PsiElement modality:OPEN visibility:public superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.PsiElement CONSTRUCTOR visibility:public <> () returnType:.PsiElement [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:PsiElement modality:OPEN 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -185,11 +185,11 @@ FILE fqName: fileName:/kt44814.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.ASTNode CONSTRUCTOR visibility:public <> () returnType:.ASTNode [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:ASTNode modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -208,7 +208,7 @@ FILE fqName: fileName:/kt44814.kt CALL 'public final fun emptyList (): kotlin.collections.List declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List<.LighterASTNode?> origin=null : .LighterASTNode? BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:LighterASTNode modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:_children visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:_children type:kotlin.collections.List<.LighterASTNode?> visibility:private [final] @@ -242,7 +242,7 @@ FILE fqName: fileName:/kt44814.kt receiver: GET_VAR ': .LighterASTNode declared in .LighterASTNode.' type=.LighterASTNode 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -257,18 +257,18 @@ FILE fqName: fileName:/kt44814.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.TokenType CONSTRUCTOR visibility:public <> () returnType:.TokenType [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:TokenType modality:FINAL visibility:public superTypes:[kotlin.Any]' CLASS OBJECT name:Companion modality:FINAL visibility:public [companion] superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.TokenType.Companion CONSTRUCTOR visibility:private <> () returnType:.TokenType.Companion [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:Companion modality:FINAL visibility:public [companion] superTypes:[kotlin.Any]' PROPERTY name:MODIFIER_LIST visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:MODIFIER_LIST type:.TokenType visibility:private [final] EXPRESSION_BODY - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .TokenType' type=.TokenType origin=null + CONSTRUCTOR_CALL 'public constructor () declared in .TokenType' type=.TokenType origin=null FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:.TokenType.Companion) returnType:.TokenType correspondingProperty: PROPERTY name:MODIFIER_LIST visibility:public modality:FINAL [val] $this: VALUE_PARAMETER name: type:.TokenType.Companion @@ -278,7 +278,7 @@ FILE fqName: fileName:/kt44814.kt receiver: GET_VAR ': .TokenType.Companion declared in .TokenType.Companion.' type=.TokenType.Companion 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -291,7 +291,7 @@ FILE fqName: fileName:/kt44814.kt $this: VALUE_PARAMETER name: type: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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -306,11 +306,11 @@ FILE fqName: fileName:/kt44814.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.KtModifierKeywordToken CONSTRUCTOR visibility:public <> () returnType:.KtModifierKeywordToken [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:KtModifierKeywordToken modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -325,31 +325,31 @@ FILE fqName: fileName:/kt44814.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.KtModifierList CONSTRUCTOR visibility:public <> () returnType:.KtModifierList [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .PsiElement' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .PsiElement' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:KtModifierList modality:FINAL visibility:public superTypes:[.PsiElement]' 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 .PsiElement + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .PsiElement $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 .PsiElement + public open fun hashCode (): kotlin.Int declared in .PsiElement $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 .PsiElement + public open fun toString (): kotlin.String declared in .PsiElement $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:KtModifierListOwner modality:FINAL visibility:public superTypes:[.PsiElement] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.KtModifierListOwner CONSTRUCTOR visibility:public <> () returnType:.KtModifierListOwner [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .PsiElement' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .PsiElement' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:KtModifierListOwner modality:FINAL visibility:public superTypes:[.PsiElement]' PROPERTY name:modifierList visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:modifierList type:.KtModifierList visibility:private [final] EXPRESSION_BODY - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .KtModifierList' type=.KtModifierList origin=null + CONSTRUCTOR_CALL 'public constructor () declared in .KtModifierList' type=.KtModifierList origin=null FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:.KtModifierListOwner) returnType:.KtModifierList correspondingProperty: PROPERTY name:modifierList visibility:public modality:FINAL [val] $this: VALUE_PARAMETER name: type:.KtModifierListOwner @@ -359,16 +359,16 @@ FILE fqName: fileName:/kt44814.kt receiver: GET_VAR ': .KtModifierListOwner declared in .KtModifierListOwner.' type=.KtModifierListOwner 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 [fake_override,operator] declared in .PsiElement + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .PsiElement $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 .PsiElement + public open fun hashCode (): kotlin.Int declared in .PsiElement $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 .PsiElement + public open fun toString (): kotlin.String declared in .PsiElement $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:FirModifier modality:SEALED visibility:internal superTypes:[kotlin.Any] sealedSubclasses: @@ -380,7 +380,7 @@ FILE fqName: fileName:/kt44814.kt VALUE_PARAMETER name:node index:0 type:Node of .FirModifier VALUE_PARAMETER name:token index:1 type:.KtModifierKeywordToken BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:FirModifier modality:SEALED visibility:internal superTypes:[kotlin.Any]' PROPERTY name:node visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:node type:Node of .FirModifier visibility:private [final] @@ -410,14 +410,14 @@ FILE fqName: fileName:/kt44814.kt VALUE_PARAMETER name:node index:0 type:.ASTNode VALUE_PARAMETER name:token index:1 type:.KtModifierKeywordToken BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'protected constructor (node: Node of .FirModifier, token: .KtModifierKeywordToken) [primary] declared in .FirModifier' + DELEGATING_CONSTRUCTOR_CALL 'protected constructor (node: Node of .FirModifier, token: .KtModifierKeywordToken) declared in .FirModifier' : .ASTNode node: GET_VAR 'node: .ASTNode declared in .FirModifier.FirPsiModifier.' type=.ASTNode origin=null token: GET_VAR 'token: .KtModifierKeywordToken declared in .FirModifier.FirPsiModifier.' type=.KtModifierKeywordToken origin=null INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:FirPsiModifier modality:FINAL visibility:public superTypes:[.FirModifier<.ASTNode>]' PROPERTY FAKE_OVERRIDE name:node visibility:public modality:FINAL [fake_override,val] overridden: - public final node: Node of .FirModifier [val] + public final node: Node of .FirModifier FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.FirModifier.FirModifier>) returnType:.ASTNode [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:node visibility:public modality:FINAL [fake_override,val] overridden: @@ -425,7 +425,7 @@ FILE fqName: fileName:/kt44814.kt $this: VALUE_PARAMETER name: type:.FirModifier.FirModifier> PROPERTY FAKE_OVERRIDE name:token visibility:public modality:FINAL [fake_override,val] overridden: - public final token: .KtModifierKeywordToken [val] + public final token: .KtModifierKeywordToken FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.FirModifier.FirModifier>) returnType:.KtModifierKeywordToken [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:token visibility:public modality:FINAL [fake_override,val] overridden: @@ -433,16 +433,16 @@ FILE fqName: fileName:/kt44814.kt $this: VALUE_PARAMETER name: type:.FirModifier.FirModifier> 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 .FirModifier + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .FirModifier $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 .FirModifier + public open fun hashCode (): kotlin.Int declared in .FirModifier $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 .FirModifier + public open fun toString (): kotlin.String declared in .FirModifier $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:FirLightModifier modality:FINAL visibility:public superTypes:[.FirModifier<.LighterASTNode>] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.FirModifier.FirLightModifier @@ -451,7 +451,7 @@ FILE fqName: fileName:/kt44814.kt VALUE_PARAMETER name:token index:1 type:.KtModifierKeywordToken VALUE_PARAMETER name:tree index:2 type:.FlyweightCapableTreeStructure BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'protected constructor (node: Node of .FirModifier, token: .KtModifierKeywordToken) [primary] declared in .FirModifier' + DELEGATING_CONSTRUCTOR_CALL 'protected constructor (node: Node of .FirModifier, token: .KtModifierKeywordToken) declared in .FirModifier' : .LighterASTNode node: GET_VAR 'node: .LighterASTNode declared in .FirModifier.FirLightModifier.' type=.LighterASTNode origin=null token: GET_VAR 'token: .KtModifierKeywordToken declared in .FirModifier.FirLightModifier.' type=.KtModifierKeywordToken origin=null @@ -469,7 +469,7 @@ FILE fqName: fileName:/kt44814.kt receiver: GET_VAR ': .FirModifier.FirLightModifier declared in .FirModifier.FirLightModifier.' type=.FirModifier.FirLightModifier origin=null PROPERTY FAKE_OVERRIDE name:node visibility:public modality:FINAL [fake_override,val] overridden: - public final node: Node of .FirModifier [val] + public final node: Node of .FirModifier FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.FirModifier.FirModifier>) returnType:.LighterASTNode [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:node visibility:public modality:FINAL [fake_override,val] overridden: @@ -477,7 +477,7 @@ FILE fqName: fileName:/kt44814.kt $this: VALUE_PARAMETER name: type:.FirModifier.FirModifier> PROPERTY FAKE_OVERRIDE name:token visibility:public modality:FINAL [fake_override,val] overridden: - public final token: .KtModifierKeywordToken [val] + public final token: .KtModifierKeywordToken FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.FirModifier.FirModifier>) returnType:.KtModifierKeywordToken [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:token visibility:public modality:FINAL [fake_override,val] overridden: @@ -485,20 +485,20 @@ FILE fqName: fileName:/kt44814.kt $this: VALUE_PARAMETER name: type:.FirModifier.FirModifier> 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 .FirModifier + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .FirModifier $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 .FirModifier + public open fun hashCode (): kotlin.Int declared in .FirModifier $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 .FirModifier + public open fun toString (): kotlin.String declared in .FirModifier $this: VALUE_PARAMETER name: type: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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -516,7 +516,7 @@ FILE fqName: fileName:/kt44814.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.FirModifierList CONSTRUCTOR visibility:protected <> () returnType:.FirModifierList [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:FirModifierList modality:SEALED visibility:internal superTypes:[kotlin.Any]' PROPERTY name:modifiers visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:modifiers type:kotlin.collections.List<.FirModifier<*>> visibility:private [final] @@ -535,7 +535,7 @@ FILE fqName: fileName:/kt44814.kt CONSTRUCTOR visibility:public <> (modifierList:.KtModifierList) returnType:.FirModifierList.FirPsiModifierList [primary] VALUE_PARAMETER name:modifierList index:0 type:.KtModifierList BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'protected constructor () [primary] declared in .FirModifierList' + DELEGATING_CONSTRUCTOR_CALL 'protected constructor () declared in .FirModifierList' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:FirPsiModifierList modality:FINAL visibility:public superTypes:[.FirModifierList]' PROPERTY name:modifierList visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:modifierList type:.KtModifierList visibility:private [final] @@ -550,7 +550,7 @@ FILE fqName: fileName:/kt44814.kt receiver: GET_VAR ': .FirModifierList.FirPsiModifierList declared in .FirModifierList.FirPsiModifierList.' type=.FirModifierList.FirPsiModifierList origin=null PROPERTY FAKE_OVERRIDE name:modifiers visibility:public modality:FINAL [fake_override,val] overridden: - public final modifiers: kotlin.collections.List<.FirModifier<*>> [val] + public final modifiers: kotlin.collections.List<.FirModifier<*>> FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.FirModifierList) returnType:kotlin.collections.List<.FirModifier<*>> [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:modifiers visibility:public modality:FINAL [fake_override,val] overridden: @@ -558,16 +558,16 @@ FILE fqName: fileName:/kt44814.kt $this: VALUE_PARAMETER name: type:.FirModifierList 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 .FirModifierList + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .FirModifierList $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 .FirModifierList + public open fun hashCode (): kotlin.Int declared in .FirModifierList $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 .FirModifierList + public open fun toString (): kotlin.String declared in .FirModifierList $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:FirLightModifierList modality:FINAL visibility:public superTypes:[.FirModifierList] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.FirModifierList.FirLightModifierList @@ -575,7 +575,7 @@ FILE fqName: fileName:/kt44814.kt VALUE_PARAMETER name:modifierList index:0 type:.LighterASTNode VALUE_PARAMETER name:tree index:1 type:.FlyweightCapableTreeStructure BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'protected constructor () [primary] declared in .FirModifierList' + DELEGATING_CONSTRUCTOR_CALL 'protected constructor () declared in .FirModifierList' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:FirLightModifierList modality:FINAL visibility:public superTypes:[.FirModifierList]' PROPERTY name:modifierList visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:modifierList type:.LighterASTNode visibility:private [final] @@ -601,7 +601,7 @@ FILE fqName: fileName:/kt44814.kt receiver: GET_VAR ': .FirModifierList.FirLightModifierList declared in .FirModifierList.FirLightModifierList.' type=.FirModifierList.FirLightModifierList origin=null PROPERTY FAKE_OVERRIDE name:modifiers visibility:public modality:FINAL [fake_override,val] overridden: - public final modifiers: kotlin.collections.List<.FirModifier<*>> [val] + public final modifiers: kotlin.collections.List<.FirModifier<*>> FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.FirModifierList) returnType:kotlin.collections.List<.FirModifier<*>> [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:modifiers visibility:public modality:FINAL [fake_override,val] overridden: @@ -609,22 +609,22 @@ FILE fqName: fileName:/kt44814.kt $this: VALUE_PARAMETER name: type:.FirModifierList 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 .FirModifierList + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .FirModifierList $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 .FirModifierList + public open fun hashCode (): kotlin.Int declared in .FirModifierList $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 .FirModifierList + public open fun toString (): kotlin.String declared in .FirModifierList $this: VALUE_PARAMETER name: type:kotlin.Any CLASS OBJECT name:Companion modality:FINAL visibility:public [companion] superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.FirModifierList.Companion CONSTRUCTOR visibility:private <> () returnType:.FirModifierList.Companion [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:Companion modality:FINAL visibility:public [companion] superTypes:[kotlin.Any]' FUN name:getModifierList visibility:public modality:FINAL <> ($this:.FirModifierList.Companion, $receiver:.FirSourceElement?) returnType:.FirModifierList? $this: VALUE_PARAMETER name: type:.FirModifierList.Companion @@ -637,12 +637,12 @@ FILE fqName: fileName:/kt44814.kt WHEN type=.FirModifierList? origin=WHEN BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_0: .FirSourceElement? [val] declared in .FirModifierList.Companion.getModifierList' type=.FirSourceElement? origin=null + arg0: GET_VAR 'val tmp_0: .FirSourceElement? declared in .FirModifierList.Companion.getModifierList' type=.FirSourceElement? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=INSTANCEOF typeOperand=.FirPsiSourceElement - GET_VAR 'val tmp_0: .FirSourceElement? [val] declared in .FirModifierList.Companion.getModifierList' type=.FirSourceElement? origin=null + GET_VAR 'val tmp_0: .FirSourceElement? declared in .FirModifierList.Companion.getModifierList' type=.FirSourceElement? origin=null then: BLOCK type=.FirModifierList.FirPsiModifierList? origin=SAFE_CALL VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:.KtModifierList? [val] BLOCK type=.KtModifierList? origin=SAFE_CALL @@ -654,40 +654,40 @@ FILE fqName: fileName:/kt44814.kt WHEN type=.KtModifierList? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_2: .KtModifierListOwner? [val] declared in .FirModifierList.Companion.getModifierList' type=.KtModifierListOwner? origin=null + arg0: GET_VAR 'val tmp_2: .KtModifierListOwner? declared in .FirModifierList.Companion.getModifierList' type=.KtModifierListOwner? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public final fun (): .KtModifierList declared in .KtModifierListOwner' type=.KtModifierList origin=GET_PROPERTY - $this: GET_VAR 'val tmp_2: .KtModifierListOwner? [val] declared in .FirModifierList.Companion.getModifierList' type=.KtModifierListOwner? origin=null + $this: GET_VAR 'val tmp_2: .KtModifierListOwner? declared in .FirModifierList.Companion.getModifierList' type=.KtModifierListOwner? origin=null WHEN type=.FirModifierList.FirPsiModifierList? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_1: .KtModifierList? [val] declared in .FirModifierList.Companion.getModifierList' type=.KtModifierList? origin=null + arg0: GET_VAR 'val tmp_1: .KtModifierList? declared in .FirModifierList.Companion.getModifierList' type=.KtModifierList? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: CALL 'public final fun let (block: kotlin.Function1): R of kotlin.StandardKt.let [inline] declared in kotlin.StandardKt' type=.FirModifierList.FirPsiModifierList origin=null + then: CALL 'public final fun let (block: kotlin.Function1): R of kotlin.StandardKt.let declared in kotlin.StandardKt' type=.FirModifierList.FirPsiModifierList origin=null : .KtModifierList : .FirModifierList.FirPsiModifierList - $receiver: GET_VAR 'val tmp_1: .KtModifierList? [val] declared in .FirModifierList.Companion.getModifierList' type=.KtModifierList? origin=null + $receiver: GET_VAR 'val tmp_1: .KtModifierList? declared in .FirModifierList.Companion.getModifierList' type=.KtModifierList? origin=null block: FUN_EXPR type=kotlin.Function1<.KtModifierList, .FirModifierList.FirPsiModifierList> origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> (it:.KtModifierList) returnType:.FirModifierList.FirPsiModifierList VALUE_PARAMETER name:it index:0 type:.KtModifierList BLOCK_BODY RETURN type=kotlin.Nothing from='local final fun (it: .KtModifierList): .FirModifierList.FirPsiModifierList declared in .FirModifierList.Companion.getModifierList' - CONSTRUCTOR_CALL 'public constructor (modifierList: .KtModifierList) [primary] declared in .FirModifierList.FirPsiModifierList' type=.FirModifierList.FirPsiModifierList origin=null + CONSTRUCTOR_CALL 'public constructor (modifierList: .KtModifierList) declared in .FirModifierList.FirPsiModifierList' type=.FirModifierList.FirPsiModifierList origin=null modifierList: GET_VAR 'it: .KtModifierList declared in .FirModifierList.Companion.getModifierList.' type=.KtModifierList origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=INSTANCEOF typeOperand=.FirLightSourceElement - GET_VAR 'val tmp_0: .FirSourceElement? [val] declared in .FirModifierList.Companion.getModifierList' type=.FirSourceElement? origin=null + GET_VAR 'val tmp_0: .FirSourceElement? declared in .FirModifierList.Companion.getModifierList' type=.FirSourceElement? origin=null then: BLOCK type=.FirModifierList.FirLightModifierList origin=null VAR name:modifierListNode type:.LighterASTNode [val] BLOCK type=.LighterASTNode origin=ELVIS VAR IR_TEMPORARY_VARIABLE name:tmp_3 type:.LighterASTNode? [val] - CALL 'public final fun find (predicate: kotlin.Function1): T of kotlin.collections.CollectionsKt.find? [inline] declared in kotlin.collections.CollectionsKt' type=.LighterASTNode? origin=null + CALL 'public final fun find (predicate: kotlin.Function1): T of kotlin.collections.CollectionsKt.find? declared in kotlin.collections.CollectionsKt' type=.LighterASTNode? origin=null : .LighterASTNode? $receiver: CALL 'public final fun getChildren (treeStructure: .FlyweightCapableTreeStructure): kotlin.collections.List<.LighterASTNode?> declared in .LighterASTNode' type=kotlin.collections.List<.LighterASTNode?> origin=null $this: CALL 'public open fun (): .LighterASTNode declared in .FirLightSourceElement' type=.LighterASTNode origin=GET_PROPERTY @@ -708,27 +708,27 @@ FILE fqName: fileName:/kt44814.kt WHEN type=.TokenType? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_4: .LighterASTNode? [val] declared in .FirModifierList.Companion.getModifierList.' type=.LighterASTNode? origin=null + arg0: GET_VAR 'val tmp_4: .LighterASTNode? declared in .FirModifierList.Companion.getModifierList.' type=.LighterASTNode? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public final fun (): .TokenType declared in .LighterASTNode' type=.TokenType origin=GET_PROPERTY - $this: GET_VAR 'val tmp_4: .LighterASTNode? [val] declared in .FirModifierList.Companion.getModifierList.' type=.LighterASTNode? origin=null + $this: GET_VAR 'val tmp_4: .LighterASTNode? declared in .FirModifierList.Companion.getModifierList.' type=.LighterASTNode? origin=null arg1: CALL 'public final fun (): .TokenType declared in .TokenType.Companion' type=.TokenType origin=GET_PROPERTY $this: GET_OBJECT 'CLASS OBJECT name:Companion modality:FINAL visibility:public [companion] superTypes:[kotlin.Any]' type=.TokenType.Companion WHEN type=.LighterASTNode origin=ELVIS BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_3: .LighterASTNode? [val] declared in .FirModifierList.Companion.getModifierList' type=.LighterASTNode? origin=null + arg0: GET_VAR 'val tmp_3: .LighterASTNode? declared in .FirModifierList.Companion.getModifierList' type=.LighterASTNode? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: RETURN type=kotlin.Nothing from='public final fun getModifierList (): .FirModifierList? declared in .FirModifierList.Companion' CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val tmp_3: .LighterASTNode? [val] declared in .FirModifierList.Companion.getModifierList' type=.LighterASTNode? origin=null - CONSTRUCTOR_CALL 'public constructor (modifierList: .LighterASTNode, tree: .FlyweightCapableTreeStructure) [primary] declared in .FirModifierList.FirLightModifierList' type=.FirModifierList.FirLightModifierList origin=null - modifierList: GET_VAR 'val modifierListNode: .LighterASTNode [val] declared in .FirModifierList.Companion.getModifierList' type=.LighterASTNode origin=null + then: GET_VAR 'val tmp_3: .LighterASTNode? declared in .FirModifierList.Companion.getModifierList' type=.LighterASTNode? origin=null + CONSTRUCTOR_CALL 'public constructor (modifierList: .LighterASTNode, tree: .FlyweightCapableTreeStructure) declared in .FirModifierList.FirLightModifierList' type=.FirModifierList.FirLightModifierList origin=null + modifierList: GET_VAR 'val modifierListNode: .LighterASTNode declared in .FirModifierList.Companion.getModifierList' type=.LighterASTNode origin=null tree: CALL 'public open fun (): .FlyweightCapableTreeStructure declared in .FirLightSourceElement' type=.FlyweightCapableTreeStructure origin=GET_PROPERTY $this: TYPE_OP type=.FirLightSourceElement origin=IMPLICIT_CAST typeOperand=.FirLightSourceElement GET_VAR ': .FirSourceElement? declared in .FirModifierList.Companion.getModifierList' type=.FirSourceElement? origin=null @@ -739,28 +739,28 @@ FILE fqName: fileName:/kt44814.kt $this: VALUE_PARAMETER name: type:.FirModifierList.Companion BLOCK_BODY VAR name:sourceElement type:.FirSourceElement? [val] - CONSTRUCTOR_CALL 'public constructor (lighterASTNode: .LighterASTNode, treeStructure: .FlyweightCapableTreeStructure) [primary] declared in .FirLightSourceElement' type=.FirLightSourceElement origin=null - lighterASTNode: CONSTRUCTOR_CALL 'public constructor (_children: kotlin.collections.List<.LighterASTNode?>) [primary] declared in .LighterASTNode' type=.LighterASTNode origin=null + CONSTRUCTOR_CALL 'public constructor (lighterASTNode: .LighterASTNode, treeStructure: .FlyweightCapableTreeStructure) declared in .FirLightSourceElement' type=.FirLightSourceElement origin=null + lighterASTNode: CONSTRUCTOR_CALL 'public constructor (_children: kotlin.collections.List<.LighterASTNode?>) declared in .LighterASTNode' type=.LighterASTNode origin=null _children: CALL 'public final fun listOf (element: T of kotlin.collections.CollectionsKt.listOf): kotlin.collections.List declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List<.LighterASTNode> origin=null : .LighterASTNode - element: CONSTRUCTOR_CALL 'public constructor (_children: kotlin.collections.List<.LighterASTNode?>) [primary] declared in .LighterASTNode' type=.LighterASTNode origin=null - treeStructure: CONSTRUCTOR_CALL 'public constructor () [primary] declared in .FlyweightCapableTreeStructure' type=.FlyweightCapableTreeStructure origin=null + element: CONSTRUCTOR_CALL 'public constructor (_children: kotlin.collections.List<.LighterASTNode?>) declared in .LighterASTNode' type=.LighterASTNode origin=null + treeStructure: CONSTRUCTOR_CALL 'public constructor () declared in .FlyweightCapableTreeStructure' type=.FlyweightCapableTreeStructure origin=null VAR name:result type:.FirModifierList? [val] CALL 'public final fun getModifierList (): .FirModifierList? declared in .FirModifierList.Companion' type=.FirModifierList? origin=null $this: GET_VAR ': .FirModifierList.Companion declared in .FirModifierList.Companion.boxImpl' type=.FirModifierList.Companion origin=null - $receiver: GET_VAR 'val sourceElement: .FirSourceElement? [val] declared in .FirModifierList.Companion.boxImpl' type=.FirSourceElement? origin=null + $receiver: GET_VAR 'val sourceElement: .FirSourceElement? declared in .FirModifierList.Companion.boxImpl' type=.FirSourceElement? origin=null RETURN type=kotlin.Nothing from='public final fun boxImpl (): kotlin.String declared in .FirModifierList.Companion' WHEN type=kotlin.String origin=IF BRANCH if: TYPE_OP type=kotlin.Boolean origin=INSTANCEOF typeOperand=.FirModifierList.FirLightModifierList - GET_VAR 'val result: .FirModifierList? [val] declared in .FirModifierList.Companion.boxImpl' type=.FirModifierList? origin=null + GET_VAR 'val result: .FirModifierList? declared in .FirModifierList.Companion.boxImpl' type=.FirModifierList? origin=null then: CONST String type=kotlin.String value="OK" BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CONST String type=kotlin.String value="Fail" 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -773,7 +773,7 @@ FILE fqName: fileName:/kt44814.kt $this: VALUE_PARAMETER name: type: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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/codegen/box/smartCasts/kt44814.ir.txt b/compiler/testData/codegen/box/smartCasts/kt44814.ir.txt index 311a8752f66..79862759d91 100644 --- a/compiler/testData/codegen/box/smartCasts/kt44814.ir.txt +++ b/compiler/testData/codegen/box/smartCasts/kt44814.ir.txt @@ -3,11 +3,11 @@ FILE fqName: fileName:/kt44814.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.FlyweightCapableTreeStructure CONSTRUCTOR visibility:public <> () returnType:.FlyweightCapableTreeStructure [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:FlyweightCapableTreeStructure modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -25,7 +25,7 @@ FILE fqName: fileName:/kt44814.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.FirSourceElement CONSTRUCTOR visibility:protected <> () returnType:.FirSourceElement [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:FirSourceElement modality:SEALED visibility:public superTypes:[kotlin.Any]' PROPERTY name:lighterASTNode visibility:public modality:ABSTRACT [val] FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:ABSTRACT <> ($this:.FirSourceElement) returnType:.LighterASTNode @@ -37,7 +37,7 @@ FILE fqName: fileName:/kt44814.kt $this: VALUE_PARAMETER name: type:.FirSourceElement 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -55,7 +55,7 @@ FILE fqName: fileName:/kt44814.kt VALUE_PARAMETER name:lighterASTNode index:1 type:.LighterASTNode VALUE_PARAMETER name:treeStructure index:2 type:.FlyweightCapableTreeStructure BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'protected constructor () [primary] declared in .FirSourceElement' + DELEGATING_CONSTRUCTOR_CALL 'protected constructor () declared in .FirSourceElement' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:FirPsiSourceElement modality:FINAL visibility:public superTypes:[.FirSourceElement]' PROPERTY name:psi visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:psi type:.PsiElement visibility:private [final] @@ -70,7 +70,7 @@ FILE fqName: fileName:/kt44814.kt receiver: GET_VAR ': .FirPsiSourceElement declared in .FirPsiSourceElement.' type=.FirPsiSourceElement origin=null PROPERTY name:lighterASTNode visibility:public modality:OPEN [val] overridden: - public abstract lighterASTNode: .LighterASTNode [val] + public abstract lighterASTNode: .LighterASTNode FIELD PROPERTY_BACKING_FIELD name:lighterASTNode type:.LighterASTNode visibility:private [final] EXPRESSION_BODY GET_VAR 'lighterASTNode: .LighterASTNode declared in .FirPsiSourceElement.' type=.LighterASTNode origin=INITIALIZE_PROPERTY_FROM_PARAMETER @@ -85,7 +85,7 @@ FILE fqName: fileName:/kt44814.kt receiver: GET_VAR ': .FirPsiSourceElement declared in .FirPsiSourceElement.' type=.FirPsiSourceElement origin=null PROPERTY name:treeStructure visibility:public modality:OPEN [val] overridden: - public abstract treeStructure: .FlyweightCapableTreeStructure [val] + public abstract treeStructure: .FlyweightCapableTreeStructure FIELD PROPERTY_BACKING_FIELD name:treeStructure type:.FlyweightCapableTreeStructure visibility:private [final] EXPRESSION_BODY GET_VAR 'treeStructure: .FlyweightCapableTreeStructure declared in .FirPsiSourceElement.' type=.FlyweightCapableTreeStructure origin=INITIALIZE_PROPERTY_FROM_PARAMETER @@ -100,16 +100,16 @@ FILE fqName: fileName:/kt44814.kt receiver: GET_VAR ': .FirPsiSourceElement declared in .FirPsiSourceElement.' type=.FirPsiSourceElement 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 [fake_override,operator] declared in .FirSourceElement + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .FirSourceElement $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 .FirSourceElement + public open fun hashCode (): kotlin.Int declared in .FirSourceElement $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 .FirSourceElement + public open fun toString (): kotlin.String declared in .FirSourceElement $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:FirLightSourceElement modality:FINAL visibility:public superTypes:[.FirSourceElement] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.FirLightSourceElement @@ -117,11 +117,11 @@ FILE fqName: fileName:/kt44814.kt VALUE_PARAMETER name:lighterASTNode index:0 type:.LighterASTNode VALUE_PARAMETER name:treeStructure index:1 type:.FlyweightCapableTreeStructure BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'protected constructor () [primary] declared in .FirSourceElement' + DELEGATING_CONSTRUCTOR_CALL 'protected constructor () declared in .FirSourceElement' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:FirLightSourceElement modality:FINAL visibility:public superTypes:[.FirSourceElement]' PROPERTY name:lighterASTNode visibility:public modality:OPEN [val] overridden: - public abstract lighterASTNode: .LighterASTNode [val] + public abstract lighterASTNode: .LighterASTNode FIELD PROPERTY_BACKING_FIELD name:lighterASTNode type:.LighterASTNode visibility:private [final] EXPRESSION_BODY GET_VAR 'lighterASTNode: .LighterASTNode declared in .FirLightSourceElement.' type=.LighterASTNode origin=INITIALIZE_PROPERTY_FROM_PARAMETER @@ -136,7 +136,7 @@ FILE fqName: fileName:/kt44814.kt receiver: GET_VAR ': .FirLightSourceElement declared in .FirLightSourceElement.' type=.FirLightSourceElement origin=null PROPERTY name:treeStructure visibility:public modality:OPEN [val] overridden: - public abstract treeStructure: .FlyweightCapableTreeStructure [val] + public abstract treeStructure: .FlyweightCapableTreeStructure FIELD PROPERTY_BACKING_FIELD name:treeStructure type:.FlyweightCapableTreeStructure visibility:private [final] EXPRESSION_BODY GET_VAR 'treeStructure: .FlyweightCapableTreeStructure declared in .FirLightSourceElement.' type=.FlyweightCapableTreeStructure origin=INITIALIZE_PROPERTY_FROM_PARAMETER @@ -151,26 +151,26 @@ FILE fqName: fileName:/kt44814.kt receiver: GET_VAR ': .FirLightSourceElement declared in .FirLightSourceElement.' type=.FirLightSourceElement 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 [fake_override,operator] declared in .FirSourceElement + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .FirSourceElement $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 .FirSourceElement + public open fun hashCode (): kotlin.Int declared in .FirSourceElement $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 .FirSourceElement + public open fun toString (): kotlin.String declared in .FirSourceElement $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:PsiElement modality:OPEN visibility:public superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.PsiElement CONSTRUCTOR visibility:public <> () returnType:.PsiElement [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:PsiElement modality:OPEN 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -185,11 +185,11 @@ FILE fqName: fileName:/kt44814.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.ASTNode CONSTRUCTOR visibility:public <> () returnType:.ASTNode [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:ASTNode modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -208,7 +208,7 @@ FILE fqName: fileName:/kt44814.kt CALL 'public final fun emptyList (): kotlin.collections.List declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List<.LighterASTNode?> origin=null : .LighterASTNode? BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:LighterASTNode modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:_children visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:_children type:kotlin.collections.List<.LighterASTNode?> visibility:private [final] @@ -242,7 +242,7 @@ FILE fqName: fileName:/kt44814.kt receiver: GET_VAR ': .LighterASTNode declared in .LighterASTNode.' type=.LighterASTNode 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -257,18 +257,18 @@ FILE fqName: fileName:/kt44814.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.TokenType CONSTRUCTOR visibility:public <> () returnType:.TokenType [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:TokenType modality:FINAL visibility:public superTypes:[kotlin.Any]' CLASS OBJECT name:Companion modality:FINAL visibility:public [companion] superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.TokenType.Companion CONSTRUCTOR visibility:private <> () returnType:.TokenType.Companion [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:Companion modality:FINAL visibility:public [companion] superTypes:[kotlin.Any]' PROPERTY name:MODIFIER_LIST visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:MODIFIER_LIST type:.TokenType visibility:private [final] EXPRESSION_BODY - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .TokenType' type=.TokenType origin=null + CONSTRUCTOR_CALL 'public constructor () declared in .TokenType' type=.TokenType origin=null FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:.TokenType.Companion) returnType:.TokenType correspondingProperty: PROPERTY name:MODIFIER_LIST visibility:public modality:FINAL [val] $this: VALUE_PARAMETER name: type:.TokenType.Companion @@ -278,7 +278,7 @@ FILE fqName: fileName:/kt44814.kt receiver: GET_VAR ': .TokenType.Companion declared in .TokenType.Companion.' type=.TokenType.Companion 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -291,7 +291,7 @@ FILE fqName: fileName:/kt44814.kt $this: VALUE_PARAMETER name: type: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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -306,11 +306,11 @@ FILE fqName: fileName:/kt44814.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.KtModifierKeywordToken CONSTRUCTOR visibility:public <> () returnType:.KtModifierKeywordToken [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:KtModifierKeywordToken modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -325,31 +325,31 @@ FILE fqName: fileName:/kt44814.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.KtModifierList CONSTRUCTOR visibility:public <> () returnType:.KtModifierList [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .PsiElement' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .PsiElement' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:KtModifierList modality:FINAL visibility:public superTypes:[.PsiElement]' 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 .PsiElement + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .PsiElement $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 .PsiElement + public open fun hashCode (): kotlin.Int declared in .PsiElement $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 .PsiElement + public open fun toString (): kotlin.String declared in .PsiElement $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:KtModifierListOwner modality:FINAL visibility:public superTypes:[.PsiElement] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.KtModifierListOwner CONSTRUCTOR visibility:public <> () returnType:.KtModifierListOwner [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .PsiElement' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .PsiElement' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:KtModifierListOwner modality:FINAL visibility:public superTypes:[.PsiElement]' PROPERTY name:modifierList visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:modifierList type:.KtModifierList visibility:private [final] EXPRESSION_BODY - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .KtModifierList' type=.KtModifierList origin=null + CONSTRUCTOR_CALL 'public constructor () declared in .KtModifierList' type=.KtModifierList origin=null FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:.KtModifierListOwner) returnType:.KtModifierList correspondingProperty: PROPERTY name:modifierList visibility:public modality:FINAL [val] $this: VALUE_PARAMETER name: type:.KtModifierListOwner @@ -359,16 +359,16 @@ FILE fqName: fileName:/kt44814.kt receiver: GET_VAR ': .KtModifierListOwner declared in .KtModifierListOwner.' type=.KtModifierListOwner 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 [fake_override,operator] declared in .PsiElement + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .PsiElement $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 .PsiElement + public open fun hashCode (): kotlin.Int declared in .PsiElement $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 .PsiElement + public open fun toString (): kotlin.String declared in .PsiElement $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:FirModifier modality:SEALED visibility:internal superTypes:[kotlin.Any] sealedSubclasses: @@ -380,7 +380,7 @@ FILE fqName: fileName:/kt44814.kt VALUE_PARAMETER name:node index:0 type:Node of .FirModifier VALUE_PARAMETER name:token index:1 type:.KtModifierKeywordToken BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:FirModifier modality:SEALED visibility:internal superTypes:[kotlin.Any]' PROPERTY name:node visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:node type:Node of .FirModifier visibility:private [final] @@ -410,14 +410,14 @@ FILE fqName: fileName:/kt44814.kt VALUE_PARAMETER name:node index:0 type:.ASTNode VALUE_PARAMETER name:token index:1 type:.KtModifierKeywordToken BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'protected constructor (node: Node of .FirModifier, token: .KtModifierKeywordToken) [primary] declared in .FirModifier' + DELEGATING_CONSTRUCTOR_CALL 'protected constructor (node: Node of .FirModifier, token: .KtModifierKeywordToken) declared in .FirModifier' : .ASTNode node: GET_VAR 'node: .ASTNode declared in .FirModifier.FirPsiModifier.' type=.ASTNode origin=null token: GET_VAR 'token: .KtModifierKeywordToken declared in .FirModifier.FirPsiModifier.' type=.KtModifierKeywordToken origin=null INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:FirPsiModifier modality:FINAL visibility:public superTypes:[.FirModifier<.ASTNode>]' PROPERTY FAKE_OVERRIDE name:node visibility:public modality:FINAL [fake_override,val] overridden: - public final node: Node of .FirModifier [val] + public final node: Node of .FirModifier FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.FirModifier<.ASTNode>) returnType:.ASTNode [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:node visibility:public modality:FINAL [fake_override,val] overridden: @@ -425,7 +425,7 @@ FILE fqName: fileName:/kt44814.kt $this: VALUE_PARAMETER name: type:.FirModifier<.ASTNode> PROPERTY FAKE_OVERRIDE name:token visibility:public modality:FINAL [fake_override,val] overridden: - public final token: .KtModifierKeywordToken [val] + public final token: .KtModifierKeywordToken FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.FirModifier<.ASTNode>) returnType:.KtModifierKeywordToken [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:token visibility:public modality:FINAL [fake_override,val] overridden: @@ -433,16 +433,16 @@ FILE fqName: fileName:/kt44814.kt $this: VALUE_PARAMETER name: type:.FirModifier<.ASTNode> 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 .FirModifier + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .FirModifier $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 .FirModifier + public open fun hashCode (): kotlin.Int declared in .FirModifier $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 .FirModifier + public open fun toString (): kotlin.String declared in .FirModifier $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:FirLightModifier modality:FINAL visibility:public superTypes:[.FirModifier<.LighterASTNode>] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.FirModifier.FirLightModifier @@ -451,7 +451,7 @@ FILE fqName: fileName:/kt44814.kt VALUE_PARAMETER name:token index:1 type:.KtModifierKeywordToken VALUE_PARAMETER name:tree index:2 type:.FlyweightCapableTreeStructure BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'protected constructor (node: Node of .FirModifier, token: .KtModifierKeywordToken) [primary] declared in .FirModifier' + DELEGATING_CONSTRUCTOR_CALL 'protected constructor (node: Node of .FirModifier, token: .KtModifierKeywordToken) declared in .FirModifier' : .LighterASTNode node: GET_VAR 'node: .LighterASTNode declared in .FirModifier.FirLightModifier.' type=.LighterASTNode origin=null token: GET_VAR 'token: .KtModifierKeywordToken declared in .FirModifier.FirLightModifier.' type=.KtModifierKeywordToken origin=null @@ -469,7 +469,7 @@ FILE fqName: fileName:/kt44814.kt receiver: GET_VAR ': .FirModifier.FirLightModifier declared in .FirModifier.FirLightModifier.' type=.FirModifier.FirLightModifier origin=null PROPERTY FAKE_OVERRIDE name:node visibility:public modality:FINAL [fake_override,val] overridden: - public final node: Node of .FirModifier [val] + public final node: Node of .FirModifier FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.FirModifier<.LighterASTNode>) returnType:.LighterASTNode [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:node visibility:public modality:FINAL [fake_override,val] overridden: @@ -477,7 +477,7 @@ FILE fqName: fileName:/kt44814.kt $this: VALUE_PARAMETER name: type:.FirModifier<.LighterASTNode> PROPERTY FAKE_OVERRIDE name:token visibility:public modality:FINAL [fake_override,val] overridden: - public final token: .KtModifierKeywordToken [val] + public final token: .KtModifierKeywordToken FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.FirModifier<.LighterASTNode>) returnType:.KtModifierKeywordToken [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:token visibility:public modality:FINAL [fake_override,val] overridden: @@ -485,20 +485,20 @@ FILE fqName: fileName:/kt44814.kt $this: VALUE_PARAMETER name: type:.FirModifier<.LighterASTNode> 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 .FirModifier + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .FirModifier $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 .FirModifier + public open fun hashCode (): kotlin.Int declared in .FirModifier $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 .FirModifier + public open fun toString (): kotlin.String declared in .FirModifier $this: VALUE_PARAMETER name: type: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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -516,7 +516,7 @@ FILE fqName: fileName:/kt44814.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.FirModifierList CONSTRUCTOR visibility:protected <> () returnType:.FirModifierList [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:FirModifierList modality:SEALED visibility:internal superTypes:[kotlin.Any]' PROPERTY name:modifiers visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:modifiers type:kotlin.collections.List<.FirModifier<*>> visibility:private [final] @@ -535,7 +535,7 @@ FILE fqName: fileName:/kt44814.kt CONSTRUCTOR visibility:public <> (modifierList:.KtModifierList) returnType:.FirModifierList.FirPsiModifierList [primary] VALUE_PARAMETER name:modifierList index:0 type:.KtModifierList BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'protected constructor () [primary] declared in .FirModifierList' + DELEGATING_CONSTRUCTOR_CALL 'protected constructor () declared in .FirModifierList' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:FirPsiModifierList modality:FINAL visibility:public superTypes:[.FirModifierList]' PROPERTY name:modifierList visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:modifierList type:.KtModifierList visibility:private [final] @@ -550,7 +550,7 @@ FILE fqName: fileName:/kt44814.kt receiver: GET_VAR ': .FirModifierList.FirPsiModifierList declared in .FirModifierList.FirPsiModifierList.' type=.FirModifierList.FirPsiModifierList origin=null PROPERTY FAKE_OVERRIDE name:modifiers visibility:public modality:FINAL [fake_override,val] overridden: - public final modifiers: kotlin.collections.List<.FirModifier<*>> [val] + public final modifiers: kotlin.collections.List<.FirModifier<*>> FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.FirModifierList) returnType:kotlin.collections.List<.FirModifier<*>> [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:modifiers visibility:public modality:FINAL [fake_override,val] overridden: @@ -558,16 +558,16 @@ FILE fqName: fileName:/kt44814.kt $this: VALUE_PARAMETER name: type:.FirModifierList 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 .FirModifierList + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .FirModifierList $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 .FirModifierList + public open fun hashCode (): kotlin.Int declared in .FirModifierList $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 .FirModifierList + public open fun toString (): kotlin.String declared in .FirModifierList $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:FirLightModifierList modality:FINAL visibility:public superTypes:[.FirModifierList] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.FirModifierList.FirLightModifierList @@ -575,7 +575,7 @@ FILE fqName: fileName:/kt44814.kt VALUE_PARAMETER name:modifierList index:0 type:.LighterASTNode VALUE_PARAMETER name:tree index:1 type:.FlyweightCapableTreeStructure BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'protected constructor () [primary] declared in .FirModifierList' + DELEGATING_CONSTRUCTOR_CALL 'protected constructor () declared in .FirModifierList' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:FirLightModifierList modality:FINAL visibility:public superTypes:[.FirModifierList]' PROPERTY name:modifierList visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:modifierList type:.LighterASTNode visibility:private [final] @@ -601,7 +601,7 @@ FILE fqName: fileName:/kt44814.kt receiver: GET_VAR ': .FirModifierList.FirLightModifierList declared in .FirModifierList.FirLightModifierList.' type=.FirModifierList.FirLightModifierList origin=null PROPERTY FAKE_OVERRIDE name:modifiers visibility:public modality:FINAL [fake_override,val] overridden: - public final modifiers: kotlin.collections.List<.FirModifier<*>> [val] + public final modifiers: kotlin.collections.List<.FirModifier<*>> FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.FirModifierList) returnType:kotlin.collections.List<.FirModifier<*>> [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:modifiers visibility:public modality:FINAL [fake_override,val] overridden: @@ -609,22 +609,22 @@ FILE fqName: fileName:/kt44814.kt $this: VALUE_PARAMETER name: type:.FirModifierList 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 .FirModifierList + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .FirModifierList $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 .FirModifierList + public open fun hashCode (): kotlin.Int declared in .FirModifierList $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 .FirModifierList + public open fun toString (): kotlin.String declared in .FirModifierList $this: VALUE_PARAMETER name: type:kotlin.Any CLASS OBJECT name:Companion modality:FINAL visibility:public [companion] superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.FirModifierList.Companion CONSTRUCTOR visibility:private <> () returnType:.FirModifierList.Companion [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:Companion modality:FINAL visibility:public [companion] superTypes:[kotlin.Any]' FUN name:getModifierList visibility:public modality:FINAL <> ($this:.FirModifierList.Companion, $receiver:.FirSourceElement?) returnType:.FirModifierList? $this: VALUE_PARAMETER name: type:.FirModifierList.Companion @@ -637,12 +637,12 @@ FILE fqName: fileName:/kt44814.kt WHEN type=.FirModifierList? origin=WHEN BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_0: .FirSourceElement? [val] declared in .FirModifierList.Companion.getModifierList' type=.FirSourceElement? origin=null + arg0: GET_VAR 'val tmp_0: .FirSourceElement? declared in .FirModifierList.Companion.getModifierList' type=.FirSourceElement? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=INSTANCEOF typeOperand=.FirPsiSourceElement - GET_VAR 'val tmp_0: .FirSourceElement? [val] declared in .FirModifierList.Companion.getModifierList' type=.FirSourceElement? origin=null + GET_VAR 'val tmp_0: .FirSourceElement? declared in .FirModifierList.Companion.getModifierList' type=.FirSourceElement? origin=null then: BLOCK type=.FirModifierList.FirPsiModifierList? origin=SAFE_CALL VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:.KtModifierList? [val] BLOCK type=.KtModifierList? origin=SAFE_CALL @@ -654,40 +654,40 @@ FILE fqName: fileName:/kt44814.kt WHEN type=.KtModifierList? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_2: .KtModifierListOwner? [val] declared in .FirModifierList.Companion.getModifierList' type=.KtModifierListOwner? origin=null + arg0: GET_VAR 'val tmp_2: .KtModifierListOwner? declared in .FirModifierList.Companion.getModifierList' type=.KtModifierListOwner? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public final fun (): .KtModifierList declared in .KtModifierListOwner' type=.KtModifierList origin=GET_PROPERTY - $this: GET_VAR 'val tmp_2: .KtModifierListOwner? [val] declared in .FirModifierList.Companion.getModifierList' type=.KtModifierListOwner? origin=null + $this: GET_VAR 'val tmp_2: .KtModifierListOwner? declared in .FirModifierList.Companion.getModifierList' type=.KtModifierListOwner? origin=null WHEN type=.FirModifierList.FirPsiModifierList? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_1: .KtModifierList? [val] declared in .FirModifierList.Companion.getModifierList' type=.KtModifierList? origin=null + arg0: GET_VAR 'val tmp_1: .KtModifierList? declared in .FirModifierList.Companion.getModifierList' type=.KtModifierList? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: CALL 'public final fun let (block: kotlin.Function1): R of kotlin.StandardKt.let [inline] declared in kotlin.StandardKt' type=.FirModifierList.FirPsiModifierList origin=null + then: CALL 'public final fun let (block: kotlin.Function1): R of kotlin.StandardKt.let declared in kotlin.StandardKt' type=.FirModifierList.FirPsiModifierList origin=null : .KtModifierList : .FirModifierList.FirPsiModifierList - $receiver: GET_VAR 'val tmp_1: .KtModifierList? [val] declared in .FirModifierList.Companion.getModifierList' type=.KtModifierList? origin=null + $receiver: GET_VAR 'val tmp_1: .KtModifierList? declared in .FirModifierList.Companion.getModifierList' type=.KtModifierList? origin=null block: FUN_EXPR type=kotlin.Function1<.KtModifierList, .FirModifierList.FirPsiModifierList> origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> (it:.KtModifierList) returnType:.FirModifierList.FirPsiModifierList VALUE_PARAMETER name:it index:0 type:.KtModifierList BLOCK_BODY RETURN type=kotlin.Nothing from='local final fun (it: .KtModifierList): .FirModifierList.FirPsiModifierList declared in .FirModifierList.Companion.getModifierList' - CONSTRUCTOR_CALL 'public constructor (modifierList: .KtModifierList) [primary] declared in .FirModifierList.FirPsiModifierList' type=.FirModifierList.FirPsiModifierList origin=null + CONSTRUCTOR_CALL 'public constructor (modifierList: .KtModifierList) declared in .FirModifierList.FirPsiModifierList' type=.FirModifierList.FirPsiModifierList origin=null modifierList: GET_VAR 'it: .KtModifierList declared in .FirModifierList.Companion.getModifierList.' type=.KtModifierList origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=INSTANCEOF typeOperand=.FirLightSourceElement - GET_VAR 'val tmp_0: .FirSourceElement? [val] declared in .FirModifierList.Companion.getModifierList' type=.FirSourceElement? origin=null + GET_VAR 'val tmp_0: .FirSourceElement? declared in .FirModifierList.Companion.getModifierList' type=.FirSourceElement? origin=null then: BLOCK type=.FirModifierList.FirLightModifierList origin=null VAR name:modifierListNode type:.LighterASTNode [val] BLOCK type=.LighterASTNode origin=ELVIS VAR IR_TEMPORARY_VARIABLE name:tmp_3 type:.LighterASTNode? [val] - CALL 'public final fun find (predicate: kotlin.Function1): T of kotlin.collections.CollectionsKt.find? [inline] declared in kotlin.collections.CollectionsKt' type=.LighterASTNode? origin=null + CALL 'public final fun find (predicate: kotlin.Function1): T of kotlin.collections.CollectionsKt.find? declared in kotlin.collections.CollectionsKt' type=.LighterASTNode? origin=null : .LighterASTNode? $receiver: CALL 'public final fun getChildren (treeStructure: .FlyweightCapableTreeStructure): kotlin.collections.List<.LighterASTNode?> declared in .LighterASTNode' type=kotlin.collections.List<.LighterASTNode?> origin=null $this: CALL 'public abstract fun (): .LighterASTNode declared in .FirSourceElement' type=.LighterASTNode origin=GET_PROPERTY @@ -706,27 +706,27 @@ FILE fqName: fileName:/kt44814.kt WHEN type=.TokenType? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_4: .LighterASTNode? [val] declared in .FirModifierList.Companion.getModifierList.' type=.LighterASTNode? origin=null + arg0: GET_VAR 'val tmp_4: .LighterASTNode? declared in .FirModifierList.Companion.getModifierList.' type=.LighterASTNode? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public final fun (): .TokenType declared in .LighterASTNode' type=.TokenType origin=GET_PROPERTY - $this: GET_VAR 'val tmp_4: .LighterASTNode? [val] declared in .FirModifierList.Companion.getModifierList.' type=.LighterASTNode? origin=null + $this: GET_VAR 'val tmp_4: .LighterASTNode? declared in .FirModifierList.Companion.getModifierList.' type=.LighterASTNode? origin=null arg1: CALL 'public final fun (): .TokenType declared in .TokenType.Companion' type=.TokenType origin=GET_PROPERTY $this: GET_OBJECT 'CLASS OBJECT name:Companion modality:FINAL visibility:public [companion] superTypes:[kotlin.Any]' type=.TokenType.Companion WHEN type=.LighterASTNode origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_3: .LighterASTNode? [val] declared in .FirModifierList.Companion.getModifierList' type=.LighterASTNode? origin=null + arg0: GET_VAR 'val tmp_3: .LighterASTNode? declared in .FirModifierList.Companion.getModifierList' type=.LighterASTNode? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: RETURN type=kotlin.Nothing from='public final fun getModifierList (): .FirModifierList? declared in .FirModifierList.Companion' CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val tmp_3: .LighterASTNode? [val] declared in .FirModifierList.Companion.getModifierList' type=.LighterASTNode? origin=null - CONSTRUCTOR_CALL 'public constructor (modifierList: .LighterASTNode, tree: .FlyweightCapableTreeStructure) [primary] declared in .FirModifierList.FirLightModifierList' type=.FirModifierList.FirLightModifierList origin=null - modifierList: GET_VAR 'val modifierListNode: .LighterASTNode [val] declared in .FirModifierList.Companion.getModifierList' type=.LighterASTNode origin=null + then: GET_VAR 'val tmp_3: .LighterASTNode? declared in .FirModifierList.Companion.getModifierList' type=.LighterASTNode? origin=null + CONSTRUCTOR_CALL 'public constructor (modifierList: .LighterASTNode, tree: .FlyweightCapableTreeStructure) declared in .FirModifierList.FirLightModifierList' type=.FirModifierList.FirLightModifierList origin=null + modifierList: GET_VAR 'val modifierListNode: .LighterASTNode declared in .FirModifierList.Companion.getModifierList' type=.LighterASTNode origin=null tree: CALL 'public abstract fun (): .FlyweightCapableTreeStructure declared in .FirSourceElement' type=.FlyweightCapableTreeStructure origin=GET_PROPERTY $this: GET_VAR ': .FirSourceElement? declared in .FirModifierList.Companion.getModifierList' type=.FirSourceElement? origin=null BRANCH @@ -736,28 +736,28 @@ FILE fqName: fileName:/kt44814.kt $this: VALUE_PARAMETER name: type:.FirModifierList.Companion BLOCK_BODY VAR name:sourceElement type:.FirSourceElement? [val] - CONSTRUCTOR_CALL 'public constructor (lighterASTNode: .LighterASTNode, treeStructure: .FlyweightCapableTreeStructure) [primary] declared in .FirLightSourceElement' type=.FirLightSourceElement origin=null - lighterASTNode: CONSTRUCTOR_CALL 'public constructor (_children: kotlin.collections.List<.LighterASTNode?>) [primary] declared in .LighterASTNode' type=.LighterASTNode origin=null + CONSTRUCTOR_CALL 'public constructor (lighterASTNode: .LighterASTNode, treeStructure: .FlyweightCapableTreeStructure) declared in .FirLightSourceElement' type=.FirLightSourceElement origin=null + lighterASTNode: CONSTRUCTOR_CALL 'public constructor (_children: kotlin.collections.List<.LighterASTNode?>) declared in .LighterASTNode' type=.LighterASTNode origin=null _children: CALL 'public final fun listOf (element: T of kotlin.collections.CollectionsKt.listOf): kotlin.collections.List declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List<.LighterASTNode> origin=null : .LighterASTNode - element: CONSTRUCTOR_CALL 'public constructor (_children: kotlin.collections.List<.LighterASTNode?>) [primary] declared in .LighterASTNode' type=.LighterASTNode origin=null - treeStructure: CONSTRUCTOR_CALL 'public constructor () [primary] declared in .FlyweightCapableTreeStructure' type=.FlyweightCapableTreeStructure origin=null + element: CONSTRUCTOR_CALL 'public constructor (_children: kotlin.collections.List<.LighterASTNode?>) declared in .LighterASTNode' type=.LighterASTNode origin=null + treeStructure: CONSTRUCTOR_CALL 'public constructor () declared in .FlyweightCapableTreeStructure' type=.FlyweightCapableTreeStructure origin=null VAR name:result type:.FirModifierList? [val] CALL 'public final fun getModifierList (): .FirModifierList? declared in .FirModifierList.Companion' type=.FirModifierList? origin=null $this: GET_VAR ': .FirModifierList.Companion declared in .FirModifierList.Companion.boxImpl' type=.FirModifierList.Companion origin=null - $receiver: GET_VAR 'val sourceElement: .FirSourceElement? [val] declared in .FirModifierList.Companion.boxImpl' type=.FirSourceElement? origin=null + $receiver: GET_VAR 'val sourceElement: .FirSourceElement? declared in .FirModifierList.Companion.boxImpl' type=.FirSourceElement? origin=null RETURN type=kotlin.Nothing from='public final fun boxImpl (): kotlin.String declared in .FirModifierList.Companion' WHEN type=kotlin.String origin=IF BRANCH if: TYPE_OP type=kotlin.Boolean origin=INSTANCEOF typeOperand=.FirModifierList.FirLightModifierList - GET_VAR 'val result: .FirModifierList? [val] declared in .FirModifierList.Companion.boxImpl' type=.FirModifierList? origin=null + GET_VAR 'val result: .FirModifierList? declared in .FirModifierList.Companion.boxImpl' type=.FirModifierList? origin=null then: CONST String type=kotlin.String value="OK" BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CONST String type=kotlin.String value="Fail" 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -770,7 +770,7 @@ FILE fqName: fileName:/kt44814.kt $this: VALUE_PARAMETER name: type: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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/codegen/box/unsignedTypes/implicitIntegerCoercionNamedArg.fir.ir.txt b/compiler/testData/codegen/box/unsignedTypes/implicitIntegerCoercionNamedArg.fir.ir.txt index faec5539513..a6a53f0322b 100644 --- a/compiler/testData/codegen/box/unsignedTypes/implicitIntegerCoercionNamedArg.fir.ir.txt +++ b/compiler/testData/codegen/box/unsignedTypes/implicitIntegerCoercionNamedArg.fir.ir.txt @@ -3,20 +3,20 @@ FILE fqName:kotlin.internal fileName:/annotation.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:kotlin.internal.ImplicitIntegerCoercion CONSTRUCTOR visibility:public <> () returnType:kotlin.internal.ImplicitIntegerCoercion [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:ImplicitIntegerCoercion modality:OPEN visibility:public superTypes:[kotlin.Annotation]' 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 kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any FILE fqName: fileName:/test.kt FUN name:testInt visibility:public modality:FINAL <> (x:kotlin.UInt) returnType:kotlin.UInt @@ -40,39 +40,39 @@ FILE fqName: fileName:/test.kt RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' WHEN type=kotlin.String origin=WHEN BRANCH - if: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ + if: CALL 'public final fun not (): kotlin.Boolean 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: CALL 'public final fun testInt (x: kotlin.UInt): kotlin.UInt declared in ' type=kotlin.UInt origin=null - x: CALL 'public final fun toUInt (): kotlin.UInt [inline] declared in kotlin' type=kotlin.UInt origin=null + x: CALL 'public final fun toUInt (): kotlin.UInt declared in kotlin' type=kotlin.UInt origin=null $receiver: CONST Int type=kotlin.Int value=5 - arg1: CALL 'public final fun toUInt (): kotlin.UInt [inline] declared in kotlin' type=kotlin.UInt origin=null + arg1: CALL 'public final fun toUInt (): kotlin.UInt declared in kotlin' type=kotlin.UInt origin=null $receiver: CONST Int type=kotlin.Int value=5 then: CONST String type=kotlin.String value="Fail: testInt(5)" BRANCH - if: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ + if: CALL 'public final fun not (): kotlin.Boolean 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: CALL 'public final fun testInt (x: kotlin.UInt): kotlin.UInt declared in ' type=kotlin.UInt origin=null - x: CALL 'public final fun toUInt (): kotlin.UInt [inline] declared in kotlin' type=kotlin.UInt origin=null + x: CALL 'public final fun toUInt (): kotlin.UInt declared in kotlin' type=kotlin.UInt origin=null $receiver: CONST Int type=kotlin.Int value=5 - arg1: CALL 'public final fun toUInt (): kotlin.UInt [inline] declared in kotlin' type=kotlin.UInt origin=null + arg1: CALL 'public final fun toUInt (): kotlin.UInt declared in kotlin' type=kotlin.UInt origin=null $receiver: CONST Int type=kotlin.Int value=5 then: CONST String type=kotlin.String value="Fail: testInt(x = 5)" BRANCH - if: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ + if: CALL 'public final fun not (): kotlin.Boolean 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: CALL 'public final fun testLong (x: kotlin.ULong): kotlin.ULong declared in ' type=kotlin.ULong origin=null - x: CALL 'public final fun toULong (): kotlin.ULong [inline] declared in kotlin' type=kotlin.ULong origin=null + x: CALL 'public final fun toULong (): kotlin.ULong declared in kotlin' type=kotlin.ULong origin=null $receiver: CONST Int type=kotlin.Int value=5 - arg1: CALL 'public final fun toULong (): kotlin.ULong [inline] declared in kotlin' type=kotlin.ULong origin=null + arg1: CALL 'public final fun toULong (): kotlin.ULong declared in kotlin' type=kotlin.ULong origin=null $receiver: CONST Long type=kotlin.Long value=5 then: CONST String type=kotlin.String value="Fail: testLong(5L)" BRANCH - if: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ + if: CALL 'public final fun not (): kotlin.Boolean 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: CALL 'public final fun testLong (x: kotlin.ULong): kotlin.ULong declared in ' type=kotlin.ULong origin=null - x: CALL 'public final fun toULong (): kotlin.ULong [inline] declared in kotlin' type=kotlin.ULong origin=null + x: CALL 'public final fun toULong (): kotlin.ULong declared in kotlin' type=kotlin.ULong origin=null $receiver: CONST Int type=kotlin.Int value=5 - arg1: CALL 'public final fun toULong (): kotlin.ULong [inline] declared in kotlin' type=kotlin.ULong origin=null + arg1: CALL 'public final fun toULong (): kotlin.ULong declared in kotlin' type=kotlin.ULong origin=null $receiver: CONST Long type=kotlin.Long value=5 then: CONST String type=kotlin.String value="Fail: testLong(x = 5L)" BRANCH diff --git a/compiler/testData/codegen/box/unsignedTypes/implicitIntegerCoercionNamedArg.ir.txt b/compiler/testData/codegen/box/unsignedTypes/implicitIntegerCoercionNamedArg.ir.txt index 93b0734c90c..3c386f3c2e2 100644 --- a/compiler/testData/codegen/box/unsignedTypes/implicitIntegerCoercionNamedArg.ir.txt +++ b/compiler/testData/codegen/box/unsignedTypes/implicitIntegerCoercionNamedArg.ir.txt @@ -3,20 +3,20 @@ FILE fqName:kotlin.internal fileName:/annotation.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:kotlin.internal.ImplicitIntegerCoercion CONSTRUCTOR visibility:public <> () returnType:kotlin.internal.ImplicitIntegerCoercion [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:ImplicitIntegerCoercion modality:OPEN visibility:public superTypes:[kotlin.Annotation]' 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 kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any FILE fqName: fileName:/test.kt FUN name:testInt visibility:public modality:FINAL <> (x:kotlin.UInt) returnType:kotlin.UInt @@ -40,35 +40,35 @@ FILE fqName: fileName:/test.kt RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' WHEN type=kotlin.String origin=WHEN BRANCH - if: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ + if: CALL 'public final fun not (): kotlin.Boolean 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: CALL 'public final fun testInt (x: kotlin.UInt): kotlin.UInt declared in ' type=kotlin.UInt origin=null x: CONST Int type=kotlin.UInt value=5 - arg1: CALL 'public final fun toUInt (): kotlin.UInt [inline] declared in kotlin' type=kotlin.UInt origin=null + arg1: CALL 'public final fun toUInt (): kotlin.UInt declared in kotlin' type=kotlin.UInt origin=null $receiver: CONST Int type=kotlin.Int value=5 then: CONST String type=kotlin.String value="Fail: testInt(5)" BRANCH - if: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ + if: CALL 'public final fun not (): kotlin.Boolean 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: CALL 'public final fun testInt (x: kotlin.UInt): kotlin.UInt declared in ' type=kotlin.UInt origin=null x: CONST Int type=kotlin.UInt value=5 - arg1: CALL 'public final fun toUInt (): kotlin.UInt [inline] declared in kotlin' type=kotlin.UInt origin=null + arg1: CALL 'public final fun toUInt (): kotlin.UInt declared in kotlin' type=kotlin.UInt origin=null $receiver: CONST Int type=kotlin.Int value=5 then: CONST String type=kotlin.String value="Fail: testInt(x = 5)" BRANCH - if: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ + if: CALL 'public final fun not (): kotlin.Boolean 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: CALL 'public final fun testLong (x: kotlin.ULong): kotlin.ULong declared in ' type=kotlin.ULong origin=null x: CONST Long type=kotlin.ULong value=5 - arg1: CALL 'public final fun toULong (): kotlin.ULong [inline] declared in kotlin' type=kotlin.ULong origin=null + arg1: CALL 'public final fun toULong (): kotlin.ULong declared in kotlin' type=kotlin.ULong origin=null $receiver: CONST Long type=kotlin.Long value=5 then: CONST String type=kotlin.String value="Fail: testLong(5L)" BRANCH - if: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ + if: CALL 'public final fun not (): kotlin.Boolean 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: CALL 'public final fun testLong (x: kotlin.ULong): kotlin.ULong declared in ' type=kotlin.ULong origin=null x: CONST Long type=kotlin.ULong value=5 - arg1: CALL 'public final fun toULong (): kotlin.ULong [inline] declared in kotlin' type=kotlin.ULong origin=null + arg1: CALL 'public final fun toULong (): kotlin.ULong declared in kotlin' type=kotlin.ULong origin=null $receiver: CONST Long type=kotlin.Long value=5 then: CONST String type=kotlin.String value="Fail: testLong(x = 5L)" BRANCH diff --git a/compiler/testData/codegen/boxModernJdk/testsWithJava17/records/recordWithCompanion.fir.ir.txt b/compiler/testData/codegen/boxModernJdk/testsWithJava17/records/recordWithCompanion.fir.ir.txt index 5d8316d907e..7707eb9ac98 100644 --- a/compiler/testData/codegen/boxModernJdk/testsWithJava17/records/recordWithCompanion.fir.ir.txt +++ b/compiler/testData/codegen/boxModernJdk/testsWithJava17/records/recordWithCompanion.fir.ir.txt @@ -23,11 +23,11 @@ FILE fqName: fileName:/recordWithCompanion.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Tag.Companion CONSTRUCTOR visibility:private <> () returnType:.Tag.Companion [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:Companion modality:FINAL visibility:public [companion] 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -41,7 +41,7 @@ FILE fqName: fileName:/recordWithCompanion.kt FUN GENERATED_DATA_CLASS_MEMBER name:component1 visibility:public modality:FINAL <> ($this:.Tag) returnType:kotlin.String [operator] $this: VALUE_PARAMETER name: type:.Tag BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.String [operator] declared in .Tag' + RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.String declared in .Tag' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:id type:kotlin.String visibility:private [final]' type=kotlin.String origin=null receiver: GET_VAR ': .Tag declared in .Tag.component1' type=.Tag origin=null FUN GENERATED_DATA_CLASS_MEMBER name:copy visibility:public modality:FINAL <> ($this:.Tag, id:kotlin.String) returnType:.Tag @@ -52,11 +52,11 @@ FILE fqName: fileName:/recordWithCompanion.kt receiver: GET_VAR ': .Tag declared in .Tag.copy' type=.Tag origin=null BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun copy (id: kotlin.String): .Tag declared in .Tag' - CONSTRUCTOR_CALL 'public constructor (id: kotlin.String) [primary] declared in .Tag' type=.Tag origin=null + CONSTRUCTOR_CALL 'public constructor (id: kotlin.String) declared in .Tag' type=.Tag origin=null id: GET_VAR 'id: kotlin.String declared in .Tag.copy' type=kotlin.String origin=null FUN GENERATED_DATA_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:.Tag, other:kotlin.Any?) returnType:kotlin.Boolean [operator] overridden: - public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any $this: VALUE_PARAMETER name: type:.Tag VALUE_PARAMETER name:other index:0 type:kotlin.Any? BLOCK_BODY @@ -65,28 +65,28 @@ FILE fqName: fileName:/recordWithCompanion.kt 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 ': .Tag declared in .Tag.equals' type=.Tag origin=null arg1: GET_VAR 'other: kotlin.Any? declared in .Tag.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Tag' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Tag' CONST Boolean type=kotlin.Boolean value=true WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=.Tag GET_VAR 'other: kotlin.Any? declared in .Tag.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Tag' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Tag' CONST Boolean type=kotlin.Boolean value=false VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:.Tag [val] TYPE_OP type=.Tag origin=CAST typeOperand=.Tag GET_VAR 'other: kotlin.Any? declared in .Tag.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 + if: CALL 'public final fun not (): kotlin.Boolean 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:id type:kotlin.String visibility:private [final]' type=kotlin.String origin=null receiver: GET_VAR ': .Tag declared in .Tag.equals' type=.Tag origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:id type:kotlin.String visibility:private [final]' type=kotlin.String origin=null - receiver: GET_VAR 'val tmp_0: .Tag [val] declared in .Tag.equals' type=.Tag origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Tag' + receiver: GET_VAR 'val tmp_0: .Tag declared in .Tag.equals' type=.Tag origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Tag' CONST Boolean type=kotlin.Boolean value=false - RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Tag' + RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Tag' CONST Boolean type=kotlin.Boolean value=true FUN GENERATED_DATA_CLASS_MEMBER name:hashCode visibility:public modality:OPEN <> ($this:.Tag) returnType:kotlin.Int overridden: @@ -94,7 +94,7 @@ FILE fqName: fileName:/recordWithCompanion.kt $this: VALUE_PARAMETER name: type:.Tag BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun hashCode (): kotlin.Int declared in .Tag' - CALL 'public open fun hashCode (): kotlin.Int [fake_override] declared in kotlin.String' type=kotlin.Int origin=null + CALL 'public open fun hashCode (): kotlin.Int declared in kotlin.String' type=kotlin.Int origin=null $this: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:id type:kotlin.String visibility:private [final]' type=kotlin.String origin=null receiver: GET_VAR ': .Tag declared in .Tag.hashCode' type=.Tag origin=null FUN GENERATED_DATA_CLASS_MEMBER name:toString visibility:public modality:OPEN <> ($this:.Tag) returnType:kotlin.String @@ -112,7 +112,7 @@ FILE fqName: fileName:/recordWithCompanion.kt BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' CALL 'public final fun (): kotlin.String declared in .Tag' type=kotlin.String origin=GET_PROPERTY - $this: CONSTRUCTOR_CALL 'public constructor (id: kotlin.String) [primary] declared in .Tag' type=.Tag origin=null + $this: CONSTRUCTOR_CALL 'public constructor (id: kotlin.String) declared in .Tag' type=.Tag origin=null id: CONST String type=kotlin.String value="OK" FILE fqName: fileName:/Generated_Box_Main.kt FUN name:main visibility:public modality:FINAL <> () returnType:kotlin.Unit [suspend] @@ -121,10 +121,10 @@ FILE fqName: fileName:/Generated_Box_Main.kt CALL 'public final fun box (): kotlin.String declared in ' type=kotlin.String origin=null WHEN type=kotlin.Unit origin=IF BRANCH - if: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ + if: CALL 'public final fun not (): kotlin.Boolean 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_VAR 'val res: kotlin.String [val] declared in .main' type=kotlin.String origin=null + arg0: GET_VAR 'val res: kotlin.String declared in .main' type=kotlin.String origin=null arg1: CONST String type=kotlin.String value="OK" then: THROW type=kotlin.Nothing CONSTRUCTOR_CALL 'public constructor (p0: @[FlexibleNullability] kotlin.Any?) declared in java.lang.AssertionError' type=java.lang.AssertionError origin=null - p0: GET_VAR 'val res: kotlin.String [val] declared in .main' type=kotlin.String origin=null + p0: GET_VAR 'val res: kotlin.String declared in .main' type=kotlin.String origin=null diff --git a/compiler/testData/codegen/boxModernJdk/testsWithJava17/records/recordWithCompanion.ir.txt b/compiler/testData/codegen/boxModernJdk/testsWithJava17/records/recordWithCompanion.ir.txt index 150f7c839d1..fa1f1bdb69f 100644 --- a/compiler/testData/codegen/boxModernJdk/testsWithJava17/records/recordWithCompanion.ir.txt +++ b/compiler/testData/codegen/boxModernJdk/testsWithJava17/records/recordWithCompanion.ir.txt @@ -23,11 +23,11 @@ FILE fqName: fileName:/recordWithCompanion.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Tag.Companion CONSTRUCTOR visibility:private <> () returnType:.Tag.Companion [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:Companion modality:FINAL visibility:public [companion] 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -41,7 +41,7 @@ FILE fqName: fileName:/recordWithCompanion.kt FUN GENERATED_DATA_CLASS_MEMBER name:component1 visibility:public modality:FINAL <> ($this:.Tag) returnType:kotlin.String [operator] $this: VALUE_PARAMETER name: type:.Tag BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.String [operator] declared in .Tag' + RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.String declared in .Tag' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:id type:kotlin.String visibility:private [final]' type=kotlin.String origin=null receiver: GET_VAR ': .Tag declared in .Tag.component1' type=.Tag origin=null FUN GENERATED_DATA_CLASS_MEMBER name:copy visibility:public modality:FINAL <> ($this:.Tag, id:kotlin.String) returnType:.Tag @@ -52,7 +52,7 @@ FILE fqName: fileName:/recordWithCompanion.kt receiver: GET_VAR ': .Tag declared in .Tag.copy' type=.Tag origin=null BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun copy (id: kotlin.String): .Tag declared in .Tag' - CONSTRUCTOR_CALL 'public constructor (id: kotlin.String) [primary] declared in .Tag' type=.Tag origin=null + CONSTRUCTOR_CALL 'public constructor (id: kotlin.String) declared in .Tag' type=.Tag origin=null id: GET_VAR 'id: kotlin.String declared in .Tag.copy' type=kotlin.String origin=null FUN GENERATED_DATA_CLASS_MEMBER name:toString visibility:public modality:OPEN <> ($this:.Tag) returnType:kotlin.String overridden: @@ -72,12 +72,12 @@ FILE fqName: fileName:/recordWithCompanion.kt $this: VALUE_PARAMETER name: type:.Tag BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun hashCode (): kotlin.Int declared in .Tag' - CALL 'public open fun hashCode (): kotlin.Int [fake_override] declared in kotlin.String' type=kotlin.Int origin=null + CALL 'public open fun hashCode (): kotlin.Int declared in kotlin.String' type=kotlin.Int origin=null $this: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:id type:kotlin.String visibility:private [final]' type=kotlin.String origin=null receiver: GET_VAR ': .Tag declared in .Tag.hashCode' type=.Tag origin=null FUN GENERATED_DATA_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:.Tag, other:kotlin.Any?) returnType:kotlin.Boolean [operator] overridden: - public abstract fun equals (other: @[EnhancedNullability] kotlin.Any?): kotlin.Boolean [operator] declared in java.lang.Record + public abstract fun equals (other: @[EnhancedNullability] kotlin.Any?): kotlin.Boolean declared in java.lang.Record $this: VALUE_PARAMETER name: type:.Tag VALUE_PARAMETER name:other index:0 type:kotlin.Any? BLOCK_BODY @@ -86,34 +86,34 @@ FILE fqName: fileName:/recordWithCompanion.kt 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 ': .Tag declared in .Tag.equals' type=.Tag origin=null arg1: GET_VAR 'other: kotlin.Any? declared in .Tag.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Tag' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Tag' CONST Boolean type=kotlin.Boolean value=true WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=.Tag GET_VAR 'other: kotlin.Any? declared in .Tag.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Tag' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Tag' CONST Boolean type=kotlin.Boolean value=false VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:.Tag [val] TYPE_OP type=.Tag origin=CAST typeOperand=.Tag GET_VAR 'other: kotlin.Any? declared in .Tag.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 + if: CALL 'public final fun not (): kotlin.Boolean 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:id type:kotlin.String visibility:private [final]' type=kotlin.String origin=null receiver: GET_VAR ': .Tag declared in .Tag.equals' type=.Tag origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:id type:kotlin.String visibility:private [final]' type=kotlin.String origin=null - receiver: GET_VAR 'val tmp_0: .Tag [val] declared in .Tag.equals' type=.Tag origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Tag' + receiver: GET_VAR 'val tmp_0: .Tag declared in .Tag.equals' type=.Tag origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Tag' CONST Boolean type=kotlin.Boolean value=false - RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Tag' + RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Tag' CONST Boolean type=kotlin.Boolean value=true FUN name:box visibility:public modality:FINAL <> () returnType:kotlin.String BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' CALL 'public final fun (): kotlin.String declared in .Tag' type=kotlin.String origin=GET_PROPERTY - $this: CONSTRUCTOR_CALL 'public constructor (id: kotlin.String) [primary] declared in .Tag' type=.Tag origin=null + $this: CONSTRUCTOR_CALL 'public constructor (id: kotlin.String) declared in .Tag' type=.Tag origin=null id: CONST String type=kotlin.String value="OK" FILE fqName: fileName:/Generated_Box_Main.kt FUN name:main visibility:public modality:FINAL <> () returnType:kotlin.Unit [suspend] @@ -122,10 +122,10 @@ FILE fqName: fileName:/Generated_Box_Main.kt CALL 'public final fun box (): kotlin.String declared in ' type=kotlin.String origin=null WHEN type=kotlin.Unit origin=IF BRANCH - if: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ + if: CALL 'public final fun not (): kotlin.Boolean 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_VAR 'val res: kotlin.String [val] declared in .main' type=kotlin.String origin=null + arg0: GET_VAR 'val res: kotlin.String declared in .main' type=kotlin.String origin=null arg1: CONST String type=kotlin.String value="OK" then: THROW type=kotlin.Nothing CONSTRUCTOR_CALL 'public constructor (p0: @[FlexibleNullability] kotlin.Any?) declared in java.lang.AssertionError' type=java.lang.AssertionError origin=null - p0: GET_VAR 'val res: kotlin.String [val] declared in .main' type=kotlin.String origin=null + p0: GET_VAR 'val res: kotlin.String declared in .main' type=kotlin.String origin=null diff --git a/compiler/testData/ir/irText/classes/47424.ir.txt b/compiler/testData/ir/irText/classes/47424.ir.txt index 65b4b312d2b..46d099e6a75 100644 --- a/compiler/testData/ir/irText/classes/47424.ir.txt +++ b/compiler/testData/ir/irText/classes/47424.ir.txt @@ -3,7 +3,7 @@ FILE fqName:com.example fileName:/47424.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:com.example.Aa 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -19,22 +19,22 @@ FILE fqName:com.example fileName:/47424.kt TYPE_PARAMETER name:T index:0 variance: superTypes:[com.example.Ab] reified:false 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 com.example.Aa + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in com.example.Aa $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 com.example.Aa + public open fun hashCode (): kotlin.Int declared in com.example.Aa $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 com.example.Aa + public open fun toString (): kotlin.String declared in com.example.Aa $this: VALUE_PARAMETER name: type:kotlin.Any CLASS INTERFACE name:Ba modality:ABSTRACT visibility:public superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:com.example.Ba 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -50,19 +50,19 @@ FILE fqName:com.example fileName:/47424.kt TYPE_PARAMETER name:T index:0 variance: superTypes:[com.example.Bb] reified:false 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 com.example.Ab - public open fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in com.example.Ba + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in com.example.Ab + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in com.example.Ba $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 com.example.Ab - public open fun hashCode (): kotlin.Int [fake_override] declared in com.example.Ba + public open fun hashCode (): kotlin.Int declared in com.example.Ab + public open fun hashCode (): kotlin.Int declared in com.example.Ba $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 com.example.Ab - public open fun toString (): kotlin.String [fake_override] declared in com.example.Ba + public open fun toString (): kotlin.String declared in com.example.Ab + public open fun toString (): kotlin.String declared in com.example.Ba $this: VALUE_PARAMETER name: type:kotlin.Any CLASS INTERFACE name:Ca modality:ABSTRACT visibility:public superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:com.example.Ca @@ -72,7 +72,7 @@ FILE fqName:com.example fileName:/47424.kt $this: VALUE_PARAMETER name: type:com.example.Ca 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -91,7 +91,7 @@ FILE fqName:com.example fileName:/47424.kt $this: VALUE_PARAMETER name: type:com.example.Cb 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -106,8 +106,8 @@ FILE fqName:com.example fileName:/47424.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:com.example.C PROPERTY FAKE_OVERRIDE name:b visibility:public modality:ABSTRACT [fake_override,val] overridden: - public abstract b: com.example.Bb<*> [val] - public abstract b: com.example.Ba [val] + public abstract b: com.example.Bb<*> + public abstract b: com.example.Ba FUN FAKE_OVERRIDE name: visibility:public modality:ABSTRACT <> ($this:com.example.Cb) returnType:com.example.Bb<*> [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:b visibility:public modality:ABSTRACT [fake_override,val] overridden: @@ -116,17 +116,17 @@ FILE fqName:com.example fileName:/47424.kt $this: VALUE_PARAMETER name: type:com.example.Cb 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 com.example.Cb - public open fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in com.example.Ca + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in com.example.Cb + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in com.example.Ca $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 com.example.Cb - public open fun hashCode (): kotlin.Int [fake_override] declared in com.example.Ca + public open fun hashCode (): kotlin.Int declared in com.example.Cb + public open fun hashCode (): kotlin.Int declared in com.example.Ca $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 com.example.Cb - public open fun toString (): kotlin.String [fake_override] declared in com.example.Ca + public open fun toString (): kotlin.String declared in com.example.Cb + public open fun toString (): kotlin.String declared in com.example.Ca $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/classes/abstractMembers.ir.txt b/compiler/testData/ir/irText/classes/abstractMembers.ir.txt index b7f5dfd3421..182fb6e64ef 100644 --- a/compiler/testData/ir/irText/classes/abstractMembers.ir.txt +++ b/compiler/testData/ir/irText/classes/abstractMembers.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/abstractMembers.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.AbstractClass CONSTRUCTOR visibility:public <> () returnType:.AbstractClass [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:AbstractClass modality:ABSTRACT visibility:public superTypes:[kotlin.Any]' FUN name:abstractFun visibility:public modality:ABSTRACT <> ($this:.AbstractClass) returnType:kotlin.Unit $this: VALUE_PARAMETER name: type:.AbstractClass @@ -21,7 +21,7 @@ FILE fqName: fileName:/abstractMembers.kt VALUE_PARAMETER name: index:0 type:kotlin.Int 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -50,7 +50,7 @@ FILE fqName: fileName:/abstractMembers.kt VALUE_PARAMETER name: index:0 type:kotlin.Int 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/classes/annotationClasses.ir.txt b/compiler/testData/ir/irText/classes/annotationClasses.ir.txt index 25da9f6881c..3094b055808 100644 --- a/compiler/testData/ir/irText/classes/annotationClasses.ir.txt +++ b/compiler/testData/ir/irText/classes/annotationClasses.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/annotationClasses.kt CONSTRUCTOR visibility:public <> (x:kotlin.Int) returnType:.Test1 [primary] VALUE_PARAMETER name:x index:0 type:kotlin.Int BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:Test1 modality:OPEN visibility:public superTypes:[kotlin.Annotation]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private [final] @@ -19,16 +19,16 @@ FILE fqName: fileName:/annotationClasses.kt receiver: GET_VAR ': .Test1 declared in .Test1.' type=.Test1 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 [fake_override,operator] declared in kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any CLASS ANNOTATION_CLASS name:Test2 modality:OPEN visibility:public superTypes:[kotlin.Annotation] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Test2 @@ -37,7 +37,7 @@ FILE fqName: fileName:/annotationClasses.kt EXPRESSION_BODY CONST Int type=kotlin.Int value=0 BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:Test2 modality:OPEN visibility:public superTypes:[kotlin.Annotation]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private [final] @@ -52,23 +52,23 @@ FILE fqName: fileName:/annotationClasses.kt receiver: GET_VAR ': .Test2 declared in .Test2.' type=.Test2 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 [fake_override,operator] declared in kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any CLASS ANNOTATION_CLASS name:Test3 modality:OPEN visibility:public superTypes:[kotlin.Annotation] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Test3 CONSTRUCTOR visibility:public <> (x:.Test1) returnType:.Test3 [primary] VALUE_PARAMETER name:x index:0 type:.Test1 BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:Test3 modality:OPEN visibility:public superTypes:[kotlin.Annotation]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:.Test1 visibility:private [final] @@ -83,28 +83,28 @@ FILE fqName: fileName:/annotationClasses.kt receiver: GET_VAR ': .Test3 declared in .Test3.' type=.Test3 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 [fake_override,operator] declared in kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any CLASS ANNOTATION_CLASS name:Test4 modality:OPEN visibility:public superTypes:[kotlin.Annotation] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Test4 CONSTRUCTOR visibility:public <> (xs:kotlin.IntArray) returnType:.Test4 [primary] VALUE_PARAMETER name:xs index:0 type:kotlin.IntArray varargElementType:kotlin.Int [vararg] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:Test4 modality:OPEN visibility:public superTypes:[kotlin.Annotation]' PROPERTY name:xs visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:xs type:kotlin.IntArray visibility:private [final] EXPRESSION_BODY - GET_VAR 'xs: kotlin.IntArray [vararg] declared in .Test4.' type=kotlin.IntArray origin=INITIALIZE_PROPERTY_FROM_PARAMETER + GET_VAR 'xs: kotlin.IntArray declared in .Test4.' type=kotlin.IntArray origin=INITIALIZE_PROPERTY_FROM_PARAMETER FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:.Test4) returnType:kotlin.IntArray correspondingProperty: PROPERTY name:xs visibility:public modality:FINAL [val] $this: VALUE_PARAMETER name: type:.Test4 @@ -114,14 +114,14 @@ FILE fqName: fileName:/annotationClasses.kt receiver: GET_VAR ': .Test4 declared in .Test4.' type=.Test4 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 [fake_override,operator] declared in kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/classes/argumentReorderingInDelegatingConstructorCall.ir.txt b/compiler/testData/ir/irText/classes/argumentReorderingInDelegatingConstructorCall.ir.txt index ec5cd288843..14d8f210dc5 100644 --- a/compiler/testData/ir/irText/classes/argumentReorderingInDelegatingConstructorCall.ir.txt +++ b/compiler/testData/ir/irText/classes/argumentReorderingInDelegatingConstructorCall.ir.txt @@ -5,7 +5,7 @@ FILE fqName: fileName:/argumentReorderingInDelegatingConstructorCall.kt VALUE_PARAMETER name:x index:0 type:kotlin.Int VALUE_PARAMETER name:y index:1 type:kotlin.Int BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Base modality:OPEN visibility:public superTypes:[kotlin.Any]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private [final] @@ -31,7 +31,7 @@ FILE fqName: fileName:/argumentReorderingInDelegatingConstructorCall.kt receiver: GET_VAR ': .Base declared in .Base.' type=.Base 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -48,13 +48,13 @@ FILE fqName: fileName:/argumentReorderingInDelegatingConstructorCall.kt VALUE_PARAMETER name:xx index:0 type:kotlin.Int VALUE_PARAMETER name:yy index:1 type:kotlin.Int BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor (x: kotlin.Int, y: kotlin.Int) [primary] declared in .Base' + DELEGATING_CONSTRUCTOR_CALL 'public constructor (x: kotlin.Int, y: kotlin.Int) declared in .Base' x: GET_VAR 'xx: kotlin.Int declared in .Test1.' type=kotlin.Int origin=null y: GET_VAR 'yy: kotlin.Int declared in .Test1.' type=kotlin.Int origin=null INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test1 modality:FINAL visibility:public superTypes:[.Base]' PROPERTY FAKE_OVERRIDE name:x visibility:public modality:FINAL [fake_override,val] overridden: - public final x: kotlin.Int [val] + public final x: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.Base) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:x visibility:public modality:FINAL [fake_override,val] overridden: @@ -62,7 +62,7 @@ FILE fqName: fileName:/argumentReorderingInDelegatingConstructorCall.kt $this: VALUE_PARAMETER name: type:.Base PROPERTY FAKE_OVERRIDE name:y visibility:public modality:FINAL [fake_override,val] overridden: - public final y: kotlin.Int [val] + public final y: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.Base) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:y visibility:public modality:FINAL [fake_override,val] overridden: @@ -70,16 +70,16 @@ FILE fqName: fileName:/argumentReorderingInDelegatingConstructorCall.kt $this: VALUE_PARAMETER 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 [fake_override,operator] declared in .Base + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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 + public open fun hashCode (): kotlin.Int 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 + public open fun toString (): kotlin.String declared in .Base $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:Test2 modality:FINAL visibility:public superTypes:[.Base] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Test2 @@ -87,7 +87,7 @@ FILE fqName: fileName:/argumentReorderingInDelegatingConstructorCall.kt VALUE_PARAMETER name:xx index:0 type:kotlin.Int VALUE_PARAMETER name:yy index:1 type:kotlin.Int BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor (x: kotlin.Int, y: kotlin.Int) [primary] declared in .Base' + DELEGATING_CONSTRUCTOR_CALL 'public constructor (x: kotlin.Int, y: kotlin.Int) declared in .Base' x: GET_VAR 'xx: kotlin.Int declared in .Test2.' type=kotlin.Int origin=null y: GET_VAR 'yy: kotlin.Int declared in .Test2.' type=kotlin.Int origin=null INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test2 modality:FINAL visibility:public superTypes:[.Base]' @@ -101,7 +101,7 @@ FILE fqName: fileName:/argumentReorderingInDelegatingConstructorCall.kt yy: GET_VAR 'yyy: kotlin.Int declared in .Test2.' type=kotlin.Int origin=null PROPERTY FAKE_OVERRIDE name:x visibility:public modality:FINAL [fake_override,val] overridden: - public final x: kotlin.Int [val] + public final x: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.Base) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:x visibility:public modality:FINAL [fake_override,val] overridden: @@ -109,7 +109,7 @@ FILE fqName: fileName:/argumentReorderingInDelegatingConstructorCall.kt $this: VALUE_PARAMETER name: type:.Base PROPERTY FAKE_OVERRIDE name:y visibility:public modality:FINAL [fake_override,val] overridden: - public final y: kotlin.Int [val] + public final y: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.Base) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:y visibility:public modality:FINAL [fake_override,val] overridden: @@ -117,14 +117,14 @@ FILE fqName: fileName:/argumentReorderingInDelegatingConstructorCall.kt $this: VALUE_PARAMETER 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 [fake_override,operator] declared in .Base + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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 + public open fun hashCode (): kotlin.Int 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 + public open fun toString (): kotlin.String declared in .Base $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/classes/clashingFakeOverrideSignatures.ir.txt b/compiler/testData/ir/irText/classes/clashingFakeOverrideSignatures.ir.txt index 596fed182a2..c4b40f7b92f 100644 --- a/compiler/testData/ir/irText/classes/clashingFakeOverrideSignatures.ir.txt +++ b/compiler/testData/ir/irText/classes/clashingFakeOverrideSignatures.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/clashingFakeOverrideSignatures.kt TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false CONSTRUCTOR visibility:public <> () returnType:.Base.Base> [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Base modality:OPEN visibility:public superTypes:[kotlin.Any]' FUN name:foo visibility:public modality:FINAL <> ($this:.Base.Base>, x:T of .Base) returnType:kotlin.Unit $this: VALUE_PARAMETER name: type:.Base.Base> @@ -32,7 +32,7 @@ FILE fqName: fileName:/clashingFakeOverrideSignatures.kt CONST Int type=kotlin.Int value=2 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -47,7 +47,7 @@ FILE fqName: fileName:/clashingFakeOverrideSignatures.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Derived CONSTRUCTOR visibility:public <> () returnType:.Derived [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .Base' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .Base' : kotlin.String INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Derived modality:OPEN visibility:public superTypes:[.Base]' FUN FAKE_OVERRIDE name:foo visibility:public modality:FINAL <> ($this:.Base, x:kotlin.String) returnType:kotlin.Unit [fake_override] @@ -62,7 +62,7 @@ FILE fqName: fileName:/clashingFakeOverrideSignatures.kt VALUE_PARAMETER name:y index:0 type:kotlin.String PROPERTY FAKE_OVERRIDE name:bar visibility:public modality:FINAL [fake_override,val] overridden: - public final bar: kotlin.Int [val] + public final bar: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.Base, $receiver:kotlin.String) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:bar visibility:public modality:FINAL [fake_override,val] overridden: @@ -71,7 +71,7 @@ FILE fqName: fileName:/clashingFakeOverrideSignatures.kt $receiver: VALUE_PARAMETER name: type:kotlin.String PROPERTY FAKE_OVERRIDE name:bar visibility:public modality:FINAL [fake_override,val] overridden: - public final bar: kotlin.Int [val] + public final bar: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.Base, $receiver:kotlin.String) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:bar visibility:public modality:FINAL [fake_override,val] overridden: @@ -80,63 +80,63 @@ FILE fqName: fileName:/clashingFakeOverrideSignatures.kt $receiver: VALUE_PARAMETER name: type:kotlin.String 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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 + public open fun hashCode (): kotlin.Int 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 + public open fun toString (): kotlin.String declared in .Base $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:Derived2 modality:FINAL visibility:public superTypes:[.Derived] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Derived2 CONSTRUCTOR visibility:public <> () returnType:.Derived2 [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .Derived' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .Derived' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Derived2 modality:FINAL visibility:public superTypes:[.Derived]' FUN FAKE_OVERRIDE name:foo visibility:public modality:FINAL <> ($this:.Base, x:kotlin.String) returnType:kotlin.Unit [fake_override] overridden: - public final fun foo (x: kotlin.String): kotlin.Unit [fake_override] declared in .Derived + public final fun foo (x: kotlin.String): kotlin.Unit declared in .Derived $this: VALUE_PARAMETER name: type:.Base VALUE_PARAMETER name:x index:0 type:kotlin.String FUN FAKE_OVERRIDE name:foo visibility:public modality:FINAL <> ($this:.Base, y:kotlin.String) returnType:kotlin.Unit [fake_override] overridden: - public final fun foo (y: kotlin.String): kotlin.Unit [fake_override] declared in .Derived + public final fun foo (y: kotlin.String): kotlin.Unit declared in .Derived $this: VALUE_PARAMETER name: type:.Base VALUE_PARAMETER name:y index:0 type:kotlin.String PROPERTY FAKE_OVERRIDE name:bar visibility:public modality:FINAL [fake_override,val] overridden: - public final bar: kotlin.Int [fake_override,val] + public final bar: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.Base, $receiver:kotlin.String) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:bar visibility:public modality:FINAL [fake_override,val] overridden: - public final fun (): kotlin.Int [fake_override] declared in .Derived + public final fun (): kotlin.Int declared in .Derived $this: VALUE_PARAMETER name: type:.Base $receiver: VALUE_PARAMETER name: type:kotlin.String PROPERTY FAKE_OVERRIDE name:bar visibility:public modality:FINAL [fake_override,val] overridden: - public final bar: kotlin.Int [fake_override,val] + public final bar: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.Base, $receiver:kotlin.String) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:bar visibility:public modality:FINAL [fake_override,val] overridden: - public final fun (): kotlin.Int [fake_override] declared in .Derived + public final fun (): kotlin.Int declared in .Derived $this: VALUE_PARAMETER name: type:.Base $receiver: VALUE_PARAMETER name: type:kotlin.String 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 .Derived + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Derived $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 .Derived + public open fun hashCode (): kotlin.Int declared in .Derived $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 .Derived + public open fun toString (): kotlin.String declared in .Derived $this: VALUE_PARAMETER name: type:kotlin.Any FUN name:test visibility:public modality:FINAL <> (b:.Base, d:.Derived, d2:.Derived2) returnType:kotlin.Unit VALUE_PARAMETER name:b index:0 type:.Base @@ -149,16 +149,16 @@ FILE fqName: fileName:/clashingFakeOverrideSignatures.kt CALL 'public final fun foo (y: kotlin.String): kotlin.Unit declared in .Base' type=kotlin.Unit origin=null $this: GET_VAR 'b: .Base declared in .test' type=.Base origin=null y: CONST String type=kotlin.String value="" - CALL 'public final fun foo (x: kotlin.String): kotlin.Unit [fake_override] declared in .Derived' type=kotlin.Unit origin=null + CALL 'public final fun foo (x: kotlin.String): kotlin.Unit declared in .Derived' type=kotlin.Unit origin=null $this: GET_VAR 'd: .Derived declared in .test' type=.Derived origin=null x: CONST String type=kotlin.String value="" - CALL 'public final fun foo (y: kotlin.String): kotlin.Unit [fake_override] declared in .Derived' type=kotlin.Unit origin=null + CALL 'public final fun foo (y: kotlin.String): kotlin.Unit declared in .Derived' type=kotlin.Unit origin=null $this: GET_VAR 'd: .Derived declared in .test' type=.Derived origin=null y: CONST String type=kotlin.String value="" - CALL 'public final fun foo (x: kotlin.String): kotlin.Unit [fake_override] declared in .Derived2' type=kotlin.Unit origin=null + CALL 'public final fun foo (x: kotlin.String): kotlin.Unit declared in .Derived2' type=kotlin.Unit origin=null $this: GET_VAR 'd2: .Derived2 declared in .test' type=.Derived2 origin=null x: CONST String type=kotlin.String value="" - CALL 'public final fun foo (y: kotlin.String): kotlin.Unit [fake_override] declared in .Derived2' type=kotlin.Unit origin=null + CALL 'public final fun foo (y: kotlin.String): kotlin.Unit declared in .Derived2' type=kotlin.Unit origin=null $this: GET_VAR 'd2: .Derived2 declared in .test' type=.Derived2 origin=null y: CONST String type=kotlin.String value="" CLASS CLASS name:BaseXY modality:OPEN visibility:public superTypes:[kotlin.Any] @@ -167,7 +167,7 @@ FILE fqName: fileName:/clashingFakeOverrideSignatures.kt TYPE_PARAMETER name:Y index:1 variance: superTypes:[kotlin.Any?] reified:false CONSTRUCTOR visibility:public <> () returnType:.BaseXY.BaseXY, Y of .BaseXY> [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:BaseXY modality:OPEN visibility:public superTypes:[kotlin.Any]' FUN name:foo visibility:public modality:FINAL <> ($this:.BaseXY.BaseXY, Y of .BaseXY>, x:X of .BaseXY, y:kotlin.String) returnType:kotlin.Unit $this: VALUE_PARAMETER name: type:.BaseXY.BaseXY, Y of .BaseXY> @@ -181,7 +181,7 @@ FILE fqName: fileName:/clashingFakeOverrideSignatures.kt 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -196,7 +196,7 @@ FILE fqName: fileName:/clashingFakeOverrideSignatures.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.DerivedXY CONSTRUCTOR visibility:public <> () returnType:.DerivedXY [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .BaseXY' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .BaseXY' : kotlin.String : kotlin.String INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:DerivedXY modality:FINAL visibility:public superTypes:[.BaseXY]' @@ -214,16 +214,16 @@ FILE fqName: fileName:/clashingFakeOverrideSignatures.kt VALUE_PARAMETER name:y index:1 type:kotlin.String 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 .BaseXY + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .BaseXY $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 .BaseXY + public open fun hashCode (): kotlin.Int declared in .BaseXY $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 .BaseXY + public open fun toString (): kotlin.String declared in .BaseXY $this: VALUE_PARAMETER name: type:kotlin.Any FUN name:outerFun visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY @@ -232,7 +232,7 @@ FILE fqName: fileName:/clashingFakeOverrideSignatures.kt TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false CONSTRUCTOR visibility:public <> () returnType:.outerFun.LocalBase.outerFun.LocalBase> [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:LocalBase modality:OPEN visibility:local superTypes:[kotlin.Any]' FUN name:foo visibility:public modality:FINAL <> ($this:.outerFun.LocalBase.outerFun.LocalBase>, x:T of .outerFun.LocalBase) returnType:kotlin.Unit $this: VALUE_PARAMETER name: type:.outerFun.LocalBase.outerFun.LocalBase> @@ -260,7 +260,7 @@ FILE fqName: fileName:/clashingFakeOverrideSignatures.kt CONST Int type=kotlin.Int value=2 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -275,7 +275,7 @@ FILE fqName: fileName:/clashingFakeOverrideSignatures.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.outerFun.LocalDerived CONSTRUCTOR visibility:public <> () returnType:.outerFun.LocalDerived [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .outerFun.LocalBase' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .outerFun.LocalBase' : kotlin.String INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:LocalDerived modality:OPEN visibility:local superTypes:[.outerFun.LocalBase]' FUN FAKE_OVERRIDE name:foo visibility:public modality:FINAL <> ($this:.outerFun.LocalBase, x:kotlin.String) returnType:kotlin.Unit [fake_override] @@ -290,7 +290,7 @@ FILE fqName: fileName:/clashingFakeOverrideSignatures.kt VALUE_PARAMETER name:y index:0 type:kotlin.String PROPERTY FAKE_OVERRIDE name:bar visibility:public modality:FINAL [fake_override,val] overridden: - public final bar: kotlin.Int [val] + public final bar: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.outerFun.LocalBase, $receiver:kotlin.String) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:bar visibility:public modality:FINAL [fake_override,val] overridden: @@ -299,7 +299,7 @@ FILE fqName: fileName:/clashingFakeOverrideSignatures.kt $receiver: VALUE_PARAMETER name: type:kotlin.String PROPERTY FAKE_OVERRIDE name:bar visibility:public modality:FINAL [fake_override,val] overridden: - public final bar: kotlin.Int [val] + public final bar: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.outerFun.LocalBase, $receiver:kotlin.String) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:bar visibility:public modality:FINAL [fake_override,val] overridden: @@ -308,63 +308,63 @@ FILE fqName: fileName:/clashingFakeOverrideSignatures.kt $receiver: VALUE_PARAMETER name: type:kotlin.String 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 .outerFun.LocalBase + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .outerFun.LocalBase $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 .outerFun.LocalBase + public open fun hashCode (): kotlin.Int declared in .outerFun.LocalBase $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 .outerFun.LocalBase + public open fun toString (): kotlin.String declared in .outerFun.LocalBase $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:LocalDerived2 modality:FINAL visibility:local superTypes:[.outerFun.LocalDerived] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.outerFun.LocalDerived2 CONSTRUCTOR visibility:public <> () returnType:.outerFun.LocalDerived2 [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .outerFun.LocalDerived' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .outerFun.LocalDerived' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:LocalDerived2 modality:FINAL visibility:local superTypes:[.outerFun.LocalDerived]' FUN FAKE_OVERRIDE name:foo visibility:public modality:FINAL <> ($this:.outerFun.LocalBase, x:kotlin.String) returnType:kotlin.Unit [fake_override] overridden: - public final fun foo (x: kotlin.String): kotlin.Unit [fake_override] declared in .outerFun.LocalDerived + public final fun foo (x: kotlin.String): kotlin.Unit declared in .outerFun.LocalDerived $this: VALUE_PARAMETER name: type:.outerFun.LocalBase VALUE_PARAMETER name:x index:0 type:kotlin.String FUN FAKE_OVERRIDE name:foo visibility:public modality:FINAL <> ($this:.outerFun.LocalBase, y:kotlin.String) returnType:kotlin.Unit [fake_override] overridden: - public final fun foo (y: kotlin.String): kotlin.Unit [fake_override] declared in .outerFun.LocalDerived + public final fun foo (y: kotlin.String): kotlin.Unit declared in .outerFun.LocalDerived $this: VALUE_PARAMETER name: type:.outerFun.LocalBase VALUE_PARAMETER name:y index:0 type:kotlin.String PROPERTY FAKE_OVERRIDE name:bar visibility:public modality:FINAL [fake_override,val] overridden: - public final bar: kotlin.Int [fake_override,val] + public final bar: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.outerFun.LocalBase, $receiver:kotlin.String) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:bar visibility:public modality:FINAL [fake_override,val] overridden: - public final fun (): kotlin.Int [fake_override] declared in .outerFun.LocalDerived + public final fun (): kotlin.Int declared in .outerFun.LocalDerived $this: VALUE_PARAMETER name: type:.outerFun.LocalBase $receiver: VALUE_PARAMETER name: type:kotlin.String PROPERTY FAKE_OVERRIDE name:bar visibility:public modality:FINAL [fake_override,val] overridden: - public final bar: kotlin.Int [fake_override,val] + public final bar: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.outerFun.LocalBase, $receiver:kotlin.String) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:bar visibility:public modality:FINAL [fake_override,val] overridden: - public final fun (): kotlin.Int [fake_override] declared in .outerFun.LocalDerived + public final fun (): kotlin.Int declared in .outerFun.LocalDerived $this: VALUE_PARAMETER name: type:.outerFun.LocalBase $receiver: VALUE_PARAMETER name: type:kotlin.String 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 .outerFun.LocalDerived + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .outerFun.LocalDerived $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 .outerFun.LocalDerived + public open fun hashCode (): kotlin.Int declared in .outerFun.LocalDerived $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 .outerFun.LocalDerived + public open fun toString (): kotlin.String declared in .outerFun.LocalDerived $this: VALUE_PARAMETER name: type:kotlin.Any FUN LOCAL_FUNCTION name:test visibility:local modality:FINAL <> (b:.outerFun.LocalBase, d:.outerFun.LocalDerived, d2:.outerFun.LocalDerived2) returnType:kotlin.Unit VALUE_PARAMETER name:b index:0 type:.outerFun.LocalBase @@ -377,16 +377,16 @@ FILE fqName: fileName:/clashingFakeOverrideSignatures.kt CALL 'public final fun foo (y: kotlin.String): kotlin.Unit declared in .outerFun.LocalBase' type=kotlin.Unit origin=null $this: GET_VAR 'b: .outerFun.LocalBase declared in .outerFun.test' type=.outerFun.LocalBase origin=null y: CONST String type=kotlin.String value="" - CALL 'public final fun foo (x: kotlin.String): kotlin.Unit [fake_override] declared in .outerFun.LocalDerived' type=kotlin.Unit origin=null + CALL 'public final fun foo (x: kotlin.String): kotlin.Unit declared in .outerFun.LocalDerived' type=kotlin.Unit origin=null $this: GET_VAR 'd: .outerFun.LocalDerived declared in .outerFun.test' type=.outerFun.LocalDerived origin=null x: CONST String type=kotlin.String value="" - CALL 'public final fun foo (y: kotlin.String): kotlin.Unit [fake_override] declared in .outerFun.LocalDerived' type=kotlin.Unit origin=null + CALL 'public final fun foo (y: kotlin.String): kotlin.Unit declared in .outerFun.LocalDerived' type=kotlin.Unit origin=null $this: GET_VAR 'd: .outerFun.LocalDerived declared in .outerFun.test' type=.outerFun.LocalDerived origin=null y: CONST String type=kotlin.String value="" - CALL 'public final fun foo (x: kotlin.String): kotlin.Unit [fake_override] declared in .outerFun.LocalDerived2' type=kotlin.Unit origin=null + CALL 'public final fun foo (x: kotlin.String): kotlin.Unit declared in .outerFun.LocalDerived2' type=kotlin.Unit origin=null $this: GET_VAR 'd2: .outerFun.LocalDerived2 declared in .outerFun.test' type=.outerFun.LocalDerived2 origin=null x: CONST String type=kotlin.String value="" - CALL 'public final fun foo (y: kotlin.String): kotlin.Unit [fake_override] declared in .outerFun.LocalDerived2' type=kotlin.Unit origin=null + CALL 'public final fun foo (y: kotlin.String): kotlin.Unit declared in .outerFun.LocalDerived2' type=kotlin.Unit origin=null $this: GET_VAR 'd2: .outerFun.LocalDerived2 declared in .outerFun.test' type=.outerFun.LocalDerived2 origin=null y: CONST String type=kotlin.String value="" CLASS CLASS name:Outer modality:OPEN visibility:public superTypes:[kotlin.Any] @@ -394,14 +394,14 @@ FILE fqName: fileName:/clashingFakeOverrideSignatures.kt TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false CONSTRUCTOR visibility:public <> () returnType:.Outer.Outer> [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Outer modality:OPEN visibility:public superTypes:[kotlin.Any]' CLASS CLASS name:Inner modality:OPEN visibility:public [inner] superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Outer.Inner.Outer> CONSTRUCTOR visibility:public <> ($this:.Outer.Outer>) returnType:.Outer.Inner.Outer> [primary] $outer: VALUE_PARAMETER name: type:.Outer.Outer> BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Inner modality:OPEN visibility:public [inner] superTypes:[kotlin.Any]' FUN name:foo visibility:public modality:FINAL <> ($this:.Outer.Inner.Outer>, x:T of .Outer) returnType:kotlin.Unit $this: VALUE_PARAMETER name: type:.Outer.Inner.Outer> @@ -413,7 +413,7 @@ FILE fqName: fileName:/clashingFakeOverrideSignatures.kt 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -426,7 +426,7 @@ FILE fqName: fileName:/clashingFakeOverrideSignatures.kt $this: VALUE_PARAMETER name: type: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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -441,7 +441,7 @@ FILE fqName: fileName:/clashingFakeOverrideSignatures.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.OuterDerived CONSTRUCTOR visibility:public <> () returnType:.OuterDerived [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .Outer' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .Outer' : kotlin.String INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:OuterDerived modality:FINAL visibility:public superTypes:[.Outer]' CLASS CLASS name:InnerDerived modality:FINAL visibility:public [inner] superTypes:[.Outer.Inner] @@ -449,7 +449,7 @@ FILE fqName: fileName:/clashingFakeOverrideSignatures.kt CONSTRUCTOR visibility:public <> ($this:.OuterDerived) returnType:.OuterDerived.InnerDerived [primary] $outer: VALUE_PARAMETER name: type:.OuterDerived BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .Outer.Inner' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .Outer.Inner' $this: GET_VAR ': .OuterDerived declared in .OuterDerived.InnerDerived.' type=.OuterDerived origin=null INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:InnerDerived modality:FINAL visibility:public [inner] superTypes:[.Outer.Inner]' FUN FAKE_OVERRIDE name:foo visibility:public modality:FINAL <> ($this:.Outer.Inner, x:kotlin.String) returnType:kotlin.Unit [fake_override] @@ -464,27 +464,27 @@ FILE fqName: fileName:/clashingFakeOverrideSignatures.kt VALUE_PARAMETER name:y index:0 type:kotlin.String 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 .Outer.Inner + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Outer.Inner $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 .Outer.Inner + public open fun hashCode (): kotlin.Int declared in .Outer.Inner $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 .Outer.Inner + public open fun toString (): kotlin.String declared in .Outer.Inner $this: VALUE_PARAMETER name: type: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 [fake_override,operator] declared in .Outer + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Outer $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 .Outer + public open fun hashCode (): kotlin.Int declared in .Outer $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 .Outer + public open fun toString (): kotlin.String declared in .Outer $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/classes/classMembers.ir.txt b/compiler/testData/ir/irText/classes/classMembers.ir.txt index 9c1475e77d9..b6293f0b38a 100644 --- a/compiler/testData/ir/irText/classes/classMembers.ir.txt +++ b/compiler/testData/ir/irText/classes/classMembers.ir.txt @@ -8,7 +8,7 @@ FILE fqName: fileName:/classMembers.kt EXPRESSION_BODY CONST Int type=kotlin.Int value=1 BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:y visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:y type:kotlin.Int visibility:private [final] @@ -42,7 +42,7 @@ FILE fqName: fileName:/classMembers.kt value: GET_VAR ': kotlin.Int declared in .C.' type=kotlin.Int origin=null CONSTRUCTOR visibility:public <> () returnType:.C BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor (x: kotlin.Int, y: kotlin.Int, z: kotlin.Int) [primary] declared in .C' + DELEGATING_CONSTRUCTOR_CALL 'public constructor (x: kotlin.Int, y: kotlin.Int, z: kotlin.Int) declared in .C' x: CONST Int type=kotlin.Int value=0 y: CONST Int type=kotlin.Int value=0 z: CONST Int type=kotlin.Int value=0 @@ -83,34 +83,34 @@ FILE fqName: fileName:/classMembers.kt FUN name:function visibility:public modality:FINAL <> ($this:.C) returnType:kotlin.Unit $this: VALUE_PARAMETER name: type:.C BLOCK_BODY - CALL 'public final fun println (message: kotlin.Any?): kotlin.Unit [inline] declared in kotlin.io' type=kotlin.Unit origin=null + CALL 'public final fun println (message: kotlin.Any?): kotlin.Unit declared in kotlin.io' type=kotlin.Unit origin=null message: CONST String type=kotlin.String value="1" FUN name:memberExtensionFunction visibility:public modality:FINAL <> ($this:.C, $receiver:kotlin.Int) returnType:kotlin.Unit $this: VALUE_PARAMETER name: type:.C $receiver: VALUE_PARAMETER name: type:kotlin.Int BLOCK_BODY - CALL 'public final fun println (message: kotlin.Any?): kotlin.Unit [inline] declared in kotlin.io' type=kotlin.Unit origin=null + CALL 'public final fun println (message: kotlin.Any?): kotlin.Unit declared in kotlin.io' type=kotlin.Unit origin=null message: CONST String type=kotlin.String value="2" CLASS CLASS name:NestedClass modality:FINAL visibility:public superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.C.NestedClass CONSTRUCTOR visibility:public <> () returnType:.C.NestedClass [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:NestedClass modality:FINAL visibility:public superTypes:[kotlin.Any]' FUN name:function visibility:public modality:FINAL <> ($this:.C.NestedClass) returnType:kotlin.Unit $this: VALUE_PARAMETER name: type:.C.NestedClass BLOCK_BODY - CALL 'public final fun println (message: kotlin.Any?): kotlin.Unit [inline] declared in kotlin.io' type=kotlin.Unit origin=null + CALL 'public final fun println (message: kotlin.Any?): kotlin.Unit declared in kotlin.io' type=kotlin.Unit origin=null message: CONST String type=kotlin.String value="3" FUN name:memberExtensionFunction visibility:public modality:FINAL <> ($this:.C.NestedClass, $receiver:kotlin.Int) returnType:kotlin.Unit $this: VALUE_PARAMETER name: type:.C.NestedClass $receiver: VALUE_PARAMETER name: type:kotlin.Int BLOCK_BODY - CALL 'public final fun println (message: kotlin.Any?): kotlin.Unit [inline] declared in kotlin.io' type=kotlin.Unit origin=null + CALL 'public final fun println (message: kotlin.Any?): kotlin.Unit declared in kotlin.io' type=kotlin.Unit origin=null message: CONST String type=kotlin.String value="4" 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -133,7 +133,7 @@ FILE fqName: fileName:/classMembers.kt $this: GET_VAR ': .C.NestedInterface declared in .C.NestedInterface.bar' type=.C.NestedInterface 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -148,11 +148,11 @@ FILE fqName: fileName:/classMembers.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.C.Companion CONSTRUCTOR visibility:private <> () returnType:.C.Companion [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:Companion modality:FINAL visibility:public [companion] 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -165,7 +165,7 @@ FILE fqName: fileName:/classMembers.kt $this: VALUE_PARAMETER name: type: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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/classes/classMembers.kt b/compiler/testData/ir/irText/classes/classMembers.kt index 8041a5f8440..136cab95883 100644 --- a/compiler/testData/ir/irText/classes/classMembers.kt +++ b/compiler/testData/ir/irText/classes/classMembers.kt @@ -1,7 +1,5 @@ // FIR_IDENTICAL // WITH_STDLIB -// IGNORE_BACKEND: JS_IR -// IGNORE_BACKEND: JS_IR_ES6 class C(x: Int, val y: Int, var z: Int = 1) { constructor() : this(0, 0, 0) {} diff --git a/compiler/testData/ir/irText/classes/classes.fir.ir.txt b/compiler/testData/ir/irText/classes/classes.fir.ir.txt index 5b9c583addc..754328af269 100644 --- a/compiler/testData/ir/irText/classes/classes.fir.ir.txt +++ b/compiler/testData/ir/irText/classes/classes.fir.ir.txt @@ -3,11 +3,11 @@ FILE fqName: fileName:/classes.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.TestClass CONSTRUCTOR visibility:public <> () returnType:.TestClass [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:TestClass modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -22,7 +22,7 @@ FILE fqName: fileName:/classes.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.TestInterface 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -37,11 +37,11 @@ FILE fqName: fileName:/classes.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.TestObject CONSTRUCTOR visibility:private <> () returnType:.TestObject [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:TestObject modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -56,26 +56,26 @@ FILE fqName: fileName:/classes.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.TestAnnotationClass CONSTRUCTOR visibility:public <> () returnType:.TestAnnotationClass [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:TestAnnotationClass modality:OPEN visibility:public superTypes:[kotlin.Annotation]' 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 kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any CLASS ENUM_CLASS name:TestEnumClass modality:FINAL visibility:public superTypes:[kotlin.Enum<.TestEnumClass>] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.TestEnumClass CONSTRUCTOR visibility:private <> () returnType:.TestEnumClass [primary] BLOCK_BODY - ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) [primary] declared in kotlin.Enum' + ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) declared in kotlin.Enum' : .TestEnumClass INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_CLASS name:TestEnumClass modality:FINAL visibility:public superTypes:[kotlin.Enum<.TestEnumClass>]' FUN ENUM_CLASS_SPECIAL_MEMBER name:values visibility:public modality:FINAL <> () returnType:kotlin.Array<.TestEnumClass> @@ -93,12 +93,12 @@ FILE fqName: fileName:/classes.kt $this: VALUE_PARAMETER name: type:kotlin.Enum FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum, other:.TestEnumClass) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: E of kotlin.Enum): kotlin.Int [operator] declared in kotlin.Enum + public final fun compareTo (other: E of kotlin.Enum): kotlin.Int declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:.TestEnumClass FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Enum + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:hashCode visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] @@ -113,7 +113,7 @@ FILE fqName: fileName:/classes.kt annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: @@ -121,7 +121,7 @@ FILE fqName: fileName:/classes.kt $this: VALUE_PARAMETER name: type:kotlin.Enum PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: diff --git a/compiler/testData/ir/irText/classes/classes.ir.txt b/compiler/testData/ir/irText/classes/classes.ir.txt index 256b3e01f6c..a4a80ad3fea 100644 --- a/compiler/testData/ir/irText/classes/classes.ir.txt +++ b/compiler/testData/ir/irText/classes/classes.ir.txt @@ -3,11 +3,11 @@ FILE fqName: fileName:/classes.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.TestClass CONSTRUCTOR visibility:public <> () returnType:.TestClass [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:TestClass modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -22,7 +22,7 @@ FILE fqName: fileName:/classes.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.TestInterface 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -37,11 +37,11 @@ FILE fqName: fileName:/classes.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.TestObject CONSTRUCTOR visibility:private <> () returnType:.TestObject [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:TestObject modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -56,33 +56,33 @@ FILE fqName: fileName:/classes.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.TestAnnotationClass CONSTRUCTOR visibility:public <> () returnType:.TestAnnotationClass [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:TestAnnotationClass modality:OPEN visibility:public superTypes:[kotlin.Annotation]' 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 kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any CLASS ENUM_CLASS name:TestEnumClass modality:FINAL visibility:public superTypes:[kotlin.Enum<.TestEnumClass>] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.TestEnumClass CONSTRUCTOR visibility:private <> () returnType:.TestEnumClass [primary] BLOCK_BODY - ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) [primary] declared in kotlin.Enum' + ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) declared in kotlin.Enum' : .TestEnumClass INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_CLASS name:TestEnumClass modality:FINAL visibility:public superTypes:[kotlin.Enum<.TestEnumClass>]' PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestEnumClass>) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: @@ -90,7 +90,7 @@ FILE fqName: fileName:/classes.kt $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestEnumClass> PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestEnumClass>) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: @@ -102,12 +102,12 @@ FILE fqName: fileName:/classes.kt $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestEnumClass> FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestEnumClass>, other:.TestEnumClass) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: E of kotlin.Enum): kotlin.Int [operator] declared in kotlin.Enum + public final fun compareTo (other: E of kotlin.Enum): kotlin.Int declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestEnumClass> VALUE_PARAMETER name:other index:0 type:.TestEnumClass FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestEnumClass>, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Enum + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestEnumClass> VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:finalize visibility:protected/*protected and package*/ modality:FINAL <> ($this:kotlin.Enum<.TestEnumClass>) returnType:kotlin.Unit [fake_override] diff --git a/compiler/testData/ir/irText/classes/cloneable.ir.txt b/compiler/testData/ir/irText/classes/cloneable.ir.txt index e5a7fd8e16f..bb3009328c3 100644 --- a/compiler/testData/ir/irText/classes/cloneable.ir.txt +++ b/compiler/testData/ir/irText/classes/cloneable.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/cloneable.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.A CONSTRUCTOR visibility:public <> () returnType:.A [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:A modality:FINAL visibility:public superTypes:[kotlin.Cloneable]' FUN FAKE_OVERRIDE name:clone visibility:protected modality:OPEN <> ($this:kotlin.Cloneable) returnType:kotlin.Any [fake_override] overridden: @@ -11,16 +11,16 @@ FILE fqName: fileName:/cloneable.kt $this: VALUE_PARAMETER name: type:kotlin.Cloneable 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 kotlin.Cloneable + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Cloneable $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 kotlin.Cloneable + public open fun hashCode (): kotlin.Int declared in kotlin.Cloneable $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 kotlin.Cloneable + public open fun toString (): kotlin.String declared in kotlin.Cloneable $this: VALUE_PARAMETER name: type:kotlin.Any CLASS INTERFACE name:I modality:ABSTRACT visibility:public superTypes:[kotlin.Cloneable] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.I @@ -30,63 +30,63 @@ FILE fqName: fileName:/cloneable.kt $this: VALUE_PARAMETER name: type:kotlin.Cloneable 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 kotlin.Cloneable + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Cloneable $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 kotlin.Cloneable + public open fun hashCode (): kotlin.Int declared in kotlin.Cloneable $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 kotlin.Cloneable + public open fun toString (): kotlin.String declared in kotlin.Cloneable $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:C modality:FINAL visibility:public superTypes:[.I] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.C CONSTRUCTOR visibility:public <> () returnType:.C [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C modality:FINAL visibility:public superTypes:[.I]' FUN FAKE_OVERRIDE name:clone visibility:protected modality:OPEN <> ($this:kotlin.Cloneable) returnType:kotlin.Any [fake_override] overridden: - protected open fun clone (): kotlin.Any [fake_override] declared in .I + protected open fun clone (): kotlin.Any declared in .I $this: VALUE_PARAMETER name: type:kotlin.Cloneable 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 .I + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .I $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 .I + public open fun hashCode (): kotlin.Int declared in .I $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 .I + public open fun toString (): kotlin.String declared in .I $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:OC modality:FINAL visibility:public superTypes:[.I] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.OC CONSTRUCTOR visibility:public <> () returnType:.OC [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:OC modality:FINAL visibility:public superTypes:[.I]' FUN name:clone visibility:protected modality:OPEN <> ($this:.OC) returnType:.OC overridden: - protected open fun clone (): kotlin.Any [fake_override] declared in .I + protected open fun clone (): kotlin.Any declared in .I $this: VALUE_PARAMETER name: type:.OC BLOCK_BODY RETURN type=kotlin.Nothing from='protected open fun clone (): .OC declared in .OC' - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .OC' type=.OC origin=null + CONSTRUCTOR_CALL 'public constructor () declared in .OC' type=.OC 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 [fake_override,operator] declared in .I + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .I $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 .I + public open fun hashCode (): kotlin.Int declared in .I $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 .I + public open fun toString (): kotlin.String declared in .I $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/classes/companionObject.ir.txt b/compiler/testData/ir/irText/classes/companionObject.ir.txt index 274d38d7805..efc7d78f56b 100644 --- a/compiler/testData/ir/irText/classes/companionObject.ir.txt +++ b/compiler/testData/ir/irText/classes/companionObject.ir.txt @@ -3,17 +3,17 @@ FILE fqName: fileName:/companionObject.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Test1 CONSTRUCTOR visibility:public <> () returnType:.Test1 [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test1 modality:FINAL visibility:public superTypes:[kotlin.Any]' CLASS OBJECT name:Companion modality:FINAL visibility:public [companion] superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Test1.Companion CONSTRUCTOR visibility:private <> () returnType:.Test1.Companion [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:Companion modality:FINAL visibility:public [companion] 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -26,7 +26,7 @@ FILE fqName: fileName:/companionObject.kt $this: VALUE_PARAMETER name: type: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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -41,17 +41,17 @@ FILE fqName: fileName:/companionObject.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Test2 CONSTRUCTOR visibility:public <> () returnType:.Test2 [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test2 modality:FINAL visibility:public superTypes:[kotlin.Any]' CLASS OBJECT name:Named modality:FINAL visibility:public [companion] superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Test2.Named CONSTRUCTOR visibility:private <> () returnType:.Test2.Named [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:Named modality:FINAL visibility:public [companion] 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -64,7 +64,7 @@ FILE fqName: fileName:/companionObject.kt $this: VALUE_PARAMETER name: type: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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/classes/dataClasses/dataClassWithArrayMembers.fir.ir.txt b/compiler/testData/ir/irText/classes/dataClasses/dataClassWithArrayMembers.fir.ir.txt index 348434a3376..acc97efa15b 100644 --- a/compiler/testData/ir/irText/classes/dataClasses/dataClassWithArrayMembers.fir.ir.txt +++ b/compiler/testData/ir/irText/classes/dataClasses/dataClassWithArrayMembers.fir.ir.txt @@ -12,7 +12,7 @@ FILE fqName: fileName:/dataClassWithArrayMembers.kt VALUE_PARAMETER name:floatArray index:7 type:kotlin.FloatArray VALUE_PARAMETER name:doubleArray index:8 type:kotlin.DoubleArray BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test1 modality:FINAL visibility:public [data] superTypes:[kotlin.Any]' PROPERTY name:stringArray visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:stringArray type:kotlin.Array visibility:private [final] @@ -116,55 +116,55 @@ FILE fqName: fileName:/dataClassWithArrayMembers.kt FUN GENERATED_DATA_CLASS_MEMBER name:component1 visibility:public modality:FINAL <> ($this:.Test1) returnType:kotlin.Array [operator] $this: VALUE_PARAMETER name: type:.Test1 BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Array [operator] declared in .Test1' + RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Array declared in .Test1' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:stringArray type:kotlin.Array visibility:private [final]' type=kotlin.Array origin=null receiver: GET_VAR ': .Test1 declared in .Test1.component1' type=.Test1 origin=null FUN GENERATED_DATA_CLASS_MEMBER name:component2 visibility:public modality:FINAL <> ($this:.Test1) returnType:kotlin.CharArray [operator] $this: VALUE_PARAMETER name: type:.Test1 BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component2 (): kotlin.CharArray [operator] declared in .Test1' + RETURN type=kotlin.Nothing from='public final fun component2 (): kotlin.CharArray declared in .Test1' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:charArray type:kotlin.CharArray visibility:private [final]' type=kotlin.CharArray origin=null receiver: GET_VAR ': .Test1 declared in .Test1.component2' type=.Test1 origin=null FUN GENERATED_DATA_CLASS_MEMBER name:component3 visibility:public modality:FINAL <> ($this:.Test1) returnType:kotlin.BooleanArray [operator] $this: VALUE_PARAMETER name: type:.Test1 BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component3 (): kotlin.BooleanArray [operator] declared in .Test1' + RETURN type=kotlin.Nothing from='public final fun component3 (): kotlin.BooleanArray declared in .Test1' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:booleanArray type:kotlin.BooleanArray visibility:private [final]' type=kotlin.BooleanArray origin=null receiver: GET_VAR ': .Test1 declared in .Test1.component3' type=.Test1 origin=null FUN GENERATED_DATA_CLASS_MEMBER name:component4 visibility:public modality:FINAL <> ($this:.Test1) returnType:kotlin.ByteArray [operator] $this: VALUE_PARAMETER name: type:.Test1 BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component4 (): kotlin.ByteArray [operator] declared in .Test1' + RETURN type=kotlin.Nothing from='public final fun component4 (): kotlin.ByteArray declared in .Test1' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:byteArray type:kotlin.ByteArray visibility:private [final]' type=kotlin.ByteArray origin=null receiver: GET_VAR ': .Test1 declared in .Test1.component4' type=.Test1 origin=null FUN GENERATED_DATA_CLASS_MEMBER name:component5 visibility:public modality:FINAL <> ($this:.Test1) returnType:kotlin.ShortArray [operator] $this: VALUE_PARAMETER name: type:.Test1 BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component5 (): kotlin.ShortArray [operator] declared in .Test1' + RETURN type=kotlin.Nothing from='public final fun component5 (): kotlin.ShortArray declared in .Test1' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:shortArray type:kotlin.ShortArray visibility:private [final]' type=kotlin.ShortArray origin=null receiver: GET_VAR ': .Test1 declared in .Test1.component5' type=.Test1 origin=null FUN GENERATED_DATA_CLASS_MEMBER name:component6 visibility:public modality:FINAL <> ($this:.Test1) returnType:kotlin.IntArray [operator] $this: VALUE_PARAMETER name: type:.Test1 BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component6 (): kotlin.IntArray [operator] declared in .Test1' + RETURN type=kotlin.Nothing from='public final fun component6 (): kotlin.IntArray declared in .Test1' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:intArray type:kotlin.IntArray visibility:private [final]' type=kotlin.IntArray origin=null receiver: GET_VAR ': .Test1 declared in .Test1.component6' type=.Test1 origin=null FUN GENERATED_DATA_CLASS_MEMBER name:component7 visibility:public modality:FINAL <> ($this:.Test1) returnType:kotlin.LongArray [operator] $this: VALUE_PARAMETER name: type:.Test1 BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component7 (): kotlin.LongArray [operator] declared in .Test1' + RETURN type=kotlin.Nothing from='public final fun component7 (): kotlin.LongArray declared in .Test1' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:longArray type:kotlin.LongArray visibility:private [final]' type=kotlin.LongArray origin=null receiver: GET_VAR ': .Test1 declared in .Test1.component7' type=.Test1 origin=null FUN GENERATED_DATA_CLASS_MEMBER name:component8 visibility:public modality:FINAL <> ($this:.Test1) returnType:kotlin.FloatArray [operator] $this: VALUE_PARAMETER name: type:.Test1 BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component8 (): kotlin.FloatArray [operator] declared in .Test1' + RETURN type=kotlin.Nothing from='public final fun component8 (): kotlin.FloatArray declared in .Test1' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:floatArray type:kotlin.FloatArray visibility:private [final]' type=kotlin.FloatArray origin=null receiver: GET_VAR ': .Test1 declared in .Test1.component8' type=.Test1 origin=null FUN GENERATED_DATA_CLASS_MEMBER name:component9 visibility:public modality:FINAL <> ($this:.Test1) returnType:kotlin.DoubleArray [operator] $this: VALUE_PARAMETER name: type:.Test1 BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component9 (): kotlin.DoubleArray [operator] declared in .Test1' + RETURN type=kotlin.Nothing from='public final fun component9 (): kotlin.DoubleArray declared in .Test1' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:doubleArray type:kotlin.DoubleArray visibility:private [final]' type=kotlin.DoubleArray origin=null receiver: GET_VAR ': .Test1 declared in .Test1.component9' type=.Test1 origin=null FUN GENERATED_DATA_CLASS_MEMBER name:copy visibility:public modality:FINAL <> ($this:.Test1, stringArray:kotlin.Array, charArray:kotlin.CharArray, booleanArray:kotlin.BooleanArray, byteArray:kotlin.ByteArray, shortArray:kotlin.ShortArray, intArray:kotlin.IntArray, longArray:kotlin.LongArray, floatArray:kotlin.FloatArray, doubleArray:kotlin.DoubleArray) returnType:.Test1 @@ -207,7 +207,7 @@ FILE fqName: fileName:/dataClassWithArrayMembers.kt receiver: GET_VAR ': .Test1 declared in .Test1.copy' type=.Test1 origin=null BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun copy (stringArray: kotlin.Array, charArray: kotlin.CharArray, booleanArray: kotlin.BooleanArray, byteArray: kotlin.ByteArray, shortArray: kotlin.ShortArray, intArray: kotlin.IntArray, longArray: kotlin.LongArray, floatArray: kotlin.FloatArray, doubleArray: kotlin.DoubleArray): .Test1 declared in .Test1' - CONSTRUCTOR_CALL 'public constructor (stringArray: kotlin.Array, charArray: kotlin.CharArray, booleanArray: kotlin.BooleanArray, byteArray: kotlin.ByteArray, shortArray: kotlin.ShortArray, intArray: kotlin.IntArray, longArray: kotlin.LongArray, floatArray: kotlin.FloatArray, doubleArray: kotlin.DoubleArray) [primary] declared in .Test1' type=.Test1 origin=null + CONSTRUCTOR_CALL 'public constructor (stringArray: kotlin.Array, charArray: kotlin.CharArray, booleanArray: kotlin.BooleanArray, byteArray: kotlin.ByteArray, shortArray: kotlin.ShortArray, intArray: kotlin.IntArray, longArray: kotlin.LongArray, floatArray: kotlin.FloatArray, doubleArray: kotlin.DoubleArray) declared in .Test1' type=.Test1 origin=null stringArray: GET_VAR 'stringArray: kotlin.Array declared in .Test1.copy' type=kotlin.Array origin=null charArray: GET_VAR 'charArray: kotlin.CharArray declared in .Test1.copy' type=kotlin.CharArray origin=null booleanArray: GET_VAR 'booleanArray: kotlin.BooleanArray declared in .Test1.copy' type=kotlin.BooleanArray origin=null @@ -219,7 +219,7 @@ FILE fqName: fileName:/dataClassWithArrayMembers.kt doubleArray: GET_VAR 'doubleArray: kotlin.DoubleArray declared in .Test1.copy' type=kotlin.DoubleArray origin=null FUN GENERATED_DATA_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:.Test1, other:kotlin.Any?) returnType:kotlin.Boolean [operator] overridden: - public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any $this: VALUE_PARAMETER name: type:.Test1 VALUE_PARAMETER name:other index:0 type:kotlin.Any? BLOCK_BODY @@ -228,108 +228,108 @@ FILE fqName: fileName:/dataClassWithArrayMembers.kt 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 ': .Test1 declared in .Test1.equals' type=.Test1 origin=null arg1: GET_VAR 'other: kotlin.Any? declared in .Test1.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test1' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test1' CONST Boolean type=kotlin.Boolean value=true WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=.Test1 GET_VAR 'other: kotlin.Any? declared in .Test1.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test1' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test1' CONST Boolean type=kotlin.Boolean value=false VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:.Test1 [val] TYPE_OP type=.Test1 origin=CAST typeOperand=.Test1 GET_VAR 'other: kotlin.Any? declared in .Test1.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 + if: CALL 'public final fun not (): kotlin.Boolean 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:stringArray type:kotlin.Array visibility:private [final]' type=kotlin.Array origin=null receiver: GET_VAR ': .Test1 declared in .Test1.equals' type=.Test1 origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:stringArray type:kotlin.Array visibility:private [final]' type=kotlin.Array origin=null - receiver: GET_VAR 'val tmp_0: .Test1 [val] declared in .Test1.equals' type=.Test1 origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test1' + receiver: GET_VAR 'val tmp_0: .Test1 declared in .Test1.equals' type=.Test1 origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test1' CONST Boolean type=kotlin.Boolean value=false 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 + if: CALL 'public final fun not (): kotlin.Boolean 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:charArray type:kotlin.CharArray visibility:private [final]' type=kotlin.CharArray origin=null receiver: GET_VAR ': .Test1 declared in .Test1.equals' type=.Test1 origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:charArray type:kotlin.CharArray visibility:private [final]' type=kotlin.CharArray origin=null - receiver: GET_VAR 'val tmp_0: .Test1 [val] declared in .Test1.equals' type=.Test1 origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test1' + receiver: GET_VAR 'val tmp_0: .Test1 declared in .Test1.equals' type=.Test1 origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test1' CONST Boolean type=kotlin.Boolean value=false 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 + if: CALL 'public final fun not (): kotlin.Boolean 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:booleanArray type:kotlin.BooleanArray visibility:private [final]' type=kotlin.BooleanArray origin=null receiver: GET_VAR ': .Test1 declared in .Test1.equals' type=.Test1 origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:booleanArray type:kotlin.BooleanArray visibility:private [final]' type=kotlin.BooleanArray origin=null - receiver: GET_VAR 'val tmp_0: .Test1 [val] declared in .Test1.equals' type=.Test1 origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test1' + receiver: GET_VAR 'val tmp_0: .Test1 declared in .Test1.equals' type=.Test1 origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test1' CONST Boolean type=kotlin.Boolean value=false 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 + if: CALL 'public final fun not (): kotlin.Boolean 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:byteArray type:kotlin.ByteArray visibility:private [final]' type=kotlin.ByteArray origin=null receiver: GET_VAR ': .Test1 declared in .Test1.equals' type=.Test1 origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:byteArray type:kotlin.ByteArray visibility:private [final]' type=kotlin.ByteArray origin=null - receiver: GET_VAR 'val tmp_0: .Test1 [val] declared in .Test1.equals' type=.Test1 origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test1' + receiver: GET_VAR 'val tmp_0: .Test1 declared in .Test1.equals' type=.Test1 origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test1' CONST Boolean type=kotlin.Boolean value=false 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 + if: CALL 'public final fun not (): kotlin.Boolean 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:shortArray type:kotlin.ShortArray visibility:private [final]' type=kotlin.ShortArray origin=null receiver: GET_VAR ': .Test1 declared in .Test1.equals' type=.Test1 origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:shortArray type:kotlin.ShortArray visibility:private [final]' type=kotlin.ShortArray origin=null - receiver: GET_VAR 'val tmp_0: .Test1 [val] declared in .Test1.equals' type=.Test1 origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test1' + receiver: GET_VAR 'val tmp_0: .Test1 declared in .Test1.equals' type=.Test1 origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test1' CONST Boolean type=kotlin.Boolean value=false 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 + if: CALL 'public final fun not (): kotlin.Boolean 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:intArray type:kotlin.IntArray visibility:private [final]' type=kotlin.IntArray origin=null receiver: GET_VAR ': .Test1 declared in .Test1.equals' type=.Test1 origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:intArray type:kotlin.IntArray visibility:private [final]' type=kotlin.IntArray origin=null - receiver: GET_VAR 'val tmp_0: .Test1 [val] declared in .Test1.equals' type=.Test1 origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test1' + receiver: GET_VAR 'val tmp_0: .Test1 declared in .Test1.equals' type=.Test1 origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test1' CONST Boolean type=kotlin.Boolean value=false 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 + if: CALL 'public final fun not (): kotlin.Boolean 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:longArray type:kotlin.LongArray visibility:private [final]' type=kotlin.LongArray origin=null receiver: GET_VAR ': .Test1 declared in .Test1.equals' type=.Test1 origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:longArray type:kotlin.LongArray visibility:private [final]' type=kotlin.LongArray origin=null - receiver: GET_VAR 'val tmp_0: .Test1 [val] declared in .Test1.equals' type=.Test1 origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test1' + receiver: GET_VAR 'val tmp_0: .Test1 declared in .Test1.equals' type=.Test1 origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test1' CONST Boolean type=kotlin.Boolean value=false 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 + if: CALL 'public final fun not (): kotlin.Boolean 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:floatArray type:kotlin.FloatArray visibility:private [final]' type=kotlin.FloatArray origin=null receiver: GET_VAR ': .Test1 declared in .Test1.equals' type=.Test1 origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:floatArray type:kotlin.FloatArray visibility:private [final]' type=kotlin.FloatArray origin=null - receiver: GET_VAR 'val tmp_0: .Test1 [val] declared in .Test1.equals' type=.Test1 origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test1' + receiver: GET_VAR 'val tmp_0: .Test1 declared in .Test1.equals' type=.Test1 origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test1' CONST Boolean type=kotlin.Boolean value=false 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 + if: CALL 'public final fun not (): kotlin.Boolean 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:doubleArray type:kotlin.DoubleArray visibility:private [final]' type=kotlin.DoubleArray origin=null receiver: GET_VAR ': .Test1 declared in .Test1.equals' type=.Test1 origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:doubleArray type:kotlin.DoubleArray visibility:private [final]' type=kotlin.DoubleArray origin=null - receiver: GET_VAR 'val tmp_0: .Test1 [val] declared in .Test1.equals' type=.Test1 origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test1' + receiver: GET_VAR 'val tmp_0: .Test1 declared in .Test1.equals' type=.Test1 origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test1' CONST Boolean type=kotlin.Boolean value=false - RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test1' + RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test1' CONST Boolean type=kotlin.Boolean value=true FUN GENERATED_DATA_CLASS_MEMBER name:hashCode visibility:public modality:OPEN <> ($this:.Test1) returnType:kotlin.Int overridden: @@ -340,72 +340,72 @@ FILE fqName: fileName:/dataClassWithArrayMembers.kt CALL 'public final fun dataClassArrayMemberHashCode (arg0: kotlin.Any): kotlin.Int declared in kotlin.internal.ir' type=kotlin.Int origin=null arg0: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:stringArray type:kotlin.Array visibility:private [final]' type=kotlin.Array origin=null receiver: GET_VAR ': .Test1 declared in .Test1.hashCode' type=.Test1 origin=null - SET_VAR 'var result: kotlin.Int [var] declared in .Test1.hashCode' type=kotlin.Unit origin=EQ - CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: CALL 'public final fun times (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'var result: kotlin.Int [var] declared in .Test1.hashCode' type=kotlin.Int origin=null + SET_VAR 'var result: kotlin.Int declared in .Test1.hashCode' type=kotlin.Unit origin=EQ + CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: CALL 'public final fun times (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'var result: kotlin.Int declared in .Test1.hashCode' type=kotlin.Int origin=null other: CONST Int type=kotlin.Int value=31 other: CALL 'public final fun dataClassArrayMemberHashCode (arg0: kotlin.Any): kotlin.Int declared in kotlin.internal.ir' type=kotlin.Int origin=null arg0: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:charArray type:kotlin.CharArray visibility:private [final]' type=kotlin.CharArray origin=null receiver: GET_VAR ': .Test1 declared in .Test1.hashCode' type=.Test1 origin=null - SET_VAR 'var result: kotlin.Int [var] declared in .Test1.hashCode' type=kotlin.Unit origin=EQ - CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: CALL 'public final fun times (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'var result: kotlin.Int [var] declared in .Test1.hashCode' type=kotlin.Int origin=null + SET_VAR 'var result: kotlin.Int declared in .Test1.hashCode' type=kotlin.Unit origin=EQ + CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: CALL 'public final fun times (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'var result: kotlin.Int declared in .Test1.hashCode' type=kotlin.Int origin=null other: CONST Int type=kotlin.Int value=31 other: CALL 'public final fun dataClassArrayMemberHashCode (arg0: kotlin.Any): kotlin.Int declared in kotlin.internal.ir' type=kotlin.Int origin=null arg0: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:booleanArray type:kotlin.BooleanArray visibility:private [final]' type=kotlin.BooleanArray origin=null receiver: GET_VAR ': .Test1 declared in .Test1.hashCode' type=.Test1 origin=null - SET_VAR 'var result: kotlin.Int [var] declared in .Test1.hashCode' type=kotlin.Unit origin=EQ - CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: CALL 'public final fun times (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'var result: kotlin.Int [var] declared in .Test1.hashCode' type=kotlin.Int origin=null + SET_VAR 'var result: kotlin.Int declared in .Test1.hashCode' type=kotlin.Unit origin=EQ + CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: CALL 'public final fun times (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'var result: kotlin.Int declared in .Test1.hashCode' type=kotlin.Int origin=null other: CONST Int type=kotlin.Int value=31 other: CALL 'public final fun dataClassArrayMemberHashCode (arg0: kotlin.Any): kotlin.Int declared in kotlin.internal.ir' type=kotlin.Int origin=null arg0: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:byteArray type:kotlin.ByteArray visibility:private [final]' type=kotlin.ByteArray origin=null receiver: GET_VAR ': .Test1 declared in .Test1.hashCode' type=.Test1 origin=null - SET_VAR 'var result: kotlin.Int [var] declared in .Test1.hashCode' type=kotlin.Unit origin=EQ - CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: CALL 'public final fun times (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'var result: kotlin.Int [var] declared in .Test1.hashCode' type=kotlin.Int origin=null + SET_VAR 'var result: kotlin.Int declared in .Test1.hashCode' type=kotlin.Unit origin=EQ + CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: CALL 'public final fun times (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'var result: kotlin.Int declared in .Test1.hashCode' type=kotlin.Int origin=null other: CONST Int type=kotlin.Int value=31 other: CALL 'public final fun dataClassArrayMemberHashCode (arg0: kotlin.Any): kotlin.Int declared in kotlin.internal.ir' type=kotlin.Int origin=null arg0: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:shortArray type:kotlin.ShortArray visibility:private [final]' type=kotlin.ShortArray origin=null receiver: GET_VAR ': .Test1 declared in .Test1.hashCode' type=.Test1 origin=null - SET_VAR 'var result: kotlin.Int [var] declared in .Test1.hashCode' type=kotlin.Unit origin=EQ - CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: CALL 'public final fun times (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'var result: kotlin.Int [var] declared in .Test1.hashCode' type=kotlin.Int origin=null + SET_VAR 'var result: kotlin.Int declared in .Test1.hashCode' type=kotlin.Unit origin=EQ + CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: CALL 'public final fun times (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'var result: kotlin.Int declared in .Test1.hashCode' type=kotlin.Int origin=null other: CONST Int type=kotlin.Int value=31 other: CALL 'public final fun dataClassArrayMemberHashCode (arg0: kotlin.Any): kotlin.Int declared in kotlin.internal.ir' type=kotlin.Int origin=null arg0: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:intArray type:kotlin.IntArray visibility:private [final]' type=kotlin.IntArray origin=null receiver: GET_VAR ': .Test1 declared in .Test1.hashCode' type=.Test1 origin=null - SET_VAR 'var result: kotlin.Int [var] declared in .Test1.hashCode' type=kotlin.Unit origin=EQ - CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: CALL 'public final fun times (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'var result: kotlin.Int [var] declared in .Test1.hashCode' type=kotlin.Int origin=null + SET_VAR 'var result: kotlin.Int declared in .Test1.hashCode' type=kotlin.Unit origin=EQ + CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: CALL 'public final fun times (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'var result: kotlin.Int declared in .Test1.hashCode' type=kotlin.Int origin=null other: CONST Int type=kotlin.Int value=31 other: CALL 'public final fun dataClassArrayMemberHashCode (arg0: kotlin.Any): kotlin.Int declared in kotlin.internal.ir' type=kotlin.Int origin=null arg0: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:longArray type:kotlin.LongArray visibility:private [final]' type=kotlin.LongArray origin=null receiver: GET_VAR ': .Test1 declared in .Test1.hashCode' type=.Test1 origin=null - SET_VAR 'var result: kotlin.Int [var] declared in .Test1.hashCode' type=kotlin.Unit origin=EQ - CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: CALL 'public final fun times (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'var result: kotlin.Int [var] declared in .Test1.hashCode' type=kotlin.Int origin=null + SET_VAR 'var result: kotlin.Int declared in .Test1.hashCode' type=kotlin.Unit origin=EQ + CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: CALL 'public final fun times (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'var result: kotlin.Int declared in .Test1.hashCode' type=kotlin.Int origin=null other: CONST Int type=kotlin.Int value=31 other: CALL 'public final fun dataClassArrayMemberHashCode (arg0: kotlin.Any): kotlin.Int declared in kotlin.internal.ir' type=kotlin.Int origin=null arg0: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:floatArray type:kotlin.FloatArray visibility:private [final]' type=kotlin.FloatArray origin=null receiver: GET_VAR ': .Test1 declared in .Test1.hashCode' type=.Test1 origin=null - SET_VAR 'var result: kotlin.Int [var] declared in .Test1.hashCode' type=kotlin.Unit origin=EQ - CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: CALL 'public final fun times (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'var result: kotlin.Int [var] declared in .Test1.hashCode' type=kotlin.Int origin=null + SET_VAR 'var result: kotlin.Int declared in .Test1.hashCode' type=kotlin.Unit origin=EQ + CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: CALL 'public final fun times (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'var result: kotlin.Int declared in .Test1.hashCode' type=kotlin.Int origin=null other: CONST Int type=kotlin.Int value=31 other: CALL 'public final fun dataClassArrayMemberHashCode (arg0: kotlin.Any): kotlin.Int declared in kotlin.internal.ir' type=kotlin.Int origin=null arg0: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:doubleArray type:kotlin.DoubleArray visibility:private [final]' type=kotlin.DoubleArray origin=null receiver: GET_VAR ': .Test1 declared in .Test1.hashCode' type=.Test1 origin=null RETURN type=kotlin.Nothing from='public open fun hashCode (): kotlin.Int declared in .Test1' - GET_VAR 'var result: kotlin.Int [var] declared in .Test1.hashCode' type=kotlin.Int origin=null + GET_VAR 'var result: kotlin.Int declared in .Test1.hashCode' type=kotlin.Int origin=null FUN GENERATED_DATA_CLASS_MEMBER name:toString visibility:public modality:OPEN <> ($this:.Test1) returnType:kotlin.String overridden: public open fun toString (): kotlin.String declared in kotlin.Any @@ -456,7 +456,7 @@ FILE fqName: fileName:/dataClassWithArrayMembers.kt CONSTRUCTOR visibility:public <> (genericArray:kotlin.Array.Test2>) returnType:.Test2.Test2> [primary] VALUE_PARAMETER name:genericArray index:0 type:kotlin.Array.Test2> BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test2 modality:FINAL visibility:public [data] superTypes:[kotlin.Any]' PROPERTY name:genericArray visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:genericArray type:kotlin.Array.Test2> visibility:private [final] @@ -472,7 +472,7 @@ FILE fqName: fileName:/dataClassWithArrayMembers.kt FUN GENERATED_DATA_CLASS_MEMBER name:component1 visibility:public modality:FINAL <> ($this:.Test2.Test2>) returnType:kotlin.Array.Test2> [operator] $this: VALUE_PARAMETER name: type:.Test2.Test2> BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Array.Test2> [operator] declared in .Test2' + RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Array.Test2> declared in .Test2' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:genericArray type:kotlin.Array.Test2> visibility:private [final]' type=kotlin.Array.Test2> origin=null receiver: GET_VAR ': .Test2.Test2> declared in .Test2.component1' type=.Test2.Test2> origin=null FUN GENERATED_DATA_CLASS_MEMBER name:copy visibility:public modality:FINAL <> ($this:.Test2.Test2>, genericArray:kotlin.Array.Test2>) returnType:.Test2.Test2> @@ -483,12 +483,12 @@ FILE fqName: fileName:/dataClassWithArrayMembers.kt receiver: GET_VAR ': .Test2.Test2> declared in .Test2.copy' type=.Test2.Test2> origin=null BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun copy (genericArray: kotlin.Array.Test2>): .Test2.Test2> declared in .Test2' - CONSTRUCTOR_CALL 'public constructor (genericArray: kotlin.Array.Test2>) [primary] declared in .Test2' type=.Test2.Test2> origin=null + CONSTRUCTOR_CALL 'public constructor (genericArray: kotlin.Array.Test2>) declared in .Test2' type=.Test2.Test2> origin=null : kotlin.Any genericArray: GET_VAR 'genericArray: kotlin.Array.Test2> declared in .Test2.copy' type=kotlin.Array.Test2> origin=null FUN GENERATED_DATA_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:.Test2.Test2>, other:kotlin.Any?) returnType:kotlin.Boolean [operator] overridden: - public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any $this: VALUE_PARAMETER name: type:.Test2.Test2> VALUE_PARAMETER name:other index:0 type:kotlin.Any? BLOCK_BODY @@ -497,28 +497,28 @@ FILE fqName: fileName:/dataClassWithArrayMembers.kt 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 ': .Test2.Test2> declared in .Test2.equals' type=.Test2.Test2> origin=null arg1: GET_VAR 'other: kotlin.Any? declared in .Test2.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test2' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test2' CONST Boolean type=kotlin.Boolean value=true WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=.Test2.Test2> GET_VAR 'other: kotlin.Any? declared in .Test2.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test2' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test2' CONST Boolean type=kotlin.Boolean value=false VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:.Test2.Test2> [val] TYPE_OP type=.Test2.Test2> origin=CAST typeOperand=.Test2.Test2> GET_VAR 'other: kotlin.Any? declared in .Test2.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 + if: CALL 'public final fun not (): kotlin.Boolean 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:genericArray type:kotlin.Array.Test2> visibility:private [final]' type=kotlin.Array.Test2> origin=null receiver: GET_VAR ': .Test2.Test2> declared in .Test2.equals' type=.Test2.Test2> origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:genericArray type:kotlin.Array.Test2> visibility:private [final]' type=kotlin.Array.Test2> origin=null - receiver: GET_VAR 'val tmp_1: .Test2.Test2> [val] declared in .Test2.equals' type=.Test2.Test2> origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test2' + receiver: GET_VAR 'val tmp_1: .Test2.Test2> declared in .Test2.equals' type=.Test2.Test2> origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test2' CONST Boolean type=kotlin.Boolean value=false - RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test2' + RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test2' CONST Boolean type=kotlin.Boolean value=true FUN GENERATED_DATA_CLASS_MEMBER name:hashCode visibility:public modality:OPEN <> ($this:.Test2.Test2>) returnType:kotlin.Int overridden: @@ -546,7 +546,7 @@ FILE fqName: fileName:/dataClassWithArrayMembers.kt CONSTRUCTOR visibility:public <> (anyArrayN:kotlin.Array?) returnType:.Test3 [primary] VALUE_PARAMETER name:anyArrayN index:0 type:kotlin.Array? BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test3 modality:FINAL visibility:public [data] superTypes:[kotlin.Any]' PROPERTY name:anyArrayN visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:anyArrayN type:kotlin.Array? visibility:private [final] @@ -562,7 +562,7 @@ FILE fqName: fileName:/dataClassWithArrayMembers.kt FUN GENERATED_DATA_CLASS_MEMBER name:component1 visibility:public modality:FINAL <> ($this:.Test3) returnType:kotlin.Array? [operator] $this: VALUE_PARAMETER name: type:.Test3 BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Array? [operator] declared in .Test3' + RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Array? declared in .Test3' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:anyArrayN type:kotlin.Array? visibility:private [final]' type=kotlin.Array? origin=null receiver: GET_VAR ': .Test3 declared in .Test3.component1' type=.Test3 origin=null FUN GENERATED_DATA_CLASS_MEMBER name:copy visibility:public modality:FINAL <> ($this:.Test3, anyArrayN:kotlin.Array?) returnType:.Test3 @@ -573,11 +573,11 @@ FILE fqName: fileName:/dataClassWithArrayMembers.kt receiver: GET_VAR ': .Test3 declared in .Test3.copy' type=.Test3 origin=null BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun copy (anyArrayN: kotlin.Array?): .Test3 declared in .Test3' - CONSTRUCTOR_CALL 'public constructor (anyArrayN: kotlin.Array?) [primary] declared in .Test3' type=.Test3 origin=null + CONSTRUCTOR_CALL 'public constructor (anyArrayN: kotlin.Array?) declared in .Test3' type=.Test3 origin=null anyArrayN: GET_VAR 'anyArrayN: kotlin.Array? declared in .Test3.copy' type=kotlin.Array? origin=null FUN GENERATED_DATA_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:.Test3, other:kotlin.Any?) returnType:kotlin.Boolean [operator] overridden: - public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any $this: VALUE_PARAMETER name: type:.Test3 VALUE_PARAMETER name:other index:0 type:kotlin.Any? BLOCK_BODY @@ -586,28 +586,28 @@ FILE fqName: fileName:/dataClassWithArrayMembers.kt 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 ': .Test3 declared in .Test3.equals' type=.Test3 origin=null arg1: GET_VAR 'other: kotlin.Any? declared in .Test3.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test3' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test3' CONST Boolean type=kotlin.Boolean value=true WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=.Test3 GET_VAR 'other: kotlin.Any? declared in .Test3.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test3' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test3' CONST Boolean type=kotlin.Boolean value=false VAR IR_TEMPORARY_VARIABLE name:tmp_2 type:.Test3 [val] TYPE_OP type=.Test3 origin=CAST typeOperand=.Test3 GET_VAR 'other: kotlin.Any? declared in .Test3.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 + if: CALL 'public final fun not (): kotlin.Boolean 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:anyArrayN type:kotlin.Array? visibility:private [final]' type=kotlin.Array? origin=null receiver: GET_VAR ': .Test3 declared in .Test3.equals' type=.Test3 origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:anyArrayN type:kotlin.Array? visibility:private [final]' type=kotlin.Array? origin=null - receiver: GET_VAR 'val tmp_2: .Test3 [val] declared in .Test3.equals' type=.Test3 origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test3' + receiver: GET_VAR 'val tmp_2: .Test3 declared in .Test3.equals' type=.Test3 origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test3' CONST Boolean type=kotlin.Boolean value=false - RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test3' + RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test3' CONST Boolean type=kotlin.Boolean value=true FUN GENERATED_DATA_CLASS_MEMBER name:hashCode visibility:public modality:OPEN <> ($this:.Test3) returnType:kotlin.Int overridden: diff --git a/compiler/testData/ir/irText/classes/dataClasses/dataClassWithArrayMembers.ir.txt b/compiler/testData/ir/irText/classes/dataClasses/dataClassWithArrayMembers.ir.txt index c72f7189983..53f11180f50 100644 --- a/compiler/testData/ir/irText/classes/dataClasses/dataClassWithArrayMembers.ir.txt +++ b/compiler/testData/ir/irText/classes/dataClasses/dataClassWithArrayMembers.ir.txt @@ -12,7 +12,7 @@ FILE fqName: fileName:/dataClassWithArrayMembers.kt VALUE_PARAMETER name:floatArray index:7 type:kotlin.FloatArray VALUE_PARAMETER name:doubleArray index:8 type:kotlin.DoubleArray BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test1 modality:FINAL visibility:public [data] superTypes:[kotlin.Any]' PROPERTY name:stringArray visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:stringArray type:kotlin.Array visibility:private [final] @@ -116,55 +116,55 @@ FILE fqName: fileName:/dataClassWithArrayMembers.kt FUN GENERATED_DATA_CLASS_MEMBER name:component1 visibility:public modality:FINAL <> ($this:.Test1) returnType:kotlin.Array [operator] $this: VALUE_PARAMETER name: type:.Test1 BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Array [operator] declared in .Test1' + RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Array declared in .Test1' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:stringArray type:kotlin.Array visibility:private [final]' type=kotlin.Array origin=null receiver: GET_VAR ': .Test1 declared in .Test1.component1' type=.Test1 origin=null FUN GENERATED_DATA_CLASS_MEMBER name:component2 visibility:public modality:FINAL <> ($this:.Test1) returnType:kotlin.CharArray [operator] $this: VALUE_PARAMETER name: type:.Test1 BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component2 (): kotlin.CharArray [operator] declared in .Test1' + RETURN type=kotlin.Nothing from='public final fun component2 (): kotlin.CharArray declared in .Test1' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:charArray type:kotlin.CharArray visibility:private [final]' type=kotlin.CharArray origin=null receiver: GET_VAR ': .Test1 declared in .Test1.component2' type=.Test1 origin=null FUN GENERATED_DATA_CLASS_MEMBER name:component3 visibility:public modality:FINAL <> ($this:.Test1) returnType:kotlin.BooleanArray [operator] $this: VALUE_PARAMETER name: type:.Test1 BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component3 (): kotlin.BooleanArray [operator] declared in .Test1' + RETURN type=kotlin.Nothing from='public final fun component3 (): kotlin.BooleanArray declared in .Test1' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:booleanArray type:kotlin.BooleanArray visibility:private [final]' type=kotlin.BooleanArray origin=null receiver: GET_VAR ': .Test1 declared in .Test1.component3' type=.Test1 origin=null FUN GENERATED_DATA_CLASS_MEMBER name:component4 visibility:public modality:FINAL <> ($this:.Test1) returnType:kotlin.ByteArray [operator] $this: VALUE_PARAMETER name: type:.Test1 BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component4 (): kotlin.ByteArray [operator] declared in .Test1' + RETURN type=kotlin.Nothing from='public final fun component4 (): kotlin.ByteArray declared in .Test1' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:byteArray type:kotlin.ByteArray visibility:private [final]' type=kotlin.ByteArray origin=null receiver: GET_VAR ': .Test1 declared in .Test1.component4' type=.Test1 origin=null FUN GENERATED_DATA_CLASS_MEMBER name:component5 visibility:public modality:FINAL <> ($this:.Test1) returnType:kotlin.ShortArray [operator] $this: VALUE_PARAMETER name: type:.Test1 BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component5 (): kotlin.ShortArray [operator] declared in .Test1' + RETURN type=kotlin.Nothing from='public final fun component5 (): kotlin.ShortArray declared in .Test1' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:shortArray type:kotlin.ShortArray visibility:private [final]' type=kotlin.ShortArray origin=null receiver: GET_VAR ': .Test1 declared in .Test1.component5' type=.Test1 origin=null FUN GENERATED_DATA_CLASS_MEMBER name:component6 visibility:public modality:FINAL <> ($this:.Test1) returnType:kotlin.IntArray [operator] $this: VALUE_PARAMETER name: type:.Test1 BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component6 (): kotlin.IntArray [operator] declared in .Test1' + RETURN type=kotlin.Nothing from='public final fun component6 (): kotlin.IntArray declared in .Test1' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:intArray type:kotlin.IntArray visibility:private [final]' type=kotlin.IntArray origin=null receiver: GET_VAR ': .Test1 declared in .Test1.component6' type=.Test1 origin=null FUN GENERATED_DATA_CLASS_MEMBER name:component7 visibility:public modality:FINAL <> ($this:.Test1) returnType:kotlin.LongArray [operator] $this: VALUE_PARAMETER name: type:.Test1 BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component7 (): kotlin.LongArray [operator] declared in .Test1' + RETURN type=kotlin.Nothing from='public final fun component7 (): kotlin.LongArray declared in .Test1' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:longArray type:kotlin.LongArray visibility:private [final]' type=kotlin.LongArray origin=null receiver: GET_VAR ': .Test1 declared in .Test1.component7' type=.Test1 origin=null FUN GENERATED_DATA_CLASS_MEMBER name:component8 visibility:public modality:FINAL <> ($this:.Test1) returnType:kotlin.FloatArray [operator] $this: VALUE_PARAMETER name: type:.Test1 BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component8 (): kotlin.FloatArray [operator] declared in .Test1' + RETURN type=kotlin.Nothing from='public final fun component8 (): kotlin.FloatArray declared in .Test1' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:floatArray type:kotlin.FloatArray visibility:private [final]' type=kotlin.FloatArray origin=null receiver: GET_VAR ': .Test1 declared in .Test1.component8' type=.Test1 origin=null FUN GENERATED_DATA_CLASS_MEMBER name:component9 visibility:public modality:FINAL <> ($this:.Test1) returnType:kotlin.DoubleArray [operator] $this: VALUE_PARAMETER name: type:.Test1 BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component9 (): kotlin.DoubleArray [operator] declared in .Test1' + RETURN type=kotlin.Nothing from='public final fun component9 (): kotlin.DoubleArray declared in .Test1' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:doubleArray type:kotlin.DoubleArray visibility:private [final]' type=kotlin.DoubleArray origin=null receiver: GET_VAR ': .Test1 declared in .Test1.component9' type=.Test1 origin=null FUN GENERATED_DATA_CLASS_MEMBER name:copy visibility:public modality:FINAL <> ($this:.Test1, stringArray:kotlin.Array, charArray:kotlin.CharArray, booleanArray:kotlin.BooleanArray, byteArray:kotlin.ByteArray, shortArray:kotlin.ShortArray, intArray:kotlin.IntArray, longArray:kotlin.LongArray, floatArray:kotlin.FloatArray, doubleArray:kotlin.DoubleArray) returnType:.Test1 @@ -207,7 +207,7 @@ FILE fqName: fileName:/dataClassWithArrayMembers.kt receiver: GET_VAR ': .Test1 declared in .Test1.copy' type=.Test1 origin=null BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun copy (stringArray: kotlin.Array, charArray: kotlin.CharArray, booleanArray: kotlin.BooleanArray, byteArray: kotlin.ByteArray, shortArray: kotlin.ShortArray, intArray: kotlin.IntArray, longArray: kotlin.LongArray, floatArray: kotlin.FloatArray, doubleArray: kotlin.DoubleArray): .Test1 declared in .Test1' - CONSTRUCTOR_CALL 'public constructor (stringArray: kotlin.Array, charArray: kotlin.CharArray, booleanArray: kotlin.BooleanArray, byteArray: kotlin.ByteArray, shortArray: kotlin.ShortArray, intArray: kotlin.IntArray, longArray: kotlin.LongArray, floatArray: kotlin.FloatArray, doubleArray: kotlin.DoubleArray) [primary] declared in .Test1' type=.Test1 origin=null + CONSTRUCTOR_CALL 'public constructor (stringArray: kotlin.Array, charArray: kotlin.CharArray, booleanArray: kotlin.BooleanArray, byteArray: kotlin.ByteArray, shortArray: kotlin.ShortArray, intArray: kotlin.IntArray, longArray: kotlin.LongArray, floatArray: kotlin.FloatArray, doubleArray: kotlin.DoubleArray) declared in .Test1' type=.Test1 origin=null stringArray: GET_VAR 'stringArray: kotlin.Array declared in .Test1.copy' type=kotlin.Array origin=null charArray: GET_VAR 'charArray: kotlin.CharArray declared in .Test1.copy' type=kotlin.CharArray origin=null booleanArray: GET_VAR 'booleanArray: kotlin.BooleanArray declared in .Test1.copy' type=kotlin.BooleanArray origin=null @@ -279,75 +279,75 @@ FILE fqName: fileName:/dataClassWithArrayMembers.kt CALL 'public final fun dataClassArrayMemberHashCode (arg0: kotlin.Any): kotlin.Int declared in kotlin.internal.ir' type=kotlin.Int origin=null arg0: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:stringArray type:kotlin.Array visibility:private [final]' type=kotlin.Array origin=null receiver: GET_VAR ': .Test1 declared in .Test1.hashCode' type=.Test1 origin=null - SET_VAR 'var result: kotlin.Int [var] declared in .Test1.hashCode' type=kotlin.Unit origin=EQ - CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: CALL 'public final fun times (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'var result: kotlin.Int [var] declared in .Test1.hashCode' type=kotlin.Int origin=null + SET_VAR 'var result: kotlin.Int declared in .Test1.hashCode' type=kotlin.Unit origin=EQ + CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: CALL 'public final fun times (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'var result: kotlin.Int declared in .Test1.hashCode' type=kotlin.Int origin=null other: CONST Int type=kotlin.Int value=31 other: CALL 'public final fun dataClassArrayMemberHashCode (arg0: kotlin.Any): kotlin.Int declared in kotlin.internal.ir' type=kotlin.Int origin=null arg0: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:charArray type:kotlin.CharArray visibility:private [final]' type=kotlin.CharArray origin=null receiver: GET_VAR ': .Test1 declared in .Test1.hashCode' type=.Test1 origin=null - SET_VAR 'var result: kotlin.Int [var] declared in .Test1.hashCode' type=kotlin.Unit origin=EQ - CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: CALL 'public final fun times (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'var result: kotlin.Int [var] declared in .Test1.hashCode' type=kotlin.Int origin=null + SET_VAR 'var result: kotlin.Int declared in .Test1.hashCode' type=kotlin.Unit origin=EQ + CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: CALL 'public final fun times (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'var result: kotlin.Int declared in .Test1.hashCode' type=kotlin.Int origin=null other: CONST Int type=kotlin.Int value=31 other: CALL 'public final fun dataClassArrayMemberHashCode (arg0: kotlin.Any): kotlin.Int declared in kotlin.internal.ir' type=kotlin.Int origin=null arg0: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:booleanArray type:kotlin.BooleanArray visibility:private [final]' type=kotlin.BooleanArray origin=null receiver: GET_VAR ': .Test1 declared in .Test1.hashCode' type=.Test1 origin=null - SET_VAR 'var result: kotlin.Int [var] declared in .Test1.hashCode' type=kotlin.Unit origin=EQ - CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: CALL 'public final fun times (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'var result: kotlin.Int [var] declared in .Test1.hashCode' type=kotlin.Int origin=null + SET_VAR 'var result: kotlin.Int declared in .Test1.hashCode' type=kotlin.Unit origin=EQ + CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: CALL 'public final fun times (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'var result: kotlin.Int declared in .Test1.hashCode' type=kotlin.Int origin=null other: CONST Int type=kotlin.Int value=31 other: CALL 'public final fun dataClassArrayMemberHashCode (arg0: kotlin.Any): kotlin.Int declared in kotlin.internal.ir' type=kotlin.Int origin=null arg0: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:byteArray type:kotlin.ByteArray visibility:private [final]' type=kotlin.ByteArray origin=null receiver: GET_VAR ': .Test1 declared in .Test1.hashCode' type=.Test1 origin=null - SET_VAR 'var result: kotlin.Int [var] declared in .Test1.hashCode' type=kotlin.Unit origin=EQ - CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: CALL 'public final fun times (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'var result: kotlin.Int [var] declared in .Test1.hashCode' type=kotlin.Int origin=null + SET_VAR 'var result: kotlin.Int declared in .Test1.hashCode' type=kotlin.Unit origin=EQ + CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: CALL 'public final fun times (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'var result: kotlin.Int declared in .Test1.hashCode' type=kotlin.Int origin=null other: CONST Int type=kotlin.Int value=31 other: CALL 'public final fun dataClassArrayMemberHashCode (arg0: kotlin.Any): kotlin.Int declared in kotlin.internal.ir' type=kotlin.Int origin=null arg0: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:shortArray type:kotlin.ShortArray visibility:private [final]' type=kotlin.ShortArray origin=null receiver: GET_VAR ': .Test1 declared in .Test1.hashCode' type=.Test1 origin=null - SET_VAR 'var result: kotlin.Int [var] declared in .Test1.hashCode' type=kotlin.Unit origin=EQ - CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: CALL 'public final fun times (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'var result: kotlin.Int [var] declared in .Test1.hashCode' type=kotlin.Int origin=null + SET_VAR 'var result: kotlin.Int declared in .Test1.hashCode' type=kotlin.Unit origin=EQ + CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: CALL 'public final fun times (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'var result: kotlin.Int declared in .Test1.hashCode' type=kotlin.Int origin=null other: CONST Int type=kotlin.Int value=31 other: CALL 'public final fun dataClassArrayMemberHashCode (arg0: kotlin.Any): kotlin.Int declared in kotlin.internal.ir' type=kotlin.Int origin=null arg0: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:intArray type:kotlin.IntArray visibility:private [final]' type=kotlin.IntArray origin=null receiver: GET_VAR ': .Test1 declared in .Test1.hashCode' type=.Test1 origin=null - SET_VAR 'var result: kotlin.Int [var] declared in .Test1.hashCode' type=kotlin.Unit origin=EQ - CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: CALL 'public final fun times (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'var result: kotlin.Int [var] declared in .Test1.hashCode' type=kotlin.Int origin=null + SET_VAR 'var result: kotlin.Int declared in .Test1.hashCode' type=kotlin.Unit origin=EQ + CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: CALL 'public final fun times (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'var result: kotlin.Int declared in .Test1.hashCode' type=kotlin.Int origin=null other: CONST Int type=kotlin.Int value=31 other: CALL 'public final fun dataClassArrayMemberHashCode (arg0: kotlin.Any): kotlin.Int declared in kotlin.internal.ir' type=kotlin.Int origin=null arg0: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:longArray type:kotlin.LongArray visibility:private [final]' type=kotlin.LongArray origin=null receiver: GET_VAR ': .Test1 declared in .Test1.hashCode' type=.Test1 origin=null - SET_VAR 'var result: kotlin.Int [var] declared in .Test1.hashCode' type=kotlin.Unit origin=EQ - CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: CALL 'public final fun times (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'var result: kotlin.Int [var] declared in .Test1.hashCode' type=kotlin.Int origin=null + SET_VAR 'var result: kotlin.Int declared in .Test1.hashCode' type=kotlin.Unit origin=EQ + CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: CALL 'public final fun times (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'var result: kotlin.Int declared in .Test1.hashCode' type=kotlin.Int origin=null other: CONST Int type=kotlin.Int value=31 other: CALL 'public final fun dataClassArrayMemberHashCode (arg0: kotlin.Any): kotlin.Int declared in kotlin.internal.ir' type=kotlin.Int origin=null arg0: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:floatArray type:kotlin.FloatArray visibility:private [final]' type=kotlin.FloatArray origin=null receiver: GET_VAR ': .Test1 declared in .Test1.hashCode' type=.Test1 origin=null - SET_VAR 'var result: kotlin.Int [var] declared in .Test1.hashCode' type=kotlin.Unit origin=EQ - CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: CALL 'public final fun times (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'var result: kotlin.Int [var] declared in .Test1.hashCode' type=kotlin.Int origin=null + SET_VAR 'var result: kotlin.Int declared in .Test1.hashCode' type=kotlin.Unit origin=EQ + CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: CALL 'public final fun times (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'var result: kotlin.Int declared in .Test1.hashCode' type=kotlin.Int origin=null other: CONST Int type=kotlin.Int value=31 other: CALL 'public final fun dataClassArrayMemberHashCode (arg0: kotlin.Any): kotlin.Int declared in kotlin.internal.ir' type=kotlin.Int origin=null arg0: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:doubleArray type:kotlin.DoubleArray visibility:private [final]' type=kotlin.DoubleArray origin=null receiver: GET_VAR ': .Test1 declared in .Test1.hashCode' type=.Test1 origin=null RETURN type=kotlin.Nothing from='public open fun hashCode (): kotlin.Int declared in .Test1' - GET_VAR 'var result: kotlin.Int [var] declared in .Test1.hashCode' type=kotlin.Int origin=null + GET_VAR 'var result: kotlin.Int declared in .Test1.hashCode' type=kotlin.Int origin=null FUN GENERATED_DATA_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:.Test1, other:kotlin.Any?) returnType:kotlin.Boolean [operator] overridden: - public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any $this: VALUE_PARAMETER name: type:.Test1 VALUE_PARAMETER name:other index:0 type:kotlin.Any? BLOCK_BODY @@ -356,108 +356,108 @@ FILE fqName: fileName:/dataClassWithArrayMembers.kt 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 ': .Test1 declared in .Test1.equals' type=.Test1 origin=null arg1: GET_VAR 'other: kotlin.Any? declared in .Test1.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test1' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test1' CONST Boolean type=kotlin.Boolean value=true WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=.Test1 GET_VAR 'other: kotlin.Any? declared in .Test1.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test1' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test1' CONST Boolean type=kotlin.Boolean value=false VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:.Test1 [val] TYPE_OP type=.Test1 origin=CAST typeOperand=.Test1 GET_VAR 'other: kotlin.Any? declared in .Test1.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 + if: CALL 'public final fun not (): kotlin.Boolean 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:stringArray type:kotlin.Array visibility:private [final]' type=kotlin.Array origin=null receiver: GET_VAR ': .Test1 declared in .Test1.equals' type=.Test1 origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:stringArray type:kotlin.Array visibility:private [final]' type=kotlin.Array origin=null - receiver: GET_VAR 'val tmp_0: .Test1 [val] declared in .Test1.equals' type=.Test1 origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test1' + receiver: GET_VAR 'val tmp_0: .Test1 declared in .Test1.equals' type=.Test1 origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test1' CONST Boolean type=kotlin.Boolean value=false 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 + if: CALL 'public final fun not (): kotlin.Boolean 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:charArray type:kotlin.CharArray visibility:private [final]' type=kotlin.CharArray origin=null receiver: GET_VAR ': .Test1 declared in .Test1.equals' type=.Test1 origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:charArray type:kotlin.CharArray visibility:private [final]' type=kotlin.CharArray origin=null - receiver: GET_VAR 'val tmp_0: .Test1 [val] declared in .Test1.equals' type=.Test1 origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test1' + receiver: GET_VAR 'val tmp_0: .Test1 declared in .Test1.equals' type=.Test1 origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test1' CONST Boolean type=kotlin.Boolean value=false 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 + if: CALL 'public final fun not (): kotlin.Boolean 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:booleanArray type:kotlin.BooleanArray visibility:private [final]' type=kotlin.BooleanArray origin=null receiver: GET_VAR ': .Test1 declared in .Test1.equals' type=.Test1 origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:booleanArray type:kotlin.BooleanArray visibility:private [final]' type=kotlin.BooleanArray origin=null - receiver: GET_VAR 'val tmp_0: .Test1 [val] declared in .Test1.equals' type=.Test1 origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test1' + receiver: GET_VAR 'val tmp_0: .Test1 declared in .Test1.equals' type=.Test1 origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test1' CONST Boolean type=kotlin.Boolean value=false 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 + if: CALL 'public final fun not (): kotlin.Boolean 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:byteArray type:kotlin.ByteArray visibility:private [final]' type=kotlin.ByteArray origin=null receiver: GET_VAR ': .Test1 declared in .Test1.equals' type=.Test1 origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:byteArray type:kotlin.ByteArray visibility:private [final]' type=kotlin.ByteArray origin=null - receiver: GET_VAR 'val tmp_0: .Test1 [val] declared in .Test1.equals' type=.Test1 origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test1' + receiver: GET_VAR 'val tmp_0: .Test1 declared in .Test1.equals' type=.Test1 origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test1' CONST Boolean type=kotlin.Boolean value=false 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 + if: CALL 'public final fun not (): kotlin.Boolean 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:shortArray type:kotlin.ShortArray visibility:private [final]' type=kotlin.ShortArray origin=null receiver: GET_VAR ': .Test1 declared in .Test1.equals' type=.Test1 origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:shortArray type:kotlin.ShortArray visibility:private [final]' type=kotlin.ShortArray origin=null - receiver: GET_VAR 'val tmp_0: .Test1 [val] declared in .Test1.equals' type=.Test1 origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test1' + receiver: GET_VAR 'val tmp_0: .Test1 declared in .Test1.equals' type=.Test1 origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test1' CONST Boolean type=kotlin.Boolean value=false 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 + if: CALL 'public final fun not (): kotlin.Boolean 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:intArray type:kotlin.IntArray visibility:private [final]' type=kotlin.IntArray origin=null receiver: GET_VAR ': .Test1 declared in .Test1.equals' type=.Test1 origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:intArray type:kotlin.IntArray visibility:private [final]' type=kotlin.IntArray origin=null - receiver: GET_VAR 'val tmp_0: .Test1 [val] declared in .Test1.equals' type=.Test1 origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test1' + receiver: GET_VAR 'val tmp_0: .Test1 declared in .Test1.equals' type=.Test1 origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test1' CONST Boolean type=kotlin.Boolean value=false 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 + if: CALL 'public final fun not (): kotlin.Boolean 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:longArray type:kotlin.LongArray visibility:private [final]' type=kotlin.LongArray origin=null receiver: GET_VAR ': .Test1 declared in .Test1.equals' type=.Test1 origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:longArray type:kotlin.LongArray visibility:private [final]' type=kotlin.LongArray origin=null - receiver: GET_VAR 'val tmp_0: .Test1 [val] declared in .Test1.equals' type=.Test1 origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test1' + receiver: GET_VAR 'val tmp_0: .Test1 declared in .Test1.equals' type=.Test1 origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test1' CONST Boolean type=kotlin.Boolean value=false 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 + if: CALL 'public final fun not (): kotlin.Boolean 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:floatArray type:kotlin.FloatArray visibility:private [final]' type=kotlin.FloatArray origin=null receiver: GET_VAR ': .Test1 declared in .Test1.equals' type=.Test1 origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:floatArray type:kotlin.FloatArray visibility:private [final]' type=kotlin.FloatArray origin=null - receiver: GET_VAR 'val tmp_0: .Test1 [val] declared in .Test1.equals' type=.Test1 origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test1' + receiver: GET_VAR 'val tmp_0: .Test1 declared in .Test1.equals' type=.Test1 origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test1' CONST Boolean type=kotlin.Boolean value=false 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 + if: CALL 'public final fun not (): kotlin.Boolean 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:doubleArray type:kotlin.DoubleArray visibility:private [final]' type=kotlin.DoubleArray origin=null receiver: GET_VAR ': .Test1 declared in .Test1.equals' type=.Test1 origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:doubleArray type:kotlin.DoubleArray visibility:private [final]' type=kotlin.DoubleArray origin=null - receiver: GET_VAR 'val tmp_0: .Test1 [val] declared in .Test1.equals' type=.Test1 origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test1' + receiver: GET_VAR 'val tmp_0: .Test1 declared in .Test1.equals' type=.Test1 origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test1' CONST Boolean type=kotlin.Boolean value=false - RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test1' + RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test1' CONST Boolean type=kotlin.Boolean value=true CLASS CLASS name:Test2 modality:FINAL visibility:public [data] superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Test2.Test2> @@ -465,7 +465,7 @@ FILE fqName: fileName:/dataClassWithArrayMembers.kt CONSTRUCTOR visibility:public <> (genericArray:kotlin.Array.Test2>) returnType:.Test2.Test2> [primary] VALUE_PARAMETER name:genericArray index:0 type:kotlin.Array.Test2> BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test2 modality:FINAL visibility:public [data] superTypes:[kotlin.Any]' PROPERTY name:genericArray visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:genericArray type:kotlin.Array.Test2> visibility:private [final] @@ -481,7 +481,7 @@ FILE fqName: fileName:/dataClassWithArrayMembers.kt FUN GENERATED_DATA_CLASS_MEMBER name:component1 visibility:public modality:FINAL <> ($this:.Test2.Test2>) returnType:kotlin.Array.Test2> [operator] $this: VALUE_PARAMETER name: type:.Test2.Test2> BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Array.Test2> [operator] declared in .Test2' + RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Array.Test2> declared in .Test2' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:genericArray type:kotlin.Array.Test2> visibility:private [final]' type=kotlin.Array.Test2> origin=null receiver: GET_VAR ': .Test2.Test2> declared in .Test2.component1' type=.Test2.Test2> origin=null FUN GENERATED_DATA_CLASS_MEMBER name:copy visibility:public modality:FINAL <> ($this:.Test2.Test2>, genericArray:kotlin.Array.Test2>) returnType:.Test2.Test2> @@ -492,7 +492,7 @@ FILE fqName: fileName:/dataClassWithArrayMembers.kt receiver: GET_VAR ': .Test2.Test2> declared in .Test2.copy' type=.Test2.Test2> origin=null BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun copy (genericArray: kotlin.Array.Test2>): .Test2.Test2> declared in .Test2' - CONSTRUCTOR_CALL 'public constructor (genericArray: kotlin.Array.Test2>) [primary] declared in .Test2' type=.Test2.Test2> origin=null + CONSTRUCTOR_CALL 'public constructor (genericArray: kotlin.Array.Test2>) declared in .Test2' type=.Test2.Test2> origin=null : T of .Test2 genericArray: GET_VAR 'genericArray: kotlin.Array.Test2> declared in .Test2.copy' type=kotlin.Array.Test2> origin=null FUN GENERATED_DATA_CLASS_MEMBER name:toString visibility:public modality:OPEN <> ($this:.Test2.Test2>) returnType:kotlin.String @@ -519,7 +519,7 @@ FILE fqName: fileName:/dataClassWithArrayMembers.kt receiver: GET_VAR ': .Test2.Test2> declared in .Test2.hashCode' type=.Test2.Test2> origin=null FUN GENERATED_DATA_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:.Test2.Test2>, other:kotlin.Any?) returnType:kotlin.Boolean [operator] overridden: - public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any $this: VALUE_PARAMETER name: type:.Test2.Test2> VALUE_PARAMETER name:other index:0 type:kotlin.Any? BLOCK_BODY @@ -528,35 +528,35 @@ FILE fqName: fileName:/dataClassWithArrayMembers.kt 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 ': .Test2.Test2> declared in .Test2.equals' type=.Test2.Test2> origin=null arg1: GET_VAR 'other: kotlin.Any? declared in .Test2.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test2' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test2' CONST Boolean type=kotlin.Boolean value=true WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=.Test2.Test2> GET_VAR 'other: kotlin.Any? declared in .Test2.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test2' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test2' CONST Boolean type=kotlin.Boolean value=false VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:.Test2.Test2> [val] TYPE_OP type=.Test2.Test2> origin=CAST typeOperand=.Test2.Test2> GET_VAR 'other: kotlin.Any? declared in .Test2.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 + if: CALL 'public final fun not (): kotlin.Boolean 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:genericArray type:kotlin.Array.Test2> visibility:private [final]' type=kotlin.Array.Test2> origin=null receiver: GET_VAR ': .Test2.Test2> declared in .Test2.equals' type=.Test2.Test2> origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:genericArray type:kotlin.Array.Test2> visibility:private [final]' type=kotlin.Array.Test2> origin=null - receiver: GET_VAR 'val tmp_1: .Test2.Test2> [val] declared in .Test2.equals' type=.Test2.Test2> origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test2' + receiver: GET_VAR 'val tmp_1: .Test2.Test2> declared in .Test2.equals' type=.Test2.Test2> origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test2' CONST Boolean type=kotlin.Boolean value=false - RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test2' + RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test2' CONST Boolean type=kotlin.Boolean value=true CLASS CLASS name:Test3 modality:FINAL visibility:public [data] superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Test3 CONSTRUCTOR visibility:public <> (anyArrayN:kotlin.Array?) returnType:.Test3 [primary] VALUE_PARAMETER name:anyArrayN index:0 type:kotlin.Array? BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test3 modality:FINAL visibility:public [data] superTypes:[kotlin.Any]' PROPERTY name:anyArrayN visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:anyArrayN type:kotlin.Array? visibility:private [final] @@ -572,7 +572,7 @@ FILE fqName: fileName:/dataClassWithArrayMembers.kt FUN GENERATED_DATA_CLASS_MEMBER name:component1 visibility:public modality:FINAL <> ($this:.Test3) returnType:kotlin.Array? [operator] $this: VALUE_PARAMETER name: type:.Test3 BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Array? [operator] declared in .Test3' + RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Array? declared in .Test3' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:anyArrayN type:kotlin.Array? visibility:private [final]' type=kotlin.Array? origin=null receiver: GET_VAR ': .Test3 declared in .Test3.component1' type=.Test3 origin=null FUN GENERATED_DATA_CLASS_MEMBER name:copy visibility:public modality:FINAL <> ($this:.Test3, anyArrayN:kotlin.Array?) returnType:.Test3 @@ -583,7 +583,7 @@ FILE fqName: fileName:/dataClassWithArrayMembers.kt receiver: GET_VAR ': .Test3 declared in .Test3.copy' type=.Test3 origin=null BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun copy (anyArrayN: kotlin.Array?): .Test3 declared in .Test3' - CONSTRUCTOR_CALL 'public constructor (anyArrayN: kotlin.Array?) [primary] declared in .Test3' type=.Test3 origin=null + CONSTRUCTOR_CALL 'public constructor (anyArrayN: kotlin.Array?) declared in .Test3' type=.Test3 origin=null anyArrayN: GET_VAR 'anyArrayN: kotlin.Array? declared in .Test3.copy' type=kotlin.Array? origin=null FUN GENERATED_DATA_CLASS_MEMBER name:toString visibility:public modality:OPEN <> ($this:.Test3) returnType:kotlin.String overridden: @@ -618,7 +618,7 @@ FILE fqName: fileName:/dataClassWithArrayMembers.kt receiver: GET_VAR ': .Test3 declared in .Test3.hashCode' type=.Test3 origin=null FUN GENERATED_DATA_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:.Test3, other:kotlin.Any?) returnType:kotlin.Boolean [operator] overridden: - public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any $this: VALUE_PARAMETER name: type:.Test3 VALUE_PARAMETER name:other index:0 type:kotlin.Any? BLOCK_BODY @@ -627,26 +627,26 @@ FILE fqName: fileName:/dataClassWithArrayMembers.kt 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 ': .Test3 declared in .Test3.equals' type=.Test3 origin=null arg1: GET_VAR 'other: kotlin.Any? declared in .Test3.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test3' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test3' CONST Boolean type=kotlin.Boolean value=true WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=.Test3 GET_VAR 'other: kotlin.Any? declared in .Test3.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test3' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test3' CONST Boolean type=kotlin.Boolean value=false VAR IR_TEMPORARY_VARIABLE name:tmp_2 type:.Test3 [val] TYPE_OP type=.Test3 origin=CAST typeOperand=.Test3 GET_VAR 'other: kotlin.Any? declared in .Test3.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 + if: CALL 'public final fun not (): kotlin.Boolean 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:anyArrayN type:kotlin.Array? visibility:private [final]' type=kotlin.Array? origin=null receiver: GET_VAR ': .Test3 declared in .Test3.equals' type=.Test3 origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:anyArrayN type:kotlin.Array? visibility:private [final]' type=kotlin.Array? origin=null - receiver: GET_VAR 'val tmp_2: .Test3 [val] declared in .Test3.equals' type=.Test3 origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test3' + receiver: GET_VAR 'val tmp_2: .Test3 declared in .Test3.equals' type=.Test3 origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test3' CONST Boolean type=kotlin.Boolean value=false - RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test3' + RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test3' CONST Boolean type=kotlin.Boolean value=true diff --git a/compiler/testData/ir/irText/classes/dataClasses/dataClasses.fir.ir.txt b/compiler/testData/ir/irText/classes/dataClasses/dataClasses.fir.ir.txt index a991355927d..df5a248c495 100644 --- a/compiler/testData/ir/irText/classes/dataClasses/dataClasses.fir.ir.txt +++ b/compiler/testData/ir/irText/classes/dataClasses/dataClasses.fir.ir.txt @@ -6,7 +6,7 @@ FILE fqName: fileName:/dataClasses.kt VALUE_PARAMETER name:y index:1 type:kotlin.String VALUE_PARAMETER name:z index:2 type:kotlin.Any BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test1 modality:FINAL visibility:public [data] superTypes:[kotlin.Any]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private [final] @@ -44,19 +44,19 @@ FILE fqName: fileName:/dataClasses.kt FUN GENERATED_DATA_CLASS_MEMBER name:component1 visibility:public modality:FINAL <> ($this:.Test1) returnType:kotlin.Int [operator] $this: VALUE_PARAMETER name: type:.Test1 BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Int [operator] declared in .Test1' + RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Int declared in .Test1' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null receiver: GET_VAR ': .Test1 declared in .Test1.component1' type=.Test1 origin=null FUN GENERATED_DATA_CLASS_MEMBER name:component2 visibility:public modality:FINAL <> ($this:.Test1) returnType:kotlin.String [operator] $this: VALUE_PARAMETER name: type:.Test1 BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component2 (): kotlin.String [operator] declared in .Test1' + RETURN type=kotlin.Nothing from='public final fun component2 (): kotlin.String declared in .Test1' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:y type:kotlin.String visibility:private [final]' type=kotlin.String origin=null receiver: GET_VAR ': .Test1 declared in .Test1.component2' type=.Test1 origin=null FUN GENERATED_DATA_CLASS_MEMBER name:component3 visibility:public modality:FINAL <> ($this:.Test1) returnType:kotlin.Any [operator] $this: VALUE_PARAMETER name: type:.Test1 BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component3 (): kotlin.Any [operator] declared in .Test1' + RETURN type=kotlin.Nothing from='public final fun component3 (): kotlin.Any declared in .Test1' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:z type:kotlin.Any visibility:private [final]' type=kotlin.Any origin=null receiver: GET_VAR ': .Test1 declared in .Test1.component3' type=.Test1 origin=null FUN GENERATED_DATA_CLASS_MEMBER name:copy visibility:public modality:FINAL <> ($this:.Test1, x:kotlin.Int, y:kotlin.String, z:kotlin.Any) returnType:.Test1 @@ -75,13 +75,13 @@ FILE fqName: fileName:/dataClasses.kt receiver: GET_VAR ': .Test1 declared in .Test1.copy' type=.Test1 origin=null BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun copy (x: kotlin.Int, y: kotlin.String, z: kotlin.Any): .Test1 declared in .Test1' - CONSTRUCTOR_CALL 'public constructor (x: kotlin.Int, y: kotlin.String, z: kotlin.Any) [primary] declared in .Test1' type=.Test1 origin=null + CONSTRUCTOR_CALL 'public constructor (x: kotlin.Int, y: kotlin.String, z: kotlin.Any) declared in .Test1' type=.Test1 origin=null x: GET_VAR 'x: kotlin.Int declared in .Test1.copy' type=kotlin.Int origin=null y: GET_VAR 'y: kotlin.String declared in .Test1.copy' type=kotlin.String origin=null z: GET_VAR 'z: kotlin.Any declared in .Test1.copy' type=kotlin.Any origin=null FUN GENERATED_DATA_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:.Test1, other:kotlin.Any?) returnType:kotlin.Boolean [operator] overridden: - public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any $this: VALUE_PARAMETER name: type:.Test1 VALUE_PARAMETER name:other index:0 type:kotlin.Any? BLOCK_BODY @@ -90,48 +90,48 @@ FILE fqName: fileName:/dataClasses.kt 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 ': .Test1 declared in .Test1.equals' type=.Test1 origin=null arg1: GET_VAR 'other: kotlin.Any? declared in .Test1.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test1' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test1' CONST Boolean type=kotlin.Boolean value=true WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=.Test1 GET_VAR 'other: kotlin.Any? declared in .Test1.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test1' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test1' CONST Boolean type=kotlin.Boolean value=false VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:.Test1 [val] TYPE_OP type=.Test1 origin=CAST typeOperand=.Test1 GET_VAR 'other: kotlin.Any? declared in .Test1.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 + if: CALL 'public final fun not (): kotlin.Boolean 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:x type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null receiver: GET_VAR ': .Test1 declared in .Test1.equals' type=.Test1 origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null - receiver: GET_VAR 'val tmp_0: .Test1 [val] declared in .Test1.equals' type=.Test1 origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test1' + receiver: GET_VAR 'val tmp_0: .Test1 declared in .Test1.equals' type=.Test1 origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test1' CONST Boolean type=kotlin.Boolean value=false 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 + if: CALL 'public final fun not (): kotlin.Boolean 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:y type:kotlin.String visibility:private [final]' type=kotlin.String origin=null receiver: GET_VAR ': .Test1 declared in .Test1.equals' type=.Test1 origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:y type:kotlin.String visibility:private [final]' type=kotlin.String origin=null - receiver: GET_VAR 'val tmp_0: .Test1 [val] declared in .Test1.equals' type=.Test1 origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test1' + receiver: GET_VAR 'val tmp_0: .Test1 declared in .Test1.equals' type=.Test1 origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test1' CONST Boolean type=kotlin.Boolean value=false 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 + if: CALL 'public final fun not (): kotlin.Boolean 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:z type:kotlin.Any visibility:private [final]' type=kotlin.Any origin=null receiver: GET_VAR ': .Test1 declared in .Test1.equals' type=.Test1 origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:z type:kotlin.Any visibility:private [final]' type=kotlin.Any origin=null - receiver: GET_VAR 'val tmp_0: .Test1 [val] declared in .Test1.equals' type=.Test1 origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test1' + receiver: GET_VAR 'val tmp_0: .Test1 declared in .Test1.equals' type=.Test1 origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test1' CONST Boolean type=kotlin.Boolean value=false - RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test1' + RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test1' CONST Boolean type=kotlin.Boolean value=true FUN GENERATED_DATA_CLASS_MEMBER name:hashCode visibility:public modality:OPEN <> ($this:.Test1) returnType:kotlin.Int overridden: @@ -139,27 +139,27 @@ FILE fqName: fileName:/dataClasses.kt $this: VALUE_PARAMETER name: type:.Test1 BLOCK_BODY VAR name:result type:kotlin.Int [var] - CALL 'public open fun hashCode (): kotlin.Int [fake_override] declared in kotlin.Int' type=kotlin.Int origin=null + CALL 'public open fun hashCode (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null receiver: GET_VAR ': .Test1 declared in .Test1.hashCode' type=.Test1 origin=null - SET_VAR 'var result: kotlin.Int [var] declared in .Test1.hashCode' type=kotlin.Unit origin=EQ - CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: CALL 'public final fun times (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'var result: kotlin.Int [var] declared in .Test1.hashCode' type=kotlin.Int origin=null + SET_VAR 'var result: kotlin.Int declared in .Test1.hashCode' type=kotlin.Unit origin=EQ + CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: CALL 'public final fun times (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'var result: kotlin.Int declared in .Test1.hashCode' type=kotlin.Int origin=null other: CONST Int type=kotlin.Int value=31 - other: CALL 'public open fun hashCode (): kotlin.Int [fake_override] declared in kotlin.String' type=kotlin.Int origin=null + other: CALL 'public open fun hashCode (): kotlin.Int declared in kotlin.String' type=kotlin.Int origin=null $this: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:y type:kotlin.String visibility:private [final]' type=kotlin.String origin=null receiver: GET_VAR ': .Test1 declared in .Test1.hashCode' type=.Test1 origin=null - SET_VAR 'var result: kotlin.Int [var] declared in .Test1.hashCode' type=kotlin.Unit origin=EQ - CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: CALL 'public final fun times (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'var result: kotlin.Int [var] declared in .Test1.hashCode' type=kotlin.Int origin=null + SET_VAR 'var result: kotlin.Int declared in .Test1.hashCode' type=kotlin.Unit origin=EQ + CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: CALL 'public final fun times (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'var result: kotlin.Int declared in .Test1.hashCode' type=kotlin.Int origin=null other: CONST Int type=kotlin.Int value=31 other: CALL 'public open fun hashCode (): kotlin.Int declared in kotlin.Any' type=kotlin.Int origin=null $this: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:z type:kotlin.Any visibility:private [final]' type=kotlin.Any origin=null receiver: GET_VAR ': .Test1 declared in .Test1.hashCode' type=.Test1 origin=null RETURN type=kotlin.Nothing from='public open fun hashCode (): kotlin.Int declared in .Test1' - GET_VAR 'var result: kotlin.Int [var] declared in .Test1.hashCode' type=kotlin.Int origin=null + GET_VAR 'var result: kotlin.Int declared in .Test1.hashCode' type=kotlin.Int origin=null FUN GENERATED_DATA_CLASS_MEMBER name:toString visibility:public modality:OPEN <> ($this:.Test1) returnType:kotlin.String overridden: public open fun toString (): kotlin.String declared in kotlin.Any @@ -182,7 +182,7 @@ FILE fqName: fileName:/dataClasses.kt CONSTRUCTOR visibility:public <> (x:kotlin.Any?) returnType:.Test2 [primary] VALUE_PARAMETER name:x index:0 type:kotlin.Any? BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test2 modality:FINAL visibility:public [data] superTypes:[kotlin.Any]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Any? visibility:private [final] @@ -198,7 +198,7 @@ FILE fqName: fileName:/dataClasses.kt FUN GENERATED_DATA_CLASS_MEMBER name:component1 visibility:public modality:FINAL <> ($this:.Test2) returnType:kotlin.Any? [operator] $this: VALUE_PARAMETER name: type:.Test2 BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Any? [operator] declared in .Test2' + RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Any? declared in .Test2' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Any? visibility:private [final]' type=kotlin.Any? origin=null receiver: GET_VAR ': .Test2 declared in .Test2.component1' type=.Test2 origin=null FUN GENERATED_DATA_CLASS_MEMBER name:copy visibility:public modality:FINAL <> ($this:.Test2, x:kotlin.Any?) returnType:.Test2 @@ -209,11 +209,11 @@ FILE fqName: fileName:/dataClasses.kt receiver: GET_VAR ': .Test2 declared in .Test2.copy' type=.Test2 origin=null BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun copy (x: kotlin.Any?): .Test2 declared in .Test2' - CONSTRUCTOR_CALL 'public constructor (x: kotlin.Any?) [primary] declared in .Test2' type=.Test2 origin=null + CONSTRUCTOR_CALL 'public constructor (x: kotlin.Any?) declared in .Test2' type=.Test2 origin=null x: GET_VAR 'x: kotlin.Any? declared in .Test2.copy' type=kotlin.Any? origin=null FUN GENERATED_DATA_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:.Test2, other:kotlin.Any?) returnType:kotlin.Boolean [operator] overridden: - public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any $this: VALUE_PARAMETER name: type:.Test2 VALUE_PARAMETER name:other index:0 type:kotlin.Any? BLOCK_BODY @@ -222,28 +222,28 @@ FILE fqName: fileName:/dataClasses.kt 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 ': .Test2 declared in .Test2.equals' type=.Test2 origin=null arg1: GET_VAR 'other: kotlin.Any? declared in .Test2.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test2' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test2' CONST Boolean type=kotlin.Boolean value=true WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=.Test2 GET_VAR 'other: kotlin.Any? declared in .Test2.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test2' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test2' CONST Boolean type=kotlin.Boolean value=false VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:.Test2 [val] TYPE_OP type=.Test2 origin=CAST typeOperand=.Test2 GET_VAR 'other: kotlin.Any? declared in .Test2.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 + if: CALL 'public final fun not (): kotlin.Boolean 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:x type:kotlin.Any? visibility:private [final]' type=kotlin.Any? origin=null receiver: GET_VAR ': .Test2 declared in .Test2.equals' type=.Test2 origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Any? visibility:private [final]' type=kotlin.Any? origin=null - receiver: GET_VAR 'val tmp_1: .Test2 [val] declared in .Test2.equals' type=.Test2 origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test2' + receiver: GET_VAR 'val tmp_1: .Test2 declared in .Test2.equals' type=.Test2 origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test2' CONST Boolean type=kotlin.Boolean value=false - RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test2' + RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test2' CONST Boolean type=kotlin.Boolean value=true FUN GENERATED_DATA_CLASS_MEMBER name:hashCode visibility:public modality:OPEN <> ($this:.Test2) returnType:kotlin.Int overridden: @@ -282,7 +282,7 @@ FILE fqName: fileName:/dataClasses.kt VALUE_PARAMETER name:f index:2 type:kotlin.Float VALUE_PARAMETER name:df index:3 type:kotlin.Float? BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test3 modality:FINAL visibility:public [data] superTypes:[kotlin.Any]' PROPERTY name:d visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:d type:kotlin.Double visibility:private [final] @@ -331,25 +331,25 @@ FILE fqName: fileName:/dataClasses.kt FUN GENERATED_DATA_CLASS_MEMBER name:component1 visibility:public modality:FINAL <> ($this:.Test3) returnType:kotlin.Double [operator] $this: VALUE_PARAMETER name: type:.Test3 BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Double [operator] declared in .Test3' + RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Double declared in .Test3' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:d type:kotlin.Double visibility:private [final]' type=kotlin.Double origin=null receiver: GET_VAR ': .Test3 declared in .Test3.component1' type=.Test3 origin=null FUN GENERATED_DATA_CLASS_MEMBER name:component2 visibility:public modality:FINAL <> ($this:.Test3) returnType:kotlin.Double? [operator] $this: VALUE_PARAMETER name: type:.Test3 BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component2 (): kotlin.Double? [operator] declared in .Test3' + RETURN type=kotlin.Nothing from='public final fun component2 (): kotlin.Double? declared in .Test3' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:dn type:kotlin.Double? visibility:private [final]' type=kotlin.Double? origin=null receiver: GET_VAR ': .Test3 declared in .Test3.component2' type=.Test3 origin=null FUN GENERATED_DATA_CLASS_MEMBER name:component3 visibility:public modality:FINAL <> ($this:.Test3) returnType:kotlin.Float [operator] $this: VALUE_PARAMETER name: type:.Test3 BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component3 (): kotlin.Float [operator] declared in .Test3' + RETURN type=kotlin.Nothing from='public final fun component3 (): kotlin.Float declared in .Test3' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:f type:kotlin.Float visibility:private [final]' type=kotlin.Float origin=null receiver: GET_VAR ': .Test3 declared in .Test3.component3' type=.Test3 origin=null FUN GENERATED_DATA_CLASS_MEMBER name:component4 visibility:public modality:FINAL <> ($this:.Test3) returnType:kotlin.Float? [operator] $this: VALUE_PARAMETER name: type:.Test3 BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component4 (): kotlin.Float? [operator] declared in .Test3' + RETURN type=kotlin.Nothing from='public final fun component4 (): kotlin.Float? declared in .Test3' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:df type:kotlin.Float? visibility:private [final]' type=kotlin.Float? origin=null receiver: GET_VAR ': .Test3 declared in .Test3.component4' type=.Test3 origin=null FUN GENERATED_DATA_CLASS_MEMBER name:copy visibility:public modality:FINAL <> ($this:.Test3, d:kotlin.Double, dn:kotlin.Double?, f:kotlin.Float, df:kotlin.Float?) returnType:.Test3 @@ -372,14 +372,14 @@ FILE fqName: fileName:/dataClasses.kt receiver: GET_VAR ': .Test3 declared in .Test3.copy' type=.Test3 origin=null BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun copy (d: kotlin.Double, dn: kotlin.Double?, f: kotlin.Float, df: kotlin.Float?): .Test3 declared in .Test3' - CONSTRUCTOR_CALL 'public constructor (d: kotlin.Double, dn: kotlin.Double?, f: kotlin.Float, df: kotlin.Float?) [primary] declared in .Test3' type=.Test3 origin=null + CONSTRUCTOR_CALL 'public constructor (d: kotlin.Double, dn: kotlin.Double?, f: kotlin.Float, df: kotlin.Float?) declared in .Test3' type=.Test3 origin=null d: GET_VAR 'd: kotlin.Double declared in .Test3.copy' type=kotlin.Double origin=null dn: GET_VAR 'dn: kotlin.Double? declared in .Test3.copy' type=kotlin.Double? origin=null f: GET_VAR 'f: kotlin.Float declared in .Test3.copy' type=kotlin.Float origin=null df: GET_VAR 'df: kotlin.Float? declared in .Test3.copy' type=kotlin.Float? origin=null FUN GENERATED_DATA_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:.Test3, other:kotlin.Any?) returnType:kotlin.Boolean [operator] overridden: - public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any $this: VALUE_PARAMETER name: type:.Test3 VALUE_PARAMETER name:other index:0 type:kotlin.Any? BLOCK_BODY @@ -388,58 +388,58 @@ FILE fqName: fileName:/dataClasses.kt 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 ': .Test3 declared in .Test3.equals' type=.Test3 origin=null arg1: GET_VAR 'other: kotlin.Any? declared in .Test3.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test3' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test3' CONST Boolean type=kotlin.Boolean value=true WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=.Test3 GET_VAR 'other: kotlin.Any? declared in .Test3.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test3' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test3' CONST Boolean type=kotlin.Boolean value=false VAR IR_TEMPORARY_VARIABLE name:tmp_2 type:.Test3 [val] TYPE_OP type=.Test3 origin=CAST typeOperand=.Test3 GET_VAR 'other: kotlin.Any? declared in .Test3.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 + if: CALL 'public final fun not (): kotlin.Boolean 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:d type:kotlin.Double visibility:private [final]' type=kotlin.Double origin=null receiver: GET_VAR ': .Test3 declared in .Test3.equals' type=.Test3 origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:d type:kotlin.Double visibility:private [final]' type=kotlin.Double origin=null - receiver: GET_VAR 'val tmp_2: .Test3 [val] declared in .Test3.equals' type=.Test3 origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test3' + receiver: GET_VAR 'val tmp_2: .Test3 declared in .Test3.equals' type=.Test3 origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test3' CONST Boolean type=kotlin.Boolean value=false 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 + if: CALL 'public final fun not (): kotlin.Boolean 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:dn type:kotlin.Double? visibility:private [final]' type=kotlin.Double? origin=null receiver: GET_VAR ': .Test3 declared in .Test3.equals' type=.Test3 origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:dn type:kotlin.Double? visibility:private [final]' type=kotlin.Double? origin=null - receiver: GET_VAR 'val tmp_2: .Test3 [val] declared in .Test3.equals' type=.Test3 origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test3' + receiver: GET_VAR 'val tmp_2: .Test3 declared in .Test3.equals' type=.Test3 origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test3' CONST Boolean type=kotlin.Boolean value=false 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 + if: CALL 'public final fun not (): kotlin.Boolean 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:f type:kotlin.Float visibility:private [final]' type=kotlin.Float origin=null receiver: GET_VAR ': .Test3 declared in .Test3.equals' type=.Test3 origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:f type:kotlin.Float visibility:private [final]' type=kotlin.Float origin=null - receiver: GET_VAR 'val tmp_2: .Test3 [val] declared in .Test3.equals' type=.Test3 origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test3' + receiver: GET_VAR 'val tmp_2: .Test3 declared in .Test3.equals' type=.Test3 origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test3' CONST Boolean type=kotlin.Boolean value=false 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 + if: CALL 'public final fun not (): kotlin.Boolean 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:df type:kotlin.Float? visibility:private [final]' type=kotlin.Float? origin=null receiver: GET_VAR ': .Test3 declared in .Test3.equals' type=.Test3 origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:df type:kotlin.Float? visibility:private [final]' type=kotlin.Float? origin=null - receiver: GET_VAR 'val tmp_2: .Test3 [val] declared in .Test3.equals' type=.Test3 origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test3' + receiver: GET_VAR 'val tmp_2: .Test3 declared in .Test3.equals' type=.Test3 origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test3' CONST Boolean type=kotlin.Boolean value=false - RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test3' + RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test3' CONST Boolean type=kotlin.Boolean value=true FUN GENERATED_DATA_CLASS_MEMBER name:hashCode visibility:public modality:OPEN <> ($this:.Test3) returnType:kotlin.Int overridden: @@ -447,13 +447,13 @@ FILE fqName: fileName:/dataClasses.kt $this: VALUE_PARAMETER name: type:.Test3 BLOCK_BODY VAR name:result type:kotlin.Int [var] - CALL 'public open fun hashCode (): kotlin.Int [fake_override] declared in kotlin.Double' type=kotlin.Int origin=null + CALL 'public open fun hashCode (): kotlin.Int declared in kotlin.Double' type=kotlin.Int origin=null $this: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:d type:kotlin.Double visibility:private [final]' type=kotlin.Double origin=null receiver: GET_VAR ': .Test3 declared in .Test3.hashCode' type=.Test3 origin=null - SET_VAR 'var result: kotlin.Int [var] declared in .Test3.hashCode' type=kotlin.Unit origin=EQ - CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: CALL 'public final fun times (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'var result: kotlin.Int [var] declared in .Test3.hashCode' type=kotlin.Int origin=null + SET_VAR 'var result: kotlin.Int declared in .Test3.hashCode' type=kotlin.Unit origin=EQ + CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: CALL 'public final fun times (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'var result: kotlin.Int declared in .Test3.hashCode' type=kotlin.Int origin=null other: CONST Int type=kotlin.Int value=31 other: WHEN type=kotlin.Int origin=null BRANCH @@ -464,21 +464,21 @@ FILE fqName: fileName:/dataClasses.kt then: CONST Int type=kotlin.Int value=0 BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: CALL 'public open fun hashCode (): kotlin.Int [fake_override] declared in kotlin.Double' type=kotlin.Int origin=null + then: CALL 'public open fun hashCode (): kotlin.Int declared in kotlin.Double' type=kotlin.Int origin=null $this: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:dn type:kotlin.Double? visibility:private [final]' type=kotlin.Double? origin=null receiver: GET_VAR ': .Test3 declared in .Test3.hashCode' type=.Test3 origin=null - SET_VAR 'var result: kotlin.Int [var] declared in .Test3.hashCode' type=kotlin.Unit origin=EQ - CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: CALL 'public final fun times (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'var result: kotlin.Int [var] declared in .Test3.hashCode' type=kotlin.Int origin=null + SET_VAR 'var result: kotlin.Int declared in .Test3.hashCode' type=kotlin.Unit origin=EQ + CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: CALL 'public final fun times (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'var result: kotlin.Int declared in .Test3.hashCode' type=kotlin.Int origin=null other: CONST Int type=kotlin.Int value=31 - other: CALL 'public open fun hashCode (): kotlin.Int [fake_override] declared in kotlin.Float' type=kotlin.Int origin=null + other: CALL 'public open fun hashCode (): kotlin.Int declared in kotlin.Float' type=kotlin.Int origin=null $this: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:f type:kotlin.Float visibility:private [final]' type=kotlin.Float origin=null receiver: GET_VAR ': .Test3 declared in .Test3.hashCode' type=.Test3 origin=null - SET_VAR 'var result: kotlin.Int [var] declared in .Test3.hashCode' type=kotlin.Unit origin=EQ - CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: CALL 'public final fun times (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'var result: kotlin.Int [var] declared in .Test3.hashCode' type=kotlin.Int origin=null + SET_VAR 'var result: kotlin.Int declared in .Test3.hashCode' type=kotlin.Unit origin=EQ + CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: CALL 'public final fun times (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'var result: kotlin.Int declared in .Test3.hashCode' type=kotlin.Int origin=null other: CONST Int type=kotlin.Int value=31 other: WHEN type=kotlin.Int origin=null BRANCH @@ -489,11 +489,11 @@ FILE fqName: fileName:/dataClasses.kt then: CONST Int type=kotlin.Int value=0 BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: CALL 'public open fun hashCode (): kotlin.Int [fake_override] declared in kotlin.Float' type=kotlin.Int origin=null + then: CALL 'public open fun hashCode (): kotlin.Int declared in kotlin.Float' type=kotlin.Int origin=null $this: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:df type:kotlin.Float? visibility:private [final]' type=kotlin.Float? origin=null receiver: GET_VAR ': .Test3 declared in .Test3.hashCode' type=.Test3 origin=null RETURN type=kotlin.Nothing from='public open fun hashCode (): kotlin.Int declared in .Test3' - GET_VAR 'var result: kotlin.Int [var] declared in .Test3.hashCode' type=kotlin.Int origin=null + GET_VAR 'var result: kotlin.Int declared in .Test3.hashCode' type=kotlin.Int origin=null FUN GENERATED_DATA_CLASS_MEMBER name:toString visibility:public modality:OPEN <> ($this:.Test3) returnType:kotlin.String overridden: public open fun toString (): kotlin.String declared in kotlin.Any diff --git a/compiler/testData/ir/irText/classes/dataClasses/dataClasses.ir.txt b/compiler/testData/ir/irText/classes/dataClasses/dataClasses.ir.txt index 233e6cf2e8b..21c2c8d5bf4 100644 --- a/compiler/testData/ir/irText/classes/dataClasses/dataClasses.ir.txt +++ b/compiler/testData/ir/irText/classes/dataClasses/dataClasses.ir.txt @@ -6,7 +6,7 @@ FILE fqName: fileName:/dataClasses.kt VALUE_PARAMETER name:y index:1 type:kotlin.String VALUE_PARAMETER name:z index:2 type:kotlin.Any BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test1 modality:FINAL visibility:public [data] superTypes:[kotlin.Any]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private [final] @@ -44,19 +44,19 @@ FILE fqName: fileName:/dataClasses.kt FUN GENERATED_DATA_CLASS_MEMBER name:component1 visibility:public modality:FINAL <> ($this:.Test1) returnType:kotlin.Int [operator] $this: VALUE_PARAMETER name: type:.Test1 BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Int [operator] declared in .Test1' + RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Int declared in .Test1' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null receiver: GET_VAR ': .Test1 declared in .Test1.component1' type=.Test1 origin=null FUN GENERATED_DATA_CLASS_MEMBER name:component2 visibility:public modality:FINAL <> ($this:.Test1) returnType:kotlin.String [operator] $this: VALUE_PARAMETER name: type:.Test1 BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component2 (): kotlin.String [operator] declared in .Test1' + RETURN type=kotlin.Nothing from='public final fun component2 (): kotlin.String declared in .Test1' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:y type:kotlin.String visibility:private [final]' type=kotlin.String origin=null receiver: GET_VAR ': .Test1 declared in .Test1.component2' type=.Test1 origin=null FUN GENERATED_DATA_CLASS_MEMBER name:component3 visibility:public modality:FINAL <> ($this:.Test1) returnType:kotlin.Any [operator] $this: VALUE_PARAMETER name: type:.Test1 BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component3 (): kotlin.Any [operator] declared in .Test1' + RETURN type=kotlin.Nothing from='public final fun component3 (): kotlin.Any declared in .Test1' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:z type:kotlin.Any visibility:private [final]' type=kotlin.Any origin=null receiver: GET_VAR ': .Test1 declared in .Test1.component3' type=.Test1 origin=null FUN GENERATED_DATA_CLASS_MEMBER name:copy visibility:public modality:FINAL <> ($this:.Test1, x:kotlin.Int, y:kotlin.String, z:kotlin.Any) returnType:.Test1 @@ -75,7 +75,7 @@ FILE fqName: fileName:/dataClasses.kt receiver: GET_VAR ': .Test1 declared in .Test1.copy' type=.Test1 origin=null BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun copy (x: kotlin.Int, y: kotlin.String, z: kotlin.Any): .Test1 declared in .Test1' - CONSTRUCTOR_CALL 'public constructor (x: kotlin.Int, y: kotlin.String, z: kotlin.Any) [primary] declared in .Test1' type=.Test1 origin=null + CONSTRUCTOR_CALL 'public constructor (x: kotlin.Int, y: kotlin.String, z: kotlin.Any) declared in .Test1' type=.Test1 origin=null x: GET_VAR 'x: kotlin.Int declared in .Test1.copy' type=kotlin.Int origin=null y: GET_VAR 'y: kotlin.String declared in .Test1.copy' type=kotlin.String origin=null z: GET_VAR 'z: kotlin.Any declared in .Test1.copy' type=kotlin.Any origin=null @@ -105,30 +105,30 @@ FILE fqName: fileName:/dataClasses.kt $this: VALUE_PARAMETER name: type:.Test1 BLOCK_BODY VAR name:result type:kotlin.Int [var] - CALL 'public open fun hashCode (): kotlin.Int [fake_override] declared in kotlin.Int' type=kotlin.Int origin=null + CALL 'public open fun hashCode (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null receiver: GET_VAR ': .Test1 declared in .Test1.hashCode' type=.Test1 origin=null - SET_VAR 'var result: kotlin.Int [var] declared in .Test1.hashCode' type=kotlin.Unit origin=EQ - CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: CALL 'public final fun times (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'var result: kotlin.Int [var] declared in .Test1.hashCode' type=kotlin.Int origin=null + SET_VAR 'var result: kotlin.Int declared in .Test1.hashCode' type=kotlin.Unit origin=EQ + CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: CALL 'public final fun times (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'var result: kotlin.Int declared in .Test1.hashCode' type=kotlin.Int origin=null other: CONST Int type=kotlin.Int value=31 - other: CALL 'public open fun hashCode (): kotlin.Int [fake_override] declared in kotlin.String' type=kotlin.Int origin=null + other: CALL 'public open fun hashCode (): kotlin.Int declared in kotlin.String' type=kotlin.Int origin=null $this: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:y type:kotlin.String visibility:private [final]' type=kotlin.String origin=null receiver: GET_VAR ': .Test1 declared in .Test1.hashCode' type=.Test1 origin=null - SET_VAR 'var result: kotlin.Int [var] declared in .Test1.hashCode' type=kotlin.Unit origin=EQ - CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: CALL 'public final fun times (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'var result: kotlin.Int [var] declared in .Test1.hashCode' type=kotlin.Int origin=null + SET_VAR 'var result: kotlin.Int declared in .Test1.hashCode' type=kotlin.Unit origin=EQ + CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: CALL 'public final fun times (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'var result: kotlin.Int declared in .Test1.hashCode' type=kotlin.Int origin=null other: CONST Int type=kotlin.Int value=31 other: CALL 'public open fun hashCode (): kotlin.Int declared in kotlin.Any' type=kotlin.Int origin=null $this: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:z type:kotlin.Any visibility:private [final]' type=kotlin.Any origin=null receiver: GET_VAR ': .Test1 declared in .Test1.hashCode' type=.Test1 origin=null RETURN type=kotlin.Nothing from='public open fun hashCode (): kotlin.Int declared in .Test1' - GET_VAR 'var result: kotlin.Int [var] declared in .Test1.hashCode' type=kotlin.Int origin=null + GET_VAR 'var result: kotlin.Int declared in .Test1.hashCode' type=kotlin.Int origin=null FUN GENERATED_DATA_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:.Test1, other:kotlin.Any?) returnType:kotlin.Boolean [operator] overridden: - public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any $this: VALUE_PARAMETER name: type:.Test1 VALUE_PARAMETER name:other index:0 type:kotlin.Any? BLOCK_BODY @@ -137,55 +137,55 @@ FILE fqName: fileName:/dataClasses.kt 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 ': .Test1 declared in .Test1.equals' type=.Test1 origin=null arg1: GET_VAR 'other: kotlin.Any? declared in .Test1.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test1' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test1' CONST Boolean type=kotlin.Boolean value=true WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=.Test1 GET_VAR 'other: kotlin.Any? declared in .Test1.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test1' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test1' CONST Boolean type=kotlin.Boolean value=false VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:.Test1 [val] TYPE_OP type=.Test1 origin=CAST typeOperand=.Test1 GET_VAR 'other: kotlin.Any? declared in .Test1.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 + if: CALL 'public final fun not (): kotlin.Boolean 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:x type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null receiver: GET_VAR ': .Test1 declared in .Test1.equals' type=.Test1 origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null - receiver: GET_VAR 'val tmp_0: .Test1 [val] declared in .Test1.equals' type=.Test1 origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test1' + receiver: GET_VAR 'val tmp_0: .Test1 declared in .Test1.equals' type=.Test1 origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test1' CONST Boolean type=kotlin.Boolean value=false 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 + if: CALL 'public final fun not (): kotlin.Boolean 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:y type:kotlin.String visibility:private [final]' type=kotlin.String origin=null receiver: GET_VAR ': .Test1 declared in .Test1.equals' type=.Test1 origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:y type:kotlin.String visibility:private [final]' type=kotlin.String origin=null - receiver: GET_VAR 'val tmp_0: .Test1 [val] declared in .Test1.equals' type=.Test1 origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test1' + receiver: GET_VAR 'val tmp_0: .Test1 declared in .Test1.equals' type=.Test1 origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test1' CONST Boolean type=kotlin.Boolean value=false 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 + if: CALL 'public final fun not (): kotlin.Boolean 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:z type:kotlin.Any visibility:private [final]' type=kotlin.Any origin=null receiver: GET_VAR ': .Test1 declared in .Test1.equals' type=.Test1 origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:z type:kotlin.Any visibility:private [final]' type=kotlin.Any origin=null - receiver: GET_VAR 'val tmp_0: .Test1 [val] declared in .Test1.equals' type=.Test1 origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test1' + receiver: GET_VAR 'val tmp_0: .Test1 declared in .Test1.equals' type=.Test1 origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test1' CONST Boolean type=kotlin.Boolean value=false - RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test1' + RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test1' CONST Boolean type=kotlin.Boolean value=true CLASS CLASS name:Test2 modality:FINAL visibility:public [data] superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Test2 CONSTRUCTOR visibility:public <> (x:kotlin.Any?) returnType:.Test2 [primary] VALUE_PARAMETER name:x index:0 type:kotlin.Any? BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test2 modality:FINAL visibility:public [data] superTypes:[kotlin.Any]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Any? visibility:private [final] @@ -201,7 +201,7 @@ FILE fqName: fileName:/dataClasses.kt FUN GENERATED_DATA_CLASS_MEMBER name:component1 visibility:public modality:FINAL <> ($this:.Test2) returnType:kotlin.Any? [operator] $this: VALUE_PARAMETER name: type:.Test2 BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Any? [operator] declared in .Test2' + RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Any? declared in .Test2' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Any? visibility:private [final]' type=kotlin.Any? origin=null receiver: GET_VAR ': .Test2 declared in .Test2.component1' type=.Test2 origin=null FUN GENERATED_DATA_CLASS_MEMBER name:copy visibility:public modality:FINAL <> ($this:.Test2, x:kotlin.Any?) returnType:.Test2 @@ -212,7 +212,7 @@ FILE fqName: fileName:/dataClasses.kt receiver: GET_VAR ': .Test2 declared in .Test2.copy' type=.Test2 origin=null BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun copy (x: kotlin.Any?): .Test2 declared in .Test2' - CONSTRUCTOR_CALL 'public constructor (x: kotlin.Any?) [primary] declared in .Test2' type=.Test2 origin=null + CONSTRUCTOR_CALL 'public constructor (x: kotlin.Any?) declared in .Test2' type=.Test2 origin=null x: GET_VAR 'x: kotlin.Any? declared in .Test2.copy' type=kotlin.Any? origin=null FUN GENERATED_DATA_CLASS_MEMBER name:toString visibility:public modality:OPEN <> ($this:.Test2) returnType:kotlin.String overridden: @@ -246,7 +246,7 @@ FILE fqName: fileName:/dataClasses.kt receiver: GET_VAR ': .Test2 declared in .Test2.hashCode' type=.Test2 origin=null FUN GENERATED_DATA_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:.Test2, other:kotlin.Any?) returnType:kotlin.Boolean [operator] overridden: - public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any $this: VALUE_PARAMETER name: type:.Test2 VALUE_PARAMETER name:other index:0 type:kotlin.Any? BLOCK_BODY @@ -255,28 +255,28 @@ FILE fqName: fileName:/dataClasses.kt 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 ': .Test2 declared in .Test2.equals' type=.Test2 origin=null arg1: GET_VAR 'other: kotlin.Any? declared in .Test2.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test2' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test2' CONST Boolean type=kotlin.Boolean value=true WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=.Test2 GET_VAR 'other: kotlin.Any? declared in .Test2.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test2' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test2' CONST Boolean type=kotlin.Boolean value=false VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:.Test2 [val] TYPE_OP type=.Test2 origin=CAST typeOperand=.Test2 GET_VAR 'other: kotlin.Any? declared in .Test2.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 + if: CALL 'public final fun not (): kotlin.Boolean 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:x type:kotlin.Any? visibility:private [final]' type=kotlin.Any? origin=null receiver: GET_VAR ': .Test2 declared in .Test2.equals' type=.Test2 origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Any? visibility:private [final]' type=kotlin.Any? origin=null - receiver: GET_VAR 'val tmp_1: .Test2 [val] declared in .Test2.equals' type=.Test2 origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test2' + receiver: GET_VAR 'val tmp_1: .Test2 declared in .Test2.equals' type=.Test2 origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test2' CONST Boolean type=kotlin.Boolean value=false - RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test2' + RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test2' CONST Boolean type=kotlin.Boolean value=true CLASS CLASS name:Test3 modality:FINAL visibility:public [data] superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Test3 @@ -286,7 +286,7 @@ FILE fqName: fileName:/dataClasses.kt VALUE_PARAMETER name:f index:2 type:kotlin.Float VALUE_PARAMETER name:df index:3 type:kotlin.Float? BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test3 modality:FINAL visibility:public [data] superTypes:[kotlin.Any]' PROPERTY name:d visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:d type:kotlin.Double visibility:private [final] @@ -335,25 +335,25 @@ FILE fqName: fileName:/dataClasses.kt FUN GENERATED_DATA_CLASS_MEMBER name:component1 visibility:public modality:FINAL <> ($this:.Test3) returnType:kotlin.Double [operator] $this: VALUE_PARAMETER name: type:.Test3 BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Double [operator] declared in .Test3' + RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Double declared in .Test3' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:d type:kotlin.Double visibility:private [final]' type=kotlin.Double origin=null receiver: GET_VAR ': .Test3 declared in .Test3.component1' type=.Test3 origin=null FUN GENERATED_DATA_CLASS_MEMBER name:component2 visibility:public modality:FINAL <> ($this:.Test3) returnType:kotlin.Double? [operator] $this: VALUE_PARAMETER name: type:.Test3 BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component2 (): kotlin.Double? [operator] declared in .Test3' + RETURN type=kotlin.Nothing from='public final fun component2 (): kotlin.Double? declared in .Test3' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:dn type:kotlin.Double? visibility:private [final]' type=kotlin.Double? origin=null receiver: GET_VAR ': .Test3 declared in .Test3.component2' type=.Test3 origin=null FUN GENERATED_DATA_CLASS_MEMBER name:component3 visibility:public modality:FINAL <> ($this:.Test3) returnType:kotlin.Float [operator] $this: VALUE_PARAMETER name: type:.Test3 BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component3 (): kotlin.Float [operator] declared in .Test3' + RETURN type=kotlin.Nothing from='public final fun component3 (): kotlin.Float declared in .Test3' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:f type:kotlin.Float visibility:private [final]' type=kotlin.Float origin=null receiver: GET_VAR ': .Test3 declared in .Test3.component3' type=.Test3 origin=null FUN GENERATED_DATA_CLASS_MEMBER name:component4 visibility:public modality:FINAL <> ($this:.Test3) returnType:kotlin.Float? [operator] $this: VALUE_PARAMETER name: type:.Test3 BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component4 (): kotlin.Float? [operator] declared in .Test3' + RETURN type=kotlin.Nothing from='public final fun component4 (): kotlin.Float? declared in .Test3' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:df type:kotlin.Float? visibility:private [final]' type=kotlin.Float? origin=null receiver: GET_VAR ': .Test3 declared in .Test3.component4' type=.Test3 origin=null FUN GENERATED_DATA_CLASS_MEMBER name:copy visibility:public modality:FINAL <> ($this:.Test3, d:kotlin.Double, dn:kotlin.Double?, f:kotlin.Float, df:kotlin.Float?) returnType:.Test3 @@ -376,7 +376,7 @@ FILE fqName: fileName:/dataClasses.kt receiver: GET_VAR ': .Test3 declared in .Test3.copy' type=.Test3 origin=null BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun copy (d: kotlin.Double, dn: kotlin.Double?, f: kotlin.Float, df: kotlin.Float?): .Test3 declared in .Test3' - CONSTRUCTOR_CALL 'public constructor (d: kotlin.Double, dn: kotlin.Double?, f: kotlin.Float, df: kotlin.Float?) [primary] declared in .Test3' type=.Test3 origin=null + CONSTRUCTOR_CALL 'public constructor (d: kotlin.Double, dn: kotlin.Double?, f: kotlin.Float, df: kotlin.Float?) declared in .Test3' type=.Test3 origin=null d: GET_VAR 'd: kotlin.Double declared in .Test3.copy' type=kotlin.Double origin=null dn: GET_VAR 'dn: kotlin.Double? declared in .Test3.copy' type=kotlin.Double? origin=null f: GET_VAR 'f: kotlin.Float declared in .Test3.copy' type=kotlin.Float origin=null @@ -411,13 +411,13 @@ FILE fqName: fileName:/dataClasses.kt $this: VALUE_PARAMETER name: type:.Test3 BLOCK_BODY VAR name:result type:kotlin.Int [var] - CALL 'public open fun hashCode (): kotlin.Int [fake_override] declared in kotlin.Double' type=kotlin.Int origin=null + CALL 'public open fun hashCode (): kotlin.Int declared in kotlin.Double' type=kotlin.Int origin=null $this: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:d type:kotlin.Double visibility:private [final]' type=kotlin.Double origin=null receiver: GET_VAR ': .Test3 declared in .Test3.hashCode' type=.Test3 origin=null - SET_VAR 'var result: kotlin.Int [var] declared in .Test3.hashCode' type=kotlin.Unit origin=EQ - CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: CALL 'public final fun times (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'var result: kotlin.Int [var] declared in .Test3.hashCode' type=kotlin.Int origin=null + SET_VAR 'var result: kotlin.Int declared in .Test3.hashCode' type=kotlin.Unit origin=EQ + CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: CALL 'public final fun times (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'var result: kotlin.Int declared in .Test3.hashCode' type=kotlin.Int origin=null other: CONST Int type=kotlin.Int value=31 other: WHEN type=kotlin.Int origin=null BRANCH @@ -428,21 +428,21 @@ FILE fqName: fileName:/dataClasses.kt then: CONST Int type=kotlin.Int value=0 BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: CALL 'public open fun hashCode (): kotlin.Int [fake_override] declared in kotlin.Double' type=kotlin.Int origin=null + then: CALL 'public open fun hashCode (): kotlin.Int declared in kotlin.Double' type=kotlin.Int origin=null $this: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:dn type:kotlin.Double? visibility:private [final]' type=kotlin.Double? origin=null receiver: GET_VAR ': .Test3 declared in .Test3.hashCode' type=.Test3 origin=null - SET_VAR 'var result: kotlin.Int [var] declared in .Test3.hashCode' type=kotlin.Unit origin=EQ - CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: CALL 'public final fun times (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'var result: kotlin.Int [var] declared in .Test3.hashCode' type=kotlin.Int origin=null + SET_VAR 'var result: kotlin.Int declared in .Test3.hashCode' type=kotlin.Unit origin=EQ + CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: CALL 'public final fun times (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'var result: kotlin.Int declared in .Test3.hashCode' type=kotlin.Int origin=null other: CONST Int type=kotlin.Int value=31 - other: CALL 'public open fun hashCode (): kotlin.Int [fake_override] declared in kotlin.Float' type=kotlin.Int origin=null + other: CALL 'public open fun hashCode (): kotlin.Int declared in kotlin.Float' type=kotlin.Int origin=null $this: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:f type:kotlin.Float visibility:private [final]' type=kotlin.Float origin=null receiver: GET_VAR ': .Test3 declared in .Test3.hashCode' type=.Test3 origin=null - SET_VAR 'var result: kotlin.Int [var] declared in .Test3.hashCode' type=kotlin.Unit origin=EQ - CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: CALL 'public final fun times (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'var result: kotlin.Int [var] declared in .Test3.hashCode' type=kotlin.Int origin=null + SET_VAR 'var result: kotlin.Int declared in .Test3.hashCode' type=kotlin.Unit origin=EQ + CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: CALL 'public final fun times (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'var result: kotlin.Int declared in .Test3.hashCode' type=kotlin.Int origin=null other: CONST Int type=kotlin.Int value=31 other: WHEN type=kotlin.Int origin=null BRANCH @@ -453,14 +453,14 @@ FILE fqName: fileName:/dataClasses.kt then: CONST Int type=kotlin.Int value=0 BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: CALL 'public open fun hashCode (): kotlin.Int [fake_override] declared in kotlin.Float' type=kotlin.Int origin=null + then: CALL 'public open fun hashCode (): kotlin.Int declared in kotlin.Float' type=kotlin.Int origin=null $this: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:df type:kotlin.Float? visibility:private [final]' type=kotlin.Float? origin=null receiver: GET_VAR ': .Test3 declared in .Test3.hashCode' type=.Test3 origin=null RETURN type=kotlin.Nothing from='public open fun hashCode (): kotlin.Int declared in .Test3' - GET_VAR 'var result: kotlin.Int [var] declared in .Test3.hashCode' type=kotlin.Int origin=null + GET_VAR 'var result: kotlin.Int declared in .Test3.hashCode' type=kotlin.Int origin=null FUN GENERATED_DATA_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:.Test3, other:kotlin.Any?) returnType:kotlin.Boolean [operator] overridden: - public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any $this: VALUE_PARAMETER name: type:.Test3 VALUE_PARAMETER name:other index:0 type:kotlin.Any? BLOCK_BODY @@ -469,56 +469,56 @@ FILE fqName: fileName:/dataClasses.kt 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 ': .Test3 declared in .Test3.equals' type=.Test3 origin=null arg1: GET_VAR 'other: kotlin.Any? declared in .Test3.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test3' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test3' CONST Boolean type=kotlin.Boolean value=true WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=.Test3 GET_VAR 'other: kotlin.Any? declared in .Test3.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test3' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test3' CONST Boolean type=kotlin.Boolean value=false VAR IR_TEMPORARY_VARIABLE name:tmp_2 type:.Test3 [val] TYPE_OP type=.Test3 origin=CAST typeOperand=.Test3 GET_VAR 'other: kotlin.Any? declared in .Test3.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 + if: CALL 'public final fun not (): kotlin.Boolean 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:d type:kotlin.Double visibility:private [final]' type=kotlin.Double origin=null receiver: GET_VAR ': .Test3 declared in .Test3.equals' type=.Test3 origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:d type:kotlin.Double visibility:private [final]' type=kotlin.Double origin=null - receiver: GET_VAR 'val tmp_2: .Test3 [val] declared in .Test3.equals' type=.Test3 origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test3' + receiver: GET_VAR 'val tmp_2: .Test3 declared in .Test3.equals' type=.Test3 origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test3' CONST Boolean type=kotlin.Boolean value=false 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 + if: CALL 'public final fun not (): kotlin.Boolean 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:dn type:kotlin.Double? visibility:private [final]' type=kotlin.Double? origin=null receiver: GET_VAR ': .Test3 declared in .Test3.equals' type=.Test3 origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:dn type:kotlin.Double? visibility:private [final]' type=kotlin.Double? origin=null - receiver: GET_VAR 'val tmp_2: .Test3 [val] declared in .Test3.equals' type=.Test3 origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test3' + receiver: GET_VAR 'val tmp_2: .Test3 declared in .Test3.equals' type=.Test3 origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test3' CONST Boolean type=kotlin.Boolean value=false 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 + if: CALL 'public final fun not (): kotlin.Boolean 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:f type:kotlin.Float visibility:private [final]' type=kotlin.Float origin=null receiver: GET_VAR ': .Test3 declared in .Test3.equals' type=.Test3 origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:f type:kotlin.Float visibility:private [final]' type=kotlin.Float origin=null - receiver: GET_VAR 'val tmp_2: .Test3 [val] declared in .Test3.equals' type=.Test3 origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test3' + receiver: GET_VAR 'val tmp_2: .Test3 declared in .Test3.equals' type=.Test3 origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test3' CONST Boolean type=kotlin.Boolean value=false 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 + if: CALL 'public final fun not (): kotlin.Boolean 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:df type:kotlin.Float? visibility:private [final]' type=kotlin.Float? origin=null receiver: GET_VAR ': .Test3 declared in .Test3.equals' type=.Test3 origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:df type:kotlin.Float? visibility:private [final]' type=kotlin.Float? origin=null - receiver: GET_VAR 'val tmp_2: .Test3 [val] declared in .Test3.equals' type=.Test3 origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test3' + receiver: GET_VAR 'val tmp_2: .Test3 declared in .Test3.equals' type=.Test3 origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test3' CONST Boolean type=kotlin.Boolean value=false - RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test3' + RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test3' CONST Boolean type=kotlin.Boolean value=true diff --git a/compiler/testData/ir/irText/classes/dataClasses/dataClasses.kt b/compiler/testData/ir/irText/classes/dataClasses/dataClasses.kt index 5787c8994c4..718907ddc5b 100644 --- a/compiler/testData/ir/irText/classes/dataClasses/dataClasses.kt +++ b/compiler/testData/ir/irText/classes/dataClasses/dataClasses.kt @@ -1,6 +1,3 @@ -// IGNORE_BACKEND: JS_IR -// IGNORE_BACKEND: JS_IR_ES6 - data class Test1(val x: Int, val y: String, val z: Any) data class Test2(val x: Any?) diff --git a/compiler/testData/ir/irText/classes/dataClasses/dataClassesGeneric.fir.ir.txt b/compiler/testData/ir/irText/classes/dataClasses/dataClassesGeneric.fir.ir.txt index c040e814234..3b72eec1089 100644 --- a/compiler/testData/ir/irText/classes/dataClasses/dataClassesGeneric.fir.ir.txt +++ b/compiler/testData/ir/irText/classes/dataClasses/dataClassesGeneric.fir.ir.txt @@ -5,7 +5,7 @@ FILE fqName: fileName:/dataClassesGeneric.kt CONSTRUCTOR visibility:public <> (x:T of .Test1) returnType:.Test1.Test1> [primary] VALUE_PARAMETER name:x index:0 type:T of .Test1 BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test1 modality:FINAL visibility:public [data] superTypes:[kotlin.Any]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:T of .Test1 visibility:private [final] @@ -21,7 +21,7 @@ FILE fqName: fileName:/dataClassesGeneric.kt FUN GENERATED_DATA_CLASS_MEMBER name:component1 visibility:public modality:FINAL <> ($this:.Test1.Test1>) returnType:T of .Test1 [operator] $this: VALUE_PARAMETER name: type:.Test1.Test1> BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component1 (): T of .Test1 [operator] declared in .Test1' + RETURN type=kotlin.Nothing from='public final fun component1 (): T of .Test1 declared in .Test1' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:T of .Test1 visibility:private [final]' type=T of .Test1 origin=null receiver: GET_VAR ': .Test1.Test1> declared in .Test1.component1' type=.Test1.Test1> origin=null FUN GENERATED_DATA_CLASS_MEMBER name:copy visibility:public modality:FINAL <> ($this:.Test1.Test1>, x:T of .Test1) returnType:.Test1.Test1> @@ -32,12 +32,12 @@ FILE fqName: fileName:/dataClassesGeneric.kt receiver: GET_VAR ': .Test1.Test1> declared in .Test1.copy' type=.Test1.Test1> origin=null BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun copy (x: T of .Test1): .Test1.Test1> declared in .Test1' - CONSTRUCTOR_CALL 'public constructor (x: T of .Test1) [primary] declared in .Test1' type=.Test1.Test1> origin=null + CONSTRUCTOR_CALL 'public constructor (x: T of .Test1) declared in .Test1' type=.Test1.Test1> origin=null : kotlin.Any x: GET_VAR 'x: T of .Test1 declared in .Test1.copy' type=T of .Test1 origin=null FUN GENERATED_DATA_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:.Test1.Test1>, other:kotlin.Any?) returnType:kotlin.Boolean [operator] overridden: - public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any $this: VALUE_PARAMETER name: type:.Test1.Test1> VALUE_PARAMETER name:other index:0 type:kotlin.Any? BLOCK_BODY @@ -46,28 +46,28 @@ FILE fqName: fileName:/dataClassesGeneric.kt 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 ': .Test1.Test1> declared in .Test1.equals' type=.Test1.Test1> origin=null arg1: GET_VAR 'other: kotlin.Any? declared in .Test1.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test1' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test1' CONST Boolean type=kotlin.Boolean value=true WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=.Test1.Test1> GET_VAR 'other: kotlin.Any? declared in .Test1.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test1' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test1' CONST Boolean type=kotlin.Boolean value=false VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:.Test1.Test1> [val] TYPE_OP type=.Test1.Test1> origin=CAST typeOperand=.Test1.Test1> GET_VAR 'other: kotlin.Any? declared in .Test1.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 + if: CALL 'public final fun not (): kotlin.Boolean 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:x type:T of .Test1 visibility:private [final]' type=T of .Test1 origin=null receiver: GET_VAR ': .Test1.Test1> declared in .Test1.equals' type=.Test1.Test1> origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:T of .Test1 visibility:private [final]' type=T of .Test1 origin=null - receiver: GET_VAR 'val tmp_0: .Test1.Test1> [val] declared in .Test1.equals' type=.Test1.Test1> origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test1' + receiver: GET_VAR 'val tmp_0: .Test1.Test1> declared in .Test1.equals' type=.Test1.Test1> origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test1' CONST Boolean type=kotlin.Boolean value=false - RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test1' + RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test1' CONST Boolean type=kotlin.Boolean value=true FUN GENERATED_DATA_CLASS_MEMBER name:hashCode visibility:public modality:OPEN <> ($this:.Test1.Test1>) returnType:kotlin.Int overridden: @@ -104,7 +104,7 @@ FILE fqName: fileName:/dataClassesGeneric.kt CONSTRUCTOR visibility:public <> (x:T of .Test2) returnType:.Test2.Test2> [primary] VALUE_PARAMETER name:x index:0 type:T of .Test2 BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test2 modality:FINAL visibility:public [data] superTypes:[kotlin.Any]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:T of .Test2 visibility:private [final] @@ -120,7 +120,7 @@ FILE fqName: fileName:/dataClassesGeneric.kt FUN GENERATED_DATA_CLASS_MEMBER name:component1 visibility:public modality:FINAL <> ($this:.Test2.Test2>) returnType:T of .Test2 [operator] $this: VALUE_PARAMETER name: type:.Test2.Test2> BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component1 (): T of .Test2 [operator] declared in .Test2' + RETURN type=kotlin.Nothing from='public final fun component1 (): T of .Test2 declared in .Test2' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:T of .Test2 visibility:private [final]' type=T of .Test2 origin=null receiver: GET_VAR ': .Test2.Test2> declared in .Test2.component1' type=.Test2.Test2> origin=null FUN GENERATED_DATA_CLASS_MEMBER name:copy visibility:public modality:FINAL <> ($this:.Test2.Test2>, x:T of .Test2) returnType:.Test2.Test2> @@ -131,12 +131,12 @@ FILE fqName: fileName:/dataClassesGeneric.kt receiver: GET_VAR ': .Test2.Test2> declared in .Test2.copy' type=.Test2.Test2> origin=null BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun copy (x: T of .Test2): .Test2.Test2> declared in .Test2' - CONSTRUCTOR_CALL 'public constructor (x: T of .Test2) [primary] declared in .Test2' type=.Test2.Test2> origin=null + CONSTRUCTOR_CALL 'public constructor (x: T of .Test2) declared in .Test2' type=.Test2.Test2> origin=null : kotlin.Any x: GET_VAR 'x: T of .Test2 declared in .Test2.copy' type=T of .Test2 origin=null FUN GENERATED_DATA_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:.Test2.Test2>, other:kotlin.Any?) returnType:kotlin.Boolean [operator] overridden: - public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any $this: VALUE_PARAMETER name: type:.Test2.Test2> VALUE_PARAMETER name:other index:0 type:kotlin.Any? BLOCK_BODY @@ -145,28 +145,28 @@ FILE fqName: fileName:/dataClassesGeneric.kt 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 ': .Test2.Test2> declared in .Test2.equals' type=.Test2.Test2> origin=null arg1: GET_VAR 'other: kotlin.Any? declared in .Test2.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test2' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test2' CONST Boolean type=kotlin.Boolean value=true WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=.Test2.Test2> GET_VAR 'other: kotlin.Any? declared in .Test2.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test2' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test2' CONST Boolean type=kotlin.Boolean value=false VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:.Test2.Test2> [val] TYPE_OP type=.Test2.Test2> origin=CAST typeOperand=.Test2.Test2> GET_VAR 'other: kotlin.Any? declared in .Test2.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 + if: CALL 'public final fun not (): kotlin.Boolean 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:x type:T of .Test2 visibility:private [final]' type=T of .Test2 origin=null receiver: GET_VAR ': .Test2.Test2> declared in .Test2.equals' type=.Test2.Test2> origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:T of .Test2 visibility:private [final]' type=T of .Test2 origin=null - receiver: GET_VAR 'val tmp_1: .Test2.Test2> [val] declared in .Test2.equals' type=.Test2.Test2> origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test2' + receiver: GET_VAR 'val tmp_1: .Test2.Test2> declared in .Test2.equals' type=.Test2.Test2> origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test2' CONST Boolean type=kotlin.Boolean value=false - RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test2' + RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test2' CONST Boolean type=kotlin.Boolean value=true FUN GENERATED_DATA_CLASS_MEMBER name:hashCode visibility:public modality:OPEN <> ($this:.Test2.Test2>) returnType:kotlin.Int overridden: @@ -174,7 +174,7 @@ FILE fqName: fileName:/dataClassesGeneric.kt $this: VALUE_PARAMETER name: type:.Test2.Test2> BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun hashCode (): kotlin.Int declared in .Test2' - CALL 'public open fun hashCode (): kotlin.Int [fake_override] declared in kotlin.Number' type=kotlin.Int origin=null + CALL 'public open fun hashCode (): kotlin.Int declared in kotlin.Number' type=kotlin.Int origin=null $this: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:T of .Test2 visibility:private [final]' type=T of .Test2 origin=null receiver: GET_VAR ': .Test2.Test2> declared in .Test2.hashCode' type=.Test2.Test2> origin=null FUN GENERATED_DATA_CLASS_MEMBER name:toString visibility:public modality:OPEN <> ($this:.Test2.Test2>) returnType:kotlin.String @@ -194,7 +194,7 @@ FILE fqName: fileName:/dataClassesGeneric.kt CONSTRUCTOR visibility:public <> (x:kotlin.collections.List.Test3>) returnType:.Test3.Test3> [primary] VALUE_PARAMETER name:x index:0 type:kotlin.collections.List.Test3> BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test3 modality:FINAL visibility:public [data] superTypes:[kotlin.Any]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.collections.List.Test3> visibility:private [final] @@ -210,7 +210,7 @@ FILE fqName: fileName:/dataClassesGeneric.kt FUN GENERATED_DATA_CLASS_MEMBER name:component1 visibility:public modality:FINAL <> ($this:.Test3.Test3>) returnType:kotlin.collections.List.Test3> [operator] $this: VALUE_PARAMETER name: type:.Test3.Test3> BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.collections.List.Test3> [operator] declared in .Test3' + RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.collections.List.Test3> declared in .Test3' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.collections.List.Test3> visibility:private [final]' type=kotlin.collections.List.Test3> origin=null receiver: GET_VAR ': .Test3.Test3> declared in .Test3.component1' type=.Test3.Test3> origin=null FUN GENERATED_DATA_CLASS_MEMBER name:copy visibility:public modality:FINAL <> ($this:.Test3.Test3>, x:kotlin.collections.List.Test3>) returnType:.Test3.Test3> @@ -221,12 +221,12 @@ FILE fqName: fileName:/dataClassesGeneric.kt receiver: GET_VAR ': .Test3.Test3> declared in .Test3.copy' type=.Test3.Test3> origin=null BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun copy (x: kotlin.collections.List.Test3>): .Test3.Test3> declared in .Test3' - CONSTRUCTOR_CALL 'public constructor (x: kotlin.collections.List.Test3>) [primary] declared in .Test3' type=.Test3.Test3> origin=null + CONSTRUCTOR_CALL 'public constructor (x: kotlin.collections.List.Test3>) declared in .Test3' type=.Test3.Test3> origin=null : kotlin.Any x: GET_VAR 'x: kotlin.collections.List.Test3> declared in .Test3.copy' type=kotlin.collections.List.Test3> origin=null FUN GENERATED_DATA_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:.Test3.Test3>, other:kotlin.Any?) returnType:kotlin.Boolean [operator] overridden: - public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any $this: VALUE_PARAMETER name: type:.Test3.Test3> VALUE_PARAMETER name:other index:0 type:kotlin.Any? BLOCK_BODY @@ -235,28 +235,28 @@ FILE fqName: fileName:/dataClassesGeneric.kt 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 ': .Test3.Test3> declared in .Test3.equals' type=.Test3.Test3> origin=null arg1: GET_VAR 'other: kotlin.Any? declared in .Test3.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test3' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test3' CONST Boolean type=kotlin.Boolean value=true WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=.Test3.Test3> GET_VAR 'other: kotlin.Any? declared in .Test3.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test3' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test3' CONST Boolean type=kotlin.Boolean value=false VAR IR_TEMPORARY_VARIABLE name:tmp_2 type:.Test3.Test3> [val] TYPE_OP type=.Test3.Test3> origin=CAST typeOperand=.Test3.Test3> GET_VAR 'other: kotlin.Any? declared in .Test3.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 + if: CALL 'public final fun not (): kotlin.Boolean 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:x type:kotlin.collections.List.Test3> visibility:private [final]' type=kotlin.collections.List.Test3> origin=null receiver: GET_VAR ': .Test3.Test3> declared in .Test3.equals' type=.Test3.Test3> origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.collections.List.Test3> visibility:private [final]' type=kotlin.collections.List.Test3> origin=null - receiver: GET_VAR 'val tmp_2: .Test3.Test3> [val] declared in .Test3.equals' type=.Test3.Test3> origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test3' + receiver: GET_VAR 'val tmp_2: .Test3.Test3> declared in .Test3.equals' type=.Test3.Test3> origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test3' CONST Boolean type=kotlin.Boolean value=false - RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test3' + RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test3' CONST Boolean type=kotlin.Boolean value=true FUN GENERATED_DATA_CLASS_MEMBER name:hashCode visibility:public modality:OPEN <> ($this:.Test3.Test3>) returnType:kotlin.Int overridden: @@ -264,7 +264,7 @@ FILE fqName: fileName:/dataClassesGeneric.kt $this: VALUE_PARAMETER name: type:.Test3.Test3> BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun hashCode (): kotlin.Int declared in .Test3' - CALL 'public open fun hashCode (): kotlin.Int [fake_override] declared in kotlin.collections.List' type=kotlin.Int origin=null + CALL 'public open fun hashCode (): kotlin.Int declared in kotlin.collections.List' type=kotlin.Int origin=null $this: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.collections.List.Test3> visibility:private [final]' type=kotlin.collections.List.Test3> origin=null receiver: GET_VAR ': .Test3.Test3> declared in .Test3.hashCode' type=.Test3.Test3> origin=null FUN GENERATED_DATA_CLASS_MEMBER name:toString visibility:public modality:OPEN <> ($this:.Test3.Test3>) returnType:kotlin.String @@ -283,7 +283,7 @@ FILE fqName: fileName:/dataClassesGeneric.kt CONSTRUCTOR visibility:public <> (x:kotlin.collections.List) returnType:.Test4 [primary] VALUE_PARAMETER name:x index:0 type:kotlin.collections.List BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test4 modality:FINAL visibility:public [data] superTypes:[kotlin.Any]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.collections.List visibility:private [final] @@ -299,7 +299,7 @@ FILE fqName: fileName:/dataClassesGeneric.kt FUN GENERATED_DATA_CLASS_MEMBER name:component1 visibility:public modality:FINAL <> ($this:.Test4) returnType:kotlin.collections.List [operator] $this: VALUE_PARAMETER name: type:.Test4 BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.collections.List [operator] declared in .Test4' + RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.collections.List declared in .Test4' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.collections.List visibility:private [final]' type=kotlin.collections.List origin=null receiver: GET_VAR ': .Test4 declared in .Test4.component1' type=.Test4 origin=null FUN GENERATED_DATA_CLASS_MEMBER name:copy visibility:public modality:FINAL <> ($this:.Test4, x:kotlin.collections.List) returnType:.Test4 @@ -310,11 +310,11 @@ FILE fqName: fileName:/dataClassesGeneric.kt receiver: GET_VAR ': .Test4 declared in .Test4.copy' type=.Test4 origin=null BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun copy (x: kotlin.collections.List): .Test4 declared in .Test4' - CONSTRUCTOR_CALL 'public constructor (x: kotlin.collections.List) [primary] declared in .Test4' type=.Test4 origin=null + CONSTRUCTOR_CALL 'public constructor (x: kotlin.collections.List) declared in .Test4' type=.Test4 origin=null x: GET_VAR 'x: kotlin.collections.List declared in .Test4.copy' type=kotlin.collections.List origin=null FUN GENERATED_DATA_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:.Test4, other:kotlin.Any?) returnType:kotlin.Boolean [operator] overridden: - public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any $this: VALUE_PARAMETER name: type:.Test4 VALUE_PARAMETER name:other index:0 type:kotlin.Any? BLOCK_BODY @@ -323,28 +323,28 @@ FILE fqName: fileName:/dataClassesGeneric.kt 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 ': .Test4 declared in .Test4.equals' type=.Test4 origin=null arg1: GET_VAR 'other: kotlin.Any? declared in .Test4.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test4' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test4' CONST Boolean type=kotlin.Boolean value=true WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=.Test4 GET_VAR 'other: kotlin.Any? declared in .Test4.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test4' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test4' CONST Boolean type=kotlin.Boolean value=false VAR IR_TEMPORARY_VARIABLE name:tmp_3 type:.Test4 [val] TYPE_OP type=.Test4 origin=CAST typeOperand=.Test4 GET_VAR 'other: kotlin.Any? declared in .Test4.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 + if: CALL 'public final fun not (): kotlin.Boolean 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:x type:kotlin.collections.List visibility:private [final]' type=kotlin.collections.List origin=null receiver: GET_VAR ': .Test4 declared in .Test4.equals' type=.Test4 origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.collections.List visibility:private [final]' type=kotlin.collections.List origin=null - receiver: GET_VAR 'val tmp_3: .Test4 [val] declared in .Test4.equals' type=.Test4 origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test4' + receiver: GET_VAR 'val tmp_3: .Test4 declared in .Test4.equals' type=.Test4 origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test4' CONST Boolean type=kotlin.Boolean value=false - RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test4' + RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test4' CONST Boolean type=kotlin.Boolean value=true FUN GENERATED_DATA_CLASS_MEMBER name:hashCode visibility:public modality:OPEN <> ($this:.Test4) returnType:kotlin.Int overridden: @@ -352,7 +352,7 @@ FILE fqName: fileName:/dataClassesGeneric.kt $this: VALUE_PARAMETER name: type:.Test4 BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun hashCode (): kotlin.Int declared in .Test4' - CALL 'public open fun hashCode (): kotlin.Int [fake_override] declared in kotlin.collections.List' type=kotlin.Int origin=null + CALL 'public open fun hashCode (): kotlin.Int declared in kotlin.collections.List' type=kotlin.Int origin=null $this: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.collections.List visibility:private [final]' type=kotlin.collections.List origin=null receiver: GET_VAR ': .Test4 declared in .Test4.hashCode' type=.Test4 origin=null FUN GENERATED_DATA_CLASS_MEMBER name:toString visibility:public modality:OPEN <> ($this:.Test4) returnType:kotlin.String diff --git a/compiler/testData/ir/irText/classes/dataClasses/dataClassesGeneric.ir.txt b/compiler/testData/ir/irText/classes/dataClasses/dataClassesGeneric.ir.txt index f5b9f781801..c374994d3e3 100644 --- a/compiler/testData/ir/irText/classes/dataClasses/dataClassesGeneric.ir.txt +++ b/compiler/testData/ir/irText/classes/dataClasses/dataClassesGeneric.ir.txt @@ -5,7 +5,7 @@ FILE fqName: fileName:/dataClassesGeneric.kt CONSTRUCTOR visibility:public <> (x:T of .Test1) returnType:.Test1.Test1> [primary] VALUE_PARAMETER name:x index:0 type:T of .Test1 BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test1 modality:FINAL visibility:public [data] superTypes:[kotlin.Any]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:T of .Test1 visibility:private [final] @@ -21,7 +21,7 @@ FILE fqName: fileName:/dataClassesGeneric.kt FUN GENERATED_DATA_CLASS_MEMBER name:component1 visibility:public modality:FINAL <> ($this:.Test1.Test1>) returnType:T of .Test1 [operator] $this: VALUE_PARAMETER name: type:.Test1.Test1> BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component1 (): T of .Test1 [operator] declared in .Test1' + RETURN type=kotlin.Nothing from='public final fun component1 (): T of .Test1 declared in .Test1' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:T of .Test1 visibility:private [final]' type=T of .Test1 origin=null receiver: GET_VAR ': .Test1.Test1> declared in .Test1.component1' type=.Test1.Test1> origin=null FUN GENERATED_DATA_CLASS_MEMBER name:copy visibility:public modality:FINAL <> ($this:.Test1.Test1>, x:T of .Test1) returnType:.Test1.Test1> @@ -32,7 +32,7 @@ FILE fqName: fileName:/dataClassesGeneric.kt receiver: GET_VAR ': .Test1.Test1> declared in .Test1.copy' type=.Test1.Test1> origin=null BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun copy (x: T of .Test1): .Test1.Test1> declared in .Test1' - CONSTRUCTOR_CALL 'public constructor (x: T of .Test1) [primary] declared in .Test1' type=.Test1.Test1> origin=null + CONSTRUCTOR_CALL 'public constructor (x: T of .Test1) declared in .Test1' type=.Test1.Test1> origin=null : T of .Test1 x: GET_VAR 'x: T of .Test1 declared in .Test1.copy' type=T of .Test1 origin=null FUN GENERATED_DATA_CLASS_MEMBER name:toString visibility:public modality:OPEN <> ($this:.Test1.Test1>) returnType:kotlin.String @@ -67,7 +67,7 @@ FILE fqName: fileName:/dataClassesGeneric.kt receiver: GET_VAR ': .Test1.Test1> declared in .Test1.hashCode' type=.Test1.Test1> origin=null FUN GENERATED_DATA_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:.Test1.Test1>, other:kotlin.Any?) returnType:kotlin.Boolean [operator] overridden: - public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any $this: VALUE_PARAMETER name: type:.Test1.Test1> VALUE_PARAMETER name:other index:0 type:kotlin.Any? BLOCK_BODY @@ -76,28 +76,28 @@ FILE fqName: fileName:/dataClassesGeneric.kt 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 ': .Test1.Test1> declared in .Test1.equals' type=.Test1.Test1> origin=null arg1: GET_VAR 'other: kotlin.Any? declared in .Test1.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test1' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test1' CONST Boolean type=kotlin.Boolean value=true WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=.Test1.Test1> GET_VAR 'other: kotlin.Any? declared in .Test1.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test1' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test1' CONST Boolean type=kotlin.Boolean value=false VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:.Test1.Test1> [val] TYPE_OP type=.Test1.Test1> origin=CAST typeOperand=.Test1.Test1> GET_VAR 'other: kotlin.Any? declared in .Test1.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 + if: CALL 'public final fun not (): kotlin.Boolean 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:x type:T of .Test1 visibility:private [final]' type=T of .Test1 origin=null receiver: GET_VAR ': .Test1.Test1> declared in .Test1.equals' type=.Test1.Test1> origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:T of .Test1 visibility:private [final]' type=T of .Test1 origin=null - receiver: GET_VAR 'val tmp_0: .Test1.Test1> [val] declared in .Test1.equals' type=.Test1.Test1> origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test1' + receiver: GET_VAR 'val tmp_0: .Test1.Test1> declared in .Test1.equals' type=.Test1.Test1> origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test1' CONST Boolean type=kotlin.Boolean value=false - RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test1' + RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test1' CONST Boolean type=kotlin.Boolean value=true CLASS CLASS name:Test2 modality:FINAL visibility:public [data] superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Test2.Test2> @@ -105,7 +105,7 @@ FILE fqName: fileName:/dataClassesGeneric.kt CONSTRUCTOR visibility:public <> (x:T of .Test2) returnType:.Test2.Test2> [primary] VALUE_PARAMETER name:x index:0 type:T of .Test2 BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test2 modality:FINAL visibility:public [data] superTypes:[kotlin.Any]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:T of .Test2 visibility:private [final] @@ -121,7 +121,7 @@ FILE fqName: fileName:/dataClassesGeneric.kt FUN GENERATED_DATA_CLASS_MEMBER name:component1 visibility:public modality:FINAL <> ($this:.Test2.Test2>) returnType:T of .Test2 [operator] $this: VALUE_PARAMETER name: type:.Test2.Test2> BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component1 (): T of .Test2 [operator] declared in .Test2' + RETURN type=kotlin.Nothing from='public final fun component1 (): T of .Test2 declared in .Test2' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:T of .Test2 visibility:private [final]' type=T of .Test2 origin=null receiver: GET_VAR ': .Test2.Test2> declared in .Test2.component1' type=.Test2.Test2> origin=null FUN GENERATED_DATA_CLASS_MEMBER name:copy visibility:public modality:FINAL <> ($this:.Test2.Test2>, x:T of .Test2) returnType:.Test2.Test2> @@ -132,7 +132,7 @@ FILE fqName: fileName:/dataClassesGeneric.kt receiver: GET_VAR ': .Test2.Test2> declared in .Test2.copy' type=.Test2.Test2> origin=null BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun copy (x: T of .Test2): .Test2.Test2> declared in .Test2' - CONSTRUCTOR_CALL 'public constructor (x: T of .Test2) [primary] declared in .Test2' type=.Test2.Test2> origin=null + CONSTRUCTOR_CALL 'public constructor (x: T of .Test2) declared in .Test2' type=.Test2.Test2> origin=null : T of .Test2 x: GET_VAR 'x: T of .Test2 declared in .Test2.copy' type=T of .Test2 origin=null FUN GENERATED_DATA_CLASS_MEMBER name:toString visibility:public modality:OPEN <> ($this:.Test2.Test2>) returnType:kotlin.String @@ -153,12 +153,12 @@ FILE fqName: fileName:/dataClassesGeneric.kt $this: VALUE_PARAMETER name: type:.Test2.Test2> BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun hashCode (): kotlin.Int declared in .Test2' - CALL 'public open fun hashCode (): kotlin.Int [fake_override] declared in kotlin.Number' type=kotlin.Int origin=null + CALL 'public open fun hashCode (): kotlin.Int declared in kotlin.Number' type=kotlin.Int origin=null $this: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:T of .Test2 visibility:private [final]' type=T of .Test2 origin=null receiver: GET_VAR ': .Test2.Test2> declared in .Test2.hashCode' type=.Test2.Test2> origin=null FUN GENERATED_DATA_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:.Test2.Test2>, other:kotlin.Any?) returnType:kotlin.Boolean [operator] overridden: - public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any $this: VALUE_PARAMETER name: type:.Test2.Test2> VALUE_PARAMETER name:other index:0 type:kotlin.Any? BLOCK_BODY @@ -167,28 +167,28 @@ FILE fqName: fileName:/dataClassesGeneric.kt 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 ': .Test2.Test2> declared in .Test2.equals' type=.Test2.Test2> origin=null arg1: GET_VAR 'other: kotlin.Any? declared in .Test2.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test2' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test2' CONST Boolean type=kotlin.Boolean value=true WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=.Test2.Test2> GET_VAR 'other: kotlin.Any? declared in .Test2.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test2' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test2' CONST Boolean type=kotlin.Boolean value=false VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:.Test2.Test2> [val] TYPE_OP type=.Test2.Test2> origin=CAST typeOperand=.Test2.Test2> GET_VAR 'other: kotlin.Any? declared in .Test2.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 + if: CALL 'public final fun not (): kotlin.Boolean 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:x type:T of .Test2 visibility:private [final]' type=T of .Test2 origin=null receiver: GET_VAR ': .Test2.Test2> declared in .Test2.equals' type=.Test2.Test2> origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:T of .Test2 visibility:private [final]' type=T of .Test2 origin=null - receiver: GET_VAR 'val tmp_1: .Test2.Test2> [val] declared in .Test2.equals' type=.Test2.Test2> origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test2' + receiver: GET_VAR 'val tmp_1: .Test2.Test2> declared in .Test2.equals' type=.Test2.Test2> origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test2' CONST Boolean type=kotlin.Boolean value=false - RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test2' + RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test2' CONST Boolean type=kotlin.Boolean value=true CLASS CLASS name:Test3 modality:FINAL visibility:public [data] superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Test3.Test3> @@ -196,7 +196,7 @@ FILE fqName: fileName:/dataClassesGeneric.kt CONSTRUCTOR visibility:public <> (x:kotlin.collections.List.Test3>) returnType:.Test3.Test3> [primary] VALUE_PARAMETER name:x index:0 type:kotlin.collections.List.Test3> BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test3 modality:FINAL visibility:public [data] superTypes:[kotlin.Any]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.collections.List.Test3> visibility:private [final] @@ -212,7 +212,7 @@ FILE fqName: fileName:/dataClassesGeneric.kt FUN GENERATED_DATA_CLASS_MEMBER name:component1 visibility:public modality:FINAL <> ($this:.Test3.Test3>) returnType:kotlin.collections.List.Test3> [operator] $this: VALUE_PARAMETER name: type:.Test3.Test3> BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.collections.List.Test3> [operator] declared in .Test3' + RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.collections.List.Test3> declared in .Test3' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.collections.List.Test3> visibility:private [final]' type=kotlin.collections.List.Test3> origin=null receiver: GET_VAR ': .Test3.Test3> declared in .Test3.component1' type=.Test3.Test3> origin=null FUN GENERATED_DATA_CLASS_MEMBER name:copy visibility:public modality:FINAL <> ($this:.Test3.Test3>, x:kotlin.collections.List.Test3>) returnType:.Test3.Test3> @@ -223,7 +223,7 @@ FILE fqName: fileName:/dataClassesGeneric.kt receiver: GET_VAR ': .Test3.Test3> declared in .Test3.copy' type=.Test3.Test3> origin=null BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun copy (x: kotlin.collections.List.Test3>): .Test3.Test3> declared in .Test3' - CONSTRUCTOR_CALL 'public constructor (x: kotlin.collections.List.Test3>) [primary] declared in .Test3' type=.Test3.Test3> origin=null + CONSTRUCTOR_CALL 'public constructor (x: kotlin.collections.List.Test3>) declared in .Test3' type=.Test3.Test3> origin=null : T of .Test3 x: GET_VAR 'x: kotlin.collections.List.Test3> declared in .Test3.copy' type=kotlin.collections.List.Test3> origin=null FUN GENERATED_DATA_CLASS_MEMBER name:toString visibility:public modality:OPEN <> ($this:.Test3.Test3>) returnType:kotlin.String @@ -244,12 +244,12 @@ FILE fqName: fileName:/dataClassesGeneric.kt $this: VALUE_PARAMETER name: type:.Test3.Test3> BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun hashCode (): kotlin.Int declared in .Test3' - CALL 'public open fun hashCode (): kotlin.Int [fake_override] declared in kotlin.collections.List' type=kotlin.Int origin=null + CALL 'public open fun hashCode (): kotlin.Int declared in kotlin.collections.List' type=kotlin.Int origin=null $this: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.collections.List.Test3> visibility:private [final]' type=kotlin.collections.List.Test3> origin=null receiver: GET_VAR ': .Test3.Test3> declared in .Test3.hashCode' type=.Test3.Test3> origin=null FUN GENERATED_DATA_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:.Test3.Test3>, other:kotlin.Any?) returnType:kotlin.Boolean [operator] overridden: - public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any $this: VALUE_PARAMETER name: type:.Test3.Test3> VALUE_PARAMETER name:other index:0 type:kotlin.Any? BLOCK_BODY @@ -258,35 +258,35 @@ FILE fqName: fileName:/dataClassesGeneric.kt 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 ': .Test3.Test3> declared in .Test3.equals' type=.Test3.Test3> origin=null arg1: GET_VAR 'other: kotlin.Any? declared in .Test3.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test3' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test3' CONST Boolean type=kotlin.Boolean value=true WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=.Test3.Test3> GET_VAR 'other: kotlin.Any? declared in .Test3.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test3' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test3' CONST Boolean type=kotlin.Boolean value=false VAR IR_TEMPORARY_VARIABLE name:tmp_2 type:.Test3.Test3> [val] TYPE_OP type=.Test3.Test3> origin=CAST typeOperand=.Test3.Test3> GET_VAR 'other: kotlin.Any? declared in .Test3.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 + if: CALL 'public final fun not (): kotlin.Boolean 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:x type:kotlin.collections.List.Test3> visibility:private [final]' type=kotlin.collections.List.Test3> origin=null receiver: GET_VAR ': .Test3.Test3> declared in .Test3.equals' type=.Test3.Test3> origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.collections.List.Test3> visibility:private [final]' type=kotlin.collections.List.Test3> origin=null - receiver: GET_VAR 'val tmp_2: .Test3.Test3> [val] declared in .Test3.equals' type=.Test3.Test3> origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test3' + receiver: GET_VAR 'val tmp_2: .Test3.Test3> declared in .Test3.equals' type=.Test3.Test3> origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test3' CONST Boolean type=kotlin.Boolean value=false - RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test3' + RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test3' CONST Boolean type=kotlin.Boolean value=true CLASS CLASS name:Test4 modality:FINAL visibility:public [data] superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Test4 CONSTRUCTOR visibility:public <> (x:kotlin.collections.List) returnType:.Test4 [primary] VALUE_PARAMETER name:x index:0 type:kotlin.collections.List BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test4 modality:FINAL visibility:public [data] superTypes:[kotlin.Any]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.collections.List visibility:private [final] @@ -302,7 +302,7 @@ FILE fqName: fileName:/dataClassesGeneric.kt FUN GENERATED_DATA_CLASS_MEMBER name:component1 visibility:public modality:FINAL <> ($this:.Test4) returnType:kotlin.collections.List [operator] $this: VALUE_PARAMETER name: type:.Test4 BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.collections.List [operator] declared in .Test4' + RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.collections.List declared in .Test4' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.collections.List visibility:private [final]' type=kotlin.collections.List origin=null receiver: GET_VAR ': .Test4 declared in .Test4.component1' type=.Test4 origin=null FUN GENERATED_DATA_CLASS_MEMBER name:copy visibility:public modality:FINAL <> ($this:.Test4, x:kotlin.collections.List) returnType:.Test4 @@ -313,7 +313,7 @@ FILE fqName: fileName:/dataClassesGeneric.kt receiver: GET_VAR ': .Test4 declared in .Test4.copy' type=.Test4 origin=null BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun copy (x: kotlin.collections.List): .Test4 declared in .Test4' - CONSTRUCTOR_CALL 'public constructor (x: kotlin.collections.List) [primary] declared in .Test4' type=.Test4 origin=null + CONSTRUCTOR_CALL 'public constructor (x: kotlin.collections.List) declared in .Test4' type=.Test4 origin=null x: GET_VAR 'x: kotlin.collections.List declared in .Test4.copy' type=kotlin.collections.List origin=null FUN GENERATED_DATA_CLASS_MEMBER name:toString visibility:public modality:OPEN <> ($this:.Test4) returnType:kotlin.String overridden: @@ -333,12 +333,12 @@ FILE fqName: fileName:/dataClassesGeneric.kt $this: VALUE_PARAMETER name: type:.Test4 BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun hashCode (): kotlin.Int declared in .Test4' - CALL 'public open fun hashCode (): kotlin.Int [fake_override] declared in kotlin.collections.List' type=kotlin.Int origin=null + CALL 'public open fun hashCode (): kotlin.Int declared in kotlin.collections.List' type=kotlin.Int origin=null $this: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.collections.List visibility:private [final]' type=kotlin.collections.List origin=null receiver: GET_VAR ': .Test4 declared in .Test4.hashCode' type=.Test4 origin=null FUN GENERATED_DATA_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:.Test4, other:kotlin.Any?) returnType:kotlin.Boolean [operator] overridden: - public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any $this: VALUE_PARAMETER name: type:.Test4 VALUE_PARAMETER name:other index:0 type:kotlin.Any? BLOCK_BODY @@ -347,26 +347,26 @@ FILE fqName: fileName:/dataClassesGeneric.kt 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 ': .Test4 declared in .Test4.equals' type=.Test4 origin=null arg1: GET_VAR 'other: kotlin.Any? declared in .Test4.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test4' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test4' CONST Boolean type=kotlin.Boolean value=true WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=.Test4 GET_VAR 'other: kotlin.Any? declared in .Test4.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test4' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test4' CONST Boolean type=kotlin.Boolean value=false VAR IR_TEMPORARY_VARIABLE name:tmp_3 type:.Test4 [val] TYPE_OP type=.Test4 origin=CAST typeOperand=.Test4 GET_VAR 'other: kotlin.Any? declared in .Test4.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 + if: CALL 'public final fun not (): kotlin.Boolean 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:x type:kotlin.collections.List visibility:private [final]' type=kotlin.collections.List origin=null receiver: GET_VAR ': .Test4 declared in .Test4.equals' type=.Test4 origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.collections.List visibility:private [final]' type=kotlin.collections.List origin=null - receiver: GET_VAR 'val tmp_3: .Test4 [val] declared in .Test4.equals' type=.Test4 origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test4' + receiver: GET_VAR 'val tmp_3: .Test4 declared in .Test4.equals' type=.Test4 origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test4' CONST Boolean type=kotlin.Boolean value=false - RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test4' + RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test4' CONST Boolean type=kotlin.Boolean value=true diff --git a/compiler/testData/ir/irText/classes/dataClasses/delegationInSealed.fir.ir.txt b/compiler/testData/ir/irText/classes/dataClasses/delegationInSealed.fir.ir.txt index dfad395c3b6..55259ace022 100644 --- a/compiler/testData/ir/irText/classes/dataClasses/delegationInSealed.fir.ir.txt +++ b/compiler/testData/ir/irText/classes/dataClasses/delegationInSealed.fir.ir.txt @@ -5,30 +5,30 @@ FILE fqName: fileName:/delegationInSealed.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.A CONSTRUCTOR visibility:protected <> () returnType:.A [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:A modality:SEALED visibility:public superTypes:[kotlin.CharSequence]' CLASS CLASS name:B modality:FINAL visibility:public [data] superTypes:[.A; kotlin.CharSequence] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.A.B CONSTRUCTOR visibility:public <> (c:kotlin.CharSequence) returnType:.A.B [primary] VALUE_PARAMETER name:c index:0 type:kotlin.CharSequence BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'protected constructor () [primary] declared in .A' + DELEGATING_CONSTRUCTOR_CALL 'protected constructor () declared in .A' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:B modality:FINAL visibility:public [data] superTypes:[.A; kotlin.CharSequence]' FUN DELEGATED_MEMBER name:get visibility:public modality:OPEN <> ($this:.A.B, index:kotlin.Int) returnType:kotlin.Char [operator] overridden: - public abstract fun get (index: kotlin.Int): kotlin.Char [fake_override,operator] declared in .A - public abstract fun get (index: kotlin.Int): kotlin.Char [operator] declared in kotlin.CharSequence + public abstract fun get (index: kotlin.Int): kotlin.Char declared in .A + public abstract fun get (index: kotlin.Int): kotlin.Char declared in kotlin.CharSequence $this: VALUE_PARAMETER name: type:.A.B VALUE_PARAMETER name:index index:0 type:kotlin.Int BLOCK_BODY - RETURN type=kotlin.Nothing from='public open fun get (index: kotlin.Int): kotlin.Char [operator] declared in .A.B' - CALL 'public abstract fun get (index: kotlin.Int): kotlin.Char [operator] declared in kotlin.CharSequence' type=kotlin.Char origin=null + RETURN type=kotlin.Nothing from='public open fun get (index: kotlin.Int): kotlin.Char declared in .A.B' + CALL 'public abstract fun get (index: kotlin.Int): kotlin.Char declared in kotlin.CharSequence' type=kotlin.Char origin=null $this: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:c type:kotlin.CharSequence visibility:private [final]' type=kotlin.CharSequence origin=null receiver: GET_VAR ': .A.B declared in .A.B.get' type=.A.B origin=null index: GET_VAR 'index: kotlin.Int declared in .A.B.get' type=kotlin.Int origin=null FUN DELEGATED_MEMBER name:subSequence visibility:public modality:OPEN <> ($this:.A.B, startIndex:kotlin.Int, endIndex:kotlin.Int) returnType:kotlin.CharSequence overridden: - public abstract fun subSequence (startIndex: kotlin.Int, endIndex: kotlin.Int): kotlin.CharSequence [fake_override] declared in .A + public abstract fun subSequence (startIndex: kotlin.Int, endIndex: kotlin.Int): kotlin.CharSequence declared in .A public abstract fun subSequence (startIndex: kotlin.Int, endIndex: kotlin.Int): kotlin.CharSequence declared in kotlin.CharSequence $this: VALUE_PARAMETER name: type:.A.B VALUE_PARAMETER name:startIndex index:0 type:kotlin.Int @@ -42,12 +42,12 @@ FILE fqName: fileName:/delegationInSealed.kt endIndex: GET_VAR 'endIndex: kotlin.Int declared in .A.B.subSequence' type=kotlin.Int origin=null PROPERTY DELEGATED_MEMBER name:length visibility:public modality:OPEN [val] overridden: - public abstract length: kotlin.Int [fake_override,val] - public abstract length: kotlin.Int [val] + public abstract length: kotlin.Int + public abstract length: kotlin.Int FUN DELEGATED_MEMBER name: visibility:public modality:OPEN <> ($this:.A.B) returnType:kotlin.Int correspondingProperty: PROPERTY DELEGATED_MEMBER name:length visibility:public modality:OPEN [val] overridden: - public abstract fun (): kotlin.Int [fake_override] declared in .A + public abstract fun (): kotlin.Int declared in .A public abstract fun (): kotlin.Int declared in kotlin.CharSequence $this: VALUE_PARAMETER name: type:.A.B BLOCK_BODY @@ -69,7 +69,7 @@ FILE fqName: fileName:/delegationInSealed.kt FUN GENERATED_DATA_CLASS_MEMBER name:component1 visibility:public modality:FINAL <> ($this:.A.B) returnType:kotlin.CharSequence [operator] $this: VALUE_PARAMETER name: type:.A.B BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.CharSequence [operator] declared in .A.B' + RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.CharSequence declared in .A.B' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:c type:kotlin.CharSequence visibility:private [final]' type=kotlin.CharSequence origin=null receiver: GET_VAR ': .A.B declared in .A.B.component1' type=.A.B origin=null FUN GENERATED_DATA_CLASS_MEMBER name:copy visibility:public modality:FINAL <> ($this:.A.B, c:kotlin.CharSequence) returnType:.A.B @@ -80,11 +80,11 @@ FILE fqName: fileName:/delegationInSealed.kt receiver: GET_VAR ': .A.B declared in .A.B.copy' type=.A.B origin=null BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun copy (c: kotlin.CharSequence): .A.B declared in .A.B' - CONSTRUCTOR_CALL 'public constructor (c: kotlin.CharSequence) [primary] declared in .A.B' type=.A.B origin=null + CONSTRUCTOR_CALL 'public constructor (c: kotlin.CharSequence) declared in .A.B' type=.A.B origin=null c: GET_VAR 'c: kotlin.CharSequence declared in .A.B.copy' type=kotlin.CharSequence origin=null FUN GENERATED_DATA_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:.A.B, other:kotlin.Any?) returnType:kotlin.Boolean [operator] overridden: - public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any $this: VALUE_PARAMETER name: type:.A.B VALUE_PARAMETER name:other index:0 type:kotlin.Any? BLOCK_BODY @@ -93,28 +93,28 @@ FILE fqName: fileName:/delegationInSealed.kt 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 ': .A.B declared in .A.B.equals' type=.A.B origin=null arg1: GET_VAR 'other: kotlin.Any? declared in .A.B.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .A.B' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .A.B' CONST Boolean type=kotlin.Boolean value=true WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=.A.B GET_VAR 'other: kotlin.Any? declared in .A.B.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .A.B' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .A.B' CONST Boolean type=kotlin.Boolean value=false VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:.A.B [val] TYPE_OP type=.A.B origin=CAST typeOperand=.A.B GET_VAR 'other: kotlin.Any? declared in .A.B.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 + if: CALL 'public final fun not (): kotlin.Boolean 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:c type:kotlin.CharSequence visibility:private [final]' type=kotlin.CharSequence origin=null receiver: GET_VAR ': .A.B declared in .A.B.equals' type=.A.B origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:c type:kotlin.CharSequence visibility:private [final]' type=kotlin.CharSequence origin=null - receiver: GET_VAR 'val tmp_0: .A.B [val] declared in .A.B.equals' type=.A.B origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .A.B' + receiver: GET_VAR 'val tmp_0: .A.B declared in .A.B.equals' type=.A.B origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .A.B' CONST Boolean type=kotlin.Boolean value=false - RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .A.B' + RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .A.B' CONST Boolean type=kotlin.Boolean value=true FUN GENERATED_DATA_CLASS_MEMBER name:hashCode visibility:public modality:OPEN <> ($this:.A.B) returnType:kotlin.Int overridden: @@ -122,7 +122,7 @@ FILE fqName: fileName:/delegationInSealed.kt $this: VALUE_PARAMETER name: type:.A.B BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun hashCode (): kotlin.Int declared in .A.B' - CALL 'public open fun hashCode (): kotlin.Int [fake_override] declared in kotlin.CharSequence' type=kotlin.Int origin=null + CALL 'public open fun hashCode (): kotlin.Int declared in kotlin.CharSequence' type=kotlin.Int origin=null $this: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:c type:kotlin.CharSequence visibility:private [final]' type=kotlin.CharSequence origin=null receiver: GET_VAR ': .A.B declared in .A.B.hashCode' type=.A.B origin=null FUN GENERATED_DATA_CLASS_MEMBER name:toString visibility:public modality:OPEN <> ($this:.A.B) returnType:kotlin.String @@ -138,7 +138,7 @@ FILE fqName: fileName:/delegationInSealed.kt CONST String type=kotlin.String value=")" FUN FAKE_OVERRIDE name:get visibility:public modality:ABSTRACT <> ($this:kotlin.CharSequence, index:kotlin.Int) returnType:kotlin.Char [fake_override,operator] overridden: - public abstract fun get (index: kotlin.Int): kotlin.Char [operator] declared in kotlin.CharSequence + public abstract fun get (index: kotlin.Int): kotlin.Char declared in kotlin.CharSequence $this: VALUE_PARAMETER name: type:kotlin.CharSequence VALUE_PARAMETER name:index index:0 type:kotlin.Int FUN FAKE_OVERRIDE name:subSequence visibility:public modality:ABSTRACT <> ($this:kotlin.CharSequence, startIndex:kotlin.Int, endIndex:kotlin.Int) returnType:kotlin.CharSequence [fake_override] @@ -149,7 +149,7 @@ FILE fqName: fileName:/delegationInSealed.kt VALUE_PARAMETER name:endIndex index:1 type:kotlin.Int PROPERTY FAKE_OVERRIDE name:length visibility:public modality:ABSTRACT [fake_override,val] overridden: - public abstract length: kotlin.Int [val] + public abstract length: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:ABSTRACT <> ($this:kotlin.CharSequence) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:length visibility:public modality:ABSTRACT [fake_override,val] overridden: @@ -157,14 +157,14 @@ FILE fqName: fileName:/delegationInSealed.kt $this: VALUE_PARAMETER name: type:kotlin.CharSequence 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 kotlin.CharSequence + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.CharSequence $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 kotlin.CharSequence + public open fun hashCode (): kotlin.Int declared in kotlin.CharSequence $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 kotlin.CharSequence + public open fun toString (): kotlin.String declared in kotlin.CharSequence $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/classes/dataClasses/delegationInSealed.ir.txt b/compiler/testData/ir/irText/classes/dataClasses/delegationInSealed.ir.txt index ead7d656162..b0b629a4fe2 100644 --- a/compiler/testData/ir/irText/classes/dataClasses/delegationInSealed.ir.txt +++ b/compiler/testData/ir/irText/classes/dataClasses/delegationInSealed.ir.txt @@ -5,14 +5,14 @@ FILE fqName: fileName:/delegationInSealed.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.A CONSTRUCTOR visibility:protected <> () returnType:.A [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:A modality:SEALED visibility:public superTypes:[kotlin.CharSequence]' CLASS CLASS name:B modality:FINAL visibility:public [data] superTypes:[.A; kotlin.CharSequence] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.A.B CONSTRUCTOR visibility:public <> (c:kotlin.CharSequence) returnType:.A.B [primary] VALUE_PARAMETER name:c index:0 type:kotlin.CharSequence BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'protected constructor () [primary] declared in .A' + DELEGATING_CONSTRUCTOR_CALL 'protected constructor () declared in .A' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:B modality:FINAL visibility:public [data] superTypes:[.A; kotlin.CharSequence]' PROPERTY name:c visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:c type:kotlin.CharSequence visibility:private [final] @@ -27,12 +27,12 @@ FILE fqName: fileName:/delegationInSealed.kt receiver: GET_VAR ': .A.B declared in .A.B.' type=.A.B origin=null PROPERTY DELEGATED_MEMBER name:length visibility:public modality:OPEN [val] overridden: - public abstract length: kotlin.Int [fake_override,val] - public abstract length: kotlin.Int [val] + public abstract length: kotlin.Int + public abstract length: kotlin.Int FUN DELEGATED_MEMBER name: visibility:public modality:OPEN <> ($this:.A.B) returnType:kotlin.Int correspondingProperty: PROPERTY DELEGATED_MEMBER name:length visibility:public modality:OPEN [val] overridden: - public abstract fun (): kotlin.Int [fake_override] declared in .A + public abstract fun (): kotlin.Int declared in .A public abstract fun (): kotlin.Int declared in kotlin.CharSequence $this: VALUE_PARAMETER name: type:.A.B BLOCK_BODY @@ -42,19 +42,19 @@ FILE fqName: fileName:/delegationInSealed.kt receiver: GET_VAR ': .A.B declared in .A.B.' type=.A.B origin=null FUN DELEGATED_MEMBER name:get visibility:public modality:OPEN <> ($this:.A.B, index:kotlin.Int) returnType:kotlin.Char [operator] overridden: - public abstract fun get (index: kotlin.Int): kotlin.Char [fake_override,operator] declared in .A - public abstract fun get (index: kotlin.Int): kotlin.Char [operator] declared in kotlin.CharSequence + public abstract fun get (index: kotlin.Int): kotlin.Char declared in .A + public abstract fun get (index: kotlin.Int): kotlin.Char declared in kotlin.CharSequence $this: VALUE_PARAMETER name: type:.A.B VALUE_PARAMETER name:index index:0 type:kotlin.Int BLOCK_BODY - RETURN type=kotlin.Nothing from='public open fun get (index: kotlin.Int): kotlin.Char [operator] declared in .A.B' - CALL 'public abstract fun get (index: kotlin.Int): kotlin.Char [operator] declared in kotlin.CharSequence' type=kotlin.Char origin=null + RETURN type=kotlin.Nothing from='public open fun get (index: kotlin.Int): kotlin.Char declared in .A.B' + CALL 'public abstract fun get (index: kotlin.Int): kotlin.Char declared in kotlin.CharSequence' type=kotlin.Char origin=null $this: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:c type:kotlin.CharSequence visibility:private [final]' type=kotlin.CharSequence origin=null receiver: GET_VAR ': .A.B declared in .A.B.get' type=.A.B origin=null index: GET_VAR 'index: kotlin.Int declared in .A.B.get' type=kotlin.Int origin=null FUN DELEGATED_MEMBER name:subSequence visibility:public modality:OPEN <> ($this:.A.B, startIndex:kotlin.Int, endIndex:kotlin.Int) returnType:kotlin.CharSequence overridden: - public abstract fun subSequence (startIndex: kotlin.Int, endIndex: kotlin.Int): kotlin.CharSequence [fake_override] declared in .A + public abstract fun subSequence (startIndex: kotlin.Int, endIndex: kotlin.Int): kotlin.CharSequence declared in .A public abstract fun subSequence (startIndex: kotlin.Int, endIndex: kotlin.Int): kotlin.CharSequence declared in kotlin.CharSequence $this: VALUE_PARAMETER name: type:.A.B VALUE_PARAMETER name:startIndex index:0 type:kotlin.Int @@ -69,7 +69,7 @@ FILE fqName: fileName:/delegationInSealed.kt FUN GENERATED_DATA_CLASS_MEMBER name:component1 visibility:public modality:FINAL <> ($this:.A.B) returnType:kotlin.CharSequence [operator] $this: VALUE_PARAMETER name: type:.A.B BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.CharSequence [operator] declared in .A.B' + RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.CharSequence declared in .A.B' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:c type:kotlin.CharSequence visibility:private [final]' type=kotlin.CharSequence origin=null receiver: GET_VAR ': .A.B declared in .A.B.component1' type=.A.B origin=null FUN GENERATED_DATA_CLASS_MEMBER name:copy visibility:public modality:FINAL <> ($this:.A.B, c:kotlin.CharSequence) returnType:.A.B @@ -80,12 +80,12 @@ FILE fqName: fileName:/delegationInSealed.kt receiver: GET_VAR ': .A.B declared in .A.B.copy' type=.A.B origin=null BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun copy (c: kotlin.CharSequence): .A.B declared in .A.B' - CONSTRUCTOR_CALL 'public constructor (c: kotlin.CharSequence) [primary] declared in .A.B' type=.A.B origin=null + CONSTRUCTOR_CALL 'public constructor (c: kotlin.CharSequence) declared in .A.B' type=.A.B origin=null c: GET_VAR 'c: kotlin.CharSequence declared in .A.B.copy' type=kotlin.CharSequence origin=null FUN GENERATED_DATA_CLASS_MEMBER name:toString visibility:public modality:OPEN <> ($this:.A.B) returnType:kotlin.String overridden: - public open fun toString (): kotlin.String [fake_override] declared in .A - public open fun toString (): kotlin.String [fake_override] declared in kotlin.CharSequence + public open fun toString (): kotlin.String declared in .A + public open fun toString (): kotlin.String declared in kotlin.CharSequence $this: VALUE_PARAMETER name: type:.A.B BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun toString (): kotlin.String declared in .A.B' @@ -97,18 +97,18 @@ FILE fqName: fileName:/delegationInSealed.kt CONST String type=kotlin.String value=")" FUN GENERATED_DATA_CLASS_MEMBER name:hashCode visibility:public modality:OPEN <> ($this:.A.B) returnType:kotlin.Int overridden: - public open fun hashCode (): kotlin.Int [fake_override] declared in .A - public open fun hashCode (): kotlin.Int [fake_override] declared in kotlin.CharSequence + public open fun hashCode (): kotlin.Int declared in .A + public open fun hashCode (): kotlin.Int declared in kotlin.CharSequence $this: VALUE_PARAMETER name: type:.A.B BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun hashCode (): kotlin.Int declared in .A.B' - CALL 'public open fun hashCode (): kotlin.Int [fake_override] declared in kotlin.CharSequence' type=kotlin.Int origin=null + CALL 'public open fun hashCode (): kotlin.Int declared in kotlin.CharSequence' type=kotlin.Int origin=null $this: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:c type:kotlin.CharSequence visibility:private [final]' type=kotlin.CharSequence origin=null receiver: GET_VAR ': .A.B declared in .A.B.hashCode' type=.A.B origin=null FUN GENERATED_DATA_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:.A.B, other:kotlin.Any?) returnType:kotlin.Boolean [operator] overridden: - public open fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .A - public open fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in kotlin.CharSequence + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .A + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.CharSequence $this: VALUE_PARAMETER name: type:.A.B VALUE_PARAMETER name:other index:0 type:kotlin.Any? BLOCK_BODY @@ -117,32 +117,32 @@ FILE fqName: fileName:/delegationInSealed.kt 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 ': .A.B declared in .A.B.equals' type=.A.B origin=null arg1: GET_VAR 'other: kotlin.Any? declared in .A.B.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .A.B' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .A.B' CONST Boolean type=kotlin.Boolean value=true WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=.A.B GET_VAR 'other: kotlin.Any? declared in .A.B.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .A.B' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .A.B' CONST Boolean type=kotlin.Boolean value=false VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:.A.B [val] TYPE_OP type=.A.B origin=CAST typeOperand=.A.B GET_VAR 'other: kotlin.Any? declared in .A.B.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 + if: CALL 'public final fun not (): kotlin.Boolean 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:c type:kotlin.CharSequence visibility:private [final]' type=kotlin.CharSequence origin=null receiver: GET_VAR ': .A.B declared in .A.B.equals' type=.A.B origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:c type:kotlin.CharSequence visibility:private [final]' type=kotlin.CharSequence origin=null - receiver: GET_VAR 'val tmp_0: .A.B [val] declared in .A.B.equals' type=.A.B origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .A.B' + receiver: GET_VAR 'val tmp_0: .A.B declared in .A.B.equals' type=.A.B origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .A.B' CONST Boolean type=kotlin.Boolean value=false - RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .A.B' + RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .A.B' CONST Boolean type=kotlin.Boolean value=true PROPERTY FAKE_OVERRIDE name:length visibility:public modality:ABSTRACT [fake_override,val] overridden: - public abstract length: kotlin.Int [val] + public abstract length: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:ABSTRACT <> ($this:kotlin.CharSequence) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:length visibility:public modality:ABSTRACT [fake_override,val] overridden: @@ -150,17 +150,17 @@ FILE fqName: fileName:/delegationInSealed.kt $this: VALUE_PARAMETER name: type:kotlin.CharSequence 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 kotlin.CharSequence + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.CharSequence $this: VALUE_PARAMETER name: type:kotlin.Any VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:get visibility:public modality:ABSTRACT <> ($this:kotlin.CharSequence, index:kotlin.Int) returnType:kotlin.Char [fake_override,operator] overridden: - public abstract fun get (index: kotlin.Int): kotlin.Char [operator] declared in kotlin.CharSequence + public abstract fun get (index: kotlin.Int): kotlin.Char declared in kotlin.CharSequence $this: VALUE_PARAMETER name: type:kotlin.CharSequence VALUE_PARAMETER name:index index:0 type:kotlin.Int 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 kotlin.CharSequence + public open fun hashCode (): kotlin.Int declared in kotlin.CharSequence $this: VALUE_PARAMETER name: type:kotlin.Any FUN FAKE_OVERRIDE name:subSequence visibility:public modality:ABSTRACT <> ($this:kotlin.CharSequence, startIndex:kotlin.Int, endIndex:kotlin.Int) returnType:kotlin.CharSequence [fake_override] overridden: @@ -170,5 +170,5 @@ FILE fqName: fileName:/delegationInSealed.kt VALUE_PARAMETER name:endIndex index:1 type:kotlin.Int 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 kotlin.CharSequence + public open fun toString (): kotlin.String declared in kotlin.CharSequence $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/classes/dataClasses/kt31649.fir.ir.txt b/compiler/testData/ir/irText/classes/dataClasses/kt31649.fir.ir.txt index 4fa89f4dad8..5445d0d1b48 100644 --- a/compiler/testData/ir/irText/classes/dataClasses/kt31649.fir.ir.txt +++ b/compiler/testData/ir/irText/classes/dataClasses/kt31649.fir.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/kt31649.kt CONSTRUCTOR visibility:public <> (nn:kotlin.Nothing?) returnType:.TestData [primary] VALUE_PARAMETER name:nn index:0 type:kotlin.Nothing? BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:TestData modality:FINAL visibility:public [data] superTypes:[kotlin.Any]' PROPERTY name:nn visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:nn type:kotlin.Nothing? visibility:private [final] @@ -20,7 +20,7 @@ FILE fqName: fileName:/kt31649.kt FUN GENERATED_DATA_CLASS_MEMBER name:component1 visibility:public modality:FINAL <> ($this:.TestData) returnType:kotlin.Nothing? [operator] $this: VALUE_PARAMETER name: type:.TestData BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Nothing? [operator] declared in .TestData' + RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Nothing? declared in .TestData' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:nn type:kotlin.Nothing? visibility:private [final]' type=kotlin.Nothing? origin=null receiver: GET_VAR ': .TestData declared in .TestData.component1' type=.TestData origin=null FUN GENERATED_DATA_CLASS_MEMBER name:copy visibility:public modality:FINAL <> ($this:.TestData, nn:kotlin.Nothing?) returnType:.TestData @@ -31,11 +31,11 @@ FILE fqName: fileName:/kt31649.kt receiver: GET_VAR ': .TestData declared in .TestData.copy' type=.TestData origin=null BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun copy (nn: kotlin.Nothing?): .TestData declared in .TestData' - CONSTRUCTOR_CALL 'public constructor (nn: kotlin.Nothing?) [primary] declared in .TestData' type=.TestData origin=null + CONSTRUCTOR_CALL 'public constructor (nn: kotlin.Nothing?) declared in .TestData' type=.TestData origin=null nn: GET_VAR 'nn: kotlin.Nothing? declared in .TestData.copy' type=kotlin.Nothing? origin=null FUN GENERATED_DATA_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:.TestData, other:kotlin.Any?) returnType:kotlin.Boolean [operator] overridden: - public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any $this: VALUE_PARAMETER name: type:.TestData VALUE_PARAMETER name:other index:0 type:kotlin.Any? BLOCK_BODY @@ -44,28 +44,28 @@ FILE fqName: fileName:/kt31649.kt 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 ': .TestData declared in .TestData.equals' type=.TestData origin=null arg1: GET_VAR 'other: kotlin.Any? declared in .TestData.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .TestData' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .TestData' CONST Boolean type=kotlin.Boolean value=true WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=.TestData GET_VAR 'other: kotlin.Any? declared in .TestData.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .TestData' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .TestData' CONST Boolean type=kotlin.Boolean value=false VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:.TestData [val] TYPE_OP type=.TestData origin=CAST typeOperand=.TestData GET_VAR 'other: kotlin.Any? declared in .TestData.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 + if: CALL 'public final fun not (): kotlin.Boolean 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:nn type:kotlin.Nothing? visibility:private [final]' type=kotlin.Nothing? origin=null receiver: GET_VAR ': .TestData declared in .TestData.equals' type=.TestData origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:nn type:kotlin.Nothing? visibility:private [final]' type=kotlin.Nothing? origin=null - receiver: GET_VAR 'val tmp_0: .TestData [val] declared in .TestData.equals' type=.TestData origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .TestData' + receiver: GET_VAR 'val tmp_0: .TestData declared in .TestData.equals' type=.TestData origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .TestData' CONST Boolean type=kotlin.Boolean value=false - RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .TestData' + RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .TestData' CONST Boolean type=kotlin.Boolean value=true FUN GENERATED_DATA_CLASS_MEMBER name:hashCode visibility:public modality:OPEN <> ($this:.TestData) returnType:kotlin.Int overridden: @@ -101,7 +101,7 @@ FILE fqName: fileName:/kt31649.kt CONSTRUCTOR visibility:public <> (nn:kotlin.Nothing?) returnType:.TestInline [primary] VALUE_PARAMETER name:nn index:0 type:kotlin.Nothing? BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:TestInline modality:FINAL visibility:public [value] superTypes:[kotlin.Any]' PROPERTY name:nn visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:nn type:kotlin.Nothing? visibility:private [final] @@ -116,7 +116,7 @@ FILE fqName: fileName:/kt31649.kt receiver: GET_VAR ': .TestInline declared in .TestInline.' type=.TestInline origin=null FUN GENERATED_SINGLE_FIELD_VALUE_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:.TestInline, other:kotlin.Any?) returnType:kotlin.Boolean [operator] overridden: - public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any $this: VALUE_PARAMETER name: type:.TestInline VALUE_PARAMETER name:other index:0 type:kotlin.Any? BLOCK_BODY @@ -124,22 +124,22 @@ FILE fqName: fileName:/kt31649.kt BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=.TestInline GET_VAR 'other: kotlin.Any? declared in .TestInline.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .TestInline' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .TestInline' CONST Boolean type=kotlin.Boolean value=false VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:.TestInline [val] TYPE_OP type=.TestInline origin=CAST typeOperand=.TestInline GET_VAR 'other: kotlin.Any? declared in .TestInline.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 + if: CALL 'public final fun not (): kotlin.Boolean 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:nn type:kotlin.Nothing? visibility:private [final]' type=kotlin.Nothing? origin=null receiver: GET_VAR ': .TestInline declared in .TestInline.equals' type=.TestInline origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:nn type:kotlin.Nothing? visibility:private [final]' type=kotlin.Nothing? origin=null - receiver: GET_VAR 'val tmp_1: .TestInline [val] declared in .TestInline.equals' type=.TestInline origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .TestInline' + receiver: GET_VAR 'val tmp_1: .TestInline declared in .TestInline.equals' type=.TestInline origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .TestInline' CONST Boolean type=kotlin.Boolean value=false - RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .TestInline' + RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .TestInline' CONST Boolean type=kotlin.Boolean value=true FUN GENERATED_SINGLE_FIELD_VALUE_CLASS_MEMBER name:hashCode visibility:public modality:OPEN <> ($this:.TestInline) returnType:kotlin.Int overridden: diff --git a/compiler/testData/ir/irText/classes/dataClasses/kt31649.ir.txt b/compiler/testData/ir/irText/classes/dataClasses/kt31649.ir.txt index b42c54346d1..c82a8f31212 100644 --- a/compiler/testData/ir/irText/classes/dataClasses/kt31649.ir.txt +++ b/compiler/testData/ir/irText/classes/dataClasses/kt31649.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/kt31649.kt CONSTRUCTOR visibility:public <> (nn:kotlin.Nothing?) returnType:.TestData [primary] VALUE_PARAMETER name:nn index:0 type:kotlin.Nothing? BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:TestData modality:FINAL visibility:public [data] superTypes:[kotlin.Any]' PROPERTY name:nn visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:nn type:kotlin.Nothing? visibility:private [final] @@ -20,7 +20,7 @@ FILE fqName: fileName:/kt31649.kt FUN GENERATED_DATA_CLASS_MEMBER name:component1 visibility:public modality:FINAL <> ($this:.TestData) returnType:kotlin.Nothing? [operator] $this: VALUE_PARAMETER name: type:.TestData BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Nothing? [operator] declared in .TestData' + RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Nothing? declared in .TestData' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:nn type:kotlin.Nothing? visibility:private [final]' type=kotlin.Nothing? origin=null receiver: GET_VAR ': .TestData declared in .TestData.component1' type=.TestData origin=null FUN GENERATED_DATA_CLASS_MEMBER name:copy visibility:public modality:FINAL <> ($this:.TestData, nn:kotlin.Nothing?) returnType:.TestData @@ -31,7 +31,7 @@ FILE fqName: fileName:/kt31649.kt receiver: GET_VAR ': .TestData declared in .TestData.copy' type=.TestData origin=null BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun copy (nn: kotlin.Nothing?): .TestData declared in .TestData' - CONSTRUCTOR_CALL 'public constructor (nn: kotlin.Nothing?) [primary] declared in .TestData' type=.TestData origin=null + CONSTRUCTOR_CALL 'public constructor (nn: kotlin.Nothing?) declared in .TestData' type=.TestData origin=null nn: GET_VAR 'nn: kotlin.Nothing? declared in .TestData.copy' type=kotlin.Nothing? origin=null FUN GENERATED_DATA_CLASS_MEMBER name:toString visibility:public modality:OPEN <> ($this:.TestData) returnType:kotlin.String overridden: @@ -65,7 +65,7 @@ FILE fqName: fileName:/kt31649.kt receiver: GET_VAR ': .TestData declared in .TestData.hashCode' type=.TestData origin=null FUN GENERATED_DATA_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:.TestData, other:kotlin.Any?) returnType:kotlin.Boolean [operator] overridden: - public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any $this: VALUE_PARAMETER name: type:.TestData VALUE_PARAMETER name:other index:0 type:kotlin.Any? BLOCK_BODY @@ -74,35 +74,35 @@ FILE fqName: fileName:/kt31649.kt 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 ': .TestData declared in .TestData.equals' type=.TestData origin=null arg1: GET_VAR 'other: kotlin.Any? declared in .TestData.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .TestData' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .TestData' CONST Boolean type=kotlin.Boolean value=true WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=.TestData GET_VAR 'other: kotlin.Any? declared in .TestData.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .TestData' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .TestData' CONST Boolean type=kotlin.Boolean value=false VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:.TestData [val] TYPE_OP type=.TestData origin=CAST typeOperand=.TestData GET_VAR 'other: kotlin.Any? declared in .TestData.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 + if: CALL 'public final fun not (): kotlin.Boolean 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:nn type:kotlin.Nothing? visibility:private [final]' type=kotlin.Nothing? origin=null receiver: GET_VAR ': .TestData declared in .TestData.equals' type=.TestData origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:nn type:kotlin.Nothing? visibility:private [final]' type=kotlin.Nothing? origin=null - receiver: GET_VAR 'val tmp_0: .TestData [val] declared in .TestData.equals' type=.TestData origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .TestData' + receiver: GET_VAR 'val tmp_0: .TestData declared in .TestData.equals' type=.TestData origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .TestData' CONST Boolean type=kotlin.Boolean value=false - RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .TestData' + RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .TestData' CONST Boolean type=kotlin.Boolean value=true CLASS CLASS name:TestInline modality:FINAL visibility:public [value] superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.TestInline CONSTRUCTOR visibility:public <> (nn:kotlin.Nothing?) returnType:.TestInline [primary] VALUE_PARAMETER name:nn index:0 type:kotlin.Nothing? BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:TestInline modality:FINAL visibility:public [value] superTypes:[kotlin.Any]' PROPERTY name:nn visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:nn type:kotlin.Nothing? visibility:private [final] @@ -147,7 +147,7 @@ FILE fqName: fileName:/kt31649.kt receiver: GET_VAR ': .TestInline declared in .TestInline.hashCode' type=.TestInline origin=null FUN GENERATED_SINGLE_FIELD_VALUE_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:.TestInline, other:kotlin.Any?) returnType:kotlin.Boolean [operator] overridden: - public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any $this: VALUE_PARAMETER name: type:.TestInline VALUE_PARAMETER name:other index:0 type:kotlin.Any? BLOCK_BODY @@ -155,20 +155,20 @@ FILE fqName: fileName:/kt31649.kt BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=.TestInline GET_VAR 'other: kotlin.Any? declared in .TestInline.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .TestInline' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .TestInline' CONST Boolean type=kotlin.Boolean value=false VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:.TestInline [val] TYPE_OP type=.TestInline origin=CAST typeOperand=.TestInline GET_VAR 'other: kotlin.Any? declared in .TestInline.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 + if: CALL 'public final fun not (): kotlin.Boolean 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:nn type:kotlin.Nothing? visibility:private [final]' type=kotlin.Nothing? origin=null receiver: GET_VAR ': .TestInline declared in .TestInline.equals' type=.TestInline origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:nn type:kotlin.Nothing? visibility:private [final]' type=kotlin.Nothing? origin=null - receiver: GET_VAR 'val tmp_1: .TestInline [val] declared in .TestInline.equals' type=.TestInline origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .TestInline' + receiver: GET_VAR 'val tmp_1: .TestInline declared in .TestInline.equals' type=.TestInline origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .TestInline' CONST Boolean type=kotlin.Boolean value=false - RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .TestInline' + RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .TestInline' CONST Boolean type=kotlin.Boolean value=true diff --git a/compiler/testData/ir/irText/classes/dataClasses/kt49936.fir.ir.txt b/compiler/testData/ir/irText/classes/dataClasses/kt49936.fir.ir.txt index c3c7a2e7352..4d0586cfb3a 100644 --- a/compiler/testData/ir/irText/classes/dataClasses/kt49936.fir.ir.txt +++ b/compiler/testData/ir/irText/classes/dataClasses/kt49936.fir.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/kt49936.kt CONSTRUCTOR visibility:public <> (x:kotlin.Int) returnType:.A [primary] VALUE_PARAMETER name:x index:0 type:kotlin.Int BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:A modality:FINAL visibility:public [data] superTypes:[kotlin.Any]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private [final] @@ -28,7 +28,7 @@ FILE fqName: fileName:/kt49936.kt FUN GENERATED_DATA_CLASS_MEMBER name:component1 visibility:public modality:FINAL <> ($this:.A) returnType:kotlin.Int [operator] $this: VALUE_PARAMETER name: type:.A BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Int [operator] declared in .A' + RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Int declared in .A' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null receiver: GET_VAR ': .A declared in .A.component1' type=.A origin=null FUN GENERATED_DATA_CLASS_MEMBER name:copy visibility:public modality:FINAL <> ($this:.A, x:kotlin.Int) returnType:.A @@ -39,11 +39,11 @@ FILE fqName: fileName:/kt49936.kt receiver: GET_VAR ': .A declared in .A.copy' type=.A origin=null BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun copy (x: kotlin.Int): .A declared in .A' - CONSTRUCTOR_CALL 'public constructor (x: kotlin.Int) [primary] declared in .A' type=.A origin=null + CONSTRUCTOR_CALL 'public constructor (x: kotlin.Int) declared in .A' type=.A origin=null x: GET_VAR 'x: kotlin.Int declared in .A.copy' type=kotlin.Int origin=null FUN GENERATED_DATA_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:.A, other:kotlin.Any?) returnType:kotlin.Boolean [operator] overridden: - public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any $this: VALUE_PARAMETER name: type:.A VALUE_PARAMETER name:other index:0 type:kotlin.Any? BLOCK_BODY @@ -52,28 +52,28 @@ FILE fqName: fileName:/kt49936.kt 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 ': .A declared in .A.equals' type=.A origin=null arg1: GET_VAR 'other: kotlin.Any? declared in .A.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .A' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .A' CONST Boolean type=kotlin.Boolean value=true WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=.A GET_VAR 'other: kotlin.Any? declared in .A.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .A' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .A' CONST Boolean type=kotlin.Boolean value=false VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:.A [val] TYPE_OP type=.A origin=CAST typeOperand=.A GET_VAR 'other: kotlin.Any? declared in .A.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 + if: CALL 'public final fun not (): kotlin.Boolean 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:x type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null receiver: GET_VAR ': .A declared in .A.equals' type=.A origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null - receiver: GET_VAR 'val tmp_0: .A [val] declared in .A.equals' type=.A origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .A' + receiver: GET_VAR 'val tmp_0: .A declared in .A.equals' type=.A origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .A' CONST Boolean type=kotlin.Boolean value=false - RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .A' + RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .A' CONST Boolean type=kotlin.Boolean value=true FUN GENERATED_DATA_CLASS_MEMBER name:hashCode visibility:public modality:OPEN <> ($this:.A) returnType:kotlin.Int overridden: @@ -81,7 +81,7 @@ FILE fqName: fileName:/kt49936.kt $this: VALUE_PARAMETER name: type:.A BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun hashCode (): kotlin.Int declared in .A' - CALL 'public open fun hashCode (): kotlin.Int [fake_override] declared in kotlin.Int' type=kotlin.Int origin=null + CALL 'public open fun hashCode (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null receiver: GET_VAR ': .A declared in .A.hashCode' type=.A origin=null FUN GENERATED_DATA_CLASS_MEMBER name:toString visibility:public modality:OPEN <> ($this:.A) returnType:kotlin.String diff --git a/compiler/testData/ir/irText/classes/dataClasses/kt49936.ir.txt b/compiler/testData/ir/irText/classes/dataClasses/kt49936.ir.txt index d15c5a09345..5943030821f 100644 --- a/compiler/testData/ir/irText/classes/dataClasses/kt49936.ir.txt +++ b/compiler/testData/ir/irText/classes/dataClasses/kt49936.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/kt49936.kt CONSTRUCTOR visibility:public <> (x:kotlin.Int) returnType:.A [primary] VALUE_PARAMETER name:x index:0 type:kotlin.Int BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:A modality:FINAL visibility:public [data] superTypes:[kotlin.Any]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private [final] @@ -28,7 +28,7 @@ FILE fqName: fileName:/kt49936.kt FUN GENERATED_DATA_CLASS_MEMBER name:component1 visibility:public modality:FINAL <> ($this:.A) returnType:kotlin.Int [operator] $this: VALUE_PARAMETER name: type:.A BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Int [operator] declared in .A' + RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Int declared in .A' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null receiver: GET_VAR ': .A declared in .A.component1' type=.A origin=null FUN GENERATED_DATA_CLASS_MEMBER name:copy visibility:public modality:FINAL <> ($this:.A, x:kotlin.Int) returnType:.A @@ -39,7 +39,7 @@ FILE fqName: fileName:/kt49936.kt receiver: GET_VAR ': .A declared in .A.copy' type=.A origin=null BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun copy (x: kotlin.Int): .A declared in .A' - CONSTRUCTOR_CALL 'public constructor (x: kotlin.Int) [primary] declared in .A' type=.A origin=null + CONSTRUCTOR_CALL 'public constructor (x: kotlin.Int) declared in .A' type=.A origin=null x: GET_VAR 'x: kotlin.Int declared in .A.copy' type=kotlin.Int origin=null FUN GENERATED_DATA_CLASS_MEMBER name:toString visibility:public modality:OPEN <> ($this:.A) returnType:kotlin.String overridden: @@ -59,12 +59,12 @@ FILE fqName: fileName:/kt49936.kt $this: VALUE_PARAMETER name: type:.A BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun hashCode (): kotlin.Int declared in .A' - CALL 'public open fun hashCode (): kotlin.Int [fake_override] declared in kotlin.Int' type=kotlin.Int origin=null + CALL 'public open fun hashCode (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null receiver: GET_VAR ': .A declared in .A.hashCode' type=.A origin=null FUN GENERATED_DATA_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:.A, other:kotlin.Any?) returnType:kotlin.Boolean [operator] overridden: - public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any $this: VALUE_PARAMETER name: type:.A VALUE_PARAMETER name:other index:0 type:kotlin.Any? BLOCK_BODY @@ -73,26 +73,26 @@ FILE fqName: fileName:/kt49936.kt 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 ': .A declared in .A.equals' type=.A origin=null arg1: GET_VAR 'other: kotlin.Any? declared in .A.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .A' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .A' CONST Boolean type=kotlin.Boolean value=true WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=.A GET_VAR 'other: kotlin.Any? declared in .A.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .A' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .A' CONST Boolean type=kotlin.Boolean value=false VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:.A [val] TYPE_OP type=.A origin=CAST typeOperand=.A GET_VAR 'other: kotlin.Any? declared in .A.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 + if: CALL 'public final fun not (): kotlin.Boolean 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:x type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null receiver: GET_VAR ': .A declared in .A.equals' type=.A origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null - receiver: GET_VAR 'val tmp_0: .A [val] declared in .A.equals' type=.A origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .A' + receiver: GET_VAR 'val tmp_0: .A declared in .A.equals' type=.A origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .A' CONST Boolean type=kotlin.Boolean value=false - RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .A' + RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .A' CONST Boolean type=kotlin.Boolean value=true diff --git a/compiler/testData/ir/irText/classes/dataClasses/kt49936.kt b/compiler/testData/ir/irText/classes/dataClasses/kt49936.kt index 2b55cebb60e..47b7ff19a8c 100644 --- a/compiler/testData/ir/irText/classes/dataClasses/kt49936.kt +++ b/compiler/testData/ir/irText/classes/dataClasses/kt49936.kt @@ -1,7 +1,4 @@ // SKIP_KT_DUMP -// IGNORE_BACKEND: JS_IR -// IGNORE_BACKEND: JS_IR_ES6 - data class A(val x: Int) { val String.x: String get() = this } diff --git a/compiler/testData/ir/irText/classes/dataClasses/lambdaInDataClassDefaultParameter.fir.ir.txt b/compiler/testData/ir/irText/classes/dataClasses/lambdaInDataClassDefaultParameter.fir.ir.txt index 8e10c97c3f1..e649ddce4ed 100644 --- a/compiler/testData/ir/irText/classes/dataClasses/lambdaInDataClassDefaultParameter.fir.ir.txt +++ b/compiler/testData/ir/irText/classes/dataClasses/lambdaInDataClassDefaultParameter.fir.ir.txt @@ -12,7 +12,7 @@ FILE fqName: fileName:/lambdaInDataClassDefaultParameter.kt RETURN type=kotlin.Nothing from='local final fun (it: kotlin.String): kotlin.Unit declared in .A.' GET_OBJECT 'CLASS IR_EXTERNAL_DECLARATION_STUB OBJECT name:Unit modality:FINAL visibility:public superTypes:[kotlin.Any]' type=kotlin.Unit BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:A modality:FINAL visibility:public [data] superTypes:[kotlin.Any]' PROPERTY name:runA visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:runA type:@[ExtensionFunctionType] kotlin.Function2<.A, kotlin.String, kotlin.Unit> visibility:private [final] @@ -28,7 +28,7 @@ FILE fqName: fileName:/lambdaInDataClassDefaultParameter.kt FUN GENERATED_DATA_CLASS_MEMBER name:component1 visibility:public modality:FINAL <> ($this:.A) returnType:@[ExtensionFunctionType] kotlin.Function2<.A, kotlin.String, kotlin.Unit> [operator] $this: VALUE_PARAMETER name: type:.A BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component1 (): @[ExtensionFunctionType] kotlin.Function2<.A, kotlin.String, kotlin.Unit> [operator] declared in .A' + RETURN type=kotlin.Nothing from='public final fun component1 (): @[ExtensionFunctionType] kotlin.Function2<.A, kotlin.String, kotlin.Unit> declared in .A' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:runA type:@[ExtensionFunctionType] kotlin.Function2<.A, kotlin.String, kotlin.Unit> visibility:private [final]' type=@[ExtensionFunctionType] kotlin.Function2<.A, kotlin.String, kotlin.Unit> origin=null receiver: GET_VAR ': .A declared in .A.component1' type=.A origin=null FUN GENERATED_DATA_CLASS_MEMBER name:copy visibility:public modality:FINAL <> ($this:.A, runA:@[ExtensionFunctionType] kotlin.Function2<.A, kotlin.String, kotlin.Unit>) returnType:.A @@ -39,11 +39,11 @@ FILE fqName: fileName:/lambdaInDataClassDefaultParameter.kt receiver: GET_VAR ': .A declared in .A.copy' type=.A origin=null BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun copy (runA: @[ExtensionFunctionType] kotlin.Function2<.A, kotlin.String, kotlin.Unit>): .A declared in .A' - CONSTRUCTOR_CALL 'public constructor (runA: @[ExtensionFunctionType] kotlin.Function2<.A, kotlin.String, kotlin.Unit>) [primary] declared in .A' type=.A origin=null + CONSTRUCTOR_CALL 'public constructor (runA: @[ExtensionFunctionType] kotlin.Function2<.A, kotlin.String, kotlin.Unit>) declared in .A' type=.A origin=null runA: GET_VAR 'runA: @[ExtensionFunctionType] kotlin.Function2<.A, kotlin.String, kotlin.Unit> declared in .A.copy' type=@[ExtensionFunctionType] kotlin.Function2<.A, kotlin.String, kotlin.Unit> origin=null FUN GENERATED_DATA_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:.A, other:kotlin.Any?) returnType:kotlin.Boolean [operator] overridden: - public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any $this: VALUE_PARAMETER name: type:.A VALUE_PARAMETER name:other index:0 type:kotlin.Any? BLOCK_BODY @@ -52,28 +52,28 @@ FILE fqName: fileName:/lambdaInDataClassDefaultParameter.kt 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 ': .A declared in .A.equals' type=.A origin=null arg1: GET_VAR 'other: kotlin.Any? declared in .A.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .A' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .A' CONST Boolean type=kotlin.Boolean value=true WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=.A GET_VAR 'other: kotlin.Any? declared in .A.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .A' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .A' CONST Boolean type=kotlin.Boolean value=false VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:.A [val] TYPE_OP type=.A origin=CAST typeOperand=.A GET_VAR 'other: kotlin.Any? declared in .A.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 + if: CALL 'public final fun not (): kotlin.Boolean 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:runA type:@[ExtensionFunctionType] kotlin.Function2<.A, kotlin.String, kotlin.Unit> visibility:private [final]' type=@[ExtensionFunctionType] kotlin.Function2<.A, kotlin.String, kotlin.Unit> origin=null receiver: GET_VAR ': .A declared in .A.equals' type=.A origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:runA type:@[ExtensionFunctionType] kotlin.Function2<.A, kotlin.String, kotlin.Unit> visibility:private [final]' type=@[ExtensionFunctionType] kotlin.Function2<.A, kotlin.String, kotlin.Unit> origin=null - receiver: GET_VAR 'val tmp_0: .A [val] declared in .A.equals' type=.A origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .A' + receiver: GET_VAR 'val tmp_0: .A declared in .A.equals' type=.A origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .A' CONST Boolean type=kotlin.Boolean value=false - RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .A' + RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .A' CONST Boolean type=kotlin.Boolean value=true FUN GENERATED_DATA_CLASS_MEMBER name:hashCode visibility:public modality:OPEN <> ($this:.A) returnType:kotlin.Int overridden: @@ -81,7 +81,7 @@ FILE fqName: fileName:/lambdaInDataClassDefaultParameter.kt $this: VALUE_PARAMETER name: type:.A BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun hashCode (): kotlin.Int declared in .A' - CALL 'public open fun hashCode (): kotlin.Int [fake_override] declared in kotlin.Function2' type=kotlin.Int origin=null + CALL 'public open fun hashCode (): kotlin.Int declared in kotlin.Function2' type=kotlin.Int origin=null $this: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:runA type:@[ExtensionFunctionType] kotlin.Function2<.A, kotlin.String, kotlin.Unit> visibility:private [final]' type=@[ExtensionFunctionType] kotlin.Function2<.A, kotlin.String, kotlin.Unit> origin=null receiver: GET_VAR ': .A declared in .A.hashCode' type=.A origin=null FUN GENERATED_DATA_CLASS_MEMBER name:toString visibility:public modality:OPEN <> ($this:.A) returnType:kotlin.String @@ -105,11 +105,11 @@ FILE fqName: fileName:/lambdaInDataClassDefaultParameter.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.B.. CONSTRUCTOR visibility:public <> () returnType:.B.. [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name: modality:FINAL visibility:local 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -120,9 +120,9 @@ FILE fqName: fileName:/lambdaInDataClassDefaultParameter.kt overridden: public open fun toString (): kotlin.String declared in kotlin.Any $this: VALUE_PARAMETER name: type:kotlin.Any - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .B..' type=.B.. origin=OBJECT_LITERAL + CONSTRUCTOR_CALL 'public constructor () declared in .B..' type=.B.. origin=OBJECT_LITERAL BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:B modality:FINAL visibility:public [data] superTypes:[kotlin.Any]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Any visibility:private [final] @@ -138,7 +138,7 @@ FILE fqName: fileName:/lambdaInDataClassDefaultParameter.kt FUN GENERATED_DATA_CLASS_MEMBER name:component1 visibility:public modality:FINAL <> ($this:.B) returnType:kotlin.Any [operator] $this: VALUE_PARAMETER name: type:.B BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Any [operator] declared in .B' + RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Any declared in .B' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Any visibility:private [final]' type=kotlin.Any origin=null receiver: GET_VAR ': .B declared in .B.component1' type=.B origin=null FUN GENERATED_DATA_CLASS_MEMBER name:copy visibility:public modality:FINAL <> ($this:.B, x:kotlin.Any) returnType:.B @@ -149,11 +149,11 @@ FILE fqName: fileName:/lambdaInDataClassDefaultParameter.kt receiver: GET_VAR ': .B declared in .B.copy' type=.B origin=null BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun copy (x: kotlin.Any): .B declared in .B' - CONSTRUCTOR_CALL 'public constructor (x: kotlin.Any) [primary] declared in .B' type=.B origin=null + CONSTRUCTOR_CALL 'public constructor (x: kotlin.Any) declared in .B' type=.B origin=null x: GET_VAR 'x: kotlin.Any declared in .B.copy' type=kotlin.Any origin=null FUN GENERATED_DATA_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:.B, other:kotlin.Any?) returnType:kotlin.Boolean [operator] overridden: - public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any $this: VALUE_PARAMETER name: type:.B VALUE_PARAMETER name:other index:0 type:kotlin.Any? BLOCK_BODY @@ -162,28 +162,28 @@ FILE fqName: fileName:/lambdaInDataClassDefaultParameter.kt 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 ': .B declared in .B.equals' type=.B origin=null arg1: GET_VAR 'other: kotlin.Any? declared in .B.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .B' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .B' CONST Boolean type=kotlin.Boolean value=true WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=.B GET_VAR 'other: kotlin.Any? declared in .B.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .B' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .B' CONST Boolean type=kotlin.Boolean value=false VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:.B [val] TYPE_OP type=.B origin=CAST typeOperand=.B GET_VAR 'other: kotlin.Any? declared in .B.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 + if: CALL 'public final fun not (): kotlin.Boolean 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:x type:kotlin.Any visibility:private [final]' type=kotlin.Any origin=null receiver: GET_VAR ': .B declared in .B.equals' type=.B origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Any visibility:private [final]' type=kotlin.Any origin=null - receiver: GET_VAR 'val tmp_1: .B [val] declared in .B.equals' type=.B origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .B' + receiver: GET_VAR 'val tmp_1: .B declared in .B.equals' type=.B origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .B' CONST Boolean type=kotlin.Boolean value=false - RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .B' + RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .B' CONST Boolean type=kotlin.Boolean value=true FUN GENERATED_DATA_CLASS_MEMBER name:hashCode visibility:public modality:OPEN <> ($this:.B) returnType:kotlin.Int overridden: diff --git a/compiler/testData/ir/irText/classes/dataClasses/lambdaInDataClassDefaultParameter.ir.txt b/compiler/testData/ir/irText/classes/dataClasses/lambdaInDataClassDefaultParameter.ir.txt index 7f2f8a2d776..3edce685316 100644 --- a/compiler/testData/ir/irText/classes/dataClasses/lambdaInDataClassDefaultParameter.ir.txt +++ b/compiler/testData/ir/irText/classes/dataClasses/lambdaInDataClassDefaultParameter.ir.txt @@ -12,7 +12,7 @@ FILE fqName: fileName:/lambdaInDataClassDefaultParameter.kt RETURN type=kotlin.Nothing from='local final fun (it: kotlin.String): kotlin.Unit declared in .A.' GET_OBJECT 'CLASS IR_EXTERNAL_DECLARATION_STUB OBJECT name:Unit modality:FINAL visibility:public superTypes:[kotlin.Any]' type=kotlin.Unit BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:A modality:FINAL visibility:public [data] superTypes:[kotlin.Any]' PROPERTY name:runA visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:runA type:@[ExtensionFunctionType] kotlin.Function2<.A, kotlin.String, kotlin.Unit> visibility:private [final] @@ -28,7 +28,7 @@ FILE fqName: fileName:/lambdaInDataClassDefaultParameter.kt FUN GENERATED_DATA_CLASS_MEMBER name:component1 visibility:public modality:FINAL <> ($this:.A) returnType:@[ExtensionFunctionType] kotlin.Function2<.A, kotlin.String, kotlin.Unit> [operator] $this: VALUE_PARAMETER name: type:.A BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component1 (): @[ExtensionFunctionType] kotlin.Function2<.A, kotlin.String, kotlin.Unit> [operator] declared in .A' + RETURN type=kotlin.Nothing from='public final fun component1 (): @[ExtensionFunctionType] kotlin.Function2<.A, kotlin.String, kotlin.Unit> declared in .A' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:runA type:@[ExtensionFunctionType] kotlin.Function2<.A, kotlin.String, kotlin.Unit> visibility:private [final]' type=@[ExtensionFunctionType] kotlin.Function2<.A, kotlin.String, kotlin.Unit> origin=null receiver: GET_VAR ': .A declared in .A.component1' type=.A origin=null FUN GENERATED_DATA_CLASS_MEMBER name:copy visibility:public modality:FINAL <> ($this:.A, runA:@[ExtensionFunctionType] kotlin.Function2<.A, kotlin.String, kotlin.Unit>) returnType:.A @@ -39,7 +39,7 @@ FILE fqName: fileName:/lambdaInDataClassDefaultParameter.kt receiver: GET_VAR ': .A declared in .A.copy' type=.A origin=null BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun copy (runA: @[ExtensionFunctionType] kotlin.Function2<.A, kotlin.String, kotlin.Unit>): .A declared in .A' - CONSTRUCTOR_CALL 'public constructor (runA: @[ExtensionFunctionType] kotlin.Function2<.A, kotlin.String, kotlin.Unit>) [primary] declared in .A' type=.A origin=null + CONSTRUCTOR_CALL 'public constructor (runA: @[ExtensionFunctionType] kotlin.Function2<.A, kotlin.String, kotlin.Unit>) declared in .A' type=.A origin=null runA: GET_VAR 'runA: @[ExtensionFunctionType] kotlin.Function2<.A, kotlin.String, kotlin.Unit> declared in .A.copy' type=@[ExtensionFunctionType] kotlin.Function2<.A, kotlin.String, kotlin.Unit> origin=null FUN GENERATED_DATA_CLASS_MEMBER name:toString visibility:public modality:OPEN <> ($this:.A) returnType:kotlin.String overridden: @@ -59,12 +59,12 @@ FILE fqName: fileName:/lambdaInDataClassDefaultParameter.kt $this: VALUE_PARAMETER name: type:.A BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun hashCode (): kotlin.Int declared in .A' - CALL 'public open fun hashCode (): kotlin.Int [fake_override] declared in kotlin.Function2' type=kotlin.Int origin=null + CALL 'public open fun hashCode (): kotlin.Int declared in kotlin.Function2' type=kotlin.Int origin=null $this: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:runA type:@[ExtensionFunctionType] kotlin.Function2<.A, kotlin.String, kotlin.Unit> visibility:private [final]' type=@[ExtensionFunctionType] kotlin.Function2<.A, kotlin.String, kotlin.Unit> origin=null receiver: GET_VAR ': .A declared in .A.hashCode' type=.A origin=null FUN GENERATED_DATA_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:.A, other:kotlin.Any?) returnType:kotlin.Boolean [operator] overridden: - public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any $this: VALUE_PARAMETER name: type:.A VALUE_PARAMETER name:other index:0 type:kotlin.Any? BLOCK_BODY @@ -73,28 +73,28 @@ FILE fqName: fileName:/lambdaInDataClassDefaultParameter.kt 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 ': .A declared in .A.equals' type=.A origin=null arg1: GET_VAR 'other: kotlin.Any? declared in .A.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .A' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .A' CONST Boolean type=kotlin.Boolean value=true WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=.A GET_VAR 'other: kotlin.Any? declared in .A.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .A' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .A' CONST Boolean type=kotlin.Boolean value=false VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:.A [val] TYPE_OP type=.A origin=CAST typeOperand=.A GET_VAR 'other: kotlin.Any? declared in .A.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 + if: CALL 'public final fun not (): kotlin.Boolean 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:runA type:@[ExtensionFunctionType] kotlin.Function2<.A, kotlin.String, kotlin.Unit> visibility:private [final]' type=@[ExtensionFunctionType] kotlin.Function2<.A, kotlin.String, kotlin.Unit> origin=null receiver: GET_VAR ': .A declared in .A.equals' type=.A origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:runA type:@[ExtensionFunctionType] kotlin.Function2<.A, kotlin.String, kotlin.Unit> visibility:private [final]' type=@[ExtensionFunctionType] kotlin.Function2<.A, kotlin.String, kotlin.Unit> origin=null - receiver: GET_VAR 'val tmp_0: .A [val] declared in .A.equals' type=.A origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .A' + receiver: GET_VAR 'val tmp_0: .A declared in .A.equals' type=.A origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .A' CONST Boolean type=kotlin.Boolean value=false - RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .A' + RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .A' CONST Boolean type=kotlin.Boolean value=true CLASS CLASS name:B modality:FINAL visibility:public [data] superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.B @@ -106,11 +106,11 @@ FILE fqName: fileName:/lambdaInDataClassDefaultParameter.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.B.. CONSTRUCTOR visibility:public <> () returnType:.B.. [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name: modality:FINAL visibility:local 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -121,9 +121,9 @@ FILE fqName: fileName:/lambdaInDataClassDefaultParameter.kt overridden: public open fun toString (): kotlin.String declared in kotlin.Any $this: VALUE_PARAMETER name: type:kotlin.Any - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .B..' type=.B.. origin=OBJECT_LITERAL + CONSTRUCTOR_CALL 'public constructor () declared in .B..' type=.B.. origin=OBJECT_LITERAL BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:B modality:FINAL visibility:public [data] superTypes:[kotlin.Any]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Any visibility:private [final] @@ -139,7 +139,7 @@ FILE fqName: fileName:/lambdaInDataClassDefaultParameter.kt FUN GENERATED_DATA_CLASS_MEMBER name:component1 visibility:public modality:FINAL <> ($this:.B) returnType:kotlin.Any [operator] $this: VALUE_PARAMETER name: type:.B BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Any [operator] declared in .B' + RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Any declared in .B' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Any visibility:private [final]' type=kotlin.Any origin=null receiver: GET_VAR ': .B declared in .B.component1' type=.B origin=null FUN GENERATED_DATA_CLASS_MEMBER name:copy visibility:public modality:FINAL <> ($this:.B, x:kotlin.Any) returnType:.B @@ -150,7 +150,7 @@ FILE fqName: fileName:/lambdaInDataClassDefaultParameter.kt receiver: GET_VAR ': .B declared in .B.copy' type=.B origin=null BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun copy (x: kotlin.Any): .B declared in .B' - CONSTRUCTOR_CALL 'public constructor (x: kotlin.Any) [primary] declared in .B' type=.B origin=null + CONSTRUCTOR_CALL 'public constructor (x: kotlin.Any) declared in .B' type=.B origin=null x: GET_VAR 'x: kotlin.Any declared in .B.copy' type=kotlin.Any origin=null FUN GENERATED_DATA_CLASS_MEMBER name:toString visibility:public modality:OPEN <> ($this:.B) returnType:kotlin.String overridden: @@ -175,7 +175,7 @@ FILE fqName: fileName:/lambdaInDataClassDefaultParameter.kt receiver: GET_VAR ': .B declared in .B.hashCode' type=.B origin=null FUN GENERATED_DATA_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:.B, other:kotlin.Any?) returnType:kotlin.Boolean [operator] overridden: - public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any $this: VALUE_PARAMETER name: type:.B VALUE_PARAMETER name:other index:0 type:kotlin.Any? BLOCK_BODY @@ -184,26 +184,26 @@ FILE fqName: fileName:/lambdaInDataClassDefaultParameter.kt 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 ': .B declared in .B.equals' type=.B origin=null arg1: GET_VAR 'other: kotlin.Any? declared in .B.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .B' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .B' CONST Boolean type=kotlin.Boolean value=true WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=.B GET_VAR 'other: kotlin.Any? declared in .B.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .B' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .B' CONST Boolean type=kotlin.Boolean value=false VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:.B [val] TYPE_OP type=.B origin=CAST typeOperand=.B GET_VAR 'other: kotlin.Any? declared in .B.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 + if: CALL 'public final fun not (): kotlin.Boolean 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:x type:kotlin.Any visibility:private [final]' type=kotlin.Any origin=null receiver: GET_VAR ': .B declared in .B.equals' type=.B origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Any visibility:private [final]' type=kotlin.Any origin=null - receiver: GET_VAR 'val tmp_1: .B [val] declared in .B.equals' type=.B origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .B' + receiver: GET_VAR 'val tmp_1: .B declared in .B.equals' type=.B origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .B' CONST Boolean type=kotlin.Boolean value=false - RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .B' + RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .B' CONST Boolean type=kotlin.Boolean value=true diff --git a/compiler/testData/ir/irText/classes/dataClasses/openDataClass.fir.ir.txt b/compiler/testData/ir/irText/classes/dataClasses/openDataClass.fir.ir.txt index 31c6a1a7fb0..40a297bc882 100644 --- a/compiler/testData/ir/irText/classes/dataClasses/openDataClass.fir.ir.txt +++ b/compiler/testData/ir/irText/classes/dataClasses/openDataClass.fir.ir.txt @@ -7,7 +7,7 @@ FILE fqName: fileName:/openDataClass.kt VALUE_PARAMETER name:test1 index:0 type:kotlin.String VALUE_PARAMETER name:test2 index:1 type:kotlin.String BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:ValidatedProperties modality:OPEN visibility:public [data] superTypes:[kotlin.Any]' PROPERTY name:test1 visibility:public modality:OPEN [val] FIELD PROPERTY_BACKING_FIELD name:test1 type:kotlin.String visibility:private [final] @@ -34,13 +34,13 @@ FILE fqName: fileName:/openDataClass.kt FUN GENERATED_DATA_CLASS_MEMBER name:component1 visibility:public modality:FINAL <> ($this:.ValidatedProperties) returnType:kotlin.String [operator] $this: VALUE_PARAMETER name: type:.ValidatedProperties BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.String [operator] declared in .ValidatedProperties' + RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.String declared in .ValidatedProperties' CALL 'public open fun (): kotlin.String declared in .ValidatedProperties' type=kotlin.String origin=null $this: GET_VAR ': .ValidatedProperties declared in .ValidatedProperties.component1' type=.ValidatedProperties origin=null FUN GENERATED_DATA_CLASS_MEMBER name:component2 visibility:public modality:FINAL <> ($this:.ValidatedProperties) returnType:kotlin.String [operator] $this: VALUE_PARAMETER name: type:.ValidatedProperties BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component2 (): kotlin.String [operator] declared in .ValidatedProperties' + RETURN type=kotlin.Nothing from='public final fun component2 (): kotlin.String declared in .ValidatedProperties' CALL 'public open fun (): kotlin.String declared in .ValidatedProperties' type=kotlin.String origin=null $this: GET_VAR ': .ValidatedProperties declared in .ValidatedProperties.component2' type=.ValidatedProperties origin=null FUN GENERATED_DATA_CLASS_MEMBER name:copy visibility:public modality:FINAL <> ($this:.ValidatedProperties, test1:kotlin.String, test2:kotlin.String) returnType:.ValidatedProperties @@ -55,12 +55,12 @@ FILE fqName: fileName:/openDataClass.kt $this: GET_VAR ': .ValidatedProperties declared in .ValidatedProperties.copy' type=.ValidatedProperties origin=null BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun copy (test1: kotlin.String, test2: kotlin.String): .ValidatedProperties declared in .ValidatedProperties' - CONSTRUCTOR_CALL 'public constructor (test1: kotlin.String, test2: kotlin.String) [primary] declared in .ValidatedProperties' type=.ValidatedProperties origin=null + CONSTRUCTOR_CALL 'public constructor (test1: kotlin.String, test2: kotlin.String) declared in .ValidatedProperties' type=.ValidatedProperties origin=null test1: GET_VAR 'test1: kotlin.String declared in .ValidatedProperties.copy' type=kotlin.String origin=null test2: GET_VAR 'test2: kotlin.String declared in .ValidatedProperties.copy' type=kotlin.String origin=null FUN GENERATED_DATA_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:.ValidatedProperties, other:kotlin.Any?) returnType:kotlin.Boolean [operator] overridden: - public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any $this: VALUE_PARAMETER name: type:.ValidatedProperties VALUE_PARAMETER name:other index:0 type:kotlin.Any? BLOCK_BODY @@ -69,38 +69,38 @@ FILE fqName: fileName:/openDataClass.kt 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 ': .ValidatedProperties declared in .ValidatedProperties.equals' type=.ValidatedProperties origin=null arg1: GET_VAR 'other: kotlin.Any? declared in .ValidatedProperties.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .ValidatedProperties' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .ValidatedProperties' CONST Boolean type=kotlin.Boolean value=true WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=.ValidatedProperties GET_VAR 'other: kotlin.Any? declared in .ValidatedProperties.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .ValidatedProperties' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .ValidatedProperties' CONST Boolean type=kotlin.Boolean value=false VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:.ValidatedProperties [val] TYPE_OP type=.ValidatedProperties origin=CAST typeOperand=.ValidatedProperties GET_VAR 'other: kotlin.Any? declared in .ValidatedProperties.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 + if: CALL 'public final fun not (): kotlin.Boolean 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: CALL 'public open fun (): kotlin.String declared in .ValidatedProperties' type=kotlin.String origin=null $this: GET_VAR ': .ValidatedProperties declared in .ValidatedProperties.equals' type=.ValidatedProperties origin=null arg1: CALL 'public open fun (): kotlin.String declared in .ValidatedProperties' type=kotlin.String origin=null - $this: GET_VAR 'val tmp_0: .ValidatedProperties [val] declared in .ValidatedProperties.equals' type=.ValidatedProperties origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .ValidatedProperties' + $this: GET_VAR 'val tmp_0: .ValidatedProperties declared in .ValidatedProperties.equals' type=.ValidatedProperties origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .ValidatedProperties' CONST Boolean type=kotlin.Boolean value=false 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 + if: CALL 'public final fun not (): kotlin.Boolean 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: CALL 'public open fun (): kotlin.String declared in .ValidatedProperties' type=kotlin.String origin=null $this: GET_VAR ': .ValidatedProperties declared in .ValidatedProperties.equals' type=.ValidatedProperties origin=null arg1: CALL 'public open fun (): kotlin.String declared in .ValidatedProperties' type=kotlin.String origin=null - $this: GET_VAR 'val tmp_0: .ValidatedProperties [val] declared in .ValidatedProperties.equals' type=.ValidatedProperties origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .ValidatedProperties' + $this: GET_VAR 'val tmp_0: .ValidatedProperties declared in .ValidatedProperties.equals' type=.ValidatedProperties origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .ValidatedProperties' CONST Boolean type=kotlin.Boolean value=false - RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .ValidatedProperties' + RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .ValidatedProperties' CONST Boolean type=kotlin.Boolean value=true FUN GENERATED_DATA_CLASS_MEMBER name:hashCode visibility:public modality:OPEN <> ($this:.ValidatedProperties) returnType:kotlin.Int overridden: @@ -108,19 +108,19 @@ FILE fqName: fileName:/openDataClass.kt $this: VALUE_PARAMETER name: type:.ValidatedProperties BLOCK_BODY VAR name:result type:kotlin.Int [var] - CALL 'public open fun hashCode (): kotlin.Int [fake_override] declared in kotlin.String' type=kotlin.Int origin=null + CALL 'public open fun hashCode (): kotlin.Int declared in kotlin.String' type=kotlin.Int origin=null $this: CALL 'public open fun (): kotlin.String declared in .ValidatedProperties' type=kotlin.String origin=null $this: GET_VAR ': .ValidatedProperties declared in .ValidatedProperties.hashCode' type=.ValidatedProperties origin=null - SET_VAR 'var result: kotlin.Int [var] declared in .ValidatedProperties.hashCode' type=kotlin.Unit origin=EQ - CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: CALL 'public final fun times (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'var result: kotlin.Int [var] declared in .ValidatedProperties.hashCode' type=kotlin.Int origin=null + SET_VAR 'var result: kotlin.Int declared in .ValidatedProperties.hashCode' type=kotlin.Unit origin=EQ + CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: CALL 'public final fun times (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'var result: kotlin.Int declared in .ValidatedProperties.hashCode' type=kotlin.Int origin=null other: CONST Int type=kotlin.Int value=31 - other: CALL 'public open fun hashCode (): kotlin.Int [fake_override] declared in kotlin.String' type=kotlin.Int origin=null + other: CALL 'public open fun hashCode (): kotlin.Int declared in kotlin.String' type=kotlin.Int origin=null $this: CALL 'public open fun (): kotlin.String declared in .ValidatedProperties' type=kotlin.String origin=null $this: GET_VAR ': .ValidatedProperties declared in .ValidatedProperties.hashCode' type=.ValidatedProperties origin=null RETURN type=kotlin.Nothing from='public open fun hashCode (): kotlin.Int declared in .ValidatedProperties' - GET_VAR 'var result: kotlin.Int [var] declared in .ValidatedProperties.hashCode' type=kotlin.Int origin=null + GET_VAR 'var result: kotlin.Int declared in .ValidatedProperties.hashCode' type=kotlin.Int origin=null FUN GENERATED_DATA_CLASS_MEMBER name:toString visibility:public modality:OPEN <> ($this:.ValidatedProperties) returnType:kotlin.String overridden: public open fun toString (): kotlin.String declared in kotlin.Any diff --git a/compiler/testData/ir/irText/classes/dataClasses/openDataClass.ir.txt b/compiler/testData/ir/irText/classes/dataClasses/openDataClass.ir.txt index 8dce07178be..bd55d636fd2 100644 --- a/compiler/testData/ir/irText/classes/dataClasses/openDataClass.ir.txt +++ b/compiler/testData/ir/irText/classes/dataClasses/openDataClass.ir.txt @@ -7,7 +7,7 @@ FILE fqName: fileName:/openDataClass.kt VALUE_PARAMETER name:test1 index:0 type:kotlin.String VALUE_PARAMETER name:test2 index:1 type:kotlin.String BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:ValidatedProperties modality:OPEN visibility:public [data] superTypes:[kotlin.Any]' PROPERTY name:test1 visibility:public modality:OPEN [val] FIELD PROPERTY_BACKING_FIELD name:test1 type:kotlin.String visibility:private [final] @@ -34,13 +34,13 @@ FILE fqName: fileName:/openDataClass.kt FUN GENERATED_DATA_CLASS_MEMBER name:component1 visibility:public modality:FINAL <> ($this:.ValidatedProperties) returnType:kotlin.String [operator] $this: VALUE_PARAMETER name: type:.ValidatedProperties BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.String [operator] declared in .ValidatedProperties' + RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.String declared in .ValidatedProperties' CALL 'public open fun (): kotlin.String declared in .ValidatedProperties' type=kotlin.String origin=null $this: GET_VAR ': .ValidatedProperties declared in .ValidatedProperties.component1' type=.ValidatedProperties origin=null FUN GENERATED_DATA_CLASS_MEMBER name:component2 visibility:public modality:FINAL <> ($this:.ValidatedProperties) returnType:kotlin.String [operator] $this: VALUE_PARAMETER name: type:.ValidatedProperties BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component2 (): kotlin.String [operator] declared in .ValidatedProperties' + RETURN type=kotlin.Nothing from='public final fun component2 (): kotlin.String declared in .ValidatedProperties' CALL 'public open fun (): kotlin.String declared in .ValidatedProperties' type=kotlin.String origin=null $this: GET_VAR ': .ValidatedProperties declared in .ValidatedProperties.component2' type=.ValidatedProperties origin=null FUN GENERATED_DATA_CLASS_MEMBER name:copy visibility:public modality:FINAL <> ($this:.ValidatedProperties, test1:kotlin.String, test2:kotlin.String) returnType:.ValidatedProperties @@ -55,7 +55,7 @@ FILE fqName: fileName:/openDataClass.kt $this: GET_VAR ': .ValidatedProperties declared in .ValidatedProperties.copy' type=.ValidatedProperties origin=null BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun copy (test1: kotlin.String, test2: kotlin.String): .ValidatedProperties declared in .ValidatedProperties' - CONSTRUCTOR_CALL 'public constructor (test1: kotlin.String, test2: kotlin.String) [primary] declared in .ValidatedProperties' type=.ValidatedProperties origin=null + CONSTRUCTOR_CALL 'public constructor (test1: kotlin.String, test2: kotlin.String) declared in .ValidatedProperties' type=.ValidatedProperties origin=null test1: GET_VAR 'test1: kotlin.String declared in .ValidatedProperties.copy' type=kotlin.String origin=null test2: GET_VAR 'test2: kotlin.String declared in .ValidatedProperties.copy' type=kotlin.String origin=null FUN GENERATED_DATA_CLASS_MEMBER name:toString visibility:public modality:OPEN <> ($this:.ValidatedProperties) returnType:kotlin.String @@ -80,22 +80,22 @@ FILE fqName: fileName:/openDataClass.kt $this: VALUE_PARAMETER name: type:.ValidatedProperties BLOCK_BODY VAR name:result type:kotlin.Int [var] - CALL 'public open fun hashCode (): kotlin.Int [fake_override] declared in kotlin.String' type=kotlin.Int origin=null + CALL 'public open fun hashCode (): kotlin.Int declared in kotlin.String' type=kotlin.Int origin=null $this: CALL 'public open fun (): kotlin.String declared in .ValidatedProperties' type=kotlin.String origin=null $this: GET_VAR ': .ValidatedProperties declared in .ValidatedProperties.hashCode' type=.ValidatedProperties origin=null - SET_VAR 'var result: kotlin.Int [var] declared in .ValidatedProperties.hashCode' type=kotlin.Unit origin=EQ - CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: CALL 'public final fun times (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'var result: kotlin.Int [var] declared in .ValidatedProperties.hashCode' type=kotlin.Int origin=null + SET_VAR 'var result: kotlin.Int declared in .ValidatedProperties.hashCode' type=kotlin.Unit origin=EQ + CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: CALL 'public final fun times (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'var result: kotlin.Int declared in .ValidatedProperties.hashCode' type=kotlin.Int origin=null other: CONST Int type=kotlin.Int value=31 - other: CALL 'public open fun hashCode (): kotlin.Int [fake_override] declared in kotlin.String' type=kotlin.Int origin=null + other: CALL 'public open fun hashCode (): kotlin.Int declared in kotlin.String' type=kotlin.Int origin=null $this: CALL 'public open fun (): kotlin.String declared in .ValidatedProperties' type=kotlin.String origin=null $this: GET_VAR ': .ValidatedProperties declared in .ValidatedProperties.hashCode' type=.ValidatedProperties origin=null RETURN type=kotlin.Nothing from='public open fun hashCode (): kotlin.Int declared in .ValidatedProperties' - GET_VAR 'var result: kotlin.Int [var] declared in .ValidatedProperties.hashCode' type=kotlin.Int origin=null + GET_VAR 'var result: kotlin.Int declared in .ValidatedProperties.hashCode' type=kotlin.Int origin=null FUN GENERATED_DATA_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:.ValidatedProperties, other:kotlin.Any?) returnType:kotlin.Boolean [operator] overridden: - public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any $this: VALUE_PARAMETER name: type:.ValidatedProperties VALUE_PARAMETER name:other index:0 type:kotlin.Any? BLOCK_BODY @@ -104,36 +104,36 @@ FILE fqName: fileName:/openDataClass.kt 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 ': .ValidatedProperties declared in .ValidatedProperties.equals' type=.ValidatedProperties origin=null arg1: GET_VAR 'other: kotlin.Any? declared in .ValidatedProperties.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .ValidatedProperties' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .ValidatedProperties' CONST Boolean type=kotlin.Boolean value=true WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=.ValidatedProperties GET_VAR 'other: kotlin.Any? declared in .ValidatedProperties.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .ValidatedProperties' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .ValidatedProperties' CONST Boolean type=kotlin.Boolean value=false VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:.ValidatedProperties [val] TYPE_OP type=.ValidatedProperties origin=CAST typeOperand=.ValidatedProperties GET_VAR 'other: kotlin.Any? declared in .ValidatedProperties.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 + if: CALL 'public final fun not (): kotlin.Boolean 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: CALL 'public open fun (): kotlin.String declared in .ValidatedProperties' type=kotlin.String origin=null $this: GET_VAR ': .ValidatedProperties declared in .ValidatedProperties.equals' type=.ValidatedProperties origin=null arg1: CALL 'public open fun (): kotlin.String declared in .ValidatedProperties' type=kotlin.String origin=null - $this: GET_VAR 'val tmp_0: .ValidatedProperties [val] declared in .ValidatedProperties.equals' type=.ValidatedProperties origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .ValidatedProperties' + $this: GET_VAR 'val tmp_0: .ValidatedProperties declared in .ValidatedProperties.equals' type=.ValidatedProperties origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .ValidatedProperties' CONST Boolean type=kotlin.Boolean value=false 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 + if: CALL 'public final fun not (): kotlin.Boolean 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: CALL 'public open fun (): kotlin.String declared in .ValidatedProperties' type=kotlin.String origin=null $this: GET_VAR ': .ValidatedProperties declared in .ValidatedProperties.equals' type=.ValidatedProperties origin=null arg1: CALL 'public open fun (): kotlin.String declared in .ValidatedProperties' type=kotlin.String origin=null - $this: GET_VAR 'val tmp_0: .ValidatedProperties [val] declared in .ValidatedProperties.equals' type=.ValidatedProperties origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .ValidatedProperties' + $this: GET_VAR 'val tmp_0: .ValidatedProperties declared in .ValidatedProperties.equals' type=.ValidatedProperties origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .ValidatedProperties' CONST Boolean type=kotlin.Boolean value=false - RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .ValidatedProperties' + RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .ValidatedProperties' CONST Boolean type=kotlin.Boolean value=true diff --git a/compiler/testData/ir/irText/classes/dataClasses/openDataClass.kt b/compiler/testData/ir/irText/classes/dataClasses/openDataClass.kt index 55c1d81556a..2a062d2dd07 100644 --- a/compiler/testData/ir/irText/classes/dataClasses/openDataClass.kt +++ b/compiler/testData/ir/irText/classes/dataClasses/openDataClass.kt @@ -1,6 +1,3 @@ -// IGNORE_BACKEND: JS_IR -// IGNORE_BACKEND: JS_IR_ES6 - // This test emulates 'allopen' compiler plugin. @Suppress("INCOMPATIBLE_MODIFIERS") diff --git a/compiler/testData/ir/irText/classes/declarationOrder.ir.txt b/compiler/testData/ir/irText/classes/declarationOrder.ir.txt index abe5ad9c5ef..fd7c4c00e7d 100644 --- a/compiler/testData/ir/irText/classes/declarationOrder.ir.txt +++ b/compiler/testData/ir/irText/classes/declarationOrder.ir.txt @@ -3,12 +3,12 @@ FILE fqName:test fileName:/declarationOrder.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:test.A CONSTRUCTOR visibility:public <> () returnType:test.A [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:A modality:FINAL visibility:public superTypes:[kotlin.Any]' CONSTRUCTOR visibility:public <> (x:kotlin.Int) returnType:test.A VALUE_PARAMETER name:x index:0 type:kotlin.Int BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in test.A' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in test.A' FUN name:b visibility:public modality:FINAL <> ($this:test.A) returnType:kotlin.Unit $this: VALUE_PARAMETER name: type:test.A BLOCK_BODY @@ -40,7 +40,7 @@ FILE fqName:test fileName:/declarationOrder.kt CONSTRUCTOR visibility:public <> (x:kotlin.String) returnType:test.A VALUE_PARAMETER name:x index:0 type:kotlin.String BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in test.A' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in test.A' PROPERTY name:b visibility:public modality:FINAL [val] FUN name: visibility:public modality:FINAL <> ($this:test.A, $receiver:kotlin.Int) returnType:kotlin.String correspondingProperty: PROPERTY name:b visibility:public modality:FINAL [val] @@ -68,10 +68,10 @@ FILE fqName:test fileName:/declarationOrder.kt CONSTRUCTOR visibility:public <> (x:kotlin.Double) returnType:test.A VALUE_PARAMETER name:x index:0 type:kotlin.Double BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in test.A' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in test.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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/classes/delegatedGenericImplementation.fir.ir.txt b/compiler/testData/ir/irText/classes/delegatedGenericImplementation.fir.ir.txt index 0dfde2e45c2..3f2dfd9d76b 100644 --- a/compiler/testData/ir/irText/classes/delegatedGenericImplementation.fir.ir.txt +++ b/compiler/testData/ir/irText/classes/delegatedGenericImplementation.fir.ir.txt @@ -27,7 +27,7 @@ FILE fqName: fileName:/delegatedGenericImplementation.kt VALUE_PARAMETER name: index:0 type:D of .IBase.? 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -44,7 +44,7 @@ FILE fqName: fileName:/delegatedGenericImplementation.kt CONSTRUCTOR visibility:public <> (i:.IBase.Test1>) returnType:.Test1.Test1> [primary] VALUE_PARAMETER name:i index:0 type:.IBase.Test1> BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test1 modality:FINAL visibility:public superTypes:[.IBase.Test1>]' FUN DELEGATED_MEMBER name:foo visibility:public modality:OPEN ($this:.Test1.Test1>, a:E of .Test1, b:B of .Test1.foo) returnType:kotlin.Unit overridden: @@ -62,7 +62,7 @@ FILE fqName: fileName:/delegatedGenericImplementation.kt b: GET_VAR 'b: B of .Test1.foo declared in .Test1.foo' type=B of .Test1.foo origin=null PROPERTY DELEGATED_MEMBER name:id visibility:public modality:OPEN [val] overridden: - public abstract id: kotlin.collections.Map.IBase, C of .IBase.>? [val] + public abstract id: kotlin.collections.Map.IBase, C of .IBase.>? FUN DELEGATED_MEMBER name: visibility:public modality:OPEN ($this:.Test1.Test1>, $receiver:C of .Test1.) returnType:kotlin.collections.Map.Test1, C of .Test1.>? correspondingProperty: PROPERTY DELEGATED_MEMBER name:id visibility:public modality:OPEN [val] overridden: @@ -79,7 +79,7 @@ FILE fqName: fileName:/delegatedGenericImplementation.kt $receiver: GET_VAR ': C of .Test1. declared in .Test1.' type=C of .Test1. origin=null PROPERTY DELEGATED_MEMBER name:x visibility:public modality:OPEN [var] overridden: - public abstract x: D of .IBase.? [var] + public abstract x: D of .IBase.? FUN DELEGATED_MEMBER name: visibility:public modality:OPEN ($this:.Test1.Test1>, $receiver:kotlin.collections.List.Test1.>) returnType:D of .Test1.? correspondingProperty: PROPERTY DELEGATED_MEMBER name:x visibility:public modality:OPEN [var] overridden: @@ -114,23 +114,23 @@ FILE fqName: fileName:/delegatedGenericImplementation.kt GET_VAR 'i: .IBase.Test1> declared in .Test1.' type=.IBase.Test1> 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 [fake_override,operator] declared in .IBase + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IBase $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 .IBase + public open fun hashCode (): kotlin.Int declared in .IBase $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 .IBase + public open fun toString (): kotlin.String declared in .IBase $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:Test2 modality:FINAL visibility:public superTypes:[.IBase] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Test2 CONSTRUCTOR visibility:public <> (j:.IBase) returnType:.Test2 [primary] VALUE_PARAMETER name:j index:0 type:.IBase BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test2 modality:FINAL visibility:public superTypes:[.IBase]' FUN DELEGATED_MEMBER name:foo visibility:public modality:OPEN ($this:.Test2, a:kotlin.String, b:B of .Test2.foo) returnType:kotlin.Unit overridden: @@ -148,7 +148,7 @@ FILE fqName: fileName:/delegatedGenericImplementation.kt b: GET_VAR 'b: B of .Test2.foo declared in .Test2.foo' type=B of .Test2.foo origin=null PROPERTY DELEGATED_MEMBER name:id visibility:public modality:OPEN [val] overridden: - public abstract id: kotlin.collections.Map.IBase, C of .IBase.>? [val] + public abstract id: kotlin.collections.Map.IBase, C of .IBase.>? FUN DELEGATED_MEMBER name: visibility:public modality:OPEN ($this:.Test2, $receiver:C of .Test2.) returnType:kotlin.collections.Map.Test2.>? correspondingProperty: PROPERTY DELEGATED_MEMBER name:id visibility:public modality:OPEN [val] overridden: @@ -165,7 +165,7 @@ FILE fqName: fileName:/delegatedGenericImplementation.kt $receiver: GET_VAR ': C of .Test2. declared in .Test2.' type=C of .Test2. origin=null PROPERTY DELEGATED_MEMBER name:x visibility:public modality:OPEN [var] overridden: - public abstract x: D of .IBase.? [var] + public abstract x: D of .IBase.? FUN DELEGATED_MEMBER name: visibility:public modality:OPEN ($this:.Test2, $receiver:kotlin.collections.List.Test2.>) returnType:D of .Test2.? correspondingProperty: PROPERTY DELEGATED_MEMBER name:x visibility:public modality:OPEN [var] overridden: @@ -216,14 +216,14 @@ FILE fqName: fileName:/delegatedGenericImplementation.kt value: GET_VAR ': .IBase declared in .Test2.' type=.IBase 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 [fake_override,operator] declared in .IBase + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IBase $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 .IBase + public open fun hashCode (): kotlin.Int declared in .IBase $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 .IBase + public open fun toString (): kotlin.String declared in .IBase $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/classes/delegatedGenericImplementation.ir.txt b/compiler/testData/ir/irText/classes/delegatedGenericImplementation.ir.txt index 9d470a61cb1..a480b184f68 100644 --- a/compiler/testData/ir/irText/classes/delegatedGenericImplementation.ir.txt +++ b/compiler/testData/ir/irText/classes/delegatedGenericImplementation.ir.txt @@ -27,7 +27,7 @@ FILE fqName: fileName:/delegatedGenericImplementation.kt VALUE_PARAMETER name: index:0 type:D of .IBase.? 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -44,14 +44,14 @@ FILE fqName: fileName:/delegatedGenericImplementation.kt CONSTRUCTOR visibility:public <> (i:.IBase.Test1>) returnType:.Test1.Test1> [primary] VALUE_PARAMETER name:i index:0 type:.IBase.Test1> BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test1 modality:FINAL visibility:public superTypes:[.IBase.Test1>]' FIELD DELEGATE name:$$delegate_0 type:.IBase.Test1> visibility:private [final] EXPRESSION_BODY GET_VAR 'i: .IBase.Test1> declared in .Test1.' type=.IBase.Test1> origin=null PROPERTY DELEGATED_MEMBER name:id visibility:public modality:OPEN [val] overridden: - public abstract id: kotlin.collections.Map.IBase, C of .IBase.>? [val] + public abstract id: kotlin.collections.Map.IBase, C of .IBase.>? FUN DELEGATED_MEMBER name: visibility:public modality:OPEN ($this:.Test1.Test1>, $receiver:C of .Test1.) returnType:kotlin.collections.Map.Test1, C of .Test1.>? correspondingProperty: PROPERTY DELEGATED_MEMBER name:id visibility:public modality:OPEN [val] overridden: @@ -68,7 +68,7 @@ FILE fqName: fileName:/delegatedGenericImplementation.kt $receiver: GET_VAR ': C of .Test1. declared in .Test1.' type=C of .Test1. origin=null PROPERTY DELEGATED_MEMBER name:x visibility:public modality:OPEN [var] overridden: - public abstract x: D of .IBase.? [var] + public abstract x: D of .IBase.? FUN DELEGATED_MEMBER name: visibility:public modality:OPEN ($this:.Test1.Test1>, $receiver:kotlin.collections.List.Test1.>) returnType:D of .Test1.? correspondingProperty: PROPERTY DELEGATED_MEMBER name:x visibility:public modality:OPEN [var] overridden: @@ -114,23 +114,23 @@ FILE fqName: fileName:/delegatedGenericImplementation.kt b: GET_VAR 'b: B of .Test1.foo declared in .Test1.foo' type=B of .Test1.foo 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 [fake_override,operator] declared in .IBase + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IBase $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 .IBase + public open fun hashCode (): kotlin.Int declared in .IBase $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 .IBase + public open fun toString (): kotlin.String declared in .IBase $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:Test2 modality:FINAL visibility:public superTypes:[.IBase] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Test2 CONSTRUCTOR visibility:public <> (j:.IBase) returnType:.Test2 [primary] VALUE_PARAMETER name:j index:0 type:.IBase BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test2 modality:FINAL visibility:public superTypes:[.IBase]' PROPERTY name:j visibility:public modality:FINAL [var] FIELD PROPERTY_BACKING_FIELD name:j type:.IBase visibility:private @@ -156,7 +156,7 @@ FILE fqName: fileName:/delegatedGenericImplementation.kt GET_VAR 'j: .IBase declared in .Test2.' type=.IBase origin=null PROPERTY DELEGATED_MEMBER name:id visibility:public modality:OPEN [val] overridden: - public abstract id: kotlin.collections.Map.IBase, C of .IBase.>? [val] + public abstract id: kotlin.collections.Map.IBase, C of .IBase.>? FUN DELEGATED_MEMBER name: visibility:public modality:OPEN ($this:.Test2, $receiver:C of .Test2.) returnType:kotlin.collections.Map.Test2.>? correspondingProperty: PROPERTY DELEGATED_MEMBER name:id visibility:public modality:OPEN [val] overridden: @@ -173,7 +173,7 @@ FILE fqName: fileName:/delegatedGenericImplementation.kt $receiver: GET_VAR ': C of .Test2. declared in .Test2.' type=C of .Test2. origin=null PROPERTY DELEGATED_MEMBER name:x visibility:public modality:OPEN [var] overridden: - public abstract x: D of .IBase.? [var] + public abstract x: D of .IBase.? FUN DELEGATED_MEMBER name: visibility:public modality:OPEN ($this:.Test2, $receiver:kotlin.collections.List.Test2.>) returnType:D of .Test2.? correspondingProperty: PROPERTY DELEGATED_MEMBER name:x visibility:public modality:OPEN [var] overridden: @@ -219,14 +219,14 @@ FILE fqName: fileName:/delegatedGenericImplementation.kt b: GET_VAR 'b: B of .Test2.foo declared in .Test2.foo' type=B of .Test2.foo 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 [fake_override,operator] declared in .IBase + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IBase $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 .IBase + public open fun hashCode (): kotlin.Int declared in .IBase $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 .IBase + public open fun toString (): kotlin.String declared in .IBase $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/classes/delegatedImplementation.fir.ir.txt b/compiler/testData/ir/irText/classes/delegatedImplementation.fir.ir.txt index 0e840c525f0..261eaca2b60 100644 --- a/compiler/testData/ir/irText/classes/delegatedImplementation.fir.ir.txt +++ b/compiler/testData/ir/irText/classes/delegatedImplementation.fir.ir.txt @@ -12,7 +12,7 @@ FILE fqName: fileName:/delegatedImplementation.kt $receiver: VALUE_PARAMETER name: type:kotlin.String 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -27,7 +27,7 @@ FILE fqName: fileName:/delegatedImplementation.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.BaseImpl CONSTRUCTOR visibility:private <> () returnType:.BaseImpl [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:BaseImpl modality:FINAL visibility:public superTypes:[.IBase]' FUN name:foo visibility:public modality:OPEN <> ($this:.BaseImpl, x:kotlin.Int, s:kotlin.String) returnType:kotlin.Unit overridden: @@ -51,16 +51,16 @@ FILE fqName: fileName:/delegatedImplementation.kt 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 [fake_override,operator] declared in .IBase + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IBase $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 .IBase + public open fun hashCode (): kotlin.Int declared in .IBase $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 .IBase + public open fun toString (): kotlin.String declared in .IBase $this: VALUE_PARAMETER name: type:kotlin.Any CLASS INTERFACE name:IOther modality:ABSTRACT visibility:public superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.IOther @@ -93,7 +93,7 @@ FILE fqName: fileName:/delegatedImplementation.kt VALUE_PARAMETER name: index:0 type:kotlin.Int 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -114,11 +114,11 @@ FILE fqName: fileName:/delegatedImplementation.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.otherImpl. CONSTRUCTOR visibility:public <> () returnType:.otherImpl. [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name: modality:FINAL visibility:local superTypes:[.IOther]' PROPERTY name:x visibility:public modality:OPEN [val] overridden: - public abstract x: kotlin.String [val] + public abstract x: kotlin.String FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.String visibility:private [final] EXPRESSION_BODY GET_VAR 'x0: kotlin.String declared in .otherImpl' type=kotlin.String origin=null @@ -133,7 +133,7 @@ FILE fqName: fileName:/delegatedImplementation.kt receiver: GET_VAR ': .otherImpl. declared in .otherImpl..' type=.otherImpl. origin=null PROPERTY name:y visibility:public modality:OPEN [var] overridden: - public abstract y: kotlin.Int [var] + public abstract y: kotlin.Int FIELD PROPERTY_BACKING_FIELD name:y type:kotlin.Int visibility:private EXPRESSION_BODY GET_VAR 'y0: kotlin.Int declared in .otherImpl' type=kotlin.Int origin=null @@ -158,7 +158,7 @@ FILE fqName: fileName:/delegatedImplementation.kt value: GET_VAR ': kotlin.Int declared in .otherImpl..' type=kotlin.Int origin=null PROPERTY name:z1 visibility:public modality:OPEN [val] overridden: - public abstract z1: kotlin.Int [val] + public abstract z1: kotlin.Int FUN name: visibility:public modality:OPEN <> ($this:.otherImpl., $receiver:kotlin.Byte) returnType:kotlin.Int correspondingProperty: PROPERTY name:z1 visibility:public modality:OPEN [val] overridden: @@ -170,7 +170,7 @@ FILE fqName: fileName:/delegatedImplementation.kt CONST Int type=kotlin.Int value=1 PROPERTY name:z2 visibility:public modality:OPEN [var] overridden: - public abstract z2: kotlin.Int [var] + public abstract z2: kotlin.Int FUN name: visibility:public modality:OPEN <> ($this:.otherImpl., $receiver:kotlin.Byte) returnType:kotlin.Int correspondingProperty: PROPERTY name:z2 visibility:public modality:OPEN [var] overridden: @@ -190,23 +190,23 @@ FILE fqName: fileName:/delegatedImplementation.kt 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 [fake_override,operator] declared in .IOther + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IOther $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 .IOther + public open fun hashCode (): kotlin.Int declared in .IOther $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 .IOther + public open fun toString (): kotlin.String declared in .IOther $this: VALUE_PARAMETER name: type:kotlin.Any - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .otherImpl.' type=.otherImpl. origin=OBJECT_LITERAL + CONSTRUCTOR_CALL 'public constructor () declared in .otherImpl.' type=.otherImpl. origin=OBJECT_LITERAL CLASS CLASS name:Test1 modality:FINAL visibility:public superTypes:[.IBase] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Test1 CONSTRUCTOR visibility:public <> () returnType:.Test1 [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test1 modality:FINAL visibility:public superTypes:[.IBase]' FUN DELEGATED_MEMBER name:foo visibility:public modality:OPEN <> ($this:.Test1, x:kotlin.Int, s:kotlin.String) returnType:kotlin.Unit overridden: @@ -244,22 +244,22 @@ FILE fqName: fileName:/delegatedImplementation.kt GET_OBJECT 'CLASS OBJECT name:BaseImpl modality:FINAL visibility:public superTypes:[.IBase]' type=.BaseImpl 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 .IBase + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IBase $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 .IBase + public open fun hashCode (): kotlin.Int declared in .IBase $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 .IBase + public open fun toString (): kotlin.String declared in .IBase $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:Test2 modality:FINAL visibility:public superTypes:[.IBase; .IOther] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Test2 CONSTRUCTOR visibility:public <> () returnType:.Test2 [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test2 modality:FINAL visibility:public superTypes:[.IBase; .IOther]' FUN DELEGATED_MEMBER name:foo visibility:public modality:OPEN <> ($this:.Test2, x:kotlin.Int, s:kotlin.String) returnType:kotlin.Unit overridden: @@ -297,7 +297,7 @@ FILE fqName: fileName:/delegatedImplementation.kt GET_OBJECT 'CLASS OBJECT name:BaseImpl modality:FINAL visibility:public superTypes:[.IBase]' type=.BaseImpl PROPERTY DELEGATED_MEMBER name:x visibility:public modality:OPEN [val] overridden: - public abstract x: kotlin.String [val] + public abstract x: kotlin.String FUN DELEGATED_MEMBER name: visibility:public modality:OPEN <> ($this:.Test2) returnType:kotlin.String correspondingProperty: PROPERTY DELEGATED_MEMBER name:x visibility:public modality:OPEN [val] overridden: @@ -310,7 +310,7 @@ FILE fqName: fileName:/delegatedImplementation.kt receiver: GET_VAR ': .Test2 declared in .Test2.' type=.Test2 origin=null PROPERTY DELEGATED_MEMBER name:y visibility:public modality:OPEN [var] overridden: - public abstract y: kotlin.Int [var] + public abstract y: kotlin.Int FUN DELEGATED_MEMBER name: visibility:public modality:OPEN <> ($this:.Test2) returnType:kotlin.Int correspondingProperty: PROPERTY DELEGATED_MEMBER name:y visibility:public modality:OPEN [var] overridden: @@ -334,7 +334,7 @@ FILE fqName: fileName:/delegatedImplementation.kt : GET_VAR ': kotlin.Int declared in .Test2.' type=kotlin.Int origin=null PROPERTY DELEGATED_MEMBER name:z1 visibility:public modality:OPEN [val] overridden: - public abstract z1: kotlin.Int [val] + public abstract z1: kotlin.Int FUN DELEGATED_MEMBER name: visibility:public modality:OPEN <> ($this:.Test2, $receiver:kotlin.Byte) returnType:kotlin.Int correspondingProperty: PROPERTY DELEGATED_MEMBER name:z1 visibility:public modality:OPEN [val] overridden: @@ -349,7 +349,7 @@ FILE fqName: fileName:/delegatedImplementation.kt $receiver: GET_VAR ': kotlin.Byte declared in .Test2.' type=kotlin.Byte origin=null PROPERTY DELEGATED_MEMBER name:z2 visibility:public modality:OPEN [var] overridden: - public abstract z2: kotlin.Int [var] + public abstract z2: kotlin.Int FUN DELEGATED_MEMBER name: visibility:public modality:OPEN <> ($this:.Test2, $receiver:kotlin.Byte) returnType:kotlin.Int correspondingProperty: PROPERTY DELEGATED_MEMBER name:z2 visibility:public modality:OPEN [var] overridden: @@ -382,17 +382,17 @@ FILE fqName: fileName:/delegatedImplementation.kt y0: CONST Int type=kotlin.Int value=42 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 .IBase - public open fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .IOther + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IBase + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IOther $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 .IBase - public open fun hashCode (): kotlin.Int [fake_override] declared in .IOther + public open fun hashCode (): kotlin.Int declared in .IBase + public open fun hashCode (): kotlin.Int declared in .IOther $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 .IBase - public open fun toString (): kotlin.String [fake_override] declared in .IOther + public open fun toString (): kotlin.String declared in .IBase + public open fun toString (): kotlin.String declared in .IOther $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/classes/delegatedImplementation.ir.txt b/compiler/testData/ir/irText/classes/delegatedImplementation.ir.txt index ef438bf81a5..8a813772f1d 100644 --- a/compiler/testData/ir/irText/classes/delegatedImplementation.ir.txt +++ b/compiler/testData/ir/irText/classes/delegatedImplementation.ir.txt @@ -12,7 +12,7 @@ FILE fqName: fileName:/delegatedImplementation.kt $receiver: VALUE_PARAMETER name: type:kotlin.String 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -27,7 +27,7 @@ FILE fqName: fileName:/delegatedImplementation.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.BaseImpl CONSTRUCTOR visibility:private <> () returnType:.BaseImpl [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:BaseImpl modality:FINAL visibility:public superTypes:[.IBase]' FUN name:foo visibility:public modality:OPEN <> ($this:.BaseImpl, x:kotlin.Int, s:kotlin.String) returnType:kotlin.Unit overridden: @@ -51,16 +51,16 @@ FILE fqName: fileName:/delegatedImplementation.kt 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 [fake_override,operator] declared in .IBase + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IBase $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 .IBase + public open fun hashCode (): kotlin.Int declared in .IBase $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 .IBase + public open fun toString (): kotlin.String declared in .IBase $this: VALUE_PARAMETER name: type:kotlin.Any CLASS INTERFACE name:IOther modality:ABSTRACT visibility:public superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.IOther @@ -93,7 +93,7 @@ FILE fqName: fileName:/delegatedImplementation.kt VALUE_PARAMETER name: index:0 type:kotlin.Int 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -114,11 +114,11 @@ FILE fqName: fileName:/delegatedImplementation.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.otherImpl. CONSTRUCTOR visibility:public <> () returnType:.otherImpl. [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name: modality:FINAL visibility:local superTypes:[.IOther]' PROPERTY name:x visibility:public modality:OPEN [val] overridden: - public abstract x: kotlin.String [val] + public abstract x: kotlin.String FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.String visibility:private [final] EXPRESSION_BODY GET_VAR 'x0: kotlin.String declared in .otherImpl' type=kotlin.String origin=null @@ -133,7 +133,7 @@ FILE fqName: fileName:/delegatedImplementation.kt receiver: GET_VAR ': .otherImpl. declared in .otherImpl..' type=.otherImpl. origin=null PROPERTY name:y visibility:public modality:OPEN [var] overridden: - public abstract y: kotlin.Int [var] + public abstract y: kotlin.Int FIELD PROPERTY_BACKING_FIELD name:y type:kotlin.Int visibility:private EXPRESSION_BODY GET_VAR 'y0: kotlin.Int declared in .otherImpl' type=kotlin.Int origin=null @@ -158,7 +158,7 @@ FILE fqName: fileName:/delegatedImplementation.kt value: GET_VAR ': kotlin.Int declared in .otherImpl..' type=kotlin.Int origin=null PROPERTY name:z1 visibility:public modality:OPEN [val] overridden: - public abstract z1: kotlin.Int [val] + public abstract z1: kotlin.Int FUN name: visibility:public modality:OPEN <> ($this:.otherImpl., $receiver:kotlin.Byte) returnType:kotlin.Int correspondingProperty: PROPERTY name:z1 visibility:public modality:OPEN [val] overridden: @@ -170,7 +170,7 @@ FILE fqName: fileName:/delegatedImplementation.kt CONST Int type=kotlin.Int value=1 PROPERTY name:z2 visibility:public modality:OPEN [var] overridden: - public abstract z2: kotlin.Int [var] + public abstract z2: kotlin.Int FUN name: visibility:public modality:OPEN <> ($this:.otherImpl., $receiver:kotlin.Byte) returnType:kotlin.Int correspondingProperty: PROPERTY name:z2 visibility:public modality:OPEN [var] overridden: @@ -190,23 +190,23 @@ FILE fqName: fileName:/delegatedImplementation.kt 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 [fake_override,operator] declared in .IOther + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IOther $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 .IOther + public open fun hashCode (): kotlin.Int declared in .IOther $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 .IOther + public open fun toString (): kotlin.String declared in .IOther $this: VALUE_PARAMETER name: type:kotlin.Any - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .otherImpl.' type=.otherImpl. origin=OBJECT_LITERAL + CONSTRUCTOR_CALL 'public constructor () declared in .otherImpl.' type=.otherImpl. origin=OBJECT_LITERAL CLASS CLASS name:Test1 modality:FINAL visibility:public superTypes:[.IBase] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Test1 CONSTRUCTOR visibility:public <> () returnType:.Test1 [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test1 modality:FINAL visibility:public superTypes:[.IBase]' FIELD DELEGATE name:$$delegate_0 type:.BaseImpl visibility:private [final] EXPRESSION_BODY @@ -244,22 +244,22 @@ FILE fqName: fileName:/delegatedImplementation.kt $receiver: GET_VAR ': kotlin.String declared in .Test1.qux' type=kotlin.String 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 [fake_override,operator] declared in .IBase + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IBase $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 .IBase + public open fun hashCode (): kotlin.Int declared in .IBase $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 .IBase + public open fun toString (): kotlin.String declared in .IBase $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:Test2 modality:FINAL visibility:public superTypes:[.IBase; .IOther] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Test2 CONSTRUCTOR visibility:public <> () returnType:.Test2 [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test2 modality:FINAL visibility:public superTypes:[.IBase; .IOther]' FIELD DELEGATE name:$$delegate_0 type:.BaseImpl visibility:private [final] EXPRESSION_BODY @@ -302,7 +302,7 @@ FILE fqName: fileName:/delegatedImplementation.kt y0: CONST Int type=kotlin.Int value=42 PROPERTY DELEGATED_MEMBER name:x visibility:public modality:OPEN [val] overridden: - public abstract x: kotlin.String [val] + public abstract x: kotlin.String FUN DELEGATED_MEMBER name: visibility:public modality:OPEN <> ($this:.Test2) returnType:kotlin.String correspondingProperty: PROPERTY DELEGATED_MEMBER name:x visibility:public modality:OPEN [val] overridden: @@ -315,7 +315,7 @@ FILE fqName: fileName:/delegatedImplementation.kt receiver: GET_VAR ': .Test2 declared in .Test2.' type=.Test2 origin=null PROPERTY DELEGATED_MEMBER name:y visibility:public modality:OPEN [var] overridden: - public abstract y: kotlin.Int [var] + public abstract y: kotlin.Int FUN DELEGATED_MEMBER name: visibility:public modality:OPEN <> ($this:.Test2) returnType:kotlin.Int correspondingProperty: PROPERTY DELEGATED_MEMBER name:y visibility:public modality:OPEN [var] overridden: @@ -339,7 +339,7 @@ FILE fqName: fileName:/delegatedImplementation.kt : GET_VAR ': kotlin.Int declared in .Test2.' type=kotlin.Int origin=null PROPERTY DELEGATED_MEMBER name:z1 visibility:public modality:OPEN [val] overridden: - public abstract z1: kotlin.Int [val] + public abstract z1: kotlin.Int FUN DELEGATED_MEMBER name: visibility:public modality:OPEN <> ($this:.Test2, $receiver:kotlin.Byte) returnType:kotlin.Int correspondingProperty: PROPERTY DELEGATED_MEMBER name:z1 visibility:public modality:OPEN [val] overridden: @@ -354,7 +354,7 @@ FILE fqName: fileName:/delegatedImplementation.kt $receiver: GET_VAR ': kotlin.Byte declared in .Test2.' type=kotlin.Byte origin=null PROPERTY DELEGATED_MEMBER name:z2 visibility:public modality:OPEN [var] overridden: - public abstract z2: kotlin.Int [var] + public abstract z2: kotlin.Int FUN DELEGATED_MEMBER name: visibility:public modality:OPEN <> ($this:.Test2, $receiver:kotlin.Byte) returnType:kotlin.Int correspondingProperty: PROPERTY DELEGATED_MEMBER name:z2 visibility:public modality:OPEN [var] overridden: @@ -382,17 +382,17 @@ FILE fqName: fileName:/delegatedImplementation.kt : GET_VAR ': kotlin.Int declared in .Test2.' type=kotlin.Int 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 [fake_override,operator] declared in .IBase - public open fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .IOther + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IBase + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IOther $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 .IBase - public open fun hashCode (): kotlin.Int [fake_override] declared in .IOther + public open fun hashCode (): kotlin.Int declared in .IBase + public open fun hashCode (): kotlin.Int declared in .IOther $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 .IBase - public open fun toString (): kotlin.String [fake_override] declared in .IOther + public open fun toString (): kotlin.String declared in .IBase + public open fun toString (): kotlin.String declared in .IOther $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/classes/delegatedImplementationOfJavaInterface.fir.ir.txt b/compiler/testData/ir/irText/classes/delegatedImplementationOfJavaInterface.fir.ir.txt index ac411dcade6..e2a500025cf 100644 --- a/compiler/testData/ir/irText/classes/delegatedImplementationOfJavaInterface.fir.ir.txt +++ b/compiler/testData/ir/irText/classes/delegatedImplementationOfJavaInterface.fir.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/delegatedImplementationOfJavaInterface.kt CONSTRUCTOR visibility:public <> (j:.J) returnType:.Test [primary] VALUE_PARAMETER name:j index:0 type:.J BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test modality:FINAL visibility:public superTypes:[.J]' FUN DELEGATED_MEMBER name:takeNotNull visibility:public modality:OPEN <> ($this:.Test, x:@[EnhancedNullability] kotlin.String) returnType:kotlin.Unit overridden: @@ -85,14 +85,14 @@ FILE fqName: fileName:/delegatedImplementationOfJavaInterface.kt receiver: GET_VAR ': .Test declared in .Test.' type=.Test 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 [fake_override,operator] declared in .J + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .J $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 .J + public open fun hashCode (): kotlin.Int declared in .J $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 .J + public open fun toString (): kotlin.String declared in .J $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/classes/delegatedImplementationOfJavaInterface.ir.txt b/compiler/testData/ir/irText/classes/delegatedImplementationOfJavaInterface.ir.txt index db37084d385..a420251c4e1 100644 --- a/compiler/testData/ir/irText/classes/delegatedImplementationOfJavaInterface.ir.txt +++ b/compiler/testData/ir/irText/classes/delegatedImplementationOfJavaInterface.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/delegatedImplementationOfJavaInterface.kt CONSTRUCTOR visibility:public <> (j:.J) returnType:.Test [primary] VALUE_PARAMETER name:j index:0 type:.J BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test modality:FINAL visibility:public superTypes:[.J]' PROPERTY name:j visibility:private modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:j type:.J visibility:private [final] @@ -84,14 +84,14 @@ FILE fqName: fileName:/delegatedImplementationOfJavaInterface.kt x: GET_VAR 'x: @[EnhancedNullability] kotlin.String? declared in .Test.takeNullable' type=@[EnhancedNullability] kotlin.String? 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 [fake_override,operator] declared in .J + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .J $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 .J + public open fun hashCode (): kotlin.Int declared in .J $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 .J + public open fun toString (): kotlin.String declared in .J $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/classes/delegatedImplementationWithExplicitOverride.fir.ir.txt b/compiler/testData/ir/irText/classes/delegatedImplementationWithExplicitOverride.fir.ir.txt index d2a1122d6ca..34e8d8d2221 100644 --- a/compiler/testData/ir/irText/classes/delegatedImplementationWithExplicitOverride.fir.ir.txt +++ b/compiler/testData/ir/irText/classes/delegatedImplementationWithExplicitOverride.fir.ir.txt @@ -7,7 +7,7 @@ FILE fqName: fileName:/delegatedImplementationWithExplicitOverride.kt $this: VALUE_PARAMETER name: type:.IFooBar 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -22,7 +22,7 @@ FILE fqName: fileName:/delegatedImplementationWithExplicitOverride.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.FooBarImpl CONSTRUCTOR visibility:private <> () returnType:.FooBarImpl [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:FooBarImpl modality:FINAL visibility:public superTypes:[.IFooBar]' FUN name:foo visibility:public modality:OPEN <> ($this:.FooBarImpl) returnType:kotlin.Unit overridden: @@ -36,22 +36,22 @@ FILE fqName: fileName:/delegatedImplementationWithExplicitOverride.kt 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 [fake_override,operator] declared in .IFooBar + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IFooBar $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 .IFooBar + public open fun hashCode (): kotlin.Int declared in .IFooBar $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 .IFooBar + public open fun toString (): kotlin.String declared in .IFooBar $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:C modality:FINAL visibility:public superTypes:[.IFooBar] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.C CONSTRUCTOR visibility:public <> () returnType:.C [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C modality:FINAL visibility:public superTypes:[.IFooBar]' FUN DELEGATED_MEMBER name:foo visibility:public modality:OPEN <> ($this:.C) returnType:kotlin.Unit overridden: @@ -71,14 +71,14 @@ FILE fqName: fileName:/delegatedImplementationWithExplicitOverride.kt 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 [fake_override,operator] declared in .IFooBar + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IFooBar $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 .IFooBar + public open fun hashCode (): kotlin.Int declared in .IFooBar $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 .IFooBar + public open fun toString (): kotlin.String declared in .IFooBar $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/classes/delegatedImplementationWithExplicitOverride.ir.txt b/compiler/testData/ir/irText/classes/delegatedImplementationWithExplicitOverride.ir.txt index bef1b1f7c5c..2215d6786ae 100644 --- a/compiler/testData/ir/irText/classes/delegatedImplementationWithExplicitOverride.ir.txt +++ b/compiler/testData/ir/irText/classes/delegatedImplementationWithExplicitOverride.ir.txt @@ -7,7 +7,7 @@ FILE fqName: fileName:/delegatedImplementationWithExplicitOverride.kt $this: VALUE_PARAMETER name: type:.IFooBar 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -22,7 +22,7 @@ FILE fqName: fileName:/delegatedImplementationWithExplicitOverride.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.FooBarImpl CONSTRUCTOR visibility:private <> () returnType:.FooBarImpl [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:FooBarImpl modality:FINAL visibility:public superTypes:[.IFooBar]' FUN name:foo visibility:public modality:OPEN <> ($this:.FooBarImpl) returnType:kotlin.Unit overridden: @@ -36,22 +36,22 @@ FILE fqName: fileName:/delegatedImplementationWithExplicitOverride.kt 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 [fake_override,operator] declared in .IFooBar + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IFooBar $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 .IFooBar + public open fun hashCode (): kotlin.Int declared in .IFooBar $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 .IFooBar + public open fun toString (): kotlin.String declared in .IFooBar $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:C modality:FINAL visibility:public superTypes:[.IFooBar] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.C CONSTRUCTOR visibility:public <> () returnType:.C [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C modality:FINAL visibility:public superTypes:[.IFooBar]' FIELD DELEGATE name:$$delegate_0 type:.FooBarImpl visibility:private [final] EXPRESSION_BODY @@ -71,14 +71,14 @@ FILE fqName: fileName:/delegatedImplementationWithExplicitOverride.kt 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 [fake_override,operator] declared in .IFooBar + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IFooBar $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 .IFooBar + public open fun hashCode (): kotlin.Int declared in .IFooBar $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 .IFooBar + public open fun toString (): kotlin.String declared in .IFooBar $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/classes/delegatingConstructorCallToTypeAliasConstructor.fir.ir.txt b/compiler/testData/ir/irText/classes/delegatingConstructorCallToTypeAliasConstructor.fir.ir.txt index 33f11f3c952..69d9b4f1cb4 100644 --- a/compiler/testData/ir/irText/classes/delegatingConstructorCallToTypeAliasConstructor.fir.ir.txt +++ b/compiler/testData/ir/irText/classes/delegatingConstructorCallToTypeAliasConstructor.fir.ir.txt @@ -8,7 +8,7 @@ FILE fqName: fileName:/delegatingConstructorCallToTypeAliasConstructor.kt CONSTRUCTOR visibility:public <> (value:T of .Cell) returnType:.Cell.Cell> [primary] VALUE_PARAMETER name:value index:0 type:T of .Cell BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Cell modality:OPEN visibility:public superTypes:[kotlin.Any]' PROPERTY name:value visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:value type:T of .Cell visibility:private [final] @@ -23,7 +23,7 @@ FILE fqName: fileName:/delegatingConstructorCallToTypeAliasConstructor.kt receiver: GET_VAR ': .Cell.Cell> declared in .Cell.' type=.Cell.Cell> 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -38,13 +38,13 @@ FILE fqName: fileName:/delegatingConstructorCallToTypeAliasConstructor.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.C1 CONSTRUCTOR visibility:public <> () returnType:.C1 [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor (value: T of .Cell) [primary] declared in .Cell' + DELEGATING_CONSTRUCTOR_CALL 'public constructor (value: T of .Cell) declared in .Cell' : kotlin.String value: CONST String type=kotlin.String value="O" INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C1 modality:FINAL visibility:public superTypes:[.Cell]' PROPERTY FAKE_OVERRIDE name:value visibility:public modality:FINAL [fake_override,val] overridden: - public final value: T of .Cell [val] + public final value: T of .Cell FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.Cell.Cell>) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:value visibility:public modality:FINAL [fake_override,val] overridden: @@ -52,28 +52,28 @@ FILE fqName: fileName:/delegatingConstructorCallToTypeAliasConstructor.kt $this: VALUE_PARAMETER name: type:.Cell.Cell> 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 .Cell + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Cell $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 .Cell + public open fun hashCode (): kotlin.Int declared in .Cell $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 .Cell + public open fun toString (): kotlin.String declared in .Cell $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:C2 modality:FINAL visibility:public superTypes:[.Cell] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.C2 CONSTRUCTOR visibility:public <> () returnType:.C2 [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor (value: T of .Cell) [primary] declared in .Cell' + DELEGATING_CONSTRUCTOR_CALL 'public constructor (value: T of .Cell) declared in .Cell' : kotlin.String value: CONST String type=kotlin.String value="K" INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C2 modality:FINAL visibility:public superTypes:[.Cell]' PROPERTY FAKE_OVERRIDE name:value visibility:public modality:FINAL [fake_override,val] overridden: - public final value: T of .Cell [val] + public final value: T of .Cell FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.Cell.Cell>) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:value visibility:public modality:FINAL [fake_override,val] overridden: @@ -81,14 +81,14 @@ FILE fqName: fileName:/delegatingConstructorCallToTypeAliasConstructor.kt $this: VALUE_PARAMETER name: type:.Cell.Cell> 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 .Cell + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Cell $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 .Cell + public open fun hashCode (): kotlin.Int declared in .Cell $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 .Cell + public open fun toString (): kotlin.String declared in .Cell $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/classes/delegatingConstructorCallToTypeAliasConstructor.ir.txt b/compiler/testData/ir/irText/classes/delegatingConstructorCallToTypeAliasConstructor.ir.txt index 462dd9baccd..0e34e4b5c2b 100644 --- a/compiler/testData/ir/irText/classes/delegatingConstructorCallToTypeAliasConstructor.ir.txt +++ b/compiler/testData/ir/irText/classes/delegatingConstructorCallToTypeAliasConstructor.ir.txt @@ -5,7 +5,7 @@ FILE fqName: fileName:/delegatingConstructorCallToTypeAliasConstructor.kt CONSTRUCTOR visibility:public <> (value:T of .Cell) returnType:.Cell.Cell> [primary] VALUE_PARAMETER name:value index:0 type:T of .Cell BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Cell modality:OPEN visibility:public superTypes:[kotlin.Any]' PROPERTY name:value visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:value type:T of .Cell visibility:private [final] @@ -20,7 +20,7 @@ FILE fqName: fileName:/delegatingConstructorCallToTypeAliasConstructor.kt receiver: GET_VAR ': .Cell.Cell> declared in .Cell.' type=.Cell.Cell> 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -38,13 +38,13 @@ FILE fqName: fileName:/delegatingConstructorCallToTypeAliasConstructor.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.C1 CONSTRUCTOR visibility:public <> () returnType:.C1 [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor (value: T of .Cell) [primary] declared in .Cell' + DELEGATING_CONSTRUCTOR_CALL 'public constructor (value: T of .Cell) declared in .Cell' : kotlin.String value: CONST String type=kotlin.String value="O" INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C1 modality:FINAL visibility:public superTypes:[.Cell{ .CT }]' PROPERTY FAKE_OVERRIDE name:value visibility:public modality:FINAL [fake_override,val] overridden: - public final value: T of .Cell [val] + public final value: T of .Cell FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.Cell) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:value visibility:public modality:FINAL [fake_override,val] overridden: @@ -52,28 +52,28 @@ FILE fqName: fileName:/delegatingConstructorCallToTypeAliasConstructor.kt $this: VALUE_PARAMETER name: type:.Cell 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 .Cell + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Cell $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 .Cell + public open fun hashCode (): kotlin.Int declared in .Cell $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 .Cell + public open fun toString (): kotlin.String declared in .Cell $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:C2 modality:FINAL visibility:public superTypes:[.Cell{ .CStr }] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.C2 CONSTRUCTOR visibility:public <> () returnType:.C2 [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor (value: T of .Cell) [primary] declared in .Cell' + DELEGATING_CONSTRUCTOR_CALL 'public constructor (value: T of .Cell) declared in .Cell' : kotlin.String value: CONST String type=kotlin.String value="K" INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C2 modality:FINAL visibility:public superTypes:[.Cell{ .CStr }]' PROPERTY FAKE_OVERRIDE name:value visibility:public modality:FINAL [fake_override,val] overridden: - public final value: T of .Cell [val] + public final value: T of .Cell FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.Cell) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:value visibility:public modality:FINAL [fake_override,val] overridden: @@ -81,14 +81,14 @@ FILE fqName: fileName:/delegatingConstructorCallToTypeAliasConstructor.kt $this: VALUE_PARAMETER name: type:.Cell 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 .Cell + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Cell $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 .Cell + public open fun hashCode (): kotlin.Int declared in .Cell $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 .Cell + public open fun toString (): kotlin.String declared in .Cell $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/classes/delegatingConstructorCallsInSecondaryConstructors.ir.txt b/compiler/testData/ir/irText/classes/delegatingConstructorCallsInSecondaryConstructors.ir.txt index b94de69d503..16f075c6ed1 100644 --- a/compiler/testData/ir/irText/classes/delegatingConstructorCallsInSecondaryConstructors.ir.txt +++ b/compiler/testData/ir/irText/classes/delegatingConstructorCallsInSecondaryConstructors.ir.txt @@ -3,11 +3,11 @@ FILE fqName: fileName:/delegatingConstructorCallsInSecondaryConstructors.k $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Base CONSTRUCTOR visibility:public <> () returnType:.Base [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Base modality:OPEN 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -22,12 +22,12 @@ FILE fqName: fileName:/delegatingConstructorCallsInSecondaryConstructors.k $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Test CONSTRUCTOR visibility:public <> () returnType:.Test BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .Base' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .Base' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test modality:FINAL visibility:public superTypes:[.Base]' CONSTRUCTOR visibility:public <> (xx:kotlin.Int) returnType:.Test VALUE_PARAMETER name:xx index:0 type:kotlin.Int BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .Base' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .Base' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test modality:FINAL visibility:public superTypes:[.Base]' CONSTRUCTOR visibility:public <> (xx:kotlin.Short) returnType:.Test VALUE_PARAMETER name:xx index:0 type:kotlin.Short @@ -35,14 +35,14 @@ FILE fqName: fileName:/delegatingConstructorCallsInSecondaryConstructors.k DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .Test' 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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 + public open fun hashCode (): kotlin.Int 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 + public open fun toString (): kotlin.String declared in .Base $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/classes/enum.fir.ir.txt b/compiler/testData/ir/irText/classes/enum.fir.ir.txt index 51b523f152d..f395e1fb692 100644 --- a/compiler/testData/ir/irText/classes/enum.fir.ir.txt +++ b/compiler/testData/ir/irText/classes/enum.fir.ir.txt @@ -3,15 +3,15 @@ FILE fqName: fileName:/enum.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.TestEnum1 CONSTRUCTOR visibility:private <> () returnType:.TestEnum1 [primary] BLOCK_BODY - ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) [primary] declared in kotlin.Enum' + ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) declared in kotlin.Enum' : .TestEnum1 INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_CLASS name:TestEnum1 modality:FINAL visibility:public superTypes:[kotlin.Enum<.TestEnum1>]' ENUM_ENTRY name:TEST1 init: EXPRESSION_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor () [primary] declared in .TestEnum1' + ENUM_CONSTRUCTOR_CALL 'private constructor () declared in .TestEnum1' ENUM_ENTRY name:TEST2 init: EXPRESSION_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor () [primary] declared in .TestEnum1' + ENUM_CONSTRUCTOR_CALL 'private constructor () declared in .TestEnum1' FUN ENUM_CLASS_SPECIAL_MEMBER name:values visibility:public modality:FINAL <> () returnType:kotlin.Array<.TestEnum1> SYNTHETIC_BODY kind=ENUM_VALUES FUN ENUM_CLASS_SPECIAL_MEMBER name:valueOf visibility:public modality:FINAL <> (value:kotlin.String) returnType:.TestEnum1 @@ -27,12 +27,12 @@ FILE fqName: fileName:/enum.kt $this: VALUE_PARAMETER name: type:kotlin.Enum FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum, other:.TestEnum1) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: E of kotlin.Enum): kotlin.Int [operator] declared in kotlin.Enum + public final fun compareTo (other: E of kotlin.Enum): kotlin.Int declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:.TestEnum1 FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Enum + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:hashCode visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] @@ -47,7 +47,7 @@ FILE fqName: fileName:/enum.kt annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: @@ -55,7 +55,7 @@ FILE fqName: fileName:/enum.kt $this: VALUE_PARAMETER name: type:kotlin.Enum PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: @@ -74,7 +74,7 @@ FILE fqName: fileName:/enum.kt CONSTRUCTOR visibility:private <> (x:kotlin.Int) returnType:.TestEnum2 [primary] VALUE_PARAMETER name:x index:0 type:kotlin.Int BLOCK_BODY - ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) [primary] declared in kotlin.Enum' + ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) declared in kotlin.Enum' : .TestEnum2 INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_CLASS name:TestEnum2 modality:FINAL visibility:public superTypes:[kotlin.Enum<.TestEnum2>]' PROPERTY name:x visibility:public modality:FINAL [val] @@ -90,15 +90,15 @@ FILE fqName: fileName:/enum.kt receiver: GET_VAR ': .TestEnum2 declared in .TestEnum2.' type=.TestEnum2 origin=null ENUM_ENTRY name:TEST1 init: EXPRESSION_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor (x: kotlin.Int) [primary] declared in .TestEnum2' + ENUM_CONSTRUCTOR_CALL 'private constructor (x: kotlin.Int) declared in .TestEnum2' x: CONST Int type=kotlin.Int value=1 ENUM_ENTRY name:TEST2 init: EXPRESSION_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor (x: kotlin.Int) [primary] declared in .TestEnum2' + ENUM_CONSTRUCTOR_CALL 'private constructor (x: kotlin.Int) declared in .TestEnum2' x: CONST Int type=kotlin.Int value=2 ENUM_ENTRY name:TEST3 init: EXPRESSION_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor (x: kotlin.Int) [primary] declared in .TestEnum2' + ENUM_CONSTRUCTOR_CALL 'private constructor (x: kotlin.Int) declared in .TestEnum2' x: CONST Int type=kotlin.Int value=3 FUN ENUM_CLASS_SPECIAL_MEMBER name:values visibility:public modality:FINAL <> () returnType:kotlin.Array<.TestEnum2> SYNTHETIC_BODY kind=ENUM_VALUES @@ -115,12 +115,12 @@ FILE fqName: fileName:/enum.kt $this: VALUE_PARAMETER name: type:kotlin.Enum FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum, other:.TestEnum2) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: E of kotlin.Enum): kotlin.Int [operator] declared in kotlin.Enum + public final fun compareTo (other: E of kotlin.Enum): kotlin.Int declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:.TestEnum2 FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Enum + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:hashCode visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] @@ -135,7 +135,7 @@ FILE fqName: fileName:/enum.kt annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: @@ -143,7 +143,7 @@ FILE fqName: fileName:/enum.kt $this: VALUE_PARAMETER name: type:kotlin.Enum PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: @@ -161,72 +161,72 @@ FILE fqName: fileName:/enum.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.TestEnum3 CONSTRUCTOR visibility:private <> () returnType:.TestEnum3 [primary] BLOCK_BODY - ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) [primary] declared in kotlin.Enum' + ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) declared in kotlin.Enum' : .TestEnum3 INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_CLASS name:TestEnum3 modality:ABSTRACT visibility:public superTypes:[kotlin.Enum<.TestEnum3>]' ENUM_ENTRY name:TEST init: EXPRESSION_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor () [primary] declared in .TestEnum3.TEST' + ENUM_CONSTRUCTOR_CALL 'private constructor () declared in .TestEnum3.TEST' class: CLASS ENUM_ENTRY name:TEST modality:FINAL visibility:private superTypes:[.TestEnum3] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.TestEnum3.TEST CONSTRUCTOR visibility:private <> () returnType:.TestEnum3.TEST [primary] BLOCK_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor () [primary] declared in .TestEnum3' + ENUM_CONSTRUCTOR_CALL 'private constructor () declared in .TestEnum3' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_ENTRY name:TEST modality:FINAL visibility:private superTypes:[.TestEnum3]' FUN name:foo visibility:public modality:OPEN <> ($this:.TestEnum3.TEST) returnType:kotlin.Unit overridden: public abstract fun foo (): kotlin.Unit declared in .TestEnum3 $this: VALUE_PARAMETER name: type:.TestEnum3.TEST BLOCK_BODY - CALL 'public final fun println (message: kotlin.Any?): kotlin.Unit [inline] declared in kotlin.io' type=kotlin.Unit origin=null + CALL 'public final fun println (message: kotlin.Any?): kotlin.Unit declared in kotlin.io' type=kotlin.Unit origin=null message: CONST String type=kotlin.String value="Hello, world!" FUN FAKE_OVERRIDE name:clone visibility:protected modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Any [fake_override] overridden: - protected final fun clone (): kotlin.Any [fake_override] declared in .TestEnum3 + protected final fun clone (): kotlin.Any declared in .TestEnum3 $this: VALUE_PARAMETER name: type:kotlin.Enum FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum, other:.TestEnum3) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: .TestEnum3): kotlin.Int [fake_override,operator] declared in .TestEnum3 + public final fun compareTo (other: .TestEnum3): kotlin.Int declared in .TestEnum3 $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:.TestEnum3 FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .TestEnum3 + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in .TestEnum3 $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:hashCode visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] overridden: - public final fun hashCode (): kotlin.Int [fake_override] declared in .TestEnum3 + public final fun hashCode (): kotlin.Int declared in .TestEnum3 $this: VALUE_PARAMETER name: type:kotlin.Enum FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Enum) returnType:kotlin.String [fake_override] overridden: - public open fun toString (): kotlin.String [fake_override] declared in .TestEnum3 + public open fun toString (): kotlin.String declared in .TestEnum3 $this: VALUE_PARAMETER name: type:kotlin.Enum PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [fake_override,val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: - public final fun (): kotlin.String [fake_override] declared in .TestEnum3 + public final fun (): kotlin.String declared in .TestEnum3 $this: VALUE_PARAMETER name: type:kotlin.Enum PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [fake_override,val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final fun (): kotlin.Int [fake_override] declared in .TestEnum3 + public final fun (): kotlin.Int declared in .TestEnum3 $this: VALUE_PARAMETER name: type:kotlin.Enum FUN FAKE_OVERRIDE name:getDeclaringClass visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:@[FlexibleNullability] java.lang.Class<@[FlexibleNullability] .TestEnum3?>? [fake_override] overridden: - public final fun getDeclaringClass (): @[FlexibleNullability] java.lang.Class<@[FlexibleNullability] .TestEnum3?>? [fake_override] declared in .TestEnum3 + public final fun getDeclaringClass (): @[FlexibleNullability] java.lang.Class<@[FlexibleNullability] .TestEnum3?>? declared in .TestEnum3 $this: VALUE_PARAMETER name: type:kotlin.Enum FUN FAKE_OVERRIDE name:finalize visibility:protected/*protected and package*/ modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Unit [fake_override] overridden: - protected/*protected and package*/ final fun finalize (): kotlin.Unit [fake_override] declared in .TestEnum3 + protected/*protected and package*/ final fun finalize (): kotlin.Unit declared in .TestEnum3 $this: VALUE_PARAMETER name: type:kotlin.Enum FUN name:foo visibility:public modality:ABSTRACT <> ($this:.TestEnum3) returnType:kotlin.Unit $this: VALUE_PARAMETER name: type:.TestEnum3 @@ -245,12 +245,12 @@ FILE fqName: fileName:/enum.kt $this: VALUE_PARAMETER name: type:kotlin.Enum FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum, other:.TestEnum3) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: E of kotlin.Enum): kotlin.Int [operator] declared in kotlin.Enum + public final fun compareTo (other: E of kotlin.Enum): kotlin.Int declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:.TestEnum3 FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Enum + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:hashCode visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] @@ -265,7 +265,7 @@ FILE fqName: fileName:/enum.kt annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: @@ -273,7 +273,7 @@ FILE fqName: fileName:/enum.kt $this: VALUE_PARAMETER name: type:kotlin.Enum PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: @@ -292,7 +292,7 @@ FILE fqName: fileName:/enum.kt CONSTRUCTOR visibility:private <> (x:kotlin.Int) returnType:.TestEnum4 [primary] VALUE_PARAMETER name:x index:0 type:kotlin.Int BLOCK_BODY - ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) [primary] declared in kotlin.Enum' + ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) declared in kotlin.Enum' : .TestEnum4 INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_CLASS name:TestEnum4 modality:ABSTRACT visibility:public superTypes:[kotlin.Enum<.TestEnum4>]' PROPERTY name:x visibility:public modality:FINAL [val] @@ -308,12 +308,12 @@ FILE fqName: fileName:/enum.kt receiver: GET_VAR ': .TestEnum4 declared in .TestEnum4.' type=.TestEnum4 origin=null ENUM_ENTRY name:TEST1 init: EXPRESSION_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor () [primary] declared in .TestEnum4.TEST1' + ENUM_CONSTRUCTOR_CALL 'private constructor () declared in .TestEnum4.TEST1' class: CLASS ENUM_ENTRY name:TEST1 modality:FINAL visibility:private superTypes:[.TestEnum4] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.TestEnum4.TEST1 CONSTRUCTOR visibility:private <> () returnType:.TestEnum4.TEST1 [primary] BLOCK_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor (x: kotlin.Int) [primary] declared in .TestEnum4' + ENUM_CONSTRUCTOR_CALL 'private constructor (x: kotlin.Int) declared in .TestEnum4' x: CONST Int type=kotlin.Int value=1 INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_ENTRY name:TEST1 modality:FINAL visibility:private superTypes:[.TestEnum4]' FUN name:foo visibility:public modality:OPEN <> ($this:.TestEnum4.TEST1) returnType:kotlin.Unit @@ -321,11 +321,11 @@ FILE fqName: fileName:/enum.kt public abstract fun foo (): kotlin.Unit declared in .TestEnum4 $this: VALUE_PARAMETER name: type:.TestEnum4.TEST1 BLOCK_BODY - CALL 'public final fun println (message: kotlin.Any?): kotlin.Unit [inline] declared in kotlin.io' type=kotlin.Unit origin=null + CALL 'public final fun println (message: kotlin.Any?): kotlin.Unit declared in kotlin.io' type=kotlin.Unit origin=null message: GET_ENUM 'ENUM_ENTRY name:TEST1' type=.TestEnum4 PROPERTY FAKE_OVERRIDE name:x visibility:public modality:FINAL [fake_override,val] overridden: - public final x: kotlin.Int [val] + public final x: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.TestEnum4) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:x visibility:public modality:FINAL [fake_override,val] overridden: @@ -333,60 +333,60 @@ FILE fqName: fileName:/enum.kt $this: VALUE_PARAMETER name: type:.TestEnum4 FUN FAKE_OVERRIDE name:clone visibility:protected modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Any [fake_override] overridden: - protected final fun clone (): kotlin.Any [fake_override] declared in .TestEnum4 + protected final fun clone (): kotlin.Any declared in .TestEnum4 $this: VALUE_PARAMETER name: type:kotlin.Enum FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum, other:.TestEnum4) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: .TestEnum4): kotlin.Int [fake_override,operator] declared in .TestEnum4 + public final fun compareTo (other: .TestEnum4): kotlin.Int declared in .TestEnum4 $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:.TestEnum4 FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .TestEnum4 + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in .TestEnum4 $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:hashCode visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] overridden: - public final fun hashCode (): kotlin.Int [fake_override] declared in .TestEnum4 + public final fun hashCode (): kotlin.Int declared in .TestEnum4 $this: VALUE_PARAMETER name: type:kotlin.Enum FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Enum) returnType:kotlin.String [fake_override] overridden: - public open fun toString (): kotlin.String [fake_override] declared in .TestEnum4 + public open fun toString (): kotlin.String declared in .TestEnum4 $this: VALUE_PARAMETER name: type:kotlin.Enum PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [fake_override,val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: - public final fun (): kotlin.String [fake_override] declared in .TestEnum4 + public final fun (): kotlin.String declared in .TestEnum4 $this: VALUE_PARAMETER name: type:kotlin.Enum PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [fake_override,val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final fun (): kotlin.Int [fake_override] declared in .TestEnum4 + public final fun (): kotlin.Int declared in .TestEnum4 $this: VALUE_PARAMETER name: type:kotlin.Enum FUN FAKE_OVERRIDE name:getDeclaringClass visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:@[FlexibleNullability] java.lang.Class<@[FlexibleNullability] .TestEnum4?>? [fake_override] overridden: - public final fun getDeclaringClass (): @[FlexibleNullability] java.lang.Class<@[FlexibleNullability] .TestEnum4?>? [fake_override] declared in .TestEnum4 + public final fun getDeclaringClass (): @[FlexibleNullability] java.lang.Class<@[FlexibleNullability] .TestEnum4?>? declared in .TestEnum4 $this: VALUE_PARAMETER name: type:kotlin.Enum FUN FAKE_OVERRIDE name:finalize visibility:protected/*protected and package*/ modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Unit [fake_override] overridden: - protected/*protected and package*/ final fun finalize (): kotlin.Unit [fake_override] declared in .TestEnum4 + protected/*protected and package*/ final fun finalize (): kotlin.Unit declared in .TestEnum4 $this: VALUE_PARAMETER name: type:kotlin.Enum ENUM_ENTRY name:TEST2 init: EXPRESSION_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor () [primary] declared in .TestEnum4.TEST2' + ENUM_CONSTRUCTOR_CALL 'private constructor () declared in .TestEnum4.TEST2' class: CLASS ENUM_ENTRY name:TEST2 modality:FINAL visibility:private superTypes:[.TestEnum4] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.TestEnum4.TEST2 CONSTRUCTOR visibility:private <> () returnType:.TestEnum4.TEST2 [primary] BLOCK_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor (x: kotlin.Int) [primary] declared in .TestEnum4' + ENUM_CONSTRUCTOR_CALL 'private constructor (x: kotlin.Int) declared in .TestEnum4' x: CONST Int type=kotlin.Int value=2 INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_ENTRY name:TEST2 modality:FINAL visibility:private superTypes:[.TestEnum4]' PROPERTY name:z visibility:public modality:FINAL [val] @@ -402,18 +402,18 @@ FILE fqName: fileName:/enum.kt BLOCK_BODY SET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:z type:kotlin.Int visibility:private [final]' type=kotlin.Unit origin=null receiver: GET_VAR ': .TestEnum4.TEST2 declared in .TestEnum4.TEST2' type=.TestEnum4.TEST2 origin=null - value: CALL 'public final fun (): kotlin.Int [fake_override] declared in .TestEnum4.TEST2' type=kotlin.Int origin=GET_PROPERTY + value: CALL 'public final fun (): kotlin.Int declared in .TestEnum4.TEST2' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR ': .TestEnum4.TEST2 declared in .TestEnum4.TEST2' type=.TestEnum4.TEST2 origin=null FUN name:foo visibility:public modality:OPEN <> ($this:.TestEnum4.TEST2) returnType:kotlin.Unit overridden: public abstract fun foo (): kotlin.Unit declared in .TestEnum4 $this: VALUE_PARAMETER name: type:.TestEnum4.TEST2 BLOCK_BODY - CALL 'public final fun println (message: kotlin.Any?): kotlin.Unit [inline] declared in kotlin.io' type=kotlin.Unit origin=null + CALL 'public final fun println (message: kotlin.Any?): kotlin.Unit declared in kotlin.io' type=kotlin.Unit origin=null message: GET_ENUM 'ENUM_ENTRY name:TEST2' type=.TestEnum4 PROPERTY FAKE_OVERRIDE name:x visibility:public modality:FINAL [fake_override,val] overridden: - public final x: kotlin.Int [val] + public final x: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.TestEnum4) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:x visibility:public modality:FINAL [fake_override,val] overridden: @@ -421,51 +421,51 @@ FILE fqName: fileName:/enum.kt $this: VALUE_PARAMETER name: type:.TestEnum4 FUN FAKE_OVERRIDE name:clone visibility:protected modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Any [fake_override] overridden: - protected final fun clone (): kotlin.Any [fake_override] declared in .TestEnum4 + protected final fun clone (): kotlin.Any declared in .TestEnum4 $this: VALUE_PARAMETER name: type:kotlin.Enum FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum, other:.TestEnum4) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: .TestEnum4): kotlin.Int [fake_override,operator] declared in .TestEnum4 + public final fun compareTo (other: .TestEnum4): kotlin.Int declared in .TestEnum4 $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:.TestEnum4 FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .TestEnum4 + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in .TestEnum4 $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:hashCode visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] overridden: - public final fun hashCode (): kotlin.Int [fake_override] declared in .TestEnum4 + public final fun hashCode (): kotlin.Int declared in .TestEnum4 $this: VALUE_PARAMETER name: type:kotlin.Enum FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Enum) returnType:kotlin.String [fake_override] overridden: - public open fun toString (): kotlin.String [fake_override] declared in .TestEnum4 + public open fun toString (): kotlin.String declared in .TestEnum4 $this: VALUE_PARAMETER name: type:kotlin.Enum PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [fake_override,val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: - public final fun (): kotlin.String [fake_override] declared in .TestEnum4 + public final fun (): kotlin.String declared in .TestEnum4 $this: VALUE_PARAMETER name: type:kotlin.Enum PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [fake_override,val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final fun (): kotlin.Int [fake_override] declared in .TestEnum4 + public final fun (): kotlin.Int declared in .TestEnum4 $this: VALUE_PARAMETER name: type:kotlin.Enum FUN FAKE_OVERRIDE name:getDeclaringClass visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:@[FlexibleNullability] java.lang.Class<@[FlexibleNullability] .TestEnum4?>? [fake_override] overridden: - public final fun getDeclaringClass (): @[FlexibleNullability] java.lang.Class<@[FlexibleNullability] .TestEnum4?>? [fake_override] declared in .TestEnum4 + public final fun getDeclaringClass (): @[FlexibleNullability] java.lang.Class<@[FlexibleNullability] .TestEnum4?>? declared in .TestEnum4 $this: VALUE_PARAMETER name: type:kotlin.Enum FUN FAKE_OVERRIDE name:finalize visibility:protected/*protected and package*/ modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Unit [fake_override] overridden: - protected/*protected and package*/ final fun finalize (): kotlin.Unit [fake_override] declared in .TestEnum4 + protected/*protected and package*/ final fun finalize (): kotlin.Unit declared in .TestEnum4 $this: VALUE_PARAMETER name: type:kotlin.Enum FUN name:foo visibility:public modality:ABSTRACT <> ($this:.TestEnum4) returnType:kotlin.Unit $this: VALUE_PARAMETER name: type:.TestEnum4 @@ -484,12 +484,12 @@ FILE fqName: fileName:/enum.kt $this: VALUE_PARAMETER name: type:kotlin.Enum FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum, other:.TestEnum4) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: E of kotlin.Enum): kotlin.Int [operator] declared in kotlin.Enum + public final fun compareTo (other: E of kotlin.Enum): kotlin.Int declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:.TestEnum4 FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Enum + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:hashCode visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] @@ -504,7 +504,7 @@ FILE fqName: fileName:/enum.kt annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: @@ -512,7 +512,7 @@ FILE fqName: fileName:/enum.kt $this: VALUE_PARAMETER name: type:kotlin.Enum PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: @@ -533,7 +533,7 @@ FILE fqName: fileName:/enum.kt EXPRESSION_BODY CONST Int type=kotlin.Int value=0 BLOCK_BODY - ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) [primary] declared in kotlin.Enum' + ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) declared in kotlin.Enum' : .TestEnum5 INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_CLASS name:TestEnum5 modality:FINAL visibility:public superTypes:[kotlin.Enum<.TestEnum5>]' PROPERTY name:x visibility:public modality:FINAL [val] @@ -549,13 +549,13 @@ FILE fqName: fileName:/enum.kt receiver: GET_VAR ': .TestEnum5 declared in .TestEnum5.' type=.TestEnum5 origin=null ENUM_ENTRY name:TEST1 init: EXPRESSION_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor (x: kotlin.Int) [primary] declared in .TestEnum5' + ENUM_CONSTRUCTOR_CALL 'private constructor (x: kotlin.Int) declared in .TestEnum5' ENUM_ENTRY name:TEST2 init: EXPRESSION_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor (x: kotlin.Int) [primary] declared in .TestEnum5' + ENUM_CONSTRUCTOR_CALL 'private constructor (x: kotlin.Int) declared in .TestEnum5' ENUM_ENTRY name:TEST3 init: EXPRESSION_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor (x: kotlin.Int) [primary] declared in .TestEnum5' + ENUM_CONSTRUCTOR_CALL 'private constructor (x: kotlin.Int) declared in .TestEnum5' x: CONST Int type=kotlin.Int value=0 FUN ENUM_CLASS_SPECIAL_MEMBER name:values visibility:public modality:FINAL <> () returnType:kotlin.Array<.TestEnum5> SYNTHETIC_BODY kind=ENUM_VALUES @@ -572,12 +572,12 @@ FILE fqName: fileName:/enum.kt $this: VALUE_PARAMETER name: type:kotlin.Enum FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum, other:.TestEnum5) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: E of kotlin.Enum): kotlin.Int [operator] declared in kotlin.Enum + public final fun compareTo (other: E of kotlin.Enum): kotlin.Int declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:.TestEnum5 FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Enum + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:hashCode visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] @@ -592,7 +592,7 @@ FILE fqName: fileName:/enum.kt annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: @@ -600,7 +600,7 @@ FILE fqName: fileName:/enum.kt $this: VALUE_PARAMETER name: type:kotlin.Enum PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: @@ -624,7 +624,7 @@ FILE fqName: fileName:/enum.kt VALUE_PARAMETER name:x index:0 type:kotlin.Int VALUE_PARAMETER name:y index:1 type:kotlin.Int BLOCK_BODY - ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) [primary] declared in kotlin.Enum' + ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) declared in kotlin.Enum' : .TestEnum6 INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_CLASS name:TestEnum6 modality:FINAL visibility:public superTypes:[kotlin.Enum<.TestEnum6>]' PROPERTY name:x visibility:public modality:FINAL [val] @@ -656,9 +656,9 @@ FILE fqName: fileName:/enum.kt CALL 'public final fun f (): kotlin.Int declared in ' type=kotlin.Int origin=null VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:kotlin.Int [val] CALL 'public final fun f (): kotlin.Int declared in ' type=kotlin.Int origin=null - ENUM_CONSTRUCTOR_CALL 'private constructor (x: kotlin.Int, y: kotlin.Int) [primary] declared in .TestEnum6' - x: GET_VAR 'val tmp_1: kotlin.Int [val] declared in .TestEnum6' type=kotlin.Int origin=null - y: GET_VAR 'val tmp_0: kotlin.Int [val] declared in .TestEnum6' type=kotlin.Int origin=null + ENUM_CONSTRUCTOR_CALL 'private constructor (x: kotlin.Int, y: kotlin.Int) declared in .TestEnum6' + x: GET_VAR 'val tmp_1: kotlin.Int declared in .TestEnum6' type=kotlin.Int origin=null + y: GET_VAR 'val tmp_0: kotlin.Int declared in .TestEnum6' type=kotlin.Int origin=null FUN ENUM_CLASS_SPECIAL_MEMBER name:values visibility:public modality:FINAL <> () returnType:kotlin.Array<.TestEnum6> SYNTHETIC_BODY kind=ENUM_VALUES FUN ENUM_CLASS_SPECIAL_MEMBER name:valueOf visibility:public modality:FINAL <> (value:kotlin.String) returnType:.TestEnum6 @@ -674,12 +674,12 @@ FILE fqName: fileName:/enum.kt $this: VALUE_PARAMETER name: type:kotlin.Enum FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum, other:.TestEnum6) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: E of kotlin.Enum): kotlin.Int [operator] declared in kotlin.Enum + public final fun compareTo (other: E of kotlin.Enum): kotlin.Int declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:.TestEnum6 FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Enum + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:hashCode visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] @@ -694,7 +694,7 @@ FILE fqName: fileName:/enum.kt annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: @@ -702,7 +702,7 @@ FILE fqName: fileName:/enum.kt $this: VALUE_PARAMETER name: type:kotlin.Enum PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: diff --git a/compiler/testData/ir/irText/classes/enum.ir.txt b/compiler/testData/ir/irText/classes/enum.ir.txt index 8a74e82aefb..ec25642a55f 100644 --- a/compiler/testData/ir/irText/classes/enum.ir.txt +++ b/compiler/testData/ir/irText/classes/enum.ir.txt @@ -3,20 +3,20 @@ FILE fqName: fileName:/enum.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.TestEnum1 CONSTRUCTOR visibility:private <> () returnType:.TestEnum1 [primary] BLOCK_BODY - ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) [primary] declared in kotlin.Enum' + ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) declared in kotlin.Enum' : .TestEnum1 INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_CLASS name:TestEnum1 modality:FINAL visibility:public superTypes:[kotlin.Enum<.TestEnum1>]' ENUM_ENTRY name:TEST1 init: EXPRESSION_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor () [primary] declared in .TestEnum1' + ENUM_CONSTRUCTOR_CALL 'private constructor () declared in .TestEnum1' ENUM_ENTRY name:TEST2 init: EXPRESSION_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor () [primary] declared in .TestEnum1' + ENUM_CONSTRUCTOR_CALL 'private constructor () declared in .TestEnum1' PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestEnum1>) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: @@ -24,7 +24,7 @@ FILE fqName: fileName:/enum.kt $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestEnum1> PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestEnum1>) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: @@ -36,12 +36,12 @@ FILE fqName: fileName:/enum.kt $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestEnum1> FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestEnum1>, other:.TestEnum1) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: E of kotlin.Enum): kotlin.Int [operator] declared in kotlin.Enum + public final fun compareTo (other: E of kotlin.Enum): kotlin.Int declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestEnum1> VALUE_PARAMETER name:other index:0 type:.TestEnum1 FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestEnum1>, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Enum + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestEnum1> VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:finalize visibility:protected/*protected and package*/ modality:FINAL <> ($this:kotlin.Enum<.TestEnum1>) returnType:kotlin.Unit [fake_override] @@ -74,7 +74,7 @@ FILE fqName: fileName:/enum.kt CONSTRUCTOR visibility:private <> (x:kotlin.Int) returnType:.TestEnum2 [primary] VALUE_PARAMETER name:x index:0 type:kotlin.Int BLOCK_BODY - ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) [primary] declared in kotlin.Enum' + ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) declared in kotlin.Enum' : .TestEnum2 INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_CLASS name:TestEnum2 modality:FINAL visibility:public superTypes:[kotlin.Enum<.TestEnum2>]' PROPERTY name:x visibility:public modality:FINAL [val] @@ -90,21 +90,21 @@ FILE fqName: fileName:/enum.kt receiver: GET_VAR ': .TestEnum2 declared in .TestEnum2.' type=.TestEnum2 origin=null ENUM_ENTRY name:TEST1 init: EXPRESSION_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor (x: kotlin.Int) [primary] declared in .TestEnum2' + ENUM_CONSTRUCTOR_CALL 'private constructor (x: kotlin.Int) declared in .TestEnum2' x: CONST Int type=kotlin.Int value=1 ENUM_ENTRY name:TEST2 init: EXPRESSION_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor (x: kotlin.Int) [primary] declared in .TestEnum2' + ENUM_CONSTRUCTOR_CALL 'private constructor (x: kotlin.Int) declared in .TestEnum2' x: CONST Int type=kotlin.Int value=2 ENUM_ENTRY name:TEST3 init: EXPRESSION_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor (x: kotlin.Int) [primary] declared in .TestEnum2' + ENUM_CONSTRUCTOR_CALL 'private constructor (x: kotlin.Int) declared in .TestEnum2' x: CONST Int type=kotlin.Int value=3 PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestEnum2>) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: @@ -112,7 +112,7 @@ FILE fqName: fileName:/enum.kt $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestEnum2> PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestEnum2>) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: @@ -124,12 +124,12 @@ FILE fqName: fileName:/enum.kt $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestEnum2> FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestEnum2>, other:.TestEnum2) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: E of kotlin.Enum): kotlin.Int [operator] declared in kotlin.Enum + public final fun compareTo (other: E of kotlin.Enum): kotlin.Int declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestEnum2> VALUE_PARAMETER name:other index:0 type:.TestEnum2 FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestEnum2>, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Enum + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestEnum2> VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:finalize visibility:protected/*protected and package*/ modality:FINAL <> ($this:kotlin.Enum<.TestEnum2>) returnType:kotlin.Unit [fake_override] @@ -161,73 +161,73 @@ FILE fqName: fileName:/enum.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.TestEnum3 CONSTRUCTOR visibility:private <> () returnType:.TestEnum3 [primary] BLOCK_BODY - ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) [primary] declared in kotlin.Enum' + ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) declared in kotlin.Enum' : .TestEnum3 INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_CLASS name:TestEnum3 modality:ABSTRACT visibility:public superTypes:[kotlin.Enum<.TestEnum3>]' ENUM_ENTRY name:TEST init: EXPRESSION_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor () [primary] declared in .TestEnum3.TEST' + ENUM_CONSTRUCTOR_CALL 'private constructor () declared in .TestEnum3.TEST' class: CLASS ENUM_ENTRY name:TEST modality:FINAL visibility:private superTypes:[.TestEnum3] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.TestEnum3.TEST CONSTRUCTOR visibility:private <> () returnType:.TestEnum3.TEST [primary] BLOCK_BODY TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit - ENUM_CONSTRUCTOR_CALL 'private constructor () [primary] declared in .TestEnum3' + ENUM_CONSTRUCTOR_CALL 'private constructor () declared in .TestEnum3' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_ENTRY name:TEST modality:FINAL visibility:private superTypes:[.TestEnum3]' FUN name:foo visibility:public modality:OPEN <> ($this:.TestEnum3.TEST) returnType:kotlin.Unit overridden: public abstract fun foo (): kotlin.Unit declared in .TestEnum3 $this: VALUE_PARAMETER name: type:.TestEnum3.TEST BLOCK_BODY - CALL 'public final fun println (message: kotlin.Any?): kotlin.Unit [inline] declared in kotlin.io' type=kotlin.Unit origin=null + CALL 'public final fun println (message: kotlin.Any?): kotlin.Unit declared in kotlin.io' type=kotlin.Unit origin=null message: CONST String type=kotlin.String value="Hello, world!" PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [fake_override,val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestEnum3>) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: - public final fun (): kotlin.String [fake_override] declared in .TestEnum3 + public final fun (): kotlin.String declared in .TestEnum3 $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestEnum3> PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [fake_override,val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestEnum3>) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final fun (): kotlin.Int [fake_override] declared in .TestEnum3 + public final fun (): kotlin.Int declared in .TestEnum3 $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestEnum3> FUN FAKE_OVERRIDE name:clone visibility:protected modality:FINAL <> ($this:kotlin.Enum<.TestEnum3>) returnType:kotlin.Any [fake_override] overridden: - protected final fun clone (): kotlin.Any [fake_override] declared in .TestEnum3 + protected final fun clone (): kotlin.Any declared in .TestEnum3 $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestEnum3> FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestEnum3>, other:.TestEnum3) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: .TestEnum3): kotlin.Int [fake_override,operator] declared in .TestEnum3 + public final fun compareTo (other: .TestEnum3): kotlin.Int declared in .TestEnum3 $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestEnum3> VALUE_PARAMETER name:other index:0 type:.TestEnum3 FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestEnum3>, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .TestEnum3 + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in .TestEnum3 $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestEnum3> VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:finalize visibility:protected/*protected and package*/ modality:FINAL <> ($this:kotlin.Enum<.TestEnum3>) returnType:kotlin.Unit [fake_override] overridden: - protected/*protected and package*/ final fun finalize (): kotlin.Unit [fake_override] declared in .TestEnum3 + protected/*protected and package*/ final fun finalize (): kotlin.Unit declared in .TestEnum3 $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestEnum3> FUN FAKE_OVERRIDE name:getDeclaringClass visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestEnum3>) returnType:@[FlexibleNullability] java.lang.Class<@[FlexibleNullability] .TestEnum3?>? [fake_override] overridden: - public final fun getDeclaringClass (): @[FlexibleNullability] java.lang.Class<@[FlexibleNullability] .TestEnum3?>? [fake_override] declared in .TestEnum3 + public final fun getDeclaringClass (): @[FlexibleNullability] java.lang.Class<@[FlexibleNullability] .TestEnum3?>? declared in .TestEnum3 $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestEnum3> FUN FAKE_OVERRIDE name:hashCode visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestEnum3>) returnType:kotlin.Int [fake_override] overridden: - public final fun hashCode (): kotlin.Int [fake_override] declared in .TestEnum3 + public final fun hashCode (): kotlin.Int declared in .TestEnum3 $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestEnum3> FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Enum<.TestEnum3>) returnType:kotlin.String [fake_override] overridden: - public open fun toString (): kotlin.String [fake_override] declared in .TestEnum3 + public open fun toString (): kotlin.String declared in .TestEnum3 $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestEnum3> FUN name:foo visibility:public modality:ABSTRACT <> ($this:.TestEnum3) returnType:kotlin.Unit $this: VALUE_PARAMETER name: type:.TestEnum3 @@ -235,7 +235,7 @@ FILE fqName: fileName:/enum.kt annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestEnum3>) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: @@ -243,7 +243,7 @@ FILE fqName: fileName:/enum.kt $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestEnum3> PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestEnum3>) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: @@ -255,12 +255,12 @@ FILE fqName: fileName:/enum.kt $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestEnum3> FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestEnum3>, other:.TestEnum3) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: E of kotlin.Enum): kotlin.Int [operator] declared in kotlin.Enum + public final fun compareTo (other: E of kotlin.Enum): kotlin.Int declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestEnum3> VALUE_PARAMETER name:other index:0 type:.TestEnum3 FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestEnum3>, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Enum + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestEnum3> VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:finalize visibility:protected/*protected and package*/ modality:FINAL <> ($this:kotlin.Enum<.TestEnum3>) returnType:kotlin.Unit [fake_override] @@ -293,7 +293,7 @@ FILE fqName: fileName:/enum.kt CONSTRUCTOR visibility:private <> (x:kotlin.Int) returnType:.TestEnum4 [primary] VALUE_PARAMETER name:x index:0 type:kotlin.Int BLOCK_BODY - ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) [primary] declared in kotlin.Enum' + ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) declared in kotlin.Enum' : .TestEnum4 INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_CLASS name:TestEnum4 modality:ABSTRACT visibility:public superTypes:[kotlin.Enum<.TestEnum4>]' PROPERTY name:x visibility:public modality:FINAL [val] @@ -309,13 +309,13 @@ FILE fqName: fileName:/enum.kt receiver: GET_VAR ': .TestEnum4 declared in .TestEnum4.' type=.TestEnum4 origin=null ENUM_ENTRY name:TEST1 init: EXPRESSION_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor () [primary] declared in .TestEnum4.TEST1' + ENUM_CONSTRUCTOR_CALL 'private constructor () declared in .TestEnum4.TEST1' class: CLASS ENUM_ENTRY name:TEST1 modality:FINAL visibility:private superTypes:[.TestEnum4] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.TestEnum4.TEST1 CONSTRUCTOR visibility:private <> () returnType:.TestEnum4.TEST1 [primary] BLOCK_BODY TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit - ENUM_CONSTRUCTOR_CALL 'private constructor (x: kotlin.Int) [primary] declared in .TestEnum4' + ENUM_CONSTRUCTOR_CALL 'private constructor (x: kotlin.Int) declared in .TestEnum4' x: CONST Int type=kotlin.Int value=1 INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_ENTRY name:TEST1 modality:FINAL visibility:private superTypes:[.TestEnum4]' FUN name:foo visibility:public modality:OPEN <> ($this:.TestEnum4.TEST1) returnType:kotlin.Unit @@ -323,11 +323,11 @@ FILE fqName: fileName:/enum.kt public abstract fun foo (): kotlin.Unit declared in .TestEnum4 $this: VALUE_PARAMETER name: type:.TestEnum4.TEST1 BLOCK_BODY - CALL 'public final fun println (message: kotlin.Any?): kotlin.Unit [inline] declared in kotlin.io' type=kotlin.Unit origin=null + CALL 'public final fun println (message: kotlin.Any?): kotlin.Unit declared in kotlin.io' type=kotlin.Unit origin=null message: GET_ENUM 'ENUM_ENTRY name:TEST1' type=.TestEnum4 PROPERTY FAKE_OVERRIDE name:x visibility:public modality:FINAL [fake_override,val] overridden: - public final x: kotlin.Int [val] + public final x: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.TestEnum4) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:x visibility:public modality:FINAL [fake_override,val] overridden: @@ -337,59 +337,59 @@ FILE fqName: fileName:/enum.kt annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [fake_override,val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestEnum4>) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: - public final fun (): kotlin.String [fake_override] declared in .TestEnum4 + public final fun (): kotlin.String declared in .TestEnum4 $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestEnum4> PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [fake_override,val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestEnum4>) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final fun (): kotlin.Int [fake_override] declared in .TestEnum4 + public final fun (): kotlin.Int declared in .TestEnum4 $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestEnum4> FUN FAKE_OVERRIDE name:clone visibility:protected modality:FINAL <> ($this:kotlin.Enum<.TestEnum4>) returnType:kotlin.Any [fake_override] overridden: - protected final fun clone (): kotlin.Any [fake_override] declared in .TestEnum4 + protected final fun clone (): kotlin.Any declared in .TestEnum4 $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestEnum4> FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestEnum4>, other:.TestEnum4) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: .TestEnum4): kotlin.Int [fake_override,operator] declared in .TestEnum4 + public final fun compareTo (other: .TestEnum4): kotlin.Int declared in .TestEnum4 $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestEnum4> VALUE_PARAMETER name:other index:0 type:.TestEnum4 FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestEnum4>, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .TestEnum4 + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in .TestEnum4 $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestEnum4> VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:finalize visibility:protected/*protected and package*/ modality:FINAL <> ($this:kotlin.Enum<.TestEnum4>) returnType:kotlin.Unit [fake_override] overridden: - protected/*protected and package*/ final fun finalize (): kotlin.Unit [fake_override] declared in .TestEnum4 + protected/*protected and package*/ final fun finalize (): kotlin.Unit declared in .TestEnum4 $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestEnum4> FUN FAKE_OVERRIDE name:getDeclaringClass visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestEnum4>) returnType:@[FlexibleNullability] java.lang.Class<@[FlexibleNullability] .TestEnum4?>? [fake_override] overridden: - public final fun getDeclaringClass (): @[FlexibleNullability] java.lang.Class<@[FlexibleNullability] .TestEnum4?>? [fake_override] declared in .TestEnum4 + public final fun getDeclaringClass (): @[FlexibleNullability] java.lang.Class<@[FlexibleNullability] .TestEnum4?>? declared in .TestEnum4 $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestEnum4> FUN FAKE_OVERRIDE name:hashCode visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestEnum4>) returnType:kotlin.Int [fake_override] overridden: - public final fun hashCode (): kotlin.Int [fake_override] declared in .TestEnum4 + public final fun hashCode (): kotlin.Int declared in .TestEnum4 $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestEnum4> FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Enum<.TestEnum4>) returnType:kotlin.String [fake_override] overridden: - public open fun toString (): kotlin.String [fake_override] declared in .TestEnum4 + public open fun toString (): kotlin.String declared in .TestEnum4 $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestEnum4> ENUM_ENTRY name:TEST2 init: EXPRESSION_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor () [primary] declared in .TestEnum4.TEST2' + ENUM_CONSTRUCTOR_CALL 'private constructor () declared in .TestEnum4.TEST2' class: CLASS ENUM_ENTRY name:TEST2 modality:FINAL visibility:private superTypes:[.TestEnum4] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.TestEnum4.TEST2 CONSTRUCTOR visibility:private <> () returnType:.TestEnum4.TEST2 [primary] BLOCK_BODY TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit - ENUM_CONSTRUCTOR_CALL 'private constructor (x: kotlin.Int) [primary] declared in .TestEnum4' + ENUM_CONSTRUCTOR_CALL 'private constructor (x: kotlin.Int) declared in .TestEnum4' x: CONST Int type=kotlin.Int value=2 INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_ENTRY name:TEST2 modality:FINAL visibility:private superTypes:[.TestEnum4]' PROPERTY name:z visibility:public modality:FINAL [val] @@ -405,18 +405,18 @@ FILE fqName: fileName:/enum.kt BLOCK_BODY SET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:z type:kotlin.Int visibility:private [final]' type=kotlin.Unit origin=null receiver: GET_VAR ': .TestEnum4.TEST2 declared in .TestEnum4.TEST2' type=.TestEnum4.TEST2 origin=null - value: CALL 'public final fun (): kotlin.Int [fake_override] declared in .TestEnum4.TEST2' type=kotlin.Int origin=GET_PROPERTY + value: CALL 'public final fun (): kotlin.Int declared in .TestEnum4.TEST2' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR ': .TestEnum4.TEST2 declared in .TestEnum4.TEST2' type=.TestEnum4.TEST2 origin=null FUN name:foo visibility:public modality:OPEN <> ($this:.TestEnum4.TEST2) returnType:kotlin.Unit overridden: public abstract fun foo (): kotlin.Unit declared in .TestEnum4 $this: VALUE_PARAMETER name: type:.TestEnum4.TEST2 BLOCK_BODY - CALL 'public final fun println (message: kotlin.Any?): kotlin.Unit [inline] declared in kotlin.io' type=kotlin.Unit origin=null + CALL 'public final fun println (message: kotlin.Any?): kotlin.Unit declared in kotlin.io' type=kotlin.Unit origin=null message: GET_ENUM 'ENUM_ENTRY name:TEST2' type=.TestEnum4 PROPERTY FAKE_OVERRIDE name:x visibility:public modality:FINAL [fake_override,val] overridden: - public final x: kotlin.Int [val] + public final x: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.TestEnum4) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:x visibility:public modality:FINAL [fake_override,val] overridden: @@ -426,49 +426,49 @@ FILE fqName: fileName:/enum.kt annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [fake_override,val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestEnum4>) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: - public final fun (): kotlin.String [fake_override] declared in .TestEnum4 + public final fun (): kotlin.String declared in .TestEnum4 $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestEnum4> PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [fake_override,val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestEnum4>) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final fun (): kotlin.Int [fake_override] declared in .TestEnum4 + public final fun (): kotlin.Int declared in .TestEnum4 $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestEnum4> FUN FAKE_OVERRIDE name:clone visibility:protected modality:FINAL <> ($this:kotlin.Enum<.TestEnum4>) returnType:kotlin.Any [fake_override] overridden: - protected final fun clone (): kotlin.Any [fake_override] declared in .TestEnum4 + protected final fun clone (): kotlin.Any declared in .TestEnum4 $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestEnum4> FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestEnum4>, other:.TestEnum4) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: .TestEnum4): kotlin.Int [fake_override,operator] declared in .TestEnum4 + public final fun compareTo (other: .TestEnum4): kotlin.Int declared in .TestEnum4 $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestEnum4> VALUE_PARAMETER name:other index:0 type:.TestEnum4 FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestEnum4>, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .TestEnum4 + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in .TestEnum4 $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestEnum4> VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:finalize visibility:protected/*protected and package*/ modality:FINAL <> ($this:kotlin.Enum<.TestEnum4>) returnType:kotlin.Unit [fake_override] overridden: - protected/*protected and package*/ final fun finalize (): kotlin.Unit [fake_override] declared in .TestEnum4 + protected/*protected and package*/ final fun finalize (): kotlin.Unit declared in .TestEnum4 $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestEnum4> FUN FAKE_OVERRIDE name:getDeclaringClass visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestEnum4>) returnType:@[FlexibleNullability] java.lang.Class<@[FlexibleNullability] .TestEnum4?>? [fake_override] overridden: - public final fun getDeclaringClass (): @[FlexibleNullability] java.lang.Class<@[FlexibleNullability] .TestEnum4?>? [fake_override] declared in .TestEnum4 + public final fun getDeclaringClass (): @[FlexibleNullability] java.lang.Class<@[FlexibleNullability] .TestEnum4?>? declared in .TestEnum4 $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestEnum4> FUN FAKE_OVERRIDE name:hashCode visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestEnum4>) returnType:kotlin.Int [fake_override] overridden: - public final fun hashCode (): kotlin.Int [fake_override] declared in .TestEnum4 + public final fun hashCode (): kotlin.Int declared in .TestEnum4 $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestEnum4> FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Enum<.TestEnum4>) returnType:kotlin.String [fake_override] overridden: - public open fun toString (): kotlin.String [fake_override] declared in .TestEnum4 + public open fun toString (): kotlin.String declared in .TestEnum4 $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestEnum4> FUN name:foo visibility:public modality:ABSTRACT <> ($this:.TestEnum4) returnType:kotlin.Unit $this: VALUE_PARAMETER name: type:.TestEnum4 @@ -476,7 +476,7 @@ FILE fqName: fileName:/enum.kt annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestEnum4>) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: @@ -484,7 +484,7 @@ FILE fqName: fileName:/enum.kt $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestEnum4> PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestEnum4>) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: @@ -496,12 +496,12 @@ FILE fqName: fileName:/enum.kt $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestEnum4> FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestEnum4>, other:.TestEnum4) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: E of kotlin.Enum): kotlin.Int [operator] declared in kotlin.Enum + public final fun compareTo (other: E of kotlin.Enum): kotlin.Int declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestEnum4> VALUE_PARAMETER name:other index:0 type:.TestEnum4 FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestEnum4>, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Enum + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestEnum4> VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:finalize visibility:protected/*protected and package*/ modality:FINAL <> ($this:kotlin.Enum<.TestEnum4>) returnType:kotlin.Unit [fake_override] @@ -536,7 +536,7 @@ FILE fqName: fileName:/enum.kt EXPRESSION_BODY CONST Int type=kotlin.Int value=0 BLOCK_BODY - ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) [primary] declared in kotlin.Enum' + ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) declared in kotlin.Enum' : .TestEnum5 INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_CLASS name:TestEnum5 modality:FINAL visibility:public superTypes:[kotlin.Enum<.TestEnum5>]' PROPERTY name:x visibility:public modality:FINAL [val] @@ -552,19 +552,19 @@ FILE fqName: fileName:/enum.kt receiver: GET_VAR ': .TestEnum5 declared in .TestEnum5.' type=.TestEnum5 origin=null ENUM_ENTRY name:TEST1 init: EXPRESSION_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor (x: kotlin.Int) [primary] declared in .TestEnum5' + ENUM_CONSTRUCTOR_CALL 'private constructor (x: kotlin.Int) declared in .TestEnum5' ENUM_ENTRY name:TEST2 init: EXPRESSION_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor (x: kotlin.Int) [primary] declared in .TestEnum5' + ENUM_CONSTRUCTOR_CALL 'private constructor (x: kotlin.Int) declared in .TestEnum5' ENUM_ENTRY name:TEST3 init: EXPRESSION_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor (x: kotlin.Int) [primary] declared in .TestEnum5' + ENUM_CONSTRUCTOR_CALL 'private constructor (x: kotlin.Int) declared in .TestEnum5' x: CONST Int type=kotlin.Int value=0 PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestEnum5>) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: @@ -572,7 +572,7 @@ FILE fqName: fileName:/enum.kt $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestEnum5> PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestEnum5>) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: @@ -584,12 +584,12 @@ FILE fqName: fileName:/enum.kt $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestEnum5> FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestEnum5>, other:.TestEnum5) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: E of kotlin.Enum): kotlin.Int [operator] declared in kotlin.Enum + public final fun compareTo (other: E of kotlin.Enum): kotlin.Int declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestEnum5> VALUE_PARAMETER name:other index:0 type:.TestEnum5 FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestEnum5>, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Enum + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestEnum5> VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:finalize visibility:protected/*protected and package*/ modality:FINAL <> ($this:kotlin.Enum<.TestEnum5>) returnType:kotlin.Unit [fake_override] @@ -627,7 +627,7 @@ FILE fqName: fileName:/enum.kt VALUE_PARAMETER name:x index:0 type:kotlin.Int VALUE_PARAMETER name:y index:1 type:kotlin.Int BLOCK_BODY - ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) [primary] declared in kotlin.Enum' + ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) declared in kotlin.Enum' : .TestEnum6 INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_CLASS name:TestEnum6 modality:FINAL visibility:public superTypes:[kotlin.Enum<.TestEnum6>]' PROPERTY name:x visibility:public modality:FINAL [val] @@ -659,14 +659,14 @@ FILE fqName: fileName:/enum.kt CALL 'public final fun f (): kotlin.Int declared in ' type=kotlin.Int origin=null VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:kotlin.Int [val] CALL 'public final fun f (): kotlin.Int declared in ' type=kotlin.Int origin=null - ENUM_CONSTRUCTOR_CALL 'private constructor (x: kotlin.Int, y: kotlin.Int) [primary] declared in .TestEnum6' - x: GET_VAR 'val tmp_1: kotlin.Int [val] declared in .TestEnum6' type=kotlin.Int origin=null - y: GET_VAR 'val tmp_0: kotlin.Int [val] declared in .TestEnum6' type=kotlin.Int origin=null + ENUM_CONSTRUCTOR_CALL 'private constructor (x: kotlin.Int, y: kotlin.Int) declared in .TestEnum6' + x: GET_VAR 'val tmp_1: kotlin.Int declared in .TestEnum6' type=kotlin.Int origin=null + y: GET_VAR 'val tmp_0: kotlin.Int declared in .TestEnum6' type=kotlin.Int origin=null PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestEnum6>) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: @@ -674,7 +674,7 @@ FILE fqName: fileName:/enum.kt $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestEnum6> PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestEnum6>) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: @@ -686,12 +686,12 @@ FILE fqName: fileName:/enum.kt $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestEnum6> FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestEnum6>, other:.TestEnum6) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: E of kotlin.Enum): kotlin.Int [operator] declared in kotlin.Enum + public final fun compareTo (other: E of kotlin.Enum): kotlin.Int declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestEnum6> VALUE_PARAMETER name:other index:0 type:.TestEnum6 FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestEnum6>, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Enum + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestEnum6> VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:finalize visibility:protected/*protected and package*/ modality:FINAL <> ($this:kotlin.Enum<.TestEnum6>) returnType:kotlin.Unit [fake_override] diff --git a/compiler/testData/ir/irText/classes/enumClassModality.fir.ir.txt b/compiler/testData/ir/irText/classes/enumClassModality.fir.ir.txt index 53e7303bfeb..da97462e6a1 100644 --- a/compiler/testData/ir/irText/classes/enumClassModality.fir.ir.txt +++ b/compiler/testData/ir/irText/classes/enumClassModality.fir.ir.txt @@ -3,12 +3,12 @@ FILE fqName: fileName:/enumClassModality.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.TestFinalEnum1 CONSTRUCTOR visibility:private <> () returnType:.TestFinalEnum1 [primary] BLOCK_BODY - ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) [primary] declared in kotlin.Enum' + ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) declared in kotlin.Enum' : .TestFinalEnum1 INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_CLASS name:TestFinalEnum1 modality:FINAL visibility:public superTypes:[kotlin.Enum<.TestFinalEnum1>]' ENUM_ENTRY name:X1 init: EXPRESSION_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor () [primary] declared in .TestFinalEnum1' + ENUM_CONSTRUCTOR_CALL 'private constructor () declared in .TestFinalEnum1' FUN ENUM_CLASS_SPECIAL_MEMBER name:values visibility:public modality:FINAL <> () returnType:kotlin.Array<.TestFinalEnum1> SYNTHETIC_BODY kind=ENUM_VALUES FUN ENUM_CLASS_SPECIAL_MEMBER name:valueOf visibility:public modality:FINAL <> (value:kotlin.String) returnType:.TestFinalEnum1 @@ -24,12 +24,12 @@ FILE fqName: fileName:/enumClassModality.kt $this: VALUE_PARAMETER name: type:kotlin.Enum FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum, other:.TestFinalEnum1) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: E of kotlin.Enum): kotlin.Int [operator] declared in kotlin.Enum + public final fun compareTo (other: E of kotlin.Enum): kotlin.Int declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:.TestFinalEnum1 FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Enum + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:hashCode visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] @@ -44,7 +44,7 @@ FILE fqName: fileName:/enumClassModality.kt annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: @@ -52,7 +52,7 @@ FILE fqName: fileName:/enumClassModality.kt $this: VALUE_PARAMETER name: type:kotlin.Enum PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: @@ -71,7 +71,7 @@ FILE fqName: fileName:/enumClassModality.kt CONSTRUCTOR visibility:private <> (x:kotlin.Int) returnType:.TestFinalEnum2 [primary] VALUE_PARAMETER name:x index:0 type:kotlin.Int BLOCK_BODY - ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) [primary] declared in kotlin.Enum' + ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) declared in kotlin.Enum' : .TestFinalEnum2 INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_CLASS name:TestFinalEnum2 modality:FINAL visibility:public superTypes:[kotlin.Enum<.TestFinalEnum2>]' PROPERTY name:x visibility:public modality:FINAL [val] @@ -87,7 +87,7 @@ FILE fqName: fileName:/enumClassModality.kt receiver: GET_VAR ': .TestFinalEnum2 declared in .TestFinalEnum2.' type=.TestFinalEnum2 origin=null ENUM_ENTRY name:X1 init: EXPRESSION_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor (x: kotlin.Int) [primary] declared in .TestFinalEnum2' + ENUM_CONSTRUCTOR_CALL 'private constructor (x: kotlin.Int) declared in .TestFinalEnum2' x: CONST Int type=kotlin.Int value=1 FUN ENUM_CLASS_SPECIAL_MEMBER name:values visibility:public modality:FINAL <> () returnType:kotlin.Array<.TestFinalEnum2> SYNTHETIC_BODY kind=ENUM_VALUES @@ -104,12 +104,12 @@ FILE fqName: fileName:/enumClassModality.kt $this: VALUE_PARAMETER name: type:kotlin.Enum FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum, other:.TestFinalEnum2) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: E of kotlin.Enum): kotlin.Int [operator] declared in kotlin.Enum + public final fun compareTo (other: E of kotlin.Enum): kotlin.Int declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:.TestFinalEnum2 FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Enum + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:hashCode visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] @@ -124,7 +124,7 @@ FILE fqName: fileName:/enumClassModality.kt annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: @@ -132,7 +132,7 @@ FILE fqName: fileName:/enumClassModality.kt $this: VALUE_PARAMETER name: type:kotlin.Enum PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: @@ -150,12 +150,12 @@ FILE fqName: fileName:/enumClassModality.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.TestFinalEnum3 CONSTRUCTOR visibility:private <> () returnType:.TestFinalEnum3 [primary] BLOCK_BODY - ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) [primary] declared in kotlin.Enum' + ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) declared in kotlin.Enum' : .TestFinalEnum3 INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_CLASS name:TestFinalEnum3 modality:FINAL visibility:public superTypes:[kotlin.Enum<.TestFinalEnum3>]' ENUM_ENTRY name:X1 init: EXPRESSION_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor () [primary] declared in .TestFinalEnum3' + ENUM_CONSTRUCTOR_CALL 'private constructor () declared in .TestFinalEnum3' FUN name:doStuff visibility:public modality:FINAL <> ($this:.TestFinalEnum3) returnType:kotlin.Unit $this: VALUE_PARAMETER name: type:.TestFinalEnum3 BLOCK_BODY @@ -174,12 +174,12 @@ FILE fqName: fileName:/enumClassModality.kt $this: VALUE_PARAMETER name: type:kotlin.Enum FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum, other:.TestFinalEnum3) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: E of kotlin.Enum): kotlin.Int [operator] declared in kotlin.Enum + public final fun compareTo (other: E of kotlin.Enum): kotlin.Int declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:.TestFinalEnum3 FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Enum + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:hashCode visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] @@ -194,7 +194,7 @@ FILE fqName: fileName:/enumClassModality.kt annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: @@ -202,7 +202,7 @@ FILE fqName: fileName:/enumClassModality.kt $this: VALUE_PARAMETER name: type:kotlin.Enum PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: @@ -220,68 +220,68 @@ FILE fqName: fileName:/enumClassModality.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.TestOpenEnum1 CONSTRUCTOR visibility:private <> () returnType:.TestOpenEnum1 [primary] BLOCK_BODY - ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) [primary] declared in kotlin.Enum' + ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) declared in kotlin.Enum' : .TestOpenEnum1 INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_CLASS name:TestOpenEnum1 modality:OPEN visibility:public superTypes:[kotlin.Enum<.TestOpenEnum1>]' ENUM_ENTRY name:X1 init: EXPRESSION_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor () [primary] declared in .TestOpenEnum1.X1' + ENUM_CONSTRUCTOR_CALL 'private constructor () declared in .TestOpenEnum1.X1' class: CLASS ENUM_ENTRY name:X1 modality:FINAL visibility:private superTypes:[.TestOpenEnum1] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.TestOpenEnum1.X1 CONSTRUCTOR visibility:private <> () returnType:.TestOpenEnum1.X1 [primary] BLOCK_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor () [primary] declared in .TestOpenEnum1' + ENUM_CONSTRUCTOR_CALL 'private constructor () declared in .TestOpenEnum1' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_ENTRY name:X1 modality:FINAL visibility:private superTypes:[.TestOpenEnum1]' FUN name:toString visibility:public modality:OPEN <> ($this:.TestOpenEnum1.X1) returnType:kotlin.String overridden: - public open fun toString (): kotlin.String [fake_override] declared in .TestOpenEnum1 + public open fun toString (): kotlin.String declared in .TestOpenEnum1 $this: VALUE_PARAMETER name: type:.TestOpenEnum1.X1 BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun toString (): kotlin.String declared in .TestOpenEnum1.X1' CONST String type=kotlin.String value="X1" FUN FAKE_OVERRIDE name:clone visibility:protected modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Any [fake_override] overridden: - protected final fun clone (): kotlin.Any [fake_override] declared in .TestOpenEnum1 + protected final fun clone (): kotlin.Any declared in .TestOpenEnum1 $this: VALUE_PARAMETER name: type:kotlin.Enum FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum, other:.TestOpenEnum1) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: .TestOpenEnum1): kotlin.Int [fake_override,operator] declared in .TestOpenEnum1 + public final fun compareTo (other: .TestOpenEnum1): kotlin.Int declared in .TestOpenEnum1 $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:.TestOpenEnum1 FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .TestOpenEnum1 + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in .TestOpenEnum1 $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:hashCode visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] overridden: - public final fun hashCode (): kotlin.Int [fake_override] declared in .TestOpenEnum1 + public final fun hashCode (): kotlin.Int declared in .TestOpenEnum1 $this: VALUE_PARAMETER name: type:kotlin.Enum PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [fake_override,val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: - public final fun (): kotlin.String [fake_override] declared in .TestOpenEnum1 + public final fun (): kotlin.String declared in .TestOpenEnum1 $this: VALUE_PARAMETER name: type:kotlin.Enum PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [fake_override,val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final fun (): kotlin.Int [fake_override] declared in .TestOpenEnum1 + public final fun (): kotlin.Int declared in .TestOpenEnum1 $this: VALUE_PARAMETER name: type:kotlin.Enum FUN FAKE_OVERRIDE name:getDeclaringClass visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:@[FlexibleNullability] java.lang.Class<@[FlexibleNullability] .TestOpenEnum1?>? [fake_override] overridden: - public final fun getDeclaringClass (): @[FlexibleNullability] java.lang.Class<@[FlexibleNullability] .TestOpenEnum1?>? [fake_override] declared in .TestOpenEnum1 + public final fun getDeclaringClass (): @[FlexibleNullability] java.lang.Class<@[FlexibleNullability] .TestOpenEnum1?>? declared in .TestOpenEnum1 $this: VALUE_PARAMETER name: type:kotlin.Enum FUN FAKE_OVERRIDE name:finalize visibility:protected/*protected and package*/ modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Unit [fake_override] overridden: - protected/*protected and package*/ final fun finalize (): kotlin.Unit [fake_override] declared in .TestOpenEnum1 + protected/*protected and package*/ final fun finalize (): kotlin.Unit declared in .TestOpenEnum1 $this: VALUE_PARAMETER name: type:kotlin.Enum FUN ENUM_CLASS_SPECIAL_MEMBER name:values visibility:public modality:FINAL <> () returnType:kotlin.Array<.TestOpenEnum1> SYNTHETIC_BODY kind=ENUM_VALUES @@ -298,12 +298,12 @@ FILE fqName: fileName:/enumClassModality.kt $this: VALUE_PARAMETER name: type:kotlin.Enum FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum, other:.TestOpenEnum1) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: E of kotlin.Enum): kotlin.Int [operator] declared in kotlin.Enum + public final fun compareTo (other: E of kotlin.Enum): kotlin.Int declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:.TestOpenEnum1 FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Enum + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:hashCode visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] @@ -318,7 +318,7 @@ FILE fqName: fileName:/enumClassModality.kt annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: @@ -326,7 +326,7 @@ FILE fqName: fileName:/enumClassModality.kt $this: VALUE_PARAMETER name: type:kotlin.Enum PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: @@ -344,17 +344,17 @@ FILE fqName: fileName:/enumClassModality.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.TestOpenEnum2 CONSTRUCTOR visibility:private <> () returnType:.TestOpenEnum2 [primary] BLOCK_BODY - ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) [primary] declared in kotlin.Enum' + ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) declared in kotlin.Enum' : .TestOpenEnum2 INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_CLASS name:TestOpenEnum2 modality:OPEN visibility:public superTypes:[kotlin.Enum<.TestOpenEnum2>]' ENUM_ENTRY name:X1 init: EXPRESSION_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor () [primary] declared in .TestOpenEnum2.X1' + ENUM_CONSTRUCTOR_CALL 'private constructor () declared in .TestOpenEnum2.X1' class: CLASS ENUM_ENTRY name:X1 modality:FINAL visibility:private superTypes:[.TestOpenEnum2] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.TestOpenEnum2.X1 CONSTRUCTOR visibility:private <> () returnType:.TestOpenEnum2.X1 [primary] BLOCK_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor () [primary] declared in .TestOpenEnum2' + ENUM_CONSTRUCTOR_CALL 'private constructor () declared in .TestOpenEnum2' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_ENTRY name:X1 modality:FINAL visibility:private superTypes:[.TestOpenEnum2]' FUN name:foo visibility:public modality:OPEN <> ($this:.TestOpenEnum2.X1) returnType:kotlin.Unit overridden: @@ -363,51 +363,51 @@ FILE fqName: fileName:/enumClassModality.kt BLOCK_BODY FUN FAKE_OVERRIDE name:clone visibility:protected modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Any [fake_override] overridden: - protected final fun clone (): kotlin.Any [fake_override] declared in .TestOpenEnum2 + protected final fun clone (): kotlin.Any declared in .TestOpenEnum2 $this: VALUE_PARAMETER name: type:kotlin.Enum FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum, other:.TestOpenEnum2) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: .TestOpenEnum2): kotlin.Int [fake_override,operator] declared in .TestOpenEnum2 + public final fun compareTo (other: .TestOpenEnum2): kotlin.Int declared in .TestOpenEnum2 $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:.TestOpenEnum2 FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .TestOpenEnum2 + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in .TestOpenEnum2 $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:hashCode visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] overridden: - public final fun hashCode (): kotlin.Int [fake_override] declared in .TestOpenEnum2 + public final fun hashCode (): kotlin.Int declared in .TestOpenEnum2 $this: VALUE_PARAMETER name: type:kotlin.Enum FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Enum) returnType:kotlin.String [fake_override] overridden: - public open fun toString (): kotlin.String [fake_override] declared in .TestOpenEnum2 + public open fun toString (): kotlin.String declared in .TestOpenEnum2 $this: VALUE_PARAMETER name: type:kotlin.Enum PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [fake_override,val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: - public final fun (): kotlin.String [fake_override] declared in .TestOpenEnum2 + public final fun (): kotlin.String declared in .TestOpenEnum2 $this: VALUE_PARAMETER name: type:kotlin.Enum PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [fake_override,val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final fun (): kotlin.Int [fake_override] declared in .TestOpenEnum2 + public final fun (): kotlin.Int declared in .TestOpenEnum2 $this: VALUE_PARAMETER name: type:kotlin.Enum FUN FAKE_OVERRIDE name:getDeclaringClass visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:@[FlexibleNullability] java.lang.Class<@[FlexibleNullability] .TestOpenEnum2?>? [fake_override] overridden: - public final fun getDeclaringClass (): @[FlexibleNullability] java.lang.Class<@[FlexibleNullability] .TestOpenEnum2?>? [fake_override] declared in .TestOpenEnum2 + public final fun getDeclaringClass (): @[FlexibleNullability] java.lang.Class<@[FlexibleNullability] .TestOpenEnum2?>? declared in .TestOpenEnum2 $this: VALUE_PARAMETER name: type:kotlin.Enum FUN FAKE_OVERRIDE name:finalize visibility:protected/*protected and package*/ modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Unit [fake_override] overridden: - protected/*protected and package*/ final fun finalize (): kotlin.Unit [fake_override] declared in .TestOpenEnum2 + protected/*protected and package*/ final fun finalize (): kotlin.Unit declared in .TestOpenEnum2 $this: VALUE_PARAMETER name: type:kotlin.Enum FUN name:foo visibility:public modality:OPEN <> ($this:.TestOpenEnum2) returnType:kotlin.Unit $this: VALUE_PARAMETER name: type:.TestOpenEnum2 @@ -427,12 +427,12 @@ FILE fqName: fileName:/enumClassModality.kt $this: VALUE_PARAMETER name: type:kotlin.Enum FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum, other:.TestOpenEnum2) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: E of kotlin.Enum): kotlin.Int [operator] declared in kotlin.Enum + public final fun compareTo (other: E of kotlin.Enum): kotlin.Int declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:.TestOpenEnum2 FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Enum + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:hashCode visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] @@ -447,7 +447,7 @@ FILE fqName: fileName:/enumClassModality.kt annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: @@ -455,7 +455,7 @@ FILE fqName: fileName:/enumClassModality.kt $this: VALUE_PARAMETER name: type:kotlin.Enum PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: @@ -473,17 +473,17 @@ FILE fqName: fileName:/enumClassModality.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.TestAbstractEnum1 CONSTRUCTOR visibility:private <> () returnType:.TestAbstractEnum1 [primary] BLOCK_BODY - ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) [primary] declared in kotlin.Enum' + ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) declared in kotlin.Enum' : .TestAbstractEnum1 INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_CLASS name:TestAbstractEnum1 modality:ABSTRACT visibility:public superTypes:[kotlin.Enum<.TestAbstractEnum1>]' ENUM_ENTRY name:X1 init: EXPRESSION_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor () [primary] declared in .TestAbstractEnum1.X1' + ENUM_CONSTRUCTOR_CALL 'private constructor () declared in .TestAbstractEnum1.X1' class: CLASS ENUM_ENTRY name:X1 modality:FINAL visibility:private superTypes:[.TestAbstractEnum1] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.TestAbstractEnum1.X1 CONSTRUCTOR visibility:private <> () returnType:.TestAbstractEnum1.X1 [primary] BLOCK_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor () [primary] declared in .TestAbstractEnum1' + ENUM_CONSTRUCTOR_CALL 'private constructor () declared in .TestAbstractEnum1' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_ENTRY name:X1 modality:FINAL visibility:private superTypes:[.TestAbstractEnum1]' FUN name:foo visibility:public modality:OPEN <> ($this:.TestAbstractEnum1.X1) returnType:kotlin.Unit overridden: @@ -492,51 +492,51 @@ FILE fqName: fileName:/enumClassModality.kt BLOCK_BODY FUN FAKE_OVERRIDE name:clone visibility:protected modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Any [fake_override] overridden: - protected final fun clone (): kotlin.Any [fake_override] declared in .TestAbstractEnum1 + protected final fun clone (): kotlin.Any declared in .TestAbstractEnum1 $this: VALUE_PARAMETER name: type:kotlin.Enum FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum, other:.TestAbstractEnum1) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: .TestAbstractEnum1): kotlin.Int [fake_override,operator] declared in .TestAbstractEnum1 + public final fun compareTo (other: .TestAbstractEnum1): kotlin.Int declared in .TestAbstractEnum1 $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:.TestAbstractEnum1 FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .TestAbstractEnum1 + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in .TestAbstractEnum1 $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:hashCode visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] overridden: - public final fun hashCode (): kotlin.Int [fake_override] declared in .TestAbstractEnum1 + public final fun hashCode (): kotlin.Int declared in .TestAbstractEnum1 $this: VALUE_PARAMETER name: type:kotlin.Enum FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Enum) returnType:kotlin.String [fake_override] overridden: - public open fun toString (): kotlin.String [fake_override] declared in .TestAbstractEnum1 + public open fun toString (): kotlin.String declared in .TestAbstractEnum1 $this: VALUE_PARAMETER name: type:kotlin.Enum PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [fake_override,val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: - public final fun (): kotlin.String [fake_override] declared in .TestAbstractEnum1 + public final fun (): kotlin.String declared in .TestAbstractEnum1 $this: VALUE_PARAMETER name: type:kotlin.Enum PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [fake_override,val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final fun (): kotlin.Int [fake_override] declared in .TestAbstractEnum1 + public final fun (): kotlin.Int declared in .TestAbstractEnum1 $this: VALUE_PARAMETER name: type:kotlin.Enum FUN FAKE_OVERRIDE name:getDeclaringClass visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:@[FlexibleNullability] java.lang.Class<@[FlexibleNullability] .TestAbstractEnum1?>? [fake_override] overridden: - public final fun getDeclaringClass (): @[FlexibleNullability] java.lang.Class<@[FlexibleNullability] .TestAbstractEnum1?>? [fake_override] declared in .TestAbstractEnum1 + public final fun getDeclaringClass (): @[FlexibleNullability] java.lang.Class<@[FlexibleNullability] .TestAbstractEnum1?>? declared in .TestAbstractEnum1 $this: VALUE_PARAMETER name: type:kotlin.Enum FUN FAKE_OVERRIDE name:finalize visibility:protected/*protected and package*/ modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Unit [fake_override] overridden: - protected/*protected and package*/ final fun finalize (): kotlin.Unit [fake_override] declared in .TestAbstractEnum1 + protected/*protected and package*/ final fun finalize (): kotlin.Unit declared in .TestAbstractEnum1 $this: VALUE_PARAMETER name: type:kotlin.Enum FUN name:foo visibility:public modality:ABSTRACT <> ($this:.TestAbstractEnum1) returnType:kotlin.Unit $this: VALUE_PARAMETER name: type:.TestAbstractEnum1 @@ -555,12 +555,12 @@ FILE fqName: fileName:/enumClassModality.kt $this: VALUE_PARAMETER name: type:kotlin.Enum FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum, other:.TestAbstractEnum1) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: E of kotlin.Enum): kotlin.Int [operator] declared in kotlin.Enum + public final fun compareTo (other: E of kotlin.Enum): kotlin.Int declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:.TestAbstractEnum1 FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Enum + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:hashCode visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] @@ -575,7 +575,7 @@ FILE fqName: fileName:/enumClassModality.kt annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: @@ -583,7 +583,7 @@ FILE fqName: fileName:/enumClassModality.kt $this: VALUE_PARAMETER name: type:kotlin.Enum PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: @@ -603,7 +603,7 @@ FILE fqName: fileName:/enumClassModality.kt $this: VALUE_PARAMETER name: type:.IFoo 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -618,70 +618,70 @@ FILE fqName: fileName:/enumClassModality.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.TestAbstractEnum2 CONSTRUCTOR visibility:private <> () returnType:.TestAbstractEnum2 [primary] BLOCK_BODY - ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) [primary] declared in kotlin.Enum' + ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) declared in kotlin.Enum' : .TestAbstractEnum2 INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_CLASS name:TestAbstractEnum2 modality:ABSTRACT visibility:public superTypes:[.IFoo; kotlin.Enum<.TestAbstractEnum2>]' ENUM_ENTRY name:X1 init: EXPRESSION_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor () [primary] declared in .TestAbstractEnum2.X1' + ENUM_CONSTRUCTOR_CALL 'private constructor () declared in .TestAbstractEnum2.X1' class: CLASS ENUM_ENTRY name:X1 modality:FINAL visibility:private superTypes:[.TestAbstractEnum2] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.TestAbstractEnum2.X1 CONSTRUCTOR visibility:private <> () returnType:.TestAbstractEnum2.X1 [primary] BLOCK_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor () [primary] declared in .TestAbstractEnum2' + ENUM_CONSTRUCTOR_CALL 'private constructor () declared in .TestAbstractEnum2' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_ENTRY name:X1 modality:FINAL visibility:private superTypes:[.TestAbstractEnum2]' FUN name:foo visibility:public modality:OPEN <> ($this:.TestAbstractEnum2.X1) returnType:kotlin.Unit overridden: - public abstract fun foo (): kotlin.Unit [fake_override] declared in .TestAbstractEnum2 + public abstract fun foo (): kotlin.Unit declared in .TestAbstractEnum2 $this: VALUE_PARAMETER name: type:.TestAbstractEnum2.X1 BLOCK_BODY FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .TestAbstractEnum2 + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in .TestAbstractEnum2 $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:hashCode visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] overridden: - public final fun hashCode (): kotlin.Int [fake_override] declared in .TestAbstractEnum2 + public final fun hashCode (): kotlin.Int declared in .TestAbstractEnum2 $this: VALUE_PARAMETER name: type:kotlin.Enum FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Enum) returnType:kotlin.String [fake_override] overridden: - public open fun toString (): kotlin.String [fake_override] declared in .TestAbstractEnum2 + public open fun toString (): kotlin.String declared in .TestAbstractEnum2 $this: VALUE_PARAMETER name: type:kotlin.Enum FUN FAKE_OVERRIDE name:clone visibility:protected modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Any [fake_override] overridden: - protected final fun clone (): kotlin.Any [fake_override] declared in .TestAbstractEnum2 + protected final fun clone (): kotlin.Any declared in .TestAbstractEnum2 $this: VALUE_PARAMETER name: type:kotlin.Enum FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum, other:.TestAbstractEnum2) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: .TestAbstractEnum2): kotlin.Int [fake_override,operator] declared in .TestAbstractEnum2 + public final fun compareTo (other: .TestAbstractEnum2): kotlin.Int declared in .TestAbstractEnum2 $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:.TestAbstractEnum2 PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [fake_override,val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: - public final fun (): kotlin.String [fake_override] declared in .TestAbstractEnum2 + public final fun (): kotlin.String declared in .TestAbstractEnum2 $this: VALUE_PARAMETER name: type:kotlin.Enum PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [fake_override,val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final fun (): kotlin.Int [fake_override] declared in .TestAbstractEnum2 + public final fun (): kotlin.Int declared in .TestAbstractEnum2 $this: VALUE_PARAMETER name: type:kotlin.Enum FUN FAKE_OVERRIDE name:getDeclaringClass visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:@[FlexibleNullability] java.lang.Class<@[FlexibleNullability] .TestAbstractEnum2?>? [fake_override] overridden: - public final fun getDeclaringClass (): @[FlexibleNullability] java.lang.Class<@[FlexibleNullability] .TestAbstractEnum2?>? [fake_override] declared in .TestAbstractEnum2 + public final fun getDeclaringClass (): @[FlexibleNullability] java.lang.Class<@[FlexibleNullability] .TestAbstractEnum2?>? declared in .TestAbstractEnum2 $this: VALUE_PARAMETER name: type:kotlin.Enum FUN FAKE_OVERRIDE name:finalize visibility:protected/*protected and package*/ modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Unit [fake_override] overridden: - protected/*protected and package*/ final fun finalize (): kotlin.Unit [fake_override] declared in .TestAbstractEnum2 + protected/*protected and package*/ final fun finalize (): kotlin.Unit declared in .TestAbstractEnum2 $this: VALUE_PARAMETER name: type:kotlin.Enum FUN ENUM_CLASS_SPECIAL_MEMBER name:values visibility:public modality:FINAL <> () returnType:kotlin.Array<.TestAbstractEnum2> SYNTHETIC_BODY kind=ENUM_VALUES @@ -698,7 +698,7 @@ FILE fqName: fileName:/enumClassModality.kt $this: VALUE_PARAMETER name: type:.IFoo FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Enum + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:hashCode visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] @@ -715,14 +715,14 @@ FILE fqName: fileName:/enumClassModality.kt $this: VALUE_PARAMETER name: type:kotlin.Enum FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum, other:.TestAbstractEnum2) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: E of kotlin.Enum): kotlin.Int [operator] declared in kotlin.Enum + public final fun compareTo (other: E of kotlin.Enum): kotlin.Int declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:.TestAbstractEnum2 PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: @@ -730,7 +730,7 @@ FILE fqName: fileName:/enumClassModality.kt $this: VALUE_PARAMETER name: type:kotlin.Enum PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: diff --git a/compiler/testData/ir/irText/classes/enumClassModality.ir.txt b/compiler/testData/ir/irText/classes/enumClassModality.ir.txt index e8495da83db..77df7712915 100644 --- a/compiler/testData/ir/irText/classes/enumClassModality.ir.txt +++ b/compiler/testData/ir/irText/classes/enumClassModality.ir.txt @@ -3,17 +3,17 @@ FILE fqName: fileName:/enumClassModality.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.TestFinalEnum1 CONSTRUCTOR visibility:private <> () returnType:.TestFinalEnum1 [primary] BLOCK_BODY - ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) [primary] declared in kotlin.Enum' + ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) declared in kotlin.Enum' : .TestFinalEnum1 INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_CLASS name:TestFinalEnum1 modality:FINAL visibility:public superTypes:[kotlin.Enum<.TestFinalEnum1>]' ENUM_ENTRY name:X1 init: EXPRESSION_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor () [primary] declared in .TestFinalEnum1' + ENUM_CONSTRUCTOR_CALL 'private constructor () declared in .TestFinalEnum1' PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestFinalEnum1>) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: @@ -21,7 +21,7 @@ FILE fqName: fileName:/enumClassModality.kt $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestFinalEnum1> PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestFinalEnum1>) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: @@ -33,12 +33,12 @@ FILE fqName: fileName:/enumClassModality.kt $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestFinalEnum1> FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestFinalEnum1>, other:.TestFinalEnum1) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: E of kotlin.Enum): kotlin.Int [operator] declared in kotlin.Enum + public final fun compareTo (other: E of kotlin.Enum): kotlin.Int declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestFinalEnum1> VALUE_PARAMETER name:other index:0 type:.TestFinalEnum1 FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestFinalEnum1>, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Enum + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestFinalEnum1> VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:finalize visibility:protected/*protected and package*/ modality:FINAL <> ($this:kotlin.Enum<.TestFinalEnum1>) returnType:kotlin.Unit [fake_override] @@ -71,7 +71,7 @@ FILE fqName: fileName:/enumClassModality.kt CONSTRUCTOR visibility:private <> (x:kotlin.Int) returnType:.TestFinalEnum2 [primary] VALUE_PARAMETER name:x index:0 type:kotlin.Int BLOCK_BODY - ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) [primary] declared in kotlin.Enum' + ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) declared in kotlin.Enum' : .TestFinalEnum2 INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_CLASS name:TestFinalEnum2 modality:FINAL visibility:public superTypes:[kotlin.Enum<.TestFinalEnum2>]' PROPERTY name:x visibility:public modality:FINAL [val] @@ -87,13 +87,13 @@ FILE fqName: fileName:/enumClassModality.kt receiver: GET_VAR ': .TestFinalEnum2 declared in .TestFinalEnum2.' type=.TestFinalEnum2 origin=null ENUM_ENTRY name:X1 init: EXPRESSION_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor (x: kotlin.Int) [primary] declared in .TestFinalEnum2' + ENUM_CONSTRUCTOR_CALL 'private constructor (x: kotlin.Int) declared in .TestFinalEnum2' x: CONST Int type=kotlin.Int value=1 PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestFinalEnum2>) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: @@ -101,7 +101,7 @@ FILE fqName: fileName:/enumClassModality.kt $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestFinalEnum2> PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestFinalEnum2>) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: @@ -113,12 +113,12 @@ FILE fqName: fileName:/enumClassModality.kt $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestFinalEnum2> FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestFinalEnum2>, other:.TestFinalEnum2) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: E of kotlin.Enum): kotlin.Int [operator] declared in kotlin.Enum + public final fun compareTo (other: E of kotlin.Enum): kotlin.Int declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestFinalEnum2> VALUE_PARAMETER name:other index:0 type:.TestFinalEnum2 FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestFinalEnum2>, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Enum + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestFinalEnum2> VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:finalize visibility:protected/*protected and package*/ modality:FINAL <> ($this:kotlin.Enum<.TestFinalEnum2>) returnType:kotlin.Unit [fake_override] @@ -150,12 +150,12 @@ FILE fqName: fileName:/enumClassModality.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.TestFinalEnum3 CONSTRUCTOR visibility:private <> () returnType:.TestFinalEnum3 [primary] BLOCK_BODY - ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) [primary] declared in kotlin.Enum' + ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) declared in kotlin.Enum' : .TestFinalEnum3 INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_CLASS name:TestFinalEnum3 modality:FINAL visibility:public superTypes:[kotlin.Enum<.TestFinalEnum3>]' ENUM_ENTRY name:X1 init: EXPRESSION_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor () [primary] declared in .TestFinalEnum3' + ENUM_CONSTRUCTOR_CALL 'private constructor () declared in .TestFinalEnum3' FUN name:doStuff visibility:public modality:FINAL <> ($this:.TestFinalEnum3) returnType:kotlin.Unit $this: VALUE_PARAMETER name: type:.TestFinalEnum3 BLOCK_BODY @@ -163,7 +163,7 @@ FILE fqName: fileName:/enumClassModality.kt annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestFinalEnum3>) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: @@ -171,7 +171,7 @@ FILE fqName: fileName:/enumClassModality.kt $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestFinalEnum3> PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestFinalEnum3>) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: @@ -183,12 +183,12 @@ FILE fqName: fileName:/enumClassModality.kt $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestFinalEnum3> FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestFinalEnum3>, other:.TestFinalEnum3) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: E of kotlin.Enum): kotlin.Int [operator] declared in kotlin.Enum + public final fun compareTo (other: E of kotlin.Enum): kotlin.Int declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestFinalEnum3> VALUE_PARAMETER name:other index:0 type:.TestFinalEnum3 FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestFinalEnum3>, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Enum + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestFinalEnum3> VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:finalize visibility:protected/*protected and package*/ modality:FINAL <> ($this:kotlin.Enum<.TestFinalEnum3>) returnType:kotlin.Unit [fake_override] @@ -220,22 +220,22 @@ FILE fqName: fileName:/enumClassModality.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.TestOpenEnum1 CONSTRUCTOR visibility:private <> () returnType:.TestOpenEnum1 [primary] BLOCK_BODY - ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) [primary] declared in kotlin.Enum' + ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) declared in kotlin.Enum' : .TestOpenEnum1 INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_CLASS name:TestOpenEnum1 modality:OPEN visibility:public superTypes:[kotlin.Enum<.TestOpenEnum1>]' ENUM_ENTRY name:X1 init: EXPRESSION_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor () [primary] declared in .TestOpenEnum1.X1' + ENUM_CONSTRUCTOR_CALL 'private constructor () declared in .TestOpenEnum1.X1' class: CLASS ENUM_ENTRY name:X1 modality:FINAL visibility:private superTypes:[.TestOpenEnum1] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.TestOpenEnum1.X1 CONSTRUCTOR visibility:private <> () returnType:.TestOpenEnum1.X1 [primary] BLOCK_BODY TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit - ENUM_CONSTRUCTOR_CALL 'private constructor () [primary] declared in .TestOpenEnum1' + ENUM_CONSTRUCTOR_CALL 'private constructor () declared in .TestOpenEnum1' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_ENTRY name:X1 modality:FINAL visibility:private superTypes:[.TestOpenEnum1]' FUN name:toString visibility:public modality:OPEN <> ($this:.TestOpenEnum1.X1) returnType:kotlin.String overridden: - public open fun toString (): kotlin.String [fake_override] declared in .TestOpenEnum1 + public open fun toString (): kotlin.String declared in .TestOpenEnum1 $this: VALUE_PARAMETER name: type:.TestOpenEnum1.X1 BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun toString (): kotlin.String declared in .TestOpenEnum1.X1' @@ -244,51 +244,51 @@ FILE fqName: fileName:/enumClassModality.kt annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [fake_override,val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestOpenEnum1>) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: - public final fun (): kotlin.String [fake_override] declared in .TestOpenEnum1 + public final fun (): kotlin.String declared in .TestOpenEnum1 $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestOpenEnum1> PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [fake_override,val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestOpenEnum1>) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final fun (): kotlin.Int [fake_override] declared in .TestOpenEnum1 + public final fun (): kotlin.Int declared in .TestOpenEnum1 $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestOpenEnum1> FUN FAKE_OVERRIDE name:clone visibility:protected modality:FINAL <> ($this:kotlin.Enum<.TestOpenEnum1>) returnType:kotlin.Any [fake_override] overridden: - protected final fun clone (): kotlin.Any [fake_override] declared in .TestOpenEnum1 + protected final fun clone (): kotlin.Any declared in .TestOpenEnum1 $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestOpenEnum1> FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestOpenEnum1>, other:.TestOpenEnum1) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: .TestOpenEnum1): kotlin.Int [fake_override,operator] declared in .TestOpenEnum1 + public final fun compareTo (other: .TestOpenEnum1): kotlin.Int declared in .TestOpenEnum1 $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestOpenEnum1> VALUE_PARAMETER name:other index:0 type:.TestOpenEnum1 FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestOpenEnum1>, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .TestOpenEnum1 + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in .TestOpenEnum1 $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestOpenEnum1> VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:finalize visibility:protected/*protected and package*/ modality:FINAL <> ($this:kotlin.Enum<.TestOpenEnum1>) returnType:kotlin.Unit [fake_override] overridden: - protected/*protected and package*/ final fun finalize (): kotlin.Unit [fake_override] declared in .TestOpenEnum1 + protected/*protected and package*/ final fun finalize (): kotlin.Unit declared in .TestOpenEnum1 $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestOpenEnum1> FUN FAKE_OVERRIDE name:getDeclaringClass visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestOpenEnum1>) returnType:@[FlexibleNullability] java.lang.Class<@[FlexibleNullability] .TestOpenEnum1?>? [fake_override] overridden: - public final fun getDeclaringClass (): @[FlexibleNullability] java.lang.Class<@[FlexibleNullability] .TestOpenEnum1?>? [fake_override] declared in .TestOpenEnum1 + public final fun getDeclaringClass (): @[FlexibleNullability] java.lang.Class<@[FlexibleNullability] .TestOpenEnum1?>? declared in .TestOpenEnum1 $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestOpenEnum1> FUN FAKE_OVERRIDE name:hashCode visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestOpenEnum1>) returnType:kotlin.Int [fake_override] overridden: - public final fun hashCode (): kotlin.Int [fake_override] declared in .TestOpenEnum1 + public final fun hashCode (): kotlin.Int declared in .TestOpenEnum1 $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestOpenEnum1> PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestOpenEnum1>) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: @@ -296,7 +296,7 @@ FILE fqName: fileName:/enumClassModality.kt $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestOpenEnum1> PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestOpenEnum1>) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: @@ -308,12 +308,12 @@ FILE fqName: fileName:/enumClassModality.kt $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestOpenEnum1> FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestOpenEnum1>, other:.TestOpenEnum1) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: E of kotlin.Enum): kotlin.Int [operator] declared in kotlin.Enum + public final fun compareTo (other: E of kotlin.Enum): kotlin.Int declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestOpenEnum1> VALUE_PARAMETER name:other index:0 type:.TestOpenEnum1 FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestOpenEnum1>, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Enum + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestOpenEnum1> VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:finalize visibility:protected/*protected and package*/ modality:FINAL <> ($this:kotlin.Enum<.TestOpenEnum1>) returnType:kotlin.Unit [fake_override] @@ -345,18 +345,18 @@ FILE fqName: fileName:/enumClassModality.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.TestOpenEnum2 CONSTRUCTOR visibility:private <> () returnType:.TestOpenEnum2 [primary] BLOCK_BODY - ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) [primary] declared in kotlin.Enum' + ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) declared in kotlin.Enum' : .TestOpenEnum2 INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_CLASS name:TestOpenEnum2 modality:OPEN visibility:public superTypes:[kotlin.Enum<.TestOpenEnum2>]' ENUM_ENTRY name:X1 init: EXPRESSION_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor () [primary] declared in .TestOpenEnum2.X1' + ENUM_CONSTRUCTOR_CALL 'private constructor () declared in .TestOpenEnum2.X1' class: CLASS ENUM_ENTRY name:X1 modality:FINAL visibility:private superTypes:[.TestOpenEnum2] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.TestOpenEnum2.X1 CONSTRUCTOR visibility:private <> () returnType:.TestOpenEnum2.X1 [primary] BLOCK_BODY TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit - ENUM_CONSTRUCTOR_CALL 'private constructor () [primary] declared in .TestOpenEnum2' + ENUM_CONSTRUCTOR_CALL 'private constructor () declared in .TestOpenEnum2' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_ENTRY name:X1 modality:FINAL visibility:private superTypes:[.TestOpenEnum2]' FUN name:foo visibility:public modality:OPEN <> ($this:.TestOpenEnum2.X1) returnType:kotlin.Unit overridden: @@ -367,49 +367,49 @@ FILE fqName: fileName:/enumClassModality.kt annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [fake_override,val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestOpenEnum2>) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: - public final fun (): kotlin.String [fake_override] declared in .TestOpenEnum2 + public final fun (): kotlin.String declared in .TestOpenEnum2 $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestOpenEnum2> PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [fake_override,val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestOpenEnum2>) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final fun (): kotlin.Int [fake_override] declared in .TestOpenEnum2 + public final fun (): kotlin.Int declared in .TestOpenEnum2 $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestOpenEnum2> FUN FAKE_OVERRIDE name:clone visibility:protected modality:FINAL <> ($this:kotlin.Enum<.TestOpenEnum2>) returnType:kotlin.Any [fake_override] overridden: - protected final fun clone (): kotlin.Any [fake_override] declared in .TestOpenEnum2 + protected final fun clone (): kotlin.Any declared in .TestOpenEnum2 $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestOpenEnum2> FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestOpenEnum2>, other:.TestOpenEnum2) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: .TestOpenEnum2): kotlin.Int [fake_override,operator] declared in .TestOpenEnum2 + public final fun compareTo (other: .TestOpenEnum2): kotlin.Int declared in .TestOpenEnum2 $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestOpenEnum2> VALUE_PARAMETER name:other index:0 type:.TestOpenEnum2 FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestOpenEnum2>, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .TestOpenEnum2 + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in .TestOpenEnum2 $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestOpenEnum2> VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:finalize visibility:protected/*protected and package*/ modality:FINAL <> ($this:kotlin.Enum<.TestOpenEnum2>) returnType:kotlin.Unit [fake_override] overridden: - protected/*protected and package*/ final fun finalize (): kotlin.Unit [fake_override] declared in .TestOpenEnum2 + protected/*protected and package*/ final fun finalize (): kotlin.Unit declared in .TestOpenEnum2 $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestOpenEnum2> FUN FAKE_OVERRIDE name:getDeclaringClass visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestOpenEnum2>) returnType:@[FlexibleNullability] java.lang.Class<@[FlexibleNullability] .TestOpenEnum2?>? [fake_override] overridden: - public final fun getDeclaringClass (): @[FlexibleNullability] java.lang.Class<@[FlexibleNullability] .TestOpenEnum2?>? [fake_override] declared in .TestOpenEnum2 + public final fun getDeclaringClass (): @[FlexibleNullability] java.lang.Class<@[FlexibleNullability] .TestOpenEnum2?>? declared in .TestOpenEnum2 $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestOpenEnum2> FUN FAKE_OVERRIDE name:hashCode visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestOpenEnum2>) returnType:kotlin.Int [fake_override] overridden: - public final fun hashCode (): kotlin.Int [fake_override] declared in .TestOpenEnum2 + public final fun hashCode (): kotlin.Int declared in .TestOpenEnum2 $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestOpenEnum2> FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Enum<.TestOpenEnum2>) returnType:kotlin.String [fake_override] overridden: - public open fun toString (): kotlin.String [fake_override] declared in .TestOpenEnum2 + public open fun toString (): kotlin.String declared in .TestOpenEnum2 $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestOpenEnum2> FUN name:foo visibility:public modality:OPEN <> ($this:.TestOpenEnum2) returnType:kotlin.Unit $this: VALUE_PARAMETER name: type:.TestOpenEnum2 @@ -418,7 +418,7 @@ FILE fqName: fileName:/enumClassModality.kt annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestOpenEnum2>) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: @@ -426,7 +426,7 @@ FILE fqName: fileName:/enumClassModality.kt $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestOpenEnum2> PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestOpenEnum2>) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: @@ -438,12 +438,12 @@ FILE fqName: fileName:/enumClassModality.kt $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestOpenEnum2> FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestOpenEnum2>, other:.TestOpenEnum2) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: E of kotlin.Enum): kotlin.Int [operator] declared in kotlin.Enum + public final fun compareTo (other: E of kotlin.Enum): kotlin.Int declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestOpenEnum2> VALUE_PARAMETER name:other index:0 type:.TestOpenEnum2 FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestOpenEnum2>, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Enum + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestOpenEnum2> VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:finalize visibility:protected/*protected and package*/ modality:FINAL <> ($this:kotlin.Enum<.TestOpenEnum2>) returnType:kotlin.Unit [fake_override] @@ -475,18 +475,18 @@ FILE fqName: fileName:/enumClassModality.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.TestAbstractEnum1 CONSTRUCTOR visibility:private <> () returnType:.TestAbstractEnum1 [primary] BLOCK_BODY - ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) [primary] declared in kotlin.Enum' + ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) declared in kotlin.Enum' : .TestAbstractEnum1 INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_CLASS name:TestAbstractEnum1 modality:ABSTRACT visibility:public superTypes:[kotlin.Enum<.TestAbstractEnum1>]' ENUM_ENTRY name:X1 init: EXPRESSION_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor () [primary] declared in .TestAbstractEnum1.X1' + ENUM_CONSTRUCTOR_CALL 'private constructor () declared in .TestAbstractEnum1.X1' class: CLASS ENUM_ENTRY name:X1 modality:FINAL visibility:private superTypes:[.TestAbstractEnum1] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.TestAbstractEnum1.X1 CONSTRUCTOR visibility:private <> () returnType:.TestAbstractEnum1.X1 [primary] BLOCK_BODY TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit - ENUM_CONSTRUCTOR_CALL 'private constructor () [primary] declared in .TestAbstractEnum1' + ENUM_CONSTRUCTOR_CALL 'private constructor () declared in .TestAbstractEnum1' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_ENTRY name:X1 modality:FINAL visibility:private superTypes:[.TestAbstractEnum1]' FUN name:foo visibility:public modality:OPEN <> ($this:.TestAbstractEnum1.X1) returnType:kotlin.Unit overridden: @@ -497,49 +497,49 @@ FILE fqName: fileName:/enumClassModality.kt annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [fake_override,val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestAbstractEnum1>) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: - public final fun (): kotlin.String [fake_override] declared in .TestAbstractEnum1 + public final fun (): kotlin.String declared in .TestAbstractEnum1 $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestAbstractEnum1> PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [fake_override,val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestAbstractEnum1>) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final fun (): kotlin.Int [fake_override] declared in .TestAbstractEnum1 + public final fun (): kotlin.Int declared in .TestAbstractEnum1 $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestAbstractEnum1> FUN FAKE_OVERRIDE name:clone visibility:protected modality:FINAL <> ($this:kotlin.Enum<.TestAbstractEnum1>) returnType:kotlin.Any [fake_override] overridden: - protected final fun clone (): kotlin.Any [fake_override] declared in .TestAbstractEnum1 + protected final fun clone (): kotlin.Any declared in .TestAbstractEnum1 $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestAbstractEnum1> FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestAbstractEnum1>, other:.TestAbstractEnum1) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: .TestAbstractEnum1): kotlin.Int [fake_override,operator] declared in .TestAbstractEnum1 + public final fun compareTo (other: .TestAbstractEnum1): kotlin.Int declared in .TestAbstractEnum1 $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestAbstractEnum1> VALUE_PARAMETER name:other index:0 type:.TestAbstractEnum1 FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestAbstractEnum1>, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .TestAbstractEnum1 + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in .TestAbstractEnum1 $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestAbstractEnum1> VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:finalize visibility:protected/*protected and package*/ modality:FINAL <> ($this:kotlin.Enum<.TestAbstractEnum1>) returnType:kotlin.Unit [fake_override] overridden: - protected/*protected and package*/ final fun finalize (): kotlin.Unit [fake_override] declared in .TestAbstractEnum1 + protected/*protected and package*/ final fun finalize (): kotlin.Unit declared in .TestAbstractEnum1 $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestAbstractEnum1> FUN FAKE_OVERRIDE name:getDeclaringClass visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestAbstractEnum1>) returnType:@[FlexibleNullability] java.lang.Class<@[FlexibleNullability] .TestAbstractEnum1?>? [fake_override] overridden: - public final fun getDeclaringClass (): @[FlexibleNullability] java.lang.Class<@[FlexibleNullability] .TestAbstractEnum1?>? [fake_override] declared in .TestAbstractEnum1 + public final fun getDeclaringClass (): @[FlexibleNullability] java.lang.Class<@[FlexibleNullability] .TestAbstractEnum1?>? declared in .TestAbstractEnum1 $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestAbstractEnum1> FUN FAKE_OVERRIDE name:hashCode visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestAbstractEnum1>) returnType:kotlin.Int [fake_override] overridden: - public final fun hashCode (): kotlin.Int [fake_override] declared in .TestAbstractEnum1 + public final fun hashCode (): kotlin.Int declared in .TestAbstractEnum1 $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestAbstractEnum1> FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Enum<.TestAbstractEnum1>) returnType:kotlin.String [fake_override] overridden: - public open fun toString (): kotlin.String [fake_override] declared in .TestAbstractEnum1 + public open fun toString (): kotlin.String declared in .TestAbstractEnum1 $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestAbstractEnum1> FUN name:foo visibility:public modality:ABSTRACT <> ($this:.TestAbstractEnum1) returnType:kotlin.Unit $this: VALUE_PARAMETER name: type:.TestAbstractEnum1 @@ -547,7 +547,7 @@ FILE fqName: fileName:/enumClassModality.kt annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestAbstractEnum1>) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: @@ -555,7 +555,7 @@ FILE fqName: fileName:/enumClassModality.kt $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestAbstractEnum1> PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestAbstractEnum1>) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: @@ -567,12 +567,12 @@ FILE fqName: fileName:/enumClassModality.kt $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestAbstractEnum1> FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestAbstractEnum1>, other:.TestAbstractEnum1) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: E of kotlin.Enum): kotlin.Int [operator] declared in kotlin.Enum + public final fun compareTo (other: E of kotlin.Enum): kotlin.Int declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestAbstractEnum1> VALUE_PARAMETER name:other index:0 type:.TestAbstractEnum1 FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestAbstractEnum1>, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Enum + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestAbstractEnum1> VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:finalize visibility:protected/*protected and package*/ modality:FINAL <> ($this:kotlin.Enum<.TestAbstractEnum1>) returnType:kotlin.Unit [fake_override] @@ -606,7 +606,7 @@ FILE fqName: fileName:/enumClassModality.kt $this: VALUE_PARAMETER name: type:.IFoo 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -621,77 +621,77 @@ FILE fqName: fileName:/enumClassModality.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.TestAbstractEnum2 CONSTRUCTOR visibility:private <> () returnType:.TestAbstractEnum2 [primary] BLOCK_BODY - ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) [primary] declared in kotlin.Enum' + ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) declared in kotlin.Enum' : .TestAbstractEnum2 INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_CLASS name:TestAbstractEnum2 modality:ABSTRACT visibility:public superTypes:[kotlin.Enum<.TestAbstractEnum2>; .IFoo]' ENUM_ENTRY name:X1 init: EXPRESSION_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor () [primary] declared in .TestAbstractEnum2.X1' + ENUM_CONSTRUCTOR_CALL 'private constructor () declared in .TestAbstractEnum2.X1' class: CLASS ENUM_ENTRY name:X1 modality:FINAL visibility:private superTypes:[.TestAbstractEnum2] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.TestAbstractEnum2.X1 CONSTRUCTOR visibility:private <> () returnType:.TestAbstractEnum2.X1 [primary] BLOCK_BODY TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit - ENUM_CONSTRUCTOR_CALL 'private constructor () [primary] declared in .TestAbstractEnum2' + ENUM_CONSTRUCTOR_CALL 'private constructor () declared in .TestAbstractEnum2' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_ENTRY name:X1 modality:FINAL visibility:private superTypes:[.TestAbstractEnum2]' FUN name:foo visibility:public modality:OPEN <> ($this:.TestAbstractEnum2.X1) returnType:kotlin.Unit overridden: - public abstract fun foo (): kotlin.Unit [fake_override] declared in .TestAbstractEnum2 + public abstract fun foo (): kotlin.Unit declared in .TestAbstractEnum2 $this: VALUE_PARAMETER name: type:.TestAbstractEnum2.X1 BLOCK_BODY PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [fake_override,val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestAbstractEnum2>) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: - public final fun (): kotlin.String [fake_override] declared in .TestAbstractEnum2 + public final fun (): kotlin.String declared in .TestAbstractEnum2 $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestAbstractEnum2> PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [fake_override,val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestAbstractEnum2>) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final fun (): kotlin.Int [fake_override] declared in .TestAbstractEnum2 + public final fun (): kotlin.Int declared in .TestAbstractEnum2 $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestAbstractEnum2> FUN FAKE_OVERRIDE name:clone visibility:protected modality:FINAL <> ($this:kotlin.Enum<.TestAbstractEnum2>) returnType:kotlin.Any [fake_override] overridden: - protected final fun clone (): kotlin.Any [fake_override] declared in .TestAbstractEnum2 + protected final fun clone (): kotlin.Any declared in .TestAbstractEnum2 $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestAbstractEnum2> FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestAbstractEnum2>, other:.TestAbstractEnum2) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: .TestAbstractEnum2): kotlin.Int [fake_override,operator] declared in .TestAbstractEnum2 + public final fun compareTo (other: .TestAbstractEnum2): kotlin.Int declared in .TestAbstractEnum2 $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestAbstractEnum2> VALUE_PARAMETER name:other index:0 type:.TestAbstractEnum2 FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestAbstractEnum2>, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .TestAbstractEnum2 + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in .TestAbstractEnum2 $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestAbstractEnum2> VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:finalize visibility:protected/*protected and package*/ modality:FINAL <> ($this:kotlin.Enum<.TestAbstractEnum2>) returnType:kotlin.Unit [fake_override] overridden: - protected/*protected and package*/ final fun finalize (): kotlin.Unit [fake_override] declared in .TestAbstractEnum2 + protected/*protected and package*/ final fun finalize (): kotlin.Unit declared in .TestAbstractEnum2 $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestAbstractEnum2> FUN FAKE_OVERRIDE name:getDeclaringClass visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestAbstractEnum2>) returnType:@[FlexibleNullability] java.lang.Class<@[FlexibleNullability] .TestAbstractEnum2?>? [fake_override] overridden: - public final fun getDeclaringClass (): @[FlexibleNullability] java.lang.Class<@[FlexibleNullability] .TestAbstractEnum2?>? [fake_override] declared in .TestAbstractEnum2 + public final fun getDeclaringClass (): @[FlexibleNullability] java.lang.Class<@[FlexibleNullability] .TestAbstractEnum2?>? declared in .TestAbstractEnum2 $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestAbstractEnum2> FUN FAKE_OVERRIDE name:hashCode visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestAbstractEnum2>) returnType:kotlin.Int [fake_override] overridden: - public final fun hashCode (): kotlin.Int [fake_override] declared in .TestAbstractEnum2 + public final fun hashCode (): kotlin.Int declared in .TestAbstractEnum2 $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestAbstractEnum2> FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Enum<.TestAbstractEnum2>) returnType:kotlin.String [fake_override] overridden: - public open fun toString (): kotlin.String [fake_override] declared in .TestAbstractEnum2 + public open fun toString (): kotlin.String declared in .TestAbstractEnum2 $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestAbstractEnum2> PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestAbstractEnum2>) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: @@ -699,7 +699,7 @@ FILE fqName: fileName:/enumClassModality.kt $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestAbstractEnum2> PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestAbstractEnum2>) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: @@ -711,13 +711,13 @@ FILE fqName: fileName:/enumClassModality.kt $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestAbstractEnum2> FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestAbstractEnum2>, other:.TestAbstractEnum2) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: E of kotlin.Enum): kotlin.Int [operator] declared in kotlin.Enum + public final fun compareTo (other: E of kotlin.Enum): kotlin.Int declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestAbstractEnum2> VALUE_PARAMETER name:other index:0 type:.TestAbstractEnum2 FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestAbstractEnum2>, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Enum - public open fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .IFoo + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Enum + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IFoo $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestAbstractEnum2> VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:finalize visibility:protected/*protected and package*/ modality:FINAL <> ($this:kotlin.Enum<.TestAbstractEnum2>) returnType:kotlin.Unit [fake_override] @@ -731,12 +731,12 @@ FILE fqName: fileName:/enumClassModality.kt FUN FAKE_OVERRIDE name:hashCode visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestAbstractEnum2>) returnType:kotlin.Int [fake_override] overridden: public final fun hashCode (): kotlin.Int declared in kotlin.Enum - public open fun hashCode (): kotlin.Int [fake_override] declared in .IFoo + public open fun hashCode (): kotlin.Int declared in .IFoo $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestAbstractEnum2> FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Enum<.TestAbstractEnum2>) returnType:kotlin.String [fake_override] overridden: public open fun toString (): kotlin.String declared in kotlin.Enum - public open fun toString (): kotlin.String [fake_override] declared in .IFoo + public open fun toString (): kotlin.String declared in .IFoo $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestAbstractEnum2> FUN FAKE_OVERRIDE name:foo visibility:public modality:ABSTRACT <> ($this:.IFoo) returnType:kotlin.Unit [fake_override] overridden: diff --git a/compiler/testData/ir/irText/classes/enumEntries.fir.ir.txt b/compiler/testData/ir/irText/classes/enumEntries.fir.ir.txt index 9be3e1a0f9c..bdabe806da6 100644 --- a/compiler/testData/ir/irText/classes/enumEntries.fir.ir.txt +++ b/compiler/testData/ir/irText/classes/enumEntries.fir.ir.txt @@ -3,15 +3,15 @@ FILE fqName: fileName:/enumEntries.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.MyEnum CONSTRUCTOR visibility:private <> () returnType:.MyEnum [primary] BLOCK_BODY - ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) [primary] declared in kotlin.Enum' + ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) declared in kotlin.Enum' : .MyEnum INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_CLASS name:MyEnum modality:FINAL visibility:public superTypes:[kotlin.Enum<.MyEnum>]' ENUM_ENTRY name:Ok init: EXPRESSION_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor () [primary] declared in .MyEnum' + ENUM_CONSTRUCTOR_CALL 'private constructor () declared in .MyEnum' ENUM_ENTRY name:Nope init: EXPRESSION_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor () [primary] declared in .MyEnum' + ENUM_CONSTRUCTOR_CALL 'private constructor () declared in .MyEnum' FUN ENUM_CLASS_SPECIAL_MEMBER name:values visibility:public modality:FINAL <> () returnType:kotlin.Array<.MyEnum> SYNTHETIC_BODY kind=ENUM_VALUES FUN ENUM_CLASS_SPECIAL_MEMBER name:valueOf visibility:public modality:FINAL <> (value:kotlin.String) returnType:.MyEnum @@ -27,12 +27,12 @@ FILE fqName: fileName:/enumEntries.kt $this: VALUE_PARAMETER name: type:kotlin.Enum FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum, other:.MyEnum) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: E of kotlin.Enum): kotlin.Int [operator] declared in kotlin.Enum + public final fun compareTo (other: E of kotlin.Enum): kotlin.Int declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:.MyEnum FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Enum + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:hashCode visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] @@ -47,7 +47,7 @@ FILE fqName: fileName:/enumEntries.kt annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: @@ -55,7 +55,7 @@ FILE fqName: fileName:/enumEntries.kt $this: VALUE_PARAMETER name: type:kotlin.Enum PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: diff --git a/compiler/testData/ir/irText/classes/enumEntries.ir.txt b/compiler/testData/ir/irText/classes/enumEntries.ir.txt index 77f27e46e05..c86973c2bb6 100644 --- a/compiler/testData/ir/irText/classes/enumEntries.ir.txt +++ b/compiler/testData/ir/irText/classes/enumEntries.ir.txt @@ -3,20 +3,20 @@ FILE fqName: fileName:/enumEntries.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.MyEnum CONSTRUCTOR visibility:private <> () returnType:.MyEnum [primary] BLOCK_BODY - ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) [primary] declared in kotlin.Enum' + ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) declared in kotlin.Enum' : .MyEnum INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_CLASS name:MyEnum modality:FINAL visibility:public superTypes:[kotlin.Enum<.MyEnum>]' ENUM_ENTRY name:Ok init: EXPRESSION_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor () [primary] declared in .MyEnum' + ENUM_CONSTRUCTOR_CALL 'private constructor () declared in .MyEnum' ENUM_ENTRY name:Nope init: EXPRESSION_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor () [primary] declared in .MyEnum' + ENUM_CONSTRUCTOR_CALL 'private constructor () declared in .MyEnum' PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.MyEnum>) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: @@ -24,7 +24,7 @@ FILE fqName: fileName:/enumEntries.kt $this: VALUE_PARAMETER name: type:kotlin.Enum<.MyEnum> PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.MyEnum>) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: @@ -36,12 +36,12 @@ FILE fqName: fileName:/enumEntries.kt $this: VALUE_PARAMETER name: type:kotlin.Enum<.MyEnum> FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum<.MyEnum>, other:.MyEnum) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: E of kotlin.Enum): kotlin.Int [operator] declared in kotlin.Enum + public final fun compareTo (other: E of kotlin.Enum): kotlin.Int declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum<.MyEnum> VALUE_PARAMETER name:other index:0 type:.MyEnum FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum<.MyEnum>, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Enum + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum<.MyEnum> VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:finalize visibility:protected/*protected and package*/ modality:FINAL <> ($this:kotlin.Enum<.MyEnum>) returnType:kotlin.Unit [fake_override] diff --git a/compiler/testData/ir/irText/classes/enumWithMultipleCtors.fir.ir.txt b/compiler/testData/ir/irText/classes/enumWithMultipleCtors.fir.ir.txt index 7d5e7387f9b..333bb034c7f 100644 --- a/compiler/testData/ir/irText/classes/enumWithMultipleCtors.fir.ir.txt +++ b/compiler/testData/ir/irText/classes/enumWithMultipleCtors.fir.ir.txt @@ -7,7 +7,7 @@ FILE fqName: fileName:/enumWithMultipleCtors.kt arg: CONST String type=kotlin.String value="asd" ENUM_ENTRY name:Y init: EXPRESSION_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor () [primary] declared in .A.Y' + ENUM_CONSTRUCTOR_CALL 'private constructor () declared in .A.Y' class: CLASS ENUM_ENTRY name:Y modality:FINAL visibility:private superTypes:[.A] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.A.Y CONSTRUCTOR visibility:private <> () returnType:.A.Y [primary] @@ -20,13 +20,13 @@ FILE fqName: fileName:/enumWithMultipleCtors.kt $this: VALUE_PARAMETER name: type:.A.Y BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun f (): kotlin.String declared in .A.Y' - CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS + CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS $this: CALL 'public open fun f (): kotlin.String declared in .A' superQualifier='CLASS ENUM_CLASS name:A modality:OPEN visibility:public superTypes:[kotlin.Enum<.A>]' type=kotlin.String origin=null $this: GET_VAR ': .A.Y declared in .A.Y.f' type=.A.Y origin=null other: CONST String type=kotlin.String value="#Y" PROPERTY FAKE_OVERRIDE name:prop1 visibility:public modality:FINAL [fake_override,val] overridden: - public final prop1: kotlin.String [val] + public final prop1: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.A) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:prop1 visibility:public modality:FINAL [fake_override,val] overridden: @@ -34,7 +34,7 @@ FILE fqName: fileName:/enumWithMultipleCtors.kt $this: VALUE_PARAMETER name: type:.A PROPERTY FAKE_OVERRIDE name:prop2 visibility:public modality:FINAL [fake_override,val] overridden: - public final prop2: kotlin.String [val] + public final prop2: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.A) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:prop2 visibility:public modality:FINAL [fake_override,val] overridden: @@ -42,7 +42,7 @@ FILE fqName: fileName:/enumWithMultipleCtors.kt $this: VALUE_PARAMETER name: type:.A PROPERTY FAKE_OVERRIDE name:prop3 visibility:public modality:FINAL [fake_override,var] overridden: - public final prop3: kotlin.String [var] + public final prop3: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.A) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:prop3 visibility:public modality:FINAL [fake_override,var] overridden: @@ -56,51 +56,51 @@ FILE fqName: fileName:/enumWithMultipleCtors.kt VALUE_PARAMETER name: index:0 type:kotlin.String FUN FAKE_OVERRIDE name:clone visibility:protected modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Any [fake_override] overridden: - protected final fun clone (): kotlin.Any [fake_override] declared in .A + protected final fun clone (): kotlin.Any declared in .A $this: VALUE_PARAMETER name: type:kotlin.Enum FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum, other:.A) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: .A): kotlin.Int [fake_override,operator] declared in .A + public final fun compareTo (other: .A): kotlin.Int declared in .A $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:.A FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .A + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in .A $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:hashCode visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] overridden: - public final fun hashCode (): kotlin.Int [fake_override] declared in .A + public final fun hashCode (): kotlin.Int declared in .A $this: VALUE_PARAMETER name: type:kotlin.Enum FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Enum) returnType:kotlin.String [fake_override] overridden: - public open fun toString (): kotlin.String [fake_override] declared in .A + public open fun toString (): kotlin.String declared in .A $this: VALUE_PARAMETER name: type:kotlin.Enum PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [fake_override,val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: - public final fun (): kotlin.String [fake_override] declared in .A + public final fun (): kotlin.String declared in .A $this: VALUE_PARAMETER name: type:kotlin.Enum PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [fake_override,val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final fun (): kotlin.Int [fake_override] declared in .A + public final fun (): kotlin.Int declared in .A $this: VALUE_PARAMETER name: type:kotlin.Enum FUN FAKE_OVERRIDE name:getDeclaringClass visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:@[FlexibleNullability] java.lang.Class<@[FlexibleNullability] .A?>? [fake_override] overridden: - public final fun getDeclaringClass (): @[FlexibleNullability] java.lang.Class<@[FlexibleNullability] .A?>? [fake_override] declared in .A + public final fun getDeclaringClass (): @[FlexibleNullability] java.lang.Class<@[FlexibleNullability] .A?>? declared in .A $this: VALUE_PARAMETER name: type:kotlin.Enum FUN FAKE_OVERRIDE name:finalize visibility:protected/*protected and package*/ modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Unit [fake_override] overridden: - protected/*protected and package*/ final fun finalize (): kotlin.Unit [fake_override] declared in .A + protected/*protected and package*/ final fun finalize (): kotlin.Unit declared in .A $this: VALUE_PARAMETER name: type:kotlin.Enum ENUM_ENTRY name:Z init: EXPRESSION_BODY @@ -148,7 +148,7 @@ FILE fqName: fileName:/enumWithMultipleCtors.kt CONSTRUCTOR visibility:private <> (arg:kotlin.String) returnType:.A VALUE_PARAMETER name:arg index:0 type:kotlin.String BLOCK_BODY - ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) [primary] declared in kotlin.Enum' + ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) declared in kotlin.Enum' : .A INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_CLASS name:A modality:OPEN visibility:public superTypes:[kotlin.Enum<.A>]' SET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:prop1 type:kotlin.String visibility:private [final]' type=kotlin.Unit origin=null @@ -156,7 +156,7 @@ FILE fqName: fileName:/enumWithMultipleCtors.kt value: GET_VAR 'arg: kotlin.String declared in .A.' type=kotlin.String origin=null CONSTRUCTOR visibility:private <> () returnType:.A BLOCK_BODY - ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) [primary] declared in kotlin.Enum' + ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) declared in kotlin.Enum' : .A INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_CLASS name:A modality:OPEN visibility:public superTypes:[kotlin.Enum<.A>]' SET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:prop1 type:kotlin.String visibility:private [final]' type=kotlin.Unit origin=null @@ -202,12 +202,12 @@ FILE fqName: fileName:/enumWithMultipleCtors.kt $this: VALUE_PARAMETER name: type:kotlin.Enum FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum, other:.A) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: E of kotlin.Enum): kotlin.Int [operator] declared in kotlin.Enum + public final fun compareTo (other: E of kotlin.Enum): kotlin.Int declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:.A FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Enum + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:hashCode visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] @@ -222,7 +222,7 @@ FILE fqName: fileName:/enumWithMultipleCtors.kt annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: @@ -230,7 +230,7 @@ FILE fqName: fileName:/enumWithMultipleCtors.kt $this: VALUE_PARAMETER name: type:kotlin.Enum PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: diff --git a/compiler/testData/ir/irText/classes/enumWithMultipleCtors.ir.txt b/compiler/testData/ir/irText/classes/enumWithMultipleCtors.ir.txt index 2a9eea5f4bc..c51c7dfd547 100644 --- a/compiler/testData/ir/irText/classes/enumWithMultipleCtors.ir.txt +++ b/compiler/testData/ir/irText/classes/enumWithMultipleCtors.ir.txt @@ -7,7 +7,7 @@ FILE fqName: fileName:/enumWithMultipleCtors.kt arg: CONST String type=kotlin.String value="asd" ENUM_ENTRY name:Y init: EXPRESSION_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor () [primary] declared in .A.Y' + ENUM_CONSTRUCTOR_CALL 'private constructor () declared in .A.Y' class: CLASS ENUM_ENTRY name:Y modality:FINAL visibility:private superTypes:[.A] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.A.Y CONSTRUCTOR visibility:private <> () returnType:.A.Y [primary] @@ -21,13 +21,13 @@ FILE fqName: fileName:/enumWithMultipleCtors.kt $this: VALUE_PARAMETER name: type:.A.Y BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun f (): kotlin.String declared in .A.Y' - CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS + CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS $this: CALL 'public open fun f (): kotlin.String declared in .A' superQualifier='CLASS ENUM_CLASS name:A modality:OPEN visibility:public superTypes:[kotlin.Enum<.A>]' type=kotlin.String origin=null $this: GET_VAR ': .A.Y declared in .A.Y.f' type=.A.Y origin=null other: CONST String type=kotlin.String value="#Y" PROPERTY FAKE_OVERRIDE name:prop1 visibility:public modality:FINAL [fake_override,val] overridden: - public final prop1: kotlin.String [val] + public final prop1: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.A) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:prop1 visibility:public modality:FINAL [fake_override,val] overridden: @@ -35,7 +35,7 @@ FILE fqName: fileName:/enumWithMultipleCtors.kt $this: VALUE_PARAMETER name: type:.A PROPERTY FAKE_OVERRIDE name:prop2 visibility:public modality:FINAL [fake_override,val] overridden: - public final prop2: kotlin.String [val] + public final prop2: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.A) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:prop2 visibility:public modality:FINAL [fake_override,val] overridden: @@ -43,7 +43,7 @@ FILE fqName: fileName:/enumWithMultipleCtors.kt $this: VALUE_PARAMETER name: type:.A PROPERTY FAKE_OVERRIDE name:prop3 visibility:public modality:FINAL [fake_override,var] overridden: - public final prop3: kotlin.String [var] + public final prop3: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.A) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:prop3 visibility:public modality:FINAL [fake_override,var] overridden: @@ -59,49 +59,49 @@ FILE fqName: fileName:/enumWithMultipleCtors.kt annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [fake_override,val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.A>) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: - public final fun (): kotlin.String [fake_override] declared in .A + public final fun (): kotlin.String declared in .A $this: VALUE_PARAMETER name: type:kotlin.Enum<.A> PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [fake_override,val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.A>) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final fun (): kotlin.Int [fake_override] declared in .A + public final fun (): kotlin.Int declared in .A $this: VALUE_PARAMETER name: type:kotlin.Enum<.A> FUN FAKE_OVERRIDE name:clone visibility:protected modality:FINAL <> ($this:kotlin.Enum<.A>) returnType:kotlin.Any [fake_override] overridden: - protected final fun clone (): kotlin.Any [fake_override] declared in .A + protected final fun clone (): kotlin.Any declared in .A $this: VALUE_PARAMETER name: type:kotlin.Enum<.A> FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum<.A>, other:.A) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: .A): kotlin.Int [fake_override,operator] declared in .A + public final fun compareTo (other: .A): kotlin.Int declared in .A $this: VALUE_PARAMETER name: type:kotlin.Enum<.A> VALUE_PARAMETER name:other index:0 type:.A FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum<.A>, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .A + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in .A $this: VALUE_PARAMETER name: type:kotlin.Enum<.A> VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:finalize visibility:protected/*protected and package*/ modality:FINAL <> ($this:kotlin.Enum<.A>) returnType:kotlin.Unit [fake_override] overridden: - protected/*protected and package*/ final fun finalize (): kotlin.Unit [fake_override] declared in .A + protected/*protected and package*/ final fun finalize (): kotlin.Unit declared in .A $this: VALUE_PARAMETER name: type:kotlin.Enum<.A> FUN FAKE_OVERRIDE name:getDeclaringClass visibility:public modality:FINAL <> ($this:kotlin.Enum<.A>) returnType:@[FlexibleNullability] java.lang.Class<@[FlexibleNullability] .A?>? [fake_override] overridden: - public final fun getDeclaringClass (): @[FlexibleNullability] java.lang.Class<@[FlexibleNullability] .A?>? [fake_override] declared in .A + public final fun getDeclaringClass (): @[FlexibleNullability] java.lang.Class<@[FlexibleNullability] .A?>? declared in .A $this: VALUE_PARAMETER name: type:kotlin.Enum<.A> FUN FAKE_OVERRIDE name:hashCode visibility:public modality:FINAL <> ($this:kotlin.Enum<.A>) returnType:kotlin.Int [fake_override] overridden: - public final fun hashCode (): kotlin.Int [fake_override] declared in .A + public final fun hashCode (): kotlin.Int declared in .A $this: VALUE_PARAMETER name: type:kotlin.Enum<.A> FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Enum<.A>) returnType:kotlin.String [fake_override] overridden: - public open fun toString (): kotlin.String [fake_override] declared in .A + public open fun toString (): kotlin.String declared in .A $this: VALUE_PARAMETER name: type:kotlin.Enum<.A> ENUM_ENTRY name:Z init: EXPRESSION_BODY @@ -149,7 +149,7 @@ FILE fqName: fileName:/enumWithMultipleCtors.kt CONSTRUCTOR visibility:private <> (arg:kotlin.String) returnType:.A VALUE_PARAMETER name:arg index:0 type:kotlin.String BLOCK_BODY - ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) [primary] declared in kotlin.Enum' + ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) declared in kotlin.Enum' : .A INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_CLASS name:A modality:OPEN visibility:public superTypes:[kotlin.Enum<.A>]' SET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:prop1 type:kotlin.String visibility:private [final]' type=kotlin.Unit origin=null @@ -157,7 +157,7 @@ FILE fqName: fileName:/enumWithMultipleCtors.kt value: GET_VAR 'arg: kotlin.String declared in .A.' type=kotlin.String origin=null CONSTRUCTOR visibility:private <> () returnType:.A BLOCK_BODY - ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) [primary] declared in kotlin.Enum' + ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) declared in kotlin.Enum' : .A INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_CLASS name:A modality:OPEN visibility:public superTypes:[kotlin.Enum<.A>]' SET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:prop1 type:kotlin.String visibility:private [final]' type=kotlin.Unit origin=null @@ -192,7 +192,7 @@ FILE fqName: fileName:/enumWithMultipleCtors.kt annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.A>) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: @@ -200,7 +200,7 @@ FILE fqName: fileName:/enumWithMultipleCtors.kt $this: VALUE_PARAMETER name: type:kotlin.Enum<.A> PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.A>) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: @@ -212,12 +212,12 @@ FILE fqName: fileName:/enumWithMultipleCtors.kt $this: VALUE_PARAMETER name: type:kotlin.Enum<.A> FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum<.A>, other:.A) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: E of kotlin.Enum): kotlin.Int [operator] declared in kotlin.Enum + public final fun compareTo (other: E of kotlin.Enum): kotlin.Int declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum<.A> VALUE_PARAMETER name:other index:0 type:.A FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum<.A>, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Enum + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum<.A> VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:finalize visibility:protected/*protected and package*/ modality:FINAL <> ($this:kotlin.Enum<.A>) returnType:kotlin.Unit [fake_override] diff --git a/compiler/testData/ir/irText/classes/enumWithSecondaryCtor.fir.ir.txt b/compiler/testData/ir/irText/classes/enumWithSecondaryCtor.fir.ir.txt index 6dd917c2ebb..e9db2e4057e 100644 --- a/compiler/testData/ir/irText/classes/enumWithSecondaryCtor.fir.ir.txt +++ b/compiler/testData/ir/irText/classes/enumWithSecondaryCtor.fir.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/enumWithSecondaryCtor.kt CONSTRUCTOR visibility:private <> (x:kotlin.Int) returnType:.Test0 [primary] VALUE_PARAMETER name:x index:0 type:kotlin.Int BLOCK_BODY - ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) [primary] declared in kotlin.Enum' + ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) declared in kotlin.Enum' : .Test0 INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_CLASS name:Test0 modality:FINAL visibility:public superTypes:[kotlin.Enum<.Test0>]' PROPERTY name:x visibility:public modality:FINAL [val] @@ -23,7 +23,7 @@ FILE fqName: fileName:/enumWithSecondaryCtor.kt ENUM_CONSTRUCTOR_CALL 'private constructor () declared in .Test0' CONSTRUCTOR visibility:private <> () returnType:.Test0 BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'private constructor (x: kotlin.Int) [primary] declared in .Test0' + DELEGATING_CONSTRUCTOR_CALL 'private constructor (x: kotlin.Int) declared in .Test0' x: CONST Int type=kotlin.Int value=0 FUN ENUM_CLASS_SPECIAL_MEMBER name:values visibility:public modality:FINAL <> () returnType:kotlin.Array<.Test0> SYNTHETIC_BODY kind=ENUM_VALUES @@ -40,12 +40,12 @@ FILE fqName: fileName:/enumWithSecondaryCtor.kt $this: VALUE_PARAMETER name: type:kotlin.Enum FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum, other:.Test0) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: E of kotlin.Enum): kotlin.Int [operator] declared in kotlin.Enum + public final fun compareTo (other: E of kotlin.Enum): kotlin.Int declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:.Test0 FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Enum + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:hashCode visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] @@ -60,7 +60,7 @@ FILE fqName: fileName:/enumWithSecondaryCtor.kt annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: @@ -68,7 +68,7 @@ FILE fqName: fileName:/enumWithSecondaryCtor.kt $this: VALUE_PARAMETER name: type:kotlin.Enum PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: @@ -87,7 +87,7 @@ FILE fqName: fileName:/enumWithSecondaryCtor.kt CONSTRUCTOR visibility:private <> (x:kotlin.Int) returnType:.Test1 [primary] VALUE_PARAMETER name:x index:0 type:kotlin.Int BLOCK_BODY - ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) [primary] declared in kotlin.Enum' + ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) declared in kotlin.Enum' : .Test1 INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_CLASS name:Test1 modality:FINAL visibility:public superTypes:[kotlin.Enum<.Test1>]' PROPERTY name:x visibility:public modality:FINAL [val] @@ -106,11 +106,11 @@ FILE fqName: fileName:/enumWithSecondaryCtor.kt ENUM_CONSTRUCTOR_CALL 'private constructor () declared in .Test1' ENUM_ENTRY name:ONE init: EXPRESSION_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor (x: kotlin.Int) [primary] declared in .Test1' + ENUM_CONSTRUCTOR_CALL 'private constructor (x: kotlin.Int) declared in .Test1' x: CONST Int type=kotlin.Int value=1 CONSTRUCTOR visibility:private <> () returnType:.Test1 BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'private constructor (x: kotlin.Int) [primary] declared in .Test1' + DELEGATING_CONSTRUCTOR_CALL 'private constructor (x: kotlin.Int) declared in .Test1' x: CONST Int type=kotlin.Int value=0 FUN ENUM_CLASS_SPECIAL_MEMBER name:values visibility:public modality:FINAL <> () returnType:kotlin.Array<.Test1> SYNTHETIC_BODY kind=ENUM_VALUES @@ -127,12 +127,12 @@ FILE fqName: fileName:/enumWithSecondaryCtor.kt $this: VALUE_PARAMETER name: type:kotlin.Enum FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum, other:.Test1) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: E of kotlin.Enum): kotlin.Int [operator] declared in kotlin.Enum + public final fun compareTo (other: E of kotlin.Enum): kotlin.Int declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:.Test1 FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Enum + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:hashCode visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] @@ -147,7 +147,7 @@ FILE fqName: fileName:/enumWithSecondaryCtor.kt annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: @@ -155,7 +155,7 @@ FILE fqName: fileName:/enumWithSecondaryCtor.kt $this: VALUE_PARAMETER name: type:kotlin.Enum PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: @@ -174,7 +174,7 @@ FILE fqName: fileName:/enumWithSecondaryCtor.kt CONSTRUCTOR visibility:private <> (x:kotlin.Int) returnType:.Test2 [primary] VALUE_PARAMETER name:x index:0 type:kotlin.Int BLOCK_BODY - ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) [primary] declared in kotlin.Enum' + ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) declared in kotlin.Enum' : .Test2 INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_CLASS name:Test2 modality:ABSTRACT visibility:public superTypes:[kotlin.Enum<.Test2>]' PROPERTY name:x visibility:public modality:FINAL [val] @@ -190,7 +190,7 @@ FILE fqName: fileName:/enumWithSecondaryCtor.kt receiver: GET_VAR ': .Test2 declared in .Test2.' type=.Test2 origin=null ENUM_ENTRY name:ZERO init: EXPRESSION_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor () [primary] declared in .Test2.ZERO' + ENUM_CONSTRUCTOR_CALL 'private constructor () declared in .Test2.ZERO' class: CLASS ENUM_ENTRY name:ZERO modality:FINAL visibility:private superTypes:[.Test2] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Test2.ZERO CONSTRUCTOR visibility:private <> () returnType:.Test2.ZERO [primary] @@ -202,11 +202,11 @@ FILE fqName: fileName:/enumWithSecondaryCtor.kt public abstract fun foo (): kotlin.Unit declared in .Test2 $this: VALUE_PARAMETER name: type:.Test2.ZERO BLOCK_BODY - CALL 'public final fun println (message: kotlin.Any?): kotlin.Unit [inline] declared in kotlin.io' type=kotlin.Unit origin=null + CALL 'public final fun println (message: kotlin.Any?): kotlin.Unit declared in kotlin.io' type=kotlin.Unit origin=null message: CONST String type=kotlin.String value="ZERO" PROPERTY FAKE_OVERRIDE name:x visibility:public modality:FINAL [fake_override,val] overridden: - public final x: kotlin.Int [val] + public final x: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.Test2) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:x visibility:public modality:FINAL [fake_override,val] overridden: @@ -214,60 +214,60 @@ FILE fqName: fileName:/enumWithSecondaryCtor.kt $this: VALUE_PARAMETER name: type:.Test2 FUN FAKE_OVERRIDE name:clone visibility:protected modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Any [fake_override] overridden: - protected final fun clone (): kotlin.Any [fake_override] declared in .Test2 + protected final fun clone (): kotlin.Any declared in .Test2 $this: VALUE_PARAMETER name: type:kotlin.Enum FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum, other:.Test2) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: .Test2): kotlin.Int [fake_override,operator] declared in .Test2 + public final fun compareTo (other: .Test2): kotlin.Int declared in .Test2 $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:.Test2 FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .Test2 + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test2 $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:hashCode visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] overridden: - public final fun hashCode (): kotlin.Int [fake_override] declared in .Test2 + public final fun hashCode (): kotlin.Int declared in .Test2 $this: VALUE_PARAMETER name: type:kotlin.Enum FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Enum) returnType:kotlin.String [fake_override] overridden: - public open fun toString (): kotlin.String [fake_override] declared in .Test2 + public open fun toString (): kotlin.String declared in .Test2 $this: VALUE_PARAMETER name: type:kotlin.Enum PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [fake_override,val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: - public final fun (): kotlin.String [fake_override] declared in .Test2 + public final fun (): kotlin.String declared in .Test2 $this: VALUE_PARAMETER name: type:kotlin.Enum PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [fake_override,val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final fun (): kotlin.Int [fake_override] declared in .Test2 + public final fun (): kotlin.Int declared in .Test2 $this: VALUE_PARAMETER name: type:kotlin.Enum FUN FAKE_OVERRIDE name:getDeclaringClass visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:@[FlexibleNullability] java.lang.Class<@[FlexibleNullability] .Test2?>? [fake_override] overridden: - public final fun getDeclaringClass (): @[FlexibleNullability] java.lang.Class<@[FlexibleNullability] .Test2?>? [fake_override] declared in .Test2 + public final fun getDeclaringClass (): @[FlexibleNullability] java.lang.Class<@[FlexibleNullability] .Test2?>? declared in .Test2 $this: VALUE_PARAMETER name: type:kotlin.Enum FUN FAKE_OVERRIDE name:finalize visibility:protected/*protected and package*/ modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Unit [fake_override] overridden: - protected/*protected and package*/ final fun finalize (): kotlin.Unit [fake_override] declared in .Test2 + protected/*protected and package*/ final fun finalize (): kotlin.Unit declared in .Test2 $this: VALUE_PARAMETER name: type:kotlin.Enum ENUM_ENTRY name:ONE init: EXPRESSION_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor () [primary] declared in .Test2.ONE' + ENUM_CONSTRUCTOR_CALL 'private constructor () declared in .Test2.ONE' class: CLASS ENUM_ENTRY name:ONE modality:FINAL visibility:private superTypes:[.Test2] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Test2.ONE CONSTRUCTOR visibility:private <> () returnType:.Test2.ONE [primary] BLOCK_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor (x: kotlin.Int) [primary] declared in .Test2' + ENUM_CONSTRUCTOR_CALL 'private constructor (x: kotlin.Int) declared in .Test2' x: CONST Int type=kotlin.Int value=1 INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_ENTRY name:ONE modality:FINAL visibility:private superTypes:[.Test2]' FUN name:foo visibility:public modality:OPEN <> ($this:.Test2.ONE) returnType:kotlin.Unit @@ -275,11 +275,11 @@ FILE fqName: fileName:/enumWithSecondaryCtor.kt public abstract fun foo (): kotlin.Unit declared in .Test2 $this: VALUE_PARAMETER name: type:.Test2.ONE BLOCK_BODY - CALL 'public final fun println (message: kotlin.Any?): kotlin.Unit [inline] declared in kotlin.io' type=kotlin.Unit origin=null + CALL 'public final fun println (message: kotlin.Any?): kotlin.Unit declared in kotlin.io' type=kotlin.Unit origin=null message: CONST String type=kotlin.String value="ONE" PROPERTY FAKE_OVERRIDE name:x visibility:public modality:FINAL [fake_override,val] overridden: - public final x: kotlin.Int [val] + public final x: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.Test2) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:x visibility:public modality:FINAL [fake_override,val] overridden: @@ -287,55 +287,55 @@ FILE fqName: fileName:/enumWithSecondaryCtor.kt $this: VALUE_PARAMETER name: type:.Test2 FUN FAKE_OVERRIDE name:clone visibility:protected modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Any [fake_override] overridden: - protected final fun clone (): kotlin.Any [fake_override] declared in .Test2 + protected final fun clone (): kotlin.Any declared in .Test2 $this: VALUE_PARAMETER name: type:kotlin.Enum FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum, other:.Test2) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: .Test2): kotlin.Int [fake_override,operator] declared in .Test2 + public final fun compareTo (other: .Test2): kotlin.Int declared in .Test2 $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:.Test2 FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .Test2 + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test2 $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:hashCode visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] overridden: - public final fun hashCode (): kotlin.Int [fake_override] declared in .Test2 + public final fun hashCode (): kotlin.Int declared in .Test2 $this: VALUE_PARAMETER name: type:kotlin.Enum FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Enum) returnType:kotlin.String [fake_override] overridden: - public open fun toString (): kotlin.String [fake_override] declared in .Test2 + public open fun toString (): kotlin.String declared in .Test2 $this: VALUE_PARAMETER name: type:kotlin.Enum PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [fake_override,val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: - public final fun (): kotlin.String [fake_override] declared in .Test2 + public final fun (): kotlin.String declared in .Test2 $this: VALUE_PARAMETER name: type:kotlin.Enum PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [fake_override,val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final fun (): kotlin.Int [fake_override] declared in .Test2 + public final fun (): kotlin.Int declared in .Test2 $this: VALUE_PARAMETER name: type:kotlin.Enum FUN FAKE_OVERRIDE name:getDeclaringClass visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:@[FlexibleNullability] java.lang.Class<@[FlexibleNullability] .Test2?>? [fake_override] overridden: - public final fun getDeclaringClass (): @[FlexibleNullability] java.lang.Class<@[FlexibleNullability] .Test2?>? [fake_override] declared in .Test2 + public final fun getDeclaringClass (): @[FlexibleNullability] java.lang.Class<@[FlexibleNullability] .Test2?>? declared in .Test2 $this: VALUE_PARAMETER name: type:kotlin.Enum FUN FAKE_OVERRIDE name:finalize visibility:protected/*protected and package*/ modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Unit [fake_override] overridden: - protected/*protected and package*/ final fun finalize (): kotlin.Unit [fake_override] declared in .Test2 + protected/*protected and package*/ final fun finalize (): kotlin.Unit declared in .Test2 $this: VALUE_PARAMETER name: type:kotlin.Enum CONSTRUCTOR visibility:private <> () returnType:.Test2 BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'private constructor (x: kotlin.Int) [primary] declared in .Test2' + DELEGATING_CONSTRUCTOR_CALL 'private constructor (x: kotlin.Int) declared in .Test2' x: CONST Int type=kotlin.Int value=0 FUN name:foo visibility:public modality:ABSTRACT <> ($this:.Test2) returnType:kotlin.Unit $this: VALUE_PARAMETER name: type:.Test2 @@ -354,12 +354,12 @@ FILE fqName: fileName:/enumWithSecondaryCtor.kt $this: VALUE_PARAMETER name: type:kotlin.Enum FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum, other:.Test2) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: E of kotlin.Enum): kotlin.Int [operator] declared in kotlin.Enum + public final fun compareTo (other: E of kotlin.Enum): kotlin.Int declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:.Test2 FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Enum + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:hashCode visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] @@ -374,7 +374,7 @@ FILE fqName: fileName:/enumWithSecondaryCtor.kt annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: @@ -382,7 +382,7 @@ FILE fqName: fileName:/enumWithSecondaryCtor.kt $this: VALUE_PARAMETER name: type:kotlin.Enum PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: diff --git a/compiler/testData/ir/irText/classes/enumWithSecondaryCtor.ir.txt b/compiler/testData/ir/irText/classes/enumWithSecondaryCtor.ir.txt index 28180b5e81a..588792efb21 100644 --- a/compiler/testData/ir/irText/classes/enumWithSecondaryCtor.ir.txt +++ b/compiler/testData/ir/irText/classes/enumWithSecondaryCtor.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/enumWithSecondaryCtor.kt CONSTRUCTOR visibility:private <> (x:kotlin.Int) returnType:.Test0 [primary] VALUE_PARAMETER name:x index:0 type:kotlin.Int BLOCK_BODY - ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) [primary] declared in kotlin.Enum' + ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) declared in kotlin.Enum' : .Test0 INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_CLASS name:Test0 modality:FINAL visibility:public superTypes:[kotlin.Enum<.Test0>]' PROPERTY name:x visibility:public modality:FINAL [val] @@ -23,13 +23,13 @@ FILE fqName: fileName:/enumWithSecondaryCtor.kt ENUM_CONSTRUCTOR_CALL 'private constructor () declared in .Test0' CONSTRUCTOR visibility:private <> () returnType:.Test0 BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'private constructor (x: kotlin.Int) [primary] declared in .Test0' + DELEGATING_CONSTRUCTOR_CALL 'private constructor (x: kotlin.Int) declared in .Test0' x: CONST Int type=kotlin.Int value=0 PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.Test0>) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: @@ -37,7 +37,7 @@ FILE fqName: fileName:/enumWithSecondaryCtor.kt $this: VALUE_PARAMETER name: type:kotlin.Enum<.Test0> PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.Test0>) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: @@ -49,12 +49,12 @@ FILE fqName: fileName:/enumWithSecondaryCtor.kt $this: VALUE_PARAMETER name: type:kotlin.Enum<.Test0> FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum<.Test0>, other:.Test0) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: E of kotlin.Enum): kotlin.Int [operator] declared in kotlin.Enum + public final fun compareTo (other: E of kotlin.Enum): kotlin.Int declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum<.Test0> VALUE_PARAMETER name:other index:0 type:.Test0 FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum<.Test0>, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Enum + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum<.Test0> VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:finalize visibility:protected/*protected and package*/ modality:FINAL <> ($this:kotlin.Enum<.Test0>) returnType:kotlin.Unit [fake_override] @@ -87,7 +87,7 @@ FILE fqName: fileName:/enumWithSecondaryCtor.kt CONSTRUCTOR visibility:private <> (x:kotlin.Int) returnType:.Test1 [primary] VALUE_PARAMETER name:x index:0 type:kotlin.Int BLOCK_BODY - ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) [primary] declared in kotlin.Enum' + ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) declared in kotlin.Enum' : .Test1 INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_CLASS name:Test1 modality:FINAL visibility:public superTypes:[kotlin.Enum<.Test1>]' PROPERTY name:x visibility:public modality:FINAL [val] @@ -106,17 +106,17 @@ FILE fqName: fileName:/enumWithSecondaryCtor.kt ENUM_CONSTRUCTOR_CALL 'private constructor () declared in .Test1' ENUM_ENTRY name:ONE init: EXPRESSION_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor (x: kotlin.Int) [primary] declared in .Test1' + ENUM_CONSTRUCTOR_CALL 'private constructor (x: kotlin.Int) declared in .Test1' x: CONST Int type=kotlin.Int value=1 CONSTRUCTOR visibility:private <> () returnType:.Test1 BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'private constructor (x: kotlin.Int) [primary] declared in .Test1' + DELEGATING_CONSTRUCTOR_CALL 'private constructor (x: kotlin.Int) declared in .Test1' x: CONST Int type=kotlin.Int value=0 PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.Test1>) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: @@ -124,7 +124,7 @@ FILE fqName: fileName:/enumWithSecondaryCtor.kt $this: VALUE_PARAMETER name: type:kotlin.Enum<.Test1> PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.Test1>) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: @@ -136,12 +136,12 @@ FILE fqName: fileName:/enumWithSecondaryCtor.kt $this: VALUE_PARAMETER name: type:kotlin.Enum<.Test1> FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum<.Test1>, other:.Test1) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: E of kotlin.Enum): kotlin.Int [operator] declared in kotlin.Enum + public final fun compareTo (other: E of kotlin.Enum): kotlin.Int declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum<.Test1> VALUE_PARAMETER name:other index:0 type:.Test1 FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum<.Test1>, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Enum + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum<.Test1> VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:finalize visibility:protected/*protected and package*/ modality:FINAL <> ($this:kotlin.Enum<.Test1>) returnType:kotlin.Unit [fake_override] @@ -174,7 +174,7 @@ FILE fqName: fileName:/enumWithSecondaryCtor.kt CONSTRUCTOR visibility:private <> (x:kotlin.Int) returnType:.Test2 [primary] VALUE_PARAMETER name:x index:0 type:kotlin.Int BLOCK_BODY - ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) [primary] declared in kotlin.Enum' + ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) declared in kotlin.Enum' : .Test2 INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_CLASS name:Test2 modality:ABSTRACT visibility:public superTypes:[kotlin.Enum<.Test2>]' PROPERTY name:x visibility:public modality:FINAL [val] @@ -190,7 +190,7 @@ FILE fqName: fileName:/enumWithSecondaryCtor.kt receiver: GET_VAR ': .Test2 declared in .Test2.' type=.Test2 origin=null ENUM_ENTRY name:ZERO init: EXPRESSION_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor () [primary] declared in .Test2.ZERO' + ENUM_CONSTRUCTOR_CALL 'private constructor () declared in .Test2.ZERO' class: CLASS ENUM_ENTRY name:ZERO modality:FINAL visibility:private superTypes:[.Test2] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Test2.ZERO CONSTRUCTOR visibility:private <> () returnType:.Test2.ZERO [primary] @@ -203,11 +203,11 @@ FILE fqName: fileName:/enumWithSecondaryCtor.kt public abstract fun foo (): kotlin.Unit declared in .Test2 $this: VALUE_PARAMETER name: type:.Test2.ZERO BLOCK_BODY - CALL 'public final fun println (message: kotlin.Any?): kotlin.Unit [inline] declared in kotlin.io' type=kotlin.Unit origin=null + CALL 'public final fun println (message: kotlin.Any?): kotlin.Unit declared in kotlin.io' type=kotlin.Unit origin=null message: CONST String type=kotlin.String value="ZERO" PROPERTY FAKE_OVERRIDE name:x visibility:public modality:FINAL [fake_override,val] overridden: - public final x: kotlin.Int [val] + public final x: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.Test2) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:x visibility:public modality:FINAL [fake_override,val] overridden: @@ -217,59 +217,59 @@ FILE fqName: fileName:/enumWithSecondaryCtor.kt annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [fake_override,val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.Test2>) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: - public final fun (): kotlin.String [fake_override] declared in .Test2 + public final fun (): kotlin.String declared in .Test2 $this: VALUE_PARAMETER name: type:kotlin.Enum<.Test2> PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [fake_override,val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.Test2>) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final fun (): kotlin.Int [fake_override] declared in .Test2 + public final fun (): kotlin.Int declared in .Test2 $this: VALUE_PARAMETER name: type:kotlin.Enum<.Test2> FUN FAKE_OVERRIDE name:clone visibility:protected modality:FINAL <> ($this:kotlin.Enum<.Test2>) returnType:kotlin.Any [fake_override] overridden: - protected final fun clone (): kotlin.Any [fake_override] declared in .Test2 + protected final fun clone (): kotlin.Any declared in .Test2 $this: VALUE_PARAMETER name: type:kotlin.Enum<.Test2> FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum<.Test2>, other:.Test2) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: .Test2): kotlin.Int [fake_override,operator] declared in .Test2 + public final fun compareTo (other: .Test2): kotlin.Int declared in .Test2 $this: VALUE_PARAMETER name: type:kotlin.Enum<.Test2> VALUE_PARAMETER name:other index:0 type:.Test2 FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum<.Test2>, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .Test2 + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test2 $this: VALUE_PARAMETER name: type:kotlin.Enum<.Test2> VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:finalize visibility:protected/*protected and package*/ modality:FINAL <> ($this:kotlin.Enum<.Test2>) returnType:kotlin.Unit [fake_override] overridden: - protected/*protected and package*/ final fun finalize (): kotlin.Unit [fake_override] declared in .Test2 + protected/*protected and package*/ final fun finalize (): kotlin.Unit declared in .Test2 $this: VALUE_PARAMETER name: type:kotlin.Enum<.Test2> FUN FAKE_OVERRIDE name:getDeclaringClass visibility:public modality:FINAL <> ($this:kotlin.Enum<.Test2>) returnType:@[FlexibleNullability] java.lang.Class<@[FlexibleNullability] .Test2?>? [fake_override] overridden: - public final fun getDeclaringClass (): @[FlexibleNullability] java.lang.Class<@[FlexibleNullability] .Test2?>? [fake_override] declared in .Test2 + public final fun getDeclaringClass (): @[FlexibleNullability] java.lang.Class<@[FlexibleNullability] .Test2?>? declared in .Test2 $this: VALUE_PARAMETER name: type:kotlin.Enum<.Test2> FUN FAKE_OVERRIDE name:hashCode visibility:public modality:FINAL <> ($this:kotlin.Enum<.Test2>) returnType:kotlin.Int [fake_override] overridden: - public final fun hashCode (): kotlin.Int [fake_override] declared in .Test2 + public final fun hashCode (): kotlin.Int declared in .Test2 $this: VALUE_PARAMETER name: type:kotlin.Enum<.Test2> FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Enum<.Test2>) returnType:kotlin.String [fake_override] overridden: - public open fun toString (): kotlin.String [fake_override] declared in .Test2 + public open fun toString (): kotlin.String declared in .Test2 $this: VALUE_PARAMETER name: type:kotlin.Enum<.Test2> ENUM_ENTRY name:ONE init: EXPRESSION_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor () [primary] declared in .Test2.ONE' + ENUM_CONSTRUCTOR_CALL 'private constructor () declared in .Test2.ONE' class: CLASS ENUM_ENTRY name:ONE modality:FINAL visibility:private superTypes:[.Test2] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Test2.ONE CONSTRUCTOR visibility:private <> () returnType:.Test2.ONE [primary] BLOCK_BODY TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit - ENUM_CONSTRUCTOR_CALL 'private constructor (x: kotlin.Int) [primary] declared in .Test2' + ENUM_CONSTRUCTOR_CALL 'private constructor (x: kotlin.Int) declared in .Test2' x: CONST Int type=kotlin.Int value=1 INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_ENTRY name:ONE modality:FINAL visibility:private superTypes:[.Test2]' FUN name:foo visibility:public modality:OPEN <> ($this:.Test2.ONE) returnType:kotlin.Unit @@ -277,11 +277,11 @@ FILE fqName: fileName:/enumWithSecondaryCtor.kt public abstract fun foo (): kotlin.Unit declared in .Test2 $this: VALUE_PARAMETER name: type:.Test2.ONE BLOCK_BODY - CALL 'public final fun println (message: kotlin.Any?): kotlin.Unit [inline] declared in kotlin.io' type=kotlin.Unit origin=null + CALL 'public final fun println (message: kotlin.Any?): kotlin.Unit declared in kotlin.io' type=kotlin.Unit origin=null message: CONST String type=kotlin.String value="ONE" PROPERTY FAKE_OVERRIDE name:x visibility:public modality:FINAL [fake_override,val] overridden: - public final x: kotlin.Int [val] + public final x: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.Test2) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:x visibility:public modality:FINAL [fake_override,val] overridden: @@ -291,53 +291,53 @@ FILE fqName: fileName:/enumWithSecondaryCtor.kt annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [fake_override,val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.Test2>) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: - public final fun (): kotlin.String [fake_override] declared in .Test2 + public final fun (): kotlin.String declared in .Test2 $this: VALUE_PARAMETER name: type:kotlin.Enum<.Test2> PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [fake_override,val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.Test2>) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final fun (): kotlin.Int [fake_override] declared in .Test2 + public final fun (): kotlin.Int declared in .Test2 $this: VALUE_PARAMETER name: type:kotlin.Enum<.Test2> FUN FAKE_OVERRIDE name:clone visibility:protected modality:FINAL <> ($this:kotlin.Enum<.Test2>) returnType:kotlin.Any [fake_override] overridden: - protected final fun clone (): kotlin.Any [fake_override] declared in .Test2 + protected final fun clone (): kotlin.Any declared in .Test2 $this: VALUE_PARAMETER name: type:kotlin.Enum<.Test2> FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum<.Test2>, other:.Test2) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: .Test2): kotlin.Int [fake_override,operator] declared in .Test2 + public final fun compareTo (other: .Test2): kotlin.Int declared in .Test2 $this: VALUE_PARAMETER name: type:kotlin.Enum<.Test2> VALUE_PARAMETER name:other index:0 type:.Test2 FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum<.Test2>, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .Test2 + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test2 $this: VALUE_PARAMETER name: type:kotlin.Enum<.Test2> VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:finalize visibility:protected/*protected and package*/ modality:FINAL <> ($this:kotlin.Enum<.Test2>) returnType:kotlin.Unit [fake_override] overridden: - protected/*protected and package*/ final fun finalize (): kotlin.Unit [fake_override] declared in .Test2 + protected/*protected and package*/ final fun finalize (): kotlin.Unit declared in .Test2 $this: VALUE_PARAMETER name: type:kotlin.Enum<.Test2> FUN FAKE_OVERRIDE name:getDeclaringClass visibility:public modality:FINAL <> ($this:kotlin.Enum<.Test2>) returnType:@[FlexibleNullability] java.lang.Class<@[FlexibleNullability] .Test2?>? [fake_override] overridden: - public final fun getDeclaringClass (): @[FlexibleNullability] java.lang.Class<@[FlexibleNullability] .Test2?>? [fake_override] declared in .Test2 + public final fun getDeclaringClass (): @[FlexibleNullability] java.lang.Class<@[FlexibleNullability] .Test2?>? declared in .Test2 $this: VALUE_PARAMETER name: type:kotlin.Enum<.Test2> FUN FAKE_OVERRIDE name:hashCode visibility:public modality:FINAL <> ($this:kotlin.Enum<.Test2>) returnType:kotlin.Int [fake_override] overridden: - public final fun hashCode (): kotlin.Int [fake_override] declared in .Test2 + public final fun hashCode (): kotlin.Int declared in .Test2 $this: VALUE_PARAMETER name: type:kotlin.Enum<.Test2> FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Enum<.Test2>) returnType:kotlin.String [fake_override] overridden: - public open fun toString (): kotlin.String [fake_override] declared in .Test2 + public open fun toString (): kotlin.String declared in .Test2 $this: VALUE_PARAMETER name: type:kotlin.Enum<.Test2> CONSTRUCTOR visibility:private <> () returnType:.Test2 BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'private constructor (x: kotlin.Int) [primary] declared in .Test2' + DELEGATING_CONSTRUCTOR_CALL 'private constructor (x: kotlin.Int) declared in .Test2' x: CONST Int type=kotlin.Int value=0 FUN name:foo visibility:public modality:ABSTRACT <> ($this:.Test2) returnType:kotlin.Unit $this: VALUE_PARAMETER name: type:.Test2 @@ -345,7 +345,7 @@ FILE fqName: fileName:/enumWithSecondaryCtor.kt annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.Test2>) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: @@ -353,7 +353,7 @@ FILE fqName: fileName:/enumWithSecondaryCtor.kt $this: VALUE_PARAMETER name: type:kotlin.Enum<.Test2> PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.Test2>) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: @@ -365,12 +365,12 @@ FILE fqName: fileName:/enumWithSecondaryCtor.kt $this: VALUE_PARAMETER name: type:kotlin.Enum<.Test2> FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum<.Test2>, other:.Test2) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: E of kotlin.Enum): kotlin.Int [operator] declared in kotlin.Enum + public final fun compareTo (other: E of kotlin.Enum): kotlin.Int declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum<.Test2> VALUE_PARAMETER name:other index:0 type:.Test2 FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum<.Test2>, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Enum + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum<.Test2> VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:finalize visibility:protected/*protected and package*/ modality:FINAL <> ($this:kotlin.Enum<.Test2>) returnType:kotlin.Unit [fake_override] diff --git a/compiler/testData/ir/irText/classes/fakeOverridesForJavaNonStaticMembers.fir.ir.txt b/compiler/testData/ir/irText/classes/fakeOverridesForJavaNonStaticMembers.fir.ir.txt index 1abcfb3a43d..b829a01f8aa 100644 --- a/compiler/testData/ir/irText/classes/fakeOverridesForJavaNonStaticMembers.fir.ir.txt +++ b/compiler/testData/ir/irText/classes/fakeOverridesForJavaNonStaticMembers.fir.ir.txt @@ -3,7 +3,7 @@ FILE fqName:a fileName:/fakeOverridesForJavaNonStaticMembers.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:a.Test CONSTRUCTOR visibility:public <> () returnType:a.Test [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in a.Base' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in a.Base' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test modality:FINAL visibility:public superTypes:[a.Base]' FUN FAKE_OVERRIDE name:publicMethod visibility:public modality:OPEN <> ($this:a.Base) returnType:kotlin.Unit [fake_override] overridden: @@ -19,23 +19,23 @@ FILE fqName:a fileName:/fakeOverridesForJavaNonStaticMembers.kt $this: VALUE_PARAMETER name: type:a.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 [fake_override,operator] declared in a.Base + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in a.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 a.Base + public open fun hashCode (): kotlin.Int declared in a.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 a.Base + public open fun toString (): kotlin.String declared in a.Base $this: VALUE_PARAMETER name: type:kotlin.Any FILE fqName: fileName:/fakeOverridesForJavaNonStaticMembers2.kt CLASS CLASS name:Test2 modality:FINAL visibility:public superTypes:[a.Base] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Test2 CONSTRUCTOR visibility:public <> () returnType:.Test2 [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in a.Base' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in a.Base' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test2 modality:FINAL visibility:public superTypes:[a.Base]' FUN FAKE_OVERRIDE name:publicMethod visibility:public modality:OPEN <> ($this:a.Base) returnType:kotlin.Unit [fake_override] overridden: @@ -47,14 +47,14 @@ FILE fqName: fileName:/fakeOverridesForJavaNonStaticMembers2.kt $this: VALUE_PARAMETER name: type:a.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 [fake_override,operator] declared in a.Base + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in a.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 a.Base + public open fun hashCode (): kotlin.Int declared in a.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 a.Base + public open fun toString (): kotlin.String declared in a.Base $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/classes/fakeOverridesForJavaNonStaticMembers.ir.txt b/compiler/testData/ir/irText/classes/fakeOverridesForJavaNonStaticMembers.ir.txt index d7ced9eeaf9..d99eb2a74db 100644 --- a/compiler/testData/ir/irText/classes/fakeOverridesForJavaNonStaticMembers.ir.txt +++ b/compiler/testData/ir/irText/classes/fakeOverridesForJavaNonStaticMembers.ir.txt @@ -3,20 +3,20 @@ FILE fqName:a fileName:/fakeOverridesForJavaNonStaticMembers.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:a.Test CONSTRUCTOR visibility:public <> () returnType:a.Test [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in a.Base' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in a.Base' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test modality:FINAL visibility:public superTypes:[a.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 [fake_override,operator] declared in a.Base + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in a.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 a.Base + public open fun hashCode (): kotlin.Int declared in a.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 a.Base + public open fun toString (): kotlin.String declared in a.Base $this: VALUE_PARAMETER name: type:kotlin.Any FUN FAKE_OVERRIDE name:publicMethod visibility:public modality:OPEN <> ($this:a.Base) returnType:kotlin.Unit [fake_override] overridden: @@ -35,20 +35,20 @@ FILE fqName: fileName:/fakeOverridesForJavaNonStaticMembers2.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Test2 CONSTRUCTOR visibility:public <> () returnType:.Test2 [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in a.Base' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in a.Base' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test2 modality:FINAL visibility:public superTypes:[a.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 [fake_override,operator] declared in a.Base + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in a.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 a.Base + public open fun hashCode (): kotlin.Int declared in a.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 a.Base + public open fun toString (): kotlin.String declared in a.Base $this: VALUE_PARAMETER name: type:kotlin.Any FUN FAKE_OVERRIDE name:publicMethod visibility:public modality:OPEN <> ($this:a.Base) returnType:kotlin.Unit [fake_override] overridden: diff --git a/compiler/testData/ir/irText/classes/fakeOverridesForJavaStaticMembers.fir.ir.txt b/compiler/testData/ir/irText/classes/fakeOverridesForJavaStaticMembers.fir.ir.txt index 152facfd184..d1a3353b749 100644 --- a/compiler/testData/ir/irText/classes/fakeOverridesForJavaStaticMembers.fir.ir.txt +++ b/compiler/testData/ir/irText/classes/fakeOverridesForJavaStaticMembers.fir.ir.txt @@ -3,18 +3,18 @@ FILE fqName: fileName:/fakeOverridesForJavaStaticMembers.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Test CONSTRUCTOR visibility:public <> () returnType:.Test [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in a.Base' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in a.Base' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test modality:FINAL visibility:public superTypes:[a.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 [fake_override,operator] declared in a.Base + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in a.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 a.Base + public open fun hashCode (): kotlin.Int declared in a.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 a.Base + public open fun toString (): kotlin.String declared in a.Base $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/classes/fakeOverridesForJavaStaticMembers.ir.txt b/compiler/testData/ir/irText/classes/fakeOverridesForJavaStaticMembers.ir.txt index 32affeedcc8..e496e28e0d2 100644 --- a/compiler/testData/ir/irText/classes/fakeOverridesForJavaStaticMembers.ir.txt +++ b/compiler/testData/ir/irText/classes/fakeOverridesForJavaStaticMembers.ir.txt @@ -3,20 +3,20 @@ FILE fqName: fileName:/fakeOverridesForJavaStaticMembers.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Test CONSTRUCTOR visibility:public <> () returnType:.Test [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in a.Base' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in a.Base' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test modality:FINAL visibility:public superTypes:[a.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 [fake_override,operator] declared in a.Base + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in a.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 a.Base + public open fun hashCode (): kotlin.Int declared in a.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 a.Base + public open fun toString (): kotlin.String declared in a.Base $this: VALUE_PARAMETER name: type:kotlin.Any FUN FAKE_OVERRIDE name:publicStaticMethod visibility:public modality:OPEN <> () returnType:kotlin.Unit [fake_override] overridden: diff --git a/compiler/testData/ir/irText/classes/implicitNotNullOnDelegatedImplementation.fir.ir.txt b/compiler/testData/ir/irText/classes/implicitNotNullOnDelegatedImplementation.fir.ir.txt index e8ff66461fd..fd8a6bac184 100644 --- a/compiler/testData/ir/irText/classes/implicitNotNullOnDelegatedImplementation.fir.ir.txt +++ b/compiler/testData/ir/irText/classes/implicitNotNullOnDelegatedImplementation.fir.ir.txt @@ -5,7 +5,7 @@ FILE fqName: fileName:/implicitNotNullOnDelegatedImplementation.kt $this: VALUE_PARAMETER name: type:.IFoo 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -20,7 +20,7 @@ FILE fqName: fileName:/implicitNotNullOnDelegatedImplementation.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.K1 CONSTRUCTOR visibility:public <> () returnType:.K1 [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .JFoo' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .JFoo' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:K1 modality:FINAL visibility:public superTypes:[.JFoo]' FUN FAKE_OVERRIDE name:foo visibility:public modality:OPEN <> ($this:.JFoo) returnType:@[EnhancedNullability] kotlin.String [fake_override] overridden: @@ -28,22 +28,22 @@ FILE fqName: fileName:/implicitNotNullOnDelegatedImplementation.kt $this: VALUE_PARAMETER name: type:.JFoo 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 .JFoo + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .JFoo $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 .JFoo + public open fun hashCode (): kotlin.Int declared in .JFoo $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 .JFoo + public open fun toString (): kotlin.String declared in .JFoo $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:K2 modality:FINAL visibility:public superTypes:[.JFoo] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.K2 CONSTRUCTOR visibility:public <> () returnType:.K2 [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .JFoo' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .JFoo' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:K2 modality:FINAL visibility:public superTypes:[.JFoo]' FUN name:foo visibility:public modality:OPEN <> ($this:.K2) returnType:kotlin.String overridden: @@ -56,22 +56,22 @@ FILE fqName: fileName:/implicitNotNullOnDelegatedImplementation.kt $this: GET_VAR ': .K2 declared in .K2.foo' type=.K2 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 [fake_override,operator] declared in .JFoo + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .JFoo $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 .JFoo + public open fun hashCode (): kotlin.Int declared in .JFoo $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 .JFoo + public open fun toString (): kotlin.String declared in .JFoo $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:K3 modality:FINAL visibility:public superTypes:[.JUnrelatedFoo; .IFoo] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.K3 CONSTRUCTOR visibility:public <> () returnType:.K3 [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .JUnrelatedFoo' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .JUnrelatedFoo' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:K3 modality:FINAL visibility:public superTypes:[.JUnrelatedFoo; .IFoo]' FUN FAKE_OVERRIDE name:foo visibility:public modality:OPEN <> ($this:.IFoo) returnType:kotlin.String [fake_override] overridden: @@ -80,25 +80,25 @@ FILE fqName: fileName:/implicitNotNullOnDelegatedImplementation.kt $this: VALUE_PARAMETER name: type:.IFoo 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 .JUnrelatedFoo - public open fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .IFoo + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .JUnrelatedFoo + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IFoo $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 .JUnrelatedFoo - public open fun hashCode (): kotlin.Int [fake_override] declared in .IFoo + public open fun hashCode (): kotlin.Int declared in .JUnrelatedFoo + public open fun hashCode (): kotlin.Int declared in .IFoo $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 .JUnrelatedFoo - public open fun toString (): kotlin.String [fake_override] declared in .IFoo + public open fun toString (): kotlin.String declared in .JUnrelatedFoo + public open fun toString (): kotlin.String declared in .IFoo $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:K4 modality:FINAL visibility:public superTypes:[.JUnrelatedFoo; .IFoo] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.K4 CONSTRUCTOR visibility:public <> () returnType:.K4 [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .JUnrelatedFoo' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .JUnrelatedFoo' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:K4 modality:FINAL visibility:public superTypes:[.JUnrelatedFoo; .IFoo]' FUN name:foo visibility:public modality:OPEN <> ($this:.K4) returnType:@[FlexibleNullability] kotlin.String? overridden: @@ -111,25 +111,25 @@ FILE fqName: fileName:/implicitNotNullOnDelegatedImplementation.kt $this: GET_VAR ': .K4 declared in .K4.foo' type=.K4 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 [fake_override,operator] declared in .JUnrelatedFoo - public open fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .IFoo + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .JUnrelatedFoo + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IFoo $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 .JUnrelatedFoo - public open fun hashCode (): kotlin.Int [fake_override] declared in .IFoo + public open fun hashCode (): kotlin.Int declared in .JUnrelatedFoo + public open fun hashCode (): kotlin.Int declared in .IFoo $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 .JUnrelatedFoo - public open fun toString (): kotlin.String [fake_override] declared in .IFoo + public open fun toString (): kotlin.String declared in .JUnrelatedFoo + public open fun toString (): kotlin.String declared in .IFoo $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:TestJFoo modality:FINAL visibility:public superTypes:[.IFoo] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.TestJFoo CONSTRUCTOR visibility:public <> () returnType:.TestJFoo [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:TestJFoo modality:FINAL visibility:public superTypes:[.IFoo]' FUN DELEGATED_MEMBER name:foo visibility:public modality:OPEN <> ($this:.TestJFoo) returnType:kotlin.String overridden: @@ -143,25 +143,25 @@ FILE fqName: fileName:/implicitNotNullOnDelegatedImplementation.kt receiver: GET_VAR ': .TestJFoo declared in .TestJFoo.foo' type=.TestJFoo origin=null FIELD DELEGATE name:$$delegate_0 type:.JFoo visibility:private [final] EXPRESSION_BODY - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .JFoo' type=.JFoo origin=null + CONSTRUCTOR_CALL 'public constructor () declared in .JFoo' type=.JFoo 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 [fake_override,operator] declared in .IFoo + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IFoo $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 .IFoo + public open fun hashCode (): kotlin.Int declared in .IFoo $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 .IFoo + public open fun toString (): kotlin.String declared in .IFoo $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:TestK1 modality:FINAL visibility:public superTypes:[.IFoo] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.TestK1 CONSTRUCTOR visibility:public <> () returnType:.TestK1 [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:TestK1 modality:FINAL visibility:public superTypes:[.IFoo]' FUN DELEGATED_MEMBER name:foo visibility:public modality:OPEN <> ($this:.TestK1) returnType:kotlin.String overridden: @@ -175,25 +175,25 @@ FILE fqName: fileName:/implicitNotNullOnDelegatedImplementation.kt receiver: GET_VAR ': .TestK1 declared in .TestK1.foo' type=.TestK1 origin=null FIELD DELEGATE name:$$delegate_0 type:.K1 visibility:private [final] EXPRESSION_BODY - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .K1' type=.K1 origin=null + CONSTRUCTOR_CALL 'public constructor () declared in .K1' type=.K1 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 [fake_override,operator] declared in .IFoo + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IFoo $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 .IFoo + public open fun hashCode (): kotlin.Int declared in .IFoo $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 .IFoo + public open fun toString (): kotlin.String declared in .IFoo $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:TestK2 modality:FINAL visibility:public superTypes:[.IFoo] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.TestK2 CONSTRUCTOR visibility:public <> () returnType:.TestK2 [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:TestK2 modality:FINAL visibility:public superTypes:[.IFoo]' FUN DELEGATED_MEMBER name:foo visibility:public modality:OPEN <> ($this:.TestK2) returnType:kotlin.String overridden: @@ -206,25 +206,25 @@ FILE fqName: fileName:/implicitNotNullOnDelegatedImplementation.kt receiver: GET_VAR ': .TestK2 declared in .TestK2.foo' type=.TestK2 origin=null FIELD DELEGATE name:$$delegate_0 type:.K2 visibility:private [final] EXPRESSION_BODY - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .K2' type=.K2 origin=null + CONSTRUCTOR_CALL 'public constructor () declared in .K2' type=.K2 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 [fake_override,operator] declared in .IFoo + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IFoo $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 .IFoo + public open fun hashCode (): kotlin.Int declared in .IFoo $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 .IFoo + public open fun toString (): kotlin.String declared in .IFoo $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:TestK3 modality:FINAL visibility:public superTypes:[.IFoo] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.TestK3 CONSTRUCTOR visibility:public <> () returnType:.TestK3 [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:TestK3 modality:FINAL visibility:public superTypes:[.IFoo]' FUN DELEGATED_MEMBER name:foo visibility:public modality:OPEN <> ($this:.TestK3) returnType:kotlin.String overridden: @@ -232,30 +232,30 @@ FILE fqName: fileName:/implicitNotNullOnDelegatedImplementation.kt $this: VALUE_PARAMETER name: type:.TestK3 BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun foo (): kotlin.String declared in .TestK3' - CALL 'public open fun foo (): kotlin.String [fake_override] declared in .K3' type=kotlin.String origin=null + CALL 'public open fun foo (): kotlin.String declared in .K3' type=kotlin.String origin=null $this: GET_FIELD 'FIELD DELEGATE name:$$delegate_0 type:.K3 visibility:private [final]' type=.K3 origin=null receiver: GET_VAR ': .TestK3 declared in .TestK3.foo' type=.TestK3 origin=null FIELD DELEGATE name:$$delegate_0 type:.K3 visibility:private [final] EXPRESSION_BODY - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .K3' type=.K3 origin=null + CONSTRUCTOR_CALL 'public constructor () declared in .K3' type=.K3 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 [fake_override,operator] declared in .IFoo + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IFoo $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 .IFoo + public open fun hashCode (): kotlin.Int declared in .IFoo $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 .IFoo + public open fun toString (): kotlin.String declared in .IFoo $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:TestK4 modality:FINAL visibility:public superTypes:[.IFoo] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.TestK4 CONSTRUCTOR visibility:public <> () returnType:.TestK4 [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:TestK4 modality:FINAL visibility:public superTypes:[.IFoo]' FUN DELEGATED_MEMBER name:foo visibility:public modality:OPEN <> ($this:.TestK4) returnType:kotlin.String overridden: @@ -269,17 +269,17 @@ FILE fqName: fileName:/implicitNotNullOnDelegatedImplementation.kt receiver: GET_VAR ': .TestK4 declared in .TestK4.foo' type=.TestK4 origin=null FIELD DELEGATE name:$$delegate_0 type:.K4 visibility:private [final] EXPRESSION_BODY - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .K4' type=.K4 origin=null + CONSTRUCTOR_CALL 'public constructor () declared in .K4' type=.K4 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 [fake_override,operator] declared in .IFoo + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IFoo $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 .IFoo + public open fun hashCode (): kotlin.Int declared in .IFoo $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 .IFoo + public open fun toString (): kotlin.String declared in .IFoo $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/classes/implicitNotNullOnDelegatedImplementation.ir.txt b/compiler/testData/ir/irText/classes/implicitNotNullOnDelegatedImplementation.ir.txt index e9d1a7634fb..129658a18b0 100644 --- a/compiler/testData/ir/irText/classes/implicitNotNullOnDelegatedImplementation.ir.txt +++ b/compiler/testData/ir/irText/classes/implicitNotNullOnDelegatedImplementation.ir.txt @@ -5,7 +5,7 @@ FILE fqName: fileName:/implicitNotNullOnDelegatedImplementation.kt $this: VALUE_PARAMETER name: type:.IFoo 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -20,7 +20,7 @@ FILE fqName: fileName:/implicitNotNullOnDelegatedImplementation.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.K1 CONSTRUCTOR visibility:public <> () returnType:.K1 [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .JFoo' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .JFoo' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:K1 modality:FINAL visibility:public superTypes:[.JFoo]' FUN FAKE_OVERRIDE name:foo visibility:public modality:OPEN <> ($this:.JFoo) returnType:@[EnhancedNullability] kotlin.String [fake_override] overridden: @@ -28,22 +28,22 @@ FILE fqName: fileName:/implicitNotNullOnDelegatedImplementation.kt $this: VALUE_PARAMETER name: type:.JFoo 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 .JFoo + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .JFoo $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 .JFoo + public open fun hashCode (): kotlin.Int declared in .JFoo $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 .JFoo + public open fun toString (): kotlin.String declared in .JFoo $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:K2 modality:FINAL visibility:public superTypes:[.JFoo] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.K2 CONSTRUCTOR visibility:public <> () returnType:.K2 [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .JFoo' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .JFoo' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:K2 modality:FINAL visibility:public superTypes:[.JFoo]' FUN name:foo visibility:public modality:OPEN <> ($this:.K2) returnType:kotlin.String overridden: @@ -56,38 +56,38 @@ FILE fqName: fileName:/implicitNotNullOnDelegatedImplementation.kt $this: GET_VAR ': .K2 declared in .K2.foo' type=.K2 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 [fake_override,operator] declared in .JFoo + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .JFoo $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 .JFoo + public open fun hashCode (): kotlin.Int declared in .JFoo $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 .JFoo + public open fun toString (): kotlin.String declared in .JFoo $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:K3 modality:FINAL visibility:public superTypes:[.JUnrelatedFoo; .IFoo] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.K3 CONSTRUCTOR visibility:public <> () returnType:.K3 [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .JUnrelatedFoo' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .JUnrelatedFoo' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:K3 modality:FINAL visibility:public superTypes:[.JUnrelatedFoo; .IFoo]' 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 .JUnrelatedFoo - public open fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .IFoo + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .JUnrelatedFoo + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IFoo $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 .JUnrelatedFoo - public open fun hashCode (): kotlin.Int [fake_override] declared in .IFoo + public open fun hashCode (): kotlin.Int declared in .JUnrelatedFoo + public open fun hashCode (): kotlin.Int declared in .IFoo $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 .JUnrelatedFoo - public open fun toString (): kotlin.String [fake_override] declared in .IFoo + public open fun toString (): kotlin.String declared in .JUnrelatedFoo + public open fun toString (): kotlin.String declared in .IFoo $this: VALUE_PARAMETER name: type:kotlin.Any FUN FAKE_OVERRIDE name:foo visibility:public modality:OPEN <> ($this:.IFoo) returnType:kotlin.String [fake_override] overridden: @@ -98,7 +98,7 @@ FILE fqName: fileName:/implicitNotNullOnDelegatedImplementation.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.K4 CONSTRUCTOR visibility:public <> () returnType:.K4 [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .JUnrelatedFoo' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .JUnrelatedFoo' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:K4 modality:FINAL visibility:public superTypes:[.JUnrelatedFoo; .IFoo]' FUN name:foo visibility:public modality:OPEN <> ($this:.K4) returnType:@[FlexibleNullability] kotlin.String? overridden: @@ -111,29 +111,29 @@ FILE fqName: fileName:/implicitNotNullOnDelegatedImplementation.kt $this: GET_VAR ': .K4 declared in .K4.foo' type=.K4 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 [fake_override,operator] declared in .JUnrelatedFoo - public open fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .IFoo + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .JUnrelatedFoo + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IFoo $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 .JUnrelatedFoo - public open fun hashCode (): kotlin.Int [fake_override] declared in .IFoo + public open fun hashCode (): kotlin.Int declared in .JUnrelatedFoo + public open fun hashCode (): kotlin.Int declared in .IFoo $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 .JUnrelatedFoo - public open fun toString (): kotlin.String [fake_override] declared in .IFoo + public open fun toString (): kotlin.String declared in .JUnrelatedFoo + public open fun toString (): kotlin.String declared in .IFoo $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:TestJFoo modality:FINAL visibility:public superTypes:[.IFoo] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.TestJFoo CONSTRUCTOR visibility:public <> () returnType:.TestJFoo [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:TestJFoo modality:FINAL visibility:public superTypes:[.IFoo]' FIELD DELEGATE name:$$delegate_0 type:.JFoo visibility:private [final] EXPRESSION_BODY - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .JFoo' type=.JFoo origin=null + CONSTRUCTOR_CALL 'public constructor () declared in .JFoo' type=.JFoo origin=null FUN DELEGATED_MEMBER name:foo visibility:public modality:OPEN <> ($this:.TestJFoo) returnType:kotlin.String overridden: public abstract fun foo (): kotlin.String declared in .IFoo @@ -146,26 +146,26 @@ FILE fqName: fileName:/implicitNotNullOnDelegatedImplementation.kt receiver: GET_VAR ': .TestJFoo declared in .TestJFoo.foo' type=.TestJFoo 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 [fake_override,operator] declared in .IFoo + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IFoo $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 .IFoo + public open fun hashCode (): kotlin.Int declared in .IFoo $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 .IFoo + public open fun toString (): kotlin.String declared in .IFoo $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:TestK1 modality:FINAL visibility:public superTypes:[.IFoo] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.TestK1 CONSTRUCTOR visibility:public <> () returnType:.TestK1 [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:TestK1 modality:FINAL visibility:public superTypes:[.IFoo]' FIELD DELEGATE name:$$delegate_0 type:.K1 visibility:private [final] EXPRESSION_BODY - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .K1' type=.K1 origin=null + CONSTRUCTOR_CALL 'public constructor () declared in .K1' type=.K1 origin=null FUN DELEGATED_MEMBER name:foo visibility:public modality:OPEN <> ($this:.TestK1) returnType:kotlin.String overridden: public abstract fun foo (): kotlin.String declared in .IFoo @@ -173,31 +173,31 @@ FILE fqName: fileName:/implicitNotNullOnDelegatedImplementation.kt BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun foo (): kotlin.String declared in .TestK1' TYPE_OP type=kotlin.String origin=IMPLICIT_NOTNULL typeOperand=kotlin.String - CALL 'public open fun foo (): @[EnhancedNullability] kotlin.String [fake_override] declared in .K1' type=@[EnhancedNullability] kotlin.String origin=null + CALL 'public open fun foo (): @[EnhancedNullability] kotlin.String declared in .K1' type=@[EnhancedNullability] kotlin.String origin=null $this: GET_FIELD 'FIELD DELEGATE name:$$delegate_0 type:.K1 visibility:private [final]' type=.K1 origin=null receiver: GET_VAR ': .TestK1 declared in .TestK1.foo' type=.TestK1 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 [fake_override,operator] declared in .IFoo + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IFoo $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 .IFoo + public open fun hashCode (): kotlin.Int declared in .IFoo $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 .IFoo + public open fun toString (): kotlin.String declared in .IFoo $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:TestK2 modality:FINAL visibility:public superTypes:[.IFoo] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.TestK2 CONSTRUCTOR visibility:public <> () returnType:.TestK2 [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:TestK2 modality:FINAL visibility:public superTypes:[.IFoo]' FIELD DELEGATE name:$$delegate_0 type:.K2 visibility:private [final] EXPRESSION_BODY - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .K2' type=.K2 origin=null + CONSTRUCTOR_CALL 'public constructor () declared in .K2' type=.K2 origin=null FUN DELEGATED_MEMBER name:foo visibility:public modality:OPEN <> ($this:.TestK2) returnType:kotlin.String overridden: public abstract fun foo (): kotlin.String declared in .IFoo @@ -209,57 +209,57 @@ FILE fqName: fileName:/implicitNotNullOnDelegatedImplementation.kt receiver: GET_VAR ': .TestK2 declared in .TestK2.foo' type=.TestK2 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 [fake_override,operator] declared in .IFoo + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IFoo $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 .IFoo + public open fun hashCode (): kotlin.Int declared in .IFoo $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 .IFoo + public open fun toString (): kotlin.String declared in .IFoo $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:TestK3 modality:FINAL visibility:public superTypes:[.IFoo] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.TestK3 CONSTRUCTOR visibility:public <> () returnType:.TestK3 [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:TestK3 modality:FINAL visibility:public superTypes:[.IFoo]' FIELD DELEGATE name:$$delegate_0 type:.K3 visibility:private [final] EXPRESSION_BODY - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .K3' type=.K3 origin=null + CONSTRUCTOR_CALL 'public constructor () declared in .K3' type=.K3 origin=null FUN DELEGATED_MEMBER name:foo visibility:public modality:OPEN <> ($this:.TestK3) returnType:kotlin.String overridden: public abstract fun foo (): kotlin.String declared in .IFoo $this: VALUE_PARAMETER name: type:.TestK3 BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun foo (): kotlin.String declared in .TestK3' - CALL 'public open fun foo (): kotlin.String [fake_override] declared in .K3' type=kotlin.String origin=null + CALL 'public open fun foo (): kotlin.String declared in .K3' type=kotlin.String origin=null $this: GET_FIELD 'FIELD DELEGATE name:$$delegate_0 type:.K3 visibility:private [final]' type=.K3 origin=null receiver: GET_VAR ': .TestK3 declared in .TestK3.foo' type=.TestK3 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 [fake_override,operator] declared in .IFoo + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IFoo $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 .IFoo + public open fun hashCode (): kotlin.Int declared in .IFoo $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 .IFoo + public open fun toString (): kotlin.String declared in .IFoo $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:TestK4 modality:FINAL visibility:public superTypes:[.IFoo] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.TestK4 CONSTRUCTOR visibility:public <> () returnType:.TestK4 [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:TestK4 modality:FINAL visibility:public superTypes:[.IFoo]' FIELD DELEGATE name:$$delegate_0 type:.K4 visibility:private [final] EXPRESSION_BODY - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .K4' type=.K4 origin=null + CONSTRUCTOR_CALL 'public constructor () declared in .K4' type=.K4 origin=null FUN DELEGATED_MEMBER name:foo visibility:public modality:OPEN <> ($this:.TestK4) returnType:kotlin.String overridden: public abstract fun foo (): kotlin.String declared in .IFoo @@ -272,14 +272,14 @@ FILE fqName: fileName:/implicitNotNullOnDelegatedImplementation.kt receiver: GET_VAR ': .TestK4 declared in .TestK4.foo' type=.TestK4 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 [fake_override,operator] declared in .IFoo + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IFoo $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 .IFoo + public open fun hashCode (): kotlin.Int declared in .IFoo $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 .IFoo + public open fun toString (): kotlin.String declared in .IFoo $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/classes/initBlock.ir.txt b/compiler/testData/ir/irText/classes/initBlock.ir.txt index c54d2f1efe6..9a9478d185c 100644 --- a/compiler/testData/ir/irText/classes/initBlock.ir.txt +++ b/compiler/testData/ir/irText/classes/initBlock.ir.txt @@ -3,14 +3,14 @@ FILE fqName: fileName:/initBlock.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Test1 CONSTRUCTOR visibility:public <> () returnType:.Test1 [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test1 modality:FINAL visibility:public superTypes:[kotlin.Any]' ANONYMOUS_INITIALIZER isStatic=false BLOCK_BODY - CALL 'public final fun println (): kotlin.Unit [inline] declared in kotlin.io' type=kotlin.Unit origin=null + CALL 'public final fun println (): kotlin.Unit declared in kotlin.io' type=kotlin.Unit 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -26,7 +26,7 @@ FILE fqName: fileName:/initBlock.kt CONSTRUCTOR visibility:public <> (x:kotlin.Int) returnType:.Test2 [primary] VALUE_PARAMETER name:x index:0 type:kotlin.Int BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test2 modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private [final] @@ -41,10 +41,10 @@ FILE fqName: fileName:/initBlock.kt receiver: GET_VAR ': .Test2 declared in .Test2.' type=.Test2 origin=null ANONYMOUS_INITIALIZER isStatic=false BLOCK_BODY - CALL 'public final fun println (): kotlin.Unit [inline] declared in kotlin.io' type=kotlin.Unit origin=null + CALL 'public final fun println (): kotlin.Unit declared in kotlin.io' type=kotlin.Unit 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -59,14 +59,14 @@ FILE fqName: fileName:/initBlock.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Test3 ANONYMOUS_INITIALIZER isStatic=false BLOCK_BODY - CALL 'public final fun println (): kotlin.Unit [inline] declared in kotlin.io' type=kotlin.Unit origin=null + CALL 'public final fun println (): kotlin.Unit declared in kotlin.io' type=kotlin.Unit origin=null CONSTRUCTOR visibility:public <> () returnType:.Test3 BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test3 modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -81,19 +81,19 @@ FILE fqName: fileName:/initBlock.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Test4 ANONYMOUS_INITIALIZER isStatic=false BLOCK_BODY - CALL 'public final fun println (message: kotlin.Any?): kotlin.Unit [inline] declared in kotlin.io' type=kotlin.Unit origin=null + CALL 'public final fun println (message: kotlin.Any?): kotlin.Unit declared in kotlin.io' type=kotlin.Unit origin=null message: CONST String type=kotlin.String value="1" CONSTRUCTOR visibility:public <> () returnType:.Test4 BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test4 modality:FINAL visibility:public superTypes:[kotlin.Any]' ANONYMOUS_INITIALIZER isStatic=false BLOCK_BODY - CALL 'public final fun println (message: kotlin.Any?): kotlin.Unit [inline] declared in kotlin.io' type=kotlin.Unit origin=null + CALL 'public final fun println (message: kotlin.Any?): kotlin.Unit declared in kotlin.io' type=kotlin.Unit origin=null message: CONST String type=kotlin.String value="2" 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -108,26 +108,26 @@ FILE fqName: fileName:/initBlock.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Test5 CONSTRUCTOR visibility:public <> () returnType:.Test5 [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test5 modality:FINAL visibility:public superTypes:[kotlin.Any]' ANONYMOUS_INITIALIZER isStatic=false BLOCK_BODY - CALL 'public final fun println (message: kotlin.Any?): kotlin.Unit [inline] declared in kotlin.io' type=kotlin.Unit origin=null + CALL 'public final fun println (message: kotlin.Any?): kotlin.Unit declared in kotlin.io' type=kotlin.Unit origin=null message: CONST String type=kotlin.String value="1" CLASS CLASS name:TestInner modality:FINAL visibility:public [inner] superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Test5.TestInner CONSTRUCTOR visibility:public <> ($this:.Test5) returnType:.Test5.TestInner [primary] $outer: VALUE_PARAMETER name: type:.Test5 BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:TestInner modality:FINAL visibility:public [inner] superTypes:[kotlin.Any]' ANONYMOUS_INITIALIZER isStatic=false BLOCK_BODY - CALL 'public final fun println (message: kotlin.Any?): kotlin.Unit [inline] declared in kotlin.io' type=kotlin.Unit origin=null + CALL 'public final fun println (message: kotlin.Any?): kotlin.Unit declared in kotlin.io' type=kotlin.Unit origin=null message: CONST String type=kotlin.String value="2" 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -140,7 +140,7 @@ FILE fqName: fileName:/initBlock.kt $this: VALUE_PARAMETER name: type: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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/classes/initBlock.kt b/compiler/testData/ir/irText/classes/initBlock.kt index f330d29bc0d..e99a830fb63 100644 --- a/compiler/testData/ir/irText/classes/initBlock.kt +++ b/compiler/testData/ir/irText/classes/initBlock.kt @@ -1,7 +1,5 @@ // FIR_IDENTICAL // WITH_STDLIB -// IGNORE_BACKEND: JS_IR -// IGNORE_BACKEND: JS_IR_ES6 class Test1 { init { diff --git a/compiler/testData/ir/irText/classes/initVal.ir.txt b/compiler/testData/ir/irText/classes/initVal.ir.txt index 688c1dcc903..570fc33d8f6 100644 --- a/compiler/testData/ir/irText/classes/initVal.ir.txt +++ b/compiler/testData/ir/irText/classes/initVal.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/initVal.kt CONSTRUCTOR visibility:public <> (x:kotlin.Int) returnType:.TestInitValFromParameter [primary] VALUE_PARAMETER name:x index:0 type:kotlin.Int BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:TestInitValFromParameter modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private [final] @@ -19,7 +19,7 @@ FILE fqName: fileName:/initVal.kt receiver: GET_VAR ': .TestInitValFromParameter declared in .TestInitValFromParameter.' type=.TestInitValFromParameter 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -34,7 +34,7 @@ FILE fqName: fileName:/initVal.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.TestInitValInClass CONSTRUCTOR visibility:public <> () returnType:.TestInitValInClass [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:TestInitValInClass modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private [final] @@ -49,7 +49,7 @@ FILE fqName: fileName:/initVal.kt receiver: GET_VAR ': .TestInitValInClass declared in .TestInitValInClass.' type=.TestInitValInClass 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -64,7 +64,7 @@ FILE fqName: fileName:/initVal.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.TestInitValInInitBlock CONSTRUCTOR visibility:public <> () returnType:.TestInitValInInitBlock [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:TestInitValInInitBlock modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private [final] @@ -82,7 +82,7 @@ FILE fqName: fileName:/initVal.kt value: CONST Int type=kotlin.Int value=0 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/classes/initValInLambda.ir.txt b/compiler/testData/ir/irText/classes/initValInLambda.ir.txt index 90b288138ab..be46daccfbe 100644 --- a/compiler/testData/ir/irText/classes/initValInLambda.ir.txt +++ b/compiler/testData/ir/irText/classes/initValInLambda.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/initValInLambda.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.TestInitValInLambdaCalledOnce CONSTRUCTOR visibility:public <> () returnType:.TestInitValInLambdaCalledOnce [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:TestInitValInLambdaCalledOnce modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private [final] @@ -16,7 +16,7 @@ FILE fqName: fileName:/initValInLambda.kt receiver: GET_VAR ': .TestInitValInLambdaCalledOnce declared in .TestInitValInLambdaCalledOnce.' type=.TestInitValInLambdaCalledOnce origin=null ANONYMOUS_INITIALIZER isStatic=false BLOCK_BODY - CALL 'public final fun run (block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.run [inline] declared in kotlin.StandardKt' type=kotlin.Unit origin=null + CALL 'public final fun run (block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.run declared in kotlin.StandardKt' type=kotlin.Unit origin=null : kotlin.Int : kotlin.Unit $receiver: CONST Int type=kotlin.Int value=1 @@ -29,7 +29,7 @@ FILE fqName: fileName:/initValInLambda.kt value: CONST Int type=kotlin.Int value=0 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/classes/initVar.ir.txt b/compiler/testData/ir/irText/classes/initVar.ir.txt index 8bf126452c2..b87aa5353c6 100644 --- a/compiler/testData/ir/irText/classes/initVar.ir.txt +++ b/compiler/testData/ir/irText/classes/initVar.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/initVar.kt CONSTRUCTOR visibility:public <> (x:kotlin.Int) returnType:.TestInitVarFromParameter [primary] VALUE_PARAMETER name:x index:0 type:kotlin.Int BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:TestInitVarFromParameter modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:x visibility:public modality:FINAL [var] FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private @@ -27,7 +27,7 @@ FILE fqName: fileName:/initVar.kt value: GET_VAR ': kotlin.Int declared in .TestInitVarFromParameter.' type=kotlin.Int 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -42,7 +42,7 @@ FILE fqName: fileName:/initVar.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.TestInitVarInClass CONSTRUCTOR visibility:public <> () returnType:.TestInitVarInClass [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:TestInitVarInClass modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:x visibility:public modality:FINAL [var] FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private @@ -65,7 +65,7 @@ FILE fqName: fileName:/initVar.kt value: GET_VAR ': kotlin.Int declared in .TestInitVarInClass.' type=kotlin.Int 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -80,7 +80,7 @@ FILE fqName: fileName:/initVar.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.TestInitVarInInitBlock CONSTRUCTOR visibility:public <> () returnType:.TestInitVarInInitBlock [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:TestInitVarInInitBlock modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:x visibility:public modality:FINAL [var] FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private @@ -106,7 +106,7 @@ FILE fqName: fileName:/initVar.kt : CONST Int type=kotlin.Int value=0 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -121,7 +121,7 @@ FILE fqName: fileName:/initVar.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.TestInitVarWithCustomSetter CONSTRUCTOR visibility:public <> () returnType:.TestInitVarWithCustomSetter [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:TestInitVarWithCustomSetter modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:x visibility:public modality:FINAL [var] FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private @@ -144,7 +144,7 @@ FILE fqName: fileName:/initVar.kt value: GET_VAR 'value: kotlin.Int declared in .TestInitVarWithCustomSetter.' type=kotlin.Int 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/classes/inlineClass.fir.ir.txt b/compiler/testData/ir/irText/classes/inlineClass.fir.ir.txt index 8ea3e588ad7..005962b7b32 100644 --- a/compiler/testData/ir/irText/classes/inlineClass.fir.ir.txt +++ b/compiler/testData/ir/irText/classes/inlineClass.fir.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/inlineClass.kt CONSTRUCTOR visibility:public <> (x:kotlin.Int) returnType:.Test [primary] VALUE_PARAMETER name:x index:0 type:kotlin.Int BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test modality:FINAL visibility:public [value] superTypes:[kotlin.Any]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private [final] @@ -19,7 +19,7 @@ FILE fqName: fileName:/inlineClass.kt receiver: GET_VAR ': .Test declared in .Test.' type=.Test origin=null FUN GENERATED_SINGLE_FIELD_VALUE_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:.Test, other:kotlin.Any?) returnType:kotlin.Boolean [operator] overridden: - public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any $this: VALUE_PARAMETER name: type:.Test VALUE_PARAMETER name:other index:0 type:kotlin.Any? BLOCK_BODY @@ -27,22 +27,22 @@ FILE fqName: fileName:/inlineClass.kt BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=.Test GET_VAR 'other: kotlin.Any? declared in .Test.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test' CONST Boolean type=kotlin.Boolean value=false VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:.Test [val] TYPE_OP type=.Test origin=CAST typeOperand=.Test GET_VAR 'other: kotlin.Any? declared in .Test.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 + if: CALL 'public final fun not (): kotlin.Boolean 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:x type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null receiver: GET_VAR ': .Test declared in .Test.equals' type=.Test origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null - receiver: GET_VAR 'val tmp_0: .Test [val] declared in .Test.equals' type=.Test origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test' + receiver: GET_VAR 'val tmp_0: .Test declared in .Test.equals' type=.Test origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test' CONST Boolean type=kotlin.Boolean value=false - RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test' + RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test' CONST Boolean type=kotlin.Boolean value=true FUN GENERATED_SINGLE_FIELD_VALUE_CLASS_MEMBER name:hashCode visibility:public modality:OPEN <> ($this:.Test) returnType:kotlin.Int overridden: @@ -50,7 +50,7 @@ FILE fqName: fileName:/inlineClass.kt $this: VALUE_PARAMETER name: type:.Test BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun hashCode (): kotlin.Int declared in .Test' - CALL 'public open fun hashCode (): kotlin.Int [fake_override] declared in kotlin.Int' type=kotlin.Int origin=null + CALL 'public open fun hashCode (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null receiver: GET_VAR ': .Test declared in .Test.hashCode' type=.Test origin=null FUN GENERATED_SINGLE_FIELD_VALUE_CLASS_MEMBER name:toString visibility:public modality:OPEN <> ($this:.Test) returnType:kotlin.String diff --git a/compiler/testData/ir/irText/classes/inlineClass.ir.txt b/compiler/testData/ir/irText/classes/inlineClass.ir.txt index 4a4a431b1c7..3a7d3fb8836 100644 --- a/compiler/testData/ir/irText/classes/inlineClass.ir.txt +++ b/compiler/testData/ir/irText/classes/inlineClass.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/inlineClass.kt CONSTRUCTOR visibility:public <> (x:kotlin.Int) returnType:.Test [primary] VALUE_PARAMETER name:x index:0 type:kotlin.Int BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test modality:FINAL visibility:public [value] superTypes:[kotlin.Any]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private [final] @@ -35,12 +35,12 @@ FILE fqName: fileName:/inlineClass.kt $this: VALUE_PARAMETER name: type:.Test BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun hashCode (): kotlin.Int declared in .Test' - CALL 'public open fun hashCode (): kotlin.Int [fake_override] declared in kotlin.Int' type=kotlin.Int origin=null + CALL 'public open fun hashCode (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null receiver: GET_VAR ': .Test declared in .Test.hashCode' type=.Test origin=null FUN GENERATED_SINGLE_FIELD_VALUE_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:.Test, other:kotlin.Any?) returnType:kotlin.Boolean [operator] overridden: - public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any $this: VALUE_PARAMETER name: type:.Test VALUE_PARAMETER name:other index:0 type:kotlin.Any? BLOCK_BODY @@ -48,20 +48,20 @@ FILE fqName: fileName:/inlineClass.kt BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=.Test GET_VAR 'other: kotlin.Any? declared in .Test.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test' CONST Boolean type=kotlin.Boolean value=false VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:.Test [val] TYPE_OP type=.Test origin=CAST typeOperand=.Test GET_VAR 'other: kotlin.Any? declared in .Test.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 + if: CALL 'public final fun not (): kotlin.Boolean 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:x type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null receiver: GET_VAR ': .Test declared in .Test.equals' type=.Test origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null - receiver: GET_VAR 'val tmp_0: .Test [val] declared in .Test.equals' type=.Test origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test' + receiver: GET_VAR 'val tmp_0: .Test declared in .Test.equals' type=.Test origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test' CONST Boolean type=kotlin.Boolean value=false - RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test' + RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test' CONST Boolean type=kotlin.Boolean value=true diff --git a/compiler/testData/ir/irText/classes/inlineClass.kt b/compiler/testData/ir/irText/classes/inlineClass.kt index de15f58e63b..26be59daaa7 100644 --- a/compiler/testData/ir/irText/classes/inlineClass.kt +++ b/compiler/testData/ir/irText/classes/inlineClass.kt @@ -1,5 +1,3 @@ // !LANGUAGE: +InlineClasses -// IGNORE_BACKEND: JS_IR -// IGNORE_BACKEND: JS_IR_ES6 inline class Test(val x: Int) diff --git a/compiler/testData/ir/irText/classes/inlineClassSyntheticMethods.fir.ir.txt b/compiler/testData/ir/irText/classes/inlineClassSyntheticMethods.fir.ir.txt index 334c6581bf5..7d122516247 100644 --- a/compiler/testData/ir/irText/classes/inlineClassSyntheticMethods.fir.ir.txt +++ b/compiler/testData/ir/irText/classes/inlineClassSyntheticMethods.fir.ir.txt @@ -5,7 +5,7 @@ FILE fqName: fileName:/inlineClassSyntheticMethods.kt CONSTRUCTOR visibility:public <> (t:T of .C) returnType:.C.C> [primary] VALUE_PARAMETER name:t index:0 type:T of .C BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:t visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:t type:T of .C visibility:private [final] @@ -29,7 +29,7 @@ FILE fqName: fileName:/inlineClassSyntheticMethods.kt $this: GET_VAR ': .C.C> declared in .C.hashCode' type=.C.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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any $this: VALUE_PARAMETER name: type:kotlin.Any VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String [fake_override] @@ -42,7 +42,7 @@ FILE fqName: fileName:/inlineClassSyntheticMethods.kt CONSTRUCTOR visibility:public <> (c:.C.IC>) returnType:.IC.IC> [primary] VALUE_PARAMETER name:c index:0 type:.C.IC> BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:IC modality:FINAL visibility:public [value] superTypes:[kotlin.Any]' PROPERTY name:c visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:c type:.C.IC> visibility:private [final] @@ -64,7 +64,7 @@ FILE fqName: fileName:/inlineClassSyntheticMethods.kt $this: GET_VAR ': .IC.IC> declared in .IC.foo' type=.IC.IC> origin=null FUN GENERATED_SINGLE_FIELD_VALUE_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:.IC.IC>, other:kotlin.Any?) returnType:kotlin.Boolean [operator] overridden: - public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any $this: VALUE_PARAMETER name: type:.IC.IC> VALUE_PARAMETER name:other index:0 type:kotlin.Any? BLOCK_BODY @@ -72,22 +72,22 @@ FILE fqName: fileName:/inlineClassSyntheticMethods.kt BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=.IC.IC> GET_VAR 'other: kotlin.Any? declared in .IC.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .IC' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IC' CONST Boolean type=kotlin.Boolean value=false VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:.IC.IC> [val] TYPE_OP type=.IC.IC> origin=CAST typeOperand=.IC.IC> GET_VAR 'other: kotlin.Any? declared in .IC.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 + if: CALL 'public final fun not (): kotlin.Boolean 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:c type:.C.IC> visibility:private [final]' type=.C.IC> origin=null receiver: GET_VAR ': .IC.IC> declared in .IC.equals' type=.IC.IC> origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:c type:.C.IC> visibility:private [final]' type=.C.IC> origin=null - receiver: GET_VAR 'val tmp_0: .IC.IC> [val] declared in .IC.equals' type=.IC.IC> origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .IC' + receiver: GET_VAR 'val tmp_0: .IC.IC> declared in .IC.equals' type=.IC.IC> origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IC' CONST Boolean type=kotlin.Boolean value=false - RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .IC' + RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IC' CONST Boolean type=kotlin.Boolean value=true FUN GENERATED_SINGLE_FIELD_VALUE_CLASS_MEMBER name:hashCode visibility:public modality:OPEN <> ($this:.IC.IC>) returnType:kotlin.Int overridden: @@ -112,17 +112,17 @@ FILE fqName: fileName:/inlineClassSyntheticMethods.kt FUN name:box visibility:public modality:FINAL <> () returnType:kotlin.String BLOCK_BODY VAR name:ic type:.IC [val] - CONSTRUCTOR_CALL 'public constructor (c: .C.IC>) [primary] declared in .IC' type=.IC origin=null + CONSTRUCTOR_CALL 'public constructor (c: .C.IC>) declared in .IC' type=.IC origin=null : kotlin.Int - c: CONSTRUCTOR_CALL 'public constructor (t: T of .C) [primary] declared in .C' type=.C origin=null + c: CONSTRUCTOR_CALL 'public constructor (t: T of .C) declared in .C' type=.C origin=null : kotlin.Int t: CONST Int type=kotlin.Int value=42 WHEN type=kotlin.Unit origin=IF BRANCH - if: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ + if: CALL 'public final fun not (): kotlin.Boolean 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: CALL 'public final fun foo (): kotlin.Int declared in .IC' type=kotlin.Int origin=null - $this: GET_VAR 'val ic: .IC [val] declared in .box' type=.IC origin=null + $this: GET_VAR 'val ic: .IC declared in .box' type=.IC origin=null arg1: CONST Int type=kotlin.Int value=42 then: RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' CONST String type=kotlin.String value="FAIL" diff --git a/compiler/testData/ir/irText/classes/inlineClassSyntheticMethods.ir.txt b/compiler/testData/ir/irText/classes/inlineClassSyntheticMethods.ir.txt index d0c7a8124a8..feaca93860f 100644 --- a/compiler/testData/ir/irText/classes/inlineClassSyntheticMethods.ir.txt +++ b/compiler/testData/ir/irText/classes/inlineClassSyntheticMethods.ir.txt @@ -5,7 +5,7 @@ FILE fqName: fileName:/inlineClassSyntheticMethods.kt CONSTRUCTOR visibility:public <> (t:T of .C) returnType:.C.C> [primary] VALUE_PARAMETER name:t index:0 type:T of .C BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:t visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:t type:T of .C visibility:private [final] @@ -29,7 +29,7 @@ FILE fqName: fileName:/inlineClassSyntheticMethods.kt $this: GET_VAR ': .C.C> declared in .C.hashCode' type=.C.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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any $this: VALUE_PARAMETER name: type:kotlin.Any VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String [fake_override] @@ -42,7 +42,7 @@ FILE fqName: fileName:/inlineClassSyntheticMethods.kt CONSTRUCTOR visibility:public <> (c:.C.IC>) returnType:.IC.IC> [primary] VALUE_PARAMETER name:c index:0 type:.C.IC> BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:IC modality:FINAL visibility:public [value] superTypes:[kotlin.Any]' PROPERTY name:c visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:c type:.C.IC> visibility:private [final] @@ -85,7 +85,7 @@ FILE fqName: fileName:/inlineClassSyntheticMethods.kt receiver: GET_VAR ': .IC.IC> declared in .IC.hashCode' type=.IC.IC> origin=null FUN GENERATED_SINGLE_FIELD_VALUE_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:.IC.IC>, other:kotlin.Any?) returnType:kotlin.Boolean [operator] overridden: - public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any $this: VALUE_PARAMETER name: type:.IC.IC> VALUE_PARAMETER name:other index:0 type:kotlin.Any? BLOCK_BODY @@ -93,37 +93,37 @@ FILE fqName: fileName:/inlineClassSyntheticMethods.kt BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=.IC.IC> GET_VAR 'other: kotlin.Any? declared in .IC.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .IC' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IC' CONST Boolean type=kotlin.Boolean value=false VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:.IC.IC> [val] TYPE_OP type=.IC.IC> origin=CAST typeOperand=.IC.IC> GET_VAR 'other: kotlin.Any? declared in .IC.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 + if: CALL 'public final fun not (): kotlin.Boolean 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:c type:.C.IC> visibility:private [final]' type=.C.IC> origin=null receiver: GET_VAR ': .IC.IC> declared in .IC.equals' type=.IC.IC> origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:c type:.C.IC> visibility:private [final]' type=.C.IC> origin=null - receiver: GET_VAR 'val tmp_0: .IC.IC> [val] declared in .IC.equals' type=.IC.IC> origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .IC' + receiver: GET_VAR 'val tmp_0: .IC.IC> declared in .IC.equals' type=.IC.IC> origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IC' CONST Boolean type=kotlin.Boolean value=false - RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .IC' + RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IC' CONST Boolean type=kotlin.Boolean value=true FUN name:box visibility:public modality:FINAL <> () returnType:kotlin.String BLOCK_BODY VAR name:ic type:.IC [val] - CONSTRUCTOR_CALL 'public constructor (c: .C.IC>) [primary] declared in .IC' type=.IC origin=null + CONSTRUCTOR_CALL 'public constructor (c: .C.IC>) declared in .IC' type=.IC origin=null : kotlin.Int - c: CONSTRUCTOR_CALL 'public constructor (t: T of .C) [primary] declared in .C' type=.C origin=null + c: CONSTRUCTOR_CALL 'public constructor (t: T of .C) declared in .C' type=.C origin=null : kotlin.Int t: CONST Int type=kotlin.Int value=42 WHEN type=kotlin.Unit origin=IF BRANCH - if: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ + if: CALL 'public final fun not (): kotlin.Boolean 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: CALL 'public final fun foo (): kotlin.Int declared in .IC' type=kotlin.Int origin=null - $this: GET_VAR 'val ic: .IC [val] declared in .box' type=.IC origin=null + $this: GET_VAR 'val ic: .IC declared in .box' type=.IC origin=null arg1: CONST Int type=kotlin.Int value=42 then: RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' CONST String type=kotlin.String value="FAIL" diff --git a/compiler/testData/ir/irText/classes/innerClass.fir.ir.txt b/compiler/testData/ir/irText/classes/innerClass.fir.ir.txt index 0e0739bd678..3223d3d942d 100644 --- a/compiler/testData/ir/irText/classes/innerClass.fir.ir.txt +++ b/compiler/testData/ir/irText/classes/innerClass.fir.ir.txt @@ -3,18 +3,18 @@ FILE fqName: fileName:/innerClass.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Outer CONSTRUCTOR visibility:public <> () returnType:.Outer [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Outer modality:FINAL visibility:public superTypes:[kotlin.Any]' CLASS CLASS name:TestInnerClass modality:OPEN visibility:public [inner] superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Outer.TestInnerClass CONSTRUCTOR visibility:public <> ($this:.Outer) returnType:.Outer.TestInnerClass [primary] $outer: VALUE_PARAMETER name: type:.Outer BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:TestInnerClass modality:OPEN visibility:public [inner] 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -30,25 +30,25 @@ FILE fqName: fileName:/innerClass.kt CONSTRUCTOR visibility:public <> ($this:.Outer) returnType:.Outer.DerivedInnerClass [primary] $outer: VALUE_PARAMETER name: type:.Outer BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .Outer.TestInnerClass' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .Outer.TestInnerClass' $this: GET_VAR ': .Outer declared in .Outer' type=.Outer origin=null INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:DerivedInnerClass modality:FINAL visibility:public [inner] superTypes:[.Outer.TestInnerClass]' 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 .Outer.TestInnerClass + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Outer.TestInnerClass $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 .Outer.TestInnerClass + public open fun hashCode (): kotlin.Int declared in .Outer.TestInnerClass $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 .Outer.TestInnerClass + public open fun toString (): kotlin.String declared in .Outer.TestInnerClass $this: VALUE_PARAMETER name: type: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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/classes/innerClass.ir.txt b/compiler/testData/ir/irText/classes/innerClass.ir.txt index 44d7e8e52ae..3d2d47e4943 100644 --- a/compiler/testData/ir/irText/classes/innerClass.ir.txt +++ b/compiler/testData/ir/irText/classes/innerClass.ir.txt @@ -3,18 +3,18 @@ FILE fqName: fileName:/innerClass.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Outer CONSTRUCTOR visibility:public <> () returnType:.Outer [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Outer modality:FINAL visibility:public superTypes:[kotlin.Any]' CLASS CLASS name:TestInnerClass modality:OPEN visibility:public [inner] superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Outer.TestInnerClass CONSTRUCTOR visibility:public <> ($this:.Outer) returnType:.Outer.TestInnerClass [primary] $outer: VALUE_PARAMETER name: type:.Outer BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:TestInnerClass modality:OPEN visibility:public [inner] 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -30,25 +30,25 @@ FILE fqName: fileName:/innerClass.kt CONSTRUCTOR visibility:public <> ($this:.Outer) returnType:.Outer.DerivedInnerClass [primary] $outer: VALUE_PARAMETER name: type:.Outer BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .Outer.TestInnerClass' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .Outer.TestInnerClass' $this: GET_VAR ': .Outer declared in .Outer.DerivedInnerClass.' type=.Outer origin=null INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:DerivedInnerClass modality:FINAL visibility:public [inner] superTypes:[.Outer.TestInnerClass]' 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 .Outer.TestInnerClass + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Outer.TestInnerClass $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 .Outer.TestInnerClass + public open fun hashCode (): kotlin.Int declared in .Outer.TestInnerClass $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 .Outer.TestInnerClass + public open fun toString (): kotlin.String declared in .Outer.TestInnerClass $this: VALUE_PARAMETER name: type: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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/classes/innerClassWithDelegatingConstructor.fir.ir.txt b/compiler/testData/ir/irText/classes/innerClassWithDelegatingConstructor.fir.ir.txt index 951dd86b52b..716ef5013be 100644 --- a/compiler/testData/ir/irText/classes/innerClassWithDelegatingConstructor.fir.ir.txt +++ b/compiler/testData/ir/irText/classes/innerClassWithDelegatingConstructor.fir.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/innerClassWithDelegatingConstructor.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Outer CONSTRUCTOR visibility:public <> () returnType:.Outer [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Outer modality:FINAL visibility:public superTypes:[kotlin.Any]' CLASS CLASS name:Inner modality:FINAL visibility:public [inner] superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Outer.Inner @@ -11,7 +11,7 @@ FILE fqName: fileName:/innerClassWithDelegatingConstructor.kt $outer: VALUE_PARAMETER name: type:.Outer VALUE_PARAMETER name:x index:0 type:kotlin.Int BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Inner modality:FINAL visibility:public [inner] superTypes:[kotlin.Any]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private [final] @@ -27,12 +27,12 @@ FILE fqName: fileName:/innerClassWithDelegatingConstructor.kt CONSTRUCTOR visibility:public <> ($this:.Outer) returnType:.Outer.Inner $outer: VALUE_PARAMETER name: type:.Outer BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor (x: kotlin.Int) [primary] declared in .Outer.Inner' + DELEGATING_CONSTRUCTOR_CALL 'public constructor (x: kotlin.Int) declared in .Outer.Inner' $this: GET_VAR ': .Outer declared in .Outer' type=.Outer origin=null x: CONST Int type=kotlin.Int value=0 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -45,7 +45,7 @@ FILE fqName: fileName:/innerClassWithDelegatingConstructor.kt $this: VALUE_PARAMETER name: type: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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/classes/innerClassWithDelegatingConstructor.ir.txt b/compiler/testData/ir/irText/classes/innerClassWithDelegatingConstructor.ir.txt index 48a3ba4a20a..0f3ff67f744 100644 --- a/compiler/testData/ir/irText/classes/innerClassWithDelegatingConstructor.ir.txt +++ b/compiler/testData/ir/irText/classes/innerClassWithDelegatingConstructor.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/innerClassWithDelegatingConstructor.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Outer CONSTRUCTOR visibility:public <> () returnType:.Outer [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Outer modality:FINAL visibility:public superTypes:[kotlin.Any]' CLASS CLASS name:Inner modality:FINAL visibility:public [inner] superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Outer.Inner @@ -11,7 +11,7 @@ FILE fqName: fileName:/innerClassWithDelegatingConstructor.kt $outer: VALUE_PARAMETER name: type:.Outer VALUE_PARAMETER name:x index:0 type:kotlin.Int BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Inner modality:FINAL visibility:public [inner] superTypes:[kotlin.Any]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private [final] @@ -27,12 +27,12 @@ FILE fqName: fileName:/innerClassWithDelegatingConstructor.kt CONSTRUCTOR visibility:public <> ($this:.Outer) returnType:.Outer.Inner $outer: VALUE_PARAMETER name: type:.Outer BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor (x: kotlin.Int) [primary] declared in .Outer.Inner' + DELEGATING_CONSTRUCTOR_CALL 'public constructor (x: kotlin.Int) declared in .Outer.Inner' $this: GET_VAR ': .Outer declared in .Outer.Inner.' type=.Outer origin=null x: CONST Int type=kotlin.Int value=0 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -45,7 +45,7 @@ FILE fqName: fileName:/innerClassWithDelegatingConstructor.kt $this: VALUE_PARAMETER name: type: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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/classes/kt19306.ir.txt b/compiler/testData/ir/irText/classes/kt19306.ir.txt index 0388fe82568..2e74373addd 100644 --- a/compiler/testData/ir/irText/classes/kt19306.ir.txt +++ b/compiler/testData/ir/irText/classes/kt19306.ir.txt @@ -3,7 +3,7 @@ FILE fqName:test1 fileName:/kt19306_test1.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:test1.A CONSTRUCTOR visibility:public <> () returnType:test1.A [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:A modality:ABSTRACT visibility:public superTypes:[kotlin.Any]' PROPERTY name:p visibility:protected modality:FINAL [var] FIELD PROPERTY_BACKING_FIELD name:p type:kotlin.String visibility:private @@ -26,7 +26,7 @@ FILE fqName:test1 fileName:/kt19306_test1.kt value: GET_VAR ': kotlin.String declared in test1.A.' type=kotlin.String 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -42,7 +42,7 @@ FILE fqName:test2 fileName:/kt19306_test2.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:test2.B CONSTRUCTOR visibility:public <> () returnType:test2.B [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in test1.A' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in test1.A' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:B modality:FINAL visibility:public superTypes:[test1.A]' FUN name:test visibility:public modality:FINAL <> ($this:test2.B) returnType:kotlin.Function0 $this: VALUE_PARAMETER name: type:test2.B @@ -52,11 +52,11 @@ FILE fqName:test2 fileName:/kt19306_test2.kt FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:kotlin.String BLOCK_BODY RETURN type=kotlin.Nothing from='local final fun (): kotlin.String declared in test2.B.test' - CALL 'protected final fun (): kotlin.String [fake_override] declared in test2.B' type=kotlin.String origin=GET_PROPERTY + CALL 'protected final fun (): kotlin.String declared in test2.B' type=kotlin.String origin=GET_PROPERTY $this: GET_VAR ': test2.B declared in test2.B.test' type=test2.B origin=null PROPERTY FAKE_OVERRIDE name:p visibility:protected modality:FINAL [fake_override,var] overridden: - protected final p: kotlin.String [var] + protected final p: kotlin.String FUN FAKE_OVERRIDE name: visibility:protected modality:FINAL <> ($this:test1.A) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:p visibility:protected modality:FINAL [fake_override,var] overridden: @@ -64,14 +64,14 @@ FILE fqName:test2 fileName:/kt19306_test2.kt $this: VALUE_PARAMETER name: type:test1.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 [fake_override,operator] declared in test1.A + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in test1.A $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 test1.A + public open fun hashCode (): kotlin.Int declared in test1.A $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 test1.A + public open fun toString (): kotlin.String declared in test1.A $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/classes/kt43217.fir.ir.txt b/compiler/testData/ir/irText/classes/kt43217.fir.ir.txt index ccad1c79bda..6e612dac23e 100644 --- a/compiler/testData/ir/irText/classes/kt43217.fir.ir.txt +++ b/compiler/testData/ir/irText/classes/kt43217.fir.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/kt43217.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.A CONSTRUCTOR visibility:public <> () returnType:.A [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:A modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:b visibility:private modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:b type:.A.b. visibility:private [final] @@ -13,11 +13,11 @@ FILE fqName: fileName:/kt43217.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.A.b. CONSTRUCTOR visibility:public <> () returnType:.A.b. [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .DoubleExpression' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .DoubleExpression' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name: modality:FINAL visibility:local superTypes:[.DoubleExpression]' FUN name:get visibility:public modality:OPEN <> ($this:.A.b.) returnType:kotlin.Double overridden: - public abstract fun get (): @[EnhancedNullability] kotlin.Double [fake_override] declared in .DoubleExpression + public abstract fun get (): @[EnhancedNullability] kotlin.Double declared in .DoubleExpression $this: VALUE_PARAMETER name: type:.A.b. BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun get (): kotlin.Double declared in .A.b.' @@ -34,25 +34,25 @@ FILE fqName: fileName:/kt43217.kt annotations: NotNull(value = ) overridden: - public open fun isEqualTo (value: @[EnhancedNullability] kotlin.Double): @[EnhancedNullability] kotlin.Any [fake_override] declared in .DoubleExpression + public open fun isEqualTo (value: @[EnhancedNullability] kotlin.Double): @[EnhancedNullability] kotlin.Any declared in .DoubleExpression $this: VALUE_PARAMETER name: type:.ObservableValue.ObservableValue> VALUE_PARAMETER name:value index:0 type:@[EnhancedNullability] kotlin.Double annotations: NotNull(value = ) 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 .DoubleExpression + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .DoubleExpression $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 .DoubleExpression + public open fun hashCode (): kotlin.Int declared in .DoubleExpression $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 .DoubleExpression + public open fun toString (): kotlin.String declared in .DoubleExpression $this: VALUE_PARAMETER name: type:kotlin.Any - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .A.b.' type=.A.b. origin=OBJECT_LITERAL + CONSTRUCTOR_CALL 'public constructor () declared in .A.b.' type=.A.b. origin=OBJECT_LITERAL FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:private modality:FINAL <> ($this:.A) returnType:.A.b. correspondingProperty: PROPERTY name:b visibility:private modality:FINAL [val] $this: VALUE_PARAMETER name: type:.A @@ -62,7 +62,7 @@ FILE fqName: fileName:/kt43217.kt receiver: GET_VAR ': .A declared in .A.' type=.A 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -77,11 +77,11 @@ FILE fqName: fileName:/kt43217.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.C CONSTRUCTOR visibility:public <> () returnType:.C [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .DoubleExpression' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .DoubleExpression' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C modality:FINAL visibility:public superTypes:[.DoubleExpression]' FUN name:get visibility:public modality:OPEN <> ($this:.C) returnType:kotlin.Double overridden: - public abstract fun get (): @[EnhancedNullability] kotlin.Double [fake_override] declared in .DoubleExpression + public abstract fun get (): @[EnhancedNullability] kotlin.Double declared in .DoubleExpression $this: VALUE_PARAMETER name: type:.C BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun get (): kotlin.Double declared in .C' @@ -98,21 +98,21 @@ FILE fqName: fileName:/kt43217.kt annotations: NotNull(value = ) overridden: - public open fun isEqualTo (value: @[EnhancedNullability] kotlin.Double): @[EnhancedNullability] kotlin.Any [fake_override] declared in .DoubleExpression + public open fun isEqualTo (value: @[EnhancedNullability] kotlin.Double): @[EnhancedNullability] kotlin.Any declared in .DoubleExpression $this: VALUE_PARAMETER name: type:.ObservableValue.ObservableValue> VALUE_PARAMETER name:value index:0 type:@[EnhancedNullability] kotlin.Double annotations: NotNull(value = ) 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 .DoubleExpression + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .DoubleExpression $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 .DoubleExpression + public open fun hashCode (): kotlin.Int declared in .DoubleExpression $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 .DoubleExpression + public open fun toString (): kotlin.String declared in .DoubleExpression $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/classes/kt43217.ir.txt b/compiler/testData/ir/irText/classes/kt43217.ir.txt index cf812872f8c..7292bf376c8 100644 --- a/compiler/testData/ir/irText/classes/kt43217.ir.txt +++ b/compiler/testData/ir/irText/classes/kt43217.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/kt43217.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.A CONSTRUCTOR visibility:public <> () returnType:.A [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:A modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:b visibility:private modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:b type:.A.b. visibility:private [final] @@ -13,27 +13,27 @@ FILE fqName: fileName:/kt43217.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.A.b. CONSTRUCTOR visibility:public <> () returnType:.A.b. [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .DoubleExpression' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .DoubleExpression' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name: modality:FINAL visibility:local superTypes:[.DoubleExpression]' FUN name:get visibility:public modality:OPEN <> ($this:.A.b.) returnType:kotlin.Double overridden: - public abstract fun get (): @[EnhancedNullability] kotlin.Double [fake_override] declared in .DoubleExpression + public abstract fun get (): @[EnhancedNullability] kotlin.Double declared in .DoubleExpression $this: VALUE_PARAMETER name: type:.A.b. BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun get (): kotlin.Double declared in .A.b.' CONST Double type=kotlin.Double value=0.0 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 .DoubleExpression + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .DoubleExpression $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 .DoubleExpression + public open fun hashCode (): kotlin.Int declared in .DoubleExpression $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 .DoubleExpression + public open fun toString (): kotlin.String declared in .DoubleExpression $this: VALUE_PARAMETER name: type:kotlin.Any FUN FAKE_OVERRIDE name:isEqualTo visibility:public modality:OPEN <> ($this:.DoubleExpression, value:kotlin.Double) returnType:@[EnhancedNullability] kotlin.Any [fake_override] annotations: @@ -47,12 +47,12 @@ FILE fqName: fileName:/kt43217.kt annotations: NotNull(value = ) overridden: - public open fun isEqualTo (value: @[EnhancedNullability] kotlin.Double): @[EnhancedNullability] kotlin.Any [fake_override] declared in .DoubleExpression + public open fun isEqualTo (value: @[EnhancedNullability] kotlin.Double): @[EnhancedNullability] kotlin.Any declared in .DoubleExpression $this: VALUE_PARAMETER name: type:.ObservableValue<@[FlexibleNullability] kotlin.Double?> VALUE_PARAMETER name:value index:0 type:@[EnhancedNullability] kotlin.Double annotations: NotNull(value = ) - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .A.b.' type=.A.b. origin=OBJECT_LITERAL + CONSTRUCTOR_CALL 'public constructor () declared in .A.b.' type=.A.b. origin=OBJECT_LITERAL FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:private modality:FINAL <> ($this:.A) returnType:.A.b. correspondingProperty: PROPERTY name:b visibility:private modality:FINAL [val] $this: VALUE_PARAMETER name: type:.A @@ -62,7 +62,7 @@ FILE fqName: fileName:/kt43217.kt receiver: GET_VAR ': .A declared in .A.' type=.A 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -77,27 +77,27 @@ FILE fqName: fileName:/kt43217.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.C CONSTRUCTOR visibility:public <> () returnType:.C [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .DoubleExpression' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .DoubleExpression' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C modality:FINAL visibility:public superTypes:[.DoubleExpression]' FUN name:get visibility:public modality:OPEN <> ($this:.C) returnType:kotlin.Double overridden: - public abstract fun get (): @[EnhancedNullability] kotlin.Double [fake_override] declared in .DoubleExpression + public abstract fun get (): @[EnhancedNullability] kotlin.Double declared in .DoubleExpression $this: VALUE_PARAMETER name: type:.C BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun get (): kotlin.Double declared in .C' CONST Double type=kotlin.Double value=0.0 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 .DoubleExpression + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .DoubleExpression $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 .DoubleExpression + public open fun hashCode (): kotlin.Int declared in .DoubleExpression $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 .DoubleExpression + public open fun toString (): kotlin.String declared in .DoubleExpression $this: VALUE_PARAMETER name: type:kotlin.Any FUN FAKE_OVERRIDE name:isEqualTo visibility:public modality:OPEN <> ($this:.DoubleExpression, value:kotlin.Double) returnType:@[EnhancedNullability] kotlin.Any [fake_override] annotations: @@ -111,7 +111,7 @@ FILE fqName: fileName:/kt43217.kt annotations: NotNull(value = ) overridden: - public open fun isEqualTo (value: @[EnhancedNullability] kotlin.Double): @[EnhancedNullability] kotlin.Any [fake_override] declared in .DoubleExpression + public open fun isEqualTo (value: @[EnhancedNullability] kotlin.Double): @[EnhancedNullability] kotlin.Any declared in .DoubleExpression $this: VALUE_PARAMETER name: type:.ObservableValue<@[FlexibleNullability] kotlin.Double?> VALUE_PARAMETER name:value index:0 type:@[EnhancedNullability] kotlin.Double annotations: diff --git a/compiler/testData/ir/irText/classes/kt45853.fir.ir.txt b/compiler/testData/ir/irText/classes/kt45853.fir.ir.txt index 52b5a877e0d..7338acfdaf5 100644 --- a/compiler/testData/ir/irText/classes/kt45853.fir.ir.txt +++ b/compiler/testData/ir/irText/classes/kt45853.fir.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/kt45853.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.A CONSTRUCTOR visibility:public <> () returnType:.A [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:A modality:ABSTRACT visibility:public superTypes:[kotlin.Any]' PROPERTY name:a visibility:public modality:ABSTRACT [val] FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:ABSTRACT <> ($this:.A) returnType:.A? @@ -11,7 +11,7 @@ FILE fqName: fileName:/kt45853.kt $this: VALUE_PARAMETER name: type:.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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -26,11 +26,11 @@ FILE fqName: fileName:/kt45853.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.B CONSTRUCTOR visibility:public <> () returnType:.B [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .AX' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .AX' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:B modality:FINAL visibility:public superTypes:[.AX]' FUN name:getA visibility:public modality:OPEN <> ($this:.B) returnType:.X? overridden: - public abstract fun getA (): @[FlexibleNullability] .X? [fake_override] declared in .AX + public abstract fun getA (): @[FlexibleNullability] .X? declared in .AX $this: VALUE_PARAMETER name: type:.B BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun getA (): .X? declared in .B' @@ -38,7 +38,7 @@ FILE fqName: fileName:/kt45853.kt $this: GET_VAR ': .B declared in .B.getA' type=.B origin=null PROPERTY FAKE_OVERRIDE name:a visibility:public modality:OPEN [fake_override,val] overridden: - public open a: @[FlexibleNullability] .AX? [val] + public open a: @[FlexibleNullability] .AX? FUN FAKE_OVERRIDE name: visibility:public modality:OPEN <> ($this:.AX) returnType:@[FlexibleNullability] .AX? [fake_override] annotations: Override @@ -48,14 +48,14 @@ FILE fqName: fileName:/kt45853.kt $this: VALUE_PARAMETER name: type:.AX 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 .AX + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .AX $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 .AX + public open fun hashCode (): kotlin.Int declared in .AX $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 .AX + public open fun toString (): kotlin.String declared in .AX $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/classes/kt45853.ir.txt b/compiler/testData/ir/irText/classes/kt45853.ir.txt index a19a374b376..a3e783d9916 100644 --- a/compiler/testData/ir/irText/classes/kt45853.ir.txt +++ b/compiler/testData/ir/irText/classes/kt45853.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/kt45853.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.A CONSTRUCTOR visibility:public <> () returnType:.A [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:A modality:ABSTRACT visibility:public superTypes:[kotlin.Any]' PROPERTY name:a visibility:public modality:ABSTRACT [val] FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:ABSTRACT <> ($this:.A) returnType:.A? @@ -11,7 +11,7 @@ FILE fqName: fileName:/kt45853.kt $this: VALUE_PARAMETER name: type:.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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -26,11 +26,11 @@ FILE fqName: fileName:/kt45853.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.B CONSTRUCTOR visibility:public <> () returnType:.B [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .AX' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .AX' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:B modality:FINAL visibility:public superTypes:[.AX]' FUN name:getA visibility:public modality:OPEN <> ($this:.B) returnType:.X? overridden: - public abstract fun getA (): @[FlexibleNullability] .X? [fake_override] declared in .AX + public abstract fun getA (): @[FlexibleNullability] .X? declared in .AX $this: VALUE_PARAMETER name: type:.B BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun getA (): .X? declared in .B' @@ -38,20 +38,20 @@ FILE fqName: fileName:/kt45853.kt $this: GET_VAR ': .B declared in .B.getA' type=.B 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 [fake_override,operator] declared in .AX + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .AX $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 .AX + public open fun hashCode (): kotlin.Int declared in .AX $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 .AX + public open fun toString (): kotlin.String declared in .AX $this: VALUE_PARAMETER name: type:kotlin.Any PROPERTY FAKE_OVERRIDE name:a visibility:public modality:OPEN [fake_override,val] overridden: - public open a: @[EnhancedNullability] .AX? [val] + public open a: @[EnhancedNullability] .AX? FUN FAKE_OVERRIDE name: visibility:public modality:OPEN <> ($this:.AX) returnType:@[EnhancedNullability] .AX? [fake_override] annotations: Override diff --git a/compiler/testData/ir/irText/classes/kt45934.fir.ir.txt b/compiler/testData/ir/irText/classes/kt45934.fir.ir.txt index 3bee190afd4..9e9249b2052 100644 --- a/compiler/testData/ir/irText/classes/kt45934.fir.ir.txt +++ b/compiler/testData/ir/irText/classes/kt45934.fir.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/kt45934.kt CONSTRUCTOR visibility:public <> (client:.J) returnType:.C [primary] VALUE_PARAMETER name:client index:0 type:.J BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C modality:FINAL visibility:public superTypes:[.I]' FUN DELEGATED_MEMBER name:foo visibility:public modality:OPEN ($this:.C) returnType:@[FlexibleNullability] @[FlexibleMutability] kotlin.collections.MutableList<@[FlexibleNullability] C of .C.foo?>? overridden: @@ -21,14 +21,14 @@ FILE fqName: fileName:/kt45934.kt GET_VAR 'client: .J declared in .C.' type=.J 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 [fake_override,operator] declared in .I + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .I $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 .I + public open fun hashCode (): kotlin.Int declared in .I $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 .I + public open fun toString (): kotlin.String declared in .I $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/classes/kt45934.ir.txt b/compiler/testData/ir/irText/classes/kt45934.ir.txt index 158048185fa..98f0665cc0d 100644 --- a/compiler/testData/ir/irText/classes/kt45934.ir.txt +++ b/compiler/testData/ir/irText/classes/kt45934.ir.txt @@ -4,21 +4,21 @@ FILE fqName: fileName:/kt45934.kt CONSTRUCTOR visibility:public <> (client:.J) returnType:.C [primary] VALUE_PARAMETER name:client index:0 type:.J BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C modality:FINAL visibility:public superTypes:[.I]' FIELD DELEGATE name:$$delegate_0 type:.J visibility:private [final] EXPRESSION_BODY GET_VAR 'client: .J declared in .C.' type=.J 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 [fake_override,operator] declared in .I + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .I $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 .I + public open fun hashCode (): kotlin.Int declared in .I $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 .I + public open fun toString (): kotlin.String declared in .I $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/classes/localClasses.ir.txt b/compiler/testData/ir/irText/classes/localClasses.ir.txt index 8e18b02400e..64f22b142d9 100644 --- a/compiler/testData/ir/irText/classes/localClasses.ir.txt +++ b/compiler/testData/ir/irText/classes/localClasses.ir.txt @@ -5,14 +5,14 @@ FILE fqName: fileName:/localClasses.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.outer.LocalClass CONSTRUCTOR visibility:public <> () returnType:.outer.LocalClass [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:LocalClass modality:FINAL visibility:local superTypes:[kotlin.Any]' FUN name:foo visibility:public modality:FINAL <> ($this:.outer.LocalClass) returnType:kotlin.Unit $this: VALUE_PARAMETER name: type:.outer.LocalClass 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -24,4 +24,4 @@ FILE fqName: fileName:/localClasses.kt public open fun toString (): kotlin.String declared in kotlin.Any $this: VALUE_PARAMETER name: type:kotlin.Any CALL 'public final fun foo (): kotlin.Unit declared in .outer.LocalClass' type=kotlin.Unit origin=null - $this: CONSTRUCTOR_CALL 'public constructor () [primary] declared in .outer.LocalClass' type=.outer.LocalClass origin=null + $this: CONSTRUCTOR_CALL 'public constructor () declared in .outer.LocalClass' type=.outer.LocalClass origin=null diff --git a/compiler/testData/ir/irText/classes/objectLiteralExpressions.ir.txt b/compiler/testData/ir/irText/classes/objectLiteralExpressions.ir.txt index f698ab93bb8..9bac669f0ed 100644 --- a/compiler/testData/ir/irText/classes/objectLiteralExpressions.ir.txt +++ b/compiler/testData/ir/irText/classes/objectLiteralExpressions.ir.txt @@ -5,7 +5,7 @@ FILE fqName: fileName:/objectLiteralExpressions.kt $this: VALUE_PARAMETER name: type:.IFoo 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -24,11 +24,11 @@ FILE fqName: fileName:/objectLiteralExpressions.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.test1. CONSTRUCTOR visibility:public <> () returnType:.test1. [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name: modality:FINAL visibility:local 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -39,7 +39,7 @@ FILE fqName: fileName:/objectLiteralExpressions.kt overridden: public open fun toString (): kotlin.String declared in kotlin.Any $this: VALUE_PARAMETER name: type:kotlin.Any - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .test1.' type=.test1. origin=OBJECT_LITERAL + CONSTRUCTOR_CALL 'public constructor () declared in .test1.' type=.test1. origin=OBJECT_LITERAL FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:kotlin.Any correspondingProperty: PROPERTY name:test1 visibility:public modality:FINAL [val] BLOCK_BODY @@ -53,29 +53,29 @@ FILE fqName: fileName:/objectLiteralExpressions.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.test2. CONSTRUCTOR visibility:public <> () returnType:.test2. [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name: modality:FINAL visibility:local superTypes:[.IFoo]' FUN name:foo visibility:public modality:OPEN <> ($this:.test2.) returnType:kotlin.Unit overridden: public abstract fun foo (): kotlin.Unit declared in .IFoo $this: VALUE_PARAMETER name: type:.test2. BLOCK_BODY - CALL 'public final fun println (message: kotlin.Any?): kotlin.Unit [inline] declared in kotlin.io' type=kotlin.Unit origin=null + CALL 'public final fun println (message: kotlin.Any?): kotlin.Unit declared in kotlin.io' type=kotlin.Unit origin=null message: CONST String type=kotlin.String value="foo" 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 .IFoo + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IFoo $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 .IFoo + public open fun hashCode (): kotlin.Int declared in .IFoo $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 .IFoo + public open fun toString (): kotlin.String declared in .IFoo $this: VALUE_PARAMETER name: type:kotlin.Any - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .test2.' type=.test2. origin=OBJECT_LITERAL + CONSTRUCTOR_CALL 'public constructor () declared in .test2.' type=.test2. origin=OBJECT_LITERAL FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:.IFoo correspondingProperty: PROPERTY name:test2 visibility:public modality:FINAL [val] BLOCK_BODY @@ -85,14 +85,14 @@ FILE fqName: fileName:/objectLiteralExpressions.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Outer CONSTRUCTOR visibility:public <> () returnType:.Outer [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Outer modality:FINAL visibility:public superTypes:[kotlin.Any]' CLASS CLASS name:Inner modality:ABSTRACT visibility:public [inner] superTypes:[.IFoo] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Outer.Inner CONSTRUCTOR visibility:public <> ($this:.Outer) returnType:.Outer.Inner [primary] $outer: VALUE_PARAMETER name: type:.Outer BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Inner modality:ABSTRACT visibility:public [inner] superTypes:[.IFoo]' FUN FAKE_OVERRIDE name:foo visibility:public modality:ABSTRACT <> ($this:.IFoo) returnType:kotlin.Unit [fake_override] overridden: @@ -100,16 +100,16 @@ FILE fqName: fileName:/objectLiteralExpressions.kt $this: VALUE_PARAMETER name: type:.IFoo 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 .IFoo + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IFoo $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 .IFoo + public open fun hashCode (): kotlin.Int declared in .IFoo $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 .IFoo + public open fun toString (): kotlin.String declared in .IFoo $this: VALUE_PARAMETER name: type:kotlin.Any FUN name:test3 visibility:public modality:FINAL <> ($this:.Outer) returnType:.Outer.Inner $this: VALUE_PARAMETER name: type:.Outer @@ -120,33 +120,33 @@ FILE fqName: fileName:/objectLiteralExpressions.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Outer.test3. CONSTRUCTOR visibility:public <> () returnType:.Outer.test3. [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .Outer.Inner' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .Outer.Inner' $this: GET_VAR ': .Outer declared in .Outer.test3' type=.Outer origin=null INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name: modality:FINAL visibility:local superTypes:[.Outer.Inner]' FUN name:foo visibility:public modality:OPEN <> ($this:.Outer.test3.) returnType:kotlin.Unit overridden: - public abstract fun foo (): kotlin.Unit [fake_override] declared in .Outer.Inner + public abstract fun foo (): kotlin.Unit declared in .Outer.Inner $this: VALUE_PARAMETER name: type:.Outer.test3. BLOCK_BODY - CALL 'public final fun println (message: kotlin.Any?): kotlin.Unit [inline] declared in kotlin.io' type=kotlin.Unit origin=null + CALL 'public final fun println (message: kotlin.Any?): kotlin.Unit declared in kotlin.io' type=kotlin.Unit origin=null message: CONST String type=kotlin.String value="foo" 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 .Outer.Inner + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Outer.Inner $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 .Outer.Inner + public open fun hashCode (): kotlin.Int declared in .Outer.Inner $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 .Outer.Inner + public open fun toString (): kotlin.String declared in .Outer.Inner $this: VALUE_PARAMETER name: type:kotlin.Any - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .Outer.test3.' type=.Outer.test3. origin=OBJECT_LITERAL + CONSTRUCTOR_CALL 'public constructor () declared in .Outer.test3.' type=.Outer.test3. origin=OBJECT_LITERAL 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -166,27 +166,27 @@ FILE fqName: fileName:/objectLiteralExpressions.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.test4. CONSTRUCTOR visibility:public <> () returnType:.test4. [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .Outer.Inner' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .Outer.Inner' $this: GET_VAR ': .Outer declared in .test4' type=.Outer origin=null INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name: modality:FINAL visibility:local superTypes:[.Outer.Inner]' FUN name:foo visibility:public modality:OPEN <> ($this:.test4.) returnType:kotlin.Unit overridden: - public abstract fun foo (): kotlin.Unit [fake_override] declared in .Outer.Inner + public abstract fun foo (): kotlin.Unit declared in .Outer.Inner $this: VALUE_PARAMETER name: type:.test4. BLOCK_BODY - CALL 'public final fun println (message: kotlin.Any?): kotlin.Unit [inline] declared in kotlin.io' type=kotlin.Unit origin=null + CALL 'public final fun println (message: kotlin.Any?): kotlin.Unit declared in kotlin.io' type=kotlin.Unit origin=null message: CONST String type=kotlin.String value="foo" 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 .Outer.Inner + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Outer.Inner $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 .Outer.Inner + public open fun hashCode (): kotlin.Int declared in .Outer.Inner $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 .Outer.Inner + public open fun toString (): kotlin.String declared in .Outer.Inner $this: VALUE_PARAMETER name: type:kotlin.Any - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .test4.' type=.test4. origin=OBJECT_LITERAL + CONSTRUCTOR_CALL 'public constructor () declared in .test4.' type=.test4. origin=OBJECT_LITERAL diff --git a/compiler/testData/ir/irText/classes/objectLiteralExpressions.kt b/compiler/testData/ir/irText/classes/objectLiteralExpressions.kt index a87cde4a256..8827f7c6c9d 100644 --- a/compiler/testData/ir/irText/classes/objectLiteralExpressions.kt +++ b/compiler/testData/ir/irText/classes/objectLiteralExpressions.kt @@ -1,8 +1,6 @@ // FIR_IDENTICAL // WITH_STDLIB // DUMP_LOCAL_DECLARATION_SIGNATURES -// IGNORE_BACKEND: JS_IR -// IGNORE_BACKEND: JS_IR_ES6 // MUTE_SIGNATURE_COMPARISON_K2: ANY // ^ KT-57430 diff --git a/compiler/testData/ir/irText/classes/objectLiteralExpressions.sig.kt.txt b/compiler/testData/ir/irText/classes/objectLiteralExpressions.sig.kt.txt index 818e8bcb1c8..7975fa698ef 100644 --- a/compiler/testData/ir/irText/classes/objectLiteralExpressions.sig.kt.txt +++ b/compiler/testData/ir/irText/classes/objectLiteralExpressions.sig.kt.txt @@ -7,8 +7,8 @@ val test1: Any // Mangled name (compatible mode: false): {}test1. // Mangled name (compatible mode: true): test1. // CHECK JS_IR NATIVE: - // Mangled name: #(){} - // Public signature: /test1.|-5735092642142423279[0] + // Mangled name (compatible mode: false): {}test1. + // Mangled name (compatible mode: true): test1. local class { // CHECK: // Mangled name (compatible mode: false): {}test1.#(){} @@ -17,9 +17,12 @@ val test1: Any } - // CHECK: + // CHECK JVM_IR: // Mangled name: #(){}kotlin.Any // Public signature: /test1.|-6000098324399857556[0] + // CHECK JS_IR NATIVE: + // Mangled name: #(){} + // Public signature: /test1.|-5735092642142423279[0] get // CHECK: @@ -31,8 +34,8 @@ val test2: IFoo // Mangled name (compatible mode: false): {}test2. // Mangled name (compatible mode: true): test2. // CHECK JS_IR NATIVE: - // Mangled name: #(){} - // Public signature: /test2.|-5218942532816206869[0] + // Mangled name (compatible mode: false): {}test2. + // Mangled name (compatible mode: true): test2. local class : IFoo { // CHECK: // Mangled name (compatible mode: false): {}test2.#(){} @@ -46,9 +49,12 @@ val test2: IFoo } - // CHECK: + // CHECK JVM_IR: // Mangled name: #(){}IFoo // Public signature: /test2.|8558399082919905120[0] + // CHECK JS_IR NATIVE: + // Mangled name: #(){} + // Public signature: /test2.|-5218942532816206869[0] get // CHECK: @@ -83,15 +89,21 @@ class Outer { // Mangled name: Outer#test3(){} // Public signature: /Outer.test3|-3759735065270951803[0] fun test3(): Inner - // CHECK: + // CHECK JVM_IR: // Mangled name: Outer#test3(){}Outer.Inner. + // CHECK JS_IR NATIVE: + // Mangled name: Outer#test3(){}. local class : Inner { - // CHECK: + // CHECK JVM_IR: // Mangled name: Outer#test3(){}Outer.Inner.#(){} + // CHECK JS_IR NATIVE: + // Mangled name: Outer#test3(){}.#(){} constructor() /* primary */ - // CHECK: + // CHECK JVM_IR: // Mangled name: Outer#test3(){}Outer.Inner.#foo(){} + // CHECK JS_IR NATIVE: + // Mangled name: Outer#test3(){}.#foo(){} override fun foo(): Unit } @@ -117,15 +129,21 @@ interface IFoo { // Mangled name: #test4@Outer(){} // Public signature: /test4|5715080467126173402[0] fun Outer.test4(): Inner - // CHECK: + // CHECK JVM_IR: // Mangled name: #test4@Outer(){}Outer.Inner. + // CHECK JS_IR NATIVE: + // Mangled name: #test4@Outer(){}. local class : Inner { - // CHECK: + // CHECK JVM_IR: // Mangled name: #test4@Outer(){}Outer.Inner.#(){} + // CHECK JS_IR NATIVE: + // Mangled name: #test4@Outer(){}.#(){} constructor() /* primary */ - // CHECK: + // CHECK JVM_IR: // Mangled name: #test4@Outer(){}Outer.Inner.#foo(){} + // CHECK JS_IR NATIVE: + // Mangled name: #test4@Outer(){}.#foo(){} override fun foo(): Unit } diff --git a/compiler/testData/ir/irText/classes/objectWithInitializers.ir.txt b/compiler/testData/ir/irText/classes/objectWithInitializers.ir.txt index 240d854294f..2833f4d891c 100644 --- a/compiler/testData/ir/irText/classes/objectWithInitializers.ir.txt +++ b/compiler/testData/ir/irText/classes/objectWithInitializers.ir.txt @@ -3,11 +3,11 @@ FILE fqName: fileName:/objectWithInitializers.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Base CONSTRUCTOR visibility:public <> () returnType:.Base [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Base modality:ABSTRACT 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -22,7 +22,7 @@ FILE fqName: fileName:/objectWithInitializers.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Test CONSTRUCTOR visibility:private <> () returnType:.Test [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .Base' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .Base' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:Test modality:FINAL visibility:public superTypes:[.Base]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private [final] @@ -52,14 +52,14 @@ FILE fqName: fileName:/objectWithInitializers.kt $this: GET_VAR ': .Test declared in .Test' type=.Test 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 [fake_override,operator] declared in .Base + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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 + public open fun hashCode (): kotlin.Int 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 + public open fun toString (): kotlin.String declared in .Base $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/classes/outerClassAccess.ir.txt b/compiler/testData/ir/irText/classes/outerClassAccess.ir.txt index 820d44c2a03..c210e6c9178 100644 --- a/compiler/testData/ir/irText/classes/outerClassAccess.ir.txt +++ b/compiler/testData/ir/irText/classes/outerClassAccess.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/outerClassAccess.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Outer CONSTRUCTOR visibility:public <> () returnType:.Outer [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Outer modality:FINAL visibility:public superTypes:[kotlin.Any]' FUN name:foo visibility:public modality:FINAL <> ($this:.Outer) returnType:kotlin.Unit $this: VALUE_PARAMETER name: type:.Outer @@ -13,7 +13,7 @@ FILE fqName: fileName:/outerClassAccess.kt CONSTRUCTOR visibility:public <> ($this:.Outer) returnType:.Outer.Inner [primary] $outer: VALUE_PARAMETER name: type:.Outer BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Inner modality:FINAL visibility:public [inner] superTypes:[kotlin.Any]' FUN name:test visibility:public modality:FINAL <> ($this:.Outer.Inner) returnType:kotlin.Unit $this: VALUE_PARAMETER name: type:.Outer.Inner @@ -25,7 +25,7 @@ FILE fqName: fileName:/outerClassAccess.kt CONSTRUCTOR visibility:public <> ($this:.Outer.Inner) returnType:.Outer.Inner.Inner2 [primary] $outer: VALUE_PARAMETER name: type:.Outer.Inner BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Inner2 modality:FINAL visibility:public [inner] superTypes:[kotlin.Any]' FUN name:test2 visibility:public modality:FINAL <> ($this:.Outer.Inner.Inner2) returnType:kotlin.Unit $this: VALUE_PARAMETER name: type:.Outer.Inner.Inner2 @@ -42,7 +42,7 @@ FILE fqName: fileName:/outerClassAccess.kt $this: GET_VAR ': .Outer declared in .Outer.Inner.Inner2.test3' type=.Outer 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -55,7 +55,7 @@ FILE fqName: fileName:/outerClassAccess.kt $this: VALUE_PARAMETER name: type: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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -68,7 +68,7 @@ FILE fqName: fileName:/outerClassAccess.kt $this: VALUE_PARAMETER name: type: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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/classes/primaryConstructor.ir.txt b/compiler/testData/ir/irText/classes/primaryConstructor.ir.txt index 6218dfab474..9fa3343ff3b 100644 --- a/compiler/testData/ir/irText/classes/primaryConstructor.ir.txt +++ b/compiler/testData/ir/irText/classes/primaryConstructor.ir.txt @@ -5,7 +5,7 @@ FILE fqName: fileName:/primaryConstructor.kt VALUE_PARAMETER name:x index:0 type:kotlin.Int VALUE_PARAMETER name:y index:1 type:kotlin.Int BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test1 modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private [final] @@ -31,7 +31,7 @@ FILE fqName: fileName:/primaryConstructor.kt receiver: GET_VAR ': .Test1 declared in .Test1.' type=.Test1 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -48,7 +48,7 @@ FILE fqName: fileName:/primaryConstructor.kt VALUE_PARAMETER name:x index:0 type:kotlin.Int VALUE_PARAMETER name:y index:1 type:kotlin.Int BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test2 modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:y visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:y type:kotlin.Int visibility:private [final] @@ -74,7 +74,7 @@ FILE fqName: fileName:/primaryConstructor.kt receiver: GET_VAR ': .Test2 declared in .Test2.' type=.Test2 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -91,7 +91,7 @@ FILE fqName: fileName:/primaryConstructor.kt VALUE_PARAMETER name:x index:0 type:kotlin.Int VALUE_PARAMETER name:y index:1 type:kotlin.Int BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test3 modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:y visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:y type:kotlin.Int visibility:private [final] @@ -120,7 +120,7 @@ FILE fqName: fileName:/primaryConstructor.kt value: GET_VAR 'x: kotlin.Int declared in .Test3.' type=kotlin.Int 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/classes/primaryConstructorWithSuperConstructorCall.ir.txt b/compiler/testData/ir/irText/classes/primaryConstructorWithSuperConstructorCall.ir.txt index 334553062f8..716e095a425 100644 --- a/compiler/testData/ir/irText/classes/primaryConstructorWithSuperConstructorCall.ir.txt +++ b/compiler/testData/ir/irText/classes/primaryConstructorWithSuperConstructorCall.ir.txt @@ -3,11 +3,11 @@ FILE fqName: fileName:/primaryConstructorWithSuperConstructorCall.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Base CONSTRUCTOR visibility:public <> () returnType:.Base [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Base modality:OPEN 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -22,39 +22,39 @@ FILE fqName: fileName:/primaryConstructorWithSuperConstructorCall.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.TestImplicitPrimaryConstructor CONSTRUCTOR visibility:public <> () returnType:.TestImplicitPrimaryConstructor [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .Base' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .Base' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:TestImplicitPrimaryConstructor modality:FINAL visibility:public superTypes:[.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 [fake_override,operator] declared in .Base + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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 + public open fun hashCode (): kotlin.Int 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 + public open fun toString (): kotlin.String declared in .Base $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:TestExplicitPrimaryConstructor modality:FINAL visibility:public superTypes:[.Base] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.TestExplicitPrimaryConstructor CONSTRUCTOR visibility:public <> () returnType:.TestExplicitPrimaryConstructor [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .Base' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .Base' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:TestExplicitPrimaryConstructor modality:FINAL visibility:public superTypes:[.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 [fake_override,operator] declared in .Base + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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 + public open fun hashCode (): kotlin.Int 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 + public open fun toString (): kotlin.String declared in .Base $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:TestWithDelegatingConstructor modality:FINAL visibility:public superTypes:[.Base] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.TestWithDelegatingConstructor @@ -62,7 +62,7 @@ FILE fqName: fileName:/primaryConstructorWithSuperConstructorCall.kt VALUE_PARAMETER name:x index:0 type:kotlin.Int VALUE_PARAMETER name:y index:1 type:kotlin.Int BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .Base' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .Base' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:TestWithDelegatingConstructor modality:FINAL visibility:public superTypes:[.Base]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private [final] @@ -89,19 +89,19 @@ FILE fqName: fileName:/primaryConstructorWithSuperConstructorCall.kt CONSTRUCTOR visibility:public <> (x:kotlin.Int) returnType:.TestWithDelegatingConstructor VALUE_PARAMETER name:x index:0 type:kotlin.Int BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor (x: kotlin.Int, y: kotlin.Int) [primary] declared in .TestWithDelegatingConstructor' + DELEGATING_CONSTRUCTOR_CALL 'public constructor (x: kotlin.Int, y: kotlin.Int) declared in .TestWithDelegatingConstructor' x: GET_VAR 'x: kotlin.Int declared in .TestWithDelegatingConstructor.' type=kotlin.Int origin=null y: CONST Int type=kotlin.Int value=0 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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 + public open fun hashCode (): kotlin.Int 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 + public open fun toString (): kotlin.String declared in .Base $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/classes/qualifiedSuperCalls.ir.txt b/compiler/testData/ir/irText/classes/qualifiedSuperCalls.ir.txt index a3b49a405a8..99d5f5826b0 100644 --- a/compiler/testData/ir/irText/classes/qualifiedSuperCalls.ir.txt +++ b/compiler/testData/ir/irText/classes/qualifiedSuperCalls.ir.txt @@ -13,7 +13,7 @@ FILE fqName: fileName:/qualifiedSuperCalls.kt CONST Int type=kotlin.Int value=1 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -38,7 +38,7 @@ FILE fqName: fileName:/qualifiedSuperCalls.kt CONST Int type=kotlin.Int value=2 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -53,7 +53,7 @@ FILE fqName: fileName:/qualifiedSuperCalls.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.CBoth CONSTRUCTOR visibility:public <> () returnType:.CBoth [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:CBoth modality:FINAL visibility:public superTypes:[.ILeft; .IRight]' FUN name:foo visibility:public modality:OPEN <> ($this:.CBoth) returnType:kotlin.Unit overridden: @@ -67,8 +67,8 @@ FILE fqName: fileName:/qualifiedSuperCalls.kt $this: GET_VAR ': .CBoth declared in .CBoth.foo' type=.CBoth origin=null PROPERTY name:bar visibility:public modality:OPEN [val] overridden: - public open bar: kotlin.Int [val] - public open bar: kotlin.Int [val] + public open bar: kotlin.Int + public open bar: kotlin.Int FUN name: visibility:public modality:OPEN <> ($this:.CBoth) returnType:kotlin.Int correspondingProperty: PROPERTY name:bar visibility:public modality:OPEN [val] overridden: @@ -77,24 +77,24 @@ FILE fqName: fileName:/qualifiedSuperCalls.kt $this: VALUE_PARAMETER name: type:.CBoth BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun (): kotlin.Int declared in .CBoth' - CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUS + CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUS $this: CALL 'public open fun (): kotlin.Int declared in .ILeft' superQualifier='CLASS INTERFACE name:ILeft modality:ABSTRACT visibility:public superTypes:[kotlin.Any]' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR ': .CBoth declared in .CBoth.' type=.CBoth origin=null other: CALL 'public open fun (): kotlin.Int declared in .IRight' superQualifier='CLASS INTERFACE name:IRight modality:ABSTRACT visibility:public superTypes:[kotlin.Any]' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR ': .CBoth declared in .CBoth.' type=.CBoth 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 [fake_override,operator] declared in .ILeft - public open fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .IRight + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .ILeft + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IRight $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 .ILeft - public open fun hashCode (): kotlin.Int [fake_override] declared in .IRight + public open fun hashCode (): kotlin.Int declared in .ILeft + public open fun hashCode (): kotlin.Int declared in .IRight $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 .ILeft - public open fun toString (): kotlin.String [fake_override] declared in .IRight + public open fun toString (): kotlin.String declared in .ILeft + public open fun toString (): kotlin.String declared in .IRight $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/classes/sealedClasses.ir.txt b/compiler/testData/ir/irText/classes/sealedClasses.ir.txt index 3cea776d108..2903330fbf9 100644 --- a/compiler/testData/ir/irText/classes/sealedClasses.ir.txt +++ b/compiler/testData/ir/irText/classes/sealedClasses.ir.txt @@ -7,14 +7,14 @@ FILE fqName: fileName:/sealedClasses.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Expr CONSTRUCTOR visibility:protected <> () returnType:.Expr [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Expr modality:SEALED visibility:public superTypes:[kotlin.Any]' CLASS CLASS name:Const modality:FINAL visibility:public superTypes:[.Expr] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Expr.Const CONSTRUCTOR visibility:public <> (number:kotlin.Double) returnType:.Expr.Const [primary] VALUE_PARAMETER name:number index:0 type:kotlin.Double BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'protected constructor () [primary] declared in .Expr' + DELEGATING_CONSTRUCTOR_CALL 'protected constructor () declared in .Expr' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Const modality:FINAL visibility:public superTypes:[.Expr]' PROPERTY name:number visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:number type:kotlin.Double visibility:private [final] @@ -29,16 +29,16 @@ FILE fqName: fileName:/sealedClasses.kt receiver: GET_VAR ': .Expr.Const declared in .Expr.Const.' type=.Expr.Const 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 [fake_override,operator] declared in .Expr + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Expr $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 .Expr + public open fun hashCode (): kotlin.Int declared in .Expr $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 .Expr + public open fun toString (): kotlin.String declared in .Expr $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:Sum modality:FINAL visibility:public superTypes:[.Expr] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Expr.Sum @@ -46,7 +46,7 @@ FILE fqName: fileName:/sealedClasses.kt VALUE_PARAMETER name:e1 index:0 type:.Expr VALUE_PARAMETER name:e2 index:1 type:.Expr BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'protected constructor () [primary] declared in .Expr' + DELEGATING_CONSTRUCTOR_CALL 'protected constructor () declared in .Expr' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Sum modality:FINAL visibility:public superTypes:[.Expr]' PROPERTY name:e1 visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:e1 type:.Expr visibility:private [final] @@ -72,39 +72,39 @@ FILE fqName: fileName:/sealedClasses.kt receiver: GET_VAR ': .Expr.Sum declared in .Expr.Sum.' type=.Expr.Sum 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 [fake_override,operator] declared in .Expr + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Expr $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 .Expr + public open fun hashCode (): kotlin.Int declared in .Expr $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 .Expr + public open fun toString (): kotlin.String declared in .Expr $this: VALUE_PARAMETER name: type:kotlin.Any CLASS OBJECT name:NotANumber modality:FINAL visibility:public superTypes:[.Expr] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Expr.NotANumber CONSTRUCTOR visibility:private <> () returnType:.Expr.NotANumber [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'protected constructor () [primary] declared in .Expr' + DELEGATING_CONSTRUCTOR_CALL 'protected constructor () declared in .Expr' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:NotANumber modality:FINAL visibility:public superTypes:[.Expr]' 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 .Expr + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Expr $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 .Expr + public open fun hashCode (): kotlin.Int declared in .Expr $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 .Expr + public open fun toString (): kotlin.String declared in .Expr $this: VALUE_PARAMETER name: type: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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/classes/secondaryConstructorWithInitializersFromClassBody.ir.txt b/compiler/testData/ir/irText/classes/secondaryConstructorWithInitializersFromClassBody.ir.txt index 8623cc0c7b6..0b408da3700 100644 --- a/compiler/testData/ir/irText/classes/secondaryConstructorWithInitializersFromClassBody.ir.txt +++ b/compiler/testData/ir/irText/classes/secondaryConstructorWithInitializersFromClassBody.ir.txt @@ -3,11 +3,11 @@ FILE fqName: fileName:/secondaryConstructorWithInitializersFromClassBody.k $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Base CONSTRUCTOR visibility:public <> () returnType:.Base [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Base modality:OPEN 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -33,20 +33,20 @@ FILE fqName: fileName:/secondaryConstructorWithInitializersFromClassBody.k receiver: GET_VAR ': .TestProperty declared in .TestProperty.' type=.TestProperty origin=null CONSTRUCTOR visibility:public <> () returnType:.TestProperty BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .Base' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .Base' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:TestProperty modality:FINAL visibility:public superTypes:[.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 [fake_override,operator] declared in .Base + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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 + public open fun hashCode (): kotlin.Int 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 + public open fun toString (): kotlin.String declared in .Base $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:TestInitBlock modality:FINAL visibility:public superTypes:[.Base] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.TestInitBlock @@ -66,12 +66,12 @@ FILE fqName: fileName:/secondaryConstructorWithInitializersFromClassBody.k value: CONST Int type=kotlin.Int value=0 CONSTRUCTOR visibility:public <> () returnType:.TestInitBlock BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .Base' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .Base' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:TestInitBlock modality:FINAL visibility:public superTypes:[.Base]' CONSTRUCTOR visibility:public <> (z:kotlin.Any) returnType:.TestInitBlock VALUE_PARAMETER name:z index:0 type:kotlin.Any BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .Base' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .Base' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:TestInitBlock modality:FINAL visibility:public superTypes:[.Base]' CONSTRUCTOR visibility:public <> (y:kotlin.Int) returnType:.TestInitBlock VALUE_PARAMETER name:y index:0 type:kotlin.Int @@ -79,14 +79,14 @@ FILE fqName: fileName:/secondaryConstructorWithInitializersFromClassBody.k DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .TestInitBlock' 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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 + public open fun hashCode (): kotlin.Int 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 + public open fun toString (): kotlin.String declared in .Base $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/classes/secondaryConstructors.ir.txt b/compiler/testData/ir/irText/classes/secondaryConstructors.ir.txt index 2c883b2374b..eeddf0fb6aa 100644 --- a/compiler/testData/ir/irText/classes/secondaryConstructors.ir.txt +++ b/compiler/testData/ir/irText/classes/secondaryConstructors.ir.txt @@ -8,11 +8,11 @@ FILE fqName: fileName:/secondaryConstructors.kt CONSTRUCTOR visibility:public <> (x:kotlin.Int) returnType:.C VALUE_PARAMETER name:x index:0 type:kotlin.Int BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/classes/smartCastInValInitialization.fir.ir.txt b/compiler/testData/ir/irText/classes/smartCastInValInitialization.fir.ir.txt index d9e6caded7b..cf7f3a9cf7d 100644 --- a/compiler/testData/ir/irText/classes/smartCastInValInitialization.fir.ir.txt +++ b/compiler/testData/ir/irText/classes/smartCastInValInitialization.fir.ir.txt @@ -3,11 +3,11 @@ FILE fqName: fileName:/smartCastInValInitialization.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.RootBus CONSTRUCTOR visibility:public <> () returnType:.RootBus [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .MessageBusImpl' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .MessageBusImpl' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:RootBus modality:FINAL visibility:public superTypes:[.MessageBusImpl]' PROPERTY FAKE_OVERRIDE name:parentBus visibility:public modality:FINAL [fake_override,val] overridden: - public final parentBus: kotlin.Any? [val] + public final parentBus: kotlin.Any? FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.MessageBusImpl) returnType:kotlin.Any? [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:parentBus visibility:public modality:FINAL [fake_override,val] overridden: @@ -15,22 +15,22 @@ FILE fqName: fileName:/smartCastInValInitialization.kt $this: VALUE_PARAMETER name: type:.MessageBusImpl 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 .MessageBusImpl + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .MessageBusImpl $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 .MessageBusImpl + public open fun hashCode (): kotlin.Int declared in .MessageBusImpl $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 .MessageBusImpl + public open fun toString (): kotlin.String declared in .MessageBusImpl $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:MessageBusImpl modality:OPEN visibility:public superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.MessageBusImpl CONSTRUCTOR visibility:public <> () returnType:.MessageBusImpl [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:MessageBusImpl modality:OPEN visibility:public superTypes:[kotlin.Any]' PROPERTY name:parentBus visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:parentBus type:kotlin.Any? visibility:private [final] @@ -52,7 +52,7 @@ FILE fqName: fileName:/smartCastInValInitialization.kt value: CONST Null type=kotlin.Nothing? value=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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/classes/smartCastInValInitialization.ir.txt b/compiler/testData/ir/irText/classes/smartCastInValInitialization.ir.txt index e1c60957b93..5bf91e7f820 100644 --- a/compiler/testData/ir/irText/classes/smartCastInValInitialization.ir.txt +++ b/compiler/testData/ir/irText/classes/smartCastInValInitialization.ir.txt @@ -3,11 +3,11 @@ FILE fqName: fileName:/smartCastInValInitialization.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.RootBus CONSTRUCTOR visibility:public <> () returnType:.RootBus [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .MessageBusImpl' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .MessageBusImpl' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:RootBus modality:FINAL visibility:public superTypes:[.MessageBusImpl]' PROPERTY FAKE_OVERRIDE name:parentBus visibility:public modality:FINAL [fake_override,val] overridden: - public final parentBus: kotlin.Any? [val] + public final parentBus: kotlin.Any? FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.MessageBusImpl) returnType:kotlin.Any? [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:parentBus visibility:public modality:FINAL [fake_override,val] overridden: @@ -15,22 +15,22 @@ FILE fqName: fileName:/smartCastInValInitialization.kt $this: VALUE_PARAMETER name: type:.MessageBusImpl 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 .MessageBusImpl + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .MessageBusImpl $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 .MessageBusImpl + public open fun hashCode (): kotlin.Int declared in .MessageBusImpl $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 .MessageBusImpl + public open fun toString (): kotlin.String declared in .MessageBusImpl $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:MessageBusImpl modality:OPEN visibility:public superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.MessageBusImpl CONSTRUCTOR visibility:public <> () returnType:.MessageBusImpl [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:MessageBusImpl modality:OPEN visibility:public superTypes:[kotlin.Any]' PROPERTY name:parentBus visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:parentBus type:kotlin.Any? visibility:private [final] @@ -51,7 +51,7 @@ FILE fqName: fileName:/smartCastInValInitialization.kt value: CONST Null type=kotlin.Nothing? value=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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/classes/superCalls.ir.txt b/compiler/testData/ir/irText/classes/superCalls.ir.txt index 537a13ecc6e..8ee456b922b 100644 --- a/compiler/testData/ir/irText/classes/superCalls.ir.txt +++ b/compiler/testData/ir/irText/classes/superCalls.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/superCalls.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Base CONSTRUCTOR visibility:public <> () returnType:.Base [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Base modality:OPEN visibility:public superTypes:[kotlin.Any]' FUN name:foo visibility:public modality:OPEN <> ($this:.Base) returnType:kotlin.Unit $this: VALUE_PARAMETER name: type:.Base @@ -29,7 +29,7 @@ FILE fqName: fileName:/superCalls.kt $this: GET_VAR ': .Base declared in .Base.hashCode' type=.Base 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any $this: VALUE_PARAMETER name: type:kotlin.Any VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String [fake_override] @@ -40,7 +40,7 @@ FILE fqName: fileName:/superCalls.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Derived CONSTRUCTOR visibility:public <> () returnType:.Derived [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .Base' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .Base' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Derived modality:FINAL visibility:public superTypes:[.Base]' FUN name:foo visibility:public modality:OPEN <> ($this:.Derived) returnType:kotlin.Unit overridden: @@ -51,7 +51,7 @@ FILE fqName: fileName:/superCalls.kt $this: GET_VAR ': .Derived declared in .Derived.foo' type=.Derived origin=null PROPERTY name:bar visibility:public modality:OPEN [val] overridden: - public open bar: kotlin.String [val] + public open bar: kotlin.String FUN name: visibility:public modality:OPEN <> ($this:.Derived) returnType:kotlin.String correspondingProperty: PROPERTY name:bar visibility:public modality:OPEN [val] overridden: @@ -67,10 +67,10 @@ FILE fqName: fileName:/superCalls.kt $this: VALUE_PARAMETER 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 [fake_override,operator] declared in .Base + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Base $this: VALUE_PARAMETER name: type:kotlin.Any VALUE_PARAMETER name:other index:0 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 + public open fun toString (): kotlin.String declared in .Base $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/classes/superCallsComposed.ir.txt b/compiler/testData/ir/irText/classes/superCallsComposed.ir.txt index 0dcc77f03ea..6ba80f03339 100644 --- a/compiler/testData/ir/irText/classes/superCallsComposed.ir.txt +++ b/compiler/testData/ir/irText/classes/superCallsComposed.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/superCallsComposed.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Base CONSTRUCTOR visibility:public <> () returnType:.Base [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Base modality:OPEN visibility:public superTypes:[kotlin.Any]' FUN name:foo visibility:public modality:OPEN <> ($this:.Base) returnType:kotlin.Unit $this: VALUE_PARAMETER name: type:.Base @@ -21,7 +21,7 @@ FILE fqName: fileName:/superCallsComposed.kt receiver: GET_VAR ': .Base declared in .Base.' type=.Base 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -42,7 +42,7 @@ FILE fqName: fileName:/superCallsComposed.kt $this: VALUE_PARAMETER name: type:.BaseI 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -57,7 +57,7 @@ FILE fqName: fileName:/superCallsComposed.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Derived CONSTRUCTOR visibility:public <> () returnType:.Derived [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .Base' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .Base' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Derived modality:FINAL visibility:public superTypes:[.Base; .BaseI]' FUN name:foo visibility:public modality:OPEN <> ($this:.Derived) returnType:kotlin.Unit overridden: @@ -69,8 +69,8 @@ FILE fqName: fileName:/superCallsComposed.kt $this: GET_VAR ': .Derived declared in .Derived.foo' type=.Derived origin=null PROPERTY name:bar visibility:public modality:OPEN [val] overridden: - public open bar: kotlin.String [val] - public abstract bar: kotlin.String [val] + public open bar: kotlin.String + public abstract bar: kotlin.String FUN name: visibility:public modality:OPEN <> ($this:.Derived) returnType:kotlin.String correspondingProperty: PROPERTY name:bar visibility:public modality:OPEN [val] overridden: @@ -83,17 +83,17 @@ FILE fqName: fileName:/superCallsComposed.kt $this: GET_VAR ': .Derived declared in .Derived.' type=.Derived 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 [fake_override,operator] declared in .Base - public open fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .BaseI + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Base + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .BaseI $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 - public open fun hashCode (): kotlin.Int [fake_override] declared in .BaseI + public open fun hashCode (): kotlin.Int declared in .Base + public open fun hashCode (): kotlin.Int declared in .BaseI $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 - public open fun toString (): kotlin.String [fake_override] declared in .BaseI + public open fun toString (): kotlin.String declared in .Base + public open fun toString (): kotlin.String declared in .BaseI $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/declarations/annotations/annotationOnClassWithInitializer.ir.txt b/compiler/testData/ir/irText/declarations/annotations/annotationOnClassWithInitializer.ir.txt index b79395254f3..ccf494c84d6 100644 --- a/compiler/testData/ir/irText/declarations/annotations/annotationOnClassWithInitializer.ir.txt +++ b/compiler/testData/ir/irText/declarations/annotations/annotationOnClassWithInitializer.ir.txt @@ -3,20 +3,20 @@ FILE fqName: fileName:/annotationOnClassWithInitializer.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.SomeAnn CONSTRUCTOR visibility:public <> () returnType:.SomeAnn [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:SomeAnn modality:OPEN visibility:public superTypes:[kotlin.Annotation]' 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 kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:My modality:FINAL visibility:public superTypes:[kotlin.Any] annotations: @@ -24,7 +24,7 @@ FILE fqName: fileName:/annotationOnClassWithInitializer.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.My CONSTRUCTOR visibility:public <> () returnType:.My [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:My modality:FINAL visibility:public superTypes:[kotlin.Any]' ANONYMOUS_INITIALIZER isStatic=false BLOCK_BODY @@ -32,7 +32,7 @@ FILE fqName: fileName:/annotationOnClassWithInitializer.kt CONST Int type=kotlin.Int value=1 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/declarations/annotations/annotationsInAnnotationArguments.ir.txt b/compiler/testData/ir/irText/declarations/annotations/annotationsInAnnotationArguments.ir.txt index 952c6b91a18..d29ce3a7be7 100644 --- a/compiler/testData/ir/irText/declarations/annotations/annotationsInAnnotationArguments.ir.txt +++ b/compiler/testData/ir/irText/declarations/annotations/annotationsInAnnotationArguments.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/annotationsInAnnotationArguments.kt CONSTRUCTOR visibility:public <> (x:kotlin.Int) returnType:.A1 [primary] VALUE_PARAMETER name:x index:0 type:kotlin.Int BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:A1 modality:OPEN visibility:public superTypes:[kotlin.Annotation]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private [final] @@ -19,23 +19,23 @@ FILE fqName: fileName:/annotationsInAnnotationArguments.kt receiver: GET_VAR ': .A1 declared in .A1.' type=.A1 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 [fake_override,operator] declared in kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any CLASS ANNOTATION_CLASS name:A2 modality:OPEN visibility:public superTypes:[kotlin.Annotation] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.A2 CONSTRUCTOR visibility:public <> (a:.A1) returnType:.A2 [primary] VALUE_PARAMETER name:a index:0 type:.A1 BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:A2 modality:OPEN visibility:public superTypes:[kotlin.Annotation]' PROPERTY name:a visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:a type:.A1 visibility:private [final] @@ -50,23 +50,23 @@ FILE fqName: fileName:/annotationsInAnnotationArguments.kt receiver: GET_VAR ': .A2 declared in .A2.' type=.A2 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 [fake_override,operator] declared in kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any CLASS ANNOTATION_CLASS name:AA modality:OPEN visibility:public superTypes:[kotlin.Annotation] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.AA CONSTRUCTOR visibility:public <> (xs:kotlin.Array<.A1>) returnType:.AA [primary] VALUE_PARAMETER name:xs index:0 type:kotlin.Array<.A1> BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:AA modality:OPEN visibility:public superTypes:[kotlin.Annotation]' PROPERTY name:xs visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:xs type:kotlin.Array<.A1> visibility:private [final] @@ -81,16 +81,16 @@ FILE fqName: fileName:/annotationsInAnnotationArguments.kt receiver: GET_VAR ': .AA declared in .AA.' type=.AA 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 [fake_override,operator] declared in kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any FUN name:test visibility:public modality:FINAL <> () returnType:kotlin.Unit annotations: diff --git a/compiler/testData/ir/irText/declarations/annotations/annotationsOnDelegatedMembers.fir.ir.txt b/compiler/testData/ir/irText/declarations/annotations/annotationsOnDelegatedMembers.fir.ir.txt index b978adc43dc..28e44ffd587 100644 --- a/compiler/testData/ir/irText/declarations/annotations/annotationsOnDelegatedMembers.fir.ir.txt +++ b/compiler/testData/ir/irText/declarations/annotations/annotationsOnDelegatedMembers.fir.ir.txt @@ -3,20 +3,20 @@ FILE fqName: fileName:/annotationsOnDelegatedMembers.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Ann CONSTRUCTOR visibility:public <> () returnType:.Ann [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:Ann modality:OPEN visibility:public superTypes:[kotlin.Annotation]' 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 kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any CLASS INTERFACE name:IFoo modality:ABSTRACT visibility:public superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.IFoo @@ -44,7 +44,7 @@ FILE fqName: fileName:/annotationsOnDelegatedMembers.kt $receiver: VALUE_PARAMETER name: type:kotlin.String 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -60,7 +60,7 @@ FILE fqName: fileName:/annotationsOnDelegatedMembers.kt CONSTRUCTOR visibility:public <> (d:.IFoo) returnType:.DFoo [primary] VALUE_PARAMETER name:d index:0 type:.IFoo BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:DFoo modality:FINAL visibility:public superTypes:[.IFoo]' FUN DELEGATED_MEMBER name:testFun visibility:public modality:OPEN <> ($this:.DFoo) returnType:kotlin.Unit annotations: @@ -86,7 +86,7 @@ FILE fqName: fileName:/annotationsOnDelegatedMembers.kt $receiver: GET_VAR ': kotlin.String declared in .DFoo.testExtFun' type=kotlin.String origin=null PROPERTY DELEGATED_MEMBER name:testVal visibility:public modality:OPEN [val] overridden: - public abstract testVal: kotlin.String [val] + public abstract testVal: kotlin.String FUN DELEGATED_MEMBER name: visibility:public modality:OPEN <> ($this:.DFoo) returnType:kotlin.String correspondingProperty: PROPERTY DELEGATED_MEMBER name:testVal visibility:public modality:OPEN [val] overridden: @@ -99,7 +99,7 @@ FILE fqName: fileName:/annotationsOnDelegatedMembers.kt receiver: GET_VAR ': .DFoo declared in .DFoo.' type=.DFoo origin=null PROPERTY DELEGATED_MEMBER name:testExtVal visibility:public modality:OPEN [val] overridden: - public abstract testExtVal: kotlin.String [val] + public abstract testExtVal: kotlin.String FUN DELEGATED_MEMBER name: visibility:public modality:OPEN <> ($this:.DFoo, $receiver:kotlin.String) returnType:kotlin.String correspondingProperty: PROPERTY DELEGATED_MEMBER name:testExtVal visibility:public modality:OPEN [val] overridden: @@ -117,14 +117,14 @@ FILE fqName: fileName:/annotationsOnDelegatedMembers.kt GET_VAR 'd: .IFoo declared in .DFoo.' type=.IFoo 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 [fake_override,operator] declared in .IFoo + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IFoo $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 .IFoo + public open fun hashCode (): kotlin.Int declared in .IFoo $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 .IFoo + public open fun toString (): kotlin.String declared in .IFoo $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/declarations/annotations/annotationsOnDelegatedMembers.ir.txt b/compiler/testData/ir/irText/declarations/annotations/annotationsOnDelegatedMembers.ir.txt index debf152e988..e32183ba01d 100644 --- a/compiler/testData/ir/irText/declarations/annotations/annotationsOnDelegatedMembers.ir.txt +++ b/compiler/testData/ir/irText/declarations/annotations/annotationsOnDelegatedMembers.ir.txt @@ -3,20 +3,20 @@ FILE fqName: fileName:/annotationsOnDelegatedMembers.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Ann CONSTRUCTOR visibility:public <> () returnType:.Ann [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:Ann modality:OPEN visibility:public superTypes:[kotlin.Annotation]' 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 kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any CLASS INTERFACE name:IFoo modality:ABSTRACT visibility:public superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.IFoo @@ -44,7 +44,7 @@ FILE fqName: fileName:/annotationsOnDelegatedMembers.kt $receiver: VALUE_PARAMETER name: type:kotlin.String 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -60,14 +60,14 @@ FILE fqName: fileName:/annotationsOnDelegatedMembers.kt CONSTRUCTOR visibility:public <> (d:.IFoo) returnType:.DFoo [primary] VALUE_PARAMETER name:d index:0 type:.IFoo BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:DFoo modality:FINAL visibility:public superTypes:[.IFoo]' FIELD DELEGATE name:$$delegate_0 type:.IFoo visibility:private [final] EXPRESSION_BODY GET_VAR 'd: .IFoo declared in .DFoo.' type=.IFoo origin=null PROPERTY DELEGATED_MEMBER name:testVal visibility:public modality:OPEN [val] overridden: - public abstract testVal: kotlin.String [val] + public abstract testVal: kotlin.String FUN DELEGATED_MEMBER name: visibility:public modality:OPEN <> ($this:.DFoo) returnType:kotlin.String correspondingProperty: PROPERTY DELEGATED_MEMBER name:testVal visibility:public modality:OPEN [val] overridden: @@ -80,7 +80,7 @@ FILE fqName: fileName:/annotationsOnDelegatedMembers.kt receiver: GET_VAR ': .DFoo declared in .DFoo.' type=.DFoo origin=null PROPERTY DELEGATED_MEMBER name:testExtVal visibility:public modality:OPEN [val] overridden: - public abstract testExtVal: kotlin.String [val] + public abstract testExtVal: kotlin.String FUN DELEGATED_MEMBER name: visibility:public modality:OPEN <> ($this:.DFoo, $receiver:kotlin.String) returnType:kotlin.String correspondingProperty: PROPERTY DELEGATED_MEMBER name:testExtVal visibility:public modality:OPEN [val] overridden: @@ -117,14 +117,14 @@ FILE fqName: fileName:/annotationsOnDelegatedMembers.kt $receiver: GET_VAR ': kotlin.String declared in .DFoo.testExtFun' type=kotlin.String 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 [fake_override,operator] declared in .IFoo + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IFoo $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 .IFoo + public open fun hashCode (): kotlin.Int declared in .IFoo $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 .IFoo + public open fun toString (): kotlin.String declared in .IFoo $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/declarations/annotations/annotationsWithDefaultParameterValues.ir.txt b/compiler/testData/ir/irText/declarations/annotations/annotationsWithDefaultParameterValues.ir.txt index fa798ec505a..c38257524a3 100644 --- a/compiler/testData/ir/irText/declarations/annotations/annotationsWithDefaultParameterValues.ir.txt +++ b/compiler/testData/ir/irText/declarations/annotations/annotationsWithDefaultParameterValues.ir.txt @@ -9,7 +9,7 @@ FILE fqName: fileName:/annotationsWithDefaultParameterValues.kt EXPRESSION_BODY CONST Int type=kotlin.Int value=42 BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:A modality:OPEN visibility:public superTypes:[kotlin.Annotation]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.String visibility:private [final] @@ -35,16 +35,16 @@ FILE fqName: fileName:/annotationsWithDefaultParameterValues.kt receiver: GET_VAR ': .A declared in .A.' type=.A 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 [fake_override,operator] declared in kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any FUN name:test1 visibility:public modality:FINAL <> () returnType:kotlin.Unit annotations: diff --git a/compiler/testData/ir/irText/declarations/annotations/annotationsWithVarargParameters.ir.txt b/compiler/testData/ir/irText/declarations/annotations/annotationsWithVarargParameters.ir.txt index f09cd779103..9a449d308f9 100644 --- a/compiler/testData/ir/irText/declarations/annotations/annotationsWithVarargParameters.ir.txt +++ b/compiler/testData/ir/irText/declarations/annotations/annotationsWithVarargParameters.ir.txt @@ -4,12 +4,12 @@ FILE fqName: fileName:/annotationsWithVarargParameters.kt CONSTRUCTOR visibility:public <> (xs:kotlin.Array) returnType:.A [primary] VALUE_PARAMETER name:xs index:0 type:kotlin.Array varargElementType:kotlin.String [vararg] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:A modality:OPEN visibility:public superTypes:[kotlin.Annotation]' PROPERTY name:xs visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:xs type:kotlin.Array visibility:private [final] EXPRESSION_BODY - GET_VAR 'xs: kotlin.Array [vararg] declared in .A.' type=kotlin.Array origin=INITIALIZE_PROPERTY_FROM_PARAMETER + GET_VAR 'xs: kotlin.Array declared in .A.' type=kotlin.Array origin=INITIALIZE_PROPERTY_FROM_PARAMETER FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:.A) returnType:kotlin.Array correspondingProperty: PROPERTY name:xs visibility:public modality:FINAL [val] $this: VALUE_PARAMETER name: type:.A @@ -19,16 +19,16 @@ FILE fqName: fileName:/annotationsWithVarargParameters.kt receiver: GET_VAR ': .A declared in .A.' type=.A 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 [fake_override,operator] declared in kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any FUN name:test1 visibility:public modality:FINAL <> () returnType:kotlin.Unit annotations: diff --git a/compiler/testData/ir/irText/declarations/annotations/argWithDefaultValueInAnnotationClass.ir.txt b/compiler/testData/ir/irText/declarations/annotations/argWithDefaultValueInAnnotationClass.ir.txt index 32ee86f7db8..43deaeae34d 100644 --- a/compiler/testData/ir/irText/declarations/annotations/argWithDefaultValueInAnnotationClass.ir.txt +++ b/compiler/testData/ir/irText/declarations/annotations/argWithDefaultValueInAnnotationClass.ir.txt @@ -6,7 +6,7 @@ FILE fqName: fileName:/main.kt EXPRESSION_BODY CONST Int type=kotlin.Int value=1234 BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:ModuleInfo modality:OPEN visibility:public superTypes:[kotlin.Annotation]' PROPERTY name:keyBind visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:keyBind type:kotlin.Int visibility:private [final] @@ -21,14 +21,14 @@ FILE fqName: fileName:/main.kt receiver: GET_VAR ': .ModuleInfo declared in .ModuleInfo.' type=.ModuleInfo 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 [fake_override,operator] declared in kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/declarations/annotations/arrayInAnnotationArguments.ir.txt b/compiler/testData/ir/irText/declarations/annotations/arrayInAnnotationArguments.ir.txt index 4dbce55f1f0..91f33d6540f 100644 --- a/compiler/testData/ir/irText/declarations/annotations/arrayInAnnotationArguments.ir.txt +++ b/compiler/testData/ir/irText/declarations/annotations/arrayInAnnotationArguments.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/arrayInAnnotationArguments.kt CONSTRUCTOR visibility:public <> (x:kotlin.IntArray) returnType:.TestAnnWithIntArray [primary] VALUE_PARAMETER name:x index:0 type:kotlin.IntArray BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:TestAnnWithIntArray modality:OPEN visibility:public superTypes:[kotlin.Annotation]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.IntArray visibility:private [final] @@ -19,23 +19,23 @@ FILE fqName: fileName:/arrayInAnnotationArguments.kt receiver: GET_VAR ': .TestAnnWithIntArray declared in .TestAnnWithIntArray.' type=.TestAnnWithIntArray 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 [fake_override,operator] declared in kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any CLASS ANNOTATION_CLASS name:TestAnnWithStringArray modality:OPEN visibility:public superTypes:[kotlin.Annotation] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.TestAnnWithStringArray CONSTRUCTOR visibility:public <> (x:kotlin.Array) returnType:.TestAnnWithStringArray [primary] VALUE_PARAMETER name:x index:0 type:kotlin.Array BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:TestAnnWithStringArray modality:OPEN visibility:public superTypes:[kotlin.Annotation]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Array visibility:private [final] @@ -50,16 +50,16 @@ FILE fqName: fileName:/arrayInAnnotationArguments.kt receiver: GET_VAR ': .TestAnnWithStringArray declared in .TestAnnWithStringArray.' type=.TestAnnWithStringArray 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 [fake_override,operator] declared in kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any FUN name:test1 visibility:public modality:FINAL <> () returnType:kotlin.Unit annotations: diff --git a/compiler/testData/ir/irText/declarations/annotations/classLiteralInAnnotation.ir.txt b/compiler/testData/ir/irText/declarations/annotations/classLiteralInAnnotation.ir.txt index ec6327ceca2..ac7e998e427 100644 --- a/compiler/testData/ir/irText/declarations/annotations/classLiteralInAnnotation.ir.txt +++ b/compiler/testData/ir/irText/declarations/annotations/classLiteralInAnnotation.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/classLiteralInAnnotation.kt CONSTRUCTOR visibility:public <> (klass:kotlin.reflect.KClass<*>) returnType:.A [primary] VALUE_PARAMETER name:klass index:0 type:kotlin.reflect.KClass<*> BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:A modality:OPEN visibility:public superTypes:[kotlin.Annotation]' PROPERTY name:klass visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:klass type:kotlin.reflect.KClass<*> visibility:private [final] @@ -19,26 +19,26 @@ FILE fqName: fileName:/classLiteralInAnnotation.kt receiver: GET_VAR ': .A declared in .A.' type=.A 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 [fake_override,operator] declared in kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:C modality:FINAL visibility:public superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.C CONSTRUCTOR visibility:public <> () returnType:.C [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/declarations/annotations/classesWithAnnotations.fir.ir.txt b/compiler/testData/ir/irText/declarations/annotations/classesWithAnnotations.fir.ir.txt index e531a674e86..9333b17a49a 100644 --- a/compiler/testData/ir/irText/declarations/annotations/classesWithAnnotations.fir.ir.txt +++ b/compiler/testData/ir/irText/declarations/annotations/classesWithAnnotations.fir.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/classesWithAnnotations.kt CONSTRUCTOR visibility:public <> (x:kotlin.String) returnType:.TestAnn [primary] VALUE_PARAMETER name:x index:0 type:kotlin.String BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:TestAnn modality:OPEN visibility:public superTypes:[kotlin.Annotation]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.String visibility:private [final] @@ -19,16 +19,16 @@ FILE fqName: fileName:/classesWithAnnotations.kt receiver: GET_VAR ': .TestAnn declared in .TestAnn.' type=.TestAnn 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 [fake_override,operator] declared in kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:TestClass modality:FINAL visibility:public superTypes:[kotlin.Any] annotations: @@ -36,11 +36,11 @@ FILE fqName: fileName:/classesWithAnnotations.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.TestClass CONSTRUCTOR visibility:public <> () returnType:.TestClass [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:TestClass modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -57,7 +57,7 @@ FILE fqName: fileName:/classesWithAnnotations.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.TestInterface 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -74,11 +74,11 @@ FILE fqName: fileName:/classesWithAnnotations.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.TestObject CONSTRUCTOR visibility:private <> () returnType:.TestObject [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:TestObject modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -93,7 +93,7 @@ FILE fqName: fileName:/classesWithAnnotations.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Host CONSTRUCTOR visibility:public <> () returnType:.Host [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Host modality:FINAL visibility:public superTypes:[kotlin.Any]' CLASS OBJECT name:TestCompanion modality:FINAL visibility:public [companion] superTypes:[kotlin.Any] annotations: @@ -101,11 +101,11 @@ FILE fqName: fileName:/classesWithAnnotations.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Host.TestCompanion CONSTRUCTOR visibility:private <> () returnType:.Host.TestCompanion [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:TestCompanion modality:FINAL visibility:public [companion] 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -118,7 +118,7 @@ FILE fqName: fileName:/classesWithAnnotations.kt $this: VALUE_PARAMETER name: type: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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -135,7 +135,7 @@ FILE fqName: fileName:/classesWithAnnotations.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.TestEnum CONSTRUCTOR visibility:private <> () returnType:.TestEnum [primary] BLOCK_BODY - ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) [primary] declared in kotlin.Enum' + ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) declared in kotlin.Enum' : .TestEnum INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_CLASS name:TestEnum modality:FINAL visibility:public superTypes:[kotlin.Enum<.TestEnum>]' FUN ENUM_CLASS_SPECIAL_MEMBER name:values visibility:public modality:FINAL <> () returnType:kotlin.Array<.TestEnum> @@ -153,12 +153,12 @@ FILE fqName: fileName:/classesWithAnnotations.kt $this: VALUE_PARAMETER name: type:kotlin.Enum FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum, other:.TestEnum) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: E of kotlin.Enum): kotlin.Int [operator] declared in kotlin.Enum + public final fun compareTo (other: E of kotlin.Enum): kotlin.Int declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:.TestEnum FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Enum + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:hashCode visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] @@ -173,7 +173,7 @@ FILE fqName: fileName:/classesWithAnnotations.kt annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: @@ -181,7 +181,7 @@ FILE fqName: fileName:/classesWithAnnotations.kt $this: VALUE_PARAMETER name: type:kotlin.Enum PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: @@ -201,18 +201,18 @@ FILE fqName: fileName:/classesWithAnnotations.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.TestAnnotation CONSTRUCTOR visibility:public <> () returnType:.TestAnnotation [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:TestAnnotation modality:OPEN visibility:public superTypes:[kotlin.Annotation]' 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 kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/declarations/annotations/classesWithAnnotations.ir.txt b/compiler/testData/ir/irText/declarations/annotations/classesWithAnnotations.ir.txt index 264e3f9a0fa..768f5f538de 100644 --- a/compiler/testData/ir/irText/declarations/annotations/classesWithAnnotations.ir.txt +++ b/compiler/testData/ir/irText/declarations/annotations/classesWithAnnotations.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/classesWithAnnotations.kt CONSTRUCTOR visibility:public <> (x:kotlin.String) returnType:.TestAnn [primary] VALUE_PARAMETER name:x index:0 type:kotlin.String BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:TestAnn modality:OPEN visibility:public superTypes:[kotlin.Annotation]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.String visibility:private [final] @@ -19,16 +19,16 @@ FILE fqName: fileName:/classesWithAnnotations.kt receiver: GET_VAR ': .TestAnn declared in .TestAnn.' type=.TestAnn 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 [fake_override,operator] declared in kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:TestClass modality:FINAL visibility:public superTypes:[kotlin.Any] annotations: @@ -36,11 +36,11 @@ FILE fqName: fileName:/classesWithAnnotations.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.TestClass CONSTRUCTOR visibility:public <> () returnType:.TestClass [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:TestClass modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -57,7 +57,7 @@ FILE fqName: fileName:/classesWithAnnotations.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.TestInterface 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -74,11 +74,11 @@ FILE fqName: fileName:/classesWithAnnotations.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.TestObject CONSTRUCTOR visibility:private <> () returnType:.TestObject [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:TestObject modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -93,7 +93,7 @@ FILE fqName: fileName:/classesWithAnnotations.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Host CONSTRUCTOR visibility:public <> () returnType:.Host [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Host modality:FINAL visibility:public superTypes:[kotlin.Any]' CLASS OBJECT name:TestCompanion modality:FINAL visibility:public [companion] superTypes:[kotlin.Any] annotations: @@ -101,11 +101,11 @@ FILE fqName: fileName:/classesWithAnnotations.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Host.TestCompanion CONSTRUCTOR visibility:private <> () returnType:.Host.TestCompanion [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:TestCompanion modality:FINAL visibility:public [companion] 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -118,7 +118,7 @@ FILE fqName: fileName:/classesWithAnnotations.kt $this: VALUE_PARAMETER name: type: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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -135,14 +135,14 @@ FILE fqName: fileName:/classesWithAnnotations.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.TestEnum CONSTRUCTOR visibility:private <> () returnType:.TestEnum [primary] BLOCK_BODY - ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) [primary] declared in kotlin.Enum' + ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) declared in kotlin.Enum' : .TestEnum INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_CLASS name:TestEnum modality:FINAL visibility:public superTypes:[kotlin.Enum<.TestEnum>]' PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestEnum>) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: @@ -150,7 +150,7 @@ FILE fqName: fileName:/classesWithAnnotations.kt $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestEnum> PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestEnum>) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: @@ -162,12 +162,12 @@ FILE fqName: fileName:/classesWithAnnotations.kt $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestEnum> FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestEnum>, other:.TestEnum) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: E of kotlin.Enum): kotlin.Int [operator] declared in kotlin.Enum + public final fun compareTo (other: E of kotlin.Enum): kotlin.Int declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestEnum> VALUE_PARAMETER name:other index:0 type:.TestEnum FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestEnum>, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Enum + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum<.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<.TestEnum>) returnType:kotlin.Unit [fake_override] @@ -201,18 +201,18 @@ FILE fqName: fileName:/classesWithAnnotations.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.TestAnnotation CONSTRUCTOR visibility:public <> () returnType:.TestAnnotation [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:TestAnnotation modality:OPEN visibility:public superTypes:[kotlin.Annotation]' 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 kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/declarations/annotations/constExpressionsInAnnotationArguments.ir.txt b/compiler/testData/ir/irText/declarations/annotations/constExpressionsInAnnotationArguments.ir.txt index c798bd3e9d4..f577c7d5704 100644 --- a/compiler/testData/ir/irText/declarations/annotations/constExpressionsInAnnotationArguments.ir.txt +++ b/compiler/testData/ir/irText/declarations/annotations/constExpressionsInAnnotationArguments.ir.txt @@ -13,7 +13,7 @@ FILE fqName: fileName:/constExpressionsInAnnotationArguments.kt CONSTRUCTOR visibility:public <> (x:kotlin.Int) returnType:.A [primary] VALUE_PARAMETER name:x index:0 type:kotlin.Int BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:A modality:OPEN visibility:public superTypes:[kotlin.Annotation]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private [final] @@ -28,16 +28,16 @@ FILE fqName: fileName:/constExpressionsInAnnotationArguments.kt receiver: GET_VAR ': .A declared in .A.' type=.A 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 [fake_override,operator] declared in kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any FUN name:test1 visibility:public modality:FINAL <> () returnType:kotlin.Unit annotations: diff --git a/compiler/testData/ir/irText/declarations/annotations/constructorsWithAnnotations.ir.txt b/compiler/testData/ir/irText/declarations/annotations/constructorsWithAnnotations.ir.txt index fbe4db2fca3..484a3d6dc62 100644 --- a/compiler/testData/ir/irText/declarations/annotations/constructorsWithAnnotations.ir.txt +++ b/compiler/testData/ir/irText/declarations/annotations/constructorsWithAnnotations.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/constructorsWithAnnotations.kt CONSTRUCTOR visibility:public <> (x:kotlin.Int) returnType:.TestAnn [primary] VALUE_PARAMETER name:x index:0 type:kotlin.Int BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:TestAnn modality:OPEN visibility:public superTypes:[kotlin.Annotation]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private [final] @@ -19,16 +19,16 @@ FILE fqName: fileName:/constructorsWithAnnotations.kt receiver: GET_VAR ': .TestAnn declared in .TestAnn.' type=.TestAnn 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 [fake_override,operator] declared in kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:TestClass modality:FINAL visibility:public superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.TestClass @@ -36,17 +36,17 @@ FILE fqName: fileName:/constructorsWithAnnotations.kt annotations: TestAnn(x = '1') BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:TestClass modality:FINAL visibility:public superTypes:[kotlin.Any]' CONSTRUCTOR visibility:public <> (x:kotlin.Int) returnType:.TestClass annotations: TestAnn(x = '2') VALUE_PARAMETER name:x index:0 type:kotlin.Int BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .TestClass' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .TestClass' 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/declarations/annotations/delegateFieldWithAnnotations.ir.txt b/compiler/testData/ir/irText/declarations/annotations/delegateFieldWithAnnotations.ir.txt index 1afbd09d3db..7743a4a4335 100644 --- a/compiler/testData/ir/irText/declarations/annotations/delegateFieldWithAnnotations.ir.txt +++ b/compiler/testData/ir/irText/declarations/annotations/delegateFieldWithAnnotations.ir.txt @@ -3,20 +3,20 @@ FILE fqName: fileName:/delegateFieldWithAnnotations.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Ann CONSTRUCTOR visibility:public <> () returnType:.Ann [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:Ann modality:OPEN visibility:public superTypes:[kotlin.Annotation]' 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 kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any PROPERTY name:test1 visibility:public modality:FINAL [delegated,val] FIELD PROPERTY_DELEGATE name:test1$delegate type:kotlin.Lazy visibility:private [final,static] @@ -34,8 +34,8 @@ FILE fqName: fileName:/delegateFieldWithAnnotations.kt correspondingProperty: PROPERTY name:test1 visibility:public modality:FINAL [delegated,val] BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun (): kotlin.Int declared in ' - CALL 'public final fun getValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): T of kotlin.LazyKt.getValue [inline,operator] declared in kotlin.LazyKt' type=kotlin.Int origin=null + CALL 'public final fun getValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): T of kotlin.LazyKt.getValue declared in kotlin.LazyKt' type=kotlin.Int origin=null : kotlin.Int $receiver: GET_FIELD 'FIELD PROPERTY_DELEGATE name:test1$delegate type:kotlin.Lazy visibility:private [final,static]' type=kotlin.Lazy origin=null thisRef: CONST Null type=kotlin.Nothing? value=null - property: PROPERTY_REFERENCE 'public final test1: kotlin.Int [delegated,val]' field=null getter='public final fun (): kotlin.Int declared in ' setter=null type=kotlin.reflect.KProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE + property: PROPERTY_REFERENCE 'public final test1: kotlin.Int' field=null getter='public final fun (): kotlin.Int declared in ' setter=null type=kotlin.reflect.KProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE diff --git a/compiler/testData/ir/irText/declarations/annotations/delegatedPropertyAccessorsWithAnnotations.fir.ir.txt b/compiler/testData/ir/irText/declarations/annotations/delegatedPropertyAccessorsWithAnnotations.fir.ir.txt index 0c7977baeda..6337d311ef6 100644 --- a/compiler/testData/ir/irText/declarations/annotations/delegatedPropertyAccessorsWithAnnotations.fir.ir.txt +++ b/compiler/testData/ir/irText/declarations/annotations/delegatedPropertyAccessorsWithAnnotations.fir.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/delegatedPropertyAccessorsWithAnnotations.kt CONSTRUCTOR visibility:public <> (x:kotlin.String) returnType:.A [primary] VALUE_PARAMETER name:x index:0 type:kotlin.String BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:A modality:OPEN visibility:public superTypes:[kotlin.Annotation]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.String visibility:private [final] @@ -19,23 +19,23 @@ FILE fqName: fileName:/delegatedPropertyAccessorsWithAnnotations.kt receiver: GET_VAR ': .A declared in .A.' type=.A 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 [fake_override,operator] declared in kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:Cell modality:FINAL visibility:public superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Cell CONSTRUCTOR visibility:public <> (value:kotlin.Int) returnType:.Cell [primary] VALUE_PARAMETER name:value index:0 type:kotlin.Int BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Cell modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:value visibility:public modality:FINAL [var] FIELD PROPERTY_BACKING_FIELD name:value type:kotlin.Int visibility:private @@ -61,7 +61,7 @@ FILE fqName: fileName:/delegatedPropertyAccessorsWithAnnotations.kt VALUE_PARAMETER name:thisRef index:0 type:kotlin.Any? VALUE_PARAMETER name:kProp index:1 type:kotlin.Any? BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun getValue (thisRef: kotlin.Any?, kProp: kotlin.Any?): kotlin.Int [operator] declared in .Cell' + RETURN type=kotlin.Nothing from='public final fun getValue (thisRef: kotlin.Any?, kProp: kotlin.Any?): kotlin.Int declared in .Cell' CALL 'public final fun (): kotlin.Int declared in .Cell' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR ': .Cell declared in .Cell.getValue' type=.Cell origin=null FUN name:setValue visibility:public modality:FINAL <> ($this:.Cell, thisRef:kotlin.Any?, kProp:kotlin.Any?, newValue:kotlin.Int) returnType:kotlin.Unit [operator] @@ -75,7 +75,7 @@ FILE fqName: fileName:/delegatedPropertyAccessorsWithAnnotations.kt : GET_VAR 'newValue: kotlin.Int declared in .Cell.setValue' type=kotlin.Int 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -89,7 +89,7 @@ FILE fqName: fileName:/delegatedPropertyAccessorsWithAnnotations.kt PROPERTY name:test1 visibility:public modality:FINAL [delegated,val] FIELD PROPERTY_DELEGATE name:test1$delegate type:.Cell visibility:private [final,static] EXPRESSION_BODY - CONSTRUCTOR_CALL 'public constructor (value: kotlin.Int) [primary] declared in .Cell' type=.Cell origin=null + CONSTRUCTOR_CALL 'public constructor (value: kotlin.Int) declared in .Cell' type=.Cell origin=null value: CONST Int type=kotlin.Int value=1 FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:kotlin.Int annotations: @@ -97,14 +97,14 @@ FILE fqName: fileName:/delegatedPropertyAccessorsWithAnnotations.kt correspondingProperty: PROPERTY name:test1 visibility:public modality:FINAL [delegated,val] BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun (): kotlin.Int declared in ' - CALL 'public final fun getValue (thisRef: kotlin.Any?, kProp: kotlin.Any?): kotlin.Int [operator] declared in .Cell' type=kotlin.Int origin=null + CALL 'public final fun getValue (thisRef: kotlin.Any?, kProp: kotlin.Any?): kotlin.Int declared in .Cell' type=kotlin.Int origin=null $this: GET_FIELD 'FIELD PROPERTY_DELEGATE name:test1$delegate type:.Cell visibility:private [final,static]' type=.Cell origin=null thisRef: CONST Null type=kotlin.Nothing? value=null - kProp: PROPERTY_REFERENCE 'public final test1: kotlin.Int [delegated,val]' field=null getter='public final fun (): kotlin.Int declared in ' setter=null type=kotlin.reflect.KProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE + kProp: PROPERTY_REFERENCE 'public final test1: kotlin.Int' field=null getter='public final fun (): kotlin.Int declared in ' setter=null type=kotlin.reflect.KProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE PROPERTY name:test2 visibility:public modality:FINAL [delegated,var] FIELD PROPERTY_DELEGATE name:test2$delegate type:.Cell visibility:private [final,static] EXPRESSION_BODY - CONSTRUCTOR_CALL 'public constructor (value: kotlin.Int) [primary] declared in .Cell' type=.Cell origin=null + CONSTRUCTOR_CALL 'public constructor (value: kotlin.Int) declared in .Cell' type=.Cell origin=null value: CONST Int type=kotlin.Int value=2 FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:kotlin.Int annotations: @@ -112,10 +112,10 @@ FILE fqName: fileName:/delegatedPropertyAccessorsWithAnnotations.kt correspondingProperty: PROPERTY name:test2 visibility:public modality:FINAL [delegated,var] BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun (): kotlin.Int declared in ' - CALL 'public final fun getValue (thisRef: kotlin.Any?, kProp: kotlin.Any?): kotlin.Int [operator] declared in .Cell' type=kotlin.Int origin=null + CALL 'public final fun getValue (thisRef: kotlin.Any?, kProp: kotlin.Any?): kotlin.Int declared in .Cell' type=kotlin.Int origin=null $this: GET_FIELD 'FIELD PROPERTY_DELEGATE name:test2$delegate type:.Cell visibility:private [final,static]' type=.Cell origin=null thisRef: CONST Null type=kotlin.Nothing? value=null - kProp: PROPERTY_REFERENCE 'public final test2: kotlin.Int [delegated,var]' field=null getter='public final fun (): kotlin.Int declared in ' setter='public final fun (: kotlin.Int): kotlin.Unit declared in ' type=kotlin.reflect.KMutableProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE + kProp: PROPERTY_REFERENCE 'public final test2: kotlin.Int' field=null getter='public final fun (): kotlin.Int declared in ' setter='public final fun (: kotlin.Int): kotlin.Unit declared in ' type=kotlin.reflect.KMutableProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> (:kotlin.Int) returnType:kotlin.Unit annotations: A(x = 'test2.set') @@ -124,8 +124,8 @@ FILE fqName: fileName:/delegatedPropertyAccessorsWithAnnotations.kt annotations: A(x = 'test2.set.param') BLOCK_BODY - CALL 'public final fun setValue (thisRef: kotlin.Any?, kProp: kotlin.Any?, newValue: kotlin.Int): kotlin.Unit [operator] declared in .Cell' type=kotlin.Unit origin=null + CALL 'public final fun setValue (thisRef: kotlin.Any?, kProp: kotlin.Any?, newValue: kotlin.Int): kotlin.Unit declared in .Cell' type=kotlin.Unit origin=null $this: GET_FIELD 'FIELD PROPERTY_DELEGATE name:test2$delegate type:.Cell visibility:private [final,static]' type=.Cell origin=null thisRef: CONST Null type=kotlin.Nothing? value=null - kProp: PROPERTY_REFERENCE 'public final test2: kotlin.Int [delegated,var]' field=null getter='public final fun (): kotlin.Int declared in ' setter='public final fun (: kotlin.Int): kotlin.Unit declared in ' type=kotlin.reflect.KMutableProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE + kProp: PROPERTY_REFERENCE 'public final test2: kotlin.Int' field=null getter='public final fun (): kotlin.Int declared in ' setter='public final fun (: kotlin.Int): kotlin.Unit declared in ' type=kotlin.reflect.KMutableProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE newValue: GET_VAR ': kotlin.Int declared in .' type=kotlin.Int origin=null diff --git a/compiler/testData/ir/irText/declarations/annotations/delegatedPropertyAccessorsWithAnnotations.ir.txt b/compiler/testData/ir/irText/declarations/annotations/delegatedPropertyAccessorsWithAnnotations.ir.txt index 4286cc01f6b..d05f4d64203 100644 --- a/compiler/testData/ir/irText/declarations/annotations/delegatedPropertyAccessorsWithAnnotations.ir.txt +++ b/compiler/testData/ir/irText/declarations/annotations/delegatedPropertyAccessorsWithAnnotations.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/delegatedPropertyAccessorsWithAnnotations.kt CONSTRUCTOR visibility:public <> (x:kotlin.String) returnType:.A [primary] VALUE_PARAMETER name:x index:0 type:kotlin.String BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:A modality:OPEN visibility:public superTypes:[kotlin.Annotation]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.String visibility:private [final] @@ -19,23 +19,23 @@ FILE fqName: fileName:/delegatedPropertyAccessorsWithAnnotations.kt receiver: GET_VAR ': .A declared in .A.' type=.A 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 [fake_override,operator] declared in kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:Cell modality:FINAL visibility:public superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Cell CONSTRUCTOR visibility:public <> (value:kotlin.Int) returnType:.Cell [primary] VALUE_PARAMETER name:value index:0 type:kotlin.Int BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Cell modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:value visibility:public modality:FINAL [var] FIELD PROPERTY_BACKING_FIELD name:value type:kotlin.Int visibility:private @@ -61,7 +61,7 @@ FILE fqName: fileName:/delegatedPropertyAccessorsWithAnnotations.kt VALUE_PARAMETER name:thisRef index:0 type:kotlin.Any? VALUE_PARAMETER name:kProp index:1 type:kotlin.Any? BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun getValue (thisRef: kotlin.Any?, kProp: kotlin.Any?): kotlin.Int [operator] declared in .Cell' + RETURN type=kotlin.Nothing from='public final fun getValue (thisRef: kotlin.Any?, kProp: kotlin.Any?): kotlin.Int declared in .Cell' CALL 'public final fun (): kotlin.Int declared in .Cell' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR ': .Cell declared in .Cell.getValue' type=.Cell origin=null FUN name:setValue visibility:public modality:FINAL <> ($this:.Cell, thisRef:kotlin.Any?, kProp:kotlin.Any?, newValue:kotlin.Int) returnType:kotlin.Unit [operator] @@ -75,7 +75,7 @@ FILE fqName: fileName:/delegatedPropertyAccessorsWithAnnotations.kt : GET_VAR 'newValue: kotlin.Int declared in .Cell.setValue' type=kotlin.Int 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -89,7 +89,7 @@ FILE fqName: fileName:/delegatedPropertyAccessorsWithAnnotations.kt PROPERTY name:test1 visibility:public modality:FINAL [delegated,val] FIELD PROPERTY_DELEGATE name:test1$delegate type:.Cell visibility:private [final,static] EXPRESSION_BODY - CONSTRUCTOR_CALL 'public constructor (value: kotlin.Int) [primary] declared in .Cell' type=.Cell origin=null + CONSTRUCTOR_CALL 'public constructor (value: kotlin.Int) declared in .Cell' type=.Cell origin=null value: CONST Int type=kotlin.Int value=1 FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:kotlin.Int annotations: @@ -97,14 +97,14 @@ FILE fqName: fileName:/delegatedPropertyAccessorsWithAnnotations.kt correspondingProperty: PROPERTY name:test1 visibility:public modality:FINAL [delegated,val] BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun (): kotlin.Int declared in ' - CALL 'public final fun getValue (thisRef: kotlin.Any?, kProp: kotlin.Any?): kotlin.Int [operator] declared in .Cell' type=kotlin.Int origin=null + CALL 'public final fun getValue (thisRef: kotlin.Any?, kProp: kotlin.Any?): kotlin.Int declared in .Cell' type=kotlin.Int origin=null $this: GET_FIELD 'FIELD PROPERTY_DELEGATE name:test1$delegate type:.Cell visibility:private [final,static]' type=.Cell origin=null thisRef: CONST Null type=kotlin.Nothing? value=null - kProp: PROPERTY_REFERENCE 'public final test1: kotlin.Int [delegated,val]' field=null getter='public final fun (): kotlin.Int declared in ' setter=null type=kotlin.reflect.KProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE + kProp: PROPERTY_REFERENCE 'public final test1: kotlin.Int' field=null getter='public final fun (): kotlin.Int declared in ' setter=null type=kotlin.reflect.KProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE PROPERTY name:test2 visibility:public modality:FINAL [delegated,var] FIELD PROPERTY_DELEGATE name:test2$delegate type:.Cell visibility:private [final,static] EXPRESSION_BODY - CONSTRUCTOR_CALL 'public constructor (value: kotlin.Int) [primary] declared in .Cell' type=.Cell origin=null + CONSTRUCTOR_CALL 'public constructor (value: kotlin.Int) declared in .Cell' type=.Cell origin=null value: CONST Int type=kotlin.Int value=2 FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:kotlin.Int annotations: @@ -112,10 +112,10 @@ FILE fqName: fileName:/delegatedPropertyAccessorsWithAnnotations.kt correspondingProperty: PROPERTY name:test2 visibility:public modality:FINAL [delegated,var] BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun (): kotlin.Int declared in ' - CALL 'public final fun getValue (thisRef: kotlin.Any?, kProp: kotlin.Any?): kotlin.Int [operator] declared in .Cell' type=kotlin.Int origin=null + CALL 'public final fun getValue (thisRef: kotlin.Any?, kProp: kotlin.Any?): kotlin.Int declared in .Cell' type=kotlin.Int origin=null $this: GET_FIELD 'FIELD PROPERTY_DELEGATE name:test2$delegate type:.Cell visibility:private [final,static]' type=.Cell origin=null thisRef: CONST Null type=kotlin.Nothing? value=null - kProp: PROPERTY_REFERENCE 'public final test2: kotlin.Int [delegated,var]' field=null getter='public final fun (): kotlin.Int declared in ' setter='public final fun (: kotlin.Int): kotlin.Unit declared in ' type=kotlin.reflect.KMutableProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE + kProp: PROPERTY_REFERENCE 'public final test2: kotlin.Int' field=null getter='public final fun (): kotlin.Int declared in ' setter='public final fun (: kotlin.Int): kotlin.Unit declared in ' type=kotlin.reflect.KMutableProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> (:kotlin.Int) returnType:kotlin.Unit annotations: A(x = 'test2.set') @@ -125,8 +125,8 @@ FILE fqName: fileName:/delegatedPropertyAccessorsWithAnnotations.kt A(x = 'test2.set.param') BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun (: kotlin.Int): kotlin.Unit declared in ' - CALL 'public final fun setValue (thisRef: kotlin.Any?, kProp: kotlin.Any?, newValue: kotlin.Int): kotlin.Unit [operator] declared in .Cell' type=kotlin.Unit origin=null + CALL 'public final fun setValue (thisRef: kotlin.Any?, kProp: kotlin.Any?, newValue: kotlin.Int): kotlin.Unit declared in .Cell' type=kotlin.Unit origin=null $this: GET_FIELD 'FIELD PROPERTY_DELEGATE name:test2$delegate type:.Cell visibility:private [final,static]' type=.Cell origin=null thisRef: CONST Null type=kotlin.Nothing? value=null - kProp: PROPERTY_REFERENCE 'public final test2: kotlin.Int [delegated,var]' field=null getter='public final fun (): kotlin.Int declared in ' setter='public final fun (: kotlin.Int): kotlin.Unit declared in ' type=kotlin.reflect.KMutableProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE + kProp: PROPERTY_REFERENCE 'public final test2: kotlin.Int' field=null getter='public final fun (): kotlin.Int declared in ' setter='public final fun (: kotlin.Int): kotlin.Unit declared in ' type=kotlin.reflect.KMutableProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE newValue: GET_VAR ': kotlin.Int declared in .' type=kotlin.Int origin=null diff --git a/compiler/testData/ir/irText/declarations/annotations/enumEntriesWithAnnotations.fir.ir.txt b/compiler/testData/ir/irText/declarations/annotations/enumEntriesWithAnnotations.fir.ir.txt index 9f303610219..43e6bfb7aae 100644 --- a/compiler/testData/ir/irText/declarations/annotations/enumEntriesWithAnnotations.fir.ir.txt +++ b/compiler/testData/ir/irText/declarations/annotations/enumEntriesWithAnnotations.fir.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/enumEntriesWithAnnotations.kt CONSTRUCTOR visibility:public <> (x:kotlin.String) returnType:.TestAnn [primary] VALUE_PARAMETER name:x index:0 type:kotlin.String BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:TestAnn modality:OPEN visibility:public superTypes:[kotlin.Annotation]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.String visibility:private [final] @@ -19,39 +19,39 @@ FILE fqName: fileName:/enumEntriesWithAnnotations.kt receiver: GET_VAR ': .TestAnn declared in .TestAnn.' type=.TestAnn 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 [fake_override,operator] declared in kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any CLASS ENUM_CLASS name:TestEnum modality:OPEN visibility:public superTypes:[kotlin.Enum<.TestEnum>] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.TestEnum CONSTRUCTOR visibility:private <> () returnType:.TestEnum [primary] BLOCK_BODY - ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) [primary] declared in kotlin.Enum' + ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) declared in kotlin.Enum' : .TestEnum INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_CLASS name:TestEnum modality:OPEN visibility:public superTypes:[kotlin.Enum<.TestEnum>]' ENUM_ENTRY name:ENTRY1 annotations: TestAnn(x = 'ENTRY1') init: EXPRESSION_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor () [primary] declared in .TestEnum' + ENUM_CONSTRUCTOR_CALL 'private constructor () declared in .TestEnum' ENUM_ENTRY name:ENTRY2 annotations: TestAnn(x = 'ENTRY2') init: EXPRESSION_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor () [primary] declared in .TestEnum.ENTRY2' + ENUM_CONSTRUCTOR_CALL 'private constructor () declared in .TestEnum.ENTRY2' class: CLASS ENUM_ENTRY name:ENTRY2 modality:FINAL visibility:private superTypes:[.TestEnum] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.TestEnum.ENTRY2 CONSTRUCTOR visibility:private <> () returnType:.TestEnum.ENTRY2 [primary] BLOCK_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor () [primary] declared in .TestEnum' + ENUM_CONSTRUCTOR_CALL 'private constructor () declared in .TestEnum' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_ENTRY name:ENTRY2 modality:FINAL visibility:private superTypes:[.TestEnum]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private [final] @@ -66,51 +66,51 @@ FILE fqName: fileName:/enumEntriesWithAnnotations.kt receiver: GET_VAR ': .TestEnum.ENTRY2 declared in .TestEnum.ENTRY2.' type=.TestEnum.ENTRY2 origin=null FUN FAKE_OVERRIDE name:clone visibility:protected modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Any [fake_override] overridden: - protected final fun clone (): kotlin.Any [fake_override] declared in .TestEnum + protected final fun clone (): kotlin.Any declared in .TestEnum $this: VALUE_PARAMETER name: type:kotlin.Enum FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum, other:.TestEnum) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: .TestEnum): kotlin.Int [fake_override,operator] declared in .TestEnum + public final fun compareTo (other: .TestEnum): kotlin.Int declared in .TestEnum $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:.TestEnum FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .TestEnum + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in .TestEnum $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:hashCode visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] overridden: - public final fun hashCode (): kotlin.Int [fake_override] declared in .TestEnum + public final fun hashCode (): kotlin.Int declared in .TestEnum $this: VALUE_PARAMETER name: type:kotlin.Enum FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Enum) returnType:kotlin.String [fake_override] overridden: - public open fun toString (): kotlin.String [fake_override] declared in .TestEnum + public open fun toString (): kotlin.String declared in .TestEnum $this: VALUE_PARAMETER name: type:kotlin.Enum PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [fake_override,val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: - public final fun (): kotlin.String [fake_override] declared in .TestEnum + public final fun (): kotlin.String declared in .TestEnum $this: VALUE_PARAMETER name: type:kotlin.Enum PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [fake_override,val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final fun (): kotlin.Int [fake_override] declared in .TestEnum + public final fun (): kotlin.Int declared in .TestEnum $this: VALUE_PARAMETER name: type:kotlin.Enum FUN FAKE_OVERRIDE name:getDeclaringClass visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:@[FlexibleNullability] java.lang.Class<@[FlexibleNullability] .TestEnum?>? [fake_override] overridden: - public final fun getDeclaringClass (): @[FlexibleNullability] java.lang.Class<@[FlexibleNullability] .TestEnum?>? [fake_override] declared in .TestEnum + public final fun getDeclaringClass (): @[FlexibleNullability] java.lang.Class<@[FlexibleNullability] .TestEnum?>? declared in .TestEnum $this: VALUE_PARAMETER name: type:kotlin.Enum FUN FAKE_OVERRIDE name:finalize visibility:protected/*protected and package*/ modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Unit [fake_override] overridden: - protected/*protected and package*/ final fun finalize (): kotlin.Unit [fake_override] declared in .TestEnum + protected/*protected and package*/ final fun finalize (): kotlin.Unit declared in .TestEnum $this: VALUE_PARAMETER name: type:kotlin.Enum FUN ENUM_CLASS_SPECIAL_MEMBER name:values visibility:public modality:FINAL <> () returnType:kotlin.Array<.TestEnum> SYNTHETIC_BODY kind=ENUM_VALUES @@ -127,12 +127,12 @@ FILE fqName: fileName:/enumEntriesWithAnnotations.kt $this: VALUE_PARAMETER name: type:kotlin.Enum FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum, other:.TestEnum) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: E of kotlin.Enum): kotlin.Int [operator] declared in kotlin.Enum + public final fun compareTo (other: E of kotlin.Enum): kotlin.Int declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:.TestEnum FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Enum + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:hashCode visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] @@ -147,7 +147,7 @@ FILE fqName: fileName:/enumEntriesWithAnnotations.kt annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: @@ -155,7 +155,7 @@ FILE fqName: fileName:/enumEntriesWithAnnotations.kt $this: VALUE_PARAMETER name: type:kotlin.Enum PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: diff --git a/compiler/testData/ir/irText/declarations/annotations/enumEntriesWithAnnotations.ir.txt b/compiler/testData/ir/irText/declarations/annotations/enumEntriesWithAnnotations.ir.txt index 463055f6c3d..c5e039fdf85 100644 --- a/compiler/testData/ir/irText/declarations/annotations/enumEntriesWithAnnotations.ir.txt +++ b/compiler/testData/ir/irText/declarations/annotations/enumEntriesWithAnnotations.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/enumEntriesWithAnnotations.kt CONSTRUCTOR visibility:public <> (x:kotlin.String) returnType:.TestAnn [primary] VALUE_PARAMETER name:x index:0 type:kotlin.String BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:TestAnn modality:OPEN visibility:public superTypes:[kotlin.Annotation]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.String visibility:private [final] @@ -19,34 +19,34 @@ FILE fqName: fileName:/enumEntriesWithAnnotations.kt receiver: GET_VAR ': .TestAnn declared in .TestAnn.' type=.TestAnn 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 [fake_override,operator] declared in kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any CLASS ENUM_CLASS name:TestEnum modality:OPEN visibility:public superTypes:[kotlin.Enum<.TestEnum>] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.TestEnum CONSTRUCTOR visibility:private <> () returnType:.TestEnum [primary] BLOCK_BODY - ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) [primary] declared in kotlin.Enum' + ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) declared in kotlin.Enum' : .TestEnum INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_CLASS name:TestEnum modality:OPEN visibility:public superTypes:[kotlin.Enum<.TestEnum>]' ENUM_ENTRY name:ENTRY1 annotations: TestAnn(x = 'ENTRY1') init: EXPRESSION_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor () [primary] declared in .TestEnum' + ENUM_CONSTRUCTOR_CALL 'private constructor () declared in .TestEnum' ENUM_ENTRY name:ENTRY2 annotations: TestAnn(x = 'ENTRY2') init: EXPRESSION_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor () [primary] declared in .TestEnum.ENTRY2' + ENUM_CONSTRUCTOR_CALL 'private constructor () declared in .TestEnum.ENTRY2' class: CLASS ENUM_ENTRY name:ENTRY2 modality:FINAL visibility:private superTypes:[.TestEnum] annotations: TestAnn(x = 'ENTRY2') @@ -54,7 +54,7 @@ FILE fqName: fileName:/enumEntriesWithAnnotations.kt CONSTRUCTOR visibility:private <> () returnType:.TestEnum.ENTRY2 [primary] BLOCK_BODY TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit - ENUM_CONSTRUCTOR_CALL 'private constructor () [primary] declared in .TestEnum' + ENUM_CONSTRUCTOR_CALL 'private constructor () declared in .TestEnum' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_ENTRY name:ENTRY2 modality:FINAL visibility:private superTypes:[.TestEnum]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private [final] @@ -71,55 +71,55 @@ FILE fqName: fileName:/enumEntriesWithAnnotations.kt annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [fake_override,val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestEnum>) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: - public final fun (): kotlin.String [fake_override] declared in .TestEnum + public final fun (): kotlin.String declared in .TestEnum $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestEnum> PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [fake_override,val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestEnum>) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final fun (): kotlin.Int [fake_override] declared in .TestEnum + public final fun (): kotlin.Int declared in .TestEnum $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestEnum> FUN FAKE_OVERRIDE name:clone visibility:protected modality:FINAL <> ($this:kotlin.Enum<.TestEnum>) returnType:kotlin.Any [fake_override] overridden: - protected final fun clone (): kotlin.Any [fake_override] declared in .TestEnum + protected final fun clone (): kotlin.Any declared in .TestEnum $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestEnum> FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestEnum>, other:.TestEnum) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: .TestEnum): kotlin.Int [fake_override,operator] declared in .TestEnum + public final fun compareTo (other: .TestEnum): kotlin.Int declared in .TestEnum $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestEnum> VALUE_PARAMETER name:other index:0 type:.TestEnum FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestEnum>, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .TestEnum + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in .TestEnum $this: VALUE_PARAMETER name: type:kotlin.Enum<.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<.TestEnum>) returnType:kotlin.Unit [fake_override] overridden: - protected/*protected and package*/ final fun finalize (): kotlin.Unit [fake_override] declared in .TestEnum + protected/*protected and package*/ final fun finalize (): kotlin.Unit declared in .TestEnum $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestEnum> FUN FAKE_OVERRIDE name:getDeclaringClass visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestEnum>) returnType:@[FlexibleNullability] java.lang.Class<@[FlexibleNullability] .TestEnum?>? [fake_override] overridden: - public final fun getDeclaringClass (): @[FlexibleNullability] java.lang.Class<@[FlexibleNullability] .TestEnum?>? [fake_override] declared in .TestEnum + public final fun getDeclaringClass (): @[FlexibleNullability] java.lang.Class<@[FlexibleNullability] .TestEnum?>? declared in .TestEnum $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestEnum> FUN FAKE_OVERRIDE name:hashCode visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestEnum>) returnType:kotlin.Int [fake_override] overridden: - public final fun hashCode (): kotlin.Int [fake_override] declared in .TestEnum + public final fun hashCode (): kotlin.Int declared in .TestEnum $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestEnum> FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Enum<.TestEnum>) returnType:kotlin.String [fake_override] overridden: - public open fun toString (): kotlin.String [fake_override] declared in .TestEnum + public open fun toString (): kotlin.String declared in .TestEnum $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestEnum> PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestEnum>) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: @@ -127,7 +127,7 @@ FILE fqName: fileName:/enumEntriesWithAnnotations.kt $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestEnum> PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestEnum>) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: @@ -139,12 +139,12 @@ FILE fqName: fileName:/enumEntriesWithAnnotations.kt $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestEnum> FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestEnum>, other:.TestEnum) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: E of kotlin.Enum): kotlin.Int [operator] declared in kotlin.Enum + public final fun compareTo (other: E of kotlin.Enum): kotlin.Int declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum<.TestEnum> VALUE_PARAMETER name:other index:0 type:.TestEnum FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum<.TestEnum>, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Enum + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum<.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<.TestEnum>) returnType:kotlin.Unit [fake_override] diff --git a/compiler/testData/ir/irText/declarations/annotations/enumsInAnnotationArguments.fir.ir.txt b/compiler/testData/ir/irText/declarations/annotations/enumsInAnnotationArguments.fir.ir.txt index a510c28c734..f1cfa3572ad 100644 --- a/compiler/testData/ir/irText/declarations/annotations/enumsInAnnotationArguments.fir.ir.txt +++ b/compiler/testData/ir/irText/declarations/annotations/enumsInAnnotationArguments.fir.ir.txt @@ -3,21 +3,21 @@ FILE fqName: fileName:/enumsInAnnotationArguments.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.En CONSTRUCTOR visibility:private <> () returnType:.En [primary] BLOCK_BODY - ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) [primary] declared in kotlin.Enum' + ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) declared in kotlin.Enum' : .En INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_CLASS name:En modality:FINAL visibility:public superTypes:[kotlin.Enum<.En>]' ENUM_ENTRY name:A init: EXPRESSION_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor () [primary] declared in .En' + ENUM_CONSTRUCTOR_CALL 'private constructor () declared in .En' ENUM_ENTRY name:B init: EXPRESSION_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor () [primary] declared in .En' + ENUM_CONSTRUCTOR_CALL 'private constructor () declared in .En' ENUM_ENTRY name:C init: EXPRESSION_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor () [primary] declared in .En' + ENUM_CONSTRUCTOR_CALL 'private constructor () declared in .En' ENUM_ENTRY name:D init: EXPRESSION_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor () [primary] declared in .En' + ENUM_CONSTRUCTOR_CALL 'private constructor () declared in .En' FUN ENUM_CLASS_SPECIAL_MEMBER name:values visibility:public modality:FINAL <> () returnType:kotlin.Array<.En> SYNTHETIC_BODY kind=ENUM_VALUES FUN ENUM_CLASS_SPECIAL_MEMBER name:valueOf visibility:public modality:FINAL <> (value:kotlin.String) returnType:.En @@ -33,12 +33,12 @@ FILE fqName: fileName:/enumsInAnnotationArguments.kt $this: VALUE_PARAMETER name: type:kotlin.Enum FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum, other:.En) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: E of kotlin.Enum): kotlin.Int [operator] declared in kotlin.Enum + public final fun compareTo (other: E of kotlin.Enum): kotlin.Int declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:.En FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Enum + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:hashCode visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] @@ -53,7 +53,7 @@ FILE fqName: fileName:/enumsInAnnotationArguments.kt annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: @@ -61,7 +61,7 @@ FILE fqName: fileName:/enumsInAnnotationArguments.kt $this: VALUE_PARAMETER name: type:kotlin.Enum PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: @@ -80,7 +80,7 @@ FILE fqName: fileName:/enumsInAnnotationArguments.kt CONSTRUCTOR visibility:public <> (x:.En) returnType:.TestAnn [primary] VALUE_PARAMETER name:x index:0 type:.En BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:TestAnn modality:OPEN visibility:public superTypes:[kotlin.Annotation]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:.En visibility:private [final] @@ -95,16 +95,16 @@ FILE fqName: fileName:/enumsInAnnotationArguments.kt receiver: GET_VAR ': .TestAnn declared in .TestAnn.' type=.TestAnn 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 [fake_override,operator] declared in kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any FUN name:test1 visibility:public modality:FINAL <> () returnType:kotlin.Unit annotations: diff --git a/compiler/testData/ir/irText/declarations/annotations/enumsInAnnotationArguments.ir.txt b/compiler/testData/ir/irText/declarations/annotations/enumsInAnnotationArguments.ir.txt index 6188fc2fcb5..d17603a05e7 100644 --- a/compiler/testData/ir/irText/declarations/annotations/enumsInAnnotationArguments.ir.txt +++ b/compiler/testData/ir/irText/declarations/annotations/enumsInAnnotationArguments.ir.txt @@ -3,26 +3,26 @@ FILE fqName: fileName:/enumsInAnnotationArguments.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.En CONSTRUCTOR visibility:private <> () returnType:.En [primary] BLOCK_BODY - ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) [primary] declared in kotlin.Enum' + ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) declared in kotlin.Enum' : .En INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_CLASS name:En modality:FINAL visibility:public superTypes:[kotlin.Enum<.En>]' ENUM_ENTRY name:A init: EXPRESSION_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor () [primary] declared in .En' + ENUM_CONSTRUCTOR_CALL 'private constructor () declared in .En' ENUM_ENTRY name:B init: EXPRESSION_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor () [primary] declared in .En' + ENUM_CONSTRUCTOR_CALL 'private constructor () declared in .En' ENUM_ENTRY name:C init: EXPRESSION_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor () [primary] declared in .En' + ENUM_CONSTRUCTOR_CALL 'private constructor () declared in .En' ENUM_ENTRY name:D init: EXPRESSION_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor () [primary] declared in .En' + ENUM_CONSTRUCTOR_CALL 'private constructor () declared in .En' PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.En>) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: @@ -30,7 +30,7 @@ FILE fqName: fileName:/enumsInAnnotationArguments.kt $this: VALUE_PARAMETER name: type:kotlin.Enum<.En> PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.En>) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: @@ -42,12 +42,12 @@ FILE fqName: fileName:/enumsInAnnotationArguments.kt $this: VALUE_PARAMETER name: type:kotlin.Enum<.En> FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum<.En>, other:.En) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: E of kotlin.Enum): kotlin.Int [operator] declared in kotlin.Enum + public final fun compareTo (other: E of kotlin.Enum): kotlin.Int declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum<.En> VALUE_PARAMETER name:other index:0 type:.En FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum<.En>, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Enum + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum<.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<.En>) returnType:kotlin.Unit [fake_override] @@ -80,7 +80,7 @@ FILE fqName: fileName:/enumsInAnnotationArguments.kt CONSTRUCTOR visibility:public <> (x:.En) returnType:.TestAnn [primary] VALUE_PARAMETER name:x index:0 type:.En BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:TestAnn modality:OPEN visibility:public superTypes:[kotlin.Annotation]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:.En visibility:private [final] @@ -95,16 +95,16 @@ FILE fqName: fileName:/enumsInAnnotationArguments.kt receiver: GET_VAR ': .TestAnn declared in .TestAnn.' type=.TestAnn 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 [fake_override,operator] declared in kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any FUN name:test1 visibility:public modality:FINAL <> () returnType:kotlin.Unit annotations: diff --git a/compiler/testData/ir/irText/declarations/annotations/fieldsWithAnnotations.ir.txt b/compiler/testData/ir/irText/declarations/annotations/fieldsWithAnnotations.ir.txt index 81dddc8a607..8917a0bc759 100644 --- a/compiler/testData/ir/irText/declarations/annotations/fieldsWithAnnotations.ir.txt +++ b/compiler/testData/ir/irText/declarations/annotations/fieldsWithAnnotations.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/fieldsWithAnnotations.kt CONSTRUCTOR visibility:public <> (x:kotlin.String) returnType:.TestAnn [primary] VALUE_PARAMETER name:x index:0 type:kotlin.String BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:TestAnn modality:OPEN visibility:public superTypes:[kotlin.Annotation]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.String visibility:private [final] @@ -19,16 +19,16 @@ FILE fqName: fileName:/fieldsWithAnnotations.kt receiver: GET_VAR ': .TestAnn declared in .TestAnn.' type=.TestAnn 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 [fake_override,operator] declared in kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any PROPERTY name:testVal visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:testVal type:kotlin.String visibility:private [final,static] diff --git a/compiler/testData/ir/irText/declarations/annotations/fileAnnotations.ir.txt b/compiler/testData/ir/irText/declarations/annotations/fileAnnotations.ir.txt index b5222bba58d..90d700ebcec 100644 --- a/compiler/testData/ir/irText/declarations/annotations/fileAnnotations.ir.txt +++ b/compiler/testData/ir/irText/declarations/annotations/fileAnnotations.ir.txt @@ -8,7 +8,7 @@ FILE fqName:test fileName:/fileAnnotations.kt CONSTRUCTOR visibility:public <> (x:kotlin.String) returnType:test.A [primary] VALUE_PARAMETER name:x index:0 type:kotlin.String BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:A modality:OPEN visibility:public superTypes:[kotlin.Annotation]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.String visibility:private [final] @@ -23,14 +23,14 @@ FILE fqName:test fileName:/fileAnnotations.kt receiver: GET_VAR ': test.A declared in test.A.' type=test.A 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 [fake_override,operator] declared in kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/declarations/annotations/functionsWithAnnotations.ir.txt b/compiler/testData/ir/irText/declarations/annotations/functionsWithAnnotations.ir.txt index 40bc7639df0..a99670cdc12 100644 --- a/compiler/testData/ir/irText/declarations/annotations/functionsWithAnnotations.ir.txt +++ b/compiler/testData/ir/irText/declarations/annotations/functionsWithAnnotations.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/functionsWithAnnotations.kt CONSTRUCTOR visibility:public <> (x:kotlin.Int) returnType:.TestAnn [primary] VALUE_PARAMETER name:x index:0 type:kotlin.Int BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:TestAnn modality:OPEN visibility:public superTypes:[kotlin.Annotation]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private [final] @@ -19,16 +19,16 @@ FILE fqName: fileName:/functionsWithAnnotations.kt receiver: GET_VAR ': .TestAnn declared in .TestAnn.' type=.TestAnn 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 [fake_override,operator] declared in kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any FUN name:testSimpleFunction visibility:public modality:FINAL <> () returnType:kotlin.Unit annotations: diff --git a/compiler/testData/ir/irText/declarations/annotations/genericAnnotationClasses.fir.ir.txt b/compiler/testData/ir/irText/declarations/annotations/genericAnnotationClasses.fir.ir.txt index f7b5a1e303e..c1ed03dd534 100644 --- a/compiler/testData/ir/irText/declarations/annotations/genericAnnotationClasses.fir.ir.txt +++ b/compiler/testData/ir/irText/declarations/annotations/genericAnnotationClasses.fir.ir.txt @@ -5,7 +5,7 @@ FILE fqName:ann fileName:/genericAnnotationClasses.kt CONSTRUCTOR visibility:public <> (x:kotlin.Int) returnType:ann.Test1 [primary] VALUE_PARAMETER name:x index:0 type:kotlin.Int BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:Test1 modality:OPEN visibility:public superTypes:[kotlin.Annotation]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private [final] @@ -20,16 +20,16 @@ FILE fqName:ann fileName:/genericAnnotationClasses.kt receiver: GET_VAR ': ann.Test1 declared in ann.Test1.' type=ann.Test1 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 [fake_override,operator] declared in kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any CLASS ANNOTATION_CLASS name:Test2 modality:OPEN visibility:public superTypes:[kotlin.Annotation] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:ann.Test2 @@ -40,7 +40,7 @@ FILE fqName:ann fileName:/genericAnnotationClasses.kt EXPRESSION_BODY CONST Int type=kotlin.Int value=0 BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:Test2 modality:OPEN visibility:public superTypes:[kotlin.Annotation]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private [final] @@ -55,23 +55,23 @@ FILE fqName:ann fileName:/genericAnnotationClasses.kt receiver: GET_VAR ': ann.Test2 declared in ann.Test2.' type=ann.Test2 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 [fake_override,operator] declared in kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any CLASS INTERFACE name:I modality:ABSTRACT visibility:public superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:ann.I TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -89,7 +89,7 @@ FILE fqName:ann fileName:/genericAnnotationClasses.kt CONSTRUCTOR visibility:public <> (x:ann.Test1>) returnType:ann.Test3 [primary] VALUE_PARAMETER name:x index:0 type:ann.Test1> BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:Test3 modality:OPEN visibility:public superTypes:[kotlin.Annotation]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:ann.Test1> visibility:private [final] @@ -104,43 +104,43 @@ FILE fqName:ann fileName:/genericAnnotationClasses.kt receiver: GET_VAR ': ann.Test3 declared in ann.Test3.' type=ann.Test3 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 [fake_override,operator] declared in kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:C modality:FINAL visibility:public superTypes:[ann.I] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:ann.C TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false CONSTRUCTOR visibility:public <> () returnType:ann.C [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C modality:FINAL visibility:public superTypes:[ann.I]' 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 ann.I + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in ann.I $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 ann.I + public open fun hashCode (): kotlin.Int declared in ann.I $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 ann.I + public open fun toString (): kotlin.String declared in ann.I $this: VALUE_PARAMETER name: type:kotlin.Any CLASS ANNOTATION_CLASS name:Test4 modality:OPEN visibility:public superTypes:[kotlin.Annotation] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:ann.Test4 CONSTRUCTOR visibility:public <> (x:kotlin.Array>>) returnType:ann.Test4 [primary] VALUE_PARAMETER name:x index:0 type:kotlin.Array>> BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:Test4 modality:OPEN visibility:public superTypes:[kotlin.Annotation]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Array>> visibility:private [final] @@ -155,26 +155,26 @@ FILE fqName:ann fileName:/genericAnnotationClasses.kt receiver: GET_VAR ': ann.Test4 declared in ann.Test4.' type=ann.Test4 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 [fake_override,operator] declared in kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:ARG modality:FINAL visibility:public superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:ann.ARG CONSTRUCTOR visibility:public <> () returnType:ann.ARG [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:ARG modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -191,12 +191,12 @@ FILE fqName:ann fileName:/genericAnnotationClasses.kt CONSTRUCTOR visibility:public <> (xs:kotlin.Array>>) returnType:ann.Test5 [primary] VALUE_PARAMETER name:xs index:0 type:kotlin.Array>> varargElementType:ann.Test3> [vararg] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:Test5 modality:OPEN visibility:public superTypes:[kotlin.Annotation]' PROPERTY name:xs visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:xs type:kotlin.Array>> visibility:private [final] EXPRESSION_BODY - GET_VAR 'xs: kotlin.Array>> [vararg] declared in ann.Test5.' type=kotlin.Array>> origin=INITIALIZE_PROPERTY_FROM_PARAMETER + GET_VAR 'xs: kotlin.Array>> declared in ann.Test5.' type=kotlin.Array>> origin=INITIALIZE_PROPERTY_FROM_PARAMETER FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:ann.Test5) returnType:kotlin.Array>> correspondingProperty: PROPERTY name:xs visibility:public modality:FINAL [val] $this: VALUE_PARAMETER name: type:ann.Test5 @@ -206,16 +206,16 @@ FILE fqName:ann fileName:/genericAnnotationClasses.kt receiver: GET_VAR ': ann.Test5 declared in ann.Test5.' type=ann.Test5 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 [fake_override,operator] declared in kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:CC modality:FINAL visibility:public superTypes:[kotlin.Any] annotations: @@ -227,11 +227,11 @@ FILE fqName:ann fileName:/genericAnnotationClasses.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:ann.CC CONSTRUCTOR visibility:public <> () returnType:ann.CC [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:CC modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/declarations/annotations/genericAnnotationClasses.ir.txt b/compiler/testData/ir/irText/declarations/annotations/genericAnnotationClasses.ir.txt index 866ea69a5e3..78002b93c21 100644 --- a/compiler/testData/ir/irText/declarations/annotations/genericAnnotationClasses.ir.txt +++ b/compiler/testData/ir/irText/declarations/annotations/genericAnnotationClasses.ir.txt @@ -5,7 +5,7 @@ FILE fqName:ann fileName:/genericAnnotationClasses.kt CONSTRUCTOR visibility:public <> (x:kotlin.Int) returnType:ann.Test1 [primary] VALUE_PARAMETER name:x index:0 type:kotlin.Int BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:Test1 modality:OPEN visibility:public superTypes:[kotlin.Annotation]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private [final] @@ -20,16 +20,16 @@ FILE fqName:ann fileName:/genericAnnotationClasses.kt receiver: GET_VAR ': ann.Test1 declared in ann.Test1.' type=ann.Test1 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 [fake_override,operator] declared in kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any CLASS ANNOTATION_CLASS name:Test2 modality:OPEN visibility:public superTypes:[kotlin.Annotation] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:ann.Test2 @@ -40,7 +40,7 @@ FILE fqName:ann fileName:/genericAnnotationClasses.kt EXPRESSION_BODY CONST Int type=kotlin.Int value=0 BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:Test2 modality:OPEN visibility:public superTypes:[kotlin.Annotation]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private [final] @@ -55,23 +55,23 @@ FILE fqName:ann fileName:/genericAnnotationClasses.kt receiver: GET_VAR ': ann.Test2 declared in ann.Test2.' type=ann.Test2 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 [fake_override,operator] declared in kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any CLASS INTERFACE name:I modality:ABSTRACT visibility:public superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:ann.I TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -89,7 +89,7 @@ FILE fqName:ann fileName:/genericAnnotationClasses.kt CONSTRUCTOR visibility:public <> (x:ann.Test1>) returnType:ann.Test3 [primary] VALUE_PARAMETER name:x index:0 type:ann.Test1> BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:Test3 modality:OPEN visibility:public superTypes:[kotlin.Annotation]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:ann.Test1> visibility:private [final] @@ -104,43 +104,43 @@ FILE fqName:ann fileName:/genericAnnotationClasses.kt receiver: GET_VAR ': ann.Test3 declared in ann.Test3.' type=ann.Test3 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 [fake_override,operator] declared in kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:C modality:FINAL visibility:public superTypes:[ann.I] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:ann.C TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false CONSTRUCTOR visibility:public <> () returnType:ann.C [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C modality:FINAL visibility:public superTypes:[ann.I]' 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 ann.I + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in ann.I $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 ann.I + public open fun hashCode (): kotlin.Int declared in ann.I $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 ann.I + public open fun toString (): kotlin.String declared in ann.I $this: VALUE_PARAMETER name: type:kotlin.Any CLASS ANNOTATION_CLASS name:Test4 modality:OPEN visibility:public superTypes:[kotlin.Annotation] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:ann.Test4 CONSTRUCTOR visibility:public <> (x:kotlin.Array>>) returnType:ann.Test4 [primary] VALUE_PARAMETER name:x index:0 type:kotlin.Array>> BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:Test4 modality:OPEN visibility:public superTypes:[kotlin.Annotation]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Array>> visibility:private [final] @@ -155,26 +155,26 @@ FILE fqName:ann fileName:/genericAnnotationClasses.kt receiver: GET_VAR ': ann.Test4 declared in ann.Test4.' type=ann.Test4 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 [fake_override,operator] declared in kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:ARG modality:FINAL visibility:public superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:ann.ARG CONSTRUCTOR visibility:public <> () returnType:ann.ARG [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:ARG modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -191,12 +191,12 @@ FILE fqName:ann fileName:/genericAnnotationClasses.kt CONSTRUCTOR visibility:public <> (xs:kotlin.Array>>) returnType:ann.Test5 [primary] VALUE_PARAMETER name:xs index:0 type:kotlin.Array>> varargElementType:ann.Test3> [vararg] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:Test5 modality:OPEN visibility:public superTypes:[kotlin.Annotation]' PROPERTY name:xs visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:xs type:kotlin.Array>> visibility:private [final] EXPRESSION_BODY - GET_VAR 'xs: kotlin.Array>> [vararg] declared in ann.Test5.' type=kotlin.Array>> origin=INITIALIZE_PROPERTY_FROM_PARAMETER + GET_VAR 'xs: kotlin.Array>> declared in ann.Test5.' type=kotlin.Array>> origin=INITIALIZE_PROPERTY_FROM_PARAMETER FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:ann.Test5) returnType:kotlin.Array>> correspondingProperty: PROPERTY name:xs visibility:public modality:FINAL [val] $this: VALUE_PARAMETER name: type:ann.Test5 @@ -206,16 +206,16 @@ FILE fqName:ann fileName:/genericAnnotationClasses.kt receiver: GET_VAR ': ann.Test5 declared in ann.Test5.' type=ann.Test5 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 [fake_override,operator] declared in kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:CC modality:FINAL visibility:public superTypes:[kotlin.Any] annotations: @@ -227,11 +227,11 @@ FILE fqName:ann fileName:/genericAnnotationClasses.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:ann.CC CONSTRUCTOR visibility:public <> () returnType:ann.CC [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:CC modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/declarations/annotations/inheritingDeprecation.fir.ir.txt b/compiler/testData/ir/irText/declarations/annotations/inheritingDeprecation.fir.ir.txt index c974c0c9358..c39716a2676 100644 --- a/compiler/testData/ir/irText/declarations/annotations/inheritingDeprecation.fir.ir.txt +++ b/compiler/testData/ir/irText/declarations/annotations/inheritingDeprecation.fir.ir.txt @@ -22,7 +22,7 @@ FILE fqName: fileName:/inheritingDeprecation.kt CONST String type=kotlin.String value="" 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -38,11 +38,11 @@ FILE fqName: fileName:/inheritingDeprecation.kt CONSTRUCTOR visibility:public <> (foo:.IFoo) returnType:.Delegated [primary] VALUE_PARAMETER name:foo index:0 type:.IFoo BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Delegated modality:FINAL visibility:public superTypes:[.IFoo]' PROPERTY DELEGATED_MEMBER name:prop visibility:public modality:OPEN [val] overridden: - public open prop: kotlin.String [val] + public open prop: kotlin.String FUN DELEGATED_MEMBER name: visibility:public modality:OPEN <> ($this:.Delegated) returnType:kotlin.String correspondingProperty: PROPERTY DELEGATED_MEMBER name:prop visibility:public modality:OPEN [val] overridden: @@ -55,7 +55,7 @@ FILE fqName: fileName:/inheritingDeprecation.kt receiver: GET_VAR ': .Delegated declared in .Delegated.' type=.Delegated origin=null PROPERTY DELEGATED_MEMBER name:extProp visibility:public modality:OPEN [val] overridden: - public open extProp: kotlin.String [val] + public open extProp: kotlin.String FUN DELEGATED_MEMBER name: visibility:public modality:OPEN <> ($this:.Delegated, $receiver:kotlin.String) returnType:kotlin.String correspondingProperty: PROPERTY DELEGATED_MEMBER name:extProp visibility:public modality:OPEN [val] overridden: @@ -73,28 +73,28 @@ FILE fqName: fileName:/inheritingDeprecation.kt GET_VAR 'foo: .IFoo declared in .Delegated.' type=.IFoo 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 [fake_override,operator] declared in .IFoo + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IFoo $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 .IFoo + public open fun hashCode (): kotlin.Int declared in .IFoo $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 .IFoo + public open fun toString (): kotlin.String declared in .IFoo $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:DefaultImpl modality:FINAL visibility:public superTypes:[.IFoo] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.DefaultImpl CONSTRUCTOR visibility:public <> () returnType:.DefaultImpl [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:DefaultImpl modality:FINAL visibility:public superTypes:[.IFoo]' PROPERTY FAKE_OVERRIDE name:prop visibility:public modality:OPEN [fake_override,val] annotations: Deprecated(message = '', replaceWith = , level = ) overridden: - public open prop: kotlin.String [val] + public open prop: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:OPEN <> ($this:.IFoo) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:prop visibility:public modality:OPEN [fake_override,val] overridden: @@ -104,7 +104,7 @@ FILE fqName: fileName:/inheritingDeprecation.kt annotations: Deprecated(message = '', replaceWith = , level = ) overridden: - public open extProp: kotlin.String [val] + public open extProp: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:OPEN <> ($this:.IFoo, $receiver:kotlin.String) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:extProp visibility:public modality:OPEN [fake_override,val] overridden: @@ -113,26 +113,26 @@ FILE fqName: fileName:/inheritingDeprecation.kt $receiver: VALUE_PARAMETER name: type:kotlin.String 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 .IFoo + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IFoo $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 .IFoo + public open fun hashCode (): kotlin.Int declared in .IFoo $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 .IFoo + public open fun toString (): kotlin.String declared in .IFoo $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:ExplicitOverride modality:FINAL visibility:public superTypes:[.IFoo] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.ExplicitOverride CONSTRUCTOR visibility:public <> () returnType:.ExplicitOverride [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:ExplicitOverride modality:FINAL visibility:public superTypes:[.IFoo]' PROPERTY name:prop visibility:public modality:OPEN [val] overridden: - public open prop: kotlin.String [val] + public open prop: kotlin.String FUN name: visibility:public modality:OPEN <> ($this:.ExplicitOverride) returnType:kotlin.String correspondingProperty: PROPERTY name:prop visibility:public modality:OPEN [val] overridden: @@ -143,7 +143,7 @@ FILE fqName: fileName:/inheritingDeprecation.kt CONST String type=kotlin.String value="" PROPERTY name:extProp visibility:public modality:OPEN [val] overridden: - public open extProp: kotlin.String [val] + public open extProp: kotlin.String FUN name: visibility:public modality:OPEN <> ($this:.ExplicitOverride, $receiver:kotlin.String) returnType:kotlin.String correspondingProperty: PROPERTY name:extProp visibility:public modality:OPEN [val] overridden: @@ -155,14 +155,14 @@ FILE fqName: fileName:/inheritingDeprecation.kt CONST String type=kotlin.String value="" 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 .IFoo + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IFoo $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 .IFoo + public open fun hashCode (): kotlin.Int declared in .IFoo $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 .IFoo + public open fun toString (): kotlin.String declared in .IFoo $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/declarations/annotations/inheritingDeprecation.ir.txt b/compiler/testData/ir/irText/declarations/annotations/inheritingDeprecation.ir.txt index 20bd69ccffc..0020ca82486 100644 --- a/compiler/testData/ir/irText/declarations/annotations/inheritingDeprecation.ir.txt +++ b/compiler/testData/ir/irText/declarations/annotations/inheritingDeprecation.ir.txt @@ -22,7 +22,7 @@ FILE fqName: fileName:/inheritingDeprecation.kt CONST String type=kotlin.String value="" 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -38,14 +38,14 @@ FILE fqName: fileName:/inheritingDeprecation.kt CONSTRUCTOR visibility:public <> (foo:.IFoo) returnType:.Delegated [primary] VALUE_PARAMETER name:foo index:0 type:.IFoo BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Delegated modality:FINAL visibility:public superTypes:[.IFoo]' FIELD DELEGATE name:$$delegate_0 type:.IFoo visibility:private [final] EXPRESSION_BODY GET_VAR 'foo: .IFoo declared in .Delegated.' type=.IFoo origin=null PROPERTY DELEGATED_MEMBER name:prop visibility:public modality:OPEN [val] overridden: - public open prop: kotlin.String [val] + public open prop: kotlin.String FUN DELEGATED_MEMBER name: visibility:public modality:OPEN <> ($this:.Delegated) returnType:kotlin.String correspondingProperty: PROPERTY DELEGATED_MEMBER name:prop visibility:public modality:OPEN [val] overridden: @@ -58,7 +58,7 @@ FILE fqName: fileName:/inheritingDeprecation.kt receiver: GET_VAR ': .Delegated declared in .Delegated.' type=.Delegated origin=null PROPERTY DELEGATED_MEMBER name:extProp visibility:public modality:OPEN [val] overridden: - public open extProp: kotlin.String [val] + public open extProp: kotlin.String FUN DELEGATED_MEMBER name: visibility:public modality:OPEN <> ($this:.Delegated, $receiver:kotlin.String) returnType:kotlin.String correspondingProperty: PROPERTY DELEGATED_MEMBER name:extProp visibility:public modality:OPEN [val] overridden: @@ -73,28 +73,28 @@ FILE fqName: fileName:/inheritingDeprecation.kt $receiver: GET_VAR ': kotlin.String declared in .Delegated.' type=kotlin.String 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 [fake_override,operator] declared in .IFoo + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IFoo $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 .IFoo + public open fun hashCode (): kotlin.Int declared in .IFoo $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 .IFoo + public open fun toString (): kotlin.String declared in .IFoo $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:DefaultImpl modality:FINAL visibility:public superTypes:[.IFoo] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.DefaultImpl CONSTRUCTOR visibility:public <> () returnType:.DefaultImpl [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:DefaultImpl modality:FINAL visibility:public superTypes:[.IFoo]' PROPERTY FAKE_OVERRIDE name:prop visibility:public modality:OPEN [fake_override,val] annotations: Deprecated(message = '', replaceWith = , level = ) overridden: - public open prop: kotlin.String [val] + public open prop: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:OPEN <> ($this:.IFoo) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:prop visibility:public modality:OPEN [fake_override,val] overridden: @@ -104,7 +104,7 @@ FILE fqName: fileName:/inheritingDeprecation.kt annotations: Deprecated(message = '', replaceWith = , level = ) overridden: - public open extProp: kotlin.String [val] + public open extProp: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:OPEN <> ($this:.IFoo, $receiver:kotlin.String) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:extProp visibility:public modality:OPEN [fake_override,val] overridden: @@ -113,26 +113,26 @@ FILE fqName: fileName:/inheritingDeprecation.kt $receiver: VALUE_PARAMETER name: type:kotlin.String 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 .IFoo + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IFoo $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 .IFoo + public open fun hashCode (): kotlin.Int declared in .IFoo $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 .IFoo + public open fun toString (): kotlin.String declared in .IFoo $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:ExplicitOverride modality:FINAL visibility:public superTypes:[.IFoo] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.ExplicitOverride CONSTRUCTOR visibility:public <> () returnType:.ExplicitOverride [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:ExplicitOverride modality:FINAL visibility:public superTypes:[.IFoo]' PROPERTY name:prop visibility:public modality:OPEN [val] overridden: - public open prop: kotlin.String [val] + public open prop: kotlin.String FUN name: visibility:public modality:OPEN <> ($this:.ExplicitOverride) returnType:kotlin.String correspondingProperty: PROPERTY name:prop visibility:public modality:OPEN [val] overridden: @@ -143,7 +143,7 @@ FILE fqName: fileName:/inheritingDeprecation.kt CONST String type=kotlin.String value="" PROPERTY name:extProp visibility:public modality:OPEN [val] overridden: - public open extProp: kotlin.String [val] + public open extProp: kotlin.String FUN name: visibility:public modality:OPEN <> ($this:.ExplicitOverride, $receiver:kotlin.String) returnType:kotlin.String correspondingProperty: PROPERTY name:extProp visibility:public modality:OPEN [val] overridden: @@ -155,14 +155,14 @@ FILE fqName: fileName:/inheritingDeprecation.kt CONST String type=kotlin.String value="" 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 .IFoo + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IFoo $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 .IFoo + public open fun hashCode (): kotlin.Int declared in .IFoo $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 .IFoo + public open fun toString (): kotlin.String declared in .IFoo $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/declarations/annotations/javaAnnotationWithSingleArrayArgument.fir.ir.txt b/compiler/testData/ir/irText/declarations/annotations/javaAnnotationWithSingleArrayArgument.fir.ir.txt index 9060d4836fa..738466bbd67 100644 --- a/compiler/testData/ir/irText/declarations/annotations/javaAnnotationWithSingleArrayArgument.fir.ir.txt +++ b/compiler/testData/ir/irText/declarations/annotations/javaAnnotationWithSingleArrayArgument.fir.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/C.kt CONSTRUCTOR visibility:public <> (token:kotlin.String) returnType:.Anno [primary] VALUE_PARAMETER name:token index:0 type:kotlin.String BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:Anno modality:OPEN visibility:public superTypes:[kotlin.Annotation]' PROPERTY name:token visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:token type:kotlin.String visibility:private [final] @@ -19,27 +19,27 @@ FILE fqName: fileName:/C.kt receiver: GET_VAR ': .Anno declared in .Anno.' type=.Anno 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 [fake_override,operator] declared in kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any CLASS ENUM_CLASS name:E modality:FINAL visibility:public superTypes:[kotlin.Enum<.E>] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.E CONSTRUCTOR visibility:private <> () returnType:.E [primary] BLOCK_BODY - ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) [primary] declared in kotlin.Enum' + ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) declared in kotlin.Enum' : .E INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_CLASS name:E modality:FINAL visibility:public superTypes:[kotlin.Enum<.E>]' ENUM_ENTRY name:EA init: EXPRESSION_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor () [primary] declared in .E' + ENUM_CONSTRUCTOR_CALL 'private constructor () declared in .E' FUN ENUM_CLASS_SPECIAL_MEMBER name:values visibility:public modality:FINAL <> () returnType:kotlin.Array<.E> SYNTHETIC_BODY kind=ENUM_VALUES FUN ENUM_CLASS_SPECIAL_MEMBER name:valueOf visibility:public modality:FINAL <> (value:kotlin.String) returnType:.E @@ -55,12 +55,12 @@ FILE fqName: fileName:/C.kt $this: VALUE_PARAMETER name: type:kotlin.Enum FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum, other:.E) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: E of kotlin.Enum): kotlin.Int [operator] declared in kotlin.Enum + public final fun compareTo (other: E of kotlin.Enum): kotlin.Int declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:.E FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Enum + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:hashCode visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] @@ -75,7 +75,7 @@ FILE fqName: fileName:/C.kt annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: @@ -83,7 +83,7 @@ FILE fqName: fileName:/C.kt $this: VALUE_PARAMETER name: type:kotlin.Enum PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: @@ -102,7 +102,7 @@ FILE fqName: fileName:/C.kt CONSTRUCTOR visibility:public <> (value:kotlin.Array<.Anno>) returnType:.Annos [primary] VALUE_PARAMETER name:value index:0 type:kotlin.Array<.Anno> BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:Annos modality:OPEN visibility:public superTypes:[kotlin.Annotation]' PROPERTY name:value visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:value type:kotlin.Array<.Anno> visibility:private [final] @@ -117,23 +117,23 @@ FILE fqName: fileName:/C.kt receiver: GET_VAR ': .Annos declared in .Annos.' type=.Annos 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 [fake_override,operator] declared in kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any CLASS ANNOTATION_CLASS name:Strings modality:OPEN visibility:public superTypes:[kotlin.Annotation] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Strings CONSTRUCTOR visibility:public <> (value:kotlin.Array) returnType:.Strings [primary] VALUE_PARAMETER name:value index:0 type:kotlin.Array BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:Strings modality:OPEN visibility:public superTypes:[kotlin.Annotation]' PROPERTY name:value visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:value type:kotlin.Array visibility:private [final] @@ -148,23 +148,23 @@ FILE fqName: fileName:/C.kt receiver: GET_VAR ': .Strings declared in .Strings.' type=.Strings 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 [fake_override,operator] declared in kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any CLASS ANNOTATION_CLASS name:Ints modality:OPEN visibility:public superTypes:[kotlin.Annotation] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Ints CONSTRUCTOR visibility:public <> (value:kotlin.IntArray) returnType:.Ints [primary] VALUE_PARAMETER name:value index:0 type:kotlin.IntArray BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:Ints modality:OPEN visibility:public superTypes:[kotlin.Annotation]' PROPERTY name:value visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:value type:kotlin.IntArray visibility:private [final] @@ -179,23 +179,23 @@ FILE fqName: fileName:/C.kt receiver: GET_VAR ': .Ints declared in .Ints.' type=.Ints 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 [fake_override,operator] declared in kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any CLASS ANNOTATION_CLASS name:Enums modality:OPEN visibility:public superTypes:[kotlin.Annotation] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Enums CONSTRUCTOR visibility:public <> (value:kotlin.Array<.E>) returnType:.Enums [primary] VALUE_PARAMETER name:value index:0 type:kotlin.Array<.E> BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:Enums modality:OPEN visibility:public superTypes:[kotlin.Annotation]' PROPERTY name:value visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:value type:kotlin.Array<.E> visibility:private [final] @@ -210,23 +210,23 @@ FILE fqName: fileName:/C.kt receiver: GET_VAR ': .Enums declared in .Enums.' type=.Enums 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 [fake_override,operator] declared in kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any CLASS ANNOTATION_CLASS name:Classes modality:OPEN visibility:public superTypes:[kotlin.Annotation] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Classes CONSTRUCTOR visibility:public <> (value:kotlin.Array>) returnType:.Classes [primary] VALUE_PARAMETER name:value index:0 type:kotlin.Array> BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:Classes modality:OPEN visibility:public superTypes:[kotlin.Annotation]' PROPERTY name:value visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:value type:kotlin.Array> visibility:private [final] @@ -241,22 +241,22 @@ FILE fqName: fileName:/C.kt receiver: GET_VAR ': .Classes declared in .Classes.' type=.Classes 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 [fake_override,operator] declared in kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:C modality:FINAL visibility:public superTypes:[.A] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.C CONSTRUCTOR visibility:public <> () returnType:.C [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .A' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .A' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C modality:FINAL visibility:public superTypes:[.A]' FUN FAKE_OVERRIDE name:test visibility:public modality:OPEN <> ($this:.A) returnType:kotlin.Unit [fake_override] annotations: @@ -270,14 +270,14 @@ FILE fqName: fileName:/C.kt $this: VALUE_PARAMETER name: type:.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 [fake_override,operator] declared in .A + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .A $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 .A + public open fun hashCode (): kotlin.Int declared in .A $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 .A + public open fun toString (): kotlin.String declared in .A $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/declarations/annotations/javaAnnotationWithSingleArrayArgument.ir.txt b/compiler/testData/ir/irText/declarations/annotations/javaAnnotationWithSingleArrayArgument.ir.txt index ff2086592e5..0bb74dc04c1 100644 --- a/compiler/testData/ir/irText/declarations/annotations/javaAnnotationWithSingleArrayArgument.ir.txt +++ b/compiler/testData/ir/irText/declarations/annotations/javaAnnotationWithSingleArrayArgument.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/C.kt CONSTRUCTOR visibility:public <> (token:kotlin.String) returnType:.Anno [primary] VALUE_PARAMETER name:token index:0 type:kotlin.String BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:Anno modality:OPEN visibility:public superTypes:[kotlin.Annotation]' PROPERTY name:token visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:token type:kotlin.String visibility:private [final] @@ -19,32 +19,32 @@ FILE fqName: fileName:/C.kt receiver: GET_VAR ': .Anno declared in .Anno.' type=.Anno 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 [fake_override,operator] declared in kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any CLASS ENUM_CLASS name:E modality:FINAL visibility:public superTypes:[kotlin.Enum<.E>] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.E CONSTRUCTOR visibility:private <> () returnType:.E [primary] BLOCK_BODY - ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) [primary] declared in kotlin.Enum' + ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) declared in kotlin.Enum' : .E INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_CLASS name:E modality:FINAL visibility:public superTypes:[kotlin.Enum<.E>]' ENUM_ENTRY name:EA init: EXPRESSION_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor () [primary] declared in .E' + ENUM_CONSTRUCTOR_CALL 'private constructor () declared in .E' PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.E>) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: @@ -52,7 +52,7 @@ FILE fqName: fileName:/C.kt $this: VALUE_PARAMETER name: type:kotlin.Enum<.E> PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.E>) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: @@ -64,12 +64,12 @@ FILE fqName: fileName:/C.kt $this: VALUE_PARAMETER name: type:kotlin.Enum<.E> FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum<.E>, other:.E) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: E of kotlin.Enum): kotlin.Int [operator] declared in kotlin.Enum + public final fun compareTo (other: E of kotlin.Enum): kotlin.Int declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum<.E> VALUE_PARAMETER name:other index:0 type:.E FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum<.E>, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Enum + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum<.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<.E>) returnType:kotlin.Unit [fake_override] @@ -102,7 +102,7 @@ FILE fqName: fileName:/C.kt CONSTRUCTOR visibility:public <> (value:kotlin.Array<.Anno>) returnType:.Annos [primary] VALUE_PARAMETER name:value index:0 type:kotlin.Array<.Anno> BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:Annos modality:OPEN visibility:public superTypes:[kotlin.Annotation]' PROPERTY name:value visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:value type:kotlin.Array<.Anno> visibility:private [final] @@ -117,23 +117,23 @@ FILE fqName: fileName:/C.kt receiver: GET_VAR ': .Annos declared in .Annos.' type=.Annos 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 [fake_override,operator] declared in kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any CLASS ANNOTATION_CLASS name:Strings modality:OPEN visibility:public superTypes:[kotlin.Annotation] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Strings CONSTRUCTOR visibility:public <> (value:kotlin.Array) returnType:.Strings [primary] VALUE_PARAMETER name:value index:0 type:kotlin.Array BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:Strings modality:OPEN visibility:public superTypes:[kotlin.Annotation]' PROPERTY name:value visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:value type:kotlin.Array visibility:private [final] @@ -148,23 +148,23 @@ FILE fqName: fileName:/C.kt receiver: GET_VAR ': .Strings declared in .Strings.' type=.Strings 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 [fake_override,operator] declared in kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any CLASS ANNOTATION_CLASS name:Ints modality:OPEN visibility:public superTypes:[kotlin.Annotation] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Ints CONSTRUCTOR visibility:public <> (value:kotlin.IntArray) returnType:.Ints [primary] VALUE_PARAMETER name:value index:0 type:kotlin.IntArray BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:Ints modality:OPEN visibility:public superTypes:[kotlin.Annotation]' PROPERTY name:value visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:value type:kotlin.IntArray visibility:private [final] @@ -179,23 +179,23 @@ FILE fqName: fileName:/C.kt receiver: GET_VAR ': .Ints declared in .Ints.' type=.Ints 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 [fake_override,operator] declared in kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any CLASS ANNOTATION_CLASS name:Enums modality:OPEN visibility:public superTypes:[kotlin.Annotation] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Enums CONSTRUCTOR visibility:public <> (value:kotlin.Array<.E>) returnType:.Enums [primary] VALUE_PARAMETER name:value index:0 type:kotlin.Array<.E> BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:Enums modality:OPEN visibility:public superTypes:[kotlin.Annotation]' PROPERTY name:value visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:value type:kotlin.Array<.E> visibility:private [final] @@ -210,23 +210,23 @@ FILE fqName: fileName:/C.kt receiver: GET_VAR ': .Enums declared in .Enums.' type=.Enums 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 [fake_override,operator] declared in kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any CLASS ANNOTATION_CLASS name:Classes modality:OPEN visibility:public superTypes:[kotlin.Annotation] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Classes CONSTRUCTOR visibility:public <> (value:kotlin.Array>) returnType:.Classes [primary] VALUE_PARAMETER name:value index:0 type:kotlin.Array> BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:Classes modality:OPEN visibility:public superTypes:[kotlin.Annotation]' PROPERTY name:value visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:value type:kotlin.Array> visibility:private [final] @@ -241,35 +241,35 @@ FILE fqName: fileName:/C.kt receiver: GET_VAR ': .Classes declared in .Classes.' type=.Classes 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 [fake_override,operator] declared in kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:C modality:FINAL visibility:public superTypes:[.A] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.C CONSTRUCTOR visibility:public <> () returnType:.C [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .A' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .A' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C modality:FINAL visibility:public superTypes:[.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 [fake_override,operator] declared in .A + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .A $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 .A + public open fun hashCode (): kotlin.Int declared in .A $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 .A + public open fun toString (): kotlin.String declared in .A $this: VALUE_PARAMETER name: type:kotlin.Any FUN FAKE_OVERRIDE name:test visibility:public modality:OPEN <> ($this:.A) returnType:kotlin.Unit [fake_override] annotations: diff --git a/compiler/testData/ir/irText/declarations/annotations/localDelegatedPropertiesWithAnnotations.fir.ir.txt b/compiler/testData/ir/irText/declarations/annotations/localDelegatedPropertiesWithAnnotations.fir.ir.txt index 12d49d97356..18cb491a168 100644 --- a/compiler/testData/ir/irText/declarations/annotations/localDelegatedPropertiesWithAnnotations.fir.ir.txt +++ b/compiler/testData/ir/irText/declarations/annotations/localDelegatedPropertiesWithAnnotations.fir.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/localDelegatedPropertiesWithAnnotations.kt CONSTRUCTOR visibility:public <> (x:kotlin.String) returnType:.A [primary] VALUE_PARAMETER name:x index:0 type:kotlin.String BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:A modality:OPEN visibility:public superTypes:[kotlin.Annotation]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.String visibility:private [final] @@ -19,16 +19,16 @@ FILE fqName: fileName:/localDelegatedPropertiesWithAnnotations.kt receiver: GET_VAR ': .A declared in .A.' type=.A 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 [fake_override,operator] declared in kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any FUN name:foo visibility:public modality:FINAL <> (m:kotlin.collections.Map) returnType:kotlin.Unit VALUE_PARAMETER name:m index:0 type:kotlin.collections.Map @@ -45,8 +45,8 @@ FILE fqName: fileName:/localDelegatedPropertiesWithAnnotations.kt FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:local modality:FINAL <> () returnType:kotlin.Int BLOCK_BODY RETURN type=kotlin.Nothing from='local final fun (): kotlin.Int declared in .foo' - CALL 'public final fun getValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): T of kotlin.LazyKt.getValue [inline,operator] declared in kotlin.LazyKt' type=kotlin.Int origin=null + CALL 'public final fun getValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): T of kotlin.LazyKt.getValue declared in kotlin.LazyKt' type=kotlin.Int origin=null : kotlin.Int - $receiver: GET_VAR 'val test$delegate: kotlin.Lazy [val] declared in .foo' type=kotlin.Lazy origin=null + $receiver: GET_VAR 'val test$delegate: kotlin.Lazy declared in .foo' type=kotlin.Lazy origin=null thisRef: CONST Null type=kotlin.Nothing? value=null - property: LOCAL_DELEGATED_PROPERTY_REFERENCE 'val test: kotlin.Int by (...)' delegate='val test$delegate: kotlin.Lazy [val] declared in .foo' getter='local final fun (): kotlin.Int declared in .foo' setter=null type=kotlin.reflect.KProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE + property: LOCAL_DELEGATED_PROPERTY_REFERENCE 'val test: kotlin.Int by (...)' delegate='val test$delegate: kotlin.Lazy declared in .foo' getter='local final fun (): kotlin.Int declared in .foo' setter=null type=kotlin.reflect.KProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE diff --git a/compiler/testData/ir/irText/declarations/annotations/localDelegatedPropertiesWithAnnotations.ir.txt b/compiler/testData/ir/irText/declarations/annotations/localDelegatedPropertiesWithAnnotations.ir.txt index ea07894177a..1654bed5305 100644 --- a/compiler/testData/ir/irText/declarations/annotations/localDelegatedPropertiesWithAnnotations.ir.txt +++ b/compiler/testData/ir/irText/declarations/annotations/localDelegatedPropertiesWithAnnotations.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/localDelegatedPropertiesWithAnnotations.kt CONSTRUCTOR visibility:public <> (x:kotlin.String) returnType:.A [primary] VALUE_PARAMETER name:x index:0 type:kotlin.String BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:A modality:OPEN visibility:public superTypes:[kotlin.Annotation]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.String visibility:private [final] @@ -19,16 +19,16 @@ FILE fqName: fileName:/localDelegatedPropertiesWithAnnotations.kt receiver: GET_VAR ': .A declared in .A.' type=.A 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 [fake_override,operator] declared in kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any FUN name:foo visibility:public modality:FINAL <> (m:kotlin.collections.Map) returnType:kotlin.Unit VALUE_PARAMETER name:m index:0 type:kotlin.collections.Map @@ -47,8 +47,8 @@ FILE fqName: fileName:/localDelegatedPropertiesWithAnnotations.kt FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:local modality:FINAL <> () returnType:kotlin.Int BLOCK_BODY RETURN type=kotlin.Nothing from='local final fun (): kotlin.Int declared in .foo' - CALL 'public final fun getValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): T of kotlin.LazyKt.getValue [inline,operator] declared in kotlin.LazyKt' type=kotlin.Int origin=null + CALL 'public final fun getValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): T of kotlin.LazyKt.getValue declared in kotlin.LazyKt' type=kotlin.Int origin=null : kotlin.Int - $receiver: GET_VAR 'val test$delegate: kotlin.Lazy [val] declared in .foo' type=kotlin.Lazy origin=null + $receiver: GET_VAR 'val test$delegate: kotlin.Lazy declared in .foo' type=kotlin.Lazy origin=null thisRef: CONST Null type=kotlin.Nothing? value=null - property: LOCAL_DELEGATED_PROPERTY_REFERENCE 'val test: kotlin.Int by (...)' delegate='val test$delegate: kotlin.Lazy [val] declared in .foo' getter='local final fun (): kotlin.Int declared in .foo' setter=null type=kotlin.reflect.KProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE + property: LOCAL_DELEGATED_PROPERTY_REFERENCE 'val test: kotlin.Int by (...)' delegate='val test$delegate: kotlin.Lazy declared in .foo' getter='local final fun (): kotlin.Int declared in .foo' setter=null type=kotlin.reflect.KProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE diff --git a/compiler/testData/ir/irText/declarations/annotations/multipleAnnotationsInSquareBrackets.ir.txt b/compiler/testData/ir/irText/declarations/annotations/multipleAnnotationsInSquareBrackets.ir.txt index 3e63c81ecd4..085494daef7 100644 --- a/compiler/testData/ir/irText/declarations/annotations/multipleAnnotationsInSquareBrackets.ir.txt +++ b/compiler/testData/ir/irText/declarations/annotations/multipleAnnotationsInSquareBrackets.ir.txt @@ -3,58 +3,58 @@ FILE fqName: fileName:/multipleAnnotationsInSquareBrackets.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.A1 CONSTRUCTOR visibility:public <> () returnType:.A1 [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:A1 modality:OPEN visibility:public superTypes:[kotlin.Annotation]' 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 kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any CLASS ANNOTATION_CLASS name:A2 modality:OPEN visibility:public superTypes:[kotlin.Annotation] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.A2 CONSTRUCTOR visibility:public <> () returnType:.A2 [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:A2 modality:OPEN visibility:public superTypes:[kotlin.Annotation]' 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 kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any CLASS ANNOTATION_CLASS name:A3 modality:OPEN visibility:public superTypes:[kotlin.Annotation] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.A3 CONSTRUCTOR visibility:public <> () returnType:.A3 [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:A3 modality:OPEN visibility:public superTypes:[kotlin.Annotation]' 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 kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any FUN name:test visibility:public modality:FINAL <> () returnType:kotlin.Unit annotations: diff --git a/compiler/testData/ir/irText/declarations/annotations/primaryConstructorParameterWithAnnotations.ir.txt b/compiler/testData/ir/irText/declarations/annotations/primaryConstructorParameterWithAnnotations.ir.txt index 1189e2a9f5e..5d2043b7354 100644 --- a/compiler/testData/ir/irText/declarations/annotations/primaryConstructorParameterWithAnnotations.ir.txt +++ b/compiler/testData/ir/irText/declarations/annotations/primaryConstructorParameterWithAnnotations.ir.txt @@ -3,20 +3,20 @@ FILE fqName: fileName:/primaryConstructorParameterWithAnnotations.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Ann CONSTRUCTOR visibility:public <> () returnType:.Ann [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:Ann modality:OPEN visibility:public superTypes:[kotlin.Annotation]' 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 kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:Test modality:FINAL visibility:public superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Test @@ -25,7 +25,7 @@ FILE fqName: fileName:/primaryConstructorParameterWithAnnotations.kt annotations: Ann BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private [final] @@ -40,7 +40,7 @@ FILE fqName: fileName:/primaryConstructorParameterWithAnnotations.kt receiver: GET_VAR ': .Test declared in .Test.' type=.Test 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/declarations/annotations/propertiesWithAnnotations.ir.txt b/compiler/testData/ir/irText/declarations/annotations/propertiesWithAnnotations.ir.txt index 845efe7bbf8..c314ed20bc2 100644 --- a/compiler/testData/ir/irText/declarations/annotations/propertiesWithAnnotations.ir.txt +++ b/compiler/testData/ir/irText/declarations/annotations/propertiesWithAnnotations.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/propertiesWithAnnotations.kt CONSTRUCTOR visibility:public <> (x:kotlin.String) returnType:.TestAnn [primary] VALUE_PARAMETER name:x index:0 type:kotlin.String BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:TestAnn modality:OPEN visibility:public superTypes:[kotlin.Annotation]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.String visibility:private [final] @@ -19,16 +19,16 @@ FILE fqName: fileName:/propertiesWithAnnotations.kt receiver: GET_VAR ': .TestAnn declared in .TestAnn.' type=.TestAnn 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 [fake_override,operator] declared in kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any PROPERTY name:testVal visibility:public modality:FINAL [val] annotations: diff --git a/compiler/testData/ir/irText/declarations/annotations/propertyAccessorsFromClassHeaderWithAnnotations.ir.txt b/compiler/testData/ir/irText/declarations/annotations/propertyAccessorsFromClassHeaderWithAnnotations.ir.txt index 9d3ad043ff5..3d6e7d30be9 100644 --- a/compiler/testData/ir/irText/declarations/annotations/propertyAccessorsFromClassHeaderWithAnnotations.ir.txt +++ b/compiler/testData/ir/irText/declarations/annotations/propertyAccessorsFromClassHeaderWithAnnotations.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/propertyAccessorsFromClassHeaderWithAnnotations.kt CONSTRUCTOR visibility:public <> (x:kotlin.String) returnType:.A [primary] VALUE_PARAMETER name:x index:0 type:kotlin.String BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:A modality:OPEN visibility:public superTypes:[kotlin.Annotation]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.String visibility:private [final] @@ -19,16 +19,16 @@ FILE fqName: fileName:/propertyAccessorsFromClassHeaderWithAnnotations.kt receiver: GET_VAR ': .A declared in .A.' type=.A 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 [fake_override,operator] declared in kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:C modality:FINAL visibility:public superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.C @@ -36,7 +36,7 @@ FILE fqName: fileName:/propertyAccessorsFromClassHeaderWithAnnotations.kt VALUE_PARAMETER name:x index:0 type:kotlin.Int VALUE_PARAMETER name:y index:1 type:kotlin.Int BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private [final] @@ -76,7 +76,7 @@ FILE fqName: fileName:/propertyAccessorsFromClassHeaderWithAnnotations.kt value: GET_VAR ': kotlin.Int declared in .C.' type=kotlin.Int 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/declarations/annotations/propertyAccessorsWithAnnotations.ir.txt b/compiler/testData/ir/irText/declarations/annotations/propertyAccessorsWithAnnotations.ir.txt index 362b86d47be..6853d4fa4cc 100644 --- a/compiler/testData/ir/irText/declarations/annotations/propertyAccessorsWithAnnotations.ir.txt +++ b/compiler/testData/ir/irText/declarations/annotations/propertyAccessorsWithAnnotations.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/propertyAccessorsWithAnnotations.kt CONSTRUCTOR visibility:public <> (x:kotlin.String) returnType:.TestAnn [primary] VALUE_PARAMETER name:x index:0 type:kotlin.String BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:TestAnn modality:OPEN visibility:public superTypes:[kotlin.Annotation]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.String visibility:private [final] @@ -19,16 +19,16 @@ FILE fqName: fileName:/propertyAccessorsWithAnnotations.kt receiver: GET_VAR ': .TestAnn declared in .TestAnn.' type=.TestAnn 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 [fake_override,operator] declared in kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any PROPERTY name:test1 visibility:public modality:FINAL [val] FUN name: visibility:public modality:FINAL <> () returnType:kotlin.String diff --git a/compiler/testData/ir/irText/declarations/annotations/propertySetterParameterWithAnnotations.ir.txt b/compiler/testData/ir/irText/declarations/annotations/propertySetterParameterWithAnnotations.ir.txt index 07150d568d8..53a8bad1b42 100644 --- a/compiler/testData/ir/irText/declarations/annotations/propertySetterParameterWithAnnotations.ir.txt +++ b/compiler/testData/ir/irText/declarations/annotations/propertySetterParameterWithAnnotations.ir.txt @@ -3,20 +3,20 @@ FILE fqName: fileName:/propertySetterParameterWithAnnotations.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.AnnParam CONSTRUCTOR visibility:public <> () returnType:.AnnParam [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:AnnParam modality:OPEN visibility:public superTypes:[kotlin.Annotation]' 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 kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any PROPERTY name:p visibility:public modality:FINAL [var] FIELD PROPERTY_BACKING_FIELD name:p type:kotlin.Int visibility:private [static] @@ -40,7 +40,7 @@ FILE fqName: fileName:/propertySetterParameterWithAnnotations.kt CONSTRUCTOR visibility:public <> (p:kotlin.Int) returnType:.C [primary] VALUE_PARAMETER name:p index:0 type:kotlin.Int BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:p visibility:public modality:FINAL [var] FIELD PROPERTY_BACKING_FIELD name:p type:kotlin.Int visibility:private @@ -65,7 +65,7 @@ FILE fqName: fileName:/propertySetterParameterWithAnnotations.kt value: GET_VAR ': kotlin.Int declared in .C.' type=kotlin.Int 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/declarations/annotations/receiverParameterWithAnnotations.ir.txt b/compiler/testData/ir/irText/declarations/annotations/receiverParameterWithAnnotations.ir.txt index fcce2660955..a25ad3073d0 100644 --- a/compiler/testData/ir/irText/declarations/annotations/receiverParameterWithAnnotations.ir.txt +++ b/compiler/testData/ir/irText/declarations/annotations/receiverParameterWithAnnotations.ir.txt @@ -3,26 +3,26 @@ FILE fqName: fileName:/receiverParameterWithAnnotations.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Ann CONSTRUCTOR visibility:public <> () returnType:.Ann [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:Ann modality:OPEN visibility:public superTypes:[kotlin.Annotation]' 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 kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:A modality:FINAL visibility:public superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.A CONSTRUCTOR visibility:public <> () returnType:.A [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:A modality:FINAL visibility:public superTypes:[kotlin.Any]' FUN name:f visibility:public modality:FINAL <> ($this:.A, $receiver:kotlin.String) returnType:kotlin.String $this: VALUE_PARAMETER name: type:.A @@ -44,7 +44,7 @@ FILE fqName: fileName:/receiverParameterWithAnnotations.kt CONST String type=kotlin.String value="" 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/declarations/annotations/spreadOperatorInAnnotationArguments.fir.ir.txt b/compiler/testData/ir/irText/declarations/annotations/spreadOperatorInAnnotationArguments.fir.ir.txt index c7819205a98..f9b233321b6 100644 --- a/compiler/testData/ir/irText/declarations/annotations/spreadOperatorInAnnotationArguments.fir.ir.txt +++ b/compiler/testData/ir/irText/declarations/annotations/spreadOperatorInAnnotationArguments.fir.ir.txt @@ -4,12 +4,12 @@ FILE fqName: fileName:/spreadOperatorInAnnotationArguments.kt CONSTRUCTOR visibility:public <> (xs:kotlin.Array) returnType:.A [primary] VALUE_PARAMETER name:xs index:0 type:kotlin.Array varargElementType:kotlin.String [vararg] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:A modality:OPEN visibility:public superTypes:[kotlin.Annotation]' PROPERTY name:xs visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:xs type:kotlin.Array visibility:private [final] EXPRESSION_BODY - GET_VAR 'xs: kotlin.Array [vararg] declared in .A.' type=kotlin.Array origin=INITIALIZE_PROPERTY_FROM_PARAMETER + GET_VAR 'xs: kotlin.Array declared in .A.' type=kotlin.Array origin=INITIALIZE_PROPERTY_FROM_PARAMETER FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:.A) returnType:kotlin.Array correspondingProperty: PROPERTY name:xs visibility:public modality:FINAL [val] $this: VALUE_PARAMETER name: type:.A @@ -19,16 +19,16 @@ FILE fqName: fileName:/spreadOperatorInAnnotationArguments.kt receiver: GET_VAR ': .A declared in .A.' type=.A 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 [fake_override,operator] declared in kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any FUN name:test visibility:public modality:FINAL <> () returnType:kotlin.Unit annotations: diff --git a/compiler/testData/ir/irText/declarations/annotations/spreadOperatorInAnnotationArguments.ir.txt b/compiler/testData/ir/irText/declarations/annotations/spreadOperatorInAnnotationArguments.ir.txt index b37b8de7f98..759f19586e4 100644 --- a/compiler/testData/ir/irText/declarations/annotations/spreadOperatorInAnnotationArguments.ir.txt +++ b/compiler/testData/ir/irText/declarations/annotations/spreadOperatorInAnnotationArguments.ir.txt @@ -4,12 +4,12 @@ FILE fqName: fileName:/spreadOperatorInAnnotationArguments.kt CONSTRUCTOR visibility:public <> (xs:kotlin.Array) returnType:.A [primary] VALUE_PARAMETER name:xs index:0 type:kotlin.Array varargElementType:kotlin.String [vararg] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:A modality:OPEN visibility:public superTypes:[kotlin.Annotation]' PROPERTY name:xs visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:xs type:kotlin.Array visibility:private [final] EXPRESSION_BODY - GET_VAR 'xs: kotlin.Array [vararg] declared in .A.' type=kotlin.Array origin=INITIALIZE_PROPERTY_FROM_PARAMETER + GET_VAR 'xs: kotlin.Array declared in .A.' type=kotlin.Array origin=INITIALIZE_PROPERTY_FROM_PARAMETER FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:.A) returnType:kotlin.Array correspondingProperty: PROPERTY name:xs visibility:public modality:FINAL [val] $this: VALUE_PARAMETER name: type:.A @@ -19,16 +19,16 @@ FILE fqName: fileName:/spreadOperatorInAnnotationArguments.kt receiver: GET_VAR ': .A declared in .A.' type=.A 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 [fake_override,operator] declared in kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any FUN name:test visibility:public modality:FINAL <> () returnType:kotlin.Unit annotations: diff --git a/compiler/testData/ir/irText/declarations/annotations/typeAliasesWithAnnotations.fir.ir.txt b/compiler/testData/ir/irText/declarations/annotations/typeAliasesWithAnnotations.fir.ir.txt index a65b2317da2..912b1941705 100644 --- a/compiler/testData/ir/irText/declarations/annotations/typeAliasesWithAnnotations.fir.ir.txt +++ b/compiler/testData/ir/irText/declarations/annotations/typeAliasesWithAnnotations.fir.ir.txt @@ -9,7 +9,7 @@ FILE fqName: fileName:/typeAliasesWithAnnotations.kt CONSTRUCTOR visibility:public <> (x:kotlin.String) returnType:.TestAnn [primary] VALUE_PARAMETER name:x index:0 type:kotlin.String BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:TestAnn modality:OPEN visibility:public superTypes:[kotlin.Annotation]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.String visibility:private [final] @@ -24,14 +24,14 @@ FILE fqName: fileName:/typeAliasesWithAnnotations.kt receiver: GET_VAR ': .TestAnn declared in .TestAnn.' type=.TestAnn 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 [fake_override,operator] declared in kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/declarations/annotations/typeAliasesWithAnnotations.ir.txt b/compiler/testData/ir/irText/declarations/annotations/typeAliasesWithAnnotations.ir.txt index 230c38d7c4d..dac08ededa0 100644 --- a/compiler/testData/ir/irText/declarations/annotations/typeAliasesWithAnnotations.ir.txt +++ b/compiler/testData/ir/irText/declarations/annotations/typeAliasesWithAnnotations.ir.txt @@ -6,7 +6,7 @@ FILE fqName: fileName:/typeAliasesWithAnnotations.kt CONSTRUCTOR visibility:public <> (x:kotlin.String) returnType:.TestAnn [primary] VALUE_PARAMETER name:x index:0 type:kotlin.String BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:TestAnn modality:OPEN visibility:public superTypes:[kotlin.Annotation]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.String visibility:private [final] @@ -21,16 +21,16 @@ FILE fqName: fileName:/typeAliasesWithAnnotations.kt receiver: GET_VAR ': .TestAnn declared in .TestAnn.' type=.TestAnn 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 [fake_override,operator] declared in kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any TYPEALIAS name:TestTypeAlias visibility:public expandedType:kotlin.String annotations: diff --git a/compiler/testData/ir/irText/declarations/annotations/typeParametersWithAnnotations.ir.txt b/compiler/testData/ir/irText/declarations/annotations/typeParametersWithAnnotations.ir.txt index 246f85be704..10e65dbed91 100644 --- a/compiler/testData/ir/irText/declarations/annotations/typeParametersWithAnnotations.ir.txt +++ b/compiler/testData/ir/irText/declarations/annotations/typeParametersWithAnnotations.ir.txt @@ -5,20 +5,20 @@ FILE fqName: fileName:/typeParametersWithAnnotations.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Anno CONSTRUCTOR visibility:public <> () returnType:.Anno [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:Anno modality:OPEN visibility:public superTypes:[kotlin.Annotation]' 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 kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any FUN name:foo visibility:public modality:FINAL () returnType:kotlin.Unit TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false diff --git a/compiler/testData/ir/irText/declarations/annotations/valueParametersWithAnnotations.ir.txt b/compiler/testData/ir/irText/declarations/annotations/valueParametersWithAnnotations.ir.txt index ce9e826580e..d738fe21f5e 100644 --- a/compiler/testData/ir/irText/declarations/annotations/valueParametersWithAnnotations.ir.txt +++ b/compiler/testData/ir/irText/declarations/annotations/valueParametersWithAnnotations.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/valueParametersWithAnnotations.kt CONSTRUCTOR visibility:public <> (x:kotlin.String) returnType:.TestAnn [primary] VALUE_PARAMETER name:x index:0 type:kotlin.String BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:TestAnn modality:OPEN visibility:public superTypes:[kotlin.Annotation]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.String visibility:private [final] @@ -19,16 +19,16 @@ FILE fqName: fileName:/valueParametersWithAnnotations.kt receiver: GET_VAR ': .TestAnn declared in .TestAnn.' type=.TestAnn 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 [fake_override,operator] declared in kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any FUN name:testFun visibility:public modality:FINAL <> (x:kotlin.Int) returnType:kotlin.Unit VALUE_PARAMETER name:x index:0 type:kotlin.Int @@ -42,7 +42,7 @@ FILE fqName: fileName:/valueParametersWithAnnotations.kt annotations: TestAnn(x = 'TestClassConstructor1.x') BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:TestClassConstructor1 modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:xx visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:xx type:kotlin.Int visibility:private [final] @@ -57,7 +57,7 @@ FILE fqName: fileName:/valueParametersWithAnnotations.kt receiver: GET_VAR ': .TestClassConstructor1 declared in .TestClassConstructor1.' type=.TestClassConstructor1 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/declarations/annotations/varargsInAnnotationArguments.ir.txt b/compiler/testData/ir/irText/declarations/annotations/varargsInAnnotationArguments.ir.txt index 2f8f0612ae8..56bc72c08f7 100644 --- a/compiler/testData/ir/irText/declarations/annotations/varargsInAnnotationArguments.ir.txt +++ b/compiler/testData/ir/irText/declarations/annotations/varargsInAnnotationArguments.ir.txt @@ -4,12 +4,12 @@ FILE fqName: fileName:/varargsInAnnotationArguments.kt CONSTRUCTOR visibility:public <> (xs:kotlin.IntArray) returnType:.A1 [primary] VALUE_PARAMETER name:xs index:0 type:kotlin.IntArray varargElementType:kotlin.Int [vararg] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:A1 modality:OPEN visibility:public superTypes:[kotlin.Annotation]' PROPERTY name:xs visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:xs type:kotlin.IntArray visibility:private [final] EXPRESSION_BODY - GET_VAR 'xs: kotlin.IntArray [vararg] declared in .A1.' type=kotlin.IntArray origin=INITIALIZE_PROPERTY_FROM_PARAMETER + GET_VAR 'xs: kotlin.IntArray declared in .A1.' type=kotlin.IntArray origin=INITIALIZE_PROPERTY_FROM_PARAMETER FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:.A1) returnType:kotlin.IntArray correspondingProperty: PROPERTY name:xs visibility:public modality:FINAL [val] $this: VALUE_PARAMETER name: type:.A1 @@ -19,28 +19,28 @@ FILE fqName: fileName:/varargsInAnnotationArguments.kt receiver: GET_VAR ': .A1 declared in .A1.' type=.A1 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 [fake_override,operator] declared in kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any CLASS ANNOTATION_CLASS name:A2 modality:OPEN visibility:public superTypes:[kotlin.Annotation] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.A2 CONSTRUCTOR visibility:public <> (xs:kotlin.Array) returnType:.A2 [primary] VALUE_PARAMETER name:xs index:0 type:kotlin.Array varargElementType:kotlin.String [vararg] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:A2 modality:OPEN visibility:public superTypes:[kotlin.Annotation]' PROPERTY name:xs visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:xs type:kotlin.Array visibility:private [final] EXPRESSION_BODY - GET_VAR 'xs: kotlin.Array [vararg] declared in .A2.' type=kotlin.Array origin=INITIALIZE_PROPERTY_FROM_PARAMETER + GET_VAR 'xs: kotlin.Array declared in .A2.' type=kotlin.Array origin=INITIALIZE_PROPERTY_FROM_PARAMETER FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:.A2) returnType:kotlin.Array correspondingProperty: PROPERTY name:xs visibility:public modality:FINAL [val] $this: VALUE_PARAMETER name: type:.A2 @@ -50,28 +50,28 @@ FILE fqName: fileName:/varargsInAnnotationArguments.kt receiver: GET_VAR ': .A2 declared in .A2.' type=.A2 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 [fake_override,operator] declared in kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any CLASS ANNOTATION_CLASS name:AA modality:OPEN visibility:public superTypes:[kotlin.Annotation] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.AA CONSTRUCTOR visibility:public <> (xs:kotlin.Array.A1>) returnType:.AA [primary] VALUE_PARAMETER name:xs index:0 type:kotlin.Array.A1> varargElementType:.A1 [vararg] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:AA modality:OPEN visibility:public superTypes:[kotlin.Annotation]' PROPERTY name:xs visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:xs type:kotlin.Array.A1> visibility:private [final] EXPRESSION_BODY - GET_VAR 'xs: kotlin.Array.A1> [vararg] declared in .AA.' type=kotlin.Array.A1> origin=INITIALIZE_PROPERTY_FROM_PARAMETER + GET_VAR 'xs: kotlin.Array.A1> declared in .AA.' type=kotlin.Array.A1> origin=INITIALIZE_PROPERTY_FROM_PARAMETER FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:.AA) returnType:kotlin.Array.A1> correspondingProperty: PROPERTY name:xs visibility:public modality:FINAL [val] $this: VALUE_PARAMETER name: type:.AA @@ -81,16 +81,16 @@ FILE fqName: fileName:/varargsInAnnotationArguments.kt receiver: GET_VAR ': .AA declared in .AA.' type=.AA 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 [fake_override,operator] declared in kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any FUN name:test1 visibility:public modality:FINAL <> () returnType:kotlin.Unit annotations: diff --git a/compiler/testData/ir/irText/declarations/annotations/variablesWithAnnotations.ir.txt b/compiler/testData/ir/irText/declarations/annotations/variablesWithAnnotations.ir.txt index bf419a25be7..b7406b2adff 100644 --- a/compiler/testData/ir/irText/declarations/annotations/variablesWithAnnotations.ir.txt +++ b/compiler/testData/ir/irText/declarations/annotations/variablesWithAnnotations.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/variablesWithAnnotations.kt CONSTRUCTOR visibility:public <> (x:kotlin.String) returnType:.TestAnn [primary] VALUE_PARAMETER name:x index:0 type:kotlin.String BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:TestAnn modality:OPEN visibility:public superTypes:[kotlin.Annotation]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.String visibility:private [final] @@ -19,16 +19,16 @@ FILE fqName: fileName:/variablesWithAnnotations.kt receiver: GET_VAR ': .TestAnn declared in .TestAnn.' type=.TestAnn 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 [fake_override,operator] declared in kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any FUN name:foo visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY diff --git a/compiler/testData/ir/irText/declarations/catchParameterInTopLevelProperty.ir.txt b/compiler/testData/ir/irText/declarations/catchParameterInTopLevelProperty.ir.txt index 8c68b4766cb..5187667e75f 100644 --- a/compiler/testData/ir/irText/declarations/catchParameterInTopLevelProperty.ir.txt +++ b/compiler/testData/ir/irText/declarations/catchParameterInTopLevelProperty.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/catchParameterInTopLevelProperty.kt EXPRESSION_BODY TRY type=kotlin.Unit try: BLOCK type=kotlin.Unit origin=null - CATCH parameter=val e: kotlin.Throwable [val] declared in .test + CATCH parameter=val e: kotlin.Throwable declared in .test VAR CATCH_PARAMETER name:e type:kotlin.Throwable [val] BLOCK type=kotlin.Unit origin=null FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:kotlin.Unit diff --git a/compiler/testData/ir/irText/declarations/classLevelProperties.fir.ir.txt b/compiler/testData/ir/irText/declarations/classLevelProperties.fir.ir.txt index db07dd89924..aae57a133ed 100644 --- a/compiler/testData/ir/irText/declarations/classLevelProperties.fir.ir.txt +++ b/compiler/testData/ir/irText/declarations/classLevelProperties.fir.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/classLevelProperties.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.C CONSTRUCTOR visibility:public <> () returnType:.C [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:test1 visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:test1 type:kotlin.Int visibility:private [final] @@ -106,16 +106,16 @@ FILE fqName: fileName:/classLevelProperties.kt $this: VALUE_PARAMETER name: type:.C BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun (): kotlin.Int declared in .C' - CALL 'public final fun getValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): T of kotlin.LazyKt.getValue [inline,operator] declared in kotlin.LazyKt' type=kotlin.Int origin=null + CALL 'public final fun getValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): T of kotlin.LazyKt.getValue declared in kotlin.LazyKt' type=kotlin.Int origin=null : kotlin.Int $receiver: GET_FIELD 'FIELD PROPERTY_DELEGATE name:test7$delegate type:kotlin.Lazy visibility:private [final]' type=kotlin.Lazy origin=null receiver: GET_VAR ': .C declared in .C.' type=.C origin=null thisRef: GET_VAR ': .C declared in .C.' type=.C origin=null - property: PROPERTY_REFERENCE 'public final test7: kotlin.Int [delegated,val]' field=null getter='public final fun (): kotlin.Int declared in .C' setter=null type=kotlin.reflect.KProperty1<.C, kotlin.Int> origin=PROPERTY_REFERENCE_FOR_DELEGATE + property: PROPERTY_REFERENCE 'public final test7: kotlin.Int' field=null getter='public final fun (): kotlin.Int declared in .C' setter=null type=kotlin.reflect.KProperty1<.C, kotlin.Int> origin=PROPERTY_REFERENCE_FOR_DELEGATE PROPERTY name:test8 visibility:public modality:FINAL [delegated,var] FIELD PROPERTY_DELEGATE name:test8$delegate type:java.util.HashMap visibility:private [final] EXPRESSION_BODY - CALL 'public final fun hashMapOf (): java.util.HashMap [inline] declared in kotlin.collections.MapsKt' type=java.util.HashMap origin=null + CALL 'public final fun hashMapOf (): java.util.HashMap declared in kotlin.collections.MapsKt' type=java.util.HashMap origin=null : kotlin.String : kotlin.Int FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:.C) returnType:kotlin.Int @@ -123,28 +123,28 @@ FILE fqName: fileName:/classLevelProperties.kt $this: VALUE_PARAMETER name: type:.C BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun (): kotlin.Int declared in .C' - CALL 'public final fun getValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): V1 of kotlin.collections.getValue [inline,operator] declared in kotlin.collections' type=kotlin.Int origin=null + CALL 'public final fun getValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): V1 of kotlin.collections.getValue declared in kotlin.collections' type=kotlin.Int origin=null : kotlin.Int : kotlin.Int $receiver: GET_FIELD 'FIELD PROPERTY_DELEGATE name:test8$delegate type:java.util.HashMap visibility:private [final]' type=java.util.HashMap origin=null receiver: GET_VAR ': .C declared in .C.' type=.C origin=null thisRef: GET_VAR ': .C declared in .C.' type=.C origin=null - property: PROPERTY_REFERENCE 'public final test8: kotlin.Int [delegated,var]' field=null getter='public final fun (): kotlin.Int declared in .C' setter='public final fun (: kotlin.Int): kotlin.Unit declared in .C' type=kotlin.reflect.KMutableProperty1<.C, kotlin.Int> origin=PROPERTY_REFERENCE_FOR_DELEGATE + property: PROPERTY_REFERENCE 'public final test8: kotlin.Int' field=null getter='public final fun (): kotlin.Int declared in .C' setter='public final fun (: kotlin.Int): kotlin.Unit declared in .C' type=kotlin.reflect.KMutableProperty1<.C, kotlin.Int> origin=PROPERTY_REFERENCE_FOR_DELEGATE FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:.C, :kotlin.Int) returnType:kotlin.Unit correspondingProperty: PROPERTY name:test8 visibility:public modality:FINAL [delegated,var] $this: VALUE_PARAMETER name: type:.C VALUE_PARAMETER name: index:0 type:kotlin.Int BLOCK_BODY - CALL 'public final fun setValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>, value: V of kotlin.collections.setValue): kotlin.Unit [inline,operator] declared in kotlin.collections' type=kotlin.Unit origin=null + CALL 'public final fun setValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>, value: V of kotlin.collections.setValue): kotlin.Unit declared in kotlin.collections' type=kotlin.Unit origin=null : kotlin.Int $receiver: GET_FIELD 'FIELD PROPERTY_DELEGATE name:test8$delegate type:java.util.HashMap visibility:private [final]' type=java.util.HashMap origin=null receiver: GET_VAR ': .C declared in .C.' type=.C origin=null thisRef: GET_VAR ': .C declared in .C.' type=.C origin=null - property: PROPERTY_REFERENCE 'public final test8: kotlin.Int [delegated,var]' field=null getter='public final fun (): kotlin.Int declared in .C' setter='public final fun (: kotlin.Int): kotlin.Unit declared in .C' type=kotlin.reflect.KMutableProperty1<.C, kotlin.Int> origin=PROPERTY_REFERENCE_FOR_DELEGATE + property: PROPERTY_REFERENCE 'public final test8: kotlin.Int' field=null getter='public final fun (): kotlin.Int declared in .C' setter='public final fun (: kotlin.Int): kotlin.Unit declared in .C' type=kotlin.reflect.KMutableProperty1<.C, kotlin.Int> origin=PROPERTY_REFERENCE_FOR_DELEGATE value: GET_VAR ': kotlin.Int declared in .C.' type=kotlin.Int 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/declarations/classLevelProperties.ir.txt b/compiler/testData/ir/irText/declarations/classLevelProperties.ir.txt index dac55dc7676..0be98fb6147 100644 --- a/compiler/testData/ir/irText/declarations/classLevelProperties.ir.txt +++ b/compiler/testData/ir/irText/declarations/classLevelProperties.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/classLevelProperties.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.C CONSTRUCTOR visibility:public <> () returnType:.C [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:test1 visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:test1 type:kotlin.Int visibility:private [final] @@ -106,16 +106,16 @@ FILE fqName: fileName:/classLevelProperties.kt $this: VALUE_PARAMETER name: type:.C BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun (): kotlin.Int declared in .C' - CALL 'public final fun getValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): T of kotlin.LazyKt.getValue [inline,operator] declared in kotlin.LazyKt' type=kotlin.Int origin=null + CALL 'public final fun getValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): T of kotlin.LazyKt.getValue declared in kotlin.LazyKt' type=kotlin.Int origin=null : kotlin.Int $receiver: GET_FIELD 'FIELD PROPERTY_DELEGATE name:test7$delegate type:kotlin.Lazy visibility:private [final]' type=kotlin.Lazy origin=null receiver: GET_VAR ': .C declared in .C.' type=.C origin=null thisRef: GET_VAR ': .C declared in .C.' type=.C origin=null - property: PROPERTY_REFERENCE 'public final test7: kotlin.Int [delegated,val]' field=null getter='public final fun (): kotlin.Int declared in .C' setter=null type=kotlin.reflect.KProperty1<.C, kotlin.Int> origin=PROPERTY_REFERENCE_FOR_DELEGATE + property: PROPERTY_REFERENCE 'public final test7: kotlin.Int' field=null getter='public final fun (): kotlin.Int declared in .C' setter=null type=kotlin.reflect.KProperty1<.C, kotlin.Int> origin=PROPERTY_REFERENCE_FOR_DELEGATE PROPERTY name:test8 visibility:public modality:FINAL [delegated,var] FIELD PROPERTY_DELEGATE name:test8$delegate type:java.util.HashMap{ kotlin.collections.HashMap } visibility:private [final] EXPRESSION_BODY - CALL 'public final fun hashMapOf (): java.util.HashMap{ kotlin.collections.HashMap } [inline] declared in kotlin.collections.MapsKt' type=java.util.HashMap{ kotlin.collections.HashMap } origin=null + CALL 'public final fun hashMapOf (): java.util.HashMap{ kotlin.collections.HashMap } declared in kotlin.collections.MapsKt' type=java.util.HashMap{ kotlin.collections.HashMap } origin=null : kotlin.String : kotlin.Int FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:.C) returnType:kotlin.Int @@ -123,29 +123,29 @@ FILE fqName: fileName:/classLevelProperties.kt $this: VALUE_PARAMETER name: type:.C BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun (): kotlin.Int declared in .C' - CALL 'public final fun getValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): V1 of kotlin.collections.getValue [inline,operator] declared in kotlin.collections' type=kotlin.Int origin=null + CALL 'public final fun getValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): V1 of kotlin.collections.getValue declared in kotlin.collections' type=kotlin.Int origin=null : kotlin.Int : kotlin.Int $receiver: GET_FIELD 'FIELD PROPERTY_DELEGATE name:test8$delegate type:java.util.HashMap{ kotlin.collections.HashMap } visibility:private [final]' type=java.util.HashMap{ kotlin.collections.HashMap } origin=null receiver: GET_VAR ': .C declared in .C.' type=.C origin=null thisRef: GET_VAR ': .C declared in .C.' type=.C origin=null - property: PROPERTY_REFERENCE 'public final test8: kotlin.Int [delegated,var]' field=null getter='public final fun (): kotlin.Int declared in .C' setter='public final fun (: kotlin.Int): kotlin.Unit declared in .C' type=kotlin.reflect.KMutableProperty1<.C, kotlin.Int> origin=PROPERTY_REFERENCE_FOR_DELEGATE + property: PROPERTY_REFERENCE 'public final test8: kotlin.Int' field=null getter='public final fun (): kotlin.Int declared in .C' setter='public final fun (: kotlin.Int): kotlin.Unit declared in .C' type=kotlin.reflect.KMutableProperty1<.C, kotlin.Int> origin=PROPERTY_REFERENCE_FOR_DELEGATE FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:.C, :kotlin.Int) returnType:kotlin.Unit correspondingProperty: PROPERTY name:test8 visibility:public modality:FINAL [delegated,var] $this: VALUE_PARAMETER name: type:.C VALUE_PARAMETER name: index:0 type:kotlin.Int BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun (: kotlin.Int): kotlin.Unit declared in .C' - CALL 'public final fun setValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>, value: V of kotlin.collections.setValue): kotlin.Unit [inline,operator] declared in kotlin.collections' type=kotlin.Unit origin=null + CALL 'public final fun setValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>, value: V of kotlin.collections.setValue): kotlin.Unit declared in kotlin.collections' type=kotlin.Unit origin=null : kotlin.Int $receiver: GET_FIELD 'FIELD PROPERTY_DELEGATE name:test8$delegate type:java.util.HashMap{ kotlin.collections.HashMap } visibility:private [final]' type=java.util.HashMap{ kotlin.collections.HashMap } origin=null receiver: GET_VAR ': .C declared in .C.' type=.C origin=null thisRef: GET_VAR ': .C declared in .C.' type=.C origin=null - property: PROPERTY_REFERENCE 'public final test8: kotlin.Int [delegated,var]' field=null getter='public final fun (): kotlin.Int declared in .C' setter='public final fun (: kotlin.Int): kotlin.Unit declared in .C' type=kotlin.reflect.KMutableProperty1<.C, kotlin.Int> origin=PROPERTY_REFERENCE_FOR_DELEGATE + property: PROPERTY_REFERENCE 'public final test8: kotlin.Int' field=null getter='public final fun (): kotlin.Int declared in .C' setter='public final fun (: kotlin.Int): kotlin.Unit declared in .C' type=kotlin.reflect.KMutableProperty1<.C, kotlin.Int> origin=PROPERTY_REFERENCE_FOR_DELEGATE value: GET_VAR ': kotlin.Int declared in .C.' type=kotlin.Int 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/arrayAccessCompositeOperators.fir.ir.txt b/compiler/testData/ir/irText/declarations/contextReceivers/arrayAccessCompositeOperators.fir.ir.txt index 4d49168eaec..4559f460c3f 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/arrayAccessCompositeOperators.fir.ir.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/arrayAccessCompositeOperators.fir.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/arrayAccessCompositeOperators.kt CONSTRUCTOR visibility:public <> (i:kotlin.Int) returnType:.MyContainer [primary] VALUE_PARAMETER name:i index:0 type:kotlin.Int BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:MyContainer modality:FINAL visibility:public [data] superTypes:[kotlin.Any]' PROPERTY name:i visibility:public modality:FINAL [var] FIELD PROPERTY_BACKING_FIELD name:i type:kotlin.Int visibility:private @@ -28,7 +28,7 @@ FILE fqName: fileName:/arrayAccessCompositeOperators.kt FUN GENERATED_DATA_CLASS_MEMBER name:component1 visibility:public modality:FINAL <> ($this:.MyContainer) returnType:kotlin.Int [operator] $this: VALUE_PARAMETER name: type:.MyContainer BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Int [operator] declared in .MyContainer' + RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Int declared in .MyContainer' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:i type:kotlin.Int visibility:private' type=kotlin.Int origin=null receiver: GET_VAR ': .MyContainer declared in .MyContainer.component1' type=.MyContainer origin=null FUN GENERATED_DATA_CLASS_MEMBER name:copy visibility:public modality:FINAL <> ($this:.MyContainer, i:kotlin.Int) returnType:.MyContainer @@ -39,11 +39,11 @@ FILE fqName: fileName:/arrayAccessCompositeOperators.kt receiver: GET_VAR ': .MyContainer declared in .MyContainer.copy' type=.MyContainer origin=null BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun copy (i: kotlin.Int): .MyContainer declared in .MyContainer' - CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) [primary] declared in .MyContainer' type=.MyContainer origin=null + CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) declared in .MyContainer' type=.MyContainer origin=null i: GET_VAR 'i: kotlin.Int declared in .MyContainer.copy' type=kotlin.Int origin=null FUN GENERATED_DATA_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:.MyContainer, other:kotlin.Any?) returnType:kotlin.Boolean [operator] overridden: - public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any $this: VALUE_PARAMETER name: type:.MyContainer VALUE_PARAMETER name:other index:0 type:kotlin.Any? BLOCK_BODY @@ -52,28 +52,28 @@ FILE fqName: fileName:/arrayAccessCompositeOperators.kt 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 ': .MyContainer declared in .MyContainer.equals' type=.MyContainer origin=null arg1: GET_VAR 'other: kotlin.Any? declared in .MyContainer.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .MyContainer' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .MyContainer' CONST Boolean type=kotlin.Boolean value=true WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=.MyContainer GET_VAR 'other: kotlin.Any? declared in .MyContainer.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .MyContainer' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .MyContainer' CONST Boolean type=kotlin.Boolean value=false VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:.MyContainer [val] TYPE_OP type=.MyContainer origin=CAST typeOperand=.MyContainer GET_VAR 'other: kotlin.Any? declared in .MyContainer.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 + if: CALL 'public final fun not (): kotlin.Boolean 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:i type:kotlin.Int visibility:private' type=kotlin.Int origin=null receiver: GET_VAR ': .MyContainer declared in .MyContainer.equals' type=.MyContainer origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:i type:kotlin.Int visibility:private' type=kotlin.Int origin=null - receiver: GET_VAR 'val tmp_0: .MyContainer [val] declared in .MyContainer.equals' type=.MyContainer origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .MyContainer' + receiver: GET_VAR 'val tmp_0: .MyContainer declared in .MyContainer.equals' type=.MyContainer origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .MyContainer' CONST Boolean type=kotlin.Boolean value=false - RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .MyContainer' + RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .MyContainer' CONST Boolean type=kotlin.Boolean value=true FUN GENERATED_DATA_CLASS_MEMBER name:hashCode visibility:public modality:OPEN <> ($this:.MyContainer) returnType:kotlin.Int overridden: @@ -81,7 +81,7 @@ FILE fqName: fileName:/arrayAccessCompositeOperators.kt $this: VALUE_PARAMETER name: type:.MyContainer BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun hashCode (): kotlin.Int declared in .MyContainer' - CALL 'public open fun hashCode (): kotlin.Int [fake_override] declared in kotlin.Int' type=kotlin.Int origin=null + CALL 'public open fun hashCode (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:i type:kotlin.Int visibility:private' type=kotlin.Int origin=null receiver: GET_VAR ': .MyContainer declared in .MyContainer.hashCode' type=.MyContainer origin=null FUN GENERATED_DATA_CLASS_MEMBER name:toString visibility:public modality:OPEN <> ($this:.MyContainer) returnType:kotlin.String @@ -117,10 +117,10 @@ FILE fqName: fileName:/arrayAccessCompositeOperators.kt VALUE_PARAMETER name:index index:1 type:kotlin.Int BLOCK_BODY CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=EQ - : CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null + : CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: CALL 'public final fun (): kotlin.Int declared in ' type=kotlin.Int origin=GET_PROPERTY other: GET_VAR '$context_receiver_0: kotlin.Int declared in .get' type=kotlin.Int origin=null - RETURN type=kotlin.Nothing from='public final fun get ($context_receiver_0: kotlin.Int, index: kotlin.Int): kotlin.Int [operator] declared in ' + RETURN type=kotlin.Nothing from='public final fun get ($context_receiver_0: kotlin.Int, index: kotlin.Int): kotlin.Int declared in ' WHEN type=kotlin.Int origin=IF BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ @@ -138,12 +138,12 @@ FILE fqName: fileName:/arrayAccessCompositeOperators.kt VALUE_PARAMETER name:other index:1 type:.MyContainer BLOCK_BODY CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=EQ - : CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null + : CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: CALL 'public final fun (): kotlin.Int declared in ' type=kotlin.Int origin=GET_PROPERTY other: GET_VAR '$context_receiver_0: kotlin.Int declared in .plusAssign' type=kotlin.Int origin=null CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in .MyContainer' type=kotlin.Unit origin=EQ $this: GET_VAR ': .MyContainer declared in .plusAssign' type=.MyContainer origin=null - : CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null + : CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: CALL 'public final fun (): kotlin.Int declared in .MyContainer' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR ': .MyContainer declared in .plusAssign' type=.MyContainer origin=null other: CALL 'public final fun (): kotlin.Int declared in .MyContainer' type=kotlin.Int origin=GET_PROPERTY @@ -154,21 +154,21 @@ FILE fqName: fileName:/arrayAccessCompositeOperators.kt VALUE_PARAMETER name:$context_receiver_0 index:0 type:kotlin.Int BLOCK_BODY CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=EQ - : CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null + : CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: CALL 'public final fun (): kotlin.Int declared in ' type=kotlin.Int origin=GET_PROPERTY other: GET_VAR '$context_receiver_0: kotlin.Int declared in .inc' type=kotlin.Int origin=null - RETURN type=kotlin.Nothing from='public final fun inc ($context_receiver_0: kotlin.Int): .MyContainer [operator] declared in ' - CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) [primary] declared in .MyContainer' type=.MyContainer origin=null - i: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUS + RETURN type=kotlin.Nothing from='public final fun inc ($context_receiver_0: kotlin.Int): .MyContainer declared in ' + CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) declared in .MyContainer' type=.MyContainer origin=null + i: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUS $this: CALL 'public final fun (): kotlin.Int declared in .MyContainer' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR ': .MyContainer declared in .inc' type=.MyContainer origin=null other: CONST Int type=kotlin.Int value=1 FUN name:box visibility:public modality:FINAL <> () returnType:kotlin.String BLOCK_BODY VAR name:myContainer type:.MyContainer [var] - CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) [primary] declared in .MyContainer' type=.MyContainer origin=null + CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) declared in .MyContainer' type=.MyContainer origin=null i: CONST Int type=kotlin.Int value=0 - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with [inline] declared in kotlin.StandardKt' type=kotlin.Unit origin=null + CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=kotlin.Unit origin=null : kotlin.Int : kotlin.Unit receiver: CONST Int type=kotlin.Int value=1 @@ -176,19 +176,19 @@ FILE fqName: fileName:/arrayAccessCompositeOperators.kt FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> ($receiver:kotlin.Int) returnType:kotlin.Unit $receiver: VALUE_PARAMETER name:$this$with type:kotlin.Int BLOCK_BODY - CALL 'public final fun plusAssign ($context_receiver_0: kotlin.Int, other: .MyContainer): kotlin.Unit [operator] declared in ' type=kotlin.Unit origin=null - $receiver: GET_VAR 'var myContainer: .MyContainer [var] declared in .box' type=.MyContainer origin=null + CALL 'public final fun plusAssign ($context_receiver_0: kotlin.Int, other: .MyContainer): kotlin.Unit declared in ' type=kotlin.Unit origin=null + $receiver: GET_VAR 'var myContainer: .MyContainer declared in .box' type=.MyContainer origin=null $context_receiver_0: GET_VAR '$this$with: kotlin.Int declared in .box.' type=kotlin.Int origin=null - other: CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) [primary] declared in .MyContainer' type=.MyContainer origin=null - i: CALL 'public final fun get ($context_receiver_0: kotlin.Int, index: kotlin.Int): kotlin.Int [operator] declared in ' type=kotlin.Int origin=null + other: CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) declared in .MyContainer' type=.MyContainer origin=null + i: CALL 'public final fun get ($context_receiver_0: kotlin.Int, index: kotlin.Int): kotlin.Int declared in ' type=kotlin.Int origin=null $receiver: BLOCK type=.MyContainer origin=null VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:.MyContainer [val] - GET_VAR 'var myContainer: .MyContainer [var] declared in .box' type=.MyContainer origin=null - SET_VAR 'var myContainer: .MyContainer [var] declared in .box' type=kotlin.Unit origin=EQ - CALL 'public final fun inc ($context_receiver_0: kotlin.Int): .MyContainer [operator] declared in ' type=.MyContainer origin=null - $receiver: GET_VAR 'val tmp_1: .MyContainer [val] declared in .box.' type=.MyContainer origin=null + GET_VAR 'var myContainer: .MyContainer declared in .box' type=.MyContainer origin=null + SET_VAR 'var myContainer: .MyContainer declared in .box' type=kotlin.Unit origin=EQ + CALL 'public final fun inc ($context_receiver_0: kotlin.Int): .MyContainer declared in ' type=.MyContainer origin=null + $receiver: GET_VAR 'val tmp_1: .MyContainer declared in .box.' type=.MyContainer origin=null $context_receiver_0: GET_VAR '$this$with: kotlin.Int declared in .box.' type=kotlin.Int origin=null - GET_VAR 'val tmp_1: .MyContainer [val] declared in .box.' type=.MyContainer origin=null + GET_VAR 'val tmp_1: .MyContainer declared in .box.' type=.MyContainer origin=null $context_receiver_0: GET_VAR '$this$with: kotlin.Int declared in .box.' type=kotlin.Int origin=null index: CONST Int type=kotlin.Int value=0 RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' @@ -198,7 +198,7 @@ FILE fqName: fileName:/arrayAccessCompositeOperators.kt BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ arg0: CALL 'public final fun (): kotlin.Int declared in .MyContainer' type=kotlin.Int origin=GET_PROPERTY - $this: GET_VAR 'var myContainer: .MyContainer [var] declared in .box' type=.MyContainer origin=null + $this: GET_VAR 'var myContainer: .MyContainer declared in .box' type=.MyContainer origin=null arg1: CONST Int type=kotlin.Int value=1 then: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ arg0: CALL 'public final fun (): kotlin.Int declared in ' type=kotlin.Int origin=GET_PROPERTY diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/arrayAccessCompositeOperators.ir.txt b/compiler/testData/ir/irText/declarations/contextReceivers/arrayAccessCompositeOperators.ir.txt index fda488f7b2f..2c424dff7eb 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/arrayAccessCompositeOperators.ir.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/arrayAccessCompositeOperators.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/arrayAccessCompositeOperators.kt CONSTRUCTOR visibility:public <> (i:kotlin.Int) returnType:.MyContainer [primary] VALUE_PARAMETER name:i index:0 type:kotlin.Int BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:MyContainer modality:FINAL visibility:public [data] superTypes:[kotlin.Any]' PROPERTY name:i visibility:public modality:FINAL [var] FIELD PROPERTY_BACKING_FIELD name:i type:kotlin.Int visibility:private @@ -28,7 +28,7 @@ FILE fqName: fileName:/arrayAccessCompositeOperators.kt FUN GENERATED_DATA_CLASS_MEMBER name:component1 visibility:public modality:FINAL <> ($this:.MyContainer) returnType:kotlin.Int [operator] $this: VALUE_PARAMETER name: type:.MyContainer BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Int [operator] declared in .MyContainer' + RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Int declared in .MyContainer' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:i type:kotlin.Int visibility:private' type=kotlin.Int origin=null receiver: GET_VAR ': .MyContainer declared in .MyContainer.component1' type=.MyContainer origin=null FUN GENERATED_DATA_CLASS_MEMBER name:copy visibility:public modality:FINAL <> ($this:.MyContainer, i:kotlin.Int) returnType:.MyContainer @@ -39,7 +39,7 @@ FILE fqName: fileName:/arrayAccessCompositeOperators.kt receiver: GET_VAR ': .MyContainer declared in .MyContainer.copy' type=.MyContainer origin=null BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun copy (i: kotlin.Int): .MyContainer declared in .MyContainer' - CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) [primary] declared in .MyContainer' type=.MyContainer origin=null + CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) declared in .MyContainer' type=.MyContainer origin=null i: GET_VAR 'i: kotlin.Int declared in .MyContainer.copy' type=kotlin.Int origin=null FUN GENERATED_DATA_CLASS_MEMBER name:toString visibility:public modality:OPEN <> ($this:.MyContainer) returnType:kotlin.String overridden: @@ -59,12 +59,12 @@ FILE fqName: fileName:/arrayAccessCompositeOperators.kt $this: VALUE_PARAMETER name: type:.MyContainer BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun hashCode (): kotlin.Int declared in .MyContainer' - CALL 'public open fun hashCode (): kotlin.Int [fake_override] declared in kotlin.Int' type=kotlin.Int origin=null + CALL 'public open fun hashCode (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:i type:kotlin.Int visibility:private' type=kotlin.Int origin=null receiver: GET_VAR ': .MyContainer declared in .MyContainer.hashCode' type=.MyContainer origin=null FUN GENERATED_DATA_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:.MyContainer, other:kotlin.Any?) returnType:kotlin.Boolean [operator] overridden: - public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any $this: VALUE_PARAMETER name: type:.MyContainer VALUE_PARAMETER name:other index:0 type:kotlin.Any? BLOCK_BODY @@ -73,28 +73,28 @@ FILE fqName: fileName:/arrayAccessCompositeOperators.kt 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 ': .MyContainer declared in .MyContainer.equals' type=.MyContainer origin=null arg1: GET_VAR 'other: kotlin.Any? declared in .MyContainer.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .MyContainer' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .MyContainer' CONST Boolean type=kotlin.Boolean value=true WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=.MyContainer GET_VAR 'other: kotlin.Any? declared in .MyContainer.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .MyContainer' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .MyContainer' CONST Boolean type=kotlin.Boolean value=false VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:.MyContainer [val] TYPE_OP type=.MyContainer origin=CAST typeOperand=.MyContainer GET_VAR 'other: kotlin.Any? declared in .MyContainer.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 + if: CALL 'public final fun not (): kotlin.Boolean 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:i type:kotlin.Int visibility:private' type=kotlin.Int origin=null receiver: GET_VAR ': .MyContainer declared in .MyContainer.equals' type=.MyContainer origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:i type:kotlin.Int visibility:private' type=kotlin.Int origin=null - receiver: GET_VAR 'val tmp_0: .MyContainer [val] declared in .MyContainer.equals' type=.MyContainer origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .MyContainer' + receiver: GET_VAR 'val tmp_0: .MyContainer declared in .MyContainer.equals' type=.MyContainer origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .MyContainer' CONST Boolean type=kotlin.Boolean value=false - RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .MyContainer' + RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .MyContainer' CONST Boolean type=kotlin.Boolean value=true PROPERTY name:operationScore visibility:public modality:FINAL [var] FIELD PROPERTY_BACKING_FIELD name:operationScore type:kotlin.Int visibility:private [static] @@ -119,10 +119,10 @@ FILE fqName: fileName:/arrayAccessCompositeOperators.kt BLOCK_BODY BLOCK type=kotlin.Unit origin=PLUSEQ CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=PLUSEQ - : CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ + : CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ $this: CALL 'public final fun (): kotlin.Int declared in ' type=kotlin.Int origin=PLUSEQ other: GET_VAR '$context_receiver_0: kotlin.Int declared in .get' type=kotlin.Int origin=null - RETURN type=kotlin.Nothing from='public final fun get ($context_receiver_0: kotlin.Int, index: kotlin.Int): kotlin.Int [operator] declared in ' + RETURN type=kotlin.Nothing from='public final fun get ($context_receiver_0: kotlin.Int, index: kotlin.Int): kotlin.Int declared in ' WHEN type=kotlin.Int origin=IF BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ @@ -141,17 +141,17 @@ FILE fqName: fileName:/arrayAccessCompositeOperators.kt BLOCK_BODY BLOCK type=kotlin.Unit origin=PLUSEQ CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=PLUSEQ - : CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ + : CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ $this: CALL 'public final fun (): kotlin.Int declared in ' type=kotlin.Int origin=PLUSEQ other: GET_VAR '$context_receiver_0: kotlin.Int declared in .plusAssign' type=kotlin.Int origin=null BLOCK type=kotlin.Unit origin=PLUSEQ VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:.MyContainer [val] GET_VAR ': .MyContainer declared in .plusAssign' type=.MyContainer origin=null CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in .MyContainer' type=kotlin.Unit origin=PLUSEQ - $this: GET_VAR 'val tmp_1: .MyContainer [val] declared in .plusAssign' type=.MyContainer origin=null - : CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ + $this: GET_VAR 'val tmp_1: .MyContainer declared in .plusAssign' type=.MyContainer origin=null + : CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ $this: CALL 'public final fun (): kotlin.Int declared in .MyContainer' type=kotlin.Int origin=PLUSEQ - $this: GET_VAR 'val tmp_1: .MyContainer [val] declared in .plusAssign' type=.MyContainer origin=null + $this: GET_VAR 'val tmp_1: .MyContainer declared in .plusAssign' type=.MyContainer origin=null other: CALL 'public final fun (): kotlin.Int declared in .MyContainer' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR 'other: .MyContainer declared in .plusAssign' type=.MyContainer origin=null FUN name:inc visibility:public modality:FINAL <> ($receiver:.MyContainer, $context_receiver_0:kotlin.Int) returnType:.MyContainer [operator] @@ -161,21 +161,21 @@ FILE fqName: fileName:/arrayAccessCompositeOperators.kt BLOCK_BODY BLOCK type=kotlin.Unit origin=PLUSEQ CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=PLUSEQ - : CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ + : CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ $this: CALL 'public final fun (): kotlin.Int declared in ' type=kotlin.Int origin=PLUSEQ other: GET_VAR '$context_receiver_0: kotlin.Int declared in .inc' type=kotlin.Int origin=null - RETURN type=kotlin.Nothing from='public final fun inc ($context_receiver_0: kotlin.Int): .MyContainer [operator] declared in ' - CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) [primary] declared in .MyContainer' type=.MyContainer origin=null - i: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUS + RETURN type=kotlin.Nothing from='public final fun inc ($context_receiver_0: kotlin.Int): .MyContainer declared in ' + CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) declared in .MyContainer' type=.MyContainer origin=null + i: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUS $this: CALL 'public final fun (): kotlin.Int declared in .MyContainer' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR ': .MyContainer declared in .inc' type=.MyContainer origin=null other: CONST Int type=kotlin.Int value=1 FUN name:box visibility:public modality:FINAL <> () returnType:kotlin.String BLOCK_BODY VAR name:myContainer type:.MyContainer [var] - CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) [primary] declared in .MyContainer' type=.MyContainer origin=null + CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) declared in .MyContainer' type=.MyContainer origin=null i: CONST Int type=kotlin.Int value=0 - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with [inline] declared in kotlin.StandardKt' type=kotlin.Unit origin=null + CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=kotlin.Unit origin=null : kotlin.Int : kotlin.Unit receiver: CONST Int type=kotlin.Int value=1 @@ -183,19 +183,19 @@ FILE fqName: fileName:/arrayAccessCompositeOperators.kt FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> ($receiver:kotlin.Int) returnType:kotlin.Unit $receiver: VALUE_PARAMETER name:$this$with type:kotlin.Int BLOCK_BODY - CALL 'public final fun plusAssign ($context_receiver_0: kotlin.Int, other: .MyContainer): kotlin.Unit [operator] declared in ' type=kotlin.Unit origin=PLUSEQ - $receiver: GET_VAR 'var myContainer: .MyContainer [var] declared in .box' type=.MyContainer origin=PLUSEQ + CALL 'public final fun plusAssign ($context_receiver_0: kotlin.Int, other: .MyContainer): kotlin.Unit declared in ' type=kotlin.Unit origin=PLUSEQ + $receiver: GET_VAR 'var myContainer: .MyContainer declared in .box' type=.MyContainer origin=PLUSEQ $context_receiver_0: GET_VAR '$this$with: kotlin.Int declared in .box.' type=kotlin.Int origin=null - other: CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) [primary] declared in .MyContainer' type=.MyContainer origin=null - i: CALL 'public final fun get ($context_receiver_0: kotlin.Int, index: kotlin.Int): kotlin.Int [operator] declared in ' type=kotlin.Int origin=GET_ARRAY_ELEMENT + other: CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) declared in .MyContainer' type=.MyContainer origin=null + i: CALL 'public final fun get ($context_receiver_0: kotlin.Int, index: kotlin.Int): kotlin.Int declared in ' type=kotlin.Int origin=GET_ARRAY_ELEMENT $receiver: BLOCK type=.MyContainer origin=POSTFIX_INCR VAR IR_TEMPORARY_VARIABLE name:tmp_2 type:.MyContainer [val] - GET_VAR 'var myContainer: .MyContainer [var] declared in .box' type=.MyContainer origin=POSTFIX_INCR - SET_VAR 'var myContainer: .MyContainer [var] declared in .box' type=kotlin.Unit origin=POSTFIX_INCR - CALL 'public final fun inc ($context_receiver_0: kotlin.Int): .MyContainer [operator] declared in ' type=.MyContainer origin=POSTFIX_INCR - $receiver: GET_VAR 'val tmp_2: .MyContainer [val] declared in .box.' type=.MyContainer origin=null + GET_VAR 'var myContainer: .MyContainer declared in .box' type=.MyContainer origin=POSTFIX_INCR + SET_VAR 'var myContainer: .MyContainer declared in .box' type=kotlin.Unit origin=POSTFIX_INCR + CALL 'public final fun inc ($context_receiver_0: kotlin.Int): .MyContainer declared in ' type=.MyContainer origin=POSTFIX_INCR + $receiver: GET_VAR 'val tmp_2: .MyContainer declared in .box.' type=.MyContainer origin=null $context_receiver_0: GET_VAR '$this$with: kotlin.Int declared in .box.' type=kotlin.Int origin=null - GET_VAR 'val tmp_2: .MyContainer [val] declared in .box.' type=.MyContainer origin=null + GET_VAR 'val tmp_2: .MyContainer declared in .box.' type=.MyContainer origin=null $context_receiver_0: GET_VAR '$this$with: kotlin.Int declared in .box.' type=kotlin.Int origin=null index: CONST Int type=kotlin.Int value=0 RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' @@ -205,7 +205,7 @@ FILE fqName: fileName:/arrayAccessCompositeOperators.kt BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ arg0: CALL 'public final fun (): kotlin.Int declared in .MyContainer' type=kotlin.Int origin=GET_PROPERTY - $this: GET_VAR 'var myContainer: .MyContainer [var] declared in .box' type=.MyContainer origin=null + $this: GET_VAR 'var myContainer: .MyContainer declared in .box' type=.MyContainer origin=null arg1: CONST Int type=kotlin.Int value=1 then: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ arg0: CALL 'public final fun (): kotlin.Int declared in ' type=kotlin.Int origin=GET_PROPERTY diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/arrayAccessOperators.fir.ir.txt b/compiler/testData/ir/irText/declarations/contextReceivers/arrayAccessOperators.fir.ir.txt index 91a59d5888f..acde81a3623 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/arrayAccessOperators.fir.ir.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/arrayAccessOperators.fir.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/arrayAccessOperators.kt CONSTRUCTOR visibility:public <> (s:kotlin.String) returnType:.MyContainer [primary] VALUE_PARAMETER name:s index:0 type:kotlin.String BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:MyContainer modality:FINAL visibility:public [data] superTypes:[kotlin.Any]' PROPERTY name:s visibility:public modality:FINAL [var] FIELD PROPERTY_BACKING_FIELD name:s type:kotlin.String visibility:private @@ -28,7 +28,7 @@ FILE fqName: fileName:/arrayAccessOperators.kt FUN GENERATED_DATA_CLASS_MEMBER name:component1 visibility:public modality:FINAL <> ($this:.MyContainer) returnType:kotlin.String [operator] $this: VALUE_PARAMETER name: type:.MyContainer BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.String [operator] declared in .MyContainer' + RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.String declared in .MyContainer' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:s type:kotlin.String visibility:private' type=kotlin.String origin=null receiver: GET_VAR ': .MyContainer declared in .MyContainer.component1' type=.MyContainer origin=null FUN GENERATED_DATA_CLASS_MEMBER name:copy visibility:public modality:FINAL <> ($this:.MyContainer, s:kotlin.String) returnType:.MyContainer @@ -39,11 +39,11 @@ FILE fqName: fileName:/arrayAccessOperators.kt receiver: GET_VAR ': .MyContainer declared in .MyContainer.copy' type=.MyContainer origin=null BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun copy (s: kotlin.String): .MyContainer declared in .MyContainer' - CONSTRUCTOR_CALL 'public constructor (s: kotlin.String) [primary] declared in .MyContainer' type=.MyContainer origin=null + CONSTRUCTOR_CALL 'public constructor (s: kotlin.String) declared in .MyContainer' type=.MyContainer origin=null s: GET_VAR 's: kotlin.String declared in .MyContainer.copy' type=kotlin.String origin=null FUN GENERATED_DATA_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:.MyContainer, other:kotlin.Any?) returnType:kotlin.Boolean [operator] overridden: - public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any $this: VALUE_PARAMETER name: type:.MyContainer VALUE_PARAMETER name:other index:0 type:kotlin.Any? BLOCK_BODY @@ -52,28 +52,28 @@ FILE fqName: fileName:/arrayAccessOperators.kt 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 ': .MyContainer declared in .MyContainer.equals' type=.MyContainer origin=null arg1: GET_VAR 'other: kotlin.Any? declared in .MyContainer.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .MyContainer' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .MyContainer' CONST Boolean type=kotlin.Boolean value=true WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=.MyContainer GET_VAR 'other: kotlin.Any? declared in .MyContainer.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .MyContainer' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .MyContainer' CONST Boolean type=kotlin.Boolean value=false VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:.MyContainer [val] TYPE_OP type=.MyContainer origin=CAST typeOperand=.MyContainer GET_VAR 'other: kotlin.Any? declared in .MyContainer.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 + if: CALL 'public final fun not (): kotlin.Boolean 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:s type:kotlin.String visibility:private' type=kotlin.String origin=null receiver: GET_VAR ': .MyContainer declared in .MyContainer.equals' type=.MyContainer origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:s type:kotlin.String visibility:private' type=kotlin.String origin=null - receiver: GET_VAR 'val tmp_0: .MyContainer [val] declared in .MyContainer.equals' type=.MyContainer origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .MyContainer' + receiver: GET_VAR 'val tmp_0: .MyContainer declared in .MyContainer.equals' type=.MyContainer origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .MyContainer' CONST Boolean type=kotlin.Boolean value=false - RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .MyContainer' + RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .MyContainer' CONST Boolean type=kotlin.Boolean value=true FUN GENERATED_DATA_CLASS_MEMBER name:hashCode visibility:public modality:OPEN <> ($this:.MyContainer) returnType:kotlin.Int overridden: @@ -81,7 +81,7 @@ FILE fqName: fileName:/arrayAccessOperators.kt $this: VALUE_PARAMETER name: type:.MyContainer BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun hashCode (): kotlin.Int declared in .MyContainer' - CALL 'public open fun hashCode (): kotlin.Int [fake_override] declared in kotlin.String' type=kotlin.Int origin=null + CALL 'public open fun hashCode (): kotlin.Int declared in kotlin.String' type=kotlin.Int origin=null $this: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:s type:kotlin.String visibility:private' type=kotlin.String origin=null receiver: GET_VAR ': .MyContainer declared in .MyContainer.hashCode' type=.MyContainer origin=null FUN GENERATED_DATA_CLASS_MEMBER name:toString visibility:public modality:OPEN <> ($this:.MyContainer) returnType:kotlin.String @@ -101,7 +101,7 @@ FILE fqName: fileName:/arrayAccessOperators.kt VALUE_PARAMETER name:$context_receiver_0 index:0 type:kotlin.Int VALUE_PARAMETER name:index index:1 type:kotlin.Int BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun get ($context_receiver_0: kotlin.Int, index: kotlin.Int): kotlin.String? [operator] declared in ' + RETURN type=kotlin.Nothing from='public final fun get ($context_receiver_0: kotlin.Int, index: kotlin.Int): kotlin.String? declared in ' WHEN type=kotlin.String? origin=IF BRANCH if: WHEN type=kotlin.Boolean origin=ANDAND @@ -131,18 +131,18 @@ FILE fqName: fileName:/arrayAccessOperators.kt BRANCH if: WHEN type=kotlin.Boolean origin=OROR BRANCH - if: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ + if: CALL 'public final fun not (): kotlin.Boolean 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_VAR 'index: kotlin.Int declared in .set' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=0 then: CONST Boolean type=kotlin.Boolean value=true BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ + then: CALL 'public final fun not (): kotlin.Boolean 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_VAR '$context_receiver_0: kotlin.Int declared in .set' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=42 - then: RETURN type=kotlin.Nothing from='public final fun set ($context_receiver_0: kotlin.Int, index: kotlin.Int, value: kotlin.String): kotlin.Unit [operator] declared in ' + then: RETURN type=kotlin.Nothing from='public final fun set ($context_receiver_0: kotlin.Int, index: kotlin.Int, value: kotlin.String): kotlin.Unit declared in ' GET_OBJECT 'CLASS IR_EXTERNAL_DECLARATION_STUB OBJECT name:Unit modality:FINAL visibility:public superTypes:[kotlin.Any]' type=kotlin.Unit CALL 'public final fun (: kotlin.String): kotlin.Unit declared in .MyContainer' type=kotlin.Unit origin=EQ $this: GET_VAR ': .MyContainer declared in .set' type=.MyContainer origin=null @@ -150,7 +150,7 @@ FILE fqName: fileName:/arrayAccessOperators.kt FUN name:box visibility:public modality:FINAL <> () returnType:kotlin.String BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with [inline] declared in kotlin.StandardKt' type=kotlin.String origin=null + CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=kotlin.String origin=null : kotlin.Int : kotlin.String receiver: CONST Int type=kotlin.Int value=42 @@ -159,26 +159,26 @@ FILE fqName: fileName:/arrayAccessOperators.kt $receiver: VALUE_PARAMETER name:$this$with type:kotlin.Int BLOCK_BODY VAR name:myContainer type:.MyContainer [val] - CONSTRUCTOR_CALL 'public constructor (s: kotlin.String) [primary] declared in .MyContainer' type=.MyContainer origin=null + CONSTRUCTOR_CALL 'public constructor (s: kotlin.String) declared in .MyContainer' type=.MyContainer origin=null s: CONST String type=kotlin.String value="fail" - CALL 'public final fun set ($context_receiver_0: kotlin.Int, index: kotlin.Int, value: kotlin.String): kotlin.Unit [operator] declared in ' type=kotlin.Unit origin=null - $receiver: GET_VAR 'val myContainer: .MyContainer [val] declared in .box.' type=.MyContainer origin=null + CALL 'public final fun set ($context_receiver_0: kotlin.Int, index: kotlin.Int, value: kotlin.String): kotlin.Unit declared in ' type=kotlin.Unit origin=null + $receiver: GET_VAR 'val myContainer: .MyContainer declared in .box.' type=.MyContainer origin=null $context_receiver_0: GET_VAR '$this$with: kotlin.Int declared in .box.' type=kotlin.Int origin=null index: CONST Int type=kotlin.Int value=0 value: CONST String type=kotlin.String value="OK" RETURN type=kotlin.Nothing from='local final fun (): kotlin.String declared in .box' BLOCK type=kotlin.String origin=ELVIS VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:kotlin.String? [val] - CALL 'public final fun get ($context_receiver_0: kotlin.Int, index: kotlin.Int): kotlin.String? [operator] declared in ' type=kotlin.String? origin=null - $receiver: GET_VAR 'val myContainer: .MyContainer [val] declared in .box.' type=.MyContainer origin=null + CALL 'public final fun get ($context_receiver_0: kotlin.Int, index: kotlin.Int): kotlin.String? declared in ' type=kotlin.String? origin=null + $receiver: GET_VAR 'val myContainer: .MyContainer declared in .box.' type=.MyContainer origin=null $context_receiver_0: GET_VAR '$this$with: kotlin.Int declared in .box.' type=kotlin.Int origin=null index: CONST Int type=kotlin.Int value=0 WHEN type=kotlin.String origin=ELVIS BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_1: kotlin.String? [val] declared in .box.' type=kotlin.String? origin=null + arg0: GET_VAR 'val tmp_1: kotlin.String? declared in .box.' type=kotlin.String? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST String type=kotlin.String value="fail" BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val tmp_1: kotlin.String? [val] declared in .box.' type=kotlin.String? origin=null + then: GET_VAR 'val tmp_1: kotlin.String? declared in .box.' type=kotlin.String? origin=null diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/arrayAccessOperators.ir.txt b/compiler/testData/ir/irText/declarations/contextReceivers/arrayAccessOperators.ir.txt index b85f088a3c7..a9f8d1d14cf 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/arrayAccessOperators.ir.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/arrayAccessOperators.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/arrayAccessOperators.kt CONSTRUCTOR visibility:public <> (s:kotlin.String) returnType:.MyContainer [primary] VALUE_PARAMETER name:s index:0 type:kotlin.String BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:MyContainer modality:FINAL visibility:public [data] superTypes:[kotlin.Any]' PROPERTY name:s visibility:public modality:FINAL [var] FIELD PROPERTY_BACKING_FIELD name:s type:kotlin.String visibility:private @@ -28,7 +28,7 @@ FILE fqName: fileName:/arrayAccessOperators.kt FUN GENERATED_DATA_CLASS_MEMBER name:component1 visibility:public modality:FINAL <> ($this:.MyContainer) returnType:kotlin.String [operator] $this: VALUE_PARAMETER name: type:.MyContainer BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.String [operator] declared in .MyContainer' + RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.String declared in .MyContainer' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:s type:kotlin.String visibility:private' type=kotlin.String origin=null receiver: GET_VAR ': .MyContainer declared in .MyContainer.component1' type=.MyContainer origin=null FUN GENERATED_DATA_CLASS_MEMBER name:copy visibility:public modality:FINAL <> ($this:.MyContainer, s:kotlin.String) returnType:.MyContainer @@ -39,7 +39,7 @@ FILE fqName: fileName:/arrayAccessOperators.kt receiver: GET_VAR ': .MyContainer declared in .MyContainer.copy' type=.MyContainer origin=null BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun copy (s: kotlin.String): .MyContainer declared in .MyContainer' - CONSTRUCTOR_CALL 'public constructor (s: kotlin.String) [primary] declared in .MyContainer' type=.MyContainer origin=null + CONSTRUCTOR_CALL 'public constructor (s: kotlin.String) declared in .MyContainer' type=.MyContainer origin=null s: GET_VAR 's: kotlin.String declared in .MyContainer.copy' type=kotlin.String origin=null FUN GENERATED_DATA_CLASS_MEMBER name:toString visibility:public modality:OPEN <> ($this:.MyContainer) returnType:kotlin.String overridden: @@ -59,12 +59,12 @@ FILE fqName: fileName:/arrayAccessOperators.kt $this: VALUE_PARAMETER name: type:.MyContainer BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun hashCode (): kotlin.Int declared in .MyContainer' - CALL 'public open fun hashCode (): kotlin.Int [fake_override] declared in kotlin.String' type=kotlin.Int origin=null + CALL 'public open fun hashCode (): kotlin.Int declared in kotlin.String' type=kotlin.Int origin=null $this: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:s type:kotlin.String visibility:private' type=kotlin.String origin=null receiver: GET_VAR ': .MyContainer declared in .MyContainer.hashCode' type=.MyContainer origin=null FUN GENERATED_DATA_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:.MyContainer, other:kotlin.Any?) returnType:kotlin.Boolean [operator] overridden: - public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any $this: VALUE_PARAMETER name: type:.MyContainer VALUE_PARAMETER name:other index:0 type:kotlin.Any? BLOCK_BODY @@ -73,28 +73,28 @@ FILE fqName: fileName:/arrayAccessOperators.kt 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 ': .MyContainer declared in .MyContainer.equals' type=.MyContainer origin=null arg1: GET_VAR 'other: kotlin.Any? declared in .MyContainer.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .MyContainer' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .MyContainer' CONST Boolean type=kotlin.Boolean value=true WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=.MyContainer GET_VAR 'other: kotlin.Any? declared in .MyContainer.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .MyContainer' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .MyContainer' CONST Boolean type=kotlin.Boolean value=false VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:.MyContainer [val] TYPE_OP type=.MyContainer origin=CAST typeOperand=.MyContainer GET_VAR 'other: kotlin.Any? declared in .MyContainer.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 + if: CALL 'public final fun not (): kotlin.Boolean 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:s type:kotlin.String visibility:private' type=kotlin.String origin=null receiver: GET_VAR ': .MyContainer declared in .MyContainer.equals' type=.MyContainer origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:s type:kotlin.String visibility:private' type=kotlin.String origin=null - receiver: GET_VAR 'val tmp_0: .MyContainer [val] declared in .MyContainer.equals' type=.MyContainer origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .MyContainer' + receiver: GET_VAR 'val tmp_0: .MyContainer declared in .MyContainer.equals' type=.MyContainer origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .MyContainer' CONST Boolean type=kotlin.Boolean value=false - RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .MyContainer' + RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .MyContainer' CONST Boolean type=kotlin.Boolean value=true FUN name:get visibility:public modality:FINAL <> ($receiver:.MyContainer, $context_receiver_0:kotlin.Int, index:kotlin.Int) returnType:kotlin.String? [operator] contextReceiverParametersCount: 1 @@ -102,7 +102,7 @@ FILE fqName: fileName:/arrayAccessOperators.kt VALUE_PARAMETER name:$context_receiver_0 index:0 type:kotlin.Int VALUE_PARAMETER name:index index:1 type:kotlin.Int BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun get ($context_receiver_0: kotlin.Int, index: kotlin.Int): kotlin.String? [operator] declared in ' + RETURN type=kotlin.Nothing from='public final fun get ($context_receiver_0: kotlin.Int, index: kotlin.Int): kotlin.String? declared in ' WHEN type=kotlin.String? origin=IF BRANCH if: WHEN type=kotlin.Boolean origin=ANDAND @@ -132,18 +132,18 @@ FILE fqName: fileName:/arrayAccessOperators.kt BRANCH if: WHEN type=kotlin.Boolean origin=OROR BRANCH - if: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ + if: CALL 'public final fun not (): kotlin.Boolean 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_VAR 'index: kotlin.Int declared in .set' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=0 then: CONST Boolean type=kotlin.Boolean value=true BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ + then: CALL 'public final fun not (): kotlin.Boolean 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_VAR '$context_receiver_0: kotlin.Int declared in .set' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=42 - then: RETURN type=kotlin.Nothing from='public final fun set ($context_receiver_0: kotlin.Int, index: kotlin.Int, value: kotlin.String): kotlin.Unit [operator] declared in ' + then: RETURN type=kotlin.Nothing from='public final fun set ($context_receiver_0: kotlin.Int, index: kotlin.Int, value: kotlin.String): kotlin.Unit declared in ' GET_OBJECT 'CLASS IR_EXTERNAL_DECLARATION_STUB OBJECT name:Unit modality:FINAL visibility:public superTypes:[kotlin.Any]' type=kotlin.Unit CALL 'public final fun (: kotlin.String): kotlin.Unit declared in .MyContainer' type=kotlin.Unit origin=EQ $this: GET_VAR ': .MyContainer declared in .set' type=.MyContainer origin=null @@ -151,7 +151,7 @@ FILE fqName: fileName:/arrayAccessOperators.kt FUN name:box visibility:public modality:FINAL <> () returnType:kotlin.String BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with [inline] declared in kotlin.StandardKt' type=kotlin.String origin=null + CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=kotlin.String origin=null : kotlin.Int : kotlin.String receiver: CONST Int type=kotlin.Int value=42 @@ -160,26 +160,26 @@ FILE fqName: fileName:/arrayAccessOperators.kt $receiver: VALUE_PARAMETER name:$this$with type:kotlin.Int BLOCK_BODY VAR name:myContainer type:.MyContainer [val] - CONSTRUCTOR_CALL 'public constructor (s: kotlin.String) [primary] declared in .MyContainer' type=.MyContainer origin=null + CONSTRUCTOR_CALL 'public constructor (s: kotlin.String) declared in .MyContainer' type=.MyContainer origin=null s: CONST String type=kotlin.String value="fail" - CALL 'public final fun set ($context_receiver_0: kotlin.Int, index: kotlin.Int, value: kotlin.String): kotlin.Unit [operator] declared in ' type=kotlin.Unit origin=EQ - $receiver: GET_VAR 'val myContainer: .MyContainer [val] declared in .box.' type=.MyContainer origin=null + CALL 'public final fun set ($context_receiver_0: kotlin.Int, index: kotlin.Int, value: kotlin.String): kotlin.Unit declared in ' type=kotlin.Unit origin=EQ + $receiver: GET_VAR 'val myContainer: .MyContainer declared in .box.' type=.MyContainer origin=null $context_receiver_0: GET_VAR '$this$with: kotlin.Int declared in .box.' type=kotlin.Int origin=null index: CONST Int type=kotlin.Int value=0 value: CONST String type=kotlin.String value="OK" RETURN type=kotlin.Nothing from='local final fun (): kotlin.String declared in .box' BLOCK type=kotlin.String origin=ELVIS VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:kotlin.String? [val] - CALL 'public final fun get ($context_receiver_0: kotlin.Int, index: kotlin.Int): kotlin.String? [operator] declared in ' type=kotlin.String? origin=GET_ARRAY_ELEMENT - $receiver: GET_VAR 'val myContainer: .MyContainer [val] declared in .box.' type=.MyContainer origin=null + CALL 'public final fun get ($context_receiver_0: kotlin.Int, index: kotlin.Int): kotlin.String? declared in ' type=kotlin.String? origin=GET_ARRAY_ELEMENT + $receiver: GET_VAR 'val myContainer: .MyContainer declared in .box.' type=.MyContainer origin=null $context_receiver_0: GET_VAR '$this$with: kotlin.Int declared in .box.' type=kotlin.Int origin=null index: CONST Int type=kotlin.Int value=0 WHEN type=kotlin.String origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_1: kotlin.String? [val] declared in .box.' type=kotlin.String? origin=null + arg0: GET_VAR 'val tmp_1: kotlin.String? declared in .box.' type=kotlin.String? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST String type=kotlin.String value="fail" BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val tmp_1: kotlin.String? [val] declared in .box.' type=kotlin.String? origin=null + then: GET_VAR 'val tmp_1: kotlin.String? declared in .box.' type=kotlin.String? origin=null diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/class.ir.txt b/compiler/testData/ir/irText/declarations/contextReceivers/class.ir.txt index d4124773717..6edcfc3cee5 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/class.ir.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/class.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/class.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Outer CONSTRUCTOR visibility:public <> () returnType:.Outer [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Outer modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private [final] @@ -18,7 +18,7 @@ FILE fqName: fileName:/class.kt receiver: GET_VAR ': .Outer declared in .Outer.' type=.Outer 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -36,7 +36,7 @@ FILE fqName: fileName:/class.kt VALUE_PARAMETER name:$context_receiver_0 index:0 type:.Outer VALUE_PARAMETER name:arg index:1 type:kotlin.Any BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' SET_FIELD 'FIELD FIELD_FOR_CLASS_CONTEXT_RECEIVER name:contextReceiverField0 type:.Outer visibility:private [final]' type=kotlin.Unit origin=null receiver: GET_VAR ': .Inner declared in .Inner' type=.Inner origin=null value: GET_VAR '$context_receiver_0: .Outer declared in .Inner.' type=.Outer origin=null @@ -50,7 +50,7 @@ FILE fqName: fileName:/class.kt receiver: GET_VAR ': .Inner declared in .Inner.bar' type=.Inner 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -65,7 +65,7 @@ FILE fqName: fileName:/class.kt VALUE_PARAMETER name:outer index:0 type:.Outer BLOCK_BODY TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with [inline] declared in kotlin.StandardKt' type=.Inner origin=null + CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=.Inner origin=null : .Outer : .Inner receiver: GET_VAR 'outer: .Outer declared in .f' type=.Outer origin=null @@ -74,6 +74,6 @@ FILE fqName: fileName:/class.kt $receiver: VALUE_PARAMETER name:$this$with type:.Outer BLOCK_BODY RETURN type=kotlin.Nothing from='local final fun (): .Inner declared in .f' - CONSTRUCTOR_CALL 'public constructor ($context_receiver_0: .Outer, arg: kotlin.Any) [primary] declared in .Inner' type=.Inner origin=null + CONSTRUCTOR_CALL 'public constructor ($context_receiver_0: .Outer, arg: kotlin.Any) declared in .Inner' type=.Inner origin=null $context_receiver_0: GET_VAR '$this$with: .Outer declared in .f.' type=.Outer origin=null arg: CONST Int type=kotlin.Int value=3 diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/compoundAssignmentOperators.fir.ir.txt b/compiler/testData/ir/irText/declarations/contextReceivers/compoundAssignmentOperators.fir.ir.txt index 3a8de1b5bad..113ee557aa1 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/compoundAssignmentOperators.fir.ir.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/compoundAssignmentOperators.fir.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/compoundAssignmentOperators.kt CONSTRUCTOR visibility:public <> (i:kotlin.Int) returnType:.Result [primary] VALUE_PARAMETER name:i index:0 type:kotlin.Int BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Result modality:FINAL visibility:public [data] superTypes:[kotlin.Any]' PROPERTY name:i visibility:public modality:FINAL [var] FIELD PROPERTY_BACKING_FIELD name:i type:kotlin.Int visibility:private @@ -28,7 +28,7 @@ FILE fqName: fileName:/compoundAssignmentOperators.kt FUN GENERATED_DATA_CLASS_MEMBER name:component1 visibility:public modality:FINAL <> ($this:.Result) returnType:kotlin.Int [operator] $this: VALUE_PARAMETER name: type:.Result BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Int [operator] declared in .Result' + RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Int declared in .Result' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:i type:kotlin.Int visibility:private' type=kotlin.Int origin=null receiver: GET_VAR ': .Result declared in .Result.component1' type=.Result origin=null FUN GENERATED_DATA_CLASS_MEMBER name:copy visibility:public modality:FINAL <> ($this:.Result, i:kotlin.Int) returnType:.Result @@ -39,11 +39,11 @@ FILE fqName: fileName:/compoundAssignmentOperators.kt receiver: GET_VAR ': .Result declared in .Result.copy' type=.Result origin=null BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun copy (i: kotlin.Int): .Result declared in .Result' - CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) [primary] declared in .Result' type=.Result origin=null + CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) declared in .Result' type=.Result origin=null i: GET_VAR 'i: kotlin.Int declared in .Result.copy' type=kotlin.Int origin=null FUN GENERATED_DATA_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:.Result, other:kotlin.Any?) returnType:kotlin.Boolean [operator] overridden: - public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any $this: VALUE_PARAMETER name: type:.Result VALUE_PARAMETER name:other index:0 type:kotlin.Any? BLOCK_BODY @@ -52,28 +52,28 @@ FILE fqName: fileName:/compoundAssignmentOperators.kt 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 ': .Result declared in .Result.equals' type=.Result origin=null arg1: GET_VAR 'other: kotlin.Any? declared in .Result.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Result' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Result' CONST Boolean type=kotlin.Boolean value=true WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=.Result GET_VAR 'other: kotlin.Any? declared in .Result.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Result' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Result' CONST Boolean type=kotlin.Boolean value=false VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:.Result [val] TYPE_OP type=.Result origin=CAST typeOperand=.Result GET_VAR 'other: kotlin.Any? declared in .Result.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 + if: CALL 'public final fun not (): kotlin.Boolean 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:i type:kotlin.Int visibility:private' type=kotlin.Int origin=null receiver: GET_VAR ': .Result declared in .Result.equals' type=.Result origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:i type:kotlin.Int visibility:private' type=kotlin.Int origin=null - receiver: GET_VAR 'val tmp_0: .Result [val] declared in .Result.equals' type=.Result origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Result' + receiver: GET_VAR 'val tmp_0: .Result declared in .Result.equals' type=.Result origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Result' CONST Boolean type=kotlin.Boolean value=false - RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Result' + RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Result' CONST Boolean type=kotlin.Boolean value=true FUN GENERATED_DATA_CLASS_MEMBER name:hashCode visibility:public modality:OPEN <> ($this:.Result) returnType:kotlin.Int overridden: @@ -81,7 +81,7 @@ FILE fqName: fileName:/compoundAssignmentOperators.kt $this: VALUE_PARAMETER name: type:.Result BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun hashCode (): kotlin.Int declared in .Result' - CALL 'public open fun hashCode (): kotlin.Int [fake_override] declared in kotlin.Int' type=kotlin.Int origin=null + CALL 'public open fun hashCode (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:i type:kotlin.Int visibility:private' type=kotlin.Int origin=null receiver: GET_VAR ': .Result declared in .Result.hashCode' type=.Result origin=null FUN GENERATED_DATA_CLASS_MEMBER name:toString visibility:public modality:OPEN <> ($this:.Result) returnType:kotlin.String @@ -117,12 +117,12 @@ FILE fqName: fileName:/compoundAssignmentOperators.kt VALUE_PARAMETER name:other index:1 type:.Result BLOCK_BODY CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=EQ - : CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null + : CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: CALL 'public final fun (): kotlin.Int declared in ' type=kotlin.Int origin=GET_PROPERTY other: GET_VAR '$context_receiver_0: kotlin.Int declared in .plus' type=kotlin.Int origin=null - RETURN type=kotlin.Nothing from='public final fun plus ($context_receiver_0: kotlin.Int, other: .Result): .Result [operator] declared in ' - CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) [primary] declared in .Result' type=.Result origin=null - i: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUS + RETURN type=kotlin.Nothing from='public final fun plus ($context_receiver_0: kotlin.Int, other: .Result): .Result declared in ' + CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) declared in .Result' type=.Result origin=null + i: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUS $this: CALL 'public final fun (): kotlin.Int declared in .Result' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR ': .Result declared in .plus' type=.Result origin=null other: CALL 'public final fun (): kotlin.Int declared in .Result' type=kotlin.Int origin=GET_PROPERTY @@ -134,12 +134,12 @@ FILE fqName: fileName:/compoundAssignmentOperators.kt VALUE_PARAMETER name:other index:1 type:.Result BLOCK_BODY CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=EQ - : CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null + : CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: CALL 'public final fun (): kotlin.Int declared in ' type=kotlin.Int origin=GET_PROPERTY other: GET_VAR '$context_receiver_0: kotlin.Int declared in .plusAssign' type=kotlin.Int origin=null CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in .Result' type=kotlin.Unit origin=EQ $this: GET_VAR ': .Result declared in .plusAssign' type=.Result origin=null - : CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null + : CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: CALL 'public final fun (): kotlin.Int declared in .Result' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR ': .Result declared in .plusAssign' type=.Result origin=null other: CALL 'public final fun (): kotlin.Int declared in .Result' type=kotlin.Int origin=GET_PROPERTY @@ -151,12 +151,12 @@ FILE fqName: fileName:/compoundAssignmentOperators.kt VALUE_PARAMETER name:other index:1 type:.Result BLOCK_BODY CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=EQ - : CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null + : CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: CALL 'public final fun (): kotlin.Int declared in ' type=kotlin.Int origin=GET_PROPERTY other: GET_VAR '$context_receiver_0: kotlin.Int declared in .minus' type=kotlin.Int origin=null - RETURN type=kotlin.Nothing from='public final fun minus ($context_receiver_0: kotlin.Int, other: .Result): .Result [operator] declared in ' - CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) [primary] declared in .Result' type=.Result origin=null - i: CALL 'public final fun minus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=MINUS + RETURN type=kotlin.Nothing from='public final fun minus ($context_receiver_0: kotlin.Int, other: .Result): .Result declared in ' + CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) declared in .Result' type=.Result origin=null + i: CALL 'public final fun minus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=MINUS $this: CALL 'public final fun (): kotlin.Int declared in .Result' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR ': .Result declared in .minus' type=.Result origin=null other: CALL 'public final fun (): kotlin.Int declared in .Result' type=kotlin.Int origin=GET_PROPERTY @@ -168,12 +168,12 @@ FILE fqName: fileName:/compoundAssignmentOperators.kt VALUE_PARAMETER name:other index:1 type:.Result BLOCK_BODY CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=EQ - : CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null + : CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: CALL 'public final fun (): kotlin.Int declared in ' type=kotlin.Int origin=GET_PROPERTY other: GET_VAR '$context_receiver_0: kotlin.Int declared in .minusAssign' type=kotlin.Int origin=null CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in .Result' type=kotlin.Unit origin=EQ $this: GET_VAR ': .Result declared in .minusAssign' type=.Result origin=null - : CALL 'public final fun minus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null + : CALL 'public final fun minus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: CALL 'public final fun (): kotlin.Int declared in .Result' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR ': .Result declared in .minusAssign' type=.Result origin=null other: CALL 'public final fun (): kotlin.Int declared in .Result' type=kotlin.Int origin=GET_PROPERTY @@ -185,12 +185,12 @@ FILE fqName: fileName:/compoundAssignmentOperators.kt VALUE_PARAMETER name:other index:1 type:.Result BLOCK_BODY CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=EQ - : CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null + : CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: CALL 'public final fun (): kotlin.Int declared in ' type=kotlin.Int origin=GET_PROPERTY other: GET_VAR '$context_receiver_0: kotlin.Int declared in .times' type=kotlin.Int origin=null - RETURN type=kotlin.Nothing from='public final fun times ($context_receiver_0: kotlin.Int, other: .Result): .Result [operator] declared in ' - CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) [primary] declared in .Result' type=.Result origin=null - i: CALL 'public final fun times (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=MUL + RETURN type=kotlin.Nothing from='public final fun times ($context_receiver_0: kotlin.Int, other: .Result): .Result declared in ' + CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) declared in .Result' type=.Result origin=null + i: CALL 'public final fun times (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=MUL $this: CALL 'public final fun (): kotlin.Int declared in .Result' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR ': .Result declared in .times' type=.Result origin=null other: CALL 'public final fun (): kotlin.Int declared in .Result' type=kotlin.Int origin=GET_PROPERTY @@ -202,12 +202,12 @@ FILE fqName: fileName:/compoundAssignmentOperators.kt VALUE_PARAMETER name:other index:1 type:.Result BLOCK_BODY CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=EQ - : CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null + : CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: CALL 'public final fun (): kotlin.Int declared in ' type=kotlin.Int origin=GET_PROPERTY other: GET_VAR '$context_receiver_0: kotlin.Int declared in .timesAssign' type=kotlin.Int origin=null CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in .Result' type=kotlin.Unit origin=EQ $this: GET_VAR ': .Result declared in .timesAssign' type=.Result origin=null - : CALL 'public final fun times (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null + : CALL 'public final fun times (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: CALL 'public final fun (): kotlin.Int declared in .Result' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR ': .Result declared in .timesAssign' type=.Result origin=null other: CALL 'public final fun (): kotlin.Int declared in .Result' type=kotlin.Int origin=GET_PROPERTY @@ -219,12 +219,12 @@ FILE fqName: fileName:/compoundAssignmentOperators.kt VALUE_PARAMETER name:other index:1 type:.Result BLOCK_BODY CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=EQ - : CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null + : CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: CALL 'public final fun (): kotlin.Int declared in ' type=kotlin.Int origin=GET_PROPERTY other: GET_VAR '$context_receiver_0: kotlin.Int declared in .div' type=kotlin.Int origin=null - RETURN type=kotlin.Nothing from='public final fun div ($context_receiver_0: kotlin.Int, other: .Result): .Result [operator] declared in ' - CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) [primary] declared in .Result' type=.Result origin=null - i: CALL 'public final fun div (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=DIV + RETURN type=kotlin.Nothing from='public final fun div ($context_receiver_0: kotlin.Int, other: .Result): .Result declared in ' + CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) declared in .Result' type=.Result origin=null + i: CALL 'public final fun div (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=DIV $this: CALL 'public final fun (): kotlin.Int declared in .Result' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR ': .Result declared in .div' type=.Result origin=null other: CALL 'public final fun (): kotlin.Int declared in .Result' type=kotlin.Int origin=GET_PROPERTY @@ -236,12 +236,12 @@ FILE fqName: fileName:/compoundAssignmentOperators.kt VALUE_PARAMETER name:other index:1 type:.Result BLOCK_BODY CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=EQ - : CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null + : CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: CALL 'public final fun (): kotlin.Int declared in ' type=kotlin.Int origin=GET_PROPERTY other: GET_VAR '$context_receiver_0: kotlin.Int declared in .divAssign' type=kotlin.Int origin=null CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in .Result' type=kotlin.Unit origin=EQ $this: GET_VAR ': .Result declared in .divAssign' type=.Result origin=null - : CALL 'public final fun div (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null + : CALL 'public final fun div (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: CALL 'public final fun (): kotlin.Int declared in .Result' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR ': .Result declared in .divAssign' type=.Result origin=null other: CALL 'public final fun (): kotlin.Int declared in .Result' type=kotlin.Int origin=GET_PROPERTY @@ -249,9 +249,9 @@ FILE fqName: fileName:/compoundAssignmentOperators.kt FUN name:box visibility:public modality:FINAL <> () returnType:kotlin.String BLOCK_BODY VAR name:result type:.Result [val] - CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) [primary] declared in .Result' type=.Result origin=null + CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) declared in .Result' type=.Result origin=null i: CONST Int type=kotlin.Int value=0 - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with [inline] declared in kotlin.StandardKt' type=kotlin.Unit origin=null + CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=kotlin.Unit origin=null : kotlin.Int : kotlin.Unit receiver: CONST Int type=kotlin.Int value=1 @@ -259,41 +259,41 @@ FILE fqName: fileName:/compoundAssignmentOperators.kt FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> ($receiver:kotlin.Int) returnType:kotlin.Unit $receiver: VALUE_PARAMETER name:$this$with type:kotlin.Int BLOCK_BODY - CALL 'public final fun plusAssign ($context_receiver_0: kotlin.Int, other: .Result): kotlin.Unit [operator] declared in ' type=kotlin.Unit origin=null - $receiver: GET_VAR 'val result: .Result [val] declared in .box' type=.Result origin=null + CALL 'public final fun plusAssign ($context_receiver_0: kotlin.Int, other: .Result): kotlin.Unit declared in ' type=kotlin.Unit origin=null + $receiver: GET_VAR 'val result: .Result declared in .box' type=.Result origin=null $context_receiver_0: GET_VAR '$this$with: kotlin.Int declared in .box.' type=kotlin.Int origin=null - other: CALL 'public final fun plus ($context_receiver_0: kotlin.Int, other: .Result): .Result [operator] declared in ' type=.Result origin=PLUS - $receiver: CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) [primary] declared in .Result' type=.Result origin=null + other: CALL 'public final fun plus ($context_receiver_0: kotlin.Int, other: .Result): .Result declared in ' type=.Result origin=PLUS + $receiver: CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) declared in .Result' type=.Result origin=null i: CONST Int type=kotlin.Int value=1 $context_receiver_0: GET_VAR '$this$with: kotlin.Int declared in .box.' type=kotlin.Int origin=null - other: CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) [primary] declared in .Result' type=.Result origin=null + other: CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) declared in .Result' type=.Result origin=null i: CONST Int type=kotlin.Int value=1 - CALL 'public final fun minusAssign ($context_receiver_0: kotlin.Int, other: .Result): kotlin.Unit [operator] declared in ' type=kotlin.Unit origin=null - $receiver: GET_VAR 'val result: .Result [val] declared in .box' type=.Result origin=null + CALL 'public final fun minusAssign ($context_receiver_0: kotlin.Int, other: .Result): kotlin.Unit declared in ' type=kotlin.Unit origin=null + $receiver: GET_VAR 'val result: .Result declared in .box' type=.Result origin=null $context_receiver_0: GET_VAR '$this$with: kotlin.Int declared in .box.' type=kotlin.Int origin=null - other: CALL 'public final fun minus ($context_receiver_0: kotlin.Int, other: .Result): .Result [operator] declared in ' type=.Result origin=MINUS - $receiver: CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) [primary] declared in .Result' type=.Result origin=null + other: CALL 'public final fun minus ($context_receiver_0: kotlin.Int, other: .Result): .Result declared in ' type=.Result origin=MINUS + $receiver: CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) declared in .Result' type=.Result origin=null i: CONST Int type=kotlin.Int value=1 $context_receiver_0: GET_VAR '$this$with: kotlin.Int declared in .box.' type=kotlin.Int origin=null - other: CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) [primary] declared in .Result' type=.Result origin=null + other: CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) declared in .Result' type=.Result origin=null i: CONST Int type=kotlin.Int value=0 - CALL 'public final fun timesAssign ($context_receiver_0: kotlin.Int, other: .Result): kotlin.Unit [operator] declared in ' type=kotlin.Unit origin=null - $receiver: GET_VAR 'val result: .Result [val] declared in .box' type=.Result origin=null + CALL 'public final fun timesAssign ($context_receiver_0: kotlin.Int, other: .Result): kotlin.Unit declared in ' type=kotlin.Unit origin=null + $receiver: GET_VAR 'val result: .Result declared in .box' type=.Result origin=null $context_receiver_0: GET_VAR '$this$with: kotlin.Int declared in .box.' type=kotlin.Int origin=null - other: CALL 'public final fun times ($context_receiver_0: kotlin.Int, other: .Result): .Result [operator] declared in ' type=.Result origin=MUL - $receiver: CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) [primary] declared in .Result' type=.Result origin=null + other: CALL 'public final fun times ($context_receiver_0: kotlin.Int, other: .Result): .Result declared in ' type=.Result origin=MUL + $receiver: CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) declared in .Result' type=.Result origin=null i: CONST Int type=kotlin.Int value=1 $context_receiver_0: GET_VAR '$this$with: kotlin.Int declared in .box.' type=kotlin.Int origin=null - other: CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) [primary] declared in .Result' type=.Result origin=null + other: CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) declared in .Result' type=.Result origin=null i: CONST Int type=kotlin.Int value=2 - CALL 'public final fun divAssign ($context_receiver_0: kotlin.Int, other: .Result): kotlin.Unit [operator] declared in ' type=kotlin.Unit origin=null - $receiver: GET_VAR 'val result: .Result [val] declared in .box' type=.Result origin=null + CALL 'public final fun divAssign ($context_receiver_0: kotlin.Int, other: .Result): kotlin.Unit declared in ' type=kotlin.Unit origin=null + $receiver: GET_VAR 'val result: .Result declared in .box' type=.Result origin=null $context_receiver_0: GET_VAR '$this$with: kotlin.Int declared in .box.' type=kotlin.Int origin=null - other: CALL 'public final fun div ($context_receiver_0: kotlin.Int, other: .Result): .Result [operator] declared in ' type=.Result origin=DIV - $receiver: CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) [primary] declared in .Result' type=.Result origin=null + other: CALL 'public final fun div ($context_receiver_0: kotlin.Int, other: .Result): .Result declared in ' type=.Result origin=DIV + $receiver: CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) declared in .Result' type=.Result origin=null i: CONST Int type=kotlin.Int value=4 $context_receiver_0: GET_VAR '$this$with: kotlin.Int declared in .box.' type=kotlin.Int origin=null - other: CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) [primary] declared in .Result' type=.Result origin=null + other: CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) declared in .Result' type=.Result origin=null i: CONST Int type=kotlin.Int value=2 RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' WHEN type=kotlin.String origin=IF @@ -302,7 +302,7 @@ FILE fqName: fileName:/compoundAssignmentOperators.kt BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ arg0: CALL 'public final fun (): kotlin.Int declared in .Result' type=kotlin.Int origin=GET_PROPERTY - $this: GET_VAR 'val result: .Result [val] declared in .box' type=.Result origin=null + $this: GET_VAR 'val result: .Result declared in .box' type=.Result origin=null arg1: CONST Int type=kotlin.Int value=1 then: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ arg0: CALL 'public final fun (): kotlin.Int declared in ' type=kotlin.Int origin=GET_PROPERTY diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/compoundAssignmentOperators.ir.txt b/compiler/testData/ir/irText/declarations/contextReceivers/compoundAssignmentOperators.ir.txt index 3b48b7a365b..60c3be69b4c 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/compoundAssignmentOperators.ir.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/compoundAssignmentOperators.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/compoundAssignmentOperators.kt CONSTRUCTOR visibility:public <> (i:kotlin.Int) returnType:.Result [primary] VALUE_PARAMETER name:i index:0 type:kotlin.Int BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Result modality:FINAL visibility:public [data] superTypes:[kotlin.Any]' PROPERTY name:i visibility:public modality:FINAL [var] FIELD PROPERTY_BACKING_FIELD name:i type:kotlin.Int visibility:private @@ -28,7 +28,7 @@ FILE fqName: fileName:/compoundAssignmentOperators.kt FUN GENERATED_DATA_CLASS_MEMBER name:component1 visibility:public modality:FINAL <> ($this:.Result) returnType:kotlin.Int [operator] $this: VALUE_PARAMETER name: type:.Result BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Int [operator] declared in .Result' + RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Int declared in .Result' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:i type:kotlin.Int visibility:private' type=kotlin.Int origin=null receiver: GET_VAR ': .Result declared in .Result.component1' type=.Result origin=null FUN GENERATED_DATA_CLASS_MEMBER name:copy visibility:public modality:FINAL <> ($this:.Result, i:kotlin.Int) returnType:.Result @@ -39,7 +39,7 @@ FILE fqName: fileName:/compoundAssignmentOperators.kt receiver: GET_VAR ': .Result declared in .Result.copy' type=.Result origin=null BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun copy (i: kotlin.Int): .Result declared in .Result' - CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) [primary] declared in .Result' type=.Result origin=null + CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) declared in .Result' type=.Result origin=null i: GET_VAR 'i: kotlin.Int declared in .Result.copy' type=kotlin.Int origin=null FUN GENERATED_DATA_CLASS_MEMBER name:toString visibility:public modality:OPEN <> ($this:.Result) returnType:kotlin.String overridden: @@ -59,12 +59,12 @@ FILE fqName: fileName:/compoundAssignmentOperators.kt $this: VALUE_PARAMETER name: type:.Result BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun hashCode (): kotlin.Int declared in .Result' - CALL 'public open fun hashCode (): kotlin.Int [fake_override] declared in kotlin.Int' type=kotlin.Int origin=null + CALL 'public open fun hashCode (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:i type:kotlin.Int visibility:private' type=kotlin.Int origin=null receiver: GET_VAR ': .Result declared in .Result.hashCode' type=.Result origin=null FUN GENERATED_DATA_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:.Result, other:kotlin.Any?) returnType:kotlin.Boolean [operator] overridden: - public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any $this: VALUE_PARAMETER name: type:.Result VALUE_PARAMETER name:other index:0 type:kotlin.Any? BLOCK_BODY @@ -73,28 +73,28 @@ FILE fqName: fileName:/compoundAssignmentOperators.kt 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 ': .Result declared in .Result.equals' type=.Result origin=null arg1: GET_VAR 'other: kotlin.Any? declared in .Result.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Result' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Result' CONST Boolean type=kotlin.Boolean value=true WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=.Result GET_VAR 'other: kotlin.Any? declared in .Result.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Result' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Result' CONST Boolean type=kotlin.Boolean value=false VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:.Result [val] TYPE_OP type=.Result origin=CAST typeOperand=.Result GET_VAR 'other: kotlin.Any? declared in .Result.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 + if: CALL 'public final fun not (): kotlin.Boolean 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:i type:kotlin.Int visibility:private' type=kotlin.Int origin=null receiver: GET_VAR ': .Result declared in .Result.equals' type=.Result origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:i type:kotlin.Int visibility:private' type=kotlin.Int origin=null - receiver: GET_VAR 'val tmp_0: .Result [val] declared in .Result.equals' type=.Result origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Result' + receiver: GET_VAR 'val tmp_0: .Result declared in .Result.equals' type=.Result origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Result' CONST Boolean type=kotlin.Boolean value=false - RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Result' + RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Result' CONST Boolean type=kotlin.Boolean value=true PROPERTY name:operationScore visibility:public modality:FINAL [var] FIELD PROPERTY_BACKING_FIELD name:operationScore type:kotlin.Int visibility:private [static] @@ -119,12 +119,12 @@ FILE fqName: fileName:/compoundAssignmentOperators.kt BLOCK_BODY BLOCK type=kotlin.Unit origin=PLUSEQ CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=PLUSEQ - : CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ + : CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ $this: CALL 'public final fun (): kotlin.Int declared in ' type=kotlin.Int origin=PLUSEQ other: GET_VAR '$context_receiver_0: kotlin.Int declared in .plus' type=kotlin.Int origin=null - RETURN type=kotlin.Nothing from='public final fun plus ($context_receiver_0: kotlin.Int, other: .Result): .Result [operator] declared in ' - CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) [primary] declared in .Result' type=.Result origin=null - i: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUS + RETURN type=kotlin.Nothing from='public final fun plus ($context_receiver_0: kotlin.Int, other: .Result): .Result declared in ' + CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) declared in .Result' type=.Result origin=null + i: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUS $this: CALL 'public final fun (): kotlin.Int declared in .Result' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR ': .Result declared in .plus' type=.Result origin=null other: CALL 'public final fun (): kotlin.Int declared in .Result' type=kotlin.Int origin=GET_PROPERTY @@ -137,17 +137,17 @@ FILE fqName: fileName:/compoundAssignmentOperators.kt BLOCK_BODY BLOCK type=kotlin.Unit origin=PLUSEQ CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=PLUSEQ - : CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ + : CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ $this: CALL 'public final fun (): kotlin.Int declared in ' type=kotlin.Int origin=PLUSEQ other: GET_VAR '$context_receiver_0: kotlin.Int declared in .plusAssign' type=kotlin.Int origin=null BLOCK type=kotlin.Unit origin=PLUSEQ VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:.Result [val] GET_VAR ': .Result declared in .plusAssign' type=.Result origin=null CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in .Result' type=kotlin.Unit origin=PLUSEQ - $this: GET_VAR 'val tmp_1: .Result [val] declared in .plusAssign' type=.Result origin=null - : CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ + $this: GET_VAR 'val tmp_1: .Result declared in .plusAssign' type=.Result origin=null + : CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ $this: CALL 'public final fun (): kotlin.Int declared in .Result' type=kotlin.Int origin=PLUSEQ - $this: GET_VAR 'val tmp_1: .Result [val] declared in .plusAssign' type=.Result origin=null + $this: GET_VAR 'val tmp_1: .Result declared in .plusAssign' type=.Result origin=null other: CALL 'public final fun (): kotlin.Int declared in .Result' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR 'other: .Result declared in .plusAssign' type=.Result origin=null FUN name:minus visibility:public modality:FINAL <> ($receiver:.Result, $context_receiver_0:kotlin.Int, other:.Result) returnType:.Result [operator] @@ -158,12 +158,12 @@ FILE fqName: fileName:/compoundAssignmentOperators.kt BLOCK_BODY BLOCK type=kotlin.Unit origin=PLUSEQ CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=PLUSEQ - : CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ + : CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ $this: CALL 'public final fun (): kotlin.Int declared in ' type=kotlin.Int origin=PLUSEQ other: GET_VAR '$context_receiver_0: kotlin.Int declared in .minus' type=kotlin.Int origin=null - RETURN type=kotlin.Nothing from='public final fun minus ($context_receiver_0: kotlin.Int, other: .Result): .Result [operator] declared in ' - CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) [primary] declared in .Result' type=.Result origin=null - i: CALL 'public final fun minus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=MINUS + RETURN type=kotlin.Nothing from='public final fun minus ($context_receiver_0: kotlin.Int, other: .Result): .Result declared in ' + CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) declared in .Result' type=.Result origin=null + i: CALL 'public final fun minus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=MINUS $this: CALL 'public final fun (): kotlin.Int declared in .Result' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR ': .Result declared in .minus' type=.Result origin=null other: CALL 'public final fun (): kotlin.Int declared in .Result' type=kotlin.Int origin=GET_PROPERTY @@ -176,17 +176,17 @@ FILE fqName: fileName:/compoundAssignmentOperators.kt BLOCK_BODY BLOCK type=kotlin.Unit origin=PLUSEQ CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=PLUSEQ - : CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ + : CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ $this: CALL 'public final fun (): kotlin.Int declared in ' type=kotlin.Int origin=PLUSEQ other: GET_VAR '$context_receiver_0: kotlin.Int declared in .minusAssign' type=kotlin.Int origin=null BLOCK type=kotlin.Unit origin=MINUSEQ VAR IR_TEMPORARY_VARIABLE name:tmp_2 type:.Result [val] GET_VAR ': .Result declared in .minusAssign' type=.Result origin=null CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in .Result' type=kotlin.Unit origin=MINUSEQ - $this: GET_VAR 'val tmp_2: .Result [val] declared in .minusAssign' type=.Result origin=null - : CALL 'public final fun minus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=MINUSEQ + $this: GET_VAR 'val tmp_2: .Result declared in .minusAssign' type=.Result origin=null + : CALL 'public final fun minus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=MINUSEQ $this: CALL 'public final fun (): kotlin.Int declared in .Result' type=kotlin.Int origin=MINUSEQ - $this: GET_VAR 'val tmp_2: .Result [val] declared in .minusAssign' type=.Result origin=null + $this: GET_VAR 'val tmp_2: .Result declared in .minusAssign' type=.Result origin=null other: CALL 'public final fun (): kotlin.Int declared in .Result' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR 'other: .Result declared in .minusAssign' type=.Result origin=null FUN name:times visibility:public modality:FINAL <> ($receiver:.Result, $context_receiver_0:kotlin.Int, other:.Result) returnType:.Result [operator] @@ -197,12 +197,12 @@ FILE fqName: fileName:/compoundAssignmentOperators.kt BLOCK_BODY BLOCK type=kotlin.Unit origin=PLUSEQ CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=PLUSEQ - : CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ + : CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ $this: CALL 'public final fun (): kotlin.Int declared in ' type=kotlin.Int origin=PLUSEQ other: GET_VAR '$context_receiver_0: kotlin.Int declared in .times' type=kotlin.Int origin=null - RETURN type=kotlin.Nothing from='public final fun times ($context_receiver_0: kotlin.Int, other: .Result): .Result [operator] declared in ' - CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) [primary] declared in .Result' type=.Result origin=null - i: CALL 'public final fun times (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=MUL + RETURN type=kotlin.Nothing from='public final fun times ($context_receiver_0: kotlin.Int, other: .Result): .Result declared in ' + CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) declared in .Result' type=.Result origin=null + i: CALL 'public final fun times (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=MUL $this: CALL 'public final fun (): kotlin.Int declared in .Result' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR ': .Result declared in .times' type=.Result origin=null other: CALL 'public final fun (): kotlin.Int declared in .Result' type=kotlin.Int origin=GET_PROPERTY @@ -215,17 +215,17 @@ FILE fqName: fileName:/compoundAssignmentOperators.kt BLOCK_BODY BLOCK type=kotlin.Unit origin=PLUSEQ CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=PLUSEQ - : CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ + : CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ $this: CALL 'public final fun (): kotlin.Int declared in ' type=kotlin.Int origin=PLUSEQ other: GET_VAR '$context_receiver_0: kotlin.Int declared in .timesAssign' type=kotlin.Int origin=null BLOCK type=kotlin.Unit origin=MULTEQ VAR IR_TEMPORARY_VARIABLE name:tmp_3 type:.Result [val] GET_VAR ': .Result declared in .timesAssign' type=.Result origin=null CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in .Result' type=kotlin.Unit origin=MULTEQ - $this: GET_VAR 'val tmp_3: .Result [val] declared in .timesAssign' type=.Result origin=null - : CALL 'public final fun times (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=MULTEQ + $this: GET_VAR 'val tmp_3: .Result declared in .timesAssign' type=.Result origin=null + : CALL 'public final fun times (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=MULTEQ $this: CALL 'public final fun (): kotlin.Int declared in .Result' type=kotlin.Int origin=MULTEQ - $this: GET_VAR 'val tmp_3: .Result [val] declared in .timesAssign' type=.Result origin=null + $this: GET_VAR 'val tmp_3: .Result declared in .timesAssign' type=.Result origin=null other: CALL 'public final fun (): kotlin.Int declared in .Result' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR 'other: .Result declared in .timesAssign' type=.Result origin=null FUN name:div visibility:public modality:FINAL <> ($receiver:.Result, $context_receiver_0:kotlin.Int, other:.Result) returnType:.Result [operator] @@ -236,12 +236,12 @@ FILE fqName: fileName:/compoundAssignmentOperators.kt BLOCK_BODY BLOCK type=kotlin.Unit origin=PLUSEQ CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=PLUSEQ - : CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ + : CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ $this: CALL 'public final fun (): kotlin.Int declared in ' type=kotlin.Int origin=PLUSEQ other: GET_VAR '$context_receiver_0: kotlin.Int declared in .div' type=kotlin.Int origin=null - RETURN type=kotlin.Nothing from='public final fun div ($context_receiver_0: kotlin.Int, other: .Result): .Result [operator] declared in ' - CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) [primary] declared in .Result' type=.Result origin=null - i: CALL 'public final fun div (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=DIV + RETURN type=kotlin.Nothing from='public final fun div ($context_receiver_0: kotlin.Int, other: .Result): .Result declared in ' + CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) declared in .Result' type=.Result origin=null + i: CALL 'public final fun div (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=DIV $this: CALL 'public final fun (): kotlin.Int declared in .Result' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR ': .Result declared in .div' type=.Result origin=null other: CALL 'public final fun (): kotlin.Int declared in .Result' type=kotlin.Int origin=GET_PROPERTY @@ -254,25 +254,25 @@ FILE fqName: fileName:/compoundAssignmentOperators.kt BLOCK_BODY BLOCK type=kotlin.Unit origin=PLUSEQ CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=PLUSEQ - : CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ + : CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ $this: CALL 'public final fun (): kotlin.Int declared in ' type=kotlin.Int origin=PLUSEQ other: GET_VAR '$context_receiver_0: kotlin.Int declared in .divAssign' type=kotlin.Int origin=null BLOCK type=kotlin.Unit origin=DIVEQ VAR IR_TEMPORARY_VARIABLE name:tmp_4 type:.Result [val] GET_VAR ': .Result declared in .divAssign' type=.Result origin=null CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in .Result' type=kotlin.Unit origin=DIVEQ - $this: GET_VAR 'val tmp_4: .Result [val] declared in .divAssign' type=.Result origin=null - : CALL 'public final fun div (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=DIVEQ + $this: GET_VAR 'val tmp_4: .Result declared in .divAssign' type=.Result origin=null + : CALL 'public final fun div (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=DIVEQ $this: CALL 'public final fun (): kotlin.Int declared in .Result' type=kotlin.Int origin=DIVEQ - $this: GET_VAR 'val tmp_4: .Result [val] declared in .divAssign' type=.Result origin=null + $this: GET_VAR 'val tmp_4: .Result declared in .divAssign' type=.Result origin=null other: CALL 'public final fun (): kotlin.Int declared in .Result' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR 'other: .Result declared in .divAssign' type=.Result origin=null FUN name:box visibility:public modality:FINAL <> () returnType:kotlin.String BLOCK_BODY VAR name:result type:.Result [val] - CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) [primary] declared in .Result' type=.Result origin=null + CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) declared in .Result' type=.Result origin=null i: CONST Int type=kotlin.Int value=0 - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with [inline] declared in kotlin.StandardKt' type=kotlin.Unit origin=null + CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=kotlin.Unit origin=null : kotlin.Int : kotlin.Unit receiver: CONST Int type=kotlin.Int value=1 @@ -280,41 +280,41 @@ FILE fqName: fileName:/compoundAssignmentOperators.kt FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> ($receiver:kotlin.Int) returnType:kotlin.Unit $receiver: VALUE_PARAMETER name:$this$with type:kotlin.Int BLOCK_BODY - CALL 'public final fun plusAssign ($context_receiver_0: kotlin.Int, other: .Result): kotlin.Unit [operator] declared in ' type=kotlin.Unit origin=PLUSEQ - $receiver: GET_VAR 'val result: .Result [val] declared in .box' type=.Result origin=PLUSEQ + CALL 'public final fun plusAssign ($context_receiver_0: kotlin.Int, other: .Result): kotlin.Unit declared in ' type=kotlin.Unit origin=PLUSEQ + $receiver: GET_VAR 'val result: .Result declared in .box' type=.Result origin=PLUSEQ $context_receiver_0: GET_VAR '$this$with: kotlin.Int declared in .box.' type=kotlin.Int origin=null - other: CALL 'public final fun plus ($context_receiver_0: kotlin.Int, other: .Result): .Result [operator] declared in ' type=.Result origin=PLUS - $receiver: CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) [primary] declared in .Result' type=.Result origin=null + other: CALL 'public final fun plus ($context_receiver_0: kotlin.Int, other: .Result): .Result declared in ' type=.Result origin=PLUS + $receiver: CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) declared in .Result' type=.Result origin=null i: CONST Int type=kotlin.Int value=1 $context_receiver_0: GET_VAR '$this$with: kotlin.Int declared in .box.' type=kotlin.Int origin=null - other: CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) [primary] declared in .Result' type=.Result origin=null + other: CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) declared in .Result' type=.Result origin=null i: CONST Int type=kotlin.Int value=1 - CALL 'public final fun minusAssign ($context_receiver_0: kotlin.Int, other: .Result): kotlin.Unit [operator] declared in ' type=kotlin.Unit origin=MINUSEQ - $receiver: GET_VAR 'val result: .Result [val] declared in .box' type=.Result origin=MINUSEQ + CALL 'public final fun minusAssign ($context_receiver_0: kotlin.Int, other: .Result): kotlin.Unit declared in ' type=kotlin.Unit origin=MINUSEQ + $receiver: GET_VAR 'val result: .Result declared in .box' type=.Result origin=MINUSEQ $context_receiver_0: GET_VAR '$this$with: kotlin.Int declared in .box.' type=kotlin.Int origin=null - other: CALL 'public final fun minus ($context_receiver_0: kotlin.Int, other: .Result): .Result [operator] declared in ' type=.Result origin=MINUS - $receiver: CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) [primary] declared in .Result' type=.Result origin=null + other: CALL 'public final fun minus ($context_receiver_0: kotlin.Int, other: .Result): .Result declared in ' type=.Result origin=MINUS + $receiver: CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) declared in .Result' type=.Result origin=null i: CONST Int type=kotlin.Int value=1 $context_receiver_0: GET_VAR '$this$with: kotlin.Int declared in .box.' type=kotlin.Int origin=null - other: CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) [primary] declared in .Result' type=.Result origin=null + other: CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) declared in .Result' type=.Result origin=null i: CONST Int type=kotlin.Int value=0 - CALL 'public final fun timesAssign ($context_receiver_0: kotlin.Int, other: .Result): kotlin.Unit [operator] declared in ' type=kotlin.Unit origin=MULTEQ - $receiver: GET_VAR 'val result: .Result [val] declared in .box' type=.Result origin=MULTEQ + CALL 'public final fun timesAssign ($context_receiver_0: kotlin.Int, other: .Result): kotlin.Unit declared in ' type=kotlin.Unit origin=MULTEQ + $receiver: GET_VAR 'val result: .Result declared in .box' type=.Result origin=MULTEQ $context_receiver_0: GET_VAR '$this$with: kotlin.Int declared in .box.' type=kotlin.Int origin=null - other: CALL 'public final fun times ($context_receiver_0: kotlin.Int, other: .Result): .Result [operator] declared in ' type=.Result origin=MUL - $receiver: CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) [primary] declared in .Result' type=.Result origin=null + other: CALL 'public final fun times ($context_receiver_0: kotlin.Int, other: .Result): .Result declared in ' type=.Result origin=MUL + $receiver: CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) declared in .Result' type=.Result origin=null i: CONST Int type=kotlin.Int value=1 $context_receiver_0: GET_VAR '$this$with: kotlin.Int declared in .box.' type=kotlin.Int origin=null - other: CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) [primary] declared in .Result' type=.Result origin=null + other: CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) declared in .Result' type=.Result origin=null i: CONST Int type=kotlin.Int value=2 - CALL 'public final fun divAssign ($context_receiver_0: kotlin.Int, other: .Result): kotlin.Unit [operator] declared in ' type=kotlin.Unit origin=DIVEQ - $receiver: GET_VAR 'val result: .Result [val] declared in .box' type=.Result origin=DIVEQ + CALL 'public final fun divAssign ($context_receiver_0: kotlin.Int, other: .Result): kotlin.Unit declared in ' type=kotlin.Unit origin=DIVEQ + $receiver: GET_VAR 'val result: .Result declared in .box' type=.Result origin=DIVEQ $context_receiver_0: GET_VAR '$this$with: kotlin.Int declared in .box.' type=kotlin.Int origin=null - other: CALL 'public final fun div ($context_receiver_0: kotlin.Int, other: .Result): .Result [operator] declared in ' type=.Result origin=DIV - $receiver: CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) [primary] declared in .Result' type=.Result origin=null + other: CALL 'public final fun div ($context_receiver_0: kotlin.Int, other: .Result): .Result declared in ' type=.Result origin=DIV + $receiver: CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) declared in .Result' type=.Result origin=null i: CONST Int type=kotlin.Int value=4 $context_receiver_0: GET_VAR '$this$with: kotlin.Int declared in .box.' type=kotlin.Int origin=null - other: CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) [primary] declared in .Result' type=.Result origin=null + other: CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) declared in .Result' type=.Result origin=null i: CONST Int type=kotlin.Int value=2 RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' WHEN type=kotlin.String origin=IF @@ -323,7 +323,7 @@ FILE fqName: fileName:/compoundAssignmentOperators.kt BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ arg0: CALL 'public final fun (): kotlin.Int declared in .Result' type=kotlin.Int origin=GET_PROPERTY - $this: GET_VAR 'val result: .Result [val] declared in .box' type=.Result origin=null + $this: GET_VAR 'val result: .Result declared in .box' type=.Result origin=null arg1: CONST Int type=kotlin.Int value=1 then: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ arg0: CALL 'public final fun (): kotlin.Int declared in ' type=kotlin.Int origin=GET_PROPERTY diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/contextReceiverMethod.ir.txt b/compiler/testData/ir/irText/declarations/contextReceivers/contextReceiverMethod.ir.txt index 1642af731de..3c27d613f69 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/contextReceiverMethod.ir.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/contextReceiverMethod.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/contextReceiverMethod.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Context CONSTRUCTOR visibility:public <> () returnType:.Context [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Context modality:FINAL visibility:public superTypes:[kotlin.Any]' FUN name:foo visibility:public modality:FINAL <> ($this:.Context) returnType:kotlin.Int $this: VALUE_PARAMETER name: type:.Context @@ -12,7 +12,7 @@ FILE fqName: fileName:/contextReceiverMethod.kt CONST Int type=kotlin.Int value=1 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -29,7 +29,7 @@ FILE fqName: fileName:/contextReceiverMethod.kt CONSTRUCTOR visibility:public <> ($context_receiver_0:.Context) returnType:.Test [primary] VALUE_PARAMETER name:$context_receiver_0 index:0 type:.Context BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' SET_FIELD 'FIELD FIELD_FOR_CLASS_CONTEXT_RECEIVER name:contextReceiverField0 type:.Context visibility:private [final]' type=kotlin.Unit origin=null receiver: GET_VAR ': .Test declared in .Test' type=.Test origin=null value: GET_VAR '$context_receiver_0: .Context declared in .Test.' type=.Context origin=null @@ -48,7 +48,7 @@ FILE fqName: fileName:/contextReceiverMethod.kt receiver: GET_VAR ': .Test declared in .Test.bar' type=.Test 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/contextualFunctionConversion.fir.ir.txt b/compiler/testData/ir/irText/declarations/contextReceivers/contextualFunctionConversion.fir.ir.txt index 8b5953bd1f9..c72881910f1 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/contextualFunctionConversion.fir.ir.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/contextualFunctionConversion.fir.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/contextualFunctionConversion.kt VALUE_PARAMETER name:f index:0 type:kotlin.Function1 BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun withContext (f: kotlin.Function1): kotlin.String declared in ' - CALL 'public abstract fun invoke (p1: P1 of kotlin.Function1): R of kotlin.Function1 [operator] declared in kotlin.Function1' type=kotlin.String origin=INVOKE + CALL 'public abstract fun invoke (p1: P1 of kotlin.Function1): R of kotlin.Function1 declared in kotlin.Function1' type=kotlin.String origin=INVOKE $this: GET_VAR 'f: kotlin.Function1 declared in .withContext' type=kotlin.Function1 origin=VARIABLE_AS_FUNCTION p1: CONST String type=kotlin.String value="OK" FUN name:callWithContext visibility:public modality:FINAL <> (f:kotlin.Function1) returnType:kotlin.String diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/contextualFunctionConversion.ir.txt b/compiler/testData/ir/irText/declarations/contextReceivers/contextualFunctionConversion.ir.txt index 44870c746ec..7ca04b7c2fa 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/contextualFunctionConversion.ir.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/contextualFunctionConversion.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/contextualFunctionConversion.kt VALUE_PARAMETER name:f index:0 type:@[ContextFunctionTypeParams(count = '1')] kotlin.Function1 BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun withContext (f: @[ContextFunctionTypeParams(count = '1')] kotlin.Function1): kotlin.String declared in ' - CALL 'public abstract fun invoke (p1: P1 of kotlin.Function1): R of kotlin.Function1 [operator] declared in kotlin.Function1' type=kotlin.String origin=INVOKE + CALL 'public abstract fun invoke (p1: P1 of kotlin.Function1): R of kotlin.Function1 declared in kotlin.Function1' type=kotlin.String origin=INVOKE $this: GET_VAR 'f: @[ContextFunctionTypeParams(count = '1')] kotlin.Function1 declared in .withContext' type=@[ContextFunctionTypeParams(count = '1')] kotlin.Function1 origin=VARIABLE_AS_FUNCTION p1: CONST String type=kotlin.String value="OK" FUN name:callWithContext visibility:public modality:FINAL <> (f:kotlin.Function1) returnType:kotlin.String diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/contextualInlineCall.fir.ir.txt b/compiler/testData/ir/irText/declarations/contextReceivers/contextualInlineCall.fir.ir.txt index 5ac35a8bc5a..8335eaa0bbb 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/contextualInlineCall.fir.ir.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/contextualInlineCall.fir.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/contextualInlineCall.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Context CONSTRUCTOR visibility:public <> () returnType:.Context [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Context modality:FINAL visibility:public superTypes:[kotlin.Any]' FUN name:c visibility:public modality:FINAL <> ($this:.Context) returnType:kotlin.Int $this: VALUE_PARAMETER name: type:.Context @@ -12,7 +12,7 @@ FILE fqName: fileName:/contextualInlineCall.kt CONST Int type=kotlin.Int value=1 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -27,7 +27,7 @@ FILE fqName: fileName:/contextualInlineCall.kt contextReceiverParametersCount: 1 VALUE_PARAMETER name:$context_receiver_0 index:0 type:.Context BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun testInline ($context_receiver_0: .Context): kotlin.Int [inline] declared in ' + RETURN type=kotlin.Nothing from='public final fun testInline ($context_receiver_0: .Context): kotlin.Int declared in ' CALL 'public final fun c (): kotlin.Int declared in .Context' type=kotlin.Int origin=null $this: GET_VAR '$context_receiver_0: .Context declared in .testInline' type=.Context origin=null FUN name:testInlineWithArg visibility:public modality:FINAL <> ($context_receiver_0:.Context, i:kotlin.Int) returnType:kotlin.Int [inline] @@ -35,8 +35,8 @@ FILE fqName: fileName:/contextualInlineCall.kt VALUE_PARAMETER name:$context_receiver_0 index:0 type:.Context VALUE_PARAMETER name:i index:1 type:kotlin.Int BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun testInlineWithArg ($context_receiver_0: .Context, i: kotlin.Int): kotlin.Int [inline] declared in ' - CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUS + RETURN type=kotlin.Nothing from='public final fun testInlineWithArg ($context_receiver_0: .Context, i: kotlin.Int): kotlin.Int declared in ' + CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUS $this: GET_VAR 'i: kotlin.Int declared in .testInlineWithArg' type=kotlin.Int origin=null other: CALL 'public final fun c (): kotlin.Int declared in .Context' type=kotlin.Int origin=null $this: GET_VAR '$context_receiver_0: .Context declared in .testInlineWithArg' type=.Context origin=null @@ -46,9 +46,9 @@ FILE fqName: fileName:/contextualInlineCall.kt VALUE_PARAMETER name:$context_receiver_0 index:0 type:.Context VALUE_PARAMETER name:i index:1 type:kotlin.Int BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun testInlineWithExtensionAndArg ($context_receiver_0: .Context, i: kotlin.Int): kotlin.Int [inline] declared in ' - CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUS + RETURN type=kotlin.Nothing from='public final fun testInlineWithExtensionAndArg ($context_receiver_0: .Context, i: kotlin.Int): kotlin.Int declared in ' + CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUS $this: GET_VAR ': kotlin.Int declared in .testInlineWithExtensionAndArg' type=kotlin.Int origin=null other: GET_VAR 'i: kotlin.Int declared in .testInlineWithExtensionAndArg' type=kotlin.Int origin=null other: CALL 'public final fun c (): kotlin.Int declared in .Context' type=kotlin.Int origin=null @@ -60,10 +60,10 @@ FILE fqName: fileName:/contextualInlineCall.kt VALUE_PARAMETER name:i1 index:1 type:kotlin.Int VALUE_PARAMETER name:i2 index:2 type:kotlin.Int BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun testInlineWithExtensionAndMultipleArgs ($context_receiver_0: .Context, i1: kotlin.Int, i2: kotlin.Int): kotlin.Int [inline] declared in ' - CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUS + RETURN type=kotlin.Nothing from='public final fun testInlineWithExtensionAndMultipleArgs ($context_receiver_0: .Context, i1: kotlin.Int, i2: kotlin.Int): kotlin.Int declared in ' + CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUS $this: GET_VAR ': kotlin.Int declared in .testInlineWithExtensionAndMultipleArgs' type=kotlin.Int origin=null other: GET_VAR 'i1: kotlin.Int declared in .testInlineWithExtensionAndMultipleArgs' type=kotlin.Int origin=null other: GET_VAR 'i2: kotlin.Int declared in .testInlineWithExtensionAndMultipleArgs' type=kotlin.Int origin=null @@ -74,7 +74,7 @@ FILE fqName: fileName:/contextualInlineCall.kt CONSTRUCTOR visibility:public <> (a:kotlin.Any?) returnType:.A [primary] VALUE_PARAMETER name:a index:0 type:kotlin.Any? BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:A modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:a visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:a type:kotlin.Any? visibility:private [final] @@ -89,7 +89,7 @@ FILE fqName: fileName:/contextualInlineCall.kt receiver: GET_VAR ': .A declared in .A.' type=.A 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -112,11 +112,11 @@ FILE fqName: fileName:/contextualInlineCall.kt EXPRESSION_BODY CONST Int type=kotlin.Int value=2 BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun testInlineWithExtensionAndMultipleContextsAndArgs ($context_receiver_0: .Context, $context_receiver_1: .A, i1: kotlin.Int, i2: kotlin.Int): kotlin.Int [inline] declared in ' - CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUS + RETURN type=kotlin.Nothing from='public final fun testInlineWithExtensionAndMultipleContextsAndArgs ($context_receiver_0: .Context, $context_receiver_1: .A, i1: kotlin.Int, i2: kotlin.Int): kotlin.Int declared in ' + CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUS $this: GET_VAR ': kotlin.Int declared in .testInlineWithExtensionAndMultipleContextsAndArgs' type=kotlin.Int origin=null other: GET_VAR 'i1: kotlin.Int declared in .testInlineWithExtensionAndMultipleContextsAndArgs' type=kotlin.Int origin=null other: GET_VAR 'i2: kotlin.Int declared in .testInlineWithExtensionAndMultipleContextsAndArgs' type=kotlin.Int origin=null @@ -135,64 +135,64 @@ FILE fqName: fileName:/contextualInlineCall.kt FUN name:box visibility:public modality:FINAL <> () returnType:kotlin.String BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with [inline] declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=kotlin.Nothing origin=null : .Context : kotlin.Nothing - receiver: CONSTRUCTOR_CALL 'public constructor () [primary] declared in .Context' type=.Context origin=null + receiver: CONSTRUCTOR_CALL 'public constructor () declared in .Context' type=.Context origin=null block: FUN_EXPR type=@[ExtensionFunctionType] kotlin.Function1<.Context, kotlin.Nothing> origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> ($receiver:.Context) returnType:kotlin.Nothing $receiver: VALUE_PARAMETER name:$this$with type:.Context BLOCK_BODY VAR name:result type:kotlin.Int [var] CONST Int type=kotlin.Int value=0 - SET_VAR 'var result: kotlin.Int [var] declared in .box.' type=kotlin.Unit origin=PLUSEQ - CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'var result: kotlin.Int [var] declared in .box.' type=kotlin.Int origin=null - other: CALL 'public final fun testInline ($context_receiver_0: .Context): kotlin.Int [inline] declared in ' type=kotlin.Int origin=null + SET_VAR 'var result: kotlin.Int declared in .box.' type=kotlin.Unit origin=PLUSEQ + CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'var result: kotlin.Int declared in .box.' type=kotlin.Int origin=null + other: CALL 'public final fun testInline ($context_receiver_0: .Context): kotlin.Int declared in ' type=kotlin.Int origin=null $context_receiver_0: GET_VAR '$this$with: .Context declared in .box.' type=.Context origin=null - SET_VAR 'var result: kotlin.Int [var] declared in .box.' type=kotlin.Unit origin=PLUSEQ - CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'var result: kotlin.Int [var] declared in .box.' type=kotlin.Int origin=null - other: CALL 'public final fun testInlineWithArg ($context_receiver_0: .Context, i: kotlin.Int): kotlin.Int [inline] declared in ' type=kotlin.Int origin=null + SET_VAR 'var result: kotlin.Int declared in .box.' type=kotlin.Unit origin=PLUSEQ + CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'var result: kotlin.Int declared in .box.' type=kotlin.Int origin=null + other: CALL 'public final fun testInlineWithArg ($context_receiver_0: .Context, i: kotlin.Int): kotlin.Int declared in ' type=kotlin.Int origin=null $context_receiver_0: GET_VAR '$this$with: .Context declared in .box.' type=.Context origin=null i: CONST Int type=kotlin.Int value=1 - SET_VAR 'var result: kotlin.Int [var] declared in .box.' type=kotlin.Unit origin=PLUSEQ - CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'var result: kotlin.Int [var] declared in .box.' type=kotlin.Int origin=null - other: CALL 'public final fun testInlineWithExtensionAndArg ($context_receiver_0: .Context, i: kotlin.Int): kotlin.Int [inline] declared in ' type=kotlin.Int origin=null + SET_VAR 'var result: kotlin.Int declared in .box.' type=kotlin.Unit origin=PLUSEQ + CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'var result: kotlin.Int declared in .box.' type=kotlin.Int origin=null + other: CALL 'public final fun testInlineWithExtensionAndArg ($context_receiver_0: .Context, i: kotlin.Int): kotlin.Int declared in ' type=kotlin.Int origin=null $receiver: CONST Int type=kotlin.Int value=1 $context_receiver_0: GET_VAR '$this$with: .Context declared in .box.' type=.Context origin=null i: CONST Int type=kotlin.Int value=1 - SET_VAR 'var result: kotlin.Int [var] declared in .box.' type=kotlin.Unit origin=PLUSEQ - CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'var result: kotlin.Int [var] declared in .box.' type=kotlin.Int origin=null - other: CALL 'public final fun testInlineWithExtensionAndMultipleArgs ($context_receiver_0: .Context, i1: kotlin.Int, i2: kotlin.Int): kotlin.Int [inline] declared in ' type=kotlin.Int origin=null + SET_VAR 'var result: kotlin.Int declared in .box.' type=kotlin.Unit origin=PLUSEQ + CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'var result: kotlin.Int declared in .box.' type=kotlin.Int origin=null + other: CALL 'public final fun testInlineWithExtensionAndMultipleArgs ($context_receiver_0: .Context, i1: kotlin.Int, i2: kotlin.Int): kotlin.Int declared in ' type=kotlin.Int origin=null $receiver: CONST Int type=kotlin.Int value=1 $context_receiver_0: GET_VAR '$this$with: .Context declared in .box.' type=.Context origin=null i1: CONST Int type=kotlin.Int value=1 i2: CONST Int type=kotlin.Int value=2 - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with [inline] declared in kotlin.StandardKt' type=kotlin.Unit origin=null + CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=kotlin.Unit origin=null : .A : kotlin.Unit - receiver: CONSTRUCTOR_CALL 'public constructor (a: kotlin.Any?) [primary] declared in .A' type=.A origin=null + receiver: CONSTRUCTOR_CALL 'public constructor (a: kotlin.Any?) declared in .A' type=.A origin=null a: CONST Int type=kotlin.Int value=1 block: FUN_EXPR type=@[ExtensionFunctionType] kotlin.Function1<.A, kotlin.Unit> origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> ($receiver:.A) returnType:kotlin.Unit $receiver: VALUE_PARAMETER name:$this$with type:.A BLOCK_BODY - SET_VAR 'var result: kotlin.Int [var] declared in .box.' type=kotlin.Unit origin=PLUSEQ - CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'var result: kotlin.Int [var] declared in .box.' type=kotlin.Int origin=null - other: CALL 'public final fun testInlineWithExtensionAndMultipleContextsAndArgs ($context_receiver_0: .Context, $context_receiver_1: .A, i1: kotlin.Int, i2: kotlin.Int): kotlin.Int [inline] declared in ' type=kotlin.Int origin=null + SET_VAR 'var result: kotlin.Int declared in .box.' type=kotlin.Unit origin=PLUSEQ + CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'var result: kotlin.Int declared in .box.' type=kotlin.Int origin=null + other: CALL 'public final fun testInlineWithExtensionAndMultipleContextsAndArgs ($context_receiver_0: .Context, $context_receiver_1: .A, i1: kotlin.Int, i2: kotlin.Int): kotlin.Int declared in ' type=kotlin.Int origin=null $receiver: CONST Int type=kotlin.Int value=1 $context_receiver_0: GET_VAR '$this$with: .Context declared in .box.' type=.Context origin=null $context_receiver_1: GET_VAR '$this$with: .A declared in .box..' type=.A origin=null i1: CONST Int type=kotlin.Int value=1 i2: CONST Int type=kotlin.Int value=2 - SET_VAR 'var result: kotlin.Int [var] declared in .box.' type=kotlin.Unit origin=PLUSEQ - CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'var result: kotlin.Int [var] declared in .box.' type=kotlin.Int origin=null - other: CALL 'public final fun testInlineWithExtensionAndMultipleContextsAndArgs ($context_receiver_0: .Context, $context_receiver_1: .A, i1: kotlin.Int, i2: kotlin.Int): kotlin.Int [inline] declared in ' type=kotlin.Int origin=null + SET_VAR 'var result: kotlin.Int declared in .box.' type=kotlin.Unit origin=PLUSEQ + CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'var result: kotlin.Int declared in .box.' type=kotlin.Int origin=null + other: CALL 'public final fun testInlineWithExtensionAndMultipleContextsAndArgs ($context_receiver_0: .Context, $context_receiver_1: .A, i1: kotlin.Int, i2: kotlin.Int): kotlin.Int declared in ' type=kotlin.Int origin=null $receiver: CONST Int type=kotlin.Int value=1 $context_receiver_0: GET_VAR '$this$with: .Context declared in .box.' type=.Context origin=null $context_receiver_1: GET_VAR '$this$with: .A declared in .box..' type=.A origin=null @@ -200,7 +200,7 @@ FILE fqName: fileName:/contextualInlineCall.kt WHEN type=kotlin.String origin=IF BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'var result: kotlin.Int [var] declared in .box.' type=kotlin.Int origin=null + arg0: GET_VAR 'var result: kotlin.Int declared in .box.' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=23 then: CONST String type=kotlin.String value="OK" BRANCH diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/contextualInlineCall.ir.txt b/compiler/testData/ir/irText/declarations/contextReceivers/contextualInlineCall.ir.txt index 0995284e3b0..cbb38fd00c2 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/contextualInlineCall.ir.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/contextualInlineCall.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/contextualInlineCall.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Context CONSTRUCTOR visibility:public <> () returnType:.Context [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Context modality:FINAL visibility:public superTypes:[kotlin.Any]' FUN name:c visibility:public modality:FINAL <> ($this:.Context) returnType:kotlin.Int $this: VALUE_PARAMETER name: type:.Context @@ -12,7 +12,7 @@ FILE fqName: fileName:/contextualInlineCall.kt CONST Int type=kotlin.Int value=1 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -27,7 +27,7 @@ FILE fqName: fileName:/contextualInlineCall.kt contextReceiverParametersCount: 1 VALUE_PARAMETER name:$context_receiver_0 index:0 type:.Context BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun testInline ($context_receiver_0: .Context): kotlin.Int [inline] declared in ' + RETURN type=kotlin.Nothing from='public final fun testInline ($context_receiver_0: .Context): kotlin.Int declared in ' CALL 'public final fun c (): kotlin.Int declared in .Context' type=kotlin.Int origin=null $this: GET_VAR '$context_receiver_0: .Context declared in .testInline' type=.Context origin=null FUN name:testInlineWithArg visibility:public modality:FINAL <> ($context_receiver_0:.Context, i:kotlin.Int) returnType:kotlin.Int [inline] @@ -35,8 +35,8 @@ FILE fqName: fileName:/contextualInlineCall.kt VALUE_PARAMETER name:$context_receiver_0 index:0 type:.Context VALUE_PARAMETER name:i index:1 type:kotlin.Int BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun testInlineWithArg ($context_receiver_0: .Context, i: kotlin.Int): kotlin.Int [inline] declared in ' - CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUS + RETURN type=kotlin.Nothing from='public final fun testInlineWithArg ($context_receiver_0: .Context, i: kotlin.Int): kotlin.Int declared in ' + CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUS $this: GET_VAR 'i: kotlin.Int declared in .testInlineWithArg' type=kotlin.Int origin=null other: CALL 'public final fun c (): kotlin.Int declared in .Context' type=kotlin.Int origin=null $this: GET_VAR '$context_receiver_0: .Context declared in .testInlineWithArg' type=.Context origin=null @@ -46,9 +46,9 @@ FILE fqName: fileName:/contextualInlineCall.kt VALUE_PARAMETER name:$context_receiver_0 index:0 type:.Context VALUE_PARAMETER name:i index:1 type:kotlin.Int BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun testInlineWithExtensionAndArg ($context_receiver_0: .Context, i: kotlin.Int): kotlin.Int [inline] declared in ' - CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUS + RETURN type=kotlin.Nothing from='public final fun testInlineWithExtensionAndArg ($context_receiver_0: .Context, i: kotlin.Int): kotlin.Int declared in ' + CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUS $this: GET_VAR ': kotlin.Int declared in .testInlineWithExtensionAndArg' type=kotlin.Int origin=null other: GET_VAR 'i: kotlin.Int declared in .testInlineWithExtensionAndArg' type=kotlin.Int origin=null other: CALL 'public final fun c (): kotlin.Int declared in .Context' type=kotlin.Int origin=null @@ -60,10 +60,10 @@ FILE fqName: fileName:/contextualInlineCall.kt VALUE_PARAMETER name:i1 index:1 type:kotlin.Int VALUE_PARAMETER name:i2 index:2 type:kotlin.Int BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun testInlineWithExtensionAndMultipleArgs ($context_receiver_0: .Context, i1: kotlin.Int, i2: kotlin.Int): kotlin.Int [inline] declared in ' - CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUS + RETURN type=kotlin.Nothing from='public final fun testInlineWithExtensionAndMultipleArgs ($context_receiver_0: .Context, i1: kotlin.Int, i2: kotlin.Int): kotlin.Int declared in ' + CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUS $this: GET_VAR ': kotlin.Int declared in .testInlineWithExtensionAndMultipleArgs' type=kotlin.Int origin=null other: GET_VAR 'i1: kotlin.Int declared in .testInlineWithExtensionAndMultipleArgs' type=kotlin.Int origin=null other: GET_VAR 'i2: kotlin.Int declared in .testInlineWithExtensionAndMultipleArgs' type=kotlin.Int origin=null @@ -74,7 +74,7 @@ FILE fqName: fileName:/contextualInlineCall.kt CONSTRUCTOR visibility:public <> (a:kotlin.Any?) returnType:.A [primary] VALUE_PARAMETER name:a index:0 type:kotlin.Any? BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:A modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:a visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:a type:kotlin.Any? visibility:private [final] @@ -89,7 +89,7 @@ FILE fqName: fileName:/contextualInlineCall.kt receiver: GET_VAR ': .A declared in .A.' type=.A 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -112,11 +112,11 @@ FILE fqName: fileName:/contextualInlineCall.kt EXPRESSION_BODY CONST Int type=kotlin.Int value=2 BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun testInlineWithExtensionAndMultipleContextsAndArgs ($context_receiver_0: .Context, $context_receiver_1: .A, i1: kotlin.Int, i2: kotlin.Int): kotlin.Int [inline] declared in ' - CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUS + RETURN type=kotlin.Nothing from='public final fun testInlineWithExtensionAndMultipleContextsAndArgs ($context_receiver_0: .Context, $context_receiver_1: .A, i1: kotlin.Int, i2: kotlin.Int): kotlin.Int declared in ' + CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUS $this: GET_VAR ': kotlin.Int declared in .testInlineWithExtensionAndMultipleContextsAndArgs' type=kotlin.Int origin=null other: GET_VAR 'i1: kotlin.Int declared in .testInlineWithExtensionAndMultipleContextsAndArgs' type=kotlin.Int origin=null other: GET_VAR 'i2: kotlin.Int declared in .testInlineWithExtensionAndMultipleContextsAndArgs' type=kotlin.Int origin=null @@ -135,64 +135,64 @@ FILE fqName: fileName:/contextualInlineCall.kt FUN name:box visibility:public modality:FINAL <> () returnType:kotlin.String BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with [inline] declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=kotlin.Nothing origin=null : .Context : kotlin.Nothing - receiver: CONSTRUCTOR_CALL 'public constructor () [primary] declared in .Context' type=.Context origin=null + receiver: CONSTRUCTOR_CALL 'public constructor () declared in .Context' type=.Context origin=null block: FUN_EXPR type=@[ExtensionFunctionType] kotlin.Function1<.Context, kotlin.Nothing> origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> ($receiver:.Context) returnType:kotlin.Nothing $receiver: VALUE_PARAMETER name:$this$with type:.Context BLOCK_BODY VAR name:result type:kotlin.Int [var] CONST Int type=kotlin.Int value=0 - SET_VAR 'var result: kotlin.Int [var] declared in .box.' type=kotlin.Unit origin=PLUSEQ - CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ - $this: GET_VAR 'var result: kotlin.Int [var] declared in .box.' type=kotlin.Int origin=PLUSEQ - other: CALL 'public final fun testInline ($context_receiver_0: .Context): kotlin.Int [inline] declared in ' type=kotlin.Int origin=null + SET_VAR 'var result: kotlin.Int declared in .box.' type=kotlin.Unit origin=PLUSEQ + CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ + $this: GET_VAR 'var result: kotlin.Int declared in .box.' type=kotlin.Int origin=PLUSEQ + other: CALL 'public final fun testInline ($context_receiver_0: .Context): kotlin.Int declared in ' type=kotlin.Int origin=null $context_receiver_0: GET_VAR '$this$with: .Context declared in .box.' type=.Context origin=null - SET_VAR 'var result: kotlin.Int [var] declared in .box.' type=kotlin.Unit origin=PLUSEQ - CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ - $this: GET_VAR 'var result: kotlin.Int [var] declared in .box.' type=kotlin.Int origin=PLUSEQ - other: CALL 'public final fun testInlineWithArg ($context_receiver_0: .Context, i: kotlin.Int): kotlin.Int [inline] declared in ' type=kotlin.Int origin=null + SET_VAR 'var result: kotlin.Int declared in .box.' type=kotlin.Unit origin=PLUSEQ + CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ + $this: GET_VAR 'var result: kotlin.Int declared in .box.' type=kotlin.Int origin=PLUSEQ + other: CALL 'public final fun testInlineWithArg ($context_receiver_0: .Context, i: kotlin.Int): kotlin.Int declared in ' type=kotlin.Int origin=null $context_receiver_0: GET_VAR '$this$with: .Context declared in .box.' type=.Context origin=null i: CONST Int type=kotlin.Int value=1 - SET_VAR 'var result: kotlin.Int [var] declared in .box.' type=kotlin.Unit origin=PLUSEQ - CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ - $this: GET_VAR 'var result: kotlin.Int [var] declared in .box.' type=kotlin.Int origin=PLUSEQ - other: CALL 'public final fun testInlineWithExtensionAndArg ($context_receiver_0: .Context, i: kotlin.Int): kotlin.Int [inline] declared in ' type=kotlin.Int origin=null + SET_VAR 'var result: kotlin.Int declared in .box.' type=kotlin.Unit origin=PLUSEQ + CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ + $this: GET_VAR 'var result: kotlin.Int declared in .box.' type=kotlin.Int origin=PLUSEQ + other: CALL 'public final fun testInlineWithExtensionAndArg ($context_receiver_0: .Context, i: kotlin.Int): kotlin.Int declared in ' type=kotlin.Int origin=null $receiver: CONST Int type=kotlin.Int value=1 $context_receiver_0: GET_VAR '$this$with: .Context declared in .box.' type=.Context origin=null i: CONST Int type=kotlin.Int value=1 - SET_VAR 'var result: kotlin.Int [var] declared in .box.' type=kotlin.Unit origin=PLUSEQ - CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ - $this: GET_VAR 'var result: kotlin.Int [var] declared in .box.' type=kotlin.Int origin=PLUSEQ - other: CALL 'public final fun testInlineWithExtensionAndMultipleArgs ($context_receiver_0: .Context, i1: kotlin.Int, i2: kotlin.Int): kotlin.Int [inline] declared in ' type=kotlin.Int origin=null + SET_VAR 'var result: kotlin.Int declared in .box.' type=kotlin.Unit origin=PLUSEQ + CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ + $this: GET_VAR 'var result: kotlin.Int declared in .box.' type=kotlin.Int origin=PLUSEQ + other: CALL 'public final fun testInlineWithExtensionAndMultipleArgs ($context_receiver_0: .Context, i1: kotlin.Int, i2: kotlin.Int): kotlin.Int declared in ' type=kotlin.Int origin=null $receiver: CONST Int type=kotlin.Int value=1 $context_receiver_0: GET_VAR '$this$with: .Context declared in .box.' type=.Context origin=null i1: CONST Int type=kotlin.Int value=1 i2: CONST Int type=kotlin.Int value=2 - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with [inline] declared in kotlin.StandardKt' type=kotlin.Unit origin=null + CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=kotlin.Unit origin=null : .A : kotlin.Unit - receiver: CONSTRUCTOR_CALL 'public constructor (a: kotlin.Any?) [primary] declared in .A' type=.A origin=null + receiver: CONSTRUCTOR_CALL 'public constructor (a: kotlin.Any?) declared in .A' type=.A origin=null a: CONST Int type=kotlin.Int value=1 block: FUN_EXPR type=@[ExtensionFunctionType] kotlin.Function1<.A, kotlin.Unit> origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> ($receiver:.A) returnType:kotlin.Unit $receiver: VALUE_PARAMETER name:$this$with type:.A BLOCK_BODY - SET_VAR 'var result: kotlin.Int [var] declared in .box.' type=kotlin.Unit origin=PLUSEQ - CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ - $this: GET_VAR 'var result: kotlin.Int [var] declared in .box.' type=kotlin.Int origin=PLUSEQ - other: CALL 'public final fun testInlineWithExtensionAndMultipleContextsAndArgs ($context_receiver_0: .Context, $context_receiver_1: .A, i1: kotlin.Int, i2: kotlin.Int): kotlin.Int [inline] declared in ' type=kotlin.Int origin=null + SET_VAR 'var result: kotlin.Int declared in .box.' type=kotlin.Unit origin=PLUSEQ + CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ + $this: GET_VAR 'var result: kotlin.Int declared in .box.' type=kotlin.Int origin=PLUSEQ + other: CALL 'public final fun testInlineWithExtensionAndMultipleContextsAndArgs ($context_receiver_0: .Context, $context_receiver_1: .A, i1: kotlin.Int, i2: kotlin.Int): kotlin.Int declared in ' type=kotlin.Int origin=null $receiver: CONST Int type=kotlin.Int value=1 $context_receiver_0: GET_VAR '$this$with: .Context declared in .box.' type=.Context origin=null $context_receiver_1: GET_VAR '$this$with: .A declared in .box..' type=.A origin=null i1: CONST Int type=kotlin.Int value=1 i2: CONST Int type=kotlin.Int value=2 - SET_VAR 'var result: kotlin.Int [var] declared in .box.' type=kotlin.Unit origin=PLUSEQ - CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ - $this: GET_VAR 'var result: kotlin.Int [var] declared in .box.' type=kotlin.Int origin=PLUSEQ - other: CALL 'public final fun testInlineWithExtensionAndMultipleContextsAndArgs ($context_receiver_0: .Context, $context_receiver_1: .A, i1: kotlin.Int, i2: kotlin.Int): kotlin.Int [inline] declared in ' type=kotlin.Int origin=null + SET_VAR 'var result: kotlin.Int declared in .box.' type=kotlin.Unit origin=PLUSEQ + CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ + $this: GET_VAR 'var result: kotlin.Int declared in .box.' type=kotlin.Int origin=PLUSEQ + other: CALL 'public final fun testInlineWithExtensionAndMultipleContextsAndArgs ($context_receiver_0: .Context, $context_receiver_1: .A, i1: kotlin.Int, i2: kotlin.Int): kotlin.Int declared in ' type=kotlin.Int origin=null $receiver: CONST Int type=kotlin.Int value=1 $context_receiver_0: GET_VAR '$this$with: .Context declared in .box.' type=.Context origin=null $context_receiver_1: GET_VAR '$this$with: .A declared in .box..' type=.A origin=null @@ -200,7 +200,7 @@ FILE fqName: fileName:/contextualInlineCall.kt WHEN type=kotlin.String origin=IF BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'var result: kotlin.Int [var] declared in .box.' type=kotlin.Int origin=null + arg0: GET_VAR 'var result: kotlin.Int declared in .box.' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=23 then: CONST String type=kotlin.String value="OK" BRANCH diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/contextualPrimaryConstructorWithParams.ir.txt b/compiler/testData/ir/irText/declarations/contextReceivers/contextualPrimaryConstructorWithParams.ir.txt index 0f710117aba..22a63940743 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/contextualPrimaryConstructorWithParams.ir.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/contextualPrimaryConstructorWithParams.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/contextualPrimaryConstructorWithParams.kt CONSTRUCTOR visibility:public <> (o:kotlin.String) returnType:.O [primary] VALUE_PARAMETER name:o index:0 type:kotlin.String BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:O modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:o visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:o type:kotlin.String visibility:private [final] @@ -19,7 +19,7 @@ FILE fqName: fileName:/contextualPrimaryConstructorWithParams.kt receiver: GET_VAR ': .O declared in .O.' type=.O 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -37,7 +37,7 @@ FILE fqName: fileName:/contextualPrimaryConstructorWithParams.kt VALUE_PARAMETER name:$context_receiver_0 index:0 type:.O VALUE_PARAMETER name:k index:1 type:kotlin.String BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' SET_FIELD 'FIELD FIELD_FOR_CLASS_CONTEXT_RECEIVER name:contextReceiverField0 type:.O visibility:private [final]' type=kotlin.Unit origin=null receiver: GET_VAR ': .OK declared in .OK' type=.OK origin=null value: GET_VAR '$context_receiver_0: .O declared in .OK.' type=.O origin=null @@ -56,7 +56,7 @@ FILE fqName: fileName:/contextualPrimaryConstructorWithParams.kt PROPERTY name:result visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:result type:kotlin.String visibility:private [final] EXPRESSION_BODY - CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS + CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS $this: CALL 'public final fun (): kotlin.String declared in .O' type=kotlin.String origin=GET_PROPERTY $this: GET_FIELD 'FIELD FIELD_FOR_CLASS_CONTEXT_RECEIVER name:contextReceiverField0 type:.O visibility:private [final]' type=.O origin=null receiver: GET_VAR ': .OK declared in .OK' type=.OK origin=null @@ -71,7 +71,7 @@ FILE fqName: fileName:/contextualPrimaryConstructorWithParams.kt receiver: GET_VAR ': .OK declared in .OK.' type=.OK 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -85,19 +85,19 @@ FILE fqName: fileName:/contextualPrimaryConstructorWithParams.kt FUN name:box visibility:public modality:FINAL <> () returnType:kotlin.String BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with [inline] declared in kotlin.StandardKt' type=kotlin.String origin=null + CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=kotlin.String origin=null : .O : kotlin.String - receiver: CONSTRUCTOR_CALL 'public constructor (o: kotlin.String) [primary] declared in .O' type=.O origin=null + receiver: CONSTRUCTOR_CALL 'public constructor (o: kotlin.String) declared in .O' type=.O origin=null o: CONST String type=kotlin.String value="O" block: FUN_EXPR type=@[ExtensionFunctionType] kotlin.Function1<.O, kotlin.String> origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> ($receiver:.O) returnType:kotlin.String $receiver: VALUE_PARAMETER name:$this$with type:.O BLOCK_BODY VAR name:ok type:.OK [val] - CONSTRUCTOR_CALL 'public constructor ($context_receiver_0: .O, k: kotlin.String) [primary] declared in .OK' type=.OK origin=null + CONSTRUCTOR_CALL 'public constructor ($context_receiver_0: .O, k: kotlin.String) declared in .OK' type=.OK origin=null $context_receiver_0: GET_VAR '$this$with: .O declared in .box.' type=.O origin=null k: CONST String type=kotlin.String value="K" RETURN type=kotlin.Nothing from='local final fun (): kotlin.String declared in .box' CALL 'public final fun (): kotlin.String declared in .OK' type=kotlin.String origin=GET_PROPERTY - $this: GET_VAR 'val ok: .OK [val] declared in .box.' type=.OK origin=null + $this: GET_VAR 'val ok: .OK declared in .box.' type=.OK origin=null diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/delegatedPropertiesOperators.fir.ir.txt b/compiler/testData/ir/irText/declarations/contextReceivers/delegatedPropertiesOperators.fir.ir.txt index 89b20370e80..dd70e5d78c1 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/delegatedPropertiesOperators.fir.ir.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/delegatedPropertiesOperators.fir.ir.txt @@ -18,7 +18,7 @@ FILE fqName: fileName:/delegatedPropertiesOperators.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Delegate CONSTRUCTOR visibility:public <> () returnType:.Delegate [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Delegate modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:delegateValue visibility:public modality:FINAL [var] FIELD PROPERTY_BACKING_FIELD name:delegateValue type:kotlin.String visibility:private @@ -47,10 +47,10 @@ FILE fqName: fileName:/delegatedPropertiesOperators.kt VALUE_PARAMETER name:property index:2 type:kotlin.reflect.KProperty<*> BLOCK_BODY CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=EQ - : CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null + : CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: CALL 'public final fun (): kotlin.Int declared in ' type=kotlin.Int origin=GET_PROPERTY other: GET_VAR '$context_receiver_0: kotlin.Int declared in .Delegate.getValue' type=kotlin.Int origin=null - RETURN type=kotlin.Nothing from='public final fun getValue ($context_receiver_0: kotlin.Int, thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): kotlin.String [operator] declared in .Delegate' + RETURN type=kotlin.Nothing from='public final fun getValue ($context_receiver_0: kotlin.Int, thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): kotlin.String declared in .Delegate' CALL 'public final fun (): kotlin.String declared in .Delegate' type=kotlin.String origin=GET_PROPERTY $this: GET_VAR ': .Delegate declared in .Delegate.getValue' type=.Delegate origin=null FUN name:setValue visibility:public modality:FINAL <> ($this:.Delegate, $context_receiver_0:kotlin.Int, thisRef:kotlin.Any?, property:kotlin.reflect.KProperty<*>, value:kotlin.String) returnType:kotlin.Unit [operator] @@ -62,7 +62,7 @@ FILE fqName: fileName:/delegatedPropertiesOperators.kt VALUE_PARAMETER name:value index:3 type:kotlin.String BLOCK_BODY CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=EQ - : CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null + : CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: CALL 'public final fun (): kotlin.Int declared in ' type=kotlin.Int origin=GET_PROPERTY other: GET_VAR '$context_receiver_0: kotlin.Int declared in .Delegate.setValue' type=kotlin.Int origin=null CALL 'public final fun (: kotlin.String): kotlin.Unit declared in .Delegate' type=kotlin.Unit origin=EQ @@ -70,7 +70,7 @@ FILE fqName: fileName:/delegatedPropertiesOperators.kt : GET_VAR 'value: kotlin.String declared in .Delegate.setValue' type=kotlin.String 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -87,7 +87,7 @@ FILE fqName: fileName:/delegatedPropertiesOperators.kt CONSTRUCTOR visibility:public <> ($context_receiver_0:kotlin.Int) returnType:.Result [primary] VALUE_PARAMETER name:$context_receiver_0 index:0 type:kotlin.Int BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' SET_FIELD 'FIELD FIELD_FOR_CLASS_CONTEXT_RECEIVER name:contextReceiverField0 type:kotlin.Int visibility:private [final]' type=kotlin.Unit origin=null receiver: GET_VAR ': .Result declared in .Result' type=.Result origin=null value: GET_VAR '$context_receiver_0: kotlin.Int declared in .Result.' type=kotlin.Int origin=null @@ -95,35 +95,35 @@ FILE fqName: fileName:/delegatedPropertiesOperators.kt PROPERTY name:s visibility:public modality:FINAL [delegated,var] FIELD PROPERTY_DELEGATE name:s$delegate type:.Delegate visibility:private [final] EXPRESSION_BODY - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .Delegate' type=.Delegate origin=null + CONSTRUCTOR_CALL 'public constructor () declared in .Delegate' type=.Delegate origin=null FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:.Result) returnType:kotlin.String correspondingProperty: PROPERTY name:s visibility:public modality:FINAL [delegated,var] $this: VALUE_PARAMETER name: type:.Result BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun (): kotlin.String declared in .Result' - CALL 'public final fun getValue ($context_receiver_0: kotlin.Int, thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): kotlin.String [operator] declared in .Delegate' type=kotlin.String origin=null + CALL 'public final fun getValue ($context_receiver_0: kotlin.Int, thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): kotlin.String declared in .Delegate' type=kotlin.String origin=null $this: GET_FIELD 'FIELD PROPERTY_DELEGATE name:s$delegate type:.Delegate visibility:private [final]' type=.Delegate origin=null receiver: GET_VAR ': .Result declared in .Result.' type=.Result origin=null $context_receiver_0: GET_FIELD 'FIELD FIELD_FOR_CLASS_CONTEXT_RECEIVER name:contextReceiverField0 type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null receiver: GET_VAR ': .Result declared in .Result.' type=.Result origin=null thisRef: GET_VAR ': .Result declared in .Result.' type=.Result origin=null - property: PROPERTY_REFERENCE 'public final s: kotlin.String [delegated,var]' field=null getter='public final fun (): kotlin.String declared in .Result' setter='public final fun (: kotlin.String): kotlin.Unit declared in .Result' type=kotlin.reflect.KMutableProperty1<.Result, kotlin.String> origin=PROPERTY_REFERENCE_FOR_DELEGATE + property: PROPERTY_REFERENCE 'public final s: kotlin.String' field=null getter='public final fun (): kotlin.String declared in .Result' setter='public final fun (: kotlin.String): kotlin.Unit declared in .Result' type=kotlin.reflect.KMutableProperty1<.Result, kotlin.String> origin=PROPERTY_REFERENCE_FOR_DELEGATE FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:.Result, :kotlin.String) returnType:kotlin.Unit correspondingProperty: PROPERTY name:s visibility:public modality:FINAL [delegated,var] $this: VALUE_PARAMETER name: type:.Result VALUE_PARAMETER name: index:0 type:kotlin.String BLOCK_BODY - CALL 'public final fun setValue ($context_receiver_0: kotlin.Int, thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>, value: kotlin.String): kotlin.Unit [operator] declared in .Delegate' type=kotlin.Unit origin=null + CALL 'public final fun setValue ($context_receiver_0: kotlin.Int, thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>, value: kotlin.String): kotlin.Unit declared in .Delegate' type=kotlin.Unit origin=null $this: GET_FIELD 'FIELD PROPERTY_DELEGATE name:s$delegate type:.Delegate visibility:private [final]' type=.Delegate origin=null receiver: GET_VAR ': .Result declared in .Result.' type=.Result origin=null $context_receiver_0: GET_FIELD 'FIELD FIELD_FOR_CLASS_CONTEXT_RECEIVER name:contextReceiverField0 type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null receiver: GET_VAR ': .Result declared in .Result.' type=.Result origin=null thisRef: GET_VAR ': .Result declared in .Result.' type=.Result origin=null - property: PROPERTY_REFERENCE 'public final s: kotlin.String [delegated,var]' field=null getter='public final fun (): kotlin.String declared in .Result' setter='public final fun (: kotlin.String): kotlin.Unit declared in .Result' type=kotlin.reflect.KMutableProperty1<.Result, kotlin.String> origin=PROPERTY_REFERENCE_FOR_DELEGATE + property: PROPERTY_REFERENCE 'public final s: kotlin.String' field=null getter='public final fun (): kotlin.String declared in .Result' setter='public final fun (: kotlin.String): kotlin.Unit declared in .Result' type=kotlin.reflect.KMutableProperty1<.Result, kotlin.String> origin=PROPERTY_REFERENCE_FOR_DELEGATE value: GET_VAR ': kotlin.String declared in .Result.' type=kotlin.String 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -137,7 +137,7 @@ FILE fqName: fileName:/delegatedPropertiesOperators.kt FUN name:box visibility:public modality:FINAL <> () returnType:kotlin.String BLOCK_BODY VAR name:result type:.Result [val] - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with [inline] declared in kotlin.StandardKt' type=.Result origin=null + CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=.Result origin=null : kotlin.Int : .Result receiver: CONST Int type=kotlin.Int value=1 @@ -146,21 +146,21 @@ FILE fqName: fileName:/delegatedPropertiesOperators.kt $receiver: VALUE_PARAMETER name:$this$with type:kotlin.Int BLOCK_BODY RETURN type=kotlin.Nothing from='local final fun (): .Result declared in .box' - CONSTRUCTOR_CALL 'public constructor ($context_receiver_0: kotlin.Int) [primary] declared in .Result' type=.Result origin=null + CONSTRUCTOR_CALL 'public constructor ($context_receiver_0: kotlin.Int) declared in .Result' type=.Result origin=null $context_receiver_0: GET_VAR '$this$with: kotlin.Int declared in .box.' type=kotlin.Int origin=null CALL 'public final fun (: kotlin.String): kotlin.Unit declared in .Result' type=kotlin.Unit origin=EQ - $this: GET_VAR 'val result: .Result [val] declared in .box' type=.Result origin=null + $this: GET_VAR 'val result: .Result declared in .box' type=.Result origin=null : CONST String type=kotlin.String value="OK" VAR name:returnValue type:kotlin.String [val] CALL 'public final fun (): kotlin.String declared in .Result' type=kotlin.String origin=GET_PROPERTY - $this: GET_VAR 'val result: .Result [val] declared in .box' type=.Result origin=null + $this: GET_VAR 'val result: .Result declared in .box' type=.Result origin=null RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' WHEN type=kotlin.String origin=IF BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ arg0: CALL 'public final fun (): kotlin.Int declared in ' type=kotlin.Int origin=GET_PROPERTY arg1: CONST Int type=kotlin.Int value=2 - then: GET_VAR 'val returnValue: kotlin.String [val] declared in .box' type=kotlin.String origin=null + then: GET_VAR 'val returnValue: kotlin.String declared in .box' type=kotlin.String origin=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CONST String type=kotlin.String value="fail" diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/delegatedPropertiesOperators.ir.txt b/compiler/testData/ir/irText/declarations/contextReceivers/delegatedPropertiesOperators.ir.txt index 591249734d1..ddecfd5e05b 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/delegatedPropertiesOperators.ir.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/delegatedPropertiesOperators.ir.txt @@ -18,7 +18,7 @@ FILE fqName: fileName:/delegatedPropertiesOperators.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Delegate CONSTRUCTOR visibility:public <> () returnType:.Delegate [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Delegate modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:delegateValue visibility:public modality:FINAL [var] FIELD PROPERTY_BACKING_FIELD name:delegateValue type:kotlin.String visibility:private @@ -48,10 +48,10 @@ FILE fqName: fileName:/delegatedPropertiesOperators.kt BLOCK_BODY BLOCK type=kotlin.Unit origin=PLUSEQ CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=PLUSEQ - : CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ + : CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ $this: CALL 'public final fun (): kotlin.Int declared in ' type=kotlin.Int origin=PLUSEQ other: GET_VAR '$context_receiver_0: kotlin.Int declared in .Delegate.getValue' type=kotlin.Int origin=null - RETURN type=kotlin.Nothing from='public final fun getValue ($context_receiver_0: kotlin.Int, thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): kotlin.String [operator] declared in .Delegate' + RETURN type=kotlin.Nothing from='public final fun getValue ($context_receiver_0: kotlin.Int, thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): kotlin.String declared in .Delegate' CALL 'public final fun (): kotlin.String declared in .Delegate' type=kotlin.String origin=GET_PROPERTY $this: GET_VAR ': .Delegate declared in .Delegate.getValue' type=.Delegate origin=null FUN name:setValue visibility:public modality:FINAL <> ($this:.Delegate, $context_receiver_0:kotlin.Int, thisRef:kotlin.Any?, property:kotlin.reflect.KProperty<*>, value:kotlin.String) returnType:kotlin.Unit [operator] @@ -64,7 +64,7 @@ FILE fqName: fileName:/delegatedPropertiesOperators.kt BLOCK_BODY BLOCK type=kotlin.Unit origin=PLUSEQ CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=PLUSEQ - : CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ + : CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ $this: CALL 'public final fun (): kotlin.Int declared in ' type=kotlin.Int origin=PLUSEQ other: GET_VAR '$context_receiver_0: kotlin.Int declared in .Delegate.setValue' type=kotlin.Int origin=null CALL 'public final fun (: kotlin.String): kotlin.Unit declared in .Delegate' type=kotlin.Unit origin=EQ @@ -72,7 +72,7 @@ FILE fqName: fileName:/delegatedPropertiesOperators.kt : GET_VAR 'value: kotlin.String declared in .Delegate.setValue' type=kotlin.String 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -89,7 +89,7 @@ FILE fqName: fileName:/delegatedPropertiesOperators.kt CONSTRUCTOR visibility:public <> ($context_receiver_0:kotlin.Int) returnType:.Result [primary] VALUE_PARAMETER name:$context_receiver_0 index:0 type:kotlin.Int BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' SET_FIELD 'FIELD FIELD_FOR_CLASS_CONTEXT_RECEIVER name:contextReceiverField0 type:kotlin.Int visibility:private [final]' type=kotlin.Unit origin=null receiver: GET_VAR ': .Result declared in .Result' type=.Result origin=null value: GET_VAR '$context_receiver_0: kotlin.Int declared in .Result.' type=kotlin.Int origin=null @@ -97,36 +97,36 @@ FILE fqName: fileName:/delegatedPropertiesOperators.kt PROPERTY name:s visibility:public modality:FINAL [delegated,var] FIELD PROPERTY_DELEGATE name:s$delegate type:.Delegate visibility:private [final] EXPRESSION_BODY - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .Delegate' type=.Delegate origin=null + CONSTRUCTOR_CALL 'public constructor () declared in .Delegate' type=.Delegate origin=null FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:.Result) returnType:kotlin.String correspondingProperty: PROPERTY name:s visibility:public modality:FINAL [delegated,var] $this: VALUE_PARAMETER name: type:.Result BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun (): kotlin.String declared in .Result' - CALL 'public final fun getValue ($context_receiver_0: kotlin.Int, thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): kotlin.String [operator] declared in .Delegate' type=kotlin.String origin=null + CALL 'public final fun getValue ($context_receiver_0: kotlin.Int, thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): kotlin.String declared in .Delegate' type=kotlin.String origin=null $this: GET_FIELD 'FIELD PROPERTY_DELEGATE name:s$delegate type:.Delegate visibility:private [final]' type=.Delegate origin=null receiver: GET_VAR ': .Result declared in .Result.' type=.Result origin=null $context_receiver_0: GET_FIELD 'FIELD FIELD_FOR_CLASS_CONTEXT_RECEIVER name:contextReceiverField0 type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null receiver: GET_VAR ': .Result declared in .Result.' type=.Result origin=null thisRef: GET_VAR ': .Result declared in .Result.' type=.Result origin=null - property: PROPERTY_REFERENCE 'public final s: kotlin.String [delegated,var]' field=null getter='public final fun (): kotlin.String declared in .Result' setter='public final fun (: kotlin.String): kotlin.Unit declared in .Result' type=kotlin.reflect.KMutableProperty1<.Result, kotlin.String> origin=PROPERTY_REFERENCE_FOR_DELEGATE + property: PROPERTY_REFERENCE 'public final s: kotlin.String' field=null getter='public final fun (): kotlin.String declared in .Result' setter='public final fun (: kotlin.String): kotlin.Unit declared in .Result' type=kotlin.reflect.KMutableProperty1<.Result, kotlin.String> origin=PROPERTY_REFERENCE_FOR_DELEGATE FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:.Result, :kotlin.String) returnType:kotlin.Unit correspondingProperty: PROPERTY name:s visibility:public modality:FINAL [delegated,var] $this: VALUE_PARAMETER name: type:.Result VALUE_PARAMETER name: index:0 type:kotlin.String BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun (: kotlin.String): kotlin.Unit declared in .Result' - CALL 'public final fun setValue ($context_receiver_0: kotlin.Int, thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>, value: kotlin.String): kotlin.Unit [operator] declared in .Delegate' type=kotlin.Unit origin=null + CALL 'public final fun setValue ($context_receiver_0: kotlin.Int, thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>, value: kotlin.String): kotlin.Unit declared in .Delegate' type=kotlin.Unit origin=null $this: GET_FIELD 'FIELD PROPERTY_DELEGATE name:s$delegate type:.Delegate visibility:private [final]' type=.Delegate origin=null receiver: GET_VAR ': .Result declared in .Result.' type=.Result origin=null $context_receiver_0: GET_FIELD 'FIELD FIELD_FOR_CLASS_CONTEXT_RECEIVER name:contextReceiverField0 type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null receiver: GET_VAR ': .Result declared in .Result.' type=.Result origin=null thisRef: GET_VAR ': .Result declared in .Result.' type=.Result origin=null - property: PROPERTY_REFERENCE 'public final s: kotlin.String [delegated,var]' field=null getter='public final fun (): kotlin.String declared in .Result' setter='public final fun (: kotlin.String): kotlin.Unit declared in .Result' type=kotlin.reflect.KMutableProperty1<.Result, kotlin.String> origin=PROPERTY_REFERENCE_FOR_DELEGATE + property: PROPERTY_REFERENCE 'public final s: kotlin.String' field=null getter='public final fun (): kotlin.String declared in .Result' setter='public final fun (: kotlin.String): kotlin.Unit declared in .Result' type=kotlin.reflect.KMutableProperty1<.Result, kotlin.String> origin=PROPERTY_REFERENCE_FOR_DELEGATE value: GET_VAR ': kotlin.String declared in .Result.' type=kotlin.String 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -140,7 +140,7 @@ FILE fqName: fileName:/delegatedPropertiesOperators.kt FUN name:box visibility:public modality:FINAL <> () returnType:kotlin.String BLOCK_BODY VAR name:result type:.Result [val] - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with [inline] declared in kotlin.StandardKt' type=.Result origin=null + CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=.Result origin=null : kotlin.Int : .Result receiver: CONST Int type=kotlin.Int value=1 @@ -149,21 +149,21 @@ FILE fqName: fileName:/delegatedPropertiesOperators.kt $receiver: VALUE_PARAMETER name:$this$with type:kotlin.Int BLOCK_BODY RETURN type=kotlin.Nothing from='local final fun (): .Result declared in .box' - CONSTRUCTOR_CALL 'public constructor ($context_receiver_0: kotlin.Int) [primary] declared in .Result' type=.Result origin=null + CONSTRUCTOR_CALL 'public constructor ($context_receiver_0: kotlin.Int) declared in .Result' type=.Result origin=null $context_receiver_0: GET_VAR '$this$with: kotlin.Int declared in .box.' type=kotlin.Int origin=null CALL 'public final fun (: kotlin.String): kotlin.Unit declared in .Result' type=kotlin.Unit origin=EQ - $this: GET_VAR 'val result: .Result [val] declared in .box' type=.Result origin=null + $this: GET_VAR 'val result: .Result declared in .box' type=.Result origin=null : CONST String type=kotlin.String value="OK" VAR name:returnValue type:kotlin.String [val] CALL 'public final fun (): kotlin.String declared in .Result' type=kotlin.String origin=GET_PROPERTY - $this: GET_VAR 'val result: .Result [val] declared in .box' type=.Result origin=null + $this: GET_VAR 'val result: .Result declared in .box' type=.Result origin=null RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' WHEN type=kotlin.String origin=IF BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ arg0: CALL 'public final fun (): kotlin.Int declared in ' type=kotlin.Int origin=GET_PROPERTY arg1: CONST Int type=kotlin.Int value=2 - then: GET_VAR 'val returnValue: kotlin.String [val] declared in .box' type=kotlin.String origin=null + then: GET_VAR 'val returnValue: kotlin.String declared in .box' type=kotlin.String origin=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CONST String type=kotlin.String value="fail" diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/canvas.ir.txt b/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/canvas.ir.txt index 56e9b878f10..2bb6e3dbb48 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/canvas.ir.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/canvas.ir.txt @@ -7,7 +7,7 @@ FILE fqName: fileName:/canvas.kt $this: VALUE_PARAMETER name: type:.Canvas 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -26,7 +26,7 @@ FILE fqName: fileName:/canvas.kt VALUE_PARAMETER name:$context_receiver_0 index:0 type:.Canvas 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -41,7 +41,7 @@ FILE fqName: fileName:/canvas.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Circle CONSTRUCTOR visibility:public <> () returnType:.Circle [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Circle modality:FINAL visibility:public superTypes:[.Shape]' FUN name:draw visibility:public modality:OPEN <> ($this:.Circle, $context_receiver_0:.Canvas) returnType:kotlin.String overridden: @@ -51,32 +51,32 @@ FILE fqName: fileName:/canvas.kt VALUE_PARAMETER name:$context_receiver_0 index:0 type:.Canvas BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun draw ($context_receiver_0: .Canvas): kotlin.String declared in .Circle' - CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS + CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS $this: CONST String type=kotlin.String value="OK" other: CALL 'public abstract fun (): kotlin.String declared in .Canvas' type=kotlin.String origin=GET_PROPERTY $this: GET_VAR '$context_receiver_0: .Canvas declared in .Circle.draw' type=.Canvas 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 [fake_override,operator] declared in .Shape + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Shape $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 .Shape + public open fun hashCode (): kotlin.Int declared in .Shape $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 .Shape + public open fun toString (): kotlin.String declared in .Shape $this: VALUE_PARAMETER name: type:kotlin.Any CLASS OBJECT name:MyCanvas modality:FINAL visibility:public superTypes:[.Canvas] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.MyCanvas CONSTRUCTOR visibility:private <> () returnType:.MyCanvas [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:MyCanvas modality:FINAL visibility:public superTypes:[.Canvas]' PROPERTY name:suffix visibility:public modality:OPEN [val] overridden: - public abstract suffix: kotlin.String [val] + public abstract suffix: kotlin.String FIELD PROPERTY_BACKING_FIELD name:suffix type:kotlin.String visibility:private [final] EXPRESSION_BODY CONST String type=kotlin.String value="" @@ -91,21 +91,21 @@ FILE fqName: fileName:/canvas.kt receiver: GET_VAR ': .MyCanvas declared in .MyCanvas.' type=.MyCanvas 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 [fake_override,operator] declared in .Canvas + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Canvas $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 .Canvas + public open fun hashCode (): kotlin.Int declared in .Canvas $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 .Canvas + public open fun toString (): kotlin.String declared in .Canvas $this: VALUE_PARAMETER name: type:kotlin.Any FUN name:box visibility:public modality:FINAL <> () returnType:kotlin.String BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with [inline] declared in kotlin.StandardKt' type=kotlin.String origin=null + CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=kotlin.String origin=null : .MyCanvas : kotlin.String receiver: GET_OBJECT 'CLASS OBJECT name:MyCanvas modality:FINAL visibility:public superTypes:[.Canvas]' type=.MyCanvas @@ -115,5 +115,5 @@ FILE fqName: fileName:/canvas.kt BLOCK_BODY RETURN type=kotlin.Nothing from='local final fun (): kotlin.String declared in .box' CALL 'public open fun draw ($context_receiver_0: .Canvas): kotlin.String declared in .Circle' type=kotlin.String origin=null - $this: CONSTRUCTOR_CALL 'public constructor () [primary] declared in .Circle' type=.Circle origin=null + $this: CONSTRUCTOR_CALL 'public constructor () declared in .Circle' type=.Circle origin=null $context_receiver_0: GET_VAR '$this$with: .MyCanvas declared in .box.' type=.MyCanvas origin=null diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/compareTo.fir.ir.txt b/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/compareTo.fir.ir.txt index ddcefedd046..411813b343b 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/compareTo.fir.ir.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/compareTo.fir.ir.txt @@ -7,7 +7,7 @@ FILE fqName: fileName:/compareTo.kt VALUE_PARAMETER name:first index:0 type:A of .Pair VALUE_PARAMETER name:second index:1 type:B of .Pair BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Pair modality:FINAL visibility:public [data] superTypes:[kotlin.Any]' PROPERTY name:first visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:first type:A of .Pair visibility:private [final] @@ -34,13 +34,13 @@ FILE fqName: fileName:/compareTo.kt FUN GENERATED_DATA_CLASS_MEMBER name:component1 visibility:public modality:FINAL <> ($this:.Pair.Pair, B of .Pair>) returnType:A of .Pair [operator] $this: VALUE_PARAMETER name: type:.Pair.Pair, B of .Pair> BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component1 (): A of .Pair [operator] declared in .Pair' + RETURN type=kotlin.Nothing from='public final fun component1 (): A of .Pair declared in .Pair' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:first type:A of .Pair visibility:private [final]' type=A of .Pair origin=null receiver: GET_VAR ': .Pair.Pair, B of .Pair> declared in .Pair.component1' type=.Pair.Pair, B of .Pair> origin=null FUN GENERATED_DATA_CLASS_MEMBER name:component2 visibility:public modality:FINAL <> ($this:.Pair.Pair, B of .Pair>) returnType:B of .Pair [operator] $this: VALUE_PARAMETER name: type:.Pair.Pair, B of .Pair> BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component2 (): B of .Pair [operator] declared in .Pair' + RETURN type=kotlin.Nothing from='public final fun component2 (): B of .Pair declared in .Pair' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:second type:B of .Pair visibility:private [final]' type=B of .Pair origin=null receiver: GET_VAR ': .Pair.Pair, B of .Pair> declared in .Pair.component2' type=.Pair.Pair, B of .Pair> origin=null FUN GENERATED_DATA_CLASS_MEMBER name:copy visibility:public modality:FINAL <> ($this:.Pair.Pair, B of .Pair>, first:A of .Pair, second:B of .Pair) returnType:.Pair.Pair, B of .Pair> @@ -55,14 +55,14 @@ FILE fqName: fileName:/compareTo.kt receiver: GET_VAR ': .Pair.Pair, B of .Pair> declared in .Pair.copy' type=.Pair.Pair, B of .Pair> origin=null BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun copy (first: A of .Pair, second: B of .Pair): .Pair.Pair, B of .Pair> declared in .Pair' - CONSTRUCTOR_CALL 'public constructor (first: A of .Pair, second: B of .Pair) [primary] declared in .Pair' type=.Pair.Pair, B of .Pair> origin=null + CONSTRUCTOR_CALL 'public constructor (first: A of .Pair, second: B of .Pair) declared in .Pair' type=.Pair.Pair, B of .Pair> origin=null : kotlin.Any : kotlin.Any first: GET_VAR 'first: A of .Pair declared in .Pair.copy' type=A of .Pair origin=null second: GET_VAR 'second: B of .Pair declared in .Pair.copy' type=B of .Pair origin=null FUN GENERATED_DATA_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:.Pair.Pair, B of .Pair>, other:kotlin.Any?) returnType:kotlin.Boolean [operator] overridden: - public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any $this: VALUE_PARAMETER name: type:.Pair.Pair, B of .Pair> VALUE_PARAMETER name:other index:0 type:kotlin.Any? BLOCK_BODY @@ -71,38 +71,38 @@ FILE fqName: fileName:/compareTo.kt 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 ': .Pair.Pair, B of .Pair> declared in .Pair.equals' type=.Pair.Pair, B of .Pair> origin=null arg1: GET_VAR 'other: kotlin.Any? declared in .Pair.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Pair' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Pair' CONST Boolean type=kotlin.Boolean value=true WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=.Pair.Pair, B of .Pair> GET_VAR 'other: kotlin.Any? declared in .Pair.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Pair' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Pair' CONST Boolean type=kotlin.Boolean value=false VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:.Pair.Pair, B of .Pair> [val] TYPE_OP type=.Pair.Pair, B of .Pair> origin=CAST typeOperand=.Pair.Pair, B of .Pair> GET_VAR 'other: kotlin.Any? declared in .Pair.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 + if: CALL 'public final fun not (): kotlin.Boolean 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:first type:A of .Pair visibility:private [final]' type=A of .Pair origin=null receiver: GET_VAR ': .Pair.Pair, B of .Pair> declared in .Pair.equals' type=.Pair.Pair, B of .Pair> origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:first type:A of .Pair visibility:private [final]' type=A of .Pair origin=null - receiver: GET_VAR 'val tmp_0: .Pair.Pair, B of .Pair> [val] declared in .Pair.equals' type=.Pair.Pair, B of .Pair> origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Pair' + receiver: GET_VAR 'val tmp_0: .Pair.Pair, B of .Pair> declared in .Pair.equals' type=.Pair.Pair, B of .Pair> origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Pair' CONST Boolean type=kotlin.Boolean value=false 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 + if: CALL 'public final fun not (): kotlin.Boolean 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:second type:B of .Pair visibility:private [final]' type=B of .Pair origin=null receiver: GET_VAR ': .Pair.Pair, B of .Pair> declared in .Pair.equals' type=.Pair.Pair, B of .Pair> origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:second type:B of .Pair visibility:private [final]' type=B of .Pair origin=null - receiver: GET_VAR 'val tmp_0: .Pair.Pair, B of .Pair> [val] declared in .Pair.equals' type=.Pair.Pair, B of .Pair> origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Pair' + receiver: GET_VAR 'val tmp_0: .Pair.Pair, B of .Pair> declared in .Pair.equals' type=.Pair.Pair, B of .Pair> origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Pair' CONST Boolean type=kotlin.Boolean value=false - RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Pair' + RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Pair' CONST Boolean type=kotlin.Boolean value=true FUN GENERATED_DATA_CLASS_MEMBER name:hashCode visibility:public modality:OPEN <> ($this:.Pair.Pair, B of .Pair>) returnType:kotlin.Int overridden: @@ -122,10 +122,10 @@ FILE fqName: fileName:/compareTo.kt then: CALL 'public open fun hashCode (): kotlin.Int declared in kotlin.Any' type=kotlin.Int origin=null $this: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:first type:A of .Pair visibility:private [final]' type=A of .Pair origin=null receiver: GET_VAR ': .Pair.Pair, B of .Pair> declared in .Pair.hashCode' type=.Pair.Pair, B of .Pair> origin=null - SET_VAR 'var result: kotlin.Int [var] declared in .Pair.hashCode' type=kotlin.Unit origin=EQ - CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: CALL 'public final fun times (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'var result: kotlin.Int [var] declared in .Pair.hashCode' type=kotlin.Int origin=null + SET_VAR 'var result: kotlin.Int declared in .Pair.hashCode' type=kotlin.Unit origin=EQ + CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: CALL 'public final fun times (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'var result: kotlin.Int declared in .Pair.hashCode' type=kotlin.Int origin=null other: CONST Int type=kotlin.Int value=31 other: WHEN type=kotlin.Int origin=null BRANCH @@ -140,7 +140,7 @@ FILE fqName: fileName:/compareTo.kt $this: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:second type:B of .Pair visibility:private [final]' type=B of .Pair origin=null receiver: GET_VAR ': .Pair.Pair, B of .Pair> declared in .Pair.hashCode' type=.Pair.Pair, B of .Pair> origin=null RETURN type=kotlin.Nothing from='public open fun hashCode (): kotlin.Int declared in .Pair' - GET_VAR 'var result: kotlin.Int [var] declared in .Pair.hashCode' type=kotlin.Int origin=null + GET_VAR 'var result: kotlin.Int declared in .Pair.hashCode' type=kotlin.Int origin=null FUN GENERATED_DATA_CLASS_MEMBER name:toString visibility:public modality:OPEN <> ($this:.Pair.Pair, B of .Pair>) returnType:kotlin.String overridden: public open fun toString (): kotlin.String declared in kotlin.Any @@ -162,7 +162,7 @@ FILE fqName: fileName:/compareTo.kt VALUE_PARAMETER name:$context_receiver_0 index:0 type:java.util.Comparator.compareTo> VALUE_PARAMETER name:other index:1 type:T of .compareTo BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun compareTo ($context_receiver_0: java.util.Comparator.compareTo>, other: T of .compareTo): kotlin.Int [operator,infix] declared in ' + RETURN type=kotlin.Nothing from='public final fun compareTo ($context_receiver_0: java.util.Comparator.compareTo>, other: T of .compareTo): kotlin.Int declared in ' CALL 'public abstract fun compare (p0: @[FlexibleNullability] T of java.util.Comparator?, p1: @[FlexibleNullability] T of java.util.Comparator?): kotlin.Int declared in java.util.Comparator' type=kotlin.Int origin=null $this: GET_VAR '$context_receiver_0: java.util.Comparator.compareTo> declared in .compareTo' type=java.util.Comparator.compareTo> origin=null p0: GET_VAR ': T of .compareTo declared in .compareTo' type=T of .compareTo origin=null @@ -179,7 +179,7 @@ FILE fqName: fileName:/compareTo.kt WHEN type=T of . origin=IF BRANCH if: CALL 'public final fun less (arg0: kotlin.Int, arg1: kotlin.Int): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=LT - arg0: CALL 'public final fun compareTo ($context_receiver_0: java.util.Comparator.compareTo>, other: T of .compareTo): kotlin.Int [operator,infix] declared in ' type=kotlin.Int origin=null + arg0: CALL 'public final fun compareTo ($context_receiver_0: java.util.Comparator.compareTo>, other: T of .compareTo): kotlin.Int declared in ' type=kotlin.Int origin=null : T of . $receiver: CALL 'public final fun (): A of .Pair declared in .Pair' type=T of . origin=GET_PROPERTY $this: GET_VAR ': .Pair., T of .> declared in .' type=.Pair., T of .> origin=null @@ -219,16 +219,16 @@ FILE fqName: fileName:/compareTo.kt then: CONST Int type=kotlin.Int value=0 BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: CALL 'public open fun compareTo (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null + then: CALL 'public open fun compareTo (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: CALL 'public open fun (): kotlin.Int declared in kotlin.String' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR 'a: @[FlexibleNullability] kotlin.String? declared in .box.' type=@[FlexibleNullability] kotlin.String? origin=null other: CALL 'public open fun (): kotlin.Int declared in kotlin.String' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR 'b: @[FlexibleNullability] kotlin.String? declared in .box.' type=@[FlexibleNullability] kotlin.String? origin=null RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with [inline] declared in kotlin.StandardKt' type=kotlin.String origin=null + CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=kotlin.String origin=null : java.util.Comparator : kotlin.String - receiver: GET_VAR 'val comparator: java.util.Comparator [val] declared in .box' type=java.util.Comparator origin=null + receiver: GET_VAR 'val comparator: java.util.Comparator declared in .box' type=java.util.Comparator origin=null block: FUN_EXPR type=@[ExtensionFunctionType] kotlin.Function1, kotlin.String> origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> ($receiver:java.util.Comparator) returnType:kotlin.String $receiver: VALUE_PARAMETER name:$this$with type:java.util.Comparator @@ -236,7 +236,7 @@ FILE fqName: fileName:/compareTo.kt RETURN type=kotlin.Nothing from='local final fun (): kotlin.String declared in .box' CALL 'public final fun ($context_receiver_0: java.util.Comparator.>): T of . declared in ' type=kotlin.String origin=GET_PROPERTY : kotlin.String - $receiver: CONSTRUCTOR_CALL 'public constructor (first: A of .Pair, second: B of .Pair) [primary] declared in .Pair' type=.Pair origin=null + $receiver: CONSTRUCTOR_CALL 'public constructor (first: A of .Pair, second: B of .Pair) declared in .Pair' type=.Pair origin=null : kotlin.String : kotlin.String first: CONST String type=kotlin.String value="OK" diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/compareTo.ir.txt b/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/compareTo.ir.txt index 123effbff79..af70450f181 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/compareTo.ir.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/compareTo.ir.txt @@ -7,7 +7,7 @@ FILE fqName: fileName:/compareTo.kt VALUE_PARAMETER name:first index:0 type:A of .Pair VALUE_PARAMETER name:second index:1 type:B of .Pair BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Pair modality:FINAL visibility:public [data] superTypes:[kotlin.Any]' PROPERTY name:first visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:first type:A of .Pair visibility:private [final] @@ -34,13 +34,13 @@ FILE fqName: fileName:/compareTo.kt FUN GENERATED_DATA_CLASS_MEMBER name:component1 visibility:public modality:FINAL <> ($this:.Pair.Pair, B of .Pair>) returnType:A of .Pair [operator] $this: VALUE_PARAMETER name: type:.Pair.Pair, B of .Pair> BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component1 (): A of .Pair [operator] declared in .Pair' + RETURN type=kotlin.Nothing from='public final fun component1 (): A of .Pair declared in .Pair' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:first type:A of .Pair visibility:private [final]' type=A of .Pair origin=null receiver: GET_VAR ': .Pair.Pair, B of .Pair> declared in .Pair.component1' type=.Pair.Pair, B of .Pair> origin=null FUN GENERATED_DATA_CLASS_MEMBER name:component2 visibility:public modality:FINAL <> ($this:.Pair.Pair, B of .Pair>) returnType:B of .Pair [operator] $this: VALUE_PARAMETER name: type:.Pair.Pair, B of .Pair> BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component2 (): B of .Pair [operator] declared in .Pair' + RETURN type=kotlin.Nothing from='public final fun component2 (): B of .Pair declared in .Pair' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:second type:B of .Pair visibility:private [final]' type=B of .Pair origin=null receiver: GET_VAR ': .Pair.Pair, B of .Pair> declared in .Pair.component2' type=.Pair.Pair, B of .Pair> origin=null FUN GENERATED_DATA_CLASS_MEMBER name:copy visibility:public modality:FINAL <> ($this:.Pair.Pair, B of .Pair>, first:A of .Pair, second:B of .Pair) returnType:.Pair.Pair, B of .Pair> @@ -55,7 +55,7 @@ FILE fqName: fileName:/compareTo.kt receiver: GET_VAR ': .Pair.Pair, B of .Pair> declared in .Pair.copy' type=.Pair.Pair, B of .Pair> origin=null BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun copy (first: A of .Pair, second: B of .Pair): .Pair.Pair, B of .Pair> declared in .Pair' - CONSTRUCTOR_CALL 'public constructor (first: A of .Pair, second: B of .Pair) [primary] declared in .Pair' type=.Pair.Pair, B of .Pair> origin=null + CONSTRUCTOR_CALL 'public constructor (first: A of .Pair, second: B of .Pair) declared in .Pair' type=.Pair.Pair, B of .Pair> origin=null : A of .Pair : B of .Pair first: GET_VAR 'first: A of .Pair declared in .Pair.copy' type=A of .Pair origin=null @@ -94,10 +94,10 @@ FILE fqName: fileName:/compareTo.kt then: CALL 'public open fun hashCode (): kotlin.Int declared in kotlin.Any' type=kotlin.Int origin=null $this: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:first type:A of .Pair visibility:private [final]' type=A of .Pair origin=null receiver: GET_VAR ': .Pair.Pair, B of .Pair> declared in .Pair.hashCode' type=.Pair.Pair, B of .Pair> origin=null - SET_VAR 'var result: kotlin.Int [var] declared in .Pair.hashCode' type=kotlin.Unit origin=EQ - CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: CALL 'public final fun times (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'var result: kotlin.Int [var] declared in .Pair.hashCode' type=kotlin.Int origin=null + SET_VAR 'var result: kotlin.Int declared in .Pair.hashCode' type=kotlin.Unit origin=EQ + CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: CALL 'public final fun times (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'var result: kotlin.Int declared in .Pair.hashCode' type=kotlin.Int origin=null other: CONST Int type=kotlin.Int value=31 other: WHEN type=kotlin.Int origin=null BRANCH @@ -112,10 +112,10 @@ FILE fqName: fileName:/compareTo.kt $this: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:second type:B of .Pair visibility:private [final]' type=B of .Pair origin=null receiver: GET_VAR ': .Pair.Pair, B of .Pair> declared in .Pair.hashCode' type=.Pair.Pair, B of .Pair> origin=null RETURN type=kotlin.Nothing from='public open fun hashCode (): kotlin.Int declared in .Pair' - GET_VAR 'var result: kotlin.Int [var] declared in .Pair.hashCode' type=kotlin.Int origin=null + GET_VAR 'var result: kotlin.Int declared in .Pair.hashCode' type=kotlin.Int origin=null FUN GENERATED_DATA_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:.Pair.Pair, B of .Pair>, other:kotlin.Any?) returnType:kotlin.Boolean [operator] overridden: - public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any $this: VALUE_PARAMETER name: type:.Pair.Pair, B of .Pair> VALUE_PARAMETER name:other index:0 type:kotlin.Any? BLOCK_BODY @@ -124,38 +124,38 @@ FILE fqName: fileName:/compareTo.kt 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 ': .Pair.Pair, B of .Pair> declared in .Pair.equals' type=.Pair.Pair, B of .Pair> origin=null arg1: GET_VAR 'other: kotlin.Any? declared in .Pair.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Pair' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Pair' CONST Boolean type=kotlin.Boolean value=true WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=.Pair.Pair, B of .Pair> GET_VAR 'other: kotlin.Any? declared in .Pair.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Pair' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Pair' CONST Boolean type=kotlin.Boolean value=false VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:.Pair.Pair, B of .Pair> [val] TYPE_OP type=.Pair.Pair, B of .Pair> origin=CAST typeOperand=.Pair.Pair, B of .Pair> GET_VAR 'other: kotlin.Any? declared in .Pair.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 + if: CALL 'public final fun not (): kotlin.Boolean 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:first type:A of .Pair visibility:private [final]' type=A of .Pair origin=null receiver: GET_VAR ': .Pair.Pair, B of .Pair> declared in .Pair.equals' type=.Pair.Pair, B of .Pair> origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:first type:A of .Pair visibility:private [final]' type=A of .Pair origin=null - receiver: GET_VAR 'val tmp_0: .Pair.Pair, B of .Pair> [val] declared in .Pair.equals' type=.Pair.Pair, B of .Pair> origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Pair' + receiver: GET_VAR 'val tmp_0: .Pair.Pair, B of .Pair> declared in .Pair.equals' type=.Pair.Pair, B of .Pair> origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Pair' CONST Boolean type=kotlin.Boolean value=false 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 + if: CALL 'public final fun not (): kotlin.Boolean 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:second type:B of .Pair visibility:private [final]' type=B of .Pair origin=null receiver: GET_VAR ': .Pair.Pair, B of .Pair> declared in .Pair.equals' type=.Pair.Pair, B of .Pair> origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:second type:B of .Pair visibility:private [final]' type=B of .Pair origin=null - receiver: GET_VAR 'val tmp_0: .Pair.Pair, B of .Pair> [val] declared in .Pair.equals' type=.Pair.Pair, B of .Pair> origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Pair' + receiver: GET_VAR 'val tmp_0: .Pair.Pair, B of .Pair> declared in .Pair.equals' type=.Pair.Pair, B of .Pair> origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Pair' CONST Boolean type=kotlin.Boolean value=false - RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Pair' + RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Pair' CONST Boolean type=kotlin.Boolean value=true FUN name:compareTo visibility:public modality:FINAL ($receiver:T of .compareTo, $context_receiver_0:java.util.Comparator.compareTo>{ kotlin.Comparator.compareTo> }, other:T of .compareTo) returnType:kotlin.Int [operator,infix] TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false @@ -164,7 +164,7 @@ FILE fqName: fileName:/compareTo.kt VALUE_PARAMETER name:$context_receiver_0 index:0 type:java.util.Comparator.compareTo>{ kotlin.Comparator.compareTo> } VALUE_PARAMETER name:other index:1 type:T of .compareTo BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun compareTo ($context_receiver_0: java.util.Comparator.compareTo>{ kotlin.Comparator.compareTo> }, other: T of .compareTo): kotlin.Int [operator,infix] declared in ' + RETURN type=kotlin.Nothing from='public final fun compareTo ($context_receiver_0: java.util.Comparator.compareTo>{ kotlin.Comparator.compareTo> }, other: T of .compareTo): kotlin.Int declared in ' CALL 'public abstract fun compare (p0: @[FlexibleNullability] T of java.util.Comparator?, p1: @[FlexibleNullability] T of java.util.Comparator?): kotlin.Int declared in java.util.Comparator' type=kotlin.Int origin=null $this: GET_VAR '$context_receiver_0: java.util.Comparator.compareTo>{ kotlin.Comparator.compareTo> } declared in .compareTo' type=java.util.Comparator.compareTo>{ kotlin.Comparator.compareTo> } origin=null p0: GET_VAR ': T of .compareTo declared in .compareTo' type=T of .compareTo origin=null @@ -181,7 +181,7 @@ FILE fqName: fileName:/compareTo.kt WHEN type=T of . origin=IF BRANCH if: CALL 'public final fun less (arg0: kotlin.Int, arg1: kotlin.Int): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=LT - arg0: CALL 'public final fun compareTo ($context_receiver_0: java.util.Comparator.compareTo>{ kotlin.Comparator.compareTo> }, other: T of .compareTo): kotlin.Int [operator,infix] declared in ' type=kotlin.Int origin=LT + arg0: CALL 'public final fun compareTo ($context_receiver_0: java.util.Comparator.compareTo>{ kotlin.Comparator.compareTo> }, other: T of .compareTo): kotlin.Int declared in ' type=kotlin.Int origin=LT : T of . $receiver: CALL 'public final fun (): A of .Pair declared in .Pair' type=T of . origin=GET_PROPERTY $this: GET_VAR ': .Pair., T of .> declared in .' type=.Pair., T of .> origin=null @@ -221,7 +221,7 @@ FILE fqName: fileName:/compareTo.kt then: CONST Int type=kotlin.Int value=0 BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: CALL 'public open fun compareTo (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null + then: CALL 'public open fun compareTo (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: CALL 'public open fun (): kotlin.Int declared in kotlin.String' type=kotlin.Int origin=GET_PROPERTY $this: TYPE_OP type=kotlin.String origin=IMPLICIT_NOTNULL typeOperand=kotlin.String GET_VAR 'a: @[FlexibleNullability] kotlin.String? declared in .box.' type=@[FlexibleNullability] kotlin.String? origin=null @@ -229,10 +229,10 @@ FILE fqName: fileName:/compareTo.kt $this: TYPE_OP type=kotlin.String origin=IMPLICIT_NOTNULL typeOperand=kotlin.String GET_VAR 'b: @[FlexibleNullability] kotlin.String? declared in .box.' type=@[FlexibleNullability] kotlin.String? origin=null RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with [inline] declared in kotlin.StandardKt' type=kotlin.String origin=null + CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=kotlin.String origin=null : java.util.Comparator : kotlin.String - receiver: GET_VAR 'val comparator: java.util.Comparator [val] declared in .box' type=java.util.Comparator origin=null + receiver: GET_VAR 'val comparator: java.util.Comparator declared in .box' type=java.util.Comparator origin=null block: FUN_EXPR type=@[ExtensionFunctionType] kotlin.Function1, kotlin.String> origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> ($receiver:java.util.Comparator) returnType:kotlin.String $receiver: VALUE_PARAMETER name:$this$with type:java.util.Comparator @@ -240,7 +240,7 @@ FILE fqName: fileName:/compareTo.kt RETURN type=kotlin.Nothing from='local final fun (): kotlin.String declared in .box' CALL 'public final fun ($context_receiver_0: java.util.Comparator.>{ kotlin.Comparator.> }): T of . declared in ' type=kotlin.String origin=GET_PROPERTY : kotlin.String - $receiver: CONSTRUCTOR_CALL 'public constructor (first: A of .Pair, second: B of .Pair) [primary] declared in .Pair' type=.Pair origin=null + $receiver: CONSTRUCTOR_CALL 'public constructor (first: A of .Pair, second: B of .Pair) declared in .Pair' type=.Pair origin=null : kotlin.String : kotlin.String first: CONST String type=kotlin.String value="OK" diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/dp.fir.ir.txt b/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/dp.fir.ir.txt index 7dbbdbe5e2f..158357aa10d 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/dp.fir.ir.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/dp.fir.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/dp.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.View CONSTRUCTOR visibility:public <> () returnType:.View [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:View modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:coefficient visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:coefficient type:kotlin.Int visibility:private [final] @@ -18,7 +18,7 @@ FILE fqName: fileName:/dp.kt receiver: GET_VAR ': .View declared in .View.' type=.View 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -37,16 +37,16 @@ FILE fqName: fileName:/dp.kt VALUE_PARAMETER name:$context_receiver_0 index:0 type:.View BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun ($context_receiver_0: .View): kotlin.Int declared in ' - CALL 'public final fun times (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=MUL + CALL 'public final fun times (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=MUL $this: CALL 'public final fun (): kotlin.Int declared in .View' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR '$context_receiver_0: .View declared in .' type=.View origin=null other: GET_VAR ': kotlin.Int declared in .' type=kotlin.Int origin=null FUN name:box visibility:public modality:FINAL <> () returnType:kotlin.String BLOCK_BODY - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with [inline] declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=kotlin.Nothing origin=null : .View : kotlin.Nothing - receiver: CONSTRUCTOR_CALL 'public constructor () [primary] declared in .View' type=.View origin=null + receiver: CONSTRUCTOR_CALL 'public constructor () declared in .View' type=.View origin=null block: FUN_EXPR type=@[ExtensionFunctionType] kotlin.Function1<.View, kotlin.Nothing> origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> ($receiver:.View) returnType:kotlin.Nothing $receiver: VALUE_PARAMETER name:$this$with type:.View @@ -54,7 +54,7 @@ FILE fqName: fileName:/dp.kt WHEN type=kotlin.Unit origin=IF BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: CALL 'public final fun map (transform: kotlin.Function1): kotlin.collections.List [inline] declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List origin=null + arg0: CALL 'public final fun map (transform: kotlin.Function1): kotlin.collections.List declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List origin=null : kotlin.Int : kotlin.Int $receiver: CALL 'public final fun listOf (vararg elements: T of kotlin.collections.CollectionsKt.listOf): kotlin.collections.List declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List origin=null diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/dp.ir.txt b/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/dp.ir.txt index 4637f75728a..b147b1b53ea 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/dp.ir.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/dp.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/dp.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.View CONSTRUCTOR visibility:public <> () returnType:.View [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:View modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:coefficient visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:coefficient type:kotlin.Int visibility:private [final] @@ -18,7 +18,7 @@ FILE fqName: fileName:/dp.kt receiver: GET_VAR ': .View declared in .View.' type=.View 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -37,16 +37,16 @@ FILE fqName: fileName:/dp.kt VALUE_PARAMETER name:$context_receiver_0 index:0 type:.View BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun ($context_receiver_0: .View): kotlin.Int declared in ' - CALL 'public final fun times (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=MUL + CALL 'public final fun times (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=MUL $this: CALL 'public final fun (): kotlin.Int declared in .View' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR '$context_receiver_0: .View declared in .' type=.View origin=null other: GET_VAR ': kotlin.Int declared in .' type=kotlin.Int origin=null FUN name:box visibility:public modality:FINAL <> () returnType:kotlin.String BLOCK_BODY - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with [inline] declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=kotlin.Nothing origin=null : .View : kotlin.Nothing - receiver: CONSTRUCTOR_CALL 'public constructor () [primary] declared in .View' type=.View origin=null + receiver: CONSTRUCTOR_CALL 'public constructor () declared in .View' type=.View origin=null block: FUN_EXPR type=@[ExtensionFunctionType] kotlin.Function1<.View, kotlin.Nothing> origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> ($receiver:.View) returnType:kotlin.Nothing $receiver: VALUE_PARAMETER name:$this$with type:.View @@ -54,7 +54,7 @@ FILE fqName: fileName:/dp.kt WHEN type=kotlin.Unit origin=IF BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: CALL 'public final fun map (transform: kotlin.Function1): kotlin.collections.List [inline] declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List origin=null + arg0: CALL 'public final fun map (transform: kotlin.Function1): kotlin.collections.List declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List origin=null : kotlin.Int : kotlin.Int $receiver: CALL 'public final fun listOf (vararg elements: T of kotlin.collections.CollectionsKt.listOf): kotlin.collections.List declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List origin=null diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/functionalType.fir.ir.txt b/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/functionalType.fir.ir.txt index 6890387a551..2ad42b35c8f 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/functionalType.fir.ir.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/functionalType.fir.ir.txt @@ -3,11 +3,11 @@ FILE fqName: fileName:/functionalType.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Param CONSTRUCTOR visibility:public <> () returnType:.Param [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Param modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -22,7 +22,7 @@ FILE fqName: fileName:/functionalType.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.O CONSTRUCTOR visibility:public <> () returnType:.O [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:O modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:o visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:o type:kotlin.String visibility:private [final] @@ -37,7 +37,7 @@ FILE fqName: fileName:/functionalType.kt receiver: GET_VAR ': .O declared in .O.' type=.O 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -52,7 +52,7 @@ FILE fqName: fileName:/functionalType.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.K CONSTRUCTOR visibility:public <> () returnType:.K [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:K modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:k visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:k type:kotlin.String visibility:private [final] @@ -67,7 +67,7 @@ FILE fqName: fileName:/functionalType.kt receiver: GET_VAR ': .K declared in .K.' type=.K 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -86,18 +86,18 @@ FILE fqName: fileName:/functionalType.kt VALUE_PARAMETER name:g index:1 type:@[ExtensionFunctionType] kotlin.Function3<.O, .K, .Param, T of .f> BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun f ($context_receiver_0: .O, g: @[ExtensionFunctionType] kotlin.Function3<.O, .K, .Param, T of .f>): T of .f declared in ' - CALL 'public abstract fun invoke (p1: P1 of kotlin.Function3, p2: P2 of kotlin.Function3, p3: P3 of kotlin.Function3): R of kotlin.Function3 [operator] declared in kotlin.Function3' type=T of .f origin=INVOKE + CALL 'public abstract fun invoke (p1: P1 of kotlin.Function3, p2: P2 of kotlin.Function3, p3: P3 of kotlin.Function3): R of kotlin.Function3 declared in kotlin.Function3' type=T of .f origin=INVOKE $this: GET_VAR 'g: @[ExtensionFunctionType] kotlin.Function3<.O, .K, .Param, T of .f> declared in .f' type=@[ExtensionFunctionType] kotlin.Function3<.O, .K, .Param, T of .f> origin=VARIABLE_AS_FUNCTION p1: GET_VAR '$context_receiver_0: .O declared in .f' type=.O origin=null p2: GET_VAR ': .K declared in .f' type=.K origin=null - p3: CONSTRUCTOR_CALL 'public constructor () [primary] declared in .Param' type=.Param origin=null + p3: CONSTRUCTOR_CALL 'public constructor () declared in .Param' type=.Param origin=null FUN name:box visibility:public modality:FINAL <> () returnType:kotlin.String BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with [inline] declared in kotlin.StandardKt' type=kotlin.String origin=null + CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=kotlin.String origin=null : .O : kotlin.String - receiver: CONSTRUCTOR_CALL 'public constructor () [primary] declared in .O' type=.O origin=null + receiver: CONSTRUCTOR_CALL 'public constructor () declared in .O' type=.O origin=null block: FUN_EXPR type=@[ExtensionFunctionType] kotlin.Function1<.O, kotlin.String> origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> ($receiver:.O) returnType:kotlin.String $receiver: VALUE_PARAMETER name:$this$with type:.O @@ -105,7 +105,7 @@ FILE fqName: fileName:/functionalType.kt RETURN type=kotlin.Nothing from='local final fun (): kotlin.String declared in .box' CALL 'public final fun f ($context_receiver_0: .O, g: @[ExtensionFunctionType] kotlin.Function3<.O, .K, .Param, T of .f>): T of .f declared in ' type=kotlin.String origin=null : kotlin.String - $receiver: CONSTRUCTOR_CALL 'public constructor () [primary] declared in .K' type=.K origin=null + $receiver: CONSTRUCTOR_CALL 'public constructor () declared in .K' type=.K origin=null $context_receiver_0: GET_VAR '$this$with: .O declared in .box.' type=.O origin=null g: FUN_EXPR type=@[ExtensionFunctionType] kotlin.Function3<.O, .K, .Param, kotlin.String> origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> ($receiver:.K, $context_receiver_0:.O, it:.Param) returnType:kotlin.String @@ -115,7 +115,7 @@ FILE fqName: fileName:/functionalType.kt VALUE_PARAMETER name:it index:1 type:.Param BLOCK_BODY RETURN type=kotlin.Nothing from='local final fun ($context_receiver_0: .O, it: .Param): kotlin.String declared in .box.' - CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS + CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS $this: CALL 'public final fun (): kotlin.String declared in .O' type=kotlin.String origin=GET_PROPERTY $this: GET_VAR '$this$with: .O declared in .box.' type=.O origin=null other: CALL 'public final fun (): kotlin.String declared in .K' type=kotlin.String origin=GET_PROPERTY diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/functionalType.ir.txt b/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/functionalType.ir.txt index cf98a8fa859..46fe349ee89 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/functionalType.ir.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/functionalType.ir.txt @@ -3,11 +3,11 @@ FILE fqName: fileName:/functionalType.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Param CONSTRUCTOR visibility:public <> () returnType:.Param [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Param modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -22,7 +22,7 @@ FILE fqName: fileName:/functionalType.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.O CONSTRUCTOR visibility:public <> () returnType:.O [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:O modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:o visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:o type:kotlin.String visibility:private [final] @@ -37,7 +37,7 @@ FILE fqName: fileName:/functionalType.kt receiver: GET_VAR ': .O declared in .O.' type=.O 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -52,7 +52,7 @@ FILE fqName: fileName:/functionalType.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.K CONSTRUCTOR visibility:public <> () returnType:.K [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:K modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:k visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:k type:kotlin.String visibility:private [final] @@ -67,7 +67,7 @@ FILE fqName: fileName:/functionalType.kt receiver: GET_VAR ': .K declared in .K.' type=.K 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -86,18 +86,18 @@ FILE fqName: fileName:/functionalType.kt VALUE_PARAMETER name:g index:1 type:@[ExtensionFunctionType] @[ContextFunctionTypeParams(count = '1')] kotlin.Function3<.O, .K, .Param, T of .f> BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun f ($context_receiver_0: .O, g: @[ExtensionFunctionType] @[ContextFunctionTypeParams(count = '1')] kotlin.Function3<.O, .K, .Param, T of .f>): T of .f declared in ' - CALL 'public abstract fun invoke (p1: P1 of kotlin.Function3, p2: P2 of kotlin.Function3, p3: P3 of kotlin.Function3): R of kotlin.Function3 [operator] declared in kotlin.Function3' type=T of .f origin=INVOKE + CALL 'public abstract fun invoke (p1: P1 of kotlin.Function3, p2: P2 of kotlin.Function3, p3: P3 of kotlin.Function3): R of kotlin.Function3 declared in kotlin.Function3' type=T of .f origin=INVOKE $this: GET_VAR 'g: @[ExtensionFunctionType] @[ContextFunctionTypeParams(count = '1')] kotlin.Function3<.O, .K, .Param, T of .f> declared in .f' type=@[ExtensionFunctionType] @[ContextFunctionTypeParams(count = '1')] kotlin.Function3<.O, .K, .Param, T of .f> origin=VARIABLE_AS_FUNCTION p1: GET_VAR '$context_receiver_0: .O declared in .f' type=.O origin=null p2: GET_VAR ': .K declared in .f' type=.K origin=null - p3: CONSTRUCTOR_CALL 'public constructor () [primary] declared in .Param' type=.Param origin=null + p3: CONSTRUCTOR_CALL 'public constructor () declared in .Param' type=.Param origin=null FUN name:box visibility:public modality:FINAL <> () returnType:kotlin.String BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with [inline] declared in kotlin.StandardKt' type=kotlin.String origin=null + CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=kotlin.String origin=null : .O : kotlin.String - receiver: CONSTRUCTOR_CALL 'public constructor () [primary] declared in .O' type=.O origin=null + receiver: CONSTRUCTOR_CALL 'public constructor () declared in .O' type=.O origin=null block: FUN_EXPR type=@[ExtensionFunctionType] kotlin.Function1<.O, kotlin.String> origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> ($receiver:.O) returnType:kotlin.String $receiver: VALUE_PARAMETER name:$this$with type:.O @@ -105,7 +105,7 @@ FILE fqName: fileName:/functionalType.kt RETURN type=kotlin.Nothing from='local final fun (): kotlin.String declared in .box' CALL 'public final fun f ($context_receiver_0: .O, g: @[ExtensionFunctionType] @[ContextFunctionTypeParams(count = '1')] kotlin.Function3<.O, .K, .Param, T of .f>): T of .f declared in ' type=kotlin.String origin=null : kotlin.String - $receiver: CONSTRUCTOR_CALL 'public constructor () [primary] declared in .K' type=.K origin=null + $receiver: CONSTRUCTOR_CALL 'public constructor () declared in .K' type=.K origin=null $context_receiver_0: GET_VAR '$this$with: .O declared in .box.' type=.O origin=null g: FUN_EXPR type=@[ExtensionFunctionType] @[ContextFunctionTypeParams(count = '1')] kotlin.Function3<.O, .K, .Param, kotlin.String> origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> ($receiver:.K, $context_receiver_0:.O, it:.Param) returnType:kotlin.String @@ -115,7 +115,7 @@ FILE fqName: fileName:/functionalType.kt VALUE_PARAMETER name:it index:1 type:.Param BLOCK_BODY RETURN type=kotlin.Nothing from='local final fun ($context_receiver_0: .O, it: .Param): kotlin.String declared in .box.' - CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS + CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS $this: CALL 'public final fun (): kotlin.String declared in .O' type=kotlin.String origin=GET_PROPERTY $this: GET_VAR '$this$with: .O declared in .box.' type=.O origin=null other: CALL 'public final fun (): kotlin.String declared in .K' type=kotlin.String origin=GET_PROPERTY diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/monoidSum.fir.ir.txt b/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/monoidSum.fir.ir.txt index 90c099a286e..808eb001a05 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/monoidSum.fir.ir.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/monoidSum.fir.ir.txt @@ -8,7 +8,7 @@ FILE fqName: fileName:/monoidSum.kt VALUE_PARAMETER name:other index:0 type:T of .Semigroup 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -28,43 +28,43 @@ FILE fqName: fileName:/monoidSum.kt $this: VALUE_PARAMETER name: type:.Monoid.Monoid> FUN FAKE_OVERRIDE name:combine visibility:public modality:ABSTRACT <> ($this:.Semigroup.Semigroup>, $receiver:T of .Monoid, other:T of .Monoid) returnType:T of .Monoid [fake_override,infix] overridden: - public abstract fun combine (other: T of .Semigroup): T of .Semigroup [infix] declared in .Semigroup + public abstract fun combine (other: T of .Semigroup): T of .Semigroup declared in .Semigroup $this: VALUE_PARAMETER name: type:.Semigroup.Semigroup> $receiver: VALUE_PARAMETER name: type:T of .Monoid VALUE_PARAMETER name:other index:0 type:T of .Monoid 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 .Semigroup + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Semigroup $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 .Semigroup + public open fun hashCode (): kotlin.Int declared in .Semigroup $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 .Semigroup + public open fun toString (): kotlin.String declared in .Semigroup $this: VALUE_PARAMETER name: type:kotlin.Any CLASS OBJECT name:IntMonoid modality:FINAL visibility:public superTypes:[.Monoid] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.IntMonoid CONSTRUCTOR visibility:private <> () returnType:.IntMonoid [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:IntMonoid modality:FINAL visibility:public superTypes:[.Monoid]' FUN name:combine visibility:public modality:OPEN <> ($this:.IntMonoid, $receiver:kotlin.Int, other:kotlin.Int) returnType:kotlin.Int [infix] overridden: - public abstract fun combine (other: T of .Monoid): T of .Monoid [fake_override,infix] declared in .Monoid + public abstract fun combine (other: T of .Monoid): T of .Monoid declared in .Monoid $this: VALUE_PARAMETER name: type:.IntMonoid $receiver: VALUE_PARAMETER name: type:kotlin.Int VALUE_PARAMETER name:other index:0 type:kotlin.Int BLOCK_BODY - RETURN type=kotlin.Nothing from='public open fun combine (other: kotlin.Int): kotlin.Int [infix] declared in .IntMonoid' - CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUS + RETURN type=kotlin.Nothing from='public open fun combine (other: kotlin.Int): kotlin.Int declared in .IntMonoid' + CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUS $this: GET_VAR ': kotlin.Int declared in .IntMonoid.combine' type=kotlin.Int origin=null other: GET_VAR 'other: kotlin.Int declared in .IntMonoid.combine' type=kotlin.Int origin=null PROPERTY name:unit visibility:public modality:OPEN [val] overridden: - public abstract unit: T of .Monoid [val] + public abstract unit: T of .Monoid FIELD PROPERTY_BACKING_FIELD name:unit type:kotlin.Int visibility:private [final] EXPRESSION_BODY CONST Int type=kotlin.Int value=0 @@ -79,37 +79,37 @@ FILE fqName: fileName:/monoidSum.kt receiver: GET_VAR ': .IntMonoid declared in .IntMonoid.' type=.IntMonoid 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 [fake_override,operator] declared in .Monoid + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Monoid $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 .Monoid + public open fun hashCode (): kotlin.Int declared in .Monoid $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 .Monoid + public open fun toString (): kotlin.String declared in .Monoid $this: VALUE_PARAMETER name: type:kotlin.Any CLASS OBJECT name:StringMonoid modality:FINAL visibility:public superTypes:[.Monoid] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.StringMonoid CONSTRUCTOR visibility:private <> () returnType:.StringMonoid [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:StringMonoid modality:FINAL visibility:public superTypes:[.Monoid]' FUN name:combine visibility:public modality:OPEN <> ($this:.StringMonoid, $receiver:kotlin.String, other:kotlin.String) returnType:kotlin.String [infix] overridden: - public abstract fun combine (other: T of .Monoid): T of .Monoid [fake_override,infix] declared in .Monoid + public abstract fun combine (other: T of .Monoid): T of .Monoid declared in .Monoid $this: VALUE_PARAMETER name: type:.StringMonoid $receiver: VALUE_PARAMETER name: type:kotlin.String VALUE_PARAMETER name:other index:0 type:kotlin.String BLOCK_BODY - RETURN type=kotlin.Nothing from='public open fun combine (other: kotlin.String): kotlin.String [infix] declared in .StringMonoid' - CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS + RETURN type=kotlin.Nothing from='public open fun combine (other: kotlin.String): kotlin.String declared in .StringMonoid' + CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS $this: GET_VAR ': kotlin.String declared in .StringMonoid.combine' type=kotlin.String origin=null other: GET_VAR 'other: kotlin.String declared in .StringMonoid.combine' type=kotlin.String origin=null PROPERTY name:unit visibility:public modality:OPEN [val] overridden: - public abstract unit: T of .Monoid [val] + public abstract unit: T of .Monoid FIELD PROPERTY_BACKING_FIELD name:unit type:kotlin.String visibility:private [final] EXPRESSION_BODY CONST String type=kotlin.String value="" @@ -124,16 +124,16 @@ FILE fqName: fileName:/monoidSum.kt receiver: GET_VAR ': .StringMonoid declared in .StringMonoid.' type=.StringMonoid 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 [fake_override,operator] declared in .Monoid + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Monoid $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 .Monoid + public open fun hashCode (): kotlin.Int declared in .Monoid $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 .Monoid + public open fun toString (): kotlin.String declared in .Monoid $this: VALUE_PARAMETER name: type:kotlin.Any FUN name:sum visibility:public modality:FINAL ($receiver:kotlin.collections.List.sum>, $context_receiver_0:.Monoid.sum>) returnType:T of .sum TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false @@ -142,7 +142,7 @@ FILE fqName: fileName:/monoidSum.kt VALUE_PARAMETER name:$context_receiver_0 index:0 type:.Monoid.sum> BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun sum ($context_receiver_0: .Monoid.sum>): T of .sum declared in ' - CALL 'public final fun fold (initial: R of kotlin.collections.CollectionsKt.fold, operation: kotlin.Function2): R of kotlin.collections.CollectionsKt.fold [inline] declared in kotlin.collections.CollectionsKt' type=T of .sum origin=null + CALL 'public final fun fold (initial: R of kotlin.collections.CollectionsKt.fold, operation: kotlin.Function2): R of kotlin.collections.CollectionsKt.fold declared in kotlin.collections.CollectionsKt' type=T of .sum origin=null : T of .sum : T of .sum $receiver: GET_VAR ': kotlin.collections.List.sum> declared in .sum' type=kotlin.collections.List.sum> origin=null @@ -154,14 +154,14 @@ FILE fqName: fileName:/monoidSum.kt VALUE_PARAMETER name:e index:1 type:T of .sum BLOCK_BODY RETURN type=kotlin.Nothing from='local final fun (acc: T of .sum, e: T of .sum): T of .sum declared in .sum' - CALL 'public abstract fun combine (other: T of .Monoid): T of .Monoid [fake_override,infix] declared in .Monoid' type=T of .sum origin=null + CALL 'public abstract fun combine (other: T of .Monoid): T of .Monoid declared in .Monoid' type=T of .sum origin=null $this: GET_VAR '$context_receiver_0: .Monoid.sum> declared in .sum' type=.Monoid.sum> origin=null $receiver: GET_VAR 'acc: T of .sum declared in .sum.' type=T of .sum origin=null other: GET_VAR 'e: T of .sum declared in .sum.' type=T of .sum origin=null FUN name:box visibility:public modality:FINAL <> () returnType:kotlin.String BLOCK_BODY TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with [inline] declared in kotlin.StandardKt' type=kotlin.Int origin=null + CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=kotlin.Int origin=null : .IntMonoid : kotlin.Int receiver: GET_OBJECT 'CLASS OBJECT name:IntMonoid modality:FINAL visibility:public superTypes:[.Monoid]' type=.IntMonoid @@ -180,7 +180,7 @@ FILE fqName: fileName:/monoidSum.kt CONST Int type=kotlin.Int value=3 $context_receiver_0: GET_VAR '$this$with: .IntMonoid declared in .box.' type=.IntMonoid origin=null RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with [inline] declared in kotlin.StandardKt' type=kotlin.String origin=null + CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=kotlin.String origin=null : .StringMonoid : kotlin.String receiver: GET_OBJECT 'CLASS OBJECT name:StringMonoid modality:FINAL visibility:public superTypes:[.Monoid]' type=.StringMonoid diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/monoidSum.ir.txt b/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/monoidSum.ir.txt index f67edf80d7e..659380c3706 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/monoidSum.ir.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/fromKEEP/monoidSum.ir.txt @@ -8,7 +8,7 @@ FILE fqName: fileName:/monoidSum.kt VALUE_PARAMETER name:other index:0 type:T of .Semigroup 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -28,43 +28,43 @@ FILE fqName: fileName:/monoidSum.kt $this: VALUE_PARAMETER name: type:.Monoid.Monoid> FUN FAKE_OVERRIDE name:combine visibility:public modality:ABSTRACT <> ($this:.Semigroup.Monoid>, $receiver:T of .Monoid, other:T of .Monoid) returnType:T of .Monoid [fake_override,infix] overridden: - public abstract fun combine (other: T of .Semigroup): T of .Semigroup [infix] declared in .Semigroup + public abstract fun combine (other: T of .Semigroup): T of .Semigroup declared in .Semigroup $this: VALUE_PARAMETER name: type:.Semigroup.Monoid> $receiver: VALUE_PARAMETER name: type:T of .Monoid VALUE_PARAMETER name:other index:0 type:T of .Monoid 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 .Semigroup + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Semigroup $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 .Semigroup + public open fun hashCode (): kotlin.Int declared in .Semigroup $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 .Semigroup + public open fun toString (): kotlin.String declared in .Semigroup $this: VALUE_PARAMETER name: type:kotlin.Any CLASS OBJECT name:IntMonoid modality:FINAL visibility:public superTypes:[.Monoid] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.IntMonoid CONSTRUCTOR visibility:private <> () returnType:.IntMonoid [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:IntMonoid modality:FINAL visibility:public superTypes:[.Monoid]' FUN name:combine visibility:public modality:OPEN <> ($this:.IntMonoid, $receiver:kotlin.Int, other:kotlin.Int) returnType:kotlin.Int [infix] overridden: - public abstract fun combine (other: T of .Monoid): T of .Monoid [fake_override,infix] declared in .Monoid + public abstract fun combine (other: T of .Monoid): T of .Monoid declared in .Monoid $this: VALUE_PARAMETER name: type:.IntMonoid $receiver: VALUE_PARAMETER name: type:kotlin.Int VALUE_PARAMETER name:other index:0 type:kotlin.Int BLOCK_BODY - RETURN type=kotlin.Nothing from='public open fun combine (other: kotlin.Int): kotlin.Int [infix] declared in .IntMonoid' - CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUS + RETURN type=kotlin.Nothing from='public open fun combine (other: kotlin.Int): kotlin.Int declared in .IntMonoid' + CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUS $this: GET_VAR ': kotlin.Int declared in .IntMonoid.combine' type=kotlin.Int origin=null other: GET_VAR 'other: kotlin.Int declared in .IntMonoid.combine' type=kotlin.Int origin=null PROPERTY name:unit visibility:public modality:OPEN [val] overridden: - public abstract unit: T of .Monoid [val] + public abstract unit: T of .Monoid FIELD PROPERTY_BACKING_FIELD name:unit type:kotlin.Int visibility:private [final] EXPRESSION_BODY CONST Int type=kotlin.Int value=0 @@ -79,37 +79,37 @@ FILE fqName: fileName:/monoidSum.kt receiver: GET_VAR ': .IntMonoid declared in .IntMonoid.' type=.IntMonoid 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 [fake_override,operator] declared in .Monoid + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Monoid $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 .Monoid + public open fun hashCode (): kotlin.Int declared in .Monoid $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 .Monoid + public open fun toString (): kotlin.String declared in .Monoid $this: VALUE_PARAMETER name: type:kotlin.Any CLASS OBJECT name:StringMonoid modality:FINAL visibility:public superTypes:[.Monoid] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.StringMonoid CONSTRUCTOR visibility:private <> () returnType:.StringMonoid [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:StringMonoid modality:FINAL visibility:public superTypes:[.Monoid]' FUN name:combine visibility:public modality:OPEN <> ($this:.StringMonoid, $receiver:kotlin.String, other:kotlin.String) returnType:kotlin.String [infix] overridden: - public abstract fun combine (other: T of .Monoid): T of .Monoid [fake_override,infix] declared in .Monoid + public abstract fun combine (other: T of .Monoid): T of .Monoid declared in .Monoid $this: VALUE_PARAMETER name: type:.StringMonoid $receiver: VALUE_PARAMETER name: type:kotlin.String VALUE_PARAMETER name:other index:0 type:kotlin.String BLOCK_BODY - RETURN type=kotlin.Nothing from='public open fun combine (other: kotlin.String): kotlin.String [infix] declared in .StringMonoid' - CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS + RETURN type=kotlin.Nothing from='public open fun combine (other: kotlin.String): kotlin.String declared in .StringMonoid' + CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS $this: GET_VAR ': kotlin.String declared in .StringMonoid.combine' type=kotlin.String origin=null other: GET_VAR 'other: kotlin.String declared in .StringMonoid.combine' type=kotlin.String origin=null PROPERTY name:unit visibility:public modality:OPEN [val] overridden: - public abstract unit: T of .Monoid [val] + public abstract unit: T of .Monoid FIELD PROPERTY_BACKING_FIELD name:unit type:kotlin.String visibility:private [final] EXPRESSION_BODY CONST String type=kotlin.String value="" @@ -124,16 +124,16 @@ FILE fqName: fileName:/monoidSum.kt receiver: GET_VAR ': .StringMonoid declared in .StringMonoid.' type=.StringMonoid 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 [fake_override,operator] declared in .Monoid + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Monoid $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 .Monoid + public open fun hashCode (): kotlin.Int declared in .Monoid $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 .Monoid + public open fun toString (): kotlin.String declared in .Monoid $this: VALUE_PARAMETER name: type:kotlin.Any FUN name:sum visibility:public modality:FINAL ($receiver:kotlin.collections.List.sum>, $context_receiver_0:.Monoid.sum>) returnType:T of .sum TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false @@ -142,7 +142,7 @@ FILE fqName: fileName:/monoidSum.kt VALUE_PARAMETER name:$context_receiver_0 index:0 type:.Monoid.sum> BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun sum ($context_receiver_0: .Monoid.sum>): T of .sum declared in ' - CALL 'public final fun fold (initial: R of kotlin.collections.CollectionsKt.fold, operation: kotlin.Function2<@[ParameterName(name = 'acc')] R of kotlin.collections.CollectionsKt.fold, T of kotlin.collections.CollectionsKt.fold, R of kotlin.collections.CollectionsKt.fold>): R of kotlin.collections.CollectionsKt.fold [inline] declared in kotlin.collections.CollectionsKt' type=T of .sum origin=null + CALL 'public final fun fold (initial: R of kotlin.collections.CollectionsKt.fold, operation: kotlin.Function2<@[ParameterName(name = 'acc')] R of kotlin.collections.CollectionsKt.fold, T of kotlin.collections.CollectionsKt.fold, R of kotlin.collections.CollectionsKt.fold>): R of kotlin.collections.CollectionsKt.fold declared in kotlin.collections.CollectionsKt' type=T of .sum origin=null : T of .sum : T of .sum $receiver: GET_VAR ': kotlin.collections.List.sum> declared in .sum' type=kotlin.collections.List.sum> origin=null @@ -154,14 +154,14 @@ FILE fqName: fileName:/monoidSum.kt VALUE_PARAMETER name:e index:1 type:T of .sum BLOCK_BODY RETURN type=kotlin.Nothing from='local final fun (acc: T of .sum, e: T of .sum): T of .sum declared in .sum' - CALL 'public abstract fun combine (other: T of .Monoid): T of .Monoid [fake_override,infix] declared in .Monoid' type=T of .sum origin=null + CALL 'public abstract fun combine (other: T of .Monoid): T of .Monoid declared in .Monoid' type=T of .sum origin=null $this: GET_VAR '$context_receiver_0: .Monoid.sum> declared in .sum' type=.Monoid.sum> origin=null $receiver: GET_VAR 'acc: T of .sum declared in .sum.' type=T of .sum origin=null other: GET_VAR 'e: T of .sum declared in .sum.' type=T of .sum origin=null FUN name:box visibility:public modality:FINAL <> () returnType:kotlin.String BLOCK_BODY TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with [inline] declared in kotlin.StandardKt' type=kotlin.Int origin=null + CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=kotlin.Int origin=null : .IntMonoid : kotlin.Int receiver: GET_OBJECT 'CLASS OBJECT name:IntMonoid modality:FINAL visibility:public superTypes:[.Monoid]' type=.IntMonoid @@ -180,7 +180,7 @@ FILE fqName: fileName:/monoidSum.kt CONST Int type=kotlin.Int value=3 $context_receiver_0: GET_VAR '$this$with: .IntMonoid declared in .box.' type=.IntMonoid origin=null RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with [inline] declared in kotlin.StandardKt' type=kotlin.String origin=null + CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=kotlin.String origin=null : .StringMonoid : kotlin.String receiver: GET_OBJECT 'CLASS OBJECT name:StringMonoid modality:FINAL visibility:public superTypes:[.Monoid]' type=.StringMonoid diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/function.ir.txt b/compiler/testData/ir/irText/declarations/contextReceivers/function.ir.txt index c5f438be05e..0c9785cda34 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/function.ir.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/function.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/function.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.C CONSTRUCTOR visibility:public <> () returnType:.C [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:c visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:c type:kotlin.Int visibility:private [final] @@ -18,7 +18,7 @@ FILE fqName: fileName:/function.kt receiver: GET_VAR ': .C declared in .C.' type=.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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -39,7 +39,7 @@ FILE fqName: fileName:/function.kt FUN name:bar visibility:public modality:FINAL <> (c:.C) returnType:kotlin.Unit VALUE_PARAMETER name:c index:0 type:.C BLOCK_BODY - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with [inline] declared in kotlin.StandardKt' type=kotlin.Unit origin=null + CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=kotlin.Unit origin=null : .C : kotlin.Unit receiver: GET_VAR 'c: .C declared in .bar' type=.C origin=null diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/functionalType.fir.ir.txt b/compiler/testData/ir/irText/declarations/contextReceivers/functionalType.fir.ir.txt index 8a9b2b3b4b7..926a43103a5 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/functionalType.fir.ir.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/functionalType.fir.ir.txt @@ -3,11 +3,11 @@ FILE fqName: fileName:/functionalType.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Param CONSTRUCTOR visibility:public <> () returnType:.Param [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Param modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -22,7 +22,7 @@ FILE fqName: fileName:/functionalType.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.C CONSTRUCTOR visibility:public <> () returnType:.C [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:c visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:c type:kotlin.Int visibility:private [final] @@ -37,7 +37,7 @@ FILE fqName: fileName:/functionalType.kt receiver: GET_VAR ': .C declared in .C.' type=.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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -52,7 +52,7 @@ FILE fqName: fileName:/functionalType.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.R CONSTRUCTOR visibility:public <> () returnType:.R [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:R modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:r visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:r type:kotlin.Int visibility:private [final] @@ -67,7 +67,7 @@ FILE fqName: fileName:/functionalType.kt receiver: GET_VAR ': .R declared in .R.' type=.R 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -84,27 +84,27 @@ FILE fqName: fileName:/functionalType.kt VALUE_PARAMETER name:$context_receiver_0 index:0 type:.C VALUE_PARAMETER name:g index:1 type:@[ExtensionFunctionType] kotlin.Function3<.C, .R, .Param, kotlin.Unit> BLOCK_BODY - CALL 'public abstract fun invoke (p1: P1 of kotlin.Function3, p2: P2 of kotlin.Function3, p3: P3 of kotlin.Function3): R of kotlin.Function3 [operator] declared in kotlin.Function3' type=kotlin.Unit origin=INVOKE + CALL 'public abstract fun invoke (p1: P1 of kotlin.Function3, p2: P2 of kotlin.Function3, p3: P3 of kotlin.Function3): R of kotlin.Function3 declared in kotlin.Function3' type=kotlin.Unit origin=INVOKE $this: GET_VAR 'g: @[ExtensionFunctionType] kotlin.Function3<.C, .R, .Param, kotlin.Unit> declared in .f1' type=@[ExtensionFunctionType] kotlin.Function3<.C, .R, .Param, kotlin.Unit> origin=VARIABLE_AS_FUNCTION p1: GET_VAR '$context_receiver_0: .C declared in .f1' type=.C origin=null p2: GET_VAR ': .R declared in .f1' type=.R origin=null - p3: CONSTRUCTOR_CALL 'public constructor () [primary] declared in .Param' type=.Param origin=null + p3: CONSTRUCTOR_CALL 'public constructor () declared in .Param' type=.Param origin=null FUN name:f2 visibility:public modality:FINAL <> ($context_receiver_0:.C, g:kotlin.Function2<.C, .Param, kotlin.Unit>) returnType:kotlin.Unit contextReceiverParametersCount: 1 VALUE_PARAMETER name:$context_receiver_0 index:0 type:.C VALUE_PARAMETER name:g index:1 type:kotlin.Function2<.C, .Param, kotlin.Unit> BLOCK_BODY - CALL 'public abstract fun invoke (p1: P1 of kotlin.Function2, p2: P2 of kotlin.Function2): R of kotlin.Function2 [operator] declared in kotlin.Function2' type=kotlin.Unit origin=INVOKE + CALL 'public abstract fun invoke (p1: P1 of kotlin.Function2, p2: P2 of kotlin.Function2): R of kotlin.Function2 declared in kotlin.Function2' type=kotlin.Unit origin=INVOKE $this: GET_VAR 'g: kotlin.Function2<.C, .Param, kotlin.Unit> declared in .f2' type=kotlin.Function2<.C, .Param, kotlin.Unit> origin=VARIABLE_AS_FUNCTION p1: GET_VAR '$context_receiver_0: .C declared in .f2' type=.C origin=null - p2: CONSTRUCTOR_CALL 'public constructor () [primary] declared in .Param' type=.Param origin=null + p2: CONSTRUCTOR_CALL 'public constructor () declared in .Param' type=.Param origin=null FUN name:f3 visibility:public modality:FINAL <> ($receiver:.R, $context_receiver_0:.C, g:@[ExtensionFunctionType] kotlin.Function2<.C, .R, kotlin.Unit>) returnType:kotlin.Unit contextReceiverParametersCount: 1 $receiver: VALUE_PARAMETER name: type:.R VALUE_PARAMETER name:$context_receiver_0 index:0 type:.C VALUE_PARAMETER name:g index:1 type:@[ExtensionFunctionType] kotlin.Function2<.C, .R, kotlin.Unit> BLOCK_BODY - CALL 'public abstract fun invoke (p1: P1 of kotlin.Function2, p2: P2 of kotlin.Function2): R of kotlin.Function2 [operator] declared in kotlin.Function2' type=kotlin.Unit origin=INVOKE + CALL 'public abstract fun invoke (p1: P1 of kotlin.Function2, p2: P2 of kotlin.Function2): R of kotlin.Function2 declared in kotlin.Function2' type=kotlin.Unit origin=INVOKE $this: GET_VAR 'g: @[ExtensionFunctionType] kotlin.Function2<.C, .R, kotlin.Unit> declared in .f3' type=@[ExtensionFunctionType] kotlin.Function2<.C, .R, kotlin.Unit> origin=VARIABLE_AS_FUNCTION p1: GET_VAR '$context_receiver_0: .C declared in .f3' type=.C origin=null p2: GET_VAR ': .R declared in .f3' type=.R origin=null @@ -113,7 +113,7 @@ FILE fqName: fileName:/functionalType.kt VALUE_PARAMETER name:$context_receiver_0 index:0 type:.C VALUE_PARAMETER name:g index:1 type:kotlin.Function1<.C, kotlin.Unit> BLOCK_BODY - CALL 'public abstract fun invoke (p1: P1 of kotlin.Function1): R of kotlin.Function1 [operator] declared in kotlin.Function1' type=kotlin.Unit origin=INVOKE + CALL 'public abstract fun invoke (p1: P1 of kotlin.Function1): R of kotlin.Function1 declared in kotlin.Function1' type=kotlin.Unit origin=INVOKE $this: GET_VAR 'g: kotlin.Function1<.C, kotlin.Unit> declared in .f4' type=kotlin.Function1<.C, kotlin.Unit> origin=VARIABLE_AS_FUNCTION p1: GET_VAR '$context_receiver_0: .C declared in .f4' type=.C origin=null FUN name:test visibility:public modality:FINAL <> () returnType:kotlin.Unit @@ -164,18 +164,18 @@ FILE fqName: fileName:/functionalType.kt TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit CALL 'public final fun (): kotlin.Int declared in .C' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR '$context_receiver_0: .C declared in .test.' type=.C origin=null - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with [inline] declared in kotlin.StandardKt' type=kotlin.Unit origin=null + CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=kotlin.Unit origin=null : .C : kotlin.Unit - receiver: CONSTRUCTOR_CALL 'public constructor () [primary] declared in .C' type=.C origin=null + receiver: CONSTRUCTOR_CALL 'public constructor () declared in .C' type=.C origin=null block: FUN_EXPR type=@[ExtensionFunctionType] kotlin.Function1<.C, kotlin.Unit> origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> ($receiver:.C) returnType:kotlin.Unit $receiver: VALUE_PARAMETER name:$this$with type:.C BLOCK_BODY - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with [inline] declared in kotlin.StandardKt' type=kotlin.Unit origin=null + CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=kotlin.Unit origin=null : .R : kotlin.Unit - receiver: CONSTRUCTOR_CALL 'public constructor () [primary] declared in .R' type=.R origin=null + receiver: CONSTRUCTOR_CALL 'public constructor () declared in .R' type=.R origin=null block: FUN_EXPR type=@[ExtensionFunctionType] kotlin.Function1<.R, kotlin.Unit> origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> ($receiver:.R) returnType:kotlin.Unit $receiver: VALUE_PARAMETER name:$this$with type:.R @@ -183,7 +183,7 @@ FILE fqName: fileName:/functionalType.kt CALL 'public final fun f1 ($context_receiver_0: .C, g: @[ExtensionFunctionType] kotlin.Function3<.C, .R, .Param, kotlin.Unit>): kotlin.Unit declared in ' type=kotlin.Unit origin=null $receiver: GET_VAR '$this$with: .R declared in .test..' type=.R origin=null $context_receiver_0: GET_VAR '$this$with: .C declared in .test.' type=.C origin=null - g: GET_VAR 'val lf1: @[ExtensionFunctionType] kotlin.Function3<.C, .R, .Param, kotlin.Unit> [val] declared in .test' type=@[ExtensionFunctionType] kotlin.Function3<.C, .R, .Param, kotlin.Unit> origin=null + g: GET_VAR 'val lf1: @[ExtensionFunctionType] kotlin.Function3<.C, .R, .Param, kotlin.Unit> declared in .test' type=@[ExtensionFunctionType] kotlin.Function3<.C, .R, .Param, kotlin.Unit> origin=null CALL 'public final fun f1 ($context_receiver_0: .C, g: @[ExtensionFunctionType] kotlin.Function3<.C, .R, .Param, kotlin.Unit>): kotlin.Unit declared in ' type=kotlin.Unit origin=null $receiver: GET_VAR '$this$with: .R declared in .test..' type=.R origin=null $context_receiver_0: GET_VAR '$this$with: .C declared in .test.' type=.C origin=null @@ -202,7 +202,7 @@ FILE fqName: fileName:/functionalType.kt $this: GET_VAR '$this$with: .C declared in .test.' type=.C origin=null CALL 'public final fun f2 ($context_receiver_0: .C, g: kotlin.Function2<.C, .Param, kotlin.Unit>): kotlin.Unit declared in ' type=kotlin.Unit origin=null $context_receiver_0: GET_VAR '$this$with: .C declared in .test.' type=.C origin=null - g: GET_VAR 'val lf2: kotlin.Function2<.C, .Param, kotlin.Unit> [val] declared in .test' type=kotlin.Function2<.C, .Param, kotlin.Unit> origin=null + g: GET_VAR 'val lf2: kotlin.Function2<.C, .Param, kotlin.Unit> declared in .test' type=kotlin.Function2<.C, .Param, kotlin.Unit> origin=null CALL 'public final fun f2 ($context_receiver_0: .C, g: kotlin.Function2<.C, .Param, kotlin.Unit>): kotlin.Unit declared in ' type=kotlin.Unit origin=null $context_receiver_0: GET_VAR '$this$with: .C declared in .test.' type=.C origin=null g: FUN_EXPR type=kotlin.Function2<.C, .Param, kotlin.Unit> origin=LAMBDA @@ -217,7 +217,7 @@ FILE fqName: fileName:/functionalType.kt CALL 'public final fun f3 ($context_receiver_0: .C, g: @[ExtensionFunctionType] kotlin.Function2<.C, .R, kotlin.Unit>): kotlin.Unit declared in ' type=kotlin.Unit origin=null $receiver: GET_VAR '$this$with: .R declared in .test..' type=.R origin=null $context_receiver_0: GET_VAR '$this$with: .C declared in .test.' type=.C origin=null - g: GET_VAR 'val lf3: @[ExtensionFunctionType] kotlin.Function2<.C, .R, kotlin.Unit> [val] declared in .test' type=@[ExtensionFunctionType] kotlin.Function2<.C, .R, kotlin.Unit> origin=null + g: GET_VAR 'val lf3: @[ExtensionFunctionType] kotlin.Function2<.C, .R, kotlin.Unit> declared in .test' type=@[ExtensionFunctionType] kotlin.Function2<.C, .R, kotlin.Unit> origin=null CALL 'public final fun f3 ($context_receiver_0: .C, g: @[ExtensionFunctionType] kotlin.Function2<.C, .R, kotlin.Unit>): kotlin.Unit declared in ' type=kotlin.Unit origin=null $receiver: GET_VAR '$this$with: .R declared in .test..' type=.R origin=null $context_receiver_0: GET_VAR '$this$with: .C declared in .test.' type=.C origin=null @@ -235,7 +235,7 @@ FILE fqName: fileName:/functionalType.kt $this: GET_VAR '$this$with: .C declared in .test.' type=.C origin=null CALL 'public final fun f4 ($context_receiver_0: .C, g: kotlin.Function1<.C, kotlin.Unit>): kotlin.Unit declared in ' type=kotlin.Unit origin=null $context_receiver_0: GET_VAR '$this$with: .C declared in .test.' type=.C origin=null - g: GET_VAR 'val lf4: kotlin.Function1<.C, kotlin.Unit> [val] declared in .test' type=kotlin.Function1<.C, kotlin.Unit> origin=null + g: GET_VAR 'val lf4: kotlin.Function1<.C, kotlin.Unit> declared in .test' type=kotlin.Function1<.C, kotlin.Unit> origin=null CALL 'public final fun f4 ($context_receiver_0: .C, g: kotlin.Function1<.C, kotlin.Unit>): kotlin.Unit declared in ' type=kotlin.Unit origin=null $context_receiver_0: GET_VAR '$this$with: .C declared in .test.' type=.C origin=null g: FUN_EXPR type=kotlin.Function1<.C, kotlin.Unit> origin=LAMBDA diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/functionalType.ir.txt b/compiler/testData/ir/irText/declarations/contextReceivers/functionalType.ir.txt index 6b457700dbf..03781a32a18 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/functionalType.ir.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/functionalType.ir.txt @@ -3,11 +3,11 @@ FILE fqName: fileName:/functionalType.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Param CONSTRUCTOR visibility:public <> () returnType:.Param [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Param modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -22,7 +22,7 @@ FILE fqName: fileName:/functionalType.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.C CONSTRUCTOR visibility:public <> () returnType:.C [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:c visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:c type:kotlin.Int visibility:private [final] @@ -37,7 +37,7 @@ FILE fqName: fileName:/functionalType.kt receiver: GET_VAR ': .C declared in .C.' type=.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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -52,7 +52,7 @@ FILE fqName: fileName:/functionalType.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.R CONSTRUCTOR visibility:public <> () returnType:.R [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:R modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:r visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:r type:kotlin.Int visibility:private [final] @@ -67,7 +67,7 @@ FILE fqName: fileName:/functionalType.kt receiver: GET_VAR ': .R declared in .R.' type=.R 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -84,27 +84,27 @@ FILE fqName: fileName:/functionalType.kt VALUE_PARAMETER name:$context_receiver_0 index:0 type:.C VALUE_PARAMETER name:g index:1 type:@[ExtensionFunctionType] @[ContextFunctionTypeParams(count = '1')] kotlin.Function3<.C, .R, .Param, kotlin.Unit> BLOCK_BODY - CALL 'public abstract fun invoke (p1: P1 of kotlin.Function3, p2: P2 of kotlin.Function3, p3: P3 of kotlin.Function3): R of kotlin.Function3 [operator] declared in kotlin.Function3' type=kotlin.Unit origin=INVOKE + CALL 'public abstract fun invoke (p1: P1 of kotlin.Function3, p2: P2 of kotlin.Function3, p3: P3 of kotlin.Function3): R of kotlin.Function3 declared in kotlin.Function3' type=kotlin.Unit origin=INVOKE $this: GET_VAR 'g: @[ExtensionFunctionType] @[ContextFunctionTypeParams(count = '1')] kotlin.Function3<.C, .R, .Param, kotlin.Unit> declared in .f1' type=@[ExtensionFunctionType] @[ContextFunctionTypeParams(count = '1')] kotlin.Function3<.C, .R, .Param, kotlin.Unit> origin=VARIABLE_AS_FUNCTION p1: GET_VAR '$context_receiver_0: .C declared in .f1' type=.C origin=null p2: GET_VAR ': .R declared in .f1' type=.R origin=null - p3: CONSTRUCTOR_CALL 'public constructor () [primary] declared in .Param' type=.Param origin=null + p3: CONSTRUCTOR_CALL 'public constructor () declared in .Param' type=.Param origin=null FUN name:f2 visibility:public modality:FINAL <> ($context_receiver_0:.C, g:@[ContextFunctionTypeParams(count = '1')] kotlin.Function2<.C, .Param, kotlin.Unit>) returnType:kotlin.Unit contextReceiverParametersCount: 1 VALUE_PARAMETER name:$context_receiver_0 index:0 type:.C VALUE_PARAMETER name:g index:1 type:@[ContextFunctionTypeParams(count = '1')] kotlin.Function2<.C, .Param, kotlin.Unit> BLOCK_BODY - CALL 'public abstract fun invoke (p1: P1 of kotlin.Function2, p2: P2 of kotlin.Function2): R of kotlin.Function2 [operator] declared in kotlin.Function2' type=kotlin.Unit origin=INVOKE + CALL 'public abstract fun invoke (p1: P1 of kotlin.Function2, p2: P2 of kotlin.Function2): R of kotlin.Function2 declared in kotlin.Function2' type=kotlin.Unit origin=INVOKE $this: GET_VAR 'g: @[ContextFunctionTypeParams(count = '1')] kotlin.Function2<.C, .Param, kotlin.Unit> declared in .f2' type=@[ContextFunctionTypeParams(count = '1')] kotlin.Function2<.C, .Param, kotlin.Unit> origin=VARIABLE_AS_FUNCTION p1: GET_VAR '$context_receiver_0: .C declared in .f2' type=.C origin=null - p2: CONSTRUCTOR_CALL 'public constructor () [primary] declared in .Param' type=.Param origin=null + p2: CONSTRUCTOR_CALL 'public constructor () declared in .Param' type=.Param origin=null FUN name:f3 visibility:public modality:FINAL <> ($receiver:.R, $context_receiver_0:.C, g:@[ExtensionFunctionType] @[ContextFunctionTypeParams(count = '1')] kotlin.Function2<.C, .R, kotlin.Unit>) returnType:kotlin.Unit contextReceiverParametersCount: 1 $receiver: VALUE_PARAMETER name: type:.R VALUE_PARAMETER name:$context_receiver_0 index:0 type:.C VALUE_PARAMETER name:g index:1 type:@[ExtensionFunctionType] @[ContextFunctionTypeParams(count = '1')] kotlin.Function2<.C, .R, kotlin.Unit> BLOCK_BODY - CALL 'public abstract fun invoke (p1: P1 of kotlin.Function2, p2: P2 of kotlin.Function2): R of kotlin.Function2 [operator] declared in kotlin.Function2' type=kotlin.Unit origin=INVOKE + CALL 'public abstract fun invoke (p1: P1 of kotlin.Function2, p2: P2 of kotlin.Function2): R of kotlin.Function2 declared in kotlin.Function2' type=kotlin.Unit origin=INVOKE $this: GET_VAR 'g: @[ExtensionFunctionType] @[ContextFunctionTypeParams(count = '1')] kotlin.Function2<.C, .R, kotlin.Unit> declared in .f3' type=@[ExtensionFunctionType] @[ContextFunctionTypeParams(count = '1')] kotlin.Function2<.C, .R, kotlin.Unit> origin=VARIABLE_AS_FUNCTION p1: GET_VAR '$context_receiver_0: .C declared in .f3' type=.C origin=null p2: GET_VAR ': .R declared in .f3' type=.R origin=null @@ -113,7 +113,7 @@ FILE fqName: fileName:/functionalType.kt VALUE_PARAMETER name:$context_receiver_0 index:0 type:.C VALUE_PARAMETER name:g index:1 type:@[ContextFunctionTypeParams(count = '1')] kotlin.Function1<.C, kotlin.Unit> BLOCK_BODY - CALL 'public abstract fun invoke (p1: P1 of kotlin.Function1): R of kotlin.Function1 [operator] declared in kotlin.Function1' type=kotlin.Unit origin=INVOKE + CALL 'public abstract fun invoke (p1: P1 of kotlin.Function1): R of kotlin.Function1 declared in kotlin.Function1' type=kotlin.Unit origin=INVOKE $this: GET_VAR 'g: @[ContextFunctionTypeParams(count = '1')] kotlin.Function1<.C, kotlin.Unit> declared in .f4' type=@[ContextFunctionTypeParams(count = '1')] kotlin.Function1<.C, kotlin.Unit> origin=VARIABLE_AS_FUNCTION p1: GET_VAR '$context_receiver_0: .C declared in .f4' type=.C origin=null FUN name:test visibility:public modality:FINAL <> () returnType:kotlin.Unit @@ -164,18 +164,18 @@ FILE fqName: fileName:/functionalType.kt TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit CALL 'public final fun (): kotlin.Int declared in .C' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR '$context_receiver_0: .C declared in .test.' type=.C origin=null - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with [inline] declared in kotlin.StandardKt' type=kotlin.Unit origin=null + CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=kotlin.Unit origin=null : .C : kotlin.Unit - receiver: CONSTRUCTOR_CALL 'public constructor () [primary] declared in .C' type=.C origin=null + receiver: CONSTRUCTOR_CALL 'public constructor () declared in .C' type=.C origin=null block: FUN_EXPR type=@[ExtensionFunctionType] kotlin.Function1<.C, kotlin.Unit> origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> ($receiver:.C) returnType:kotlin.Unit $receiver: VALUE_PARAMETER name:$this$with type:.C BLOCK_BODY - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with [inline] declared in kotlin.StandardKt' type=kotlin.Unit origin=null + CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=kotlin.Unit origin=null : .R : kotlin.Unit - receiver: CONSTRUCTOR_CALL 'public constructor () [primary] declared in .R' type=.R origin=null + receiver: CONSTRUCTOR_CALL 'public constructor () declared in .R' type=.R origin=null block: FUN_EXPR type=@[ExtensionFunctionType] kotlin.Function1<.R, kotlin.Unit> origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> ($receiver:.R) returnType:kotlin.Unit $receiver: VALUE_PARAMETER name:$this$with type:.R @@ -183,7 +183,7 @@ FILE fqName: fileName:/functionalType.kt CALL 'public final fun f1 ($context_receiver_0: .C, g: @[ExtensionFunctionType] @[ContextFunctionTypeParams(count = '1')] kotlin.Function3<.C, .R, .Param, kotlin.Unit>): kotlin.Unit declared in ' type=kotlin.Unit origin=null $receiver: GET_VAR '$this$with: .R declared in .test..' type=.R origin=null $context_receiver_0: GET_VAR '$this$with: .C declared in .test.' type=.C origin=null - g: GET_VAR 'val lf1: @[ExtensionFunctionType] @[ContextFunctionTypeParams(count = '1')] kotlin.Function3<.C, .R, .Param, kotlin.Unit> [val] declared in .test' type=@[ExtensionFunctionType] @[ContextFunctionTypeParams(count = '1')] kotlin.Function3<.C, .R, .Param, kotlin.Unit> origin=null + g: GET_VAR 'val lf1: @[ExtensionFunctionType] @[ContextFunctionTypeParams(count = '1')] kotlin.Function3<.C, .R, .Param, kotlin.Unit> declared in .test' type=@[ExtensionFunctionType] @[ContextFunctionTypeParams(count = '1')] kotlin.Function3<.C, .R, .Param, kotlin.Unit> origin=null CALL 'public final fun f1 ($context_receiver_0: .C, g: @[ExtensionFunctionType] @[ContextFunctionTypeParams(count = '1')] kotlin.Function3<.C, .R, .Param, kotlin.Unit>): kotlin.Unit declared in ' type=kotlin.Unit origin=null $receiver: GET_VAR '$this$with: .R declared in .test..' type=.R origin=null $context_receiver_0: GET_VAR '$this$with: .C declared in .test.' type=.C origin=null @@ -202,7 +202,7 @@ FILE fqName: fileName:/functionalType.kt $this: GET_VAR '$this$with: .C declared in .test.' type=.C origin=null CALL 'public final fun f2 ($context_receiver_0: .C, g: @[ContextFunctionTypeParams(count = '1')] kotlin.Function2<.C, .Param, kotlin.Unit>): kotlin.Unit declared in ' type=kotlin.Unit origin=null $context_receiver_0: GET_VAR '$this$with: .C declared in .test.' type=.C origin=null - g: GET_VAR 'val lf2: @[ContextFunctionTypeParams(count = '1')] kotlin.Function2<.C, .Param, kotlin.Unit> [val] declared in .test' type=@[ContextFunctionTypeParams(count = '1')] kotlin.Function2<.C, .Param, kotlin.Unit> origin=null + g: GET_VAR 'val lf2: @[ContextFunctionTypeParams(count = '1')] kotlin.Function2<.C, .Param, kotlin.Unit> declared in .test' type=@[ContextFunctionTypeParams(count = '1')] kotlin.Function2<.C, .Param, kotlin.Unit> origin=null CALL 'public final fun f2 ($context_receiver_0: .C, g: @[ContextFunctionTypeParams(count = '1')] kotlin.Function2<.C, .Param, kotlin.Unit>): kotlin.Unit declared in ' type=kotlin.Unit origin=null $context_receiver_0: GET_VAR '$this$with: .C declared in .test.' type=.C origin=null g: FUN_EXPR type=@[ContextFunctionTypeParams(count = '1')] kotlin.Function2<.C, .Param, kotlin.Unit> origin=LAMBDA @@ -217,7 +217,7 @@ FILE fqName: fileName:/functionalType.kt CALL 'public final fun f3 ($context_receiver_0: .C, g: @[ExtensionFunctionType] @[ContextFunctionTypeParams(count = '1')] kotlin.Function2<.C, .R, kotlin.Unit>): kotlin.Unit declared in ' type=kotlin.Unit origin=null $receiver: GET_VAR '$this$with: .R declared in .test..' type=.R origin=null $context_receiver_0: GET_VAR '$this$with: .C declared in .test.' type=.C origin=null - g: GET_VAR 'val lf3: @[ExtensionFunctionType] @[ContextFunctionTypeParams(count = '1')] kotlin.Function2<.C, .R, kotlin.Unit> [val] declared in .test' type=@[ExtensionFunctionType] @[ContextFunctionTypeParams(count = '1')] kotlin.Function2<.C, .R, kotlin.Unit> origin=null + g: GET_VAR 'val lf3: @[ExtensionFunctionType] @[ContextFunctionTypeParams(count = '1')] kotlin.Function2<.C, .R, kotlin.Unit> declared in .test' type=@[ExtensionFunctionType] @[ContextFunctionTypeParams(count = '1')] kotlin.Function2<.C, .R, kotlin.Unit> origin=null CALL 'public final fun f3 ($context_receiver_0: .C, g: @[ExtensionFunctionType] @[ContextFunctionTypeParams(count = '1')] kotlin.Function2<.C, .R, kotlin.Unit>): kotlin.Unit declared in ' type=kotlin.Unit origin=null $receiver: GET_VAR '$this$with: .R declared in .test..' type=.R origin=null $context_receiver_0: GET_VAR '$this$with: .C declared in .test.' type=.C origin=null @@ -235,7 +235,7 @@ FILE fqName: fileName:/functionalType.kt $this: GET_VAR '$this$with: .C declared in .test.' type=.C origin=null CALL 'public final fun f4 ($context_receiver_0: .C, g: @[ContextFunctionTypeParams(count = '1')] kotlin.Function1<.C, kotlin.Unit>): kotlin.Unit declared in ' type=kotlin.Unit origin=null $context_receiver_0: GET_VAR '$this$with: .C declared in .test.' type=.C origin=null - g: GET_VAR 'val lf4: @[ContextFunctionTypeParams(count = '1')] kotlin.Function1<.C, kotlin.Unit> [val] declared in .test' type=@[ContextFunctionTypeParams(count = '1')] kotlin.Function1<.C, kotlin.Unit> origin=null + g: GET_VAR 'val lf4: @[ContextFunctionTypeParams(count = '1')] kotlin.Function1<.C, kotlin.Unit> declared in .test' type=@[ContextFunctionTypeParams(count = '1')] kotlin.Function1<.C, kotlin.Unit> origin=null CALL 'public final fun f4 ($context_receiver_0: .C, g: @[ContextFunctionTypeParams(count = '1')] kotlin.Function1<.C, kotlin.Unit>): kotlin.Unit declared in ' type=kotlin.Unit origin=null $context_receiver_0: GET_VAR '$this$with: .C declared in .test.' type=.C origin=null g: FUN_EXPR type=@[ContextFunctionTypeParams(count = '1')] kotlin.Function1<.C, kotlin.Unit> origin=LAMBDA diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/genericOuterClass.ir.txt b/compiler/testData/ir/irText/declarations/contextReceivers/genericOuterClass.ir.txt index ba589d2a5ba..c24276f2761 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/genericOuterClass.ir.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/genericOuterClass.ir.txt @@ -6,14 +6,14 @@ FILE fqName: fileName:/genericOuterClass.kt CONSTRUCTOR visibility:public <> ($context_receiver_0:T of .A) returnType:.A.A> [primary] VALUE_PARAMETER name:$context_receiver_0 index:0 type:T of .A BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' SET_FIELD 'FIELD FIELD_FOR_CLASS_CONTEXT_RECEIVER name:contextReceiverField0 type:T of .A visibility:private [final]' type=kotlin.Unit origin=null receiver: GET_VAR ': .A.A> declared in .A' type=.A.A> origin=null value: GET_VAR '$context_receiver_0: T of .A declared in .A.' type=T of .A origin=null INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:A modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -31,14 +31,14 @@ FILE fqName: fileName:/genericOuterClass.kt CONSTRUCTOR visibility:public <> ($context_receiver_0:kotlin.collections.Collection

.B>) returnType:.B

.B> [primary] VALUE_PARAMETER name:$context_receiver_0 index:0 type:kotlin.collections.Collection

.B> BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' SET_FIELD 'FIELD FIELD_FOR_CLASS_CONTEXT_RECEIVER name:contextReceiverField0 type:kotlin.collections.Collection

.B> visibility:private [final]' type=kotlin.Unit origin=null receiver: GET_VAR ': .B

.B> declared in .B' type=.B

.B> origin=null value: GET_VAR '$context_receiver_0: kotlin.collections.Collection

.B> declared in .B.' type=kotlin.collections.Collection

.B> origin=null INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:B modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -53,13 +53,13 @@ FILE fqName: fileName:/genericOuterClass.kt $receiver: VALUE_PARAMETER name: type:kotlin.Int BLOCK_BODY TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit - CONSTRUCTOR_CALL 'public constructor ($context_receiver_0: T of .A) [primary] declared in .A' type=.A origin=null + CONSTRUCTOR_CALL 'public constructor ($context_receiver_0: T of .A) declared in .A' type=.A origin=null : kotlin.Int $context_receiver_0: GET_VAR ': kotlin.Int declared in .foo' type=kotlin.Int origin=null FUN name:bar visibility:public modality:FINAL <> ($receiver:kotlin.collections.Collection) returnType:kotlin.Unit $receiver: VALUE_PARAMETER name: type:kotlin.collections.Collection BLOCK_BODY TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit - CONSTRUCTOR_CALL 'public constructor ($context_receiver_0: kotlin.collections.Collection

.B>) [primary] declared in .B' type=.B origin=null + CONSTRUCTOR_CALL 'public constructor ($context_receiver_0: kotlin.collections.Collection

.B>) declared in .B' type=.B origin=null : kotlin.Int $context_receiver_0: GET_VAR ': kotlin.collections.Collection declared in .bar' type=kotlin.collections.Collection origin=null diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/iteratorOperator.fir.ir.txt b/compiler/testData/ir/irText/declarations/contextReceivers/iteratorOperator.fir.ir.txt index 5f82dcaf15a..2a766cced7b 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/iteratorOperator.fir.ir.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/iteratorOperator.fir.ir.txt @@ -6,7 +6,7 @@ FILE fqName: fileName:/iteratorOperator.kt EXPRESSION_BODY CONST Int type=kotlin.Int value=0 BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Counter modality:FINAL visibility:public [data] superTypes:[kotlin.Any]' PROPERTY name:i visibility:public modality:FINAL [var] FIELD PROPERTY_BACKING_FIELD name:i type:kotlin.Int visibility:private @@ -30,7 +30,7 @@ FILE fqName: fileName:/iteratorOperator.kt FUN GENERATED_DATA_CLASS_MEMBER name:component1 visibility:public modality:FINAL <> ($this:.Counter) returnType:kotlin.Int [operator] $this: VALUE_PARAMETER name: type:.Counter BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Int [operator] declared in .Counter' + RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Int declared in .Counter' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:i type:kotlin.Int visibility:private' type=kotlin.Int origin=null receiver: GET_VAR ': .Counter declared in .Counter.component1' type=.Counter origin=null FUN GENERATED_DATA_CLASS_MEMBER name:copy visibility:public modality:FINAL <> ($this:.Counter, i:kotlin.Int) returnType:.Counter @@ -41,11 +41,11 @@ FILE fqName: fileName:/iteratorOperator.kt receiver: GET_VAR ': .Counter declared in .Counter.copy' type=.Counter origin=null BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun copy (i: kotlin.Int): .Counter declared in .Counter' - CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) [primary] declared in .Counter' type=.Counter origin=null + CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) declared in .Counter' type=.Counter origin=null i: GET_VAR 'i: kotlin.Int declared in .Counter.copy' type=kotlin.Int origin=null FUN GENERATED_DATA_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:.Counter, other:kotlin.Any?) returnType:kotlin.Boolean [operator] overridden: - public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any $this: VALUE_PARAMETER name: type:.Counter VALUE_PARAMETER name:other index:0 type:kotlin.Any? BLOCK_BODY @@ -54,28 +54,28 @@ FILE fqName: fileName:/iteratorOperator.kt 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 ': .Counter declared in .Counter.equals' type=.Counter origin=null arg1: GET_VAR 'other: kotlin.Any? declared in .Counter.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Counter' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Counter' CONST Boolean type=kotlin.Boolean value=true WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=.Counter GET_VAR 'other: kotlin.Any? declared in .Counter.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Counter' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Counter' CONST Boolean type=kotlin.Boolean value=false VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:.Counter [val] TYPE_OP type=.Counter origin=CAST typeOperand=.Counter GET_VAR 'other: kotlin.Any? declared in .Counter.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 + if: CALL 'public final fun not (): kotlin.Boolean 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:i type:kotlin.Int visibility:private' type=kotlin.Int origin=null receiver: GET_VAR ': .Counter declared in .Counter.equals' type=.Counter origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:i type:kotlin.Int visibility:private' type=kotlin.Int origin=null - receiver: GET_VAR 'val tmp_0: .Counter [val] declared in .Counter.equals' type=.Counter origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Counter' + receiver: GET_VAR 'val tmp_0: .Counter declared in .Counter.equals' type=.Counter origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Counter' CONST Boolean type=kotlin.Boolean value=false - RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Counter' + RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Counter' CONST Boolean type=kotlin.Boolean value=true FUN GENERATED_DATA_CLASS_MEMBER name:hashCode visibility:public modality:OPEN <> ($this:.Counter) returnType:kotlin.Int overridden: @@ -83,7 +83,7 @@ FILE fqName: fileName:/iteratorOperator.kt $this: VALUE_PARAMETER name: type:.Counter BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun hashCode (): kotlin.Int declared in .Counter' - CALL 'public open fun hashCode (): kotlin.Int [fake_override] declared in kotlin.Int' type=kotlin.Int origin=null + CALL 'public open fun hashCode (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:i type:kotlin.Int visibility:private' type=kotlin.Int origin=null receiver: GET_VAR ': .Counter declared in .Counter.hashCode' type=.Counter origin=null FUN GENERATED_DATA_CLASS_MEMBER name:toString visibility:public modality:OPEN <> ($this:.Counter) returnType:kotlin.String @@ -104,7 +104,7 @@ FILE fqName: fileName:/iteratorOperator.kt EXPRESSION_BODY CONST Int type=kotlin.Int value=10 BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:CounterConfig modality:FINAL visibility:public [data] superTypes:[kotlin.Any]' PROPERTY name:max visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:max type:kotlin.Int visibility:private [final] @@ -120,7 +120,7 @@ FILE fqName: fileName:/iteratorOperator.kt FUN GENERATED_DATA_CLASS_MEMBER name:component1 visibility:public modality:FINAL <> ($this:.CounterConfig) returnType:kotlin.Int [operator] $this: VALUE_PARAMETER name: type:.CounterConfig BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Int [operator] declared in .CounterConfig' + RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Int declared in .CounterConfig' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:max type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null receiver: GET_VAR ': .CounterConfig declared in .CounterConfig.component1' type=.CounterConfig origin=null FUN GENERATED_DATA_CLASS_MEMBER name:copy visibility:public modality:FINAL <> ($this:.CounterConfig, max:kotlin.Int) returnType:.CounterConfig @@ -131,11 +131,11 @@ FILE fqName: fileName:/iteratorOperator.kt receiver: GET_VAR ': .CounterConfig declared in .CounterConfig.copy' type=.CounterConfig origin=null BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun copy (max: kotlin.Int): .CounterConfig declared in .CounterConfig' - CONSTRUCTOR_CALL 'public constructor (max: kotlin.Int) [primary] declared in .CounterConfig' type=.CounterConfig origin=null + CONSTRUCTOR_CALL 'public constructor (max: kotlin.Int) declared in .CounterConfig' type=.CounterConfig origin=null max: GET_VAR 'max: kotlin.Int declared in .CounterConfig.copy' type=kotlin.Int origin=null FUN GENERATED_DATA_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:.CounterConfig, other:kotlin.Any?) returnType:kotlin.Boolean [operator] overridden: - public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any $this: VALUE_PARAMETER name: type:.CounterConfig VALUE_PARAMETER name:other index:0 type:kotlin.Any? BLOCK_BODY @@ -144,28 +144,28 @@ FILE fqName: fileName:/iteratorOperator.kt 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 ': .CounterConfig declared in .CounterConfig.equals' type=.CounterConfig origin=null arg1: GET_VAR 'other: kotlin.Any? declared in .CounterConfig.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .CounterConfig' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .CounterConfig' CONST Boolean type=kotlin.Boolean value=true WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=.CounterConfig GET_VAR 'other: kotlin.Any? declared in .CounterConfig.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .CounterConfig' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .CounterConfig' CONST Boolean type=kotlin.Boolean value=false VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:.CounterConfig [val] TYPE_OP type=.CounterConfig origin=CAST typeOperand=.CounterConfig GET_VAR 'other: kotlin.Any? declared in .CounterConfig.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 + if: CALL 'public final fun not (): kotlin.Boolean 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:max type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null receiver: GET_VAR ': .CounterConfig declared in .CounterConfig.equals' type=.CounterConfig origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:max type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null - receiver: GET_VAR 'val tmp_1: .CounterConfig [val] declared in .CounterConfig.equals' type=.CounterConfig origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .CounterConfig' + receiver: GET_VAR 'val tmp_1: .CounterConfig declared in .CounterConfig.equals' type=.CounterConfig origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .CounterConfig' CONST Boolean type=kotlin.Boolean value=false - RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .CounterConfig' + RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .CounterConfig' CONST Boolean type=kotlin.Boolean value=true FUN GENERATED_DATA_CLASS_MEMBER name:hashCode visibility:public modality:OPEN <> ($this:.CounterConfig) returnType:kotlin.Int overridden: @@ -173,7 +173,7 @@ FILE fqName: fileName:/iteratorOperator.kt $this: VALUE_PARAMETER name: type:.CounterConfig BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun hashCode (): kotlin.Int declared in .CounterConfig' - CALL 'public open fun hashCode (): kotlin.Int [fake_override] declared in kotlin.Int' type=kotlin.Int origin=null + CALL 'public open fun hashCode (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:max type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null receiver: GET_VAR ': .CounterConfig declared in .CounterConfig.hashCode' type=.CounterConfig origin=null FUN GENERATED_DATA_CLASS_MEMBER name:toString visibility:public modality:OPEN <> ($this:.CounterConfig) returnType:kotlin.String @@ -194,7 +194,7 @@ FILE fqName: fileName:/iteratorOperator.kt VALUE_PARAMETER name:$context_receiver_0 index:0 type:.CounterConfig VALUE_PARAMETER name:counter index:1 type:.Counter BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' SET_FIELD 'FIELD FIELD_FOR_CLASS_CONTEXT_RECEIVER name:contextReceiverField0 type:.CounterConfig visibility:private [final]' type=kotlin.Unit origin=null receiver: GET_VAR ': .CounterIterator declared in .CounterIterator' type=.CounterIterator origin=null value: GET_VAR '$context_receiver_0: .CounterConfig declared in .CounterIterator.' type=.CounterConfig origin=null @@ -212,10 +212,10 @@ FILE fqName: fileName:/iteratorOperator.kt receiver: GET_VAR ': .CounterIterator declared in .CounterIterator.' type=.CounterIterator origin=null FUN name:hasNext visibility:public modality:OPEN <> ($this:.CounterIterator) returnType:kotlin.Boolean [operator] overridden: - public abstract fun hasNext (): kotlin.Boolean [operator] declared in kotlin.collections.Iterator + public abstract fun hasNext (): kotlin.Boolean declared in kotlin.collections.Iterator $this: VALUE_PARAMETER name: type:.CounterIterator BLOCK_BODY - RETURN type=kotlin.Nothing from='public open fun hasNext (): kotlin.Boolean [operator] declared in .CounterIterator' + RETURN type=kotlin.Nothing from='public open fun hasNext (): kotlin.Boolean declared in .CounterIterator' CALL 'public final fun less (arg0: kotlin.Int, arg1: kotlin.Int): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=LT arg0: CALL 'public final fun (): kotlin.Int declared in .Counter' type=kotlin.Int origin=GET_PROPERTY $this: CALL 'private final fun (): .Counter declared in .CounterIterator' type=.Counter origin=GET_PROPERTY @@ -225,42 +225,42 @@ FILE fqName: fileName:/iteratorOperator.kt receiver: GET_VAR ': .CounterIterator declared in .CounterIterator.hasNext' type=.CounterIterator origin=null FUN name:next visibility:public modality:OPEN <> ($this:.CounterIterator) returnType:kotlin.Int [operator] overridden: - public abstract fun next (): T of kotlin.collections.Iterator [operator] declared in kotlin.collections.Iterator + public abstract fun next (): T of kotlin.collections.Iterator declared in kotlin.collections.Iterator $this: VALUE_PARAMETER name: type:.CounterIterator BLOCK_BODY - RETURN type=kotlin.Nothing from='public open fun next (): kotlin.Int [operator] declared in .CounterIterator' + RETURN type=kotlin.Nothing from='public open fun next (): kotlin.Int declared in .CounterIterator' BLOCK type=kotlin.Int origin=null VAR IR_TEMPORARY_VARIABLE name:tmp_2 type:.Counter [val] CALL 'private final fun (): .Counter declared in .CounterIterator' type=.Counter origin=GET_PROPERTY $this: GET_VAR ': .CounterIterator declared in .CounterIterator.next' type=.CounterIterator origin=null VAR IR_TEMPORARY_VARIABLE name:tmp_3 type:kotlin.Int [val] CALL 'public final fun (): kotlin.Int declared in .Counter' type=kotlin.Int origin=GET_PROPERTY - $this: GET_VAR 'val tmp_2: .Counter [val] declared in .CounterIterator.next' type=.Counter origin=null + $this: GET_VAR 'val tmp_2: .Counter declared in .CounterIterator.next' type=.Counter origin=null CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in .Counter' type=kotlin.Unit origin=EQ - $this: GET_VAR 'val tmp_2: .Counter [val] declared in .CounterIterator.next' type=.Counter origin=null - : CALL 'public final fun inc (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp_3: kotlin.Int [val] declared in .CounterIterator.next' type=kotlin.Int origin=null - GET_VAR 'val tmp_3: kotlin.Int [val] declared in .CounterIterator.next' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_2: .Counter declared in .CounterIterator.next' type=.Counter origin=null + : CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_3: kotlin.Int declared in .CounterIterator.next' type=kotlin.Int origin=null + GET_VAR 'val tmp_3: kotlin.Int declared in .CounterIterator.next' type=kotlin.Int 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 [fake_override,operator] declared in kotlin.collections.Iterator + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.collections.Iterator $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 kotlin.collections.Iterator + public open fun hashCode (): kotlin.Int declared in kotlin.collections.Iterator $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 kotlin.collections.Iterator + public open fun toString (): kotlin.String declared in kotlin.collections.Iterator $this: VALUE_PARAMETER name: type:kotlin.Any FUN name:iterator visibility:public modality:FINAL <> ($receiver:.Counter, $context_receiver_0:.CounterConfig) returnType:.CounterIterator [operator] contextReceiverParametersCount: 1 $receiver: VALUE_PARAMETER name: type:.Counter VALUE_PARAMETER name:$context_receiver_0 index:0 type:.CounterConfig BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun iterator ($context_receiver_0: .CounterConfig): .CounterIterator [operator] declared in ' - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with [inline] declared in kotlin.StandardKt' type=.CounterIterator origin=null + RETURN type=kotlin.Nothing from='public final fun iterator ($context_receiver_0: .CounterConfig): .CounterIterator declared in ' + CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=.CounterIterator origin=null : .CounterConfig : .CounterIterator receiver: GET_VAR '$context_receiver_0: .CounterConfig declared in .iterator' type=.CounterConfig origin=null @@ -269,43 +269,43 @@ FILE fqName: fileName:/iteratorOperator.kt $receiver: VALUE_PARAMETER name:$this$with type:.CounterConfig BLOCK_BODY RETURN type=kotlin.Nothing from='local final fun (): .CounterIterator declared in .iterator' - CONSTRUCTOR_CALL 'public constructor ($context_receiver_0: .CounterConfig, counter: .Counter) [primary] declared in .CounterIterator' type=.CounterIterator origin=null + CONSTRUCTOR_CALL 'public constructor ($context_receiver_0: .CounterConfig, counter: .Counter) declared in .CounterIterator' type=.CounterIterator origin=null $context_receiver_0: GET_VAR '$this$with: .CounterConfig declared in .iterator.' type=.CounterConfig origin=null counter: GET_VAR ': .Counter declared in .iterator' type=.Counter origin=null FUN name:box visibility:public modality:FINAL <> () returnType:kotlin.String BLOCK_BODY VAR name:result type:kotlin.Int [var] CONST Int type=kotlin.Int value=0 - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with [inline] declared in kotlin.StandardKt' type=kotlin.Unit origin=null + CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=kotlin.Unit origin=null : .CounterConfig : kotlin.Unit - receiver: CONSTRUCTOR_CALL 'public constructor (max: kotlin.Int) [primary] declared in .CounterConfig' type=.CounterConfig origin=null + receiver: CONSTRUCTOR_CALL 'public constructor (max: kotlin.Int) declared in .CounterConfig' type=.CounterConfig origin=null block: FUN_EXPR type=@[ExtensionFunctionType] kotlin.Function1<.CounterConfig, kotlin.Unit> origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> ($receiver:.CounterConfig) returnType:kotlin.Unit $receiver: VALUE_PARAMETER name:$this$with type:.CounterConfig BLOCK_BODY BLOCK type=kotlin.Unit origin=FOR_LOOP VAR FOR_LOOP_ITERATOR name:tmp_4 type:.CounterIterator [val] - CALL 'public final fun iterator ($context_receiver_0: .CounterConfig): .CounterIterator [operator] declared in ' type=.CounterIterator origin=null - $receiver: CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) [primary] declared in .Counter' type=.Counter origin=null + CALL 'public final fun iterator ($context_receiver_0: .CounterConfig): .CounterIterator declared in ' type=.CounterIterator origin=null + $receiver: CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) declared in .Counter' type=.Counter origin=null $context_receiver_0: GET_VAR '$this$with: .CounterConfig declared in .box.' type=.CounterConfig origin=null WHILE label=null origin=FOR_LOOP_INNER_WHILE - condition: CALL 'public open fun hasNext (): kotlin.Boolean [operator] declared in .CounterIterator' type=kotlin.Boolean origin=null - $this: GET_VAR 'val tmp_4: .CounterIterator [val] declared in .box.' type=.CounterIterator origin=null + condition: CALL 'public open fun hasNext (): kotlin.Boolean declared in .CounterIterator' type=kotlin.Boolean origin=null + $this: GET_VAR 'val tmp_4: .CounterIterator declared in .box.' type=.CounterIterator origin=null body: BLOCK type=kotlin.Unit origin=FOR_LOOP_INNER_WHILE VAR name:i type:kotlin.Int [val] - CALL 'public open fun next (): kotlin.Int [operator] declared in .CounterIterator' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp_4: .CounterIterator [val] declared in .box.' type=.CounterIterator origin=null + CALL 'public open fun next (): kotlin.Int declared in .CounterIterator' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_4: .CounterIterator declared in .box.' type=.CounterIterator origin=null BLOCK type=kotlin.Unit origin=null - SET_VAR 'var result: kotlin.Int [var] declared in .box' type=kotlin.Unit origin=PLUSEQ - CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'var result: kotlin.Int [var] declared in .box' type=kotlin.Int origin=null - other: GET_VAR 'val i: kotlin.Int [val] declared in .box.' type=kotlin.Int origin=null + SET_VAR 'var result: kotlin.Int declared in .box' type=kotlin.Unit origin=PLUSEQ + CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'var result: kotlin.Int declared in .box' type=kotlin.Int origin=null + other: GET_VAR 'val i: kotlin.Int declared in .box.' type=kotlin.Int origin=null RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' WHEN type=kotlin.String origin=IF BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'var result: kotlin.Int [var] declared in .box' type=kotlin.Int origin=null + arg0: GET_VAR 'var result: kotlin.Int declared in .box' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=45 then: CONST String type=kotlin.String value="OK" BRANCH diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/iteratorOperator.ir.txt b/compiler/testData/ir/irText/declarations/contextReceivers/iteratorOperator.ir.txt index 8a952422961..eb57ee126b8 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/iteratorOperator.ir.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/iteratorOperator.ir.txt @@ -6,7 +6,7 @@ FILE fqName: fileName:/iteratorOperator.kt EXPRESSION_BODY CONST Int type=kotlin.Int value=0 BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Counter modality:FINAL visibility:public [data] superTypes:[kotlin.Any]' PROPERTY name:i visibility:public modality:FINAL [var] FIELD PROPERTY_BACKING_FIELD name:i type:kotlin.Int visibility:private @@ -30,7 +30,7 @@ FILE fqName: fileName:/iteratorOperator.kt FUN GENERATED_DATA_CLASS_MEMBER name:component1 visibility:public modality:FINAL <> ($this:.Counter) returnType:kotlin.Int [operator] $this: VALUE_PARAMETER name: type:.Counter BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Int [operator] declared in .Counter' + RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Int declared in .Counter' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:i type:kotlin.Int visibility:private' type=kotlin.Int origin=null receiver: GET_VAR ': .Counter declared in .Counter.component1' type=.Counter origin=null FUN GENERATED_DATA_CLASS_MEMBER name:copy visibility:public modality:FINAL <> ($this:.Counter, i:kotlin.Int) returnType:.Counter @@ -41,7 +41,7 @@ FILE fqName: fileName:/iteratorOperator.kt receiver: GET_VAR ': .Counter declared in .Counter.copy' type=.Counter origin=null BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun copy (i: kotlin.Int): .Counter declared in .Counter' - CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) [primary] declared in .Counter' type=.Counter origin=null + CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) declared in .Counter' type=.Counter origin=null i: GET_VAR 'i: kotlin.Int declared in .Counter.copy' type=kotlin.Int origin=null FUN GENERATED_DATA_CLASS_MEMBER name:toString visibility:public modality:OPEN <> ($this:.Counter) returnType:kotlin.String overridden: @@ -61,12 +61,12 @@ FILE fqName: fileName:/iteratorOperator.kt $this: VALUE_PARAMETER name: type:.Counter BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun hashCode (): kotlin.Int declared in .Counter' - CALL 'public open fun hashCode (): kotlin.Int [fake_override] declared in kotlin.Int' type=kotlin.Int origin=null + CALL 'public open fun hashCode (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:i type:kotlin.Int visibility:private' type=kotlin.Int origin=null receiver: GET_VAR ': .Counter declared in .Counter.hashCode' type=.Counter origin=null FUN GENERATED_DATA_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:.Counter, other:kotlin.Any?) returnType:kotlin.Boolean [operator] overridden: - public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any $this: VALUE_PARAMETER name: type:.Counter VALUE_PARAMETER name:other index:0 type:kotlin.Any? BLOCK_BODY @@ -75,28 +75,28 @@ FILE fqName: fileName:/iteratorOperator.kt 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 ': .Counter declared in .Counter.equals' type=.Counter origin=null arg1: GET_VAR 'other: kotlin.Any? declared in .Counter.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Counter' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Counter' CONST Boolean type=kotlin.Boolean value=true WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=.Counter GET_VAR 'other: kotlin.Any? declared in .Counter.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Counter' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Counter' CONST Boolean type=kotlin.Boolean value=false VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:.Counter [val] TYPE_OP type=.Counter origin=CAST typeOperand=.Counter GET_VAR 'other: kotlin.Any? declared in .Counter.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 + if: CALL 'public final fun not (): kotlin.Boolean 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:i type:kotlin.Int visibility:private' type=kotlin.Int origin=null receiver: GET_VAR ': .Counter declared in .Counter.equals' type=.Counter origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:i type:kotlin.Int visibility:private' type=kotlin.Int origin=null - receiver: GET_VAR 'val tmp_0: .Counter [val] declared in .Counter.equals' type=.Counter origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Counter' + receiver: GET_VAR 'val tmp_0: .Counter declared in .Counter.equals' type=.Counter origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Counter' CONST Boolean type=kotlin.Boolean value=false - RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Counter' + RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Counter' CONST Boolean type=kotlin.Boolean value=true CLASS CLASS name:CounterConfig modality:FINAL visibility:public [data] superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.CounterConfig @@ -105,7 +105,7 @@ FILE fqName: fileName:/iteratorOperator.kt EXPRESSION_BODY CONST Int type=kotlin.Int value=10 BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:CounterConfig modality:FINAL visibility:public [data] superTypes:[kotlin.Any]' PROPERTY name:max visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:max type:kotlin.Int visibility:private [final] @@ -121,7 +121,7 @@ FILE fqName: fileName:/iteratorOperator.kt FUN GENERATED_DATA_CLASS_MEMBER name:component1 visibility:public modality:FINAL <> ($this:.CounterConfig) returnType:kotlin.Int [operator] $this: VALUE_PARAMETER name: type:.CounterConfig BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Int [operator] declared in .CounterConfig' + RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Int declared in .CounterConfig' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:max type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null receiver: GET_VAR ': .CounterConfig declared in .CounterConfig.component1' type=.CounterConfig origin=null FUN GENERATED_DATA_CLASS_MEMBER name:copy visibility:public modality:FINAL <> ($this:.CounterConfig, max:kotlin.Int) returnType:.CounterConfig @@ -132,7 +132,7 @@ FILE fqName: fileName:/iteratorOperator.kt receiver: GET_VAR ': .CounterConfig declared in .CounterConfig.copy' type=.CounterConfig origin=null BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun copy (max: kotlin.Int): .CounterConfig declared in .CounterConfig' - CONSTRUCTOR_CALL 'public constructor (max: kotlin.Int) [primary] declared in .CounterConfig' type=.CounterConfig origin=null + CONSTRUCTOR_CALL 'public constructor (max: kotlin.Int) declared in .CounterConfig' type=.CounterConfig origin=null max: GET_VAR 'max: kotlin.Int declared in .CounterConfig.copy' type=kotlin.Int origin=null FUN GENERATED_DATA_CLASS_MEMBER name:toString visibility:public modality:OPEN <> ($this:.CounterConfig) returnType:kotlin.String overridden: @@ -152,12 +152,12 @@ FILE fqName: fileName:/iteratorOperator.kt $this: VALUE_PARAMETER name: type:.CounterConfig BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun hashCode (): kotlin.Int declared in .CounterConfig' - CALL 'public open fun hashCode (): kotlin.Int [fake_override] declared in kotlin.Int' type=kotlin.Int origin=null + CALL 'public open fun hashCode (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:max type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null receiver: GET_VAR ': .CounterConfig declared in .CounterConfig.hashCode' type=.CounterConfig origin=null FUN GENERATED_DATA_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:.CounterConfig, other:kotlin.Any?) returnType:kotlin.Boolean [operator] overridden: - public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any $this: VALUE_PARAMETER name: type:.CounterConfig VALUE_PARAMETER name:other index:0 type:kotlin.Any? BLOCK_BODY @@ -166,28 +166,28 @@ FILE fqName: fileName:/iteratorOperator.kt 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 ': .CounterConfig declared in .CounterConfig.equals' type=.CounterConfig origin=null arg1: GET_VAR 'other: kotlin.Any? declared in .CounterConfig.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .CounterConfig' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .CounterConfig' CONST Boolean type=kotlin.Boolean value=true WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=.CounterConfig GET_VAR 'other: kotlin.Any? declared in .CounterConfig.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .CounterConfig' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .CounterConfig' CONST Boolean type=kotlin.Boolean value=false VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:.CounterConfig [val] TYPE_OP type=.CounterConfig origin=CAST typeOperand=.CounterConfig GET_VAR 'other: kotlin.Any? declared in .CounterConfig.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 + if: CALL 'public final fun not (): kotlin.Boolean 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:max type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null receiver: GET_VAR ': .CounterConfig declared in .CounterConfig.equals' type=.CounterConfig origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:max type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null - receiver: GET_VAR 'val tmp_1: .CounterConfig [val] declared in .CounterConfig.equals' type=.CounterConfig origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .CounterConfig' + receiver: GET_VAR 'val tmp_1: .CounterConfig declared in .CounterConfig.equals' type=.CounterConfig origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .CounterConfig' CONST Boolean type=kotlin.Boolean value=false - RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .CounterConfig' + RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .CounterConfig' CONST Boolean type=kotlin.Boolean value=true CLASS CLASS name:CounterIterator modality:FINAL visibility:public superTypes:[kotlin.collections.Iterator] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.CounterIterator @@ -196,7 +196,7 @@ FILE fqName: fileName:/iteratorOperator.kt VALUE_PARAMETER name:$context_receiver_0 index:0 type:.CounterConfig VALUE_PARAMETER name:counter index:1 type:.Counter BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' SET_FIELD 'FIELD FIELD_FOR_CLASS_CONTEXT_RECEIVER name:contextReceiverField0 type:.CounterConfig visibility:private [final]' type=kotlin.Unit origin=null receiver: GET_VAR ': .CounterIterator declared in .CounterIterator' type=.CounterIterator origin=null value: GET_VAR '$context_receiver_0: .CounterConfig declared in .CounterIterator.' type=.CounterConfig origin=null @@ -214,10 +214,10 @@ FILE fqName: fileName:/iteratorOperator.kt receiver: GET_VAR ': .CounterIterator declared in .CounterIterator.' type=.CounterIterator origin=null FUN name:hasNext visibility:public modality:OPEN <> ($this:.CounterIterator) returnType:kotlin.Boolean [operator] overridden: - public abstract fun hasNext (): kotlin.Boolean [operator] declared in kotlin.collections.Iterator + public abstract fun hasNext (): kotlin.Boolean declared in kotlin.collections.Iterator $this: VALUE_PARAMETER name: type:.CounterIterator BLOCK_BODY - RETURN type=kotlin.Nothing from='public open fun hasNext (): kotlin.Boolean [operator] declared in .CounterIterator' + RETURN type=kotlin.Nothing from='public open fun hasNext (): kotlin.Boolean declared in .CounterIterator' CALL 'public final fun less (arg0: kotlin.Int, arg1: kotlin.Int): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=LT arg0: CALL 'public final fun (): kotlin.Int declared in .Counter' type=kotlin.Int origin=GET_PROPERTY $this: CALL 'private final fun (): .Counter declared in .CounterIterator' type=.Counter origin=GET_PROPERTY @@ -227,10 +227,10 @@ FILE fqName: fileName:/iteratorOperator.kt receiver: GET_VAR ': .CounterIterator declared in .CounterIterator.hasNext' type=.CounterIterator origin=null FUN name:next visibility:public modality:OPEN <> ($this:.CounterIterator) returnType:kotlin.Int [operator] overridden: - public abstract fun next (): T of kotlin.collections.Iterator [operator] declared in kotlin.collections.Iterator + public abstract fun next (): T of kotlin.collections.Iterator declared in kotlin.collections.Iterator $this: VALUE_PARAMETER name: type:.CounterIterator BLOCK_BODY - RETURN type=kotlin.Nothing from='public open fun next (): kotlin.Int [operator] declared in .CounterIterator' + RETURN type=kotlin.Nothing from='public open fun next (): kotlin.Int declared in .CounterIterator' BLOCK type=kotlin.Int origin=POSTFIX_INCR VAR IR_TEMPORARY_VARIABLE name:tmp_2 type:.Counter [val] CALL 'private final fun (): .Counter declared in .CounterIterator' type=.Counter origin=GET_PROPERTY @@ -238,32 +238,32 @@ FILE fqName: fileName:/iteratorOperator.kt BLOCK type=kotlin.Int origin=POSTFIX_INCR VAR IR_TEMPORARY_VARIABLE name:tmp_3 type:kotlin.Int [val] CALL 'public final fun (): kotlin.Int declared in .Counter' type=kotlin.Int origin=POSTFIX_INCR - $this: GET_VAR 'val tmp_2: .Counter [val] declared in .CounterIterator.next' type=.Counter origin=null + $this: GET_VAR 'val tmp_2: .Counter declared in .CounterIterator.next' type=.Counter origin=null CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in .Counter' type=kotlin.Unit origin=POSTFIX_INCR - $this: GET_VAR 'val tmp_2: .Counter [val] declared in .CounterIterator.next' type=.Counter origin=null - : CALL 'public final fun inc (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_INCR - $this: GET_VAR 'val tmp_3: kotlin.Int [val] declared in .CounterIterator.next' type=kotlin.Int origin=null - GET_VAR 'val tmp_3: kotlin.Int [val] declared in .CounterIterator.next' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_2: .Counter declared in .CounterIterator.next' type=.Counter origin=null + : CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_INCR + $this: GET_VAR 'val tmp_3: kotlin.Int declared in .CounterIterator.next' type=kotlin.Int origin=null + GET_VAR 'val tmp_3: kotlin.Int declared in .CounterIterator.next' type=kotlin.Int 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 [fake_override,operator] declared in kotlin.collections.Iterator + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.collections.Iterator $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 kotlin.collections.Iterator + public open fun hashCode (): kotlin.Int declared in kotlin.collections.Iterator $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 kotlin.collections.Iterator + public open fun toString (): kotlin.String declared in kotlin.collections.Iterator $this: VALUE_PARAMETER name: type:kotlin.Any FUN name:iterator visibility:public modality:FINAL <> ($receiver:.Counter, $context_receiver_0:.CounterConfig) returnType:.CounterIterator [operator] contextReceiverParametersCount: 1 $receiver: VALUE_PARAMETER name: type:.Counter VALUE_PARAMETER name:$context_receiver_0 index:0 type:.CounterConfig BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun iterator ($context_receiver_0: .CounterConfig): .CounterIterator [operator] declared in ' - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with [inline] declared in kotlin.StandardKt' type=.CounterIterator origin=null + RETURN type=kotlin.Nothing from='public final fun iterator ($context_receiver_0: .CounterConfig): .CounterIterator declared in ' + CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=.CounterIterator origin=null : .CounterConfig : .CounterIterator receiver: GET_VAR '$context_receiver_0: .CounterConfig declared in .iterator' type=.CounterConfig origin=null @@ -272,43 +272,43 @@ FILE fqName: fileName:/iteratorOperator.kt $receiver: VALUE_PARAMETER name:$this$with type:.CounterConfig BLOCK_BODY RETURN type=kotlin.Nothing from='local final fun (): .CounterIterator declared in .iterator' - CONSTRUCTOR_CALL 'public constructor ($context_receiver_0: .CounterConfig, counter: .Counter) [primary] declared in .CounterIterator' type=.CounterIterator origin=null + CONSTRUCTOR_CALL 'public constructor ($context_receiver_0: .CounterConfig, counter: .Counter) declared in .CounterIterator' type=.CounterIterator origin=null $context_receiver_0: GET_VAR '$this$with: .CounterConfig declared in .iterator.' type=.CounterConfig origin=null counter: GET_VAR ': .Counter declared in .iterator' type=.Counter origin=null FUN name:box visibility:public modality:FINAL <> () returnType:kotlin.String BLOCK_BODY VAR name:result type:kotlin.Int [var] CONST Int type=kotlin.Int value=0 - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with [inline] declared in kotlin.StandardKt' type=kotlin.Unit origin=null + CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=kotlin.Unit origin=null : .CounterConfig : kotlin.Unit - receiver: CONSTRUCTOR_CALL 'public constructor (max: kotlin.Int) [primary] declared in .CounterConfig' type=.CounterConfig origin=null + receiver: CONSTRUCTOR_CALL 'public constructor (max: kotlin.Int) declared in .CounterConfig' type=.CounterConfig origin=null block: FUN_EXPR type=@[ExtensionFunctionType] kotlin.Function1<.CounterConfig, kotlin.Unit> origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> ($receiver:.CounterConfig) returnType:kotlin.Unit $receiver: VALUE_PARAMETER name:$this$with type:.CounterConfig BLOCK_BODY BLOCK type=kotlin.Unit origin=FOR_LOOP VAR FOR_LOOP_ITERATOR name:tmp_4 type:.CounterIterator [val] - CALL 'public final fun iterator ($context_receiver_0: .CounterConfig): .CounterIterator [operator] declared in ' type=.CounterIterator origin=FOR_LOOP_ITERATOR - $receiver: CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) [primary] declared in .Counter' type=.Counter origin=null + CALL 'public final fun iterator ($context_receiver_0: .CounterConfig): .CounterIterator declared in ' type=.CounterIterator origin=FOR_LOOP_ITERATOR + $receiver: CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) declared in .Counter' type=.Counter origin=null $context_receiver_0: GET_VAR '$this$with: .CounterConfig declared in .box.' type=.CounterConfig origin=null WHILE label=null origin=FOR_LOOP_INNER_WHILE - condition: CALL 'public open fun hasNext (): kotlin.Boolean [operator] declared in .CounterIterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT - $this: GET_VAR 'val tmp_4: .CounterIterator [val] declared in .box.' type=.CounterIterator origin=null + condition: CALL 'public open fun hasNext (): kotlin.Boolean declared in .CounterIterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT + $this: GET_VAR 'val tmp_4: .CounterIterator declared in .box.' type=.CounterIterator origin=null body: BLOCK type=kotlin.Unit origin=FOR_LOOP_INNER_WHILE VAR FOR_LOOP_VARIABLE name:i type:kotlin.Int [val] - CALL 'public open fun next (): kotlin.Int [operator] declared in .CounterIterator' type=kotlin.Int origin=FOR_LOOP_NEXT - $this: GET_VAR 'val tmp_4: .CounterIterator [val] declared in .box.' type=.CounterIterator origin=null + CALL 'public open fun next (): kotlin.Int declared in .CounterIterator' type=kotlin.Int origin=FOR_LOOP_NEXT + $this: GET_VAR 'val tmp_4: .CounterIterator declared in .box.' type=.CounterIterator origin=null BLOCK type=kotlin.Unit origin=null - SET_VAR 'var result: kotlin.Int [var] declared in .box' type=kotlin.Unit origin=PLUSEQ - CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ - $this: GET_VAR 'var result: kotlin.Int [var] declared in .box' type=kotlin.Int origin=PLUSEQ - other: GET_VAR 'val i: kotlin.Int [val] declared in .box.' type=kotlin.Int origin=null + SET_VAR 'var result: kotlin.Int declared in .box' type=kotlin.Unit origin=PLUSEQ + CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ + $this: GET_VAR 'var result: kotlin.Int declared in .box' type=kotlin.Int origin=PLUSEQ + other: GET_VAR 'val i: kotlin.Int declared in .box.' type=kotlin.Int origin=null RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' WHEN type=kotlin.String origin=IF BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'var result: kotlin.Int [var] declared in .box' type=kotlin.Int origin=null + arg0: GET_VAR 'var result: kotlin.Int declared in .box' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=45 then: CONST String type=kotlin.String value="OK" BRANCH diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/kt52791.ir.txt b/compiler/testData/ir/irText/declarations/contextReceivers/kt52791.ir.txt index c9f86d61c00..440068e32ff 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/kt52791.ir.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/kt52791.ir.txt @@ -7,7 +7,7 @@ FILE fqName: fileName:/kt52791.kt VALUE_PARAMETER name:$context_receiver_0 index:0 type:kotlin.Unit VALUE_PARAMETER name:$context_receiver_1 index:1 type:kotlin.Int BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' SET_FIELD 'FIELD FIELD_FOR_CLASS_CONTEXT_RECEIVER name:contextReceiverField0 type:kotlin.Unit visibility:private [final]' type=kotlin.Unit origin=null receiver: GET_VAR ': .MyClass declared in .MyClass' type=.MyClass origin=null value: GET_VAR '$context_receiver_0: kotlin.Unit declared in .MyClass.' type=kotlin.Unit origin=null @@ -17,7 +17,7 @@ FILE fqName: fileName:/kt52791.kt INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:MyClass modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/lazy.ir.txt b/compiler/testData/ir/irText/declarations/contextReceivers/lazy.ir.txt index 70da78cfbc0..508d2466547 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/lazy.ir.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/lazy.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/lazy.kt TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -39,7 +39,7 @@ FILE fqName: fileName:/lazy.kt VALUE_PARAMETER name:lazyT index:2 type:.Lazy.f> VALUE_PARAMETER name:lazyLazyT index:3 type:.Lazy<.Lazy.f>> BLOCK_BODY - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with [inline] declared in kotlin.StandardKt' type=kotlin.Unit origin=null + CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=kotlin.Unit origin=null : .Lazy : kotlin.Unit receiver: GET_VAR 'lazy1: .Lazy declared in .f' type=.Lazy origin=null @@ -47,7 +47,7 @@ FILE fqName: fileName:/lazy.kt FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> ($receiver:.Lazy) returnType:kotlin.Unit $receiver: VALUE_PARAMETER name:$this$with type:.Lazy BLOCK_BODY - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with [inline] declared in kotlin.StandardKt' type=kotlin.Unit origin=null + CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=kotlin.Unit origin=null : .Lazy : kotlin.Unit receiver: GET_VAR 'lazy2: .Lazy declared in .f' type=.Lazy origin=null @@ -62,7 +62,7 @@ FILE fqName: fileName:/lazy.kt : kotlin.CharSequence $receiver: GET_VAR '$this$with: .Lazy declared in .f.' type=.Lazy origin=null $context_receiver_0: GET_VAR '$this$with: .Lazy declared in .f..' type=.Lazy origin=null - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with [inline] declared in kotlin.StandardKt' type=kotlin.Unit origin=null + CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=kotlin.Unit origin=null : .Lazy : kotlin.Unit receiver: GET_VAR 'lazy2: .Lazy declared in .f' type=.Lazy origin=null @@ -70,7 +70,7 @@ FILE fqName: fileName:/lazy.kt FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> ($receiver:.Lazy) returnType:kotlin.Unit $receiver: VALUE_PARAMETER name:$this$with type:.Lazy BLOCK_BODY - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with [inline] declared in kotlin.StandardKt' type=kotlin.Unit origin=null + CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=kotlin.Unit origin=null : .Lazy : kotlin.Unit receiver: GET_VAR 'lazy1: .Lazy declared in .f' type=.Lazy origin=null @@ -85,7 +85,7 @@ FILE fqName: fileName:/lazy.kt : kotlin.Int $receiver: GET_VAR '$this$with: .Lazy declared in .f..' type=.Lazy origin=null $context_receiver_0: GET_VAR '$this$with: .Lazy declared in .f..' type=.Lazy origin=null - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with [inline] declared in kotlin.StandardKt' type=kotlin.Unit origin=null + CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=kotlin.Unit origin=null : .Lazy.f> : kotlin.Unit receiver: GET_VAR 'lazyT: .Lazy.f> declared in .f' type=.Lazy.f> origin=null @@ -93,7 +93,7 @@ FILE fqName: fileName:/lazy.kt FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> ($receiver:.Lazy.f>) returnType:kotlin.Unit $receiver: VALUE_PARAMETER name:$this$with type:.Lazy.f> BLOCK_BODY - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with [inline] declared in kotlin.StandardKt' type=kotlin.Unit origin=null + CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=kotlin.Unit origin=null : .Lazy : kotlin.Unit receiver: GET_VAR 'lazy1: .Lazy declared in .f' type=.Lazy origin=null @@ -105,7 +105,7 @@ FILE fqName: fileName:/lazy.kt : kotlin.Int $receiver: GET_VAR '$this$with: .Lazy declared in .f..' type=.Lazy origin=null $context_receiver_0: GET_VAR '$this$with: .Lazy declared in .f..' type=.Lazy origin=null - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with [inline] declared in kotlin.StandardKt' type=kotlin.Unit origin=null + CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=kotlin.Unit origin=null : .Lazy<.Lazy.f>> : kotlin.Unit receiver: GET_VAR 'lazyLazyT: .Lazy<.Lazy.f>> declared in .f' type=.Lazy<.Lazy.f>> origin=null @@ -113,7 +113,7 @@ FILE fqName: fileName:/lazy.kt FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> ($receiver:.Lazy<.Lazy.f>>) returnType:kotlin.Unit $receiver: VALUE_PARAMETER name:$this$with type:.Lazy<.Lazy.f>> BLOCK_BODY - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with [inline] declared in kotlin.StandardKt' type=kotlin.Unit origin=null + CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=kotlin.Unit origin=null : .Lazy : kotlin.Unit receiver: GET_VAR 'lazy1: .Lazy declared in .f' type=.Lazy origin=null @@ -129,7 +129,7 @@ FILE fqName: fileName:/lazy.kt : T of .f $receiver: GET_VAR '$this$with: .Lazy declared in .f..' type=.Lazy origin=null $context_receiver_0: GET_VAR '$this$with: .Lazy<.Lazy.f>> declared in .f.' type=.Lazy<.Lazy.f>> origin=null - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with [inline] declared in kotlin.StandardKt' type=kotlin.Unit origin=null + CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=kotlin.Unit origin=null : .Lazy : kotlin.Unit receiver: GET_VAR 'lazy1: .Lazy declared in .f' type=.Lazy origin=null @@ -137,7 +137,7 @@ FILE fqName: fileName:/lazy.kt FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> ($receiver:.Lazy) returnType:kotlin.Unit $receiver: VALUE_PARAMETER name:$this$with type:.Lazy BLOCK_BODY - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with [inline] declared in kotlin.StandardKt' type=kotlin.Unit origin=null + CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=kotlin.Unit origin=null : .Lazy<.Lazy.f>> : kotlin.Unit receiver: GET_VAR 'lazyLazyT: .Lazy<.Lazy.f>> declared in .f' type=.Lazy<.Lazy.f>> origin=null diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/overloadPriority.ir.txt b/compiler/testData/ir/irText/declarations/contextReceivers/overloadPriority.ir.txt index bf140b730f5..1c7d34c7ccc 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/overloadPriority.ir.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/overloadPriority.ir.txt @@ -3,11 +3,11 @@ FILE fqName: fileName:/overloadPriority.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Context CONSTRUCTOR visibility:public <> () returnType:.Context [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Context modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -23,18 +23,18 @@ FILE fqName: fileName:/overloadPriority.kt VALUE_PARAMETER name:$context_receiver_0 index:0 type:.Context BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun f ($context_receiver_0: .Context): kotlin.String declared in ' - CALL 'public final fun TODO (): kotlin.Nothing [inline] declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin.StandardKt' type=kotlin.Nothing origin=null FUN name:f visibility:public modality:FINAL <> () returnType:kotlin.Any BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun f (): kotlin.Any declared in ' - CALL 'public final fun TODO (): kotlin.Nothing [inline] declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin.StandardKt' type=kotlin.Nothing origin=null FUN name:test visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with [inline] declared in kotlin.StandardKt' type=kotlin.Int origin=null + CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=kotlin.Int origin=null : .Context : kotlin.Int - receiver: CONSTRUCTOR_CALL 'public constructor () [primary] declared in .Context' type=.Context origin=null + receiver: CONSTRUCTOR_CALL 'public constructor () declared in .Context' type=.Context origin=null block: FUN_EXPR type=@[ExtensionFunctionType] kotlin.Function1<.Context, kotlin.Int> origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> ($receiver:.Context) returnType:kotlin.Int $receiver: VALUE_PARAMETER name:$this$with type:.Context diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/overloading.ir.txt b/compiler/testData/ir/irText/declarations/contextReceivers/overloading.ir.txt index 7e9fe93979d..7b1e5e2eec6 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/overloading.ir.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/overloading.ir.txt @@ -5,7 +5,7 @@ FILE fqName: fileName:/overloading.kt VALUE_PARAMETER name:$context_receiver_1 index:1 type:kotlin.String BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun foo ($context_receiver_0: kotlin.Int, $context_receiver_1: kotlin.String): kotlin.Int declared in ' - CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUS + CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUS $this: GET_VAR '$context_receiver_0: kotlin.Int declared in .foo' type=kotlin.Int origin=null other: CONST Int type=kotlin.Int value=42 FUN name:foo visibility:public modality:FINAL <> ($context_receiver_0:kotlin.Int) returnType:kotlin.Int @@ -13,13 +13,13 @@ FILE fqName: fileName:/overloading.kt VALUE_PARAMETER name:$context_receiver_0 index:0 type:kotlin.Int BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun foo ($context_receiver_0: kotlin.Int): kotlin.Int declared in ' - CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUS + CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUS $this: GET_VAR '$context_receiver_0: kotlin.Int declared in .foo' type=kotlin.Int origin=null other: CONST Int type=kotlin.Int value=42 FUN name:test visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with [inline] declared in kotlin.StandardKt' type=kotlin.Int origin=null + CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=kotlin.Int origin=null : kotlin.Int : kotlin.Int receiver: CONST Int type=kotlin.Int value=42 diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/passingLambdaToContextualParam.fir.ir.txt b/compiler/testData/ir/irText/declarations/contextReceivers/passingLambdaToContextualParam.fir.ir.txt index 586ff4d4795..97ee739e889 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/passingLambdaToContextualParam.fir.ir.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/passingLambdaToContextualParam.fir.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/passingLambdaToContextualParam.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.C CONSTRUCTOR visibility:public <> () returnType:.C [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:result visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:result type:kotlin.String visibility:private [final] @@ -18,7 +18,7 @@ FILE fqName: fileName:/passingLambdaToContextualParam.kt receiver: GET_VAR ': .C declared in .C.' type=.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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -33,9 +33,9 @@ FILE fqName: fileName:/passingLambdaToContextualParam.kt VALUE_PARAMETER name:f index:0 type:kotlin.Function1<.C, kotlin.String> BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun contextual (f: kotlin.Function1<.C, kotlin.String>): kotlin.String declared in ' - CALL 'public abstract fun invoke (p1: P1 of kotlin.Function1): R of kotlin.Function1 [operator] declared in kotlin.Function1' type=kotlin.String origin=INVOKE + CALL 'public abstract fun invoke (p1: P1 of kotlin.Function1): R of kotlin.Function1 declared in kotlin.Function1' type=kotlin.String origin=INVOKE $this: GET_VAR 'f: kotlin.Function1<.C, kotlin.String> declared in .contextual' type=kotlin.Function1<.C, kotlin.String> origin=VARIABLE_AS_FUNCTION - p1: CONSTRUCTOR_CALL 'public constructor () [primary] declared in .C' type=.C origin=null + p1: CONSTRUCTOR_CALL 'public constructor () declared in .C' type=.C origin=null FUN name:box visibility:public modality:FINAL <> () returnType:kotlin.String BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/passingLambdaToContextualParam.ir.txt b/compiler/testData/ir/irText/declarations/contextReceivers/passingLambdaToContextualParam.ir.txt index 9a8e8ba1d34..ffb5be6e48f 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/passingLambdaToContextualParam.ir.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/passingLambdaToContextualParam.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/passingLambdaToContextualParam.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.C CONSTRUCTOR visibility:public <> () returnType:.C [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:result visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:result type:kotlin.String visibility:private [final] @@ -18,7 +18,7 @@ FILE fqName: fileName:/passingLambdaToContextualParam.kt receiver: GET_VAR ': .C declared in .C.' type=.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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -33,9 +33,9 @@ FILE fqName: fileName:/passingLambdaToContextualParam.kt VALUE_PARAMETER name:f index:0 type:@[ContextFunctionTypeParams(count = '1')] kotlin.Function1<.C, kotlin.String> BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun contextual (f: @[ContextFunctionTypeParams(count = '1')] kotlin.Function1<.C, kotlin.String>): kotlin.String declared in ' - CALL 'public abstract fun invoke (p1: P1 of kotlin.Function1): R of kotlin.Function1 [operator] declared in kotlin.Function1' type=kotlin.String origin=INVOKE + CALL 'public abstract fun invoke (p1: P1 of kotlin.Function1): R of kotlin.Function1 declared in kotlin.Function1' type=kotlin.String origin=INVOKE $this: GET_VAR 'f: @[ContextFunctionTypeParams(count = '1')] kotlin.Function1<.C, kotlin.String> declared in .contextual' type=@[ContextFunctionTypeParams(count = '1')] kotlin.Function1<.C, kotlin.String> origin=VARIABLE_AS_FUNCTION - p1: CONSTRUCTOR_CALL 'public constructor () [primary] declared in .C' type=.C origin=null + p1: CONSTRUCTOR_CALL 'public constructor () declared in .C' type=.C origin=null FUN name:box visibility:public modality:FINAL <> () returnType:kotlin.String BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/plusMatrix.ir.txt b/compiler/testData/ir/irText/declarations/contextReceivers/plusMatrix.ir.txt index e1cb8f82ca4..1a065bca107 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/plusMatrix.ir.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/plusMatrix.ir.txt @@ -7,7 +7,7 @@ FILE fqName: fileName:/plusMatrix.kt VALUE_PARAMETER name:other index:0 type:kotlin.Number 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -22,11 +22,11 @@ FILE fqName: fileName:/plusMatrix.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Matrix CONSTRUCTOR visibility:public <> () returnType:.Matrix [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Matrix modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -44,7 +44,7 @@ FILE fqName: fileName:/plusMatrix.kt VALUE_PARAMETER name:other index:1 type:.Matrix BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun plus ($context_receiver_0: .NumberOperations, other: .Matrix): .Matrix declared in ' - CALL 'public final fun TODO (): kotlin.Nothing [inline] declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin.StandardKt' type=kotlin.Nothing origin=null FUN name:plusMatrix visibility:public modality:FINAL <> ($receiver:.NumberOperations, m1:.Matrix, m2:.Matrix) returnType:kotlin.Unit $receiver: VALUE_PARAMETER name: type:.NumberOperations VALUE_PARAMETER name:m1 index:0 type:.Matrix diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/property.ir.txt b/compiler/testData/ir/irText/declarations/contextReceivers/property.ir.txt index b24bc09434e..929c0fa7c94 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/property.ir.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/property.ir.txt @@ -5,7 +5,7 @@ FILE fqName: fileName:/property.kt $this: VALUE_PARAMETER name: type:.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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -22,7 +22,7 @@ FILE fqName: fileName:/property.kt $this: VALUE_PARAMETER name: type:.B 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -41,7 +41,7 @@ FILE fqName: fileName:/property.kt VALUE_PARAMETER name:$context_receiver_1 index:1 type:.B BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun ($context_receiver_0: .A, $context_receiver_1: .B): kotlin.Int declared in ' - CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUS + CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUS $this: CALL 'public abstract fun a (): kotlin.Int declared in .A' type=kotlin.Int origin=null $this: GET_VAR '$context_receiver_0: .A declared in .' type=.A origin=null other: CALL 'public abstract fun b (): kotlin.Int declared in .B' type=kotlin.Int origin=null diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/thisWithCustomLabel.ir.txt b/compiler/testData/ir/irText/declarations/contextReceivers/thisWithCustomLabel.ir.txt index 9a5a0e63891..2137243ebf7 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/thisWithCustomLabel.ir.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/thisWithCustomLabel.ir.txt @@ -5,7 +5,7 @@ FILE fqName: fileName:/thisWithCustomLabel.kt CONSTRUCTOR visibility:public <> (a:T of .A) returnType:.A.A> [primary] VALUE_PARAMETER name:a index:0 type:T of .A BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:A modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:a visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:a type:T of .A visibility:private [final] @@ -20,7 +20,7 @@ FILE fqName: fileName:/thisWithCustomLabel.kt receiver: GET_VAR ': .A.A> declared in .A.' type=.A.A> 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -36,7 +36,7 @@ FILE fqName: fileName:/thisWithCustomLabel.kt CONSTRUCTOR visibility:public <> (b:kotlin.Any) returnType:.B [primary] VALUE_PARAMETER name:b index:0 type:kotlin.Any BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:B modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:b visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:b type:kotlin.Any visibility:private [final] @@ -51,7 +51,7 @@ FILE fqName: fileName:/thisWithCustomLabel.kt receiver: GET_VAR ': .B declared in .B.' type=.B 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -67,7 +67,7 @@ FILE fqName: fileName:/thisWithCustomLabel.kt CONSTRUCTOR visibility:public <> (c:kotlin.Any) returnType:.C [primary] VALUE_PARAMETER name:c index:0 type:kotlin.Any BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:c visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:c type:kotlin.Any visibility:private [final] @@ -82,7 +82,7 @@ FILE fqName: fileName:/thisWithCustomLabel.kt receiver: GET_VAR ': .C declared in .C.' type=.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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/typeParameterAsContextReceiver.ir.txt b/compiler/testData/ir/irText/declarations/contextReceivers/typeParameterAsContextReceiver.ir.txt index 02f36d5091c..189e64269c7 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/typeParameterAsContextReceiver.ir.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/typeParameterAsContextReceiver.ir.txt @@ -7,7 +7,7 @@ FILE fqName: fileName:/typeParameterAsContextReceiver.kt BLOCK_BODY FUN name:test visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with [inline] declared in kotlin.StandardKt' type=kotlin.Unit origin=null + CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=kotlin.Unit origin=null : kotlin.Int : kotlin.Unit receiver: CONST Int type=kotlin.Int value=42 diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/unaryOperators.fir.ir.txt b/compiler/testData/ir/irText/declarations/contextReceivers/unaryOperators.fir.ir.txt index 6f59ac698be..9880df328c9 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/unaryOperators.fir.ir.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/unaryOperators.fir.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/unaryOperators.kt CONSTRUCTOR visibility:public <> (i:kotlin.Int) returnType:.Result [primary] VALUE_PARAMETER name:i index:0 type:kotlin.Int BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Result modality:FINAL visibility:public [data] superTypes:[kotlin.Any]' PROPERTY name:i visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:i type:kotlin.Int visibility:private [final] @@ -20,7 +20,7 @@ FILE fqName: fileName:/unaryOperators.kt FUN GENERATED_DATA_CLASS_MEMBER name:component1 visibility:public modality:FINAL <> ($this:.Result) returnType:kotlin.Int [operator] $this: VALUE_PARAMETER name: type:.Result BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Int [operator] declared in .Result' + RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Int declared in .Result' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:i type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null receiver: GET_VAR ': .Result declared in .Result.component1' type=.Result origin=null FUN GENERATED_DATA_CLASS_MEMBER name:copy visibility:public modality:FINAL <> ($this:.Result, i:kotlin.Int) returnType:.Result @@ -31,11 +31,11 @@ FILE fqName: fileName:/unaryOperators.kt receiver: GET_VAR ': .Result declared in .Result.copy' type=.Result origin=null BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun copy (i: kotlin.Int): .Result declared in .Result' - CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) [primary] declared in .Result' type=.Result origin=null + CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) declared in .Result' type=.Result origin=null i: GET_VAR 'i: kotlin.Int declared in .Result.copy' type=kotlin.Int origin=null FUN GENERATED_DATA_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:.Result, other:kotlin.Any?) returnType:kotlin.Boolean [operator] overridden: - public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any $this: VALUE_PARAMETER name: type:.Result VALUE_PARAMETER name:other index:0 type:kotlin.Any? BLOCK_BODY @@ -44,28 +44,28 @@ FILE fqName: fileName:/unaryOperators.kt 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 ': .Result declared in .Result.equals' type=.Result origin=null arg1: GET_VAR 'other: kotlin.Any? declared in .Result.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Result' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Result' CONST Boolean type=kotlin.Boolean value=true WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=.Result GET_VAR 'other: kotlin.Any? declared in .Result.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Result' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Result' CONST Boolean type=kotlin.Boolean value=false VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:.Result [val] TYPE_OP type=.Result origin=CAST typeOperand=.Result GET_VAR 'other: kotlin.Any? declared in .Result.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 + if: CALL 'public final fun not (): kotlin.Boolean 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:i type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null receiver: GET_VAR ': .Result declared in .Result.equals' type=.Result origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:i type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null - receiver: GET_VAR 'val tmp_0: .Result [val] declared in .Result.equals' type=.Result origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Result' + receiver: GET_VAR 'val tmp_0: .Result declared in .Result.equals' type=.Result origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Result' CONST Boolean type=kotlin.Boolean value=false - RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Result' + RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Result' CONST Boolean type=kotlin.Boolean value=true FUN GENERATED_DATA_CLASS_MEMBER name:hashCode visibility:public modality:OPEN <> ($this:.Result) returnType:kotlin.Int overridden: @@ -73,7 +73,7 @@ FILE fqName: fileName:/unaryOperators.kt $this: VALUE_PARAMETER name: type:.Result BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun hashCode (): kotlin.Int declared in .Result' - CALL 'public open fun hashCode (): kotlin.Int [fake_override] declared in kotlin.Int' type=kotlin.Int origin=null + CALL 'public open fun hashCode (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:i type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null receiver: GET_VAR ': .Result declared in .Result.hashCode' type=.Result origin=null FUN GENERATED_DATA_CLASS_MEMBER name:toString visibility:public modality:OPEN <> ($this:.Result) returnType:kotlin.String @@ -108,12 +108,12 @@ FILE fqName: fileName:/unaryOperators.kt VALUE_PARAMETER name:$context_receiver_0 index:0 type:kotlin.Int BLOCK_BODY CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=EQ - : CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null + : CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: CALL 'public final fun (): kotlin.Int declared in ' type=kotlin.Int origin=GET_PROPERTY other: GET_VAR '$context_receiver_0: kotlin.Int declared in .unaryMinus' type=kotlin.Int origin=null - RETURN type=kotlin.Nothing from='public final fun unaryMinus ($context_receiver_0: kotlin.Int): .Result [operator] declared in ' - CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) [primary] declared in .Result' type=.Result origin=null - i: CALL 'public final fun unaryMinus (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null + RETURN type=kotlin.Nothing from='public final fun unaryMinus ($context_receiver_0: kotlin.Int): .Result declared in ' + CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) declared in .Result' type=.Result origin=null + i: CALL 'public final fun unaryMinus (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: CALL 'public final fun (): kotlin.Int declared in .Result' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR ': .Result declared in .unaryMinus' type=.Result origin=null FUN name:unaryPlus visibility:public modality:FINAL <> ($receiver:.Result, $context_receiver_0:kotlin.Int) returnType:.Result [operator] @@ -122,18 +122,18 @@ FILE fqName: fileName:/unaryOperators.kt VALUE_PARAMETER name:$context_receiver_0 index:0 type:kotlin.Int BLOCK_BODY CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=EQ - : CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null + : CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: CALL 'public final fun (): kotlin.Int declared in ' type=kotlin.Int origin=GET_PROPERTY other: GET_VAR '$context_receiver_0: kotlin.Int declared in .unaryPlus' type=kotlin.Int origin=null - RETURN type=kotlin.Nothing from='public final fun unaryPlus ($context_receiver_0: kotlin.Int): .Result [operator] declared in ' - CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) [primary] declared in .Result' type=.Result origin=null + RETURN type=kotlin.Nothing from='public final fun unaryPlus ($context_receiver_0: kotlin.Int): .Result declared in ' + CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) declared in .Result' type=.Result origin=null i: WHEN type=kotlin.Int origin=IF BRANCH if: CALL 'public final fun less (arg0: kotlin.Int, arg1: kotlin.Int): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=LT arg0: CALL 'public final fun (): kotlin.Int declared in .Result' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR ': .Result declared in .unaryPlus' type=.Result origin=null arg1: CONST Int type=kotlin.Int value=0 - then: CALL 'public final fun unaryMinus (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null + then: CALL 'public final fun unaryMinus (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: CALL 'public final fun (): kotlin.Int declared in .Result' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR ': .Result declared in .unaryPlus' type=.Result origin=null BRANCH @@ -146,12 +146,12 @@ FILE fqName: fileName:/unaryOperators.kt VALUE_PARAMETER name:$context_receiver_0 index:0 type:kotlin.Int BLOCK_BODY CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=EQ - : CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null + : CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: CALL 'public final fun (): kotlin.Int declared in ' type=kotlin.Int origin=GET_PROPERTY other: GET_VAR '$context_receiver_0: kotlin.Int declared in .inc' type=kotlin.Int origin=null - RETURN type=kotlin.Nothing from='public final fun inc ($context_receiver_0: kotlin.Int): .Result [operator] declared in ' - CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) [primary] declared in .Result' type=.Result origin=null - i: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUS + RETURN type=kotlin.Nothing from='public final fun inc ($context_receiver_0: kotlin.Int): .Result declared in ' + CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) declared in .Result' type=.Result origin=null + i: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUS $this: CALL 'public final fun (): kotlin.Int declared in .Result' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR ': .Result declared in .inc' type=.Result origin=null other: CONST Int type=kotlin.Int value=1 @@ -161,22 +161,22 @@ FILE fqName: fileName:/unaryOperators.kt VALUE_PARAMETER name:$context_receiver_0 index:0 type:kotlin.Int BLOCK_BODY CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=EQ - : CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null + : CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: CALL 'public final fun (): kotlin.Int declared in ' type=kotlin.Int origin=GET_PROPERTY other: GET_VAR '$context_receiver_0: kotlin.Int declared in .dec' type=kotlin.Int origin=null - RETURN type=kotlin.Nothing from='public final fun dec ($context_receiver_0: kotlin.Int): .Result [operator] declared in ' - CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) [primary] declared in .Result' type=.Result origin=null - i: CALL 'public final fun minus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=MINUS + RETURN type=kotlin.Nothing from='public final fun dec ($context_receiver_0: kotlin.Int): .Result declared in ' + CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) declared in .Result' type=.Result origin=null + i: CALL 'public final fun minus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=MINUS $this: CALL 'public final fun (): kotlin.Int declared in .Result' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR ': .Result declared in .dec' type=.Result origin=null other: CONST Int type=kotlin.Int value=1 FUN name:box visibility:public modality:FINAL <> () returnType:kotlin.String BLOCK_BODY VAR name:result type:.Result [var] - CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) [primary] declared in .Result' type=.Result origin=null + CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) declared in .Result' type=.Result origin=null i: CONST Int type=kotlin.Int value=0 TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with [inline] declared in kotlin.StandardKt' type=.Result origin=null + CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=.Result origin=null : kotlin.Int : .Result receiver: CONST Int type=kotlin.Int value=1 @@ -187,38 +187,38 @@ FILE fqName: fileName:/unaryOperators.kt TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit BLOCK type=.Result origin=null VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:.Result [val] - GET_VAR 'var result: .Result [var] declared in .box' type=.Result origin=null - SET_VAR 'var result: .Result [var] declared in .box' type=kotlin.Unit origin=EQ - CALL 'public final fun inc ($context_receiver_0: kotlin.Int): .Result [operator] declared in ' type=.Result origin=null - $receiver: GET_VAR 'val tmp_1: .Result [val] declared in .box.' type=.Result origin=null + GET_VAR 'var result: .Result declared in .box' type=.Result origin=null + SET_VAR 'var result: .Result declared in .box' type=kotlin.Unit origin=EQ + CALL 'public final fun inc ($context_receiver_0: kotlin.Int): .Result declared in ' type=.Result origin=null + $receiver: GET_VAR 'val tmp_1: .Result declared in .box.' type=.Result origin=null $context_receiver_0: GET_VAR '$this$with: kotlin.Int declared in .box.' type=kotlin.Int origin=null - GET_VAR 'val tmp_1: .Result [val] declared in .box.' type=.Result origin=null + GET_VAR 'val tmp_1: .Result declared in .box.' type=.Result origin=null TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit BLOCK type=.Result origin=null VAR IR_TEMPORARY_VARIABLE name:tmp_2 type:.Result [val] - GET_VAR 'var result: .Result [var] declared in .box' type=.Result origin=null - SET_VAR 'var result: .Result [var] declared in .box' type=kotlin.Unit origin=EQ - CALL 'public final fun inc ($context_receiver_0: kotlin.Int): .Result [operator] declared in ' type=.Result origin=null - $receiver: GET_VAR 'val tmp_2: .Result [val] declared in .box.' type=.Result origin=null + GET_VAR 'var result: .Result declared in .box' type=.Result origin=null + SET_VAR 'var result: .Result declared in .box' type=kotlin.Unit origin=EQ + CALL 'public final fun inc ($context_receiver_0: kotlin.Int): .Result declared in ' type=.Result origin=null + $receiver: GET_VAR 'val tmp_2: .Result declared in .box.' type=.Result origin=null $context_receiver_0: GET_VAR '$this$with: kotlin.Int declared in .box.' type=kotlin.Int origin=null - GET_VAR 'val tmp_2: .Result [val] declared in .box.' type=.Result origin=null + GET_VAR 'val tmp_2: .Result declared in .box.' type=.Result origin=null TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit - CALL 'public final fun unaryMinus ($context_receiver_0: kotlin.Int): .Result [operator] declared in ' type=.Result origin=null - $receiver: GET_VAR 'var result: .Result [var] declared in .box' type=.Result origin=null + CALL 'public final fun unaryMinus ($context_receiver_0: kotlin.Int): .Result declared in ' type=.Result origin=null + $receiver: GET_VAR 'var result: .Result declared in .box' type=.Result origin=null $context_receiver_0: GET_VAR '$this$with: kotlin.Int declared in .box.' type=kotlin.Int origin=null TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit - CALL 'public final fun unaryPlus ($context_receiver_0: kotlin.Int): .Result [operator] declared in ' type=.Result origin=null - $receiver: GET_VAR 'var result: .Result [var] declared in .box' type=.Result origin=null + CALL 'public final fun unaryPlus ($context_receiver_0: kotlin.Int): .Result declared in ' type=.Result origin=null + $receiver: GET_VAR 'var result: .Result declared in .box' type=.Result origin=null $context_receiver_0: GET_VAR '$this$with: kotlin.Int declared in .box.' type=kotlin.Int origin=null RETURN type=kotlin.Nothing from='local final fun (): .Result declared in .box' BLOCK type=.Result origin=null VAR IR_TEMPORARY_VARIABLE name:tmp_3 type:.Result [val] - GET_VAR 'var result: .Result [var] declared in .box' type=.Result origin=null - SET_VAR 'var result: .Result [var] declared in .box' type=kotlin.Unit origin=EQ - CALL 'public final fun dec ($context_receiver_0: kotlin.Int): .Result [operator] declared in ' type=.Result origin=null - $receiver: GET_VAR 'val tmp_3: .Result [val] declared in .box.' type=.Result origin=null + GET_VAR 'var result: .Result declared in .box' type=.Result origin=null + SET_VAR 'var result: .Result declared in .box' type=kotlin.Unit origin=EQ + CALL 'public final fun dec ($context_receiver_0: kotlin.Int): .Result declared in ' type=.Result origin=null + $receiver: GET_VAR 'val tmp_3: .Result declared in .box.' type=.Result origin=null $context_receiver_0: GET_VAR '$this$with: kotlin.Int declared in .box.' type=kotlin.Int origin=null - GET_VAR 'val tmp_3: .Result [val] declared in .box.' type=.Result origin=null + GET_VAR 'val tmp_3: .Result declared in .box.' type=.Result origin=null RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' WHEN type=kotlin.String origin=IF BRANCH @@ -226,7 +226,7 @@ FILE fqName: fileName:/unaryOperators.kt BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ arg0: CALL 'public final fun (): kotlin.Int declared in .Result' type=kotlin.Int origin=GET_PROPERTY - $this: GET_VAR 'var result: .Result [var] declared in .box' type=.Result origin=null + $this: GET_VAR 'var result: .Result declared in .box' type=.Result origin=null arg1: CONST Int type=kotlin.Int value=1 then: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ arg0: CALL 'public final fun (): kotlin.Int declared in ' type=kotlin.Int origin=GET_PROPERTY diff --git a/compiler/testData/ir/irText/declarations/contextReceivers/unaryOperators.ir.txt b/compiler/testData/ir/irText/declarations/contextReceivers/unaryOperators.ir.txt index 9110f351ec1..50cd214c6ce 100644 --- a/compiler/testData/ir/irText/declarations/contextReceivers/unaryOperators.ir.txt +++ b/compiler/testData/ir/irText/declarations/contextReceivers/unaryOperators.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/unaryOperators.kt CONSTRUCTOR visibility:public <> (i:kotlin.Int) returnType:.Result [primary] VALUE_PARAMETER name:i index:0 type:kotlin.Int BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Result modality:FINAL visibility:public [data] superTypes:[kotlin.Any]' PROPERTY name:i visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:i type:kotlin.Int visibility:private [final] @@ -20,7 +20,7 @@ FILE fqName: fileName:/unaryOperators.kt FUN GENERATED_DATA_CLASS_MEMBER name:component1 visibility:public modality:FINAL <> ($this:.Result) returnType:kotlin.Int [operator] $this: VALUE_PARAMETER name: type:.Result BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Int [operator] declared in .Result' + RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Int declared in .Result' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:i type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null receiver: GET_VAR ': .Result declared in .Result.component1' type=.Result origin=null FUN GENERATED_DATA_CLASS_MEMBER name:copy visibility:public modality:FINAL <> ($this:.Result, i:kotlin.Int) returnType:.Result @@ -31,7 +31,7 @@ FILE fqName: fileName:/unaryOperators.kt receiver: GET_VAR ': .Result declared in .Result.copy' type=.Result origin=null BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun copy (i: kotlin.Int): .Result declared in .Result' - CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) [primary] declared in .Result' type=.Result origin=null + CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) declared in .Result' type=.Result origin=null i: GET_VAR 'i: kotlin.Int declared in .Result.copy' type=kotlin.Int origin=null FUN GENERATED_DATA_CLASS_MEMBER name:toString visibility:public modality:OPEN <> ($this:.Result) returnType:kotlin.String overridden: @@ -51,12 +51,12 @@ FILE fqName: fileName:/unaryOperators.kt $this: VALUE_PARAMETER name: type:.Result BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun hashCode (): kotlin.Int declared in .Result' - CALL 'public open fun hashCode (): kotlin.Int [fake_override] declared in kotlin.Int' type=kotlin.Int origin=null + CALL 'public open fun hashCode (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:i type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null receiver: GET_VAR ': .Result declared in .Result.hashCode' type=.Result origin=null FUN GENERATED_DATA_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:.Result, other:kotlin.Any?) returnType:kotlin.Boolean [operator] overridden: - public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any $this: VALUE_PARAMETER name: type:.Result VALUE_PARAMETER name:other index:0 type:kotlin.Any? BLOCK_BODY @@ -65,28 +65,28 @@ FILE fqName: fileName:/unaryOperators.kt 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 ': .Result declared in .Result.equals' type=.Result origin=null arg1: GET_VAR 'other: kotlin.Any? declared in .Result.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Result' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Result' CONST Boolean type=kotlin.Boolean value=true WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=.Result GET_VAR 'other: kotlin.Any? declared in .Result.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Result' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Result' CONST Boolean type=kotlin.Boolean value=false VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:.Result [val] TYPE_OP type=.Result origin=CAST typeOperand=.Result GET_VAR 'other: kotlin.Any? declared in .Result.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 + if: CALL 'public final fun not (): kotlin.Boolean 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:i type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null receiver: GET_VAR ': .Result declared in .Result.equals' type=.Result origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:i type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null - receiver: GET_VAR 'val tmp_0: .Result [val] declared in .Result.equals' type=.Result origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Result' + receiver: GET_VAR 'val tmp_0: .Result declared in .Result.equals' type=.Result origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Result' CONST Boolean type=kotlin.Boolean value=false - RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Result' + RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Result' CONST Boolean type=kotlin.Boolean value=true PROPERTY name:operationScore visibility:public modality:FINAL [var] FIELD PROPERTY_BACKING_FIELD name:operationScore type:kotlin.Int visibility:private [static] @@ -110,12 +110,12 @@ FILE fqName: fileName:/unaryOperators.kt BLOCK_BODY BLOCK type=kotlin.Unit origin=PLUSEQ CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=PLUSEQ - : CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ + : CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ $this: CALL 'public final fun (): kotlin.Int declared in ' type=kotlin.Int origin=PLUSEQ other: GET_VAR '$context_receiver_0: kotlin.Int declared in .unaryMinus' type=kotlin.Int origin=null - RETURN type=kotlin.Nothing from='public final fun unaryMinus ($context_receiver_0: kotlin.Int): .Result [operator] declared in ' - CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) [primary] declared in .Result' type=.Result origin=null - i: CALL 'public final fun unaryMinus (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=UMINUS + RETURN type=kotlin.Nothing from='public final fun unaryMinus ($context_receiver_0: kotlin.Int): .Result declared in ' + CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) declared in .Result' type=.Result origin=null + i: CALL 'public final fun unaryMinus (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=UMINUS $this: CALL 'public final fun (): kotlin.Int declared in .Result' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR ': .Result declared in .unaryMinus' type=.Result origin=null FUN name:unaryPlus visibility:public modality:FINAL <> ($receiver:.Result, $context_receiver_0:kotlin.Int) returnType:.Result [operator] @@ -125,18 +125,18 @@ FILE fqName: fileName:/unaryOperators.kt BLOCK_BODY BLOCK type=kotlin.Unit origin=PLUSEQ CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=PLUSEQ - : CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ + : CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ $this: CALL 'public final fun (): kotlin.Int declared in ' type=kotlin.Int origin=PLUSEQ other: GET_VAR '$context_receiver_0: kotlin.Int declared in .unaryPlus' type=kotlin.Int origin=null - RETURN type=kotlin.Nothing from='public final fun unaryPlus ($context_receiver_0: kotlin.Int): .Result [operator] declared in ' - CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) [primary] declared in .Result' type=.Result origin=null + RETURN type=kotlin.Nothing from='public final fun unaryPlus ($context_receiver_0: kotlin.Int): .Result declared in ' + CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) declared in .Result' type=.Result origin=null i: WHEN type=kotlin.Int origin=IF BRANCH if: CALL 'public final fun less (arg0: kotlin.Int, arg1: kotlin.Int): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=LT arg0: CALL 'public final fun (): kotlin.Int declared in .Result' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR ': .Result declared in .unaryPlus' type=.Result origin=null arg1: CONST Int type=kotlin.Int value=0 - then: CALL 'public final fun unaryMinus (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=UMINUS + then: CALL 'public final fun unaryMinus (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=UMINUS $this: CALL 'public final fun (): kotlin.Int declared in .Result' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR ': .Result declared in .unaryPlus' type=.Result origin=null BRANCH @@ -150,12 +150,12 @@ FILE fqName: fileName:/unaryOperators.kt BLOCK_BODY BLOCK type=kotlin.Unit origin=PLUSEQ CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=PLUSEQ - : CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ + : CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ $this: CALL 'public final fun (): kotlin.Int declared in ' type=kotlin.Int origin=PLUSEQ other: GET_VAR '$context_receiver_0: kotlin.Int declared in .inc' type=kotlin.Int origin=null - RETURN type=kotlin.Nothing from='public final fun inc ($context_receiver_0: kotlin.Int): .Result [operator] declared in ' - CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) [primary] declared in .Result' type=.Result origin=null - i: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUS + RETURN type=kotlin.Nothing from='public final fun inc ($context_receiver_0: kotlin.Int): .Result declared in ' + CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) declared in .Result' type=.Result origin=null + i: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUS $this: CALL 'public final fun (): kotlin.Int declared in .Result' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR ': .Result declared in .inc' type=.Result origin=null other: CONST Int type=kotlin.Int value=1 @@ -166,22 +166,22 @@ FILE fqName: fileName:/unaryOperators.kt BLOCK_BODY BLOCK type=kotlin.Unit origin=PLUSEQ CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=PLUSEQ - : CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ + : CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ $this: CALL 'public final fun (): kotlin.Int declared in ' type=kotlin.Int origin=PLUSEQ other: GET_VAR '$context_receiver_0: kotlin.Int declared in .dec' type=kotlin.Int origin=null - RETURN type=kotlin.Nothing from='public final fun dec ($context_receiver_0: kotlin.Int): .Result [operator] declared in ' - CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) [primary] declared in .Result' type=.Result origin=null - i: CALL 'public final fun minus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=MINUS + RETURN type=kotlin.Nothing from='public final fun dec ($context_receiver_0: kotlin.Int): .Result declared in ' + CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) declared in .Result' type=.Result origin=null + i: CALL 'public final fun minus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=MINUS $this: CALL 'public final fun (): kotlin.Int declared in .Result' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR ': .Result declared in .dec' type=.Result origin=null other: CONST Int type=kotlin.Int value=1 FUN name:box visibility:public modality:FINAL <> () returnType:kotlin.String BLOCK_BODY VAR name:result type:.Result [var] - CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) [primary] declared in .Result' type=.Result origin=null + CONSTRUCTOR_CALL 'public constructor (i: kotlin.Int) declared in .Result' type=.Result origin=null i: CONST Int type=kotlin.Int value=0 TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with [inline] declared in kotlin.StandardKt' type=.Result origin=null + CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=.Result origin=null : kotlin.Int : .Result receiver: CONST Int type=kotlin.Int value=1 @@ -192,38 +192,38 @@ FILE fqName: fileName:/unaryOperators.kt TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit BLOCK type=.Result origin=POSTFIX_INCR VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:.Result [val] - GET_VAR 'var result: .Result [var] declared in .box' type=.Result origin=POSTFIX_INCR - SET_VAR 'var result: .Result [var] declared in .box' type=kotlin.Unit origin=POSTFIX_INCR - CALL 'public final fun inc ($context_receiver_0: kotlin.Int): .Result [operator] declared in ' type=.Result origin=POSTFIX_INCR - $receiver: GET_VAR 'val tmp_1: .Result [val] declared in .box.' type=.Result origin=null + GET_VAR 'var result: .Result declared in .box' type=.Result origin=POSTFIX_INCR + SET_VAR 'var result: .Result declared in .box' type=kotlin.Unit origin=POSTFIX_INCR + CALL 'public final fun inc ($context_receiver_0: kotlin.Int): .Result declared in ' type=.Result origin=POSTFIX_INCR + $receiver: GET_VAR 'val tmp_1: .Result declared in .box.' type=.Result origin=null $context_receiver_0: GET_VAR '$this$with: kotlin.Int declared in .box.' type=kotlin.Int origin=null - GET_VAR 'val tmp_1: .Result [val] declared in .box.' type=.Result origin=null + GET_VAR 'val tmp_1: .Result declared in .box.' type=.Result origin=null TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit BLOCK type=.Result origin=POSTFIX_INCR VAR IR_TEMPORARY_VARIABLE name:tmp_2 type:.Result [val] - GET_VAR 'var result: .Result [var] declared in .box' type=.Result origin=POSTFIX_INCR - SET_VAR 'var result: .Result [var] declared in .box' type=kotlin.Unit origin=POSTFIX_INCR - CALL 'public final fun inc ($context_receiver_0: kotlin.Int): .Result [operator] declared in ' type=.Result origin=POSTFIX_INCR - $receiver: GET_VAR 'val tmp_2: .Result [val] declared in .box.' type=.Result origin=null + GET_VAR 'var result: .Result declared in .box' type=.Result origin=POSTFIX_INCR + SET_VAR 'var result: .Result declared in .box' type=kotlin.Unit origin=POSTFIX_INCR + CALL 'public final fun inc ($context_receiver_0: kotlin.Int): .Result declared in ' type=.Result origin=POSTFIX_INCR + $receiver: GET_VAR 'val tmp_2: .Result declared in .box.' type=.Result origin=null $context_receiver_0: GET_VAR '$this$with: kotlin.Int declared in .box.' type=kotlin.Int origin=null - GET_VAR 'val tmp_2: .Result [val] declared in .box.' type=.Result origin=null + GET_VAR 'val tmp_2: .Result declared in .box.' type=.Result origin=null TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit - CALL 'public final fun unaryMinus ($context_receiver_0: kotlin.Int): .Result [operator] declared in ' type=.Result origin=UMINUS - $receiver: GET_VAR 'var result: .Result [var] declared in .box' type=.Result origin=null + CALL 'public final fun unaryMinus ($context_receiver_0: kotlin.Int): .Result declared in ' type=.Result origin=UMINUS + $receiver: GET_VAR 'var result: .Result declared in .box' type=.Result origin=null $context_receiver_0: GET_VAR '$this$with: kotlin.Int declared in .box.' type=kotlin.Int origin=null TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit - CALL 'public final fun unaryPlus ($context_receiver_0: kotlin.Int): .Result [operator] declared in ' type=.Result origin=UPLUS - $receiver: GET_VAR 'var result: .Result [var] declared in .box' type=.Result origin=null + CALL 'public final fun unaryPlus ($context_receiver_0: kotlin.Int): .Result declared in ' type=.Result origin=UPLUS + $receiver: GET_VAR 'var result: .Result declared in .box' type=.Result origin=null $context_receiver_0: GET_VAR '$this$with: kotlin.Int declared in .box.' type=kotlin.Int origin=null RETURN type=kotlin.Nothing from='local final fun (): .Result declared in .box' BLOCK type=.Result origin=POSTFIX_DECR VAR IR_TEMPORARY_VARIABLE name:tmp_3 type:.Result [val] - GET_VAR 'var result: .Result [var] declared in .box' type=.Result origin=POSTFIX_DECR - SET_VAR 'var result: .Result [var] declared in .box' type=kotlin.Unit origin=POSTFIX_DECR - CALL 'public final fun dec ($context_receiver_0: kotlin.Int): .Result [operator] declared in ' type=.Result origin=POSTFIX_DECR - $receiver: GET_VAR 'val tmp_3: .Result [val] declared in .box.' type=.Result origin=null + GET_VAR 'var result: .Result declared in .box' type=.Result origin=POSTFIX_DECR + SET_VAR 'var result: .Result declared in .box' type=kotlin.Unit origin=POSTFIX_DECR + CALL 'public final fun dec ($context_receiver_0: kotlin.Int): .Result declared in ' type=.Result origin=POSTFIX_DECR + $receiver: GET_VAR 'val tmp_3: .Result declared in .box.' type=.Result origin=null $context_receiver_0: GET_VAR '$this$with: kotlin.Int declared in .box.' type=kotlin.Int origin=null - GET_VAR 'val tmp_3: .Result [val] declared in .box.' type=.Result origin=null + GET_VAR 'val tmp_3: .Result declared in .box.' type=.Result origin=null RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' WHEN type=kotlin.String origin=IF BRANCH @@ -231,7 +231,7 @@ FILE fqName: fileName:/unaryOperators.kt BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ arg0: CALL 'public final fun (): kotlin.Int declared in .Result' type=kotlin.Int origin=GET_PROPERTY - $this: GET_VAR 'var result: .Result [var] declared in .box' type=.Result origin=null + $this: GET_VAR 'var result: .Result declared in .box' type=.Result origin=null arg1: CONST Int type=kotlin.Int value=1 then: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ arg0: CALL 'public final fun (): kotlin.Int declared in ' type=kotlin.Int origin=GET_PROPERTY diff --git a/compiler/testData/ir/irText/declarations/delegatedProperties.fir.ir.txt b/compiler/testData/ir/irText/declarations/delegatedProperties.fir.ir.txt index a02a60f9d4a..48a98c19b82 100644 --- a/compiler/testData/ir/irText/declarations/delegatedProperties.fir.ir.txt +++ b/compiler/testData/ir/irText/declarations/delegatedProperties.fir.ir.txt @@ -13,17 +13,17 @@ FILE fqName: fileName:/delegatedProperties.kt correspondingProperty: PROPERTY name:test1 visibility:public modality:FINAL [delegated,val] BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun (): kotlin.Int declared in ' - CALL 'public final fun getValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): T of kotlin.LazyKt.getValue [inline,operator] declared in kotlin.LazyKt' type=kotlin.Int origin=null + CALL 'public final fun getValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): T of kotlin.LazyKt.getValue declared in kotlin.LazyKt' type=kotlin.Int origin=null : kotlin.Int $receiver: GET_FIELD 'FIELD PROPERTY_DELEGATE name:test1$delegate type:kotlin.Lazy visibility:private [final,static]' type=kotlin.Lazy origin=null thisRef: CONST Null type=kotlin.Nothing? value=null - property: PROPERTY_REFERENCE 'public final test1: kotlin.Int [delegated,val]' field=null getter='public final fun (): kotlin.Int declared in ' setter=null type=kotlin.reflect.KProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE + property: PROPERTY_REFERENCE 'public final test1: kotlin.Int' field=null getter='public final fun (): kotlin.Int declared in ' setter=null type=kotlin.reflect.KProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE CLASS CLASS name:C modality:FINAL visibility:public superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.C CONSTRUCTOR visibility:public <> (map:kotlin.collections.MutableMap) returnType:.C [primary] VALUE_PARAMETER name:map index:0 type:kotlin.collections.MutableMap BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:map visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:map type:kotlin.collections.MutableMap visibility:private [final] @@ -51,12 +51,12 @@ FILE fqName: fileName:/delegatedProperties.kt $this: VALUE_PARAMETER name: type:.C BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun (): kotlin.Int declared in .C' - CALL 'public final fun getValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): T of kotlin.LazyKt.getValue [inline,operator] declared in kotlin.LazyKt' type=kotlin.Int origin=null + CALL 'public final fun getValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): T of kotlin.LazyKt.getValue declared in kotlin.LazyKt' type=kotlin.Int origin=null : kotlin.Int $receiver: GET_FIELD 'FIELD PROPERTY_DELEGATE name:test2$delegate type:kotlin.Lazy visibility:private [final]' type=kotlin.Lazy origin=null receiver: GET_VAR ': .C declared in .C.' type=.C origin=null thisRef: GET_VAR ': .C declared in .C.' type=.C origin=null - property: PROPERTY_REFERENCE 'public final test2: kotlin.Int [delegated,val]' field=null getter='public final fun (): kotlin.Int declared in .C' setter=null type=kotlin.reflect.KProperty1<.C, kotlin.Int> origin=PROPERTY_REFERENCE_FOR_DELEGATE + property: PROPERTY_REFERENCE 'public final test2: kotlin.Int' field=null getter='public final fun (): kotlin.Int declared in .C' setter=null type=kotlin.reflect.KProperty1<.C, kotlin.Int> origin=PROPERTY_REFERENCE_FOR_DELEGATE PROPERTY name:test3 visibility:public modality:FINAL [delegated,var] FIELD PROPERTY_DELEGATE name:test3$delegate type:kotlin.collections.MutableMap visibility:private [final] EXPRESSION_BODY @@ -67,28 +67,28 @@ FILE fqName: fileName:/delegatedProperties.kt $this: VALUE_PARAMETER name: type:.C BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun (): kotlin.Any declared in .C' - CALL 'public final fun getValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): V1 of kotlin.collections.getValue [inline,operator] declared in kotlin.collections' type=kotlin.Any origin=null + CALL 'public final fun getValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): V1 of kotlin.collections.getValue declared in kotlin.collections' type=kotlin.Any origin=null : kotlin.Any : kotlin.Any $receiver: GET_FIELD 'FIELD PROPERTY_DELEGATE name:test3$delegate type:kotlin.collections.MutableMap visibility:private [final]' type=kotlin.collections.MutableMap origin=null receiver: GET_VAR ': .C declared in .C.' type=.C origin=null thisRef: GET_VAR ': .C declared in .C.' type=.C origin=null - property: PROPERTY_REFERENCE 'public final test3: kotlin.Any [delegated,var]' field=null getter='public final fun (): kotlin.Any declared in .C' setter='public final fun (: kotlin.Any): kotlin.Unit declared in .C' type=kotlin.reflect.KMutableProperty1<.C, kotlin.Any> origin=PROPERTY_REFERENCE_FOR_DELEGATE + property: PROPERTY_REFERENCE 'public final test3: kotlin.Any' field=null getter='public final fun (): kotlin.Any declared in .C' setter='public final fun (: kotlin.Any): kotlin.Unit declared in .C' type=kotlin.reflect.KMutableProperty1<.C, kotlin.Any> origin=PROPERTY_REFERENCE_FOR_DELEGATE FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:.C, :kotlin.Any) returnType:kotlin.Unit correspondingProperty: PROPERTY name:test3 visibility:public modality:FINAL [delegated,var] $this: VALUE_PARAMETER name: type:.C VALUE_PARAMETER name: index:0 type:kotlin.Any BLOCK_BODY - CALL 'public final fun setValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>, value: V of kotlin.collections.setValue): kotlin.Unit [inline,operator] declared in kotlin.collections' type=kotlin.Unit origin=null + CALL 'public final fun setValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>, value: V of kotlin.collections.setValue): kotlin.Unit declared in kotlin.collections' type=kotlin.Unit origin=null : kotlin.Any $receiver: GET_FIELD 'FIELD PROPERTY_DELEGATE name:test3$delegate type:kotlin.collections.MutableMap visibility:private [final]' type=kotlin.collections.MutableMap origin=null receiver: GET_VAR ': .C declared in .C.' type=.C origin=null thisRef: GET_VAR ': .C declared in .C.' type=.C origin=null - property: PROPERTY_REFERENCE 'public final test3: kotlin.Any [delegated,var]' field=null getter='public final fun (): kotlin.Any declared in .C' setter='public final fun (: kotlin.Any): kotlin.Unit declared in .C' type=kotlin.reflect.KMutableProperty1<.C, kotlin.Any> origin=PROPERTY_REFERENCE_FOR_DELEGATE + property: PROPERTY_REFERENCE 'public final test3: kotlin.Any' field=null getter='public final fun (): kotlin.Any declared in .C' setter='public final fun (: kotlin.Any): kotlin.Unit declared in .C' type=kotlin.reflect.KMutableProperty1<.C, kotlin.Any> origin=PROPERTY_REFERENCE_FOR_DELEGATE value: GET_VAR ': kotlin.Any declared in .C.' type=kotlin.Any 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -102,26 +102,26 @@ FILE fqName: fileName:/delegatedProperties.kt PROPERTY name:test4 visibility:public modality:FINAL [delegated,var] FIELD PROPERTY_DELEGATE name:test4$delegate type:java.util.HashMap visibility:private [final,static] EXPRESSION_BODY - CALL 'public final fun hashMapOf (): java.util.HashMap [inline] declared in kotlin.collections.MapsKt' type=java.util.HashMap origin=null + CALL 'public final fun hashMapOf (): java.util.HashMap declared in kotlin.collections.MapsKt' type=java.util.HashMap origin=null : kotlin.String : kotlin.Any FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:kotlin.Any correspondingProperty: PROPERTY name:test4 visibility:public modality:FINAL [delegated,var] BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun (): kotlin.Any declared in ' - CALL 'public final fun getValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): V1 of kotlin.collections.getValue [inline,operator] declared in kotlin.collections' type=kotlin.Any origin=null + CALL 'public final fun getValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): V1 of kotlin.collections.getValue declared in kotlin.collections' type=kotlin.Any origin=null : kotlin.Any : kotlin.Any $receiver: GET_FIELD 'FIELD PROPERTY_DELEGATE name:test4$delegate type:java.util.HashMap visibility:private [final,static]' type=java.util.HashMap origin=null thisRef: CONST Null type=kotlin.Nothing? value=null - property: PROPERTY_REFERENCE 'public final test4: kotlin.Any [delegated,var]' field=null getter='public final fun (): kotlin.Any declared in ' setter='public final fun (: kotlin.Any): kotlin.Unit declared in ' type=kotlin.reflect.KMutableProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE + property: PROPERTY_REFERENCE 'public final test4: kotlin.Any' field=null getter='public final fun (): kotlin.Any declared in ' setter='public final fun (: kotlin.Any): kotlin.Unit declared in ' type=kotlin.reflect.KMutableProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> (:kotlin.Any) returnType:kotlin.Unit correspondingProperty: PROPERTY name:test4 visibility:public modality:FINAL [delegated,var] VALUE_PARAMETER name: index:0 type:kotlin.Any BLOCK_BODY - CALL 'public final fun setValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>, value: V of kotlin.collections.setValue): kotlin.Unit [inline,operator] declared in kotlin.collections' type=kotlin.Unit origin=null + CALL 'public final fun setValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>, value: V of kotlin.collections.setValue): kotlin.Unit declared in kotlin.collections' type=kotlin.Unit origin=null : kotlin.Any $receiver: GET_FIELD 'FIELD PROPERTY_DELEGATE name:test4$delegate type:java.util.HashMap visibility:private [final,static]' type=java.util.HashMap origin=null thisRef: CONST Null type=kotlin.Nothing? value=null - property: PROPERTY_REFERENCE 'public final test4: kotlin.Any [delegated,var]' field=null getter='public final fun (): kotlin.Any declared in ' setter='public final fun (: kotlin.Any): kotlin.Unit declared in ' type=kotlin.reflect.KMutableProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE + property: PROPERTY_REFERENCE 'public final test4: kotlin.Any' field=null getter='public final fun (): kotlin.Any declared in ' setter='public final fun (: kotlin.Any): kotlin.Unit declared in ' type=kotlin.reflect.KMutableProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE value: GET_VAR ': kotlin.Any declared in .' type=kotlin.Any origin=null diff --git a/compiler/testData/ir/irText/declarations/delegatedProperties.ir.txt b/compiler/testData/ir/irText/declarations/delegatedProperties.ir.txt index ed3c4645dec..75c6677bb8c 100644 --- a/compiler/testData/ir/irText/declarations/delegatedProperties.ir.txt +++ b/compiler/testData/ir/irText/declarations/delegatedProperties.ir.txt @@ -13,17 +13,17 @@ FILE fqName: fileName:/delegatedProperties.kt correspondingProperty: PROPERTY name:test1 visibility:public modality:FINAL [delegated,val] BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun (): kotlin.Int declared in ' - CALL 'public final fun getValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): T of kotlin.LazyKt.getValue [inline,operator] declared in kotlin.LazyKt' type=kotlin.Int origin=null + CALL 'public final fun getValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): T of kotlin.LazyKt.getValue declared in kotlin.LazyKt' type=kotlin.Int origin=null : kotlin.Int $receiver: GET_FIELD 'FIELD PROPERTY_DELEGATE name:test1$delegate type:kotlin.Lazy visibility:private [final,static]' type=kotlin.Lazy origin=null thisRef: CONST Null type=kotlin.Nothing? value=null - property: PROPERTY_REFERENCE 'public final test1: kotlin.Int [delegated,val]' field=null getter='public final fun (): kotlin.Int declared in ' setter=null type=kotlin.reflect.KProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE + property: PROPERTY_REFERENCE 'public final test1: kotlin.Int' field=null getter='public final fun (): kotlin.Int declared in ' setter=null type=kotlin.reflect.KProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE CLASS CLASS name:C modality:FINAL visibility:public superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.C CONSTRUCTOR visibility:public <> (map:kotlin.collections.MutableMap) returnType:.C [primary] VALUE_PARAMETER name:map index:0 type:kotlin.collections.MutableMap BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:map visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:map type:kotlin.collections.MutableMap visibility:private [final] @@ -51,12 +51,12 @@ FILE fqName: fileName:/delegatedProperties.kt $this: VALUE_PARAMETER name: type:.C BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun (): kotlin.Int declared in .C' - CALL 'public final fun getValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): T of kotlin.LazyKt.getValue [inline,operator] declared in kotlin.LazyKt' type=kotlin.Int origin=null + CALL 'public final fun getValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): T of kotlin.LazyKt.getValue declared in kotlin.LazyKt' type=kotlin.Int origin=null : kotlin.Int $receiver: GET_FIELD 'FIELD PROPERTY_DELEGATE name:test2$delegate type:kotlin.Lazy visibility:private [final]' type=kotlin.Lazy origin=null receiver: GET_VAR ': .C declared in .C.' type=.C origin=null thisRef: GET_VAR ': .C declared in .C.' type=.C origin=null - property: PROPERTY_REFERENCE 'public final test2: kotlin.Int [delegated,val]' field=null getter='public final fun (): kotlin.Int declared in .C' setter=null type=kotlin.reflect.KProperty1<.C, kotlin.Int> origin=PROPERTY_REFERENCE_FOR_DELEGATE + property: PROPERTY_REFERENCE 'public final test2: kotlin.Int' field=null getter='public final fun (): kotlin.Int declared in .C' setter=null type=kotlin.reflect.KProperty1<.C, kotlin.Int> origin=PROPERTY_REFERENCE_FOR_DELEGATE PROPERTY name:test3 visibility:public modality:FINAL [delegated,var] FIELD PROPERTY_DELEGATE name:test3$delegate type:kotlin.collections.MutableMap visibility:private [final] EXPRESSION_BODY @@ -67,29 +67,29 @@ FILE fqName: fileName:/delegatedProperties.kt $this: VALUE_PARAMETER name: type:.C BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun (): kotlin.Any declared in .C' - CALL 'public final fun getValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): V1 of kotlin.collections.getValue [inline,operator] declared in kotlin.collections' type=kotlin.Any origin=null + CALL 'public final fun getValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): V1 of kotlin.collections.getValue declared in kotlin.collections' type=kotlin.Any origin=null : kotlin.Any : kotlin.Any $receiver: GET_FIELD 'FIELD PROPERTY_DELEGATE name:test3$delegate type:kotlin.collections.MutableMap visibility:private [final]' type=kotlin.collections.MutableMap origin=null receiver: GET_VAR ': .C declared in .C.' type=.C origin=null thisRef: GET_VAR ': .C declared in .C.' type=.C origin=null - property: PROPERTY_REFERENCE 'public final test3: kotlin.Any [delegated,var]' field=null getter='public final fun (): kotlin.Any declared in .C' setter='public final fun (: kotlin.Any): kotlin.Unit declared in .C' type=kotlin.reflect.KMutableProperty1<.C, kotlin.Any> origin=PROPERTY_REFERENCE_FOR_DELEGATE + property: PROPERTY_REFERENCE 'public final test3: kotlin.Any' field=null getter='public final fun (): kotlin.Any declared in .C' setter='public final fun (: kotlin.Any): kotlin.Unit declared in .C' type=kotlin.reflect.KMutableProperty1<.C, kotlin.Any> origin=PROPERTY_REFERENCE_FOR_DELEGATE FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:.C, :kotlin.Any) returnType:kotlin.Unit correspondingProperty: PROPERTY name:test3 visibility:public modality:FINAL [delegated,var] $this: VALUE_PARAMETER name: type:.C VALUE_PARAMETER name: index:0 type:kotlin.Any BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun (: kotlin.Any): kotlin.Unit declared in .C' - CALL 'public final fun setValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>, value: V of kotlin.collections.setValue): kotlin.Unit [inline,operator] declared in kotlin.collections' type=kotlin.Unit origin=null + CALL 'public final fun setValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>, value: V of kotlin.collections.setValue): kotlin.Unit declared in kotlin.collections' type=kotlin.Unit origin=null : kotlin.Any $receiver: GET_FIELD 'FIELD PROPERTY_DELEGATE name:test3$delegate type:kotlin.collections.MutableMap visibility:private [final]' type=kotlin.collections.MutableMap origin=null receiver: GET_VAR ': .C declared in .C.' type=.C origin=null thisRef: GET_VAR ': .C declared in .C.' type=.C origin=null - property: PROPERTY_REFERENCE 'public final test3: kotlin.Any [delegated,var]' field=null getter='public final fun (): kotlin.Any declared in .C' setter='public final fun (: kotlin.Any): kotlin.Unit declared in .C' type=kotlin.reflect.KMutableProperty1<.C, kotlin.Any> origin=PROPERTY_REFERENCE_FOR_DELEGATE + property: PROPERTY_REFERENCE 'public final test3: kotlin.Any' field=null getter='public final fun (): kotlin.Any declared in .C' setter='public final fun (: kotlin.Any): kotlin.Unit declared in .C' type=kotlin.reflect.KMutableProperty1<.C, kotlin.Any> origin=PROPERTY_REFERENCE_FOR_DELEGATE value: GET_VAR ': kotlin.Any declared in .C.' type=kotlin.Any 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -103,27 +103,27 @@ FILE fqName: fileName:/delegatedProperties.kt PROPERTY name:test4 visibility:public modality:FINAL [delegated,var] FIELD PROPERTY_DELEGATE name:test4$delegate type:java.util.HashMap{ kotlin.collections.HashMap } visibility:private [final,static] EXPRESSION_BODY - CALL 'public final fun hashMapOf (): java.util.HashMap{ kotlin.collections.HashMap } [inline] declared in kotlin.collections.MapsKt' type=java.util.HashMap{ kotlin.collections.HashMap } origin=null + CALL 'public final fun hashMapOf (): java.util.HashMap{ kotlin.collections.HashMap } declared in kotlin.collections.MapsKt' type=java.util.HashMap{ kotlin.collections.HashMap } origin=null : kotlin.String : kotlin.Any FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:kotlin.Any correspondingProperty: PROPERTY name:test4 visibility:public modality:FINAL [delegated,var] BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun (): kotlin.Any declared in ' - CALL 'public final fun getValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): V1 of kotlin.collections.getValue [inline,operator] declared in kotlin.collections' type=kotlin.Any origin=null + CALL 'public final fun getValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): V1 of kotlin.collections.getValue declared in kotlin.collections' type=kotlin.Any origin=null : kotlin.Any : kotlin.Any $receiver: GET_FIELD 'FIELD PROPERTY_DELEGATE name:test4$delegate type:java.util.HashMap{ kotlin.collections.HashMap } visibility:private [final,static]' type=java.util.HashMap{ kotlin.collections.HashMap } origin=null thisRef: CONST Null type=kotlin.Nothing? value=null - property: PROPERTY_REFERENCE 'public final test4: kotlin.Any [delegated,var]' field=null getter='public final fun (): kotlin.Any declared in ' setter='public final fun (: kotlin.Any): kotlin.Unit declared in ' type=kotlin.reflect.KMutableProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE + property: PROPERTY_REFERENCE 'public final test4: kotlin.Any' field=null getter='public final fun (): kotlin.Any declared in ' setter='public final fun (: kotlin.Any): kotlin.Unit declared in ' type=kotlin.reflect.KMutableProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> (:kotlin.Any) returnType:kotlin.Unit correspondingProperty: PROPERTY name:test4 visibility:public modality:FINAL [delegated,var] VALUE_PARAMETER name: index:0 type:kotlin.Any BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun (: kotlin.Any): kotlin.Unit declared in ' - CALL 'public final fun setValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>, value: V of kotlin.collections.setValue): kotlin.Unit [inline,operator] declared in kotlin.collections' type=kotlin.Unit origin=null + CALL 'public final fun setValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>, value: V of kotlin.collections.setValue): kotlin.Unit declared in kotlin.collections' type=kotlin.Unit origin=null : kotlin.Any $receiver: GET_FIELD 'FIELD PROPERTY_DELEGATE name:test4$delegate type:java.util.HashMap{ kotlin.collections.HashMap } visibility:private [final,static]' type=java.util.HashMap{ kotlin.collections.HashMap } origin=null thisRef: CONST Null type=kotlin.Nothing? value=null - property: PROPERTY_REFERENCE 'public final test4: kotlin.Any [delegated,var]' field=null getter='public final fun (): kotlin.Any declared in ' setter='public final fun (: kotlin.Any): kotlin.Unit declared in ' type=kotlin.reflect.KMutableProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE + property: PROPERTY_REFERENCE 'public final test4: kotlin.Any' field=null getter='public final fun (): kotlin.Any declared in ' setter='public final fun (: kotlin.Any): kotlin.Unit declared in ' type=kotlin.reflect.KMutableProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE value: GET_VAR ': kotlin.Any declared in .' type=kotlin.Any origin=null diff --git a/compiler/testData/ir/irText/declarations/extensionProperties.ir.txt b/compiler/testData/ir/irText/declarations/extensionProperties.ir.txt index 12118fd2d68..821919da49b 100644 --- a/compiler/testData/ir/irText/declarations/extensionProperties.ir.txt +++ b/compiler/testData/ir/irText/declarations/extensionProperties.ir.txt @@ -22,7 +22,7 @@ FILE fqName: fileName:/extensionProperties.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Host CONSTRUCTOR visibility:public <> () returnType:.Host [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Host modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:test3 visibility:public modality:FINAL [val] FUN name: visibility:public modality:FINAL <> ($this:.Host, $receiver:kotlin.String) returnType:kotlin.Int @@ -48,7 +48,7 @@ FILE fqName: fileName:/extensionProperties.kt 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/declarations/fakeOverrides.fir.ir.txt b/compiler/testData/ir/irText/declarations/fakeOverrides.fir.ir.txt index d82cbdacfbc..84bc96911c9 100644 --- a/compiler/testData/ir/irText/declarations/fakeOverrides.fir.ir.txt +++ b/compiler/testData/ir/irText/declarations/fakeOverrides.fir.ir.txt @@ -6,7 +6,7 @@ FILE fqName: fileName:/fakeOverrides.kt VALUE_PARAMETER name:x index:0 type:kotlin.String 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -25,7 +25,7 @@ FILE fqName: fileName:/fakeOverrides.kt $this: VALUE_PARAMETER name: type:.IBar 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -41,7 +41,7 @@ FILE fqName: fileName:/fakeOverrides.kt TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false CONSTRUCTOR visibility:public <> () returnType:.CFoo.CFoo> [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:CFoo modality:ABSTRACT visibility:public superTypes:[kotlin.Any]' FUN name:foo visibility:public modality:FINAL <> ($this:.CFoo.CFoo>, x:T of .CFoo) returnType:kotlin.Unit $this: VALUE_PARAMETER name: type:.CFoo.CFoo> @@ -49,7 +49,7 @@ FILE fqName: fileName:/fakeOverrides.kt 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -64,12 +64,12 @@ FILE fqName: fileName:/fakeOverrides.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Test1 CONSTRUCTOR visibility:public <> () returnType:.Test1 [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .CFoo' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .CFoo' : kotlin.String INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test1 modality:FINAL visibility:public superTypes:[.CFoo; .IFooStr; .IBar]' PROPERTY name:bar visibility:public modality:OPEN [val] overridden: - public abstract bar: kotlin.Int [val] + public abstract bar: kotlin.Int FIELD PROPERTY_BACKING_FIELD name:bar type:kotlin.Int visibility:private [final] EXPRESSION_BODY CONST Int type=kotlin.Int value=42 @@ -90,20 +90,20 @@ FILE fqName: fileName:/fakeOverrides.kt VALUE_PARAMETER name:x index:0 type:kotlin.String 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 .CFoo - public open fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .IFooStr - public open fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .IBar + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .CFoo + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IFooStr + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IBar $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 .CFoo - public open fun hashCode (): kotlin.Int [fake_override] declared in .IFooStr - public open fun hashCode (): kotlin.Int [fake_override] declared in .IBar + public open fun hashCode (): kotlin.Int declared in .CFoo + public open fun hashCode (): kotlin.Int declared in .IFooStr + public open fun hashCode (): kotlin.Int declared in .IBar $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 .CFoo - public open fun toString (): kotlin.String [fake_override] declared in .IFooStr - public open fun toString (): kotlin.String [fake_override] declared in .IBar + public open fun toString (): kotlin.String declared in .CFoo + public open fun toString (): kotlin.String declared in .IFooStr + public open fun toString (): kotlin.String declared in .IBar $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/declarations/fakeOverrides.ir.txt b/compiler/testData/ir/irText/declarations/fakeOverrides.ir.txt index 9b4701ad48b..8028988f24b 100644 --- a/compiler/testData/ir/irText/declarations/fakeOverrides.ir.txt +++ b/compiler/testData/ir/irText/declarations/fakeOverrides.ir.txt @@ -6,7 +6,7 @@ FILE fqName: fileName:/fakeOverrides.kt VALUE_PARAMETER name:x index:0 type:kotlin.String 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -25,7 +25,7 @@ FILE fqName: fileName:/fakeOverrides.kt $this: VALUE_PARAMETER name: type:.IBar 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -41,7 +41,7 @@ FILE fqName: fileName:/fakeOverrides.kt TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false CONSTRUCTOR visibility:public <> () returnType:.CFoo.CFoo> [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:CFoo modality:ABSTRACT visibility:public superTypes:[kotlin.Any]' FUN name:foo visibility:public modality:FINAL <> ($this:.CFoo.CFoo>, x:T of .CFoo) returnType:kotlin.Unit $this: VALUE_PARAMETER name: type:.CFoo.CFoo> @@ -49,7 +49,7 @@ FILE fqName: fileName:/fakeOverrides.kt 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -64,12 +64,12 @@ FILE fqName: fileName:/fakeOverrides.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Test1 CONSTRUCTOR visibility:public <> () returnType:.Test1 [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .CFoo' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .CFoo' : kotlin.String INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test1 modality:FINAL visibility:public superTypes:[.CFoo; .IFooStr; .IBar]' PROPERTY name:bar visibility:public modality:OPEN [val] overridden: - public abstract bar: kotlin.Int [val] + public abstract bar: kotlin.Int FIELD PROPERTY_BACKING_FIELD name:bar type:kotlin.Int visibility:private [final] EXPRESSION_BODY CONST Int type=kotlin.Int value=42 @@ -90,20 +90,20 @@ FILE fqName: fileName:/fakeOverrides.kt VALUE_PARAMETER name:x index:0 type:kotlin.String 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 .CFoo - public open fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .IFooStr - public open fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .IBar + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .CFoo + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IFooStr + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IBar $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 .CFoo - public open fun hashCode (): kotlin.Int [fake_override] declared in .IFooStr - public open fun hashCode (): kotlin.Int [fake_override] declared in .IBar + public open fun hashCode (): kotlin.Int declared in .CFoo + public open fun hashCode (): kotlin.Int declared in .IFooStr + public open fun hashCode (): kotlin.Int declared in .IBar $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 .CFoo - public open fun toString (): kotlin.String [fake_override] declared in .IFooStr - public open fun toString (): kotlin.String [fake_override] declared in .IBar + public open fun toString (): kotlin.String declared in .CFoo + public open fun toString (): kotlin.String declared in .IFooStr + public open fun toString (): kotlin.String declared in .IBar $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/declarations/genericDelegatedProperty.fir.ir.txt b/compiler/testData/ir/irText/declarations/genericDelegatedProperty.fir.ir.txt index 4a05f6bb903..f37becfdd4e 100644 --- a/compiler/testData/ir/irText/declarations/genericDelegatedProperty.fir.ir.txt +++ b/compiler/testData/ir/irText/declarations/genericDelegatedProperty.fir.ir.txt @@ -4,11 +4,11 @@ FILE fqName: fileName:/genericDelegatedProperty.kt TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false CONSTRUCTOR visibility:public <> () returnType:.C.C> [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -23,14 +23,14 @@ FILE fqName: fileName:/genericDelegatedProperty.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Delegate CONSTRUCTOR visibility:private <> () returnType:.Delegate [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:Delegate modality:FINAL visibility:public superTypes:[kotlin.Any]' FUN name:getValue visibility:public modality:FINAL <> ($this:.Delegate, thisRef:kotlin.Any?, kProp:kotlin.Any?) returnType:kotlin.Int [operator] $this: VALUE_PARAMETER name: type:.Delegate VALUE_PARAMETER name:thisRef index:0 type:kotlin.Any? VALUE_PARAMETER name:kProp index:1 type:kotlin.Any? BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun getValue (thisRef: kotlin.Any?, kProp: kotlin.Any?): kotlin.Int [operator] declared in .Delegate' + RETURN type=kotlin.Nothing from='public final fun getValue (thisRef: kotlin.Any?, kProp: kotlin.Any?): kotlin.Int declared in .Delegate' CONST Int type=kotlin.Int value=42 FUN name:setValue visibility:public modality:FINAL <> ($this:.Delegate, thisRef:kotlin.Any?, kProp:kotlin.Any?, newValue:kotlin.Int) returnType:kotlin.Unit [operator] $this: VALUE_PARAMETER name: type:.Delegate @@ -40,7 +40,7 @@ FILE fqName: fileName:/genericDelegatedProperty.kt 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -61,10 +61,10 @@ FILE fqName: fileName:/genericDelegatedProperty.kt $receiver: VALUE_PARAMETER name: type:.C.> BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun (): kotlin.Int declared in ' - CALL 'public final fun getValue (thisRef: kotlin.Any?, kProp: kotlin.Any?): kotlin.Int [operator] declared in .Delegate' type=kotlin.Int origin=null + CALL 'public final fun getValue (thisRef: kotlin.Any?, kProp: kotlin.Any?): kotlin.Int declared in .Delegate' type=kotlin.Int origin=null $this: GET_FIELD 'FIELD PROPERTY_DELEGATE name:genericDelegatedProperty$delegate type:.Delegate visibility:private [final,static]' type=.Delegate origin=null thisRef: GET_VAR ': .C.> declared in .' type=.C.> origin=null - kProp: PROPERTY_REFERENCE 'public final genericDelegatedProperty: kotlin.Int [delegated,var]' field=null getter='public final fun (): kotlin.Int declared in ' setter='public final fun (: kotlin.Int): kotlin.Unit declared in ' type=kotlin.reflect.KMutableProperty1<.C.>, kotlin.Int> origin=PROPERTY_REFERENCE_FOR_DELEGATE + kProp: PROPERTY_REFERENCE 'public final genericDelegatedProperty: kotlin.Int' field=null getter='public final fun (): kotlin.Int declared in ' setter='public final fun (: kotlin.Int): kotlin.Unit declared in ' type=kotlin.reflect.KMutableProperty1<.C.>, kotlin.Int> origin=PROPERTY_REFERENCE_FOR_DELEGATE <1>: T of . FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:public modality:FINAL ($receiver:.C.>, :kotlin.Int) returnType:kotlin.Unit correspondingProperty: PROPERTY name:genericDelegatedProperty visibility:public modality:FINAL [delegated,var] @@ -72,9 +72,9 @@ FILE fqName: fileName:/genericDelegatedProperty.kt $receiver: VALUE_PARAMETER name: type:.C.> VALUE_PARAMETER name: index:0 type:kotlin.Int BLOCK_BODY - CALL 'public final fun setValue (thisRef: kotlin.Any?, kProp: kotlin.Any?, newValue: kotlin.Int): kotlin.Unit [operator] declared in .Delegate' type=kotlin.Unit origin=null + CALL 'public final fun setValue (thisRef: kotlin.Any?, kProp: kotlin.Any?, newValue: kotlin.Int): kotlin.Unit declared in .Delegate' type=kotlin.Unit origin=null $this: GET_FIELD 'FIELD PROPERTY_DELEGATE name:genericDelegatedProperty$delegate type:.Delegate visibility:private [final,static]' type=.Delegate origin=null thisRef: GET_VAR ': .C.> declared in .' type=.C.> origin=null - kProp: PROPERTY_REFERENCE 'public final genericDelegatedProperty: kotlin.Int [delegated,var]' field=null getter='public final fun (): kotlin.Int declared in ' setter='public final fun (: kotlin.Int): kotlin.Unit declared in ' type=kotlin.reflect.KMutableProperty1<.C.>, kotlin.Int> origin=PROPERTY_REFERENCE_FOR_DELEGATE + kProp: PROPERTY_REFERENCE 'public final genericDelegatedProperty: kotlin.Int' field=null getter='public final fun (): kotlin.Int declared in ' setter='public final fun (: kotlin.Int): kotlin.Unit declared in ' type=kotlin.reflect.KMutableProperty1<.C.>, kotlin.Int> origin=PROPERTY_REFERENCE_FOR_DELEGATE <1>: T of . newValue: GET_VAR ': kotlin.Int declared in .' type=kotlin.Int origin=null diff --git a/compiler/testData/ir/irText/declarations/genericDelegatedProperty.ir.txt b/compiler/testData/ir/irText/declarations/genericDelegatedProperty.ir.txt index 7a401e6a71b..6c6b5c8ea4d 100644 --- a/compiler/testData/ir/irText/declarations/genericDelegatedProperty.ir.txt +++ b/compiler/testData/ir/irText/declarations/genericDelegatedProperty.ir.txt @@ -4,11 +4,11 @@ FILE fqName: fileName:/genericDelegatedProperty.kt TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false CONSTRUCTOR visibility:public <> () returnType:.C.C> [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -23,14 +23,14 @@ FILE fqName: fileName:/genericDelegatedProperty.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Delegate CONSTRUCTOR visibility:private <> () returnType:.Delegate [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:Delegate modality:FINAL visibility:public superTypes:[kotlin.Any]' FUN name:getValue visibility:public modality:FINAL <> ($this:.Delegate, thisRef:kotlin.Any?, kProp:kotlin.Any?) returnType:kotlin.Int [operator] $this: VALUE_PARAMETER name: type:.Delegate VALUE_PARAMETER name:thisRef index:0 type:kotlin.Any? VALUE_PARAMETER name:kProp index:1 type:kotlin.Any? BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun getValue (thisRef: kotlin.Any?, kProp: kotlin.Any?): kotlin.Int [operator] declared in .Delegate' + RETURN type=kotlin.Nothing from='public final fun getValue (thisRef: kotlin.Any?, kProp: kotlin.Any?): kotlin.Int declared in .Delegate' CONST Int type=kotlin.Int value=42 FUN name:setValue visibility:public modality:FINAL <> ($this:.Delegate, thisRef:kotlin.Any?, kProp:kotlin.Any?, newValue:kotlin.Int) returnType:kotlin.Unit [operator] $this: VALUE_PARAMETER name: type:.Delegate @@ -40,7 +40,7 @@ FILE fqName: fileName:/genericDelegatedProperty.kt 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -61,10 +61,10 @@ FILE fqName: fileName:/genericDelegatedProperty.kt $receiver: VALUE_PARAMETER name: type:.C.> BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun (): kotlin.Int declared in ' - CALL 'public final fun getValue (thisRef: kotlin.Any?, kProp: kotlin.Any?): kotlin.Int [operator] declared in .Delegate' type=kotlin.Int origin=null + CALL 'public final fun getValue (thisRef: kotlin.Any?, kProp: kotlin.Any?): kotlin.Int declared in .Delegate' type=kotlin.Int origin=null $this: GET_FIELD 'FIELD PROPERTY_DELEGATE name:genericDelegatedProperty$delegate type:.Delegate visibility:private [final,static]' type=.Delegate origin=null thisRef: GET_VAR ': .C.> declared in .' type=.C.> origin=null - kProp: PROPERTY_REFERENCE 'public final genericDelegatedProperty: kotlin.Int [delegated,var]' field=null getter='public final fun (): kotlin.Int declared in ' setter='public final fun (: kotlin.Int): kotlin.Unit declared in ' type=kotlin.reflect.KMutableProperty1<.C.>, kotlin.Int> origin=PROPERTY_REFERENCE_FOR_DELEGATE + kProp: PROPERTY_REFERENCE 'public final genericDelegatedProperty: kotlin.Int' field=null getter='public final fun (): kotlin.Int declared in ' setter='public final fun (: kotlin.Int): kotlin.Unit declared in ' type=kotlin.reflect.KMutableProperty1<.C.>, kotlin.Int> origin=PROPERTY_REFERENCE_FOR_DELEGATE <1>: T of . FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:public modality:FINAL ($receiver:.C.>, :kotlin.Int) returnType:kotlin.Unit correspondingProperty: PROPERTY name:genericDelegatedProperty visibility:public modality:FINAL [delegated,var] @@ -73,9 +73,9 @@ FILE fqName: fileName:/genericDelegatedProperty.kt VALUE_PARAMETER name: index:0 type:kotlin.Int BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun (: kotlin.Int): kotlin.Unit declared in ' - CALL 'public final fun setValue (thisRef: kotlin.Any?, kProp: kotlin.Any?, newValue: kotlin.Int): kotlin.Unit [operator] declared in .Delegate' type=kotlin.Unit origin=null + CALL 'public final fun setValue (thisRef: kotlin.Any?, kProp: kotlin.Any?, newValue: kotlin.Int): kotlin.Unit declared in .Delegate' type=kotlin.Unit origin=null $this: GET_FIELD 'FIELD PROPERTY_DELEGATE name:genericDelegatedProperty$delegate type:.Delegate visibility:private [final,static]' type=.Delegate origin=null thisRef: GET_VAR ': .C.> declared in .' type=.C.> origin=null - kProp: PROPERTY_REFERENCE 'public final genericDelegatedProperty: kotlin.Int [delegated,var]' field=null getter='public final fun (): kotlin.Int declared in ' setter='public final fun (: kotlin.Int): kotlin.Unit declared in ' type=kotlin.reflect.KMutableProperty1<.C.>, kotlin.Int> origin=PROPERTY_REFERENCE_FOR_DELEGATE + kProp: PROPERTY_REFERENCE 'public final genericDelegatedProperty: kotlin.Int' field=null getter='public final fun (): kotlin.Int declared in ' setter='public final fun (: kotlin.Int): kotlin.Unit declared in ' type=kotlin.reflect.KMutableProperty1<.C.>, kotlin.Int> origin=PROPERTY_REFERENCE_FOR_DELEGATE <1>: T of . newValue: GET_VAR ': kotlin.Int declared in .' type=kotlin.Int origin=null diff --git a/compiler/testData/ir/irText/declarations/inlineCollectionOfInlineClass.fir.ir.txt b/compiler/testData/ir/irText/declarations/inlineCollectionOfInlineClass.fir.ir.txt index 76c1a8d1252..b4e82a0e4b7 100644 --- a/compiler/testData/ir/irText/declarations/inlineCollectionOfInlineClass.fir.ir.txt +++ b/compiler/testData/ir/irText/declarations/inlineCollectionOfInlineClass.fir.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/inlineCollectionOfInlineClass.kt CONSTRUCTOR visibility:public <> (x:kotlin.Int) returnType:.IT [primary] VALUE_PARAMETER name:x index:0 type:kotlin.Int BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:IT modality:FINAL visibility:public [value] superTypes:[kotlin.Any]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private [final] @@ -19,7 +19,7 @@ FILE fqName: fileName:/inlineCollectionOfInlineClass.kt receiver: GET_VAR ': .IT declared in .IT.' type=.IT origin=null FUN GENERATED_SINGLE_FIELD_VALUE_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:.IT, other:kotlin.Any?) returnType:kotlin.Boolean [operator] overridden: - public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any $this: VALUE_PARAMETER name: type:.IT VALUE_PARAMETER name:other index:0 type:kotlin.Any? BLOCK_BODY @@ -27,22 +27,22 @@ FILE fqName: fileName:/inlineCollectionOfInlineClass.kt BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=.IT GET_VAR 'other: kotlin.Any? declared in .IT.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .IT' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IT' CONST Boolean type=kotlin.Boolean value=false VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:.IT [val] TYPE_OP type=.IT origin=CAST typeOperand=.IT GET_VAR 'other: kotlin.Any? declared in .IT.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 + if: CALL 'public final fun not (): kotlin.Boolean 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:x type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null receiver: GET_VAR ': .IT declared in .IT.equals' type=.IT origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null - receiver: GET_VAR 'val tmp_0: .IT [val] declared in .IT.equals' type=.IT origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .IT' + receiver: GET_VAR 'val tmp_0: .IT declared in .IT.equals' type=.IT origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IT' CONST Boolean type=kotlin.Boolean value=false - RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .IT' + RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IT' CONST Boolean type=kotlin.Boolean value=true FUN GENERATED_SINGLE_FIELD_VALUE_CLASS_MEMBER name:hashCode visibility:public modality:OPEN <> ($this:.IT) returnType:kotlin.Int overridden: @@ -50,7 +50,7 @@ FILE fqName: fileName:/inlineCollectionOfInlineClass.kt $this: VALUE_PARAMETER name: type:.IT BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun hashCode (): kotlin.Int declared in .IT' - CALL 'public open fun hashCode (): kotlin.Int [fake_override] declared in kotlin.Int' type=kotlin.Int origin=null + CALL 'public open fun hashCode (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null receiver: GET_VAR ': .IT declared in .IT.hashCode' type=.IT origin=null FUN GENERATED_SINGLE_FIELD_VALUE_CLASS_MEMBER name:toString visibility:public modality:OPEN <> ($this:.IT) returnType:kotlin.String @@ -69,7 +69,7 @@ FILE fqName: fileName:/inlineCollectionOfInlineClass.kt CONSTRUCTOR visibility:public <> (ms:kotlin.collections.MutableSet<.IT>) returnType:.InlineMutableSet [primary] VALUE_PARAMETER name:ms index:0 type:kotlin.collections.MutableSet<.IT> BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:InlineMutableSet modality:FINAL visibility:public [value] superTypes:[kotlin.collections.MutableSet<.IT>]' PROPERTY name:ms visibility:private modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:ms type:kotlin.collections.MutableSet<.IT> visibility:private [final] @@ -84,46 +84,46 @@ FILE fqName: fileName:/inlineCollectionOfInlineClass.kt receiver: GET_VAR ': .InlineMutableSet declared in .InlineMutableSet.' type=.InlineMutableSet origin=null PROPERTY name:size visibility:public modality:OPEN [val] overridden: - public abstract size: kotlin.Int [fake_override,val] + public abstract size: kotlin.Int FUN name: visibility:public modality:OPEN <> ($this:.InlineMutableSet) returnType:kotlin.Int correspondingProperty: PROPERTY name:size visibility:public modality:OPEN [val] overridden: - public abstract fun (): kotlin.Int [fake_override] declared in kotlin.collections.MutableSet + public abstract fun (): kotlin.Int declared in kotlin.collections.MutableSet $this: VALUE_PARAMETER name: type:.InlineMutableSet BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun (): kotlin.Int declared in .InlineMutableSet' - CALL 'public abstract fun (): kotlin.Int [fake_override] declared in kotlin.collections.MutableSet' type=kotlin.Int origin=GET_PROPERTY + CALL 'public abstract fun (): kotlin.Int declared in kotlin.collections.MutableSet' type=kotlin.Int origin=GET_PROPERTY $this: CALL 'private final fun (): kotlin.collections.MutableSet<.IT> declared in .InlineMutableSet' type=kotlin.collections.MutableSet<.IT> origin=GET_PROPERTY $this: GET_VAR ': .InlineMutableSet declared in .InlineMutableSet.' type=.InlineMutableSet origin=null FUN name:contains visibility:public modality:OPEN <> ($this:.InlineMutableSet, element:.IT) returnType:kotlin.Boolean [operator] overridden: - public abstract fun contains (element: E of kotlin.collections.MutableSet): kotlin.Boolean [fake_override,operator] declared in kotlin.collections.MutableSet + public abstract fun contains (element: E of kotlin.collections.MutableSet): kotlin.Boolean declared in kotlin.collections.MutableSet $this: VALUE_PARAMETER name: type:.InlineMutableSet VALUE_PARAMETER name:element index:0 type:.IT BLOCK_BODY - RETURN type=kotlin.Nothing from='public open fun contains (element: .IT): kotlin.Boolean [operator] declared in .InlineMutableSet' - CALL 'public abstract fun contains (element: E of kotlin.collections.MutableSet): kotlin.Boolean [fake_override,operator] declared in kotlin.collections.MutableSet' type=kotlin.Boolean origin=null + RETURN type=kotlin.Nothing from='public open fun contains (element: .IT): kotlin.Boolean declared in .InlineMutableSet' + CALL 'public abstract fun contains (element: E of kotlin.collections.MutableSet): kotlin.Boolean declared in kotlin.collections.MutableSet' type=kotlin.Boolean origin=null $this: CALL 'private final fun (): kotlin.collections.MutableSet<.IT> declared in .InlineMutableSet' type=kotlin.collections.MutableSet<.IT> origin=GET_PROPERTY $this: GET_VAR ': .InlineMutableSet declared in .InlineMutableSet.contains' type=.InlineMutableSet origin=null element: GET_VAR 'element: .IT declared in .InlineMutableSet.contains' type=.IT origin=null FUN name:containsAll visibility:public modality:OPEN <> ($this:.InlineMutableSet, elements:kotlin.collections.Collection<.IT>) returnType:kotlin.Boolean overridden: - public abstract fun containsAll (elements: kotlin.collections.Collection): kotlin.Boolean [fake_override] declared in kotlin.collections.MutableSet + public abstract fun containsAll (elements: kotlin.collections.Collection): kotlin.Boolean declared in kotlin.collections.MutableSet $this: VALUE_PARAMETER name: type:.InlineMutableSet VALUE_PARAMETER name:elements index:0 type:kotlin.collections.Collection<.IT> BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun containsAll (elements: kotlin.collections.Collection<.IT>): kotlin.Boolean declared in .InlineMutableSet' - CALL 'public abstract fun containsAll (elements: kotlin.collections.Collection): kotlin.Boolean [fake_override] declared in kotlin.collections.MutableSet' type=kotlin.Boolean origin=null + CALL 'public abstract fun containsAll (elements: kotlin.collections.Collection): kotlin.Boolean declared in kotlin.collections.MutableSet' type=kotlin.Boolean origin=null $this: CALL 'private final fun (): kotlin.collections.MutableSet<.IT> declared in .InlineMutableSet' type=kotlin.collections.MutableSet<.IT> origin=GET_PROPERTY $this: GET_VAR ': .InlineMutableSet declared in .InlineMutableSet.containsAll' type=.InlineMutableSet origin=null elements: GET_VAR 'elements: kotlin.collections.Collection<.IT> declared in .InlineMutableSet.containsAll' type=kotlin.collections.Collection<.IT> origin=null FUN name:isEmpty visibility:public modality:OPEN <> ($this:.InlineMutableSet) returnType:kotlin.Boolean overridden: - public abstract fun isEmpty (): kotlin.Boolean [fake_override] declared in kotlin.collections.MutableSet + public abstract fun isEmpty (): kotlin.Boolean declared in kotlin.collections.MutableSet $this: VALUE_PARAMETER name: type:.InlineMutableSet BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun isEmpty (): kotlin.Boolean declared in .InlineMutableSet' - CALL 'public abstract fun isEmpty (): kotlin.Boolean [fake_override] declared in kotlin.collections.MutableSet' type=kotlin.Boolean origin=null + CALL 'public abstract fun isEmpty (): kotlin.Boolean declared in kotlin.collections.MutableSet' type=kotlin.Boolean origin=null $this: CALL 'private final fun (): kotlin.collections.MutableSet<.IT> declared in .InlineMutableSet' type=kotlin.collections.MutableSet<.IT> origin=GET_PROPERTY $this: GET_VAR ': .InlineMutableSet declared in .InlineMutableSet.isEmpty' type=.InlineMutableSet origin=null FUN name:add visibility:public modality:OPEN <> ($this:.InlineMutableSet, element:.IT) returnType:kotlin.Boolean @@ -158,11 +158,11 @@ FILE fqName: fileName:/inlineCollectionOfInlineClass.kt $this: GET_VAR ': .InlineMutableSet declared in .InlineMutableSet.clear' type=.InlineMutableSet origin=null FUN name:iterator visibility:public modality:OPEN <> ($this:.InlineMutableSet) returnType:kotlin.collections.MutableIterator<.IT> [operator] overridden: - public abstract fun iterator (): kotlin.collections.MutableIterator [operator] declared in kotlin.collections.MutableSet + public abstract fun iterator (): kotlin.collections.MutableIterator declared in kotlin.collections.MutableSet $this: VALUE_PARAMETER name: type:.InlineMutableSet BLOCK_BODY - RETURN type=kotlin.Nothing from='public open fun iterator (): kotlin.collections.MutableIterator<.IT> [operator] declared in .InlineMutableSet' - CALL 'public abstract fun iterator (): kotlin.collections.MutableIterator [operator] declared in kotlin.collections.MutableSet' type=kotlin.collections.MutableIterator<.IT> origin=null + RETURN type=kotlin.Nothing from='public open fun iterator (): kotlin.collections.MutableIterator<.IT> declared in .InlineMutableSet' + CALL 'public abstract fun iterator (): kotlin.collections.MutableIterator declared in kotlin.collections.MutableSet' type=kotlin.collections.MutableIterator<.IT> origin=null $this: CALL 'private final fun (): kotlin.collections.MutableSet<.IT> declared in .InlineMutableSet' type=kotlin.collections.MutableSet<.IT> origin=GET_PROPERTY $this: GET_VAR ': .InlineMutableSet declared in .InlineMutableSet.iterator' type=.InlineMutableSet origin=null FUN name:remove visibility:public modality:OPEN <> ($this:.InlineMutableSet, element:.IT) returnType:kotlin.Boolean @@ -200,7 +200,7 @@ FILE fqName: fileName:/inlineCollectionOfInlineClass.kt elements: GET_VAR 'elements: kotlin.collections.Collection<.IT> declared in .InlineMutableSet.retainAll' type=kotlin.collections.Collection<.IT> origin=null FUN GENERATED_SINGLE_FIELD_VALUE_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:.InlineMutableSet, other:kotlin.Any?) returnType:kotlin.Boolean [operator] overridden: - public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any $this: VALUE_PARAMETER name: type:.InlineMutableSet VALUE_PARAMETER name:other index:0 type:kotlin.Any? BLOCK_BODY @@ -208,22 +208,22 @@ FILE fqName: fileName:/inlineCollectionOfInlineClass.kt BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=.InlineMutableSet GET_VAR 'other: kotlin.Any? declared in .InlineMutableSet.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .InlineMutableSet' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .InlineMutableSet' CONST Boolean type=kotlin.Boolean value=false VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:.InlineMutableSet [val] TYPE_OP type=.InlineMutableSet origin=CAST typeOperand=.InlineMutableSet GET_VAR 'other: kotlin.Any? declared in .InlineMutableSet.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 + if: CALL 'public final fun not (): kotlin.Boolean 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:ms type:kotlin.collections.MutableSet<.IT> visibility:private [final]' type=kotlin.collections.MutableSet<.IT> origin=null receiver: GET_VAR ': .InlineMutableSet declared in .InlineMutableSet.equals' type=.InlineMutableSet origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:ms type:kotlin.collections.MutableSet<.IT> visibility:private [final]' type=kotlin.collections.MutableSet<.IT> origin=null - receiver: GET_VAR 'val tmp_1: .InlineMutableSet [val] declared in .InlineMutableSet.equals' type=.InlineMutableSet origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .InlineMutableSet' + receiver: GET_VAR 'val tmp_1: .InlineMutableSet declared in .InlineMutableSet.equals' type=.InlineMutableSet origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .InlineMutableSet' CONST Boolean type=kotlin.Boolean value=false - RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .InlineMutableSet' + RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .InlineMutableSet' CONST Boolean type=kotlin.Boolean value=true FUN GENERATED_SINGLE_FIELD_VALUE_CLASS_MEMBER name:hashCode visibility:public modality:OPEN <> ($this:.InlineMutableSet) returnType:kotlin.Int overridden: @@ -231,7 +231,7 @@ FILE fqName: fileName:/inlineCollectionOfInlineClass.kt $this: VALUE_PARAMETER name: type:.InlineMutableSet BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun hashCode (): kotlin.Int declared in .InlineMutableSet' - CALL 'public open fun hashCode (): kotlin.Int [fake_override] declared in kotlin.collections.MutableSet' type=kotlin.Int origin=null + CALL 'public open fun hashCode (): kotlin.Int declared in kotlin.collections.MutableSet' type=kotlin.Int origin=null $this: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:ms type:kotlin.collections.MutableSet<.IT> visibility:private [final]' type=kotlin.collections.MutableSet<.IT> origin=null receiver: GET_VAR ': .InlineMutableSet declared in .InlineMutableSet.hashCode' type=.InlineMutableSet origin=null FUN GENERATED_SINGLE_FIELD_VALUE_CLASS_MEMBER name:toString visibility:public modality:OPEN <> ($this:.InlineMutableSet) returnType:kotlin.String diff --git a/compiler/testData/ir/irText/declarations/inlineCollectionOfInlineClass.ir.txt b/compiler/testData/ir/irText/declarations/inlineCollectionOfInlineClass.ir.txt index 8c38a93312c..e50b3453337 100644 --- a/compiler/testData/ir/irText/declarations/inlineCollectionOfInlineClass.ir.txt +++ b/compiler/testData/ir/irText/declarations/inlineCollectionOfInlineClass.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/inlineCollectionOfInlineClass.kt CONSTRUCTOR visibility:public <> (x:kotlin.Int) returnType:.IT [primary] VALUE_PARAMETER name:x index:0 type:kotlin.Int BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:IT modality:FINAL visibility:public [value] superTypes:[kotlin.Any]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private [final] @@ -35,12 +35,12 @@ FILE fqName: fileName:/inlineCollectionOfInlineClass.kt $this: VALUE_PARAMETER name: type:.IT BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun hashCode (): kotlin.Int declared in .IT' - CALL 'public open fun hashCode (): kotlin.Int [fake_override] declared in kotlin.Int' type=kotlin.Int origin=null + CALL 'public open fun hashCode (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null receiver: GET_VAR ': .IT declared in .IT.hashCode' type=.IT origin=null FUN GENERATED_SINGLE_FIELD_VALUE_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:.IT, other:kotlin.Any?) returnType:kotlin.Boolean [operator] overridden: - public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any $this: VALUE_PARAMETER name: type:.IT VALUE_PARAMETER name:other index:0 type:kotlin.Any? BLOCK_BODY @@ -48,29 +48,29 @@ FILE fqName: fileName:/inlineCollectionOfInlineClass.kt BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=.IT GET_VAR 'other: kotlin.Any? declared in .IT.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .IT' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IT' CONST Boolean type=kotlin.Boolean value=false VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:.IT [val] TYPE_OP type=.IT origin=CAST typeOperand=.IT GET_VAR 'other: kotlin.Any? declared in .IT.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 + if: CALL 'public final fun not (): kotlin.Boolean 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:x type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null receiver: GET_VAR ': .IT declared in .IT.equals' type=.IT origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null - receiver: GET_VAR 'val tmp_0: .IT [val] declared in .IT.equals' type=.IT origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .IT' + receiver: GET_VAR 'val tmp_0: .IT declared in .IT.equals' type=.IT origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IT' CONST Boolean type=kotlin.Boolean value=false - RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .IT' + RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IT' CONST Boolean type=kotlin.Boolean value=true CLASS CLASS name:InlineMutableSet modality:FINAL visibility:public [value] superTypes:[kotlin.collections.MutableSet<.IT>] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.InlineMutableSet CONSTRUCTOR visibility:public <> (ms:kotlin.collections.MutableSet<.IT>) returnType:.InlineMutableSet [primary] VALUE_PARAMETER name:ms index:0 type:kotlin.collections.MutableSet<.IT> BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:InlineMutableSet modality:FINAL visibility:public [value] superTypes:[kotlin.collections.MutableSet<.IT>]' PROPERTY name:ms visibility:private modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:ms type:kotlin.collections.MutableSet<.IT> visibility:private [final] @@ -85,46 +85,46 @@ FILE fqName: fileName:/inlineCollectionOfInlineClass.kt receiver: GET_VAR ': .InlineMutableSet declared in .InlineMutableSet.' type=.InlineMutableSet origin=null PROPERTY name:size visibility:public modality:OPEN [val] overridden: - public abstract size: kotlin.Int [fake_override,val] + public abstract size: kotlin.Int FUN name: visibility:public modality:OPEN <> ($this:.InlineMutableSet) returnType:kotlin.Int correspondingProperty: PROPERTY name:size visibility:public modality:OPEN [val] overridden: - public abstract fun (): kotlin.Int [fake_override] declared in kotlin.collections.MutableSet + public abstract fun (): kotlin.Int declared in kotlin.collections.MutableSet $this: VALUE_PARAMETER name: type:.InlineMutableSet BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun (): kotlin.Int declared in .InlineMutableSet' - CALL 'public abstract fun (): kotlin.Int [fake_override] declared in kotlin.collections.MutableSet' type=kotlin.Int origin=GET_PROPERTY + CALL 'public abstract fun (): kotlin.Int declared in kotlin.collections.MutableSet' type=kotlin.Int origin=GET_PROPERTY $this: CALL 'private final fun (): kotlin.collections.MutableSet<.IT> declared in .InlineMutableSet' type=kotlin.collections.MutableSet<.IT> origin=GET_PROPERTY $this: GET_VAR ': .InlineMutableSet declared in .InlineMutableSet.' type=.InlineMutableSet origin=null FUN name:contains visibility:public modality:OPEN <> ($this:.InlineMutableSet, element:.IT) returnType:kotlin.Boolean [operator] overridden: - public abstract fun contains (element: E of kotlin.collections.MutableSet): kotlin.Boolean [fake_override,operator] declared in kotlin.collections.MutableSet + public abstract fun contains (element: E of kotlin.collections.MutableSet): kotlin.Boolean declared in kotlin.collections.MutableSet $this: VALUE_PARAMETER name: type:.InlineMutableSet VALUE_PARAMETER name:element index:0 type:.IT BLOCK_BODY - RETURN type=kotlin.Nothing from='public open fun contains (element: .IT): kotlin.Boolean [operator] declared in .InlineMutableSet' - CALL 'public abstract fun contains (element: E of kotlin.collections.MutableSet): kotlin.Boolean [fake_override,operator] declared in kotlin.collections.MutableSet' type=kotlin.Boolean origin=null + RETURN type=kotlin.Nothing from='public open fun contains (element: .IT): kotlin.Boolean declared in .InlineMutableSet' + CALL 'public abstract fun contains (element: E of kotlin.collections.MutableSet): kotlin.Boolean declared in kotlin.collections.MutableSet' type=kotlin.Boolean origin=null $this: CALL 'private final fun (): kotlin.collections.MutableSet<.IT> declared in .InlineMutableSet' type=kotlin.collections.MutableSet<.IT> origin=GET_PROPERTY $this: GET_VAR ': .InlineMutableSet declared in .InlineMutableSet.contains' type=.InlineMutableSet origin=null element: GET_VAR 'element: .IT declared in .InlineMutableSet.contains' type=.IT origin=null FUN name:containsAll visibility:public modality:OPEN <> ($this:.InlineMutableSet, elements:kotlin.collections.Collection<.IT>) returnType:kotlin.Boolean overridden: - public abstract fun containsAll (elements: kotlin.collections.Collection): kotlin.Boolean [fake_override] declared in kotlin.collections.MutableSet + public abstract fun containsAll (elements: kotlin.collections.Collection): kotlin.Boolean declared in kotlin.collections.MutableSet $this: VALUE_PARAMETER name: type:.InlineMutableSet VALUE_PARAMETER name:elements index:0 type:kotlin.collections.Collection<.IT> BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun containsAll (elements: kotlin.collections.Collection<.IT>): kotlin.Boolean declared in .InlineMutableSet' - CALL 'public abstract fun containsAll (elements: kotlin.collections.Collection): kotlin.Boolean [fake_override] declared in kotlin.collections.MutableSet' type=kotlin.Boolean origin=null + CALL 'public abstract fun containsAll (elements: kotlin.collections.Collection): kotlin.Boolean declared in kotlin.collections.MutableSet' type=kotlin.Boolean origin=null $this: CALL 'private final fun (): kotlin.collections.MutableSet<.IT> declared in .InlineMutableSet' type=kotlin.collections.MutableSet<.IT> origin=GET_PROPERTY $this: GET_VAR ': .InlineMutableSet declared in .InlineMutableSet.containsAll' type=.InlineMutableSet origin=null elements: GET_VAR 'elements: kotlin.collections.Collection<.IT> declared in .InlineMutableSet.containsAll' type=kotlin.collections.Collection<.IT> origin=null FUN name:isEmpty visibility:public modality:OPEN <> ($this:.InlineMutableSet) returnType:kotlin.Boolean overridden: - public abstract fun isEmpty (): kotlin.Boolean [fake_override] declared in kotlin.collections.MutableSet + public abstract fun isEmpty (): kotlin.Boolean declared in kotlin.collections.MutableSet $this: VALUE_PARAMETER name: type:.InlineMutableSet BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun isEmpty (): kotlin.Boolean declared in .InlineMutableSet' - CALL 'public abstract fun isEmpty (): kotlin.Boolean [fake_override] declared in kotlin.collections.MutableSet' type=kotlin.Boolean origin=null + CALL 'public abstract fun isEmpty (): kotlin.Boolean declared in kotlin.collections.MutableSet' type=kotlin.Boolean origin=null $this: CALL 'private final fun (): kotlin.collections.MutableSet<.IT> declared in .InlineMutableSet' type=kotlin.collections.MutableSet<.IT> origin=GET_PROPERTY $this: GET_VAR ': .InlineMutableSet declared in .InlineMutableSet.isEmpty' type=.InlineMutableSet origin=null FUN name:add visibility:public modality:OPEN <> ($this:.InlineMutableSet, element:.IT) returnType:kotlin.Boolean @@ -159,11 +159,11 @@ FILE fqName: fileName:/inlineCollectionOfInlineClass.kt $this: GET_VAR ': .InlineMutableSet declared in .InlineMutableSet.clear' type=.InlineMutableSet origin=null FUN name:iterator visibility:public modality:OPEN <> ($this:.InlineMutableSet) returnType:kotlin.collections.MutableIterator<.IT> [operator] overridden: - public abstract fun iterator (): kotlin.collections.MutableIterator [operator] declared in kotlin.collections.MutableSet + public abstract fun iterator (): kotlin.collections.MutableIterator declared in kotlin.collections.MutableSet $this: VALUE_PARAMETER name: type:.InlineMutableSet BLOCK_BODY - RETURN type=kotlin.Nothing from='public open fun iterator (): kotlin.collections.MutableIterator<.IT> [operator] declared in .InlineMutableSet' - CALL 'public abstract fun iterator (): kotlin.collections.MutableIterator [operator] declared in kotlin.collections.MutableSet' type=kotlin.collections.MutableIterator<.IT> origin=null + RETURN type=kotlin.Nothing from='public open fun iterator (): kotlin.collections.MutableIterator<.IT> declared in .InlineMutableSet' + CALL 'public abstract fun iterator (): kotlin.collections.MutableIterator declared in kotlin.collections.MutableSet' type=kotlin.collections.MutableIterator<.IT> origin=null $this: CALL 'private final fun (): kotlin.collections.MutableSet<.IT> declared in .InlineMutableSet' type=kotlin.collections.MutableSet<.IT> origin=GET_PROPERTY $this: GET_VAR ': .InlineMutableSet declared in .InlineMutableSet.iterator' type=.InlineMutableSet origin=null FUN name:remove visibility:public modality:OPEN <> ($this:.InlineMutableSet, element:.IT) returnType:kotlin.Boolean @@ -201,7 +201,7 @@ FILE fqName: fileName:/inlineCollectionOfInlineClass.kt elements: GET_VAR 'elements: kotlin.collections.Collection<.IT> declared in .InlineMutableSet.retainAll' type=kotlin.collections.Collection<.IT> origin=null FUN GENERATED_SINGLE_FIELD_VALUE_CLASS_MEMBER name:toString visibility:public modality:OPEN <> ($this:.InlineMutableSet) returnType:kotlin.String overridden: - public open fun toString (): kotlin.String [fake_override] declared in kotlin.collections.MutableSet + public open fun toString (): kotlin.String declared in kotlin.collections.MutableSet $this: VALUE_PARAMETER name: type:.InlineMutableSet BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun toString (): kotlin.String declared in .InlineMutableSet' @@ -213,16 +213,16 @@ FILE fqName: fileName:/inlineCollectionOfInlineClass.kt CONST String type=kotlin.String value=")" FUN GENERATED_SINGLE_FIELD_VALUE_CLASS_MEMBER name:hashCode visibility:public modality:OPEN <> ($this:.InlineMutableSet) returnType:kotlin.Int overridden: - public open fun hashCode (): kotlin.Int [fake_override] declared in kotlin.collections.MutableSet + public open fun hashCode (): kotlin.Int declared in kotlin.collections.MutableSet $this: VALUE_PARAMETER name: type:.InlineMutableSet BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun hashCode (): kotlin.Int declared in .InlineMutableSet' - CALL 'public open fun hashCode (): kotlin.Int [fake_override] declared in kotlin.collections.MutableSet' type=kotlin.Int origin=null + CALL 'public open fun hashCode (): kotlin.Int declared in kotlin.collections.MutableSet' type=kotlin.Int origin=null $this: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:ms type:kotlin.collections.MutableSet<.IT> visibility:private [final]' type=kotlin.collections.MutableSet<.IT> origin=null receiver: GET_VAR ': .InlineMutableSet declared in .InlineMutableSet.hashCode' type=.InlineMutableSet origin=null FUN GENERATED_SINGLE_FIELD_VALUE_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:.InlineMutableSet, other:kotlin.Any?) returnType:kotlin.Boolean [operator] overridden: - public open fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in kotlin.collections.MutableSet + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.collections.MutableSet $this: VALUE_PARAMETER name: type:.InlineMutableSet VALUE_PARAMETER name:other index:0 type:kotlin.Any? BLOCK_BODY @@ -230,20 +230,20 @@ FILE fqName: fileName:/inlineCollectionOfInlineClass.kt BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=.InlineMutableSet GET_VAR 'other: kotlin.Any? declared in .InlineMutableSet.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .InlineMutableSet' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .InlineMutableSet' CONST Boolean type=kotlin.Boolean value=false VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:.InlineMutableSet [val] TYPE_OP type=.InlineMutableSet origin=CAST typeOperand=.InlineMutableSet GET_VAR 'other: kotlin.Any? declared in .InlineMutableSet.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 + if: CALL 'public final fun not (): kotlin.Boolean 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:ms type:kotlin.collections.MutableSet<.IT> visibility:private [final]' type=kotlin.collections.MutableSet<.IT> origin=null receiver: GET_VAR ': .InlineMutableSet declared in .InlineMutableSet.equals' type=.InlineMutableSet origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:ms type:kotlin.collections.MutableSet<.IT> visibility:private [final]' type=kotlin.collections.MutableSet<.IT> origin=null - receiver: GET_VAR 'val tmp_1: .InlineMutableSet [val] declared in .InlineMutableSet.equals' type=.InlineMutableSet origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .InlineMutableSet' + receiver: GET_VAR 'val tmp_1: .InlineMutableSet declared in .InlineMutableSet.equals' type=.InlineMutableSet origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .InlineMutableSet' CONST Boolean type=kotlin.Boolean value=false - RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .InlineMutableSet' + RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .InlineMutableSet' CONST Boolean type=kotlin.Boolean value=true diff --git a/compiler/testData/ir/irText/declarations/inlineCollectionOfInlineClass.kt b/compiler/testData/ir/irText/declarations/inlineCollectionOfInlineClass.kt index 04c808afe5b..cea1ea376af 100644 --- a/compiler/testData/ir/irText/declarations/inlineCollectionOfInlineClass.kt +++ b/compiler/testData/ir/irText/declarations/inlineCollectionOfInlineClass.kt @@ -1,6 +1,3 @@ -// IGNORE_BACKEND: JS_IR -// IGNORE_BACKEND: JS_IR_ES6 - inline class IT(val x: Int) inline class InlineMutableSet(private val ms: MutableSet) : MutableSet { diff --git a/compiler/testData/ir/irText/declarations/interfaceProperties.ir.txt b/compiler/testData/ir/irText/declarations/interfaceProperties.ir.txt index ccf1f9c93c0..198d36f0945 100644 --- a/compiler/testData/ir/irText/declarations/interfaceProperties.ir.txt +++ b/compiler/testData/ir/irText/declarations/interfaceProperties.ir.txt @@ -34,7 +34,7 @@ FILE fqName: fileName:/interfaceProperties.kt 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/declarations/jvmRecord/dataClassWithJvmRecord.fir.ir.txt b/compiler/testData/ir/irText/declarations/jvmRecord/dataClassWithJvmRecord.fir.ir.txt index e4c4cbb46fe..88f8699dc9c 100644 --- a/compiler/testData/ir/irText/declarations/jvmRecord/dataClassWithJvmRecord.fir.ir.txt +++ b/compiler/testData/ir/irText/declarations/jvmRecord/dataClassWithJvmRecord.fir.ir.txt @@ -22,7 +22,7 @@ FILE fqName: fileName:/dataClassWithJvmRecord.kt FUN GENERATED_DATA_CLASS_MEMBER name:component1 visibility:public modality:FINAL <> ($this:.MyRec) returnType:kotlin.String [operator] $this: VALUE_PARAMETER name: type:.MyRec BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.String [operator] declared in .MyRec' + RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.String declared in .MyRec' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:name type:kotlin.String visibility:private [final]' type=kotlin.String origin=null receiver: GET_VAR ': .MyRec declared in .MyRec.component1' type=.MyRec origin=null FUN GENERATED_DATA_CLASS_MEMBER name:copy visibility:public modality:FINAL <> ($this:.MyRec, name:kotlin.String) returnType:.MyRec @@ -33,11 +33,11 @@ FILE fqName: fileName:/dataClassWithJvmRecord.kt receiver: GET_VAR ': .MyRec declared in .MyRec.copy' type=.MyRec origin=null BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun copy (name: kotlin.String): .MyRec declared in .MyRec' - CONSTRUCTOR_CALL 'public constructor (name: kotlin.String) [primary] declared in .MyRec' type=.MyRec origin=null + CONSTRUCTOR_CALL 'public constructor (name: kotlin.String) declared in .MyRec' type=.MyRec origin=null name: GET_VAR 'name: kotlin.String declared in .MyRec.copy' type=kotlin.String origin=null FUN GENERATED_DATA_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:.MyRec, other:kotlin.Any?) returnType:kotlin.Boolean [operator] overridden: - public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any $this: VALUE_PARAMETER name: type:.MyRec VALUE_PARAMETER name:other index:0 type:kotlin.Any? BLOCK_BODY @@ -46,28 +46,28 @@ FILE fqName: fileName:/dataClassWithJvmRecord.kt 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 ': .MyRec declared in .MyRec.equals' type=.MyRec origin=null arg1: GET_VAR 'other: kotlin.Any? declared in .MyRec.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .MyRec' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .MyRec' CONST Boolean type=kotlin.Boolean value=true WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=.MyRec GET_VAR 'other: kotlin.Any? declared in .MyRec.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .MyRec' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .MyRec' CONST Boolean type=kotlin.Boolean value=false VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:.MyRec [val] TYPE_OP type=.MyRec origin=CAST typeOperand=.MyRec GET_VAR 'other: kotlin.Any? declared in .MyRec.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 + if: CALL 'public final fun not (): kotlin.Boolean 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:name type:kotlin.String visibility:private [final]' type=kotlin.String origin=null receiver: GET_VAR ': .MyRec declared in .MyRec.equals' type=.MyRec origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:name type:kotlin.String visibility:private [final]' type=kotlin.String origin=null - receiver: GET_VAR 'val tmp_0: .MyRec [val] declared in .MyRec.equals' type=.MyRec origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .MyRec' + receiver: GET_VAR 'val tmp_0: .MyRec declared in .MyRec.equals' type=.MyRec origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .MyRec' CONST Boolean type=kotlin.Boolean value=false - RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .MyRec' + RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .MyRec' CONST Boolean type=kotlin.Boolean value=true FUN GENERATED_DATA_CLASS_MEMBER name:hashCode visibility:public modality:OPEN <> ($this:.MyRec) returnType:kotlin.Int overridden: @@ -75,7 +75,7 @@ FILE fqName: fileName:/dataClassWithJvmRecord.kt $this: VALUE_PARAMETER name: type:.MyRec BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun hashCode (): kotlin.Int declared in .MyRec' - CALL 'public open fun hashCode (): kotlin.Int [fake_override] declared in kotlin.String' type=kotlin.Int origin=null + CALL 'public open fun hashCode (): kotlin.Int declared in kotlin.String' type=kotlin.Int origin=null $this: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:name type:kotlin.String visibility:private [final]' type=kotlin.String origin=null receiver: GET_VAR ': .MyRec declared in .MyRec.hashCode' type=.MyRec origin=null FUN GENERATED_DATA_CLASS_MEMBER name:toString visibility:public modality:OPEN <> ($this:.MyRec) returnType:kotlin.String diff --git a/compiler/testData/ir/irText/declarations/jvmRecord/dataClassWithJvmRecord.ir.txt b/compiler/testData/ir/irText/declarations/jvmRecord/dataClassWithJvmRecord.ir.txt index c735be307d2..218ee18dc96 100644 --- a/compiler/testData/ir/irText/declarations/jvmRecord/dataClassWithJvmRecord.ir.txt +++ b/compiler/testData/ir/irText/declarations/jvmRecord/dataClassWithJvmRecord.ir.txt @@ -22,7 +22,7 @@ FILE fqName: fileName:/dataClassWithJvmRecord.kt FUN GENERATED_DATA_CLASS_MEMBER name:component1 visibility:public modality:FINAL <> ($this:.MyRec) returnType:kotlin.String [operator] $this: VALUE_PARAMETER name: type:.MyRec BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.String [operator] declared in .MyRec' + RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.String declared in .MyRec' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:name type:kotlin.String visibility:private [final]' type=kotlin.String origin=null receiver: GET_VAR ': .MyRec declared in .MyRec.component1' type=.MyRec origin=null FUN GENERATED_DATA_CLASS_MEMBER name:copy visibility:public modality:FINAL <> ($this:.MyRec, name:kotlin.String) returnType:.MyRec @@ -33,7 +33,7 @@ FILE fqName: fileName:/dataClassWithJvmRecord.kt receiver: GET_VAR ': .MyRec declared in .MyRec.copy' type=.MyRec origin=null BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun copy (name: kotlin.String): .MyRec declared in .MyRec' - CONSTRUCTOR_CALL 'public constructor (name: kotlin.String) [primary] declared in .MyRec' type=.MyRec origin=null + CONSTRUCTOR_CALL 'public constructor (name: kotlin.String) declared in .MyRec' type=.MyRec origin=null name: GET_VAR 'name: kotlin.String declared in .MyRec.copy' type=kotlin.String origin=null FUN GENERATED_DATA_CLASS_MEMBER name:toString visibility:public modality:OPEN <> ($this:.MyRec) returnType:kotlin.String overridden: @@ -53,12 +53,12 @@ FILE fqName: fileName:/dataClassWithJvmRecord.kt $this: VALUE_PARAMETER name: type:.MyRec BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun hashCode (): kotlin.Int declared in .MyRec' - CALL 'public open fun hashCode (): kotlin.Int [fake_override] declared in kotlin.String' type=kotlin.Int origin=null + CALL 'public open fun hashCode (): kotlin.Int declared in kotlin.String' type=kotlin.Int origin=null $this: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:name type:kotlin.String visibility:private [final]' type=kotlin.String origin=null receiver: GET_VAR ': .MyRec declared in .MyRec.hashCode' type=.MyRec origin=null FUN GENERATED_DATA_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:.MyRec, other:kotlin.Any?) returnType:kotlin.Boolean [operator] overridden: - public abstract fun equals (other: @[EnhancedNullability] kotlin.Any?): kotlin.Boolean [operator] declared in java.lang.Record + public abstract fun equals (other: @[EnhancedNullability] kotlin.Any?): kotlin.Boolean declared in java.lang.Record $this: VALUE_PARAMETER name: type:.MyRec VALUE_PARAMETER name:other index:0 type:kotlin.Any? BLOCK_BODY @@ -67,28 +67,28 @@ FILE fqName: fileName:/dataClassWithJvmRecord.kt 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 ': .MyRec declared in .MyRec.equals' type=.MyRec origin=null arg1: GET_VAR 'other: kotlin.Any? declared in .MyRec.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .MyRec' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .MyRec' CONST Boolean type=kotlin.Boolean value=true WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=.MyRec GET_VAR 'other: kotlin.Any? declared in .MyRec.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .MyRec' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .MyRec' CONST Boolean type=kotlin.Boolean value=false VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:.MyRec [val] TYPE_OP type=.MyRec origin=CAST typeOperand=.MyRec GET_VAR 'other: kotlin.Any? declared in .MyRec.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 + if: CALL 'public final fun not (): kotlin.Boolean 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:name type:kotlin.String visibility:private [final]' type=kotlin.String origin=null receiver: GET_VAR ': .MyRec declared in .MyRec.equals' type=.MyRec origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:name type:kotlin.String visibility:private [final]' type=kotlin.String origin=null - receiver: GET_VAR 'val tmp_0: .MyRec [val] declared in .MyRec.equals' type=.MyRec origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .MyRec' + receiver: GET_VAR 'val tmp_0: .MyRec declared in .MyRec.equals' type=.MyRec origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .MyRec' CONST Boolean type=kotlin.Boolean value=false - RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .MyRec' + RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .MyRec' CONST Boolean type=kotlin.Boolean value=true FUN name:test visibility:public modality:FINAL <> (rec:.MyRec) returnType:kotlin.Unit VALUE_PARAMETER name:rec index:0 type:.MyRec diff --git a/compiler/testData/ir/irText/declarations/kt27005.ir.txt b/compiler/testData/ir/irText/declarations/kt27005.ir.txt index 313addd1a6b..9f66763ff05 100644 --- a/compiler/testData/ir/irText/declarations/kt27005.ir.txt +++ b/compiler/testData/ir/irText/declarations/kt27005.ir.txt @@ -1,15 +1,15 @@ FILE fqName: fileName:/kt27005.kt FUN name:foo visibility:public modality:FINAL <> () returnType:kotlin.Unit [suspend] BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun foo (): kotlin.Unit [suspend] declared in ' - CALL 'public final fun baz (): T of .baz [suspend] declared in ' type=kotlin.Unit origin=null + RETURN type=kotlin.Nothing from='public final fun foo (): kotlin.Unit declared in ' + CALL 'public final fun baz (): T of .baz declared in ' type=kotlin.Unit origin=null : kotlin.Unit FUN name:bar visibility:public modality:FINAL <> () returnType:kotlin.Any [suspend] BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun bar (): kotlin.Any [suspend] declared in ' - CALL 'public final fun baz (): T of .baz [suspend] declared in ' type=kotlin.Any origin=null + RETURN type=kotlin.Nothing from='public final fun bar (): kotlin.Any declared in ' + CALL 'public final fun baz (): T of .baz declared in ' type=kotlin.Any origin=null : kotlin.Any FUN name:baz visibility:public modality:FINAL () returnType:T of .baz [suspend] TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false BLOCK_BODY - CALL 'public final fun TODO (): kotlin.Nothing [inline] declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin.StandardKt' type=kotlin.Nothing origin=null diff --git a/compiler/testData/ir/irText/declarations/kt29833.fir.ir.txt b/compiler/testData/ir/irText/declarations/kt29833.fir.ir.txt index b25fe902829..587ea1f3dfb 100644 --- a/compiler/testData/ir/irText/declarations/kt29833.fir.ir.txt +++ b/compiler/testData/ir/irText/declarations/kt29833.fir.ir.txt @@ -3,7 +3,7 @@ FILE fqName:interop fileName:/Definitions.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:interop.Definitions CONSTRUCTOR visibility:private <> () returnType:interop.Definitions [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:Definitions modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:KT_CONSTANT visibility:public modality:FINAL [const,val] FIELD PROPERTY_BACKING_FIELD name:KT_CONSTANT type:kotlin.String visibility:public [final] @@ -29,7 +29,7 @@ FILE fqName:interop fileName:/Definitions.kt receiver: GET_VAR ': interop.Definitions declared in interop.Definitions.' type=interop.Definitions 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/declarations/kt29833.ir.txt b/compiler/testData/ir/irText/declarations/kt29833.ir.txt index 924e3ca4c34..455bf87faa0 100644 --- a/compiler/testData/ir/irText/declarations/kt29833.ir.txt +++ b/compiler/testData/ir/irText/declarations/kt29833.ir.txt @@ -3,7 +3,7 @@ FILE fqName:interop fileName:/Definitions.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:interop.Definitions CONSTRUCTOR visibility:private <> () returnType:interop.Definitions [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:Definitions modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:KT_CONSTANT visibility:public modality:FINAL [const,val] FIELD PROPERTY_BACKING_FIELD name:KT_CONSTANT type:kotlin.String visibility:public [final] @@ -29,7 +29,7 @@ FILE fqName:interop fileName:/Definitions.kt receiver: GET_VAR ': interop.Definitions declared in interop.Definitions.' type=interop.Definitions 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/declarations/kt35550.fir.ir.txt b/compiler/testData/ir/irText/declarations/kt35550.fir.ir.txt index 05f1be1ca08..3058197511c 100644 --- a/compiler/testData/ir/irText/declarations/kt35550.fir.ir.txt +++ b/compiler/testData/ir/irText/declarations/kt35550.fir.ir.txt @@ -12,7 +12,7 @@ FILE fqName: fileName:/kt35550.kt GET_VAR ': T of .I. declared in .I.' type=T of .I. 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -28,11 +28,11 @@ FILE fqName: fileName:/kt35550.kt CONSTRUCTOR visibility:public <> (i:.I) returnType:.A [primary] VALUE_PARAMETER name:i index:0 type:.I BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:A modality:FINAL visibility:public superTypes:[.I]' PROPERTY DELEGATED_MEMBER name:id visibility:public modality:OPEN [val] overridden: - public open id: T of .I. [val] + public open id: T of .I. FUN DELEGATED_MEMBER name: visibility:public modality:OPEN ($this:.A, $receiver:T of .A.) returnType:T of .A. correspondingProperty: PROPERTY DELEGATED_MEMBER name:id visibility:public modality:OPEN [val] overridden: @@ -52,14 +52,14 @@ FILE fqName: fileName:/kt35550.kt GET_VAR 'i: .I declared in .A.' type=.I 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 [fake_override,operator] declared in .I + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .I $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 .I + public open fun hashCode (): kotlin.Int declared in .I $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 .I + public open fun toString (): kotlin.String declared in .I $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/declarations/kt35550.ir.txt b/compiler/testData/ir/irText/declarations/kt35550.ir.txt index bd860860ec0..47dfcf77943 100644 --- a/compiler/testData/ir/irText/declarations/kt35550.ir.txt +++ b/compiler/testData/ir/irText/declarations/kt35550.ir.txt @@ -12,7 +12,7 @@ FILE fqName: fileName:/kt35550.kt GET_VAR ': T of .I. declared in .I.' type=T of .I. 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -28,14 +28,14 @@ FILE fqName: fileName:/kt35550.kt CONSTRUCTOR visibility:public <> (i:.I) returnType:.A [primary] VALUE_PARAMETER name:i index:0 type:.I BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:A modality:FINAL visibility:public superTypes:[.I]' FIELD DELEGATE name:$$delegate_0 type:.I visibility:private [final] EXPRESSION_BODY GET_VAR 'i: .I declared in .A.' type=.I origin=null PROPERTY DELEGATED_MEMBER name:id visibility:public modality:OPEN [val] overridden: - public open id: T of .I. [val] + public open id: T of .I. FUN DELEGATED_MEMBER name: visibility:public modality:OPEN ($this:.A, $receiver:T of .A.) returnType:T of .A. correspondingProperty: PROPERTY DELEGATED_MEMBER name:id visibility:public modality:OPEN [val] overridden: @@ -52,14 +52,14 @@ FILE fqName: fileName:/kt35550.kt $receiver: GET_VAR ': T of .A. declared in .A.' type=T of .A. 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 [fake_override,operator] declared in .I + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .I $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 .I + public open fun hashCode (): kotlin.Int declared in .I $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 .I + public open fun toString (): kotlin.String declared in .I $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/declarations/kt45308.fir.ir.txt b/compiler/testData/ir/irText/declarations/kt45308.fir.ir.txt index 22f46f1e169..13c2975cf08 100644 --- a/compiler/testData/ir/irText/declarations/kt45308.fir.ir.txt +++ b/compiler/testData/ir/irText/declarations/kt45308.fir.ir.txt @@ -7,7 +7,7 @@ FILE fqName:b fileName:/b.kt VALUE_PARAMETER name:f index:0 type:kotlin.Function0 BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun foo (f: kotlin.Function0): kotlin.String declared in b' - CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=kotlin.String origin=INVOKE + CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=kotlin.String origin=INVOKE $this: GET_VAR 'f: kotlin.Function0 declared in b.foo' type=kotlin.Function0 origin=VARIABLE_AS_FUNCTION Module: c FILE fqName: fileName:/c.kt diff --git a/compiler/testData/ir/irText/declarations/kt45308.ir.txt b/compiler/testData/ir/irText/declarations/kt45308.ir.txt index a42895e40f1..bbf5f585f16 100644 --- a/compiler/testData/ir/irText/declarations/kt45308.ir.txt +++ b/compiler/testData/ir/irText/declarations/kt45308.ir.txt @@ -7,7 +7,7 @@ FILE fqName:b fileName:/b.kt VALUE_PARAMETER name:f index:0 type:kotlin.Function0 BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun foo (f: kotlin.Function0): kotlin.String{ a.A } declared in b' - CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=kotlin.String{ a.A } origin=INVOKE + CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=kotlin.String{ a.A } origin=INVOKE $this: GET_VAR 'f: kotlin.Function0 declared in b.foo' type=kotlin.Function0 origin=VARIABLE_AS_FUNCTION Module: c FILE fqName: fileName:/c.kt diff --git a/compiler/testData/ir/irText/declarations/kt47527.fir.ir.txt b/compiler/testData/ir/irText/declarations/kt47527.fir.ir.txt index 697ddeff7c2..ca77f63870d 100644 --- a/compiler/testData/ir/irText/declarations/kt47527.fir.ir.txt +++ b/compiler/testData/ir/irText/declarations/kt47527.fir.ir.txt @@ -9,15 +9,15 @@ FILE fqName: fileName:/kt47527.kt WHEN type=kotlin.Nothing? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_0: kotlin.Any? [val] declared in .test_1' type=kotlin.Any? origin=null + arg0: GET_VAR 'val tmp_0: kotlin.Any? declared in .test_1' type=kotlin.Any? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: CALL 'public final fun let (block: kotlin.Function1): R of kotlin.StandardKt.let [inline] declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + then: CALL 'public final fun let (block: kotlin.Function1): R of kotlin.StandardKt.let declared in kotlin.StandardKt' type=kotlin.Nothing origin=null : kotlin.Any : kotlin.Nothing - $receiver: GET_VAR 'val tmp_0: kotlin.Any? [val] declared in .test_1' type=kotlin.Any? origin=null + $receiver: GET_VAR 'val tmp_0: kotlin.Any? declared in .test_1' type=kotlin.Any? origin=null block: FUN_EXPR type=kotlin.Function1 origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> (it:kotlin.Any) returnType:kotlin.Nothing VALUE_PARAMETER name:it index:0 type:kotlin.Any @@ -28,7 +28,7 @@ FILE fqName: fileName:/kt47527.kt VALUE_PARAMETER name:value index:0 type:kotlin.Any? BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test_2 (value: kotlin.Any?): kotlin.String? declared in ' - CALL 'public final fun run (block: kotlin.Function0): R of kotlin.StandardKt.run [inline] declared in kotlin.StandardKt' type=kotlin.String? origin=null + CALL 'public final fun run (block: kotlin.Function0): R of kotlin.StandardKt.run declared in kotlin.StandardKt' type=kotlin.String? origin=null : kotlin.String? block: FUN_EXPR type=kotlin.Function0 origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:kotlin.String? @@ -40,15 +40,15 @@ FILE fqName: fileName:/kt47527.kt WHEN type=kotlin.Nothing? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_1: kotlin.Any? [val] declared in .test_2.' type=kotlin.Any? origin=null + arg0: GET_VAR 'val tmp_1: kotlin.Any? declared in .test_2.' type=kotlin.Any? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: CALL 'public final fun let (block: kotlin.Function1): R of kotlin.StandardKt.let [inline] declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + then: CALL 'public final fun let (block: kotlin.Function1): R of kotlin.StandardKt.let declared in kotlin.StandardKt' type=kotlin.Nothing origin=null : kotlin.Any : kotlin.Nothing - $receiver: GET_VAR 'val tmp_1: kotlin.Any? [val] declared in .test_2.' type=kotlin.Any? origin=null + $receiver: GET_VAR 'val tmp_1: kotlin.Any? declared in .test_2.' type=kotlin.Any? origin=null block: FUN_EXPR type=kotlin.Function1 origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> (it:kotlin.Any) returnType:kotlin.Nothing VALUE_PARAMETER name:it index:0 type:kotlin.Any @@ -59,9 +59,9 @@ FILE fqName: fileName:/kt47527.kt BLOCK_BODY VAR name:result type:kotlin.String [var] CONST String type=kotlin.String value="" - SET_VAR 'var result: kotlin.String [var] declared in .box' type=kotlin.Unit origin=EQ - CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=null - $this: GET_VAR 'var result: kotlin.String [var] declared in .box' type=kotlin.String origin=null + SET_VAR 'var result: kotlin.String declared in .box' type=kotlin.Unit origin=EQ + CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=null + $this: GET_VAR 'var result: kotlin.String declared in .box' type=kotlin.String origin=null other: BLOCK type=kotlin.String origin=ELVIS VAR IR_TEMPORARY_VARIABLE name:tmp_2 type:kotlin.String? [val] CALL 'public final fun test_1 (value: kotlin.Any?): kotlin.String? declared in ' type=kotlin.String? origin=null @@ -69,16 +69,16 @@ FILE fqName: fileName:/kt47527.kt WHEN type=kotlin.String origin=ELVIS BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_2: kotlin.String? [val] declared in .box' type=kotlin.String? origin=null + arg0: GET_VAR 'val tmp_2: kotlin.String? declared in .box' type=kotlin.String? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' CONST String type=kotlin.String value="fail 1" BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val tmp_2: kotlin.String? [val] declared in .box' type=kotlin.String? origin=null - SET_VAR 'var result: kotlin.String [var] declared in .box' type=kotlin.Unit origin=EQ - CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=null - $this: GET_VAR 'var result: kotlin.String [var] declared in .box' type=kotlin.String origin=null + then: GET_VAR 'val tmp_2: kotlin.String? declared in .box' type=kotlin.String? origin=null + SET_VAR 'var result: kotlin.String declared in .box' type=kotlin.Unit origin=EQ + CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=null + $this: GET_VAR 'var result: kotlin.String declared in .box' type=kotlin.String origin=null other: BLOCK type=kotlin.String origin=ELVIS VAR IR_TEMPORARY_VARIABLE name:tmp_3 type:kotlin.String? [val] CALL 'public final fun test_2 (value: kotlin.Any?): kotlin.String? declared in ' type=kotlin.String? origin=null @@ -86,12 +86,12 @@ FILE fqName: fileName:/kt47527.kt WHEN type=kotlin.String origin=ELVIS BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_3: kotlin.String? [val] declared in .box' type=kotlin.String? origin=null + arg0: GET_VAR 'val tmp_3: kotlin.String? declared in .box' type=kotlin.String? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' CONST String type=kotlin.String value="fail 2" BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val tmp_3: kotlin.String? [val] declared in .box' type=kotlin.String? origin=null + then: GET_VAR 'val tmp_3: kotlin.String? declared in .box' type=kotlin.String? origin=null RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' - GET_VAR 'var result: kotlin.String [var] declared in .box' type=kotlin.String origin=null + GET_VAR 'var result: kotlin.String declared in .box' type=kotlin.String origin=null diff --git a/compiler/testData/ir/irText/declarations/kt47527.ir.txt b/compiler/testData/ir/irText/declarations/kt47527.ir.txt index 380b5e8108d..7d9834da62a 100644 --- a/compiler/testData/ir/irText/declarations/kt47527.ir.txt +++ b/compiler/testData/ir/irText/declarations/kt47527.ir.txt @@ -9,15 +9,15 @@ FILE fqName: fileName:/kt47527.kt WHEN type=kotlin.Nothing? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_0: kotlin.Any? [val] declared in .test_1' type=kotlin.Any? origin=null + arg0: GET_VAR 'val tmp_0: kotlin.Any? declared in .test_1' type=kotlin.Any? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: CALL 'public final fun let (block: kotlin.Function1): R of kotlin.StandardKt.let [inline] declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + then: CALL 'public final fun let (block: kotlin.Function1): R of kotlin.StandardKt.let declared in kotlin.StandardKt' type=kotlin.Nothing origin=null : kotlin.Any : kotlin.Nothing - $receiver: GET_VAR 'val tmp_0: kotlin.Any? [val] declared in .test_1' type=kotlin.Any? origin=null + $receiver: GET_VAR 'val tmp_0: kotlin.Any? declared in .test_1' type=kotlin.Any? origin=null block: FUN_EXPR type=kotlin.Function1 origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> (it:kotlin.Any) returnType:kotlin.Nothing VALUE_PARAMETER name:it index:0 type:kotlin.Any @@ -28,7 +28,7 @@ FILE fqName: fileName:/kt47527.kt VALUE_PARAMETER name:value index:0 type:kotlin.Any? BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test_2 (value: kotlin.Any?): kotlin.String? declared in ' - CALL 'public final fun run (block: kotlin.Function0): R of kotlin.StandardKt.run [inline] declared in kotlin.StandardKt' type=kotlin.Nothing? origin=null + CALL 'public final fun run (block: kotlin.Function0): R of kotlin.StandardKt.run declared in kotlin.StandardKt' type=kotlin.Nothing? origin=null : kotlin.Nothing? block: FUN_EXPR type=kotlin.Function0 origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:kotlin.Nothing? @@ -40,15 +40,15 @@ FILE fqName: fileName:/kt47527.kt WHEN type=kotlin.Nothing? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_1: kotlin.Any? [val] declared in .test_2.' type=kotlin.Any? origin=null + arg0: GET_VAR 'val tmp_1: kotlin.Any? declared in .test_2.' type=kotlin.Any? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: CALL 'public final fun let (block: kotlin.Function1): R of kotlin.StandardKt.let [inline] declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + then: CALL 'public final fun let (block: kotlin.Function1): R of kotlin.StandardKt.let declared in kotlin.StandardKt' type=kotlin.Nothing origin=null : kotlin.Any : kotlin.Nothing - $receiver: GET_VAR 'val tmp_1: kotlin.Any? [val] declared in .test_2.' type=kotlin.Any? origin=null + $receiver: GET_VAR 'val tmp_1: kotlin.Any? declared in .test_2.' type=kotlin.Any? origin=null block: FUN_EXPR type=kotlin.Function1 origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> (it:kotlin.Any) returnType:kotlin.Nothing VALUE_PARAMETER name:it index:0 type:kotlin.Any @@ -59,9 +59,9 @@ FILE fqName: fileName:/kt47527.kt BLOCK_BODY VAR name:result type:kotlin.String [var] CONST String type=kotlin.String value="" - SET_VAR 'var result: kotlin.String [var] declared in .box' type=kotlin.Unit origin=PLUSEQ - CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUSEQ - $this: GET_VAR 'var result: kotlin.String [var] declared in .box' type=kotlin.String origin=PLUSEQ + SET_VAR 'var result: kotlin.String declared in .box' type=kotlin.Unit origin=PLUSEQ + CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUSEQ + $this: GET_VAR 'var result: kotlin.String declared in .box' type=kotlin.String origin=PLUSEQ other: BLOCK type=kotlin.String origin=ELVIS VAR IR_TEMPORARY_VARIABLE name:tmp_2 type:kotlin.String? [val] CALL 'public final fun test_1 (value: kotlin.Any?): kotlin.String? declared in ' type=kotlin.String? origin=null @@ -69,16 +69,16 @@ FILE fqName: fileName:/kt47527.kt WHEN type=kotlin.String origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_2: kotlin.String? [val] declared in .box' type=kotlin.String? origin=null + arg0: GET_VAR 'val tmp_2: kotlin.String? declared in .box' type=kotlin.String? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' CONST String type=kotlin.String value="fail 1" BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val tmp_2: kotlin.String? [val] declared in .box' type=kotlin.String? origin=null - SET_VAR 'var result: kotlin.String [var] declared in .box' type=kotlin.Unit origin=PLUSEQ - CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUSEQ - $this: GET_VAR 'var result: kotlin.String [var] declared in .box' type=kotlin.String origin=PLUSEQ + then: GET_VAR 'val tmp_2: kotlin.String? declared in .box' type=kotlin.String? origin=null + SET_VAR 'var result: kotlin.String declared in .box' type=kotlin.Unit origin=PLUSEQ + CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUSEQ + $this: GET_VAR 'var result: kotlin.String declared in .box' type=kotlin.String origin=PLUSEQ other: BLOCK type=kotlin.String origin=ELVIS VAR IR_TEMPORARY_VARIABLE name:tmp_3 type:kotlin.String? [val] CALL 'public final fun test_2 (value: kotlin.Any?): kotlin.String? declared in ' type=kotlin.String? origin=null @@ -86,12 +86,12 @@ FILE fqName: fileName:/kt47527.kt WHEN type=kotlin.String origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_3: kotlin.String? [val] declared in .box' type=kotlin.String? origin=null + arg0: GET_VAR 'val tmp_3: kotlin.String? declared in .box' type=kotlin.String? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' CONST String type=kotlin.String value="fail 2" BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val tmp_3: kotlin.String? [val] declared in .box' type=kotlin.String? origin=null + then: GET_VAR 'val tmp_3: kotlin.String? declared in .box' type=kotlin.String? origin=null RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' - GET_VAR 'var result: kotlin.String [var] declared in .box' type=kotlin.String origin=null + GET_VAR 'var result: kotlin.String declared in .box' type=kotlin.String origin=null diff --git a/compiler/testData/ir/irText/declarations/kt52677.fir.ir.txt b/compiler/testData/ir/irText/declarations/kt52677.fir.ir.txt index 311cb909e28..ff9b33d83c6 100644 --- a/compiler/testData/ir/irText/declarations/kt52677.fir.ir.txt +++ b/compiler/testData/ir/irText/declarations/kt52677.fir.ir.txt @@ -7,7 +7,7 @@ FILE fqName: fileName:/kt52677.kt CONSTRUCTOR visibility:public <> (c:kotlin.reflect.KClass<*>) returnType:.MySerializable [primary] VALUE_PARAMETER name:c index:0 type:kotlin.reflect.KClass<*> BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:MySerializable modality:OPEN visibility:public superTypes:[kotlin.Annotation]' PROPERTY name:c visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:c type:kotlin.reflect.KClass<*> visibility:private [final] @@ -22,23 +22,23 @@ FILE fqName: fileName:/kt52677.kt receiver: GET_VAR ': .MySerializable declared in .MySerializable.' type=.MySerializable 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 [fake_override,operator] declared in kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:LoginSuccessPacket modality:FINAL visibility:public [data] superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.LoginSuccessPacket CONSTRUCTOR visibility:public <> (id:@[MySerializable(c = CLASS_REFERENCE 'CLASS OBJECT name:UuidSerializer modality:FINAL visibility:public superTypes:[.MySerializer<@[MySerializable(c = ...)] .Uuid1>]' type=kotlin.reflect.KClass<.UuidSerializer>)] .Uuid1) returnType:.LoginSuccessPacket [primary] VALUE_PARAMETER name:id index:0 type:@[MySerializable(c = CLASS_REFERENCE 'CLASS OBJECT name:UuidSerializer modality:FINAL visibility:public superTypes:[.MySerializer<@[MySerializable(c = ...)] .Uuid1>]' type=kotlin.reflect.KClass<.UuidSerializer>)] .Uuid1 BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:LoginSuccessPacket modality:FINAL visibility:public [data] superTypes:[kotlin.Any]' PROPERTY name:id visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:id type:@[MySerializable(c = CLASS_REFERENCE 'CLASS OBJECT name:UuidSerializer modality:FINAL visibility:public superTypes:[.MySerializer<@[MySerializable(c = ...)] .Uuid1>]' type=kotlin.reflect.KClass<.UuidSerializer>)] .Uuid1 visibility:private [final] @@ -54,7 +54,7 @@ FILE fqName: fileName:/kt52677.kt FUN GENERATED_DATA_CLASS_MEMBER name:component1 visibility:public modality:FINAL <> ($this:.LoginSuccessPacket) returnType:@[MySerializable(c = CLASS_REFERENCE 'CLASS OBJECT name:UuidSerializer modality:FINAL visibility:public superTypes:[.MySerializer<@[MySerializable(c = ...)] .Uuid1>]' type=kotlin.reflect.KClass<.UuidSerializer>)] .Uuid1 [operator] $this: VALUE_PARAMETER name: type:.LoginSuccessPacket BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component1 (): @[MySerializable(c = ...)] .Uuid1 [operator] declared in .LoginSuccessPacket' + RETURN type=kotlin.Nothing from='public final fun component1 (): @[MySerializable(c = ...)] .Uuid1 declared in .LoginSuccessPacket' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:id type:@[MySerializable(c = ...)] .Uuid1 visibility:private [final]' type=@[MySerializable(c = CLASS_REFERENCE 'CLASS OBJECT name:UuidSerializer modality:FINAL visibility:public superTypes:[.MySerializer<@[MySerializable(c = ...)] .Uuid1>]' type=kotlin.reflect.KClass<.UuidSerializer>)] .Uuid1 origin=null receiver: GET_VAR ': .LoginSuccessPacket declared in .LoginSuccessPacket.component1' type=.LoginSuccessPacket origin=null FUN GENERATED_DATA_CLASS_MEMBER name:copy visibility:public modality:FINAL <> ($this:.LoginSuccessPacket, id:@[MySerializable(c = CLASS_REFERENCE 'CLASS OBJECT name:UuidSerializer modality:FINAL visibility:public superTypes:[.MySerializer<@[MySerializable(c = ...)] .Uuid1>]' type=kotlin.reflect.KClass<.UuidSerializer>)] .Uuid1) returnType:.LoginSuccessPacket @@ -65,11 +65,11 @@ FILE fqName: fileName:/kt52677.kt receiver: GET_VAR ': .LoginSuccessPacket declared in .LoginSuccessPacket.copy' type=.LoginSuccessPacket origin=null BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun copy (id: @[MySerializable(c = ...)] .Uuid1): .LoginSuccessPacket declared in .LoginSuccessPacket' - CONSTRUCTOR_CALL 'public constructor (id: @[MySerializable(c = ...)] .Uuid1) [primary] declared in .LoginSuccessPacket' type=.LoginSuccessPacket origin=null + CONSTRUCTOR_CALL 'public constructor (id: @[MySerializable(c = ...)] .Uuid1) declared in .LoginSuccessPacket' type=.LoginSuccessPacket origin=null id: GET_VAR 'id: @[MySerializable(c = ...)] .Uuid1 declared in .LoginSuccessPacket.copy' type=@[MySerializable(c = CLASS_REFERENCE 'CLASS OBJECT name:UuidSerializer modality:FINAL visibility:public superTypes:[.MySerializer<@[MySerializable(c = ...)] .Uuid1>]' type=kotlin.reflect.KClass<.UuidSerializer>)] .Uuid1 origin=null FUN GENERATED_DATA_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:.LoginSuccessPacket, other:kotlin.Any?) returnType:kotlin.Boolean [operator] overridden: - public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any $this: VALUE_PARAMETER name: type:.LoginSuccessPacket VALUE_PARAMETER name:other index:0 type:kotlin.Any? BLOCK_BODY @@ -78,28 +78,28 @@ FILE fqName: fileName:/kt52677.kt 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 ': .LoginSuccessPacket declared in .LoginSuccessPacket.equals' type=.LoginSuccessPacket origin=null arg1: GET_VAR 'other: kotlin.Any? declared in .LoginSuccessPacket.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .LoginSuccessPacket' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .LoginSuccessPacket' CONST Boolean type=kotlin.Boolean value=true WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=.LoginSuccessPacket GET_VAR 'other: kotlin.Any? declared in .LoginSuccessPacket.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .LoginSuccessPacket' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .LoginSuccessPacket' CONST Boolean type=kotlin.Boolean value=false VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:.LoginSuccessPacket [val] TYPE_OP type=.LoginSuccessPacket origin=CAST typeOperand=.LoginSuccessPacket GET_VAR 'other: kotlin.Any? declared in .LoginSuccessPacket.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 + if: CALL 'public final fun not (): kotlin.Boolean 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:id type:@[MySerializable(c = ...)] .Uuid1 visibility:private [final]' type=@[MySerializable(c = CLASS_REFERENCE 'CLASS OBJECT name:UuidSerializer modality:FINAL visibility:public superTypes:[.MySerializer<@[MySerializable(c = ...)] .Uuid1>]' type=kotlin.reflect.KClass<.UuidSerializer>)] .Uuid1 origin=null receiver: GET_VAR ': .LoginSuccessPacket declared in .LoginSuccessPacket.equals' type=.LoginSuccessPacket origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:id type:@[MySerializable(c = ...)] .Uuid1 visibility:private [final]' type=@[MySerializable(c = CLASS_REFERENCE 'CLASS OBJECT name:UuidSerializer modality:FINAL visibility:public superTypes:[.MySerializer<@[MySerializable(c = ...)] .Uuid1>]' type=kotlin.reflect.KClass<.UuidSerializer>)] .Uuid1 origin=null - receiver: GET_VAR 'val tmp_0: .LoginSuccessPacket [val] declared in .LoginSuccessPacket.equals' type=.LoginSuccessPacket origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .LoginSuccessPacket' + receiver: GET_VAR 'val tmp_0: .LoginSuccessPacket declared in .LoginSuccessPacket.equals' type=.LoginSuccessPacket origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .LoginSuccessPacket' CONST Boolean type=kotlin.Boolean value=false - RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .LoginSuccessPacket' + RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .LoginSuccessPacket' CONST Boolean type=kotlin.Boolean value=true FUN GENERATED_DATA_CLASS_MEMBER name:hashCode visibility:public modality:OPEN <> ($this:.LoginSuccessPacket) returnType:kotlin.Int overridden: @@ -126,7 +126,7 @@ FILE fqName: fileName:/kt52677.kt TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -141,30 +141,30 @@ FILE fqName: fileName:/kt52677.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.UuidSerializer CONSTRUCTOR visibility:private <> () returnType:.UuidSerializer [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:UuidSerializer modality:FINAL visibility:public superTypes:[.MySerializer<@[MySerializable(c = ...)] .Uuid1>]' 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 .MySerializer + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .MySerializer $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 .MySerializer + public open fun hashCode (): kotlin.Int declared in .MySerializer $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 .MySerializer + public open fun toString (): kotlin.String declared in .MySerializer $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:Uuid1 modality:FINAL visibility:public superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Uuid1 CONSTRUCTOR visibility:public <> () returnType:.Uuid1 [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Uuid1 modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/declarations/kt52677.ir.txt b/compiler/testData/ir/irText/declarations/kt52677.ir.txt index 1cf0ca5e426..1183142a3ed 100644 --- a/compiler/testData/ir/irText/declarations/kt52677.ir.txt +++ b/compiler/testData/ir/irText/declarations/kt52677.ir.txt @@ -6,7 +6,7 @@ FILE fqName: fileName:/kt52677.kt CONSTRUCTOR visibility:public <> (c:kotlin.reflect.KClass<*>) returnType:.MySerializable [primary] VALUE_PARAMETER name:c index:0 type:kotlin.reflect.KClass<*> BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:MySerializable modality:OPEN visibility:public superTypes:[kotlin.Annotation]' PROPERTY name:c visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:c type:kotlin.reflect.KClass<*> visibility:private [final] @@ -21,23 +21,23 @@ FILE fqName: fileName:/kt52677.kt receiver: GET_VAR ': .MySerializable declared in .MySerializable.' type=.MySerializable 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 [fake_override,operator] declared in kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:LoginSuccessPacket modality:FINAL visibility:public [data] superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.LoginSuccessPacket CONSTRUCTOR visibility:public <> (id:@[MySerializable(c = CLASS_REFERENCE 'CLASS OBJECT name:UuidSerializer modality:FINAL visibility:public superTypes:[.MySerializer<@[MySerializable(c = ...)] .Uuid1{ .Uuid }>]' type=kotlin.reflect.KClass<.UuidSerializer>)] .Uuid1{ .Uuid }) returnType:.LoginSuccessPacket [primary] VALUE_PARAMETER name:id index:0 type:@[MySerializable(c = CLASS_REFERENCE 'CLASS OBJECT name:UuidSerializer modality:FINAL visibility:public superTypes:[.MySerializer<@[MySerializable(c = ...)] .Uuid1{ .Uuid }>]' type=kotlin.reflect.KClass<.UuidSerializer>)] .Uuid1{ .Uuid } BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:LoginSuccessPacket modality:FINAL visibility:public [data] superTypes:[kotlin.Any]' PROPERTY name:id visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:id type:@[MySerializable(c = CLASS_REFERENCE 'CLASS OBJECT name:UuidSerializer modality:FINAL visibility:public superTypes:[.MySerializer<@[MySerializable(c = ...)] .Uuid1{ .Uuid }>]' type=kotlin.reflect.KClass<.UuidSerializer>)] .Uuid1{ .Uuid } visibility:private [final] @@ -53,7 +53,7 @@ FILE fqName: fileName:/kt52677.kt FUN GENERATED_DATA_CLASS_MEMBER name:component1 visibility:public modality:FINAL <> ($this:.LoginSuccessPacket) returnType:@[MySerializable(c = CLASS_REFERENCE 'CLASS OBJECT name:UuidSerializer modality:FINAL visibility:public superTypes:[.MySerializer<@[MySerializable(c = ...)] .Uuid1{ .Uuid }>]' type=kotlin.reflect.KClass<.UuidSerializer>)] .Uuid1{ .Uuid } [operator] $this: VALUE_PARAMETER name: type:.LoginSuccessPacket BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component1 (): @[MySerializable(c = ...)] .Uuid1{ .Uuid } [operator] declared in .LoginSuccessPacket' + RETURN type=kotlin.Nothing from='public final fun component1 (): @[MySerializable(c = ...)] .Uuid1{ .Uuid } declared in .LoginSuccessPacket' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:id type:@[MySerializable(c = ...)] .Uuid1{ .Uuid } visibility:private [final]' type=@[MySerializable(c = CLASS_REFERENCE 'CLASS OBJECT name:UuidSerializer modality:FINAL visibility:public superTypes:[.MySerializer<@[MySerializable(c = ...)] .Uuid1{ .Uuid }>]' type=kotlin.reflect.KClass<.UuidSerializer>)] .Uuid1{ .Uuid } origin=null receiver: GET_VAR ': .LoginSuccessPacket declared in .LoginSuccessPacket.component1' type=.LoginSuccessPacket origin=null FUN GENERATED_DATA_CLASS_MEMBER name:copy visibility:public modality:FINAL <> ($this:.LoginSuccessPacket, id:@[MySerializable(c = CLASS_REFERENCE 'CLASS OBJECT name:UuidSerializer modality:FINAL visibility:public superTypes:[.MySerializer<@[MySerializable(c = ...)] .Uuid1{ .Uuid }>]' type=kotlin.reflect.KClass<.UuidSerializer>)] .Uuid1{ .Uuid }) returnType:.LoginSuccessPacket @@ -64,7 +64,7 @@ FILE fqName: fileName:/kt52677.kt receiver: GET_VAR ': .LoginSuccessPacket declared in .LoginSuccessPacket.copy' type=.LoginSuccessPacket origin=null BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun copy (id: @[MySerializable(c = ...)] .Uuid1{ .Uuid }): .LoginSuccessPacket declared in .LoginSuccessPacket' - CONSTRUCTOR_CALL 'public constructor (id: @[MySerializable(c = ...)] .Uuid1{ .Uuid }) [primary] declared in .LoginSuccessPacket' type=.LoginSuccessPacket origin=null + CONSTRUCTOR_CALL 'public constructor (id: @[MySerializable(c = ...)] .Uuid1{ .Uuid }) declared in .LoginSuccessPacket' type=.LoginSuccessPacket origin=null id: GET_VAR 'id: @[MySerializable(c = ...)] .Uuid1{ .Uuid } declared in .LoginSuccessPacket.copy' type=@[MySerializable(c = CLASS_REFERENCE 'CLASS OBJECT name:UuidSerializer modality:FINAL visibility:public superTypes:[.MySerializer<@[MySerializable(c = ...)] .Uuid1{ .Uuid }>]' type=kotlin.reflect.KClass<.UuidSerializer>)] .Uuid1{ .Uuid } origin=null FUN GENERATED_DATA_CLASS_MEMBER name:toString visibility:public modality:OPEN <> ($this:.LoginSuccessPacket) returnType:kotlin.String overridden: @@ -84,12 +84,12 @@ FILE fqName: fileName:/kt52677.kt $this: VALUE_PARAMETER name: type:.LoginSuccessPacket BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun hashCode (): kotlin.Int declared in .LoginSuccessPacket' - CALL 'public open fun hashCode (): kotlin.Int [fake_override] declared in .Uuid1' type=kotlin.Int origin=null + CALL 'public open fun hashCode (): kotlin.Int declared in .Uuid1' type=kotlin.Int origin=null $this: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:id type:@[MySerializable(c = ...)] .Uuid1{ .Uuid } visibility:private [final]' type=@[MySerializable(c = CLASS_REFERENCE 'CLASS OBJECT name:UuidSerializer modality:FINAL visibility:public superTypes:[.MySerializer<@[MySerializable(c = ...)] .Uuid1{ .Uuid }>]' type=kotlin.reflect.KClass<.UuidSerializer>)] .Uuid1{ .Uuid } origin=null receiver: GET_VAR ': .LoginSuccessPacket declared in .LoginSuccessPacket.hashCode' type=.LoginSuccessPacket origin=null FUN GENERATED_DATA_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:.LoginSuccessPacket, other:kotlin.Any?) returnType:kotlin.Boolean [operator] overridden: - public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any $this: VALUE_PARAMETER name: type:.LoginSuccessPacket VALUE_PARAMETER name:other index:0 type:kotlin.Any? BLOCK_BODY @@ -98,28 +98,28 @@ FILE fqName: fileName:/kt52677.kt 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 ': .LoginSuccessPacket declared in .LoginSuccessPacket.equals' type=.LoginSuccessPacket origin=null arg1: GET_VAR 'other: kotlin.Any? declared in .LoginSuccessPacket.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .LoginSuccessPacket' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .LoginSuccessPacket' CONST Boolean type=kotlin.Boolean value=true WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=.LoginSuccessPacket GET_VAR 'other: kotlin.Any? declared in .LoginSuccessPacket.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .LoginSuccessPacket' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .LoginSuccessPacket' CONST Boolean type=kotlin.Boolean value=false VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:.LoginSuccessPacket [val] TYPE_OP type=.LoginSuccessPacket origin=CAST typeOperand=.LoginSuccessPacket GET_VAR 'other: kotlin.Any? declared in .LoginSuccessPacket.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 + if: CALL 'public final fun not (): kotlin.Boolean 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:id type:@[MySerializable(c = ...)] .Uuid1{ .Uuid } visibility:private [final]' type=@[MySerializable(c = CLASS_REFERENCE 'CLASS OBJECT name:UuidSerializer modality:FINAL visibility:public superTypes:[.MySerializer<@[MySerializable(c = ...)] .Uuid1{ .Uuid }>]' type=kotlin.reflect.KClass<.UuidSerializer>)] .Uuid1{ .Uuid } origin=null receiver: GET_VAR ': .LoginSuccessPacket declared in .LoginSuccessPacket.equals' type=.LoginSuccessPacket origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:id type:@[MySerializable(c = ...)] .Uuid1{ .Uuid } visibility:private [final]' type=@[MySerializable(c = CLASS_REFERENCE 'CLASS OBJECT name:UuidSerializer modality:FINAL visibility:public superTypes:[.MySerializer<@[MySerializable(c = ...)] .Uuid1{ .Uuid }>]' type=kotlin.reflect.KClass<.UuidSerializer>)] .Uuid1{ .Uuid } origin=null - receiver: GET_VAR 'val tmp_0: .LoginSuccessPacket [val] declared in .LoginSuccessPacket.equals' type=.LoginSuccessPacket origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .LoginSuccessPacket' + receiver: GET_VAR 'val tmp_0: .LoginSuccessPacket declared in .LoginSuccessPacket.equals' type=.LoginSuccessPacket origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .LoginSuccessPacket' CONST Boolean type=kotlin.Boolean value=false - RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .LoginSuccessPacket' + RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .LoginSuccessPacket' CONST Boolean type=kotlin.Boolean value=true TYPEALIAS name:Uuid visibility:public expandedType:@[MySerializable(c = CLASS_REFERENCE 'CLASS OBJECT name:UuidSerializer modality:FINAL visibility:public superTypes:[.MySerializer<@[MySerializable(c = ...)] .Uuid1{ .Uuid }>]' type=kotlin.reflect.KClass<.UuidSerializer>)] .Uuid1 CLASS INTERFACE name:MySerializer modality:ABSTRACT visibility:public superTypes:[kotlin.Any] @@ -127,7 +127,7 @@ FILE fqName: fileName:/kt52677.kt TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -142,30 +142,30 @@ FILE fqName: fileName:/kt52677.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.UuidSerializer CONSTRUCTOR visibility:private <> () returnType:.UuidSerializer [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:UuidSerializer modality:FINAL visibility:public superTypes:[.MySerializer<@[MySerializable(c = ...)] .Uuid1{ .Uuid }>]' 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 .MySerializer + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .MySerializer $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 .MySerializer + public open fun hashCode (): kotlin.Int declared in .MySerializer $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 .MySerializer + public open fun toString (): kotlin.String declared in .MySerializer $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:Uuid1 modality:FINAL visibility:public superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Uuid1 CONSTRUCTOR visibility:public <> () returnType:.Uuid1 [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Uuid1 modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/declarations/localClassWithOverrides.ir.txt b/compiler/testData/ir/irText/declarations/localClassWithOverrides.ir.txt index 978a838eac1..356a311af71 100644 --- a/compiler/testData/ir/irText/declarations/localClassWithOverrides.ir.txt +++ b/compiler/testData/ir/irText/declarations/localClassWithOverrides.ir.txt @@ -5,7 +5,7 @@ FILE fqName: fileName:/localClassWithOverrides.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.outer.ALocal CONSTRUCTOR visibility:public <> () returnType:.outer.ALocal [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:ALocal modality:ABSTRACT visibility:local superTypes:[kotlin.Any]' FUN name:afun visibility:public modality:ABSTRACT <> ($this:.outer.ALocal) returnType:kotlin.Unit $this: VALUE_PARAMETER name: type:.outer.ALocal @@ -23,7 +23,7 @@ FILE fqName: fileName:/localClassWithOverrides.kt VALUE_PARAMETER name: index:0 type:kotlin.Int 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -38,7 +38,7 @@ FILE fqName: fileName:/localClassWithOverrides.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.outer.Local CONSTRUCTOR visibility:public <> () returnType:.outer.Local [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .outer.ALocal' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .outer.ALocal' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Local modality:FINAL visibility:local superTypes:[.outer.ALocal]' FUN name:afun visibility:public modality:OPEN <> ($this:.outer.Local) returnType:kotlin.Unit overridden: @@ -47,7 +47,7 @@ FILE fqName: fileName:/localClassWithOverrides.kt BLOCK_BODY PROPERTY name:aval visibility:public modality:OPEN [val] overridden: - public abstract aval: kotlin.Int [val] + public abstract aval: kotlin.Int FIELD PROPERTY_BACKING_FIELD name:aval type:kotlin.Int visibility:private [final] EXPRESSION_BODY CONST Int type=kotlin.Int value=1 @@ -62,7 +62,7 @@ FILE fqName: fileName:/localClassWithOverrides.kt receiver: GET_VAR ': .outer.Local declared in .outer.Local.' type=.outer.Local origin=null PROPERTY name:avar visibility:public modality:OPEN [var] overridden: - public abstract avar: kotlin.Int [var] + public abstract avar: kotlin.Int FIELD PROPERTY_BACKING_FIELD name:avar type:kotlin.Int visibility:private EXPRESSION_BODY CONST Int type=kotlin.Int value=2 @@ -87,14 +87,14 @@ FILE fqName: fileName:/localClassWithOverrides.kt value: GET_VAR ': kotlin.Int declared in .outer.Local.' type=kotlin.Int 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 [fake_override,operator] declared in .outer.ALocal + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .outer.ALocal $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 .outer.ALocal + public open fun hashCode (): kotlin.Int declared in .outer.ALocal $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 .outer.ALocal + public open fun toString (): kotlin.String declared in .outer.ALocal $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/declarations/localDelegatedProperties.fir.ir.txt b/compiler/testData/ir/irText/declarations/localDelegatedProperties.fir.ir.txt index 45443e9207e..b8da4ecd892 100644 --- a/compiler/testData/ir/irText/declarations/localDelegatedProperties.fir.ir.txt +++ b/compiler/testData/ir/irText/declarations/localDelegatedProperties.fir.ir.txt @@ -13,37 +13,37 @@ FILE fqName: fileName:/localDelegatedProperties.kt FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:local modality:FINAL <> () returnType:kotlin.Int BLOCK_BODY RETURN type=kotlin.Nothing from='local final fun (): kotlin.Int declared in .test1' - CALL 'public final fun getValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): T of kotlin.LazyKt.getValue [inline,operator] declared in kotlin.LazyKt' type=kotlin.Int origin=null + CALL 'public final fun getValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): T of kotlin.LazyKt.getValue declared in kotlin.LazyKt' type=kotlin.Int origin=null : kotlin.Int - $receiver: GET_VAR 'val x$delegate: kotlin.Lazy [val] declared in .test1' type=kotlin.Lazy origin=null + $receiver: GET_VAR 'val x$delegate: kotlin.Lazy declared in .test1' type=kotlin.Lazy origin=null thisRef: CONST Null type=kotlin.Nothing? value=null - property: LOCAL_DELEGATED_PROPERTY_REFERENCE 'val x: kotlin.Int by (...)' delegate='val x$delegate: kotlin.Lazy [val] declared in .test1' getter='local final fun (): kotlin.Int declared in .test1' setter=null type=kotlin.reflect.KProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE - CALL 'public final fun println (message: kotlin.Int): kotlin.Unit [inline] declared in kotlin.io' type=kotlin.Unit origin=null + property: LOCAL_DELEGATED_PROPERTY_REFERENCE 'val x: kotlin.Int by (...)' delegate='val x$delegate: kotlin.Lazy declared in .test1' getter='local final fun (): kotlin.Int declared in .test1' setter=null type=kotlin.reflect.KProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE + CALL 'public final fun println (message: kotlin.Int): kotlin.Unit declared in kotlin.io' type=kotlin.Unit origin=null message: CALL 'local final fun (): kotlin.Int declared in .test1' type=kotlin.Int origin=GET_LOCAL_PROPERTY FUN name:test2 visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY LOCAL_DELEGATED_PROPERTY name:x type:kotlin.Int flags:var VAR PROPERTY_DELEGATE name:x$delegate type:java.util.HashMap [val] - CALL 'public final fun hashMapOf (): java.util.HashMap [inline] declared in kotlin.collections.MapsKt' type=java.util.HashMap origin=null + CALL 'public final fun hashMapOf (): java.util.HashMap declared in kotlin.collections.MapsKt' type=java.util.HashMap origin=null : kotlin.String : kotlin.Int FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:local modality:FINAL <> () returnType:kotlin.Int BLOCK_BODY RETURN type=kotlin.Nothing from='local final fun (): kotlin.Int declared in .test2' - CALL 'public final fun getValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): V1 of kotlin.collections.getValue [inline,operator] declared in kotlin.collections' type=kotlin.Int origin=null + CALL 'public final fun getValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): V1 of kotlin.collections.getValue declared in kotlin.collections' type=kotlin.Int origin=null : kotlin.Int : kotlin.Int - $receiver: GET_VAR 'val x$delegate: java.util.HashMap [val] declared in .test2' type=java.util.HashMap origin=null + $receiver: GET_VAR 'val x$delegate: java.util.HashMap declared in .test2' type=java.util.HashMap origin=null thisRef: CONST Null type=kotlin.Nothing? value=null - property: LOCAL_DELEGATED_PROPERTY_REFERENCE 'var x: kotlin.Int by (...)' delegate='val x$delegate: java.util.HashMap [val] declared in .test2' getter='local final fun (): kotlin.Int declared in .test2' setter='local final fun (: kotlin.Int): kotlin.Unit declared in .test2' type=kotlin.reflect.KMutableProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE + property: LOCAL_DELEGATED_PROPERTY_REFERENCE 'var x: kotlin.Int by (...)' delegate='val x$delegate: java.util.HashMap declared in .test2' getter='local final fun (): kotlin.Int declared in .test2' setter='local final fun (: kotlin.Int): kotlin.Unit declared in .test2' type=kotlin.reflect.KMutableProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:local modality:FINAL <> (:kotlin.Int) returnType:kotlin.Unit VALUE_PARAMETER name: index:0 type:kotlin.Int BLOCK_BODY - CALL 'public final fun setValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>, value: V of kotlin.collections.setValue): kotlin.Unit [inline,operator] declared in kotlin.collections' type=kotlin.Unit origin=null + CALL 'public final fun setValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>, value: V of kotlin.collections.setValue): kotlin.Unit declared in kotlin.collections' type=kotlin.Unit origin=null : kotlin.Int - $receiver: GET_VAR 'val x$delegate: java.util.HashMap [val] declared in .test2' type=java.util.HashMap origin=null + $receiver: GET_VAR 'val x$delegate: java.util.HashMap declared in .test2' type=java.util.HashMap origin=null thisRef: CONST Null type=kotlin.Nothing? value=null - property: LOCAL_DELEGATED_PROPERTY_REFERENCE 'var x: kotlin.Int by (...)' delegate='val x$delegate: java.util.HashMap [val] declared in .test2' getter='local final fun (): kotlin.Int declared in .test2' setter='local final fun (: kotlin.Int): kotlin.Unit declared in .test2' type=kotlin.reflect.KMutableProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE + property: LOCAL_DELEGATED_PROPERTY_REFERENCE 'var x: kotlin.Int by (...)' delegate='val x$delegate: java.util.HashMap declared in .test2' getter='local final fun (): kotlin.Int declared in .test2' setter='local final fun (: kotlin.Int): kotlin.Unit declared in .test2' type=kotlin.reflect.KMutableProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE value: GET_VAR ': kotlin.Int declared in .test2.' type=kotlin.Int origin=null CALL 'local final fun (: kotlin.Int): kotlin.Unit declared in .test2' type=kotlin.Unit origin=EQ : CONST Int type=kotlin.Int value=0 @@ -52,10 +52,10 @@ FILE fqName: fileName:/localDelegatedProperties.kt VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:kotlin.Int [val] CALL 'local final fun (): kotlin.Int declared in .test2' type=kotlin.Int origin=GET_LOCAL_PROPERTY CALL 'local final fun (: kotlin.Int): kotlin.Unit declared in .test2' type=kotlin.Unit origin=POSTFIX_INCR - : CALL 'public final fun inc (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp_0: kotlin.Int [val] declared in .test2' type=kotlin.Int origin=null - GET_VAR 'val tmp_0: kotlin.Int [val] declared in .test2' type=kotlin.Int origin=null + : CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_0: kotlin.Int declared in .test2' type=kotlin.Int origin=null + GET_VAR 'val tmp_0: kotlin.Int declared in .test2' type=kotlin.Int origin=null CALL 'local final fun (: kotlin.Int): kotlin.Unit declared in .test2' type=kotlin.Unit origin=PLUSEQ - : CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null + : CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: CALL 'local final fun (): kotlin.Int declared in .test2' type=kotlin.Int origin=GET_LOCAL_PROPERTY other: CONST Int type=kotlin.Int value=1 diff --git a/compiler/testData/ir/irText/declarations/localDelegatedProperties.ir.txt b/compiler/testData/ir/irText/declarations/localDelegatedProperties.ir.txt index 7b5a2c530fb..2d35b97b267 100644 --- a/compiler/testData/ir/irText/declarations/localDelegatedProperties.ir.txt +++ b/compiler/testData/ir/irText/declarations/localDelegatedProperties.ir.txt @@ -13,38 +13,38 @@ FILE fqName: fileName:/localDelegatedProperties.kt FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:local modality:FINAL <> () returnType:kotlin.Int BLOCK_BODY RETURN type=kotlin.Nothing from='local final fun (): kotlin.Int declared in .test1' - CALL 'public final fun getValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): T of kotlin.LazyKt.getValue [inline,operator] declared in kotlin.LazyKt' type=kotlin.Int origin=null + CALL 'public final fun getValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): T of kotlin.LazyKt.getValue declared in kotlin.LazyKt' type=kotlin.Int origin=null : kotlin.Int - $receiver: GET_VAR 'val x$delegate: kotlin.Lazy [val] declared in .test1' type=kotlin.Lazy origin=null + $receiver: GET_VAR 'val x$delegate: kotlin.Lazy declared in .test1' type=kotlin.Lazy origin=null thisRef: CONST Null type=kotlin.Nothing? value=null - property: LOCAL_DELEGATED_PROPERTY_REFERENCE 'val x: kotlin.Int by (...)' delegate='val x$delegate: kotlin.Lazy [val] declared in .test1' getter='local final fun (): kotlin.Int declared in .test1' setter=null type=kotlin.reflect.KProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE - CALL 'public final fun println (message: kotlin.Int): kotlin.Unit [inline] declared in kotlin.io' type=kotlin.Unit origin=null + property: LOCAL_DELEGATED_PROPERTY_REFERENCE 'val x: kotlin.Int by (...)' delegate='val x$delegate: kotlin.Lazy declared in .test1' getter='local final fun (): kotlin.Int declared in .test1' setter=null type=kotlin.reflect.KProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE + CALL 'public final fun println (message: kotlin.Int): kotlin.Unit declared in kotlin.io' type=kotlin.Unit origin=null message: CALL 'local final fun (): kotlin.Int declared in .test1' type=kotlin.Int origin=GET_LOCAL_PROPERTY FUN name:test2 visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY LOCAL_DELEGATED_PROPERTY name:x type:kotlin.Int flags:var VAR PROPERTY_DELEGATE name:x$delegate type:java.util.HashMap{ kotlin.collections.HashMap } [val] - CALL 'public final fun hashMapOf (): java.util.HashMap{ kotlin.collections.HashMap } [inline] declared in kotlin.collections.MapsKt' type=java.util.HashMap{ kotlin.collections.HashMap } origin=null + CALL 'public final fun hashMapOf (): java.util.HashMap{ kotlin.collections.HashMap } declared in kotlin.collections.MapsKt' type=java.util.HashMap{ kotlin.collections.HashMap } origin=null : kotlin.String : kotlin.Int FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:local modality:FINAL <> () returnType:kotlin.Int BLOCK_BODY RETURN type=kotlin.Nothing from='local final fun (): kotlin.Int declared in .test2' - CALL 'public final fun getValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): V1 of kotlin.collections.getValue [inline,operator] declared in kotlin.collections' type=kotlin.Int origin=null + CALL 'public final fun getValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): V1 of kotlin.collections.getValue declared in kotlin.collections' type=kotlin.Int origin=null : kotlin.Int : kotlin.Int - $receiver: GET_VAR 'val x$delegate: java.util.HashMap{ kotlin.collections.HashMap } [val] declared in .test2' type=java.util.HashMap{ kotlin.collections.HashMap } origin=null + $receiver: GET_VAR 'val x$delegate: java.util.HashMap{ kotlin.collections.HashMap } declared in .test2' type=java.util.HashMap{ kotlin.collections.HashMap } origin=null thisRef: CONST Null type=kotlin.Nothing? value=null - property: LOCAL_DELEGATED_PROPERTY_REFERENCE 'var x: kotlin.Int by (...)' delegate='val x$delegate: java.util.HashMap{ kotlin.collections.HashMap } [val] declared in .test2' getter='local final fun (): kotlin.Int declared in .test2' setter='local final fun (value: kotlin.Int): kotlin.Unit declared in .test2' type=kotlin.reflect.KMutableProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE + property: LOCAL_DELEGATED_PROPERTY_REFERENCE 'var x: kotlin.Int by (...)' delegate='val x$delegate: java.util.HashMap{ kotlin.collections.HashMap } declared in .test2' getter='local final fun (): kotlin.Int declared in .test2' setter='local final fun (value: kotlin.Int): kotlin.Unit declared in .test2' type=kotlin.reflect.KMutableProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:local modality:FINAL <> (value:kotlin.Int) returnType:kotlin.Unit VALUE_PARAMETER name:value index:0 type:kotlin.Int BLOCK_BODY RETURN type=kotlin.Nothing from='local final fun (value: kotlin.Int): kotlin.Unit declared in .test2' - CALL 'public final fun setValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>, value: V of kotlin.collections.setValue): kotlin.Unit [inline,operator] declared in kotlin.collections' type=kotlin.Unit origin=null + CALL 'public final fun setValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>, value: V of kotlin.collections.setValue): kotlin.Unit declared in kotlin.collections' type=kotlin.Unit origin=null : kotlin.Int - $receiver: GET_VAR 'val x$delegate: java.util.HashMap{ kotlin.collections.HashMap } [val] declared in .test2' type=java.util.HashMap{ kotlin.collections.HashMap } origin=null + $receiver: GET_VAR 'val x$delegate: java.util.HashMap{ kotlin.collections.HashMap } declared in .test2' type=java.util.HashMap{ kotlin.collections.HashMap } origin=null thisRef: CONST Null type=kotlin.Nothing? value=null - property: LOCAL_DELEGATED_PROPERTY_REFERENCE 'var x: kotlin.Int by (...)' delegate='val x$delegate: java.util.HashMap{ kotlin.collections.HashMap } [val] declared in .test2' getter='local final fun (): kotlin.Int declared in .test2' setter='local final fun (value: kotlin.Int): kotlin.Unit declared in .test2' type=kotlin.reflect.KMutableProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE + property: LOCAL_DELEGATED_PROPERTY_REFERENCE 'var x: kotlin.Int by (...)' delegate='val x$delegate: java.util.HashMap{ kotlin.collections.HashMap } declared in .test2' getter='local final fun (): kotlin.Int declared in .test2' setter='local final fun (value: kotlin.Int): kotlin.Unit declared in .test2' type=kotlin.reflect.KMutableProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE value: GET_VAR 'value: kotlin.Int declared in .test2.' type=kotlin.Int origin=null CALL 'local final fun (value: kotlin.Int): kotlin.Unit declared in .test2' type=kotlin.Unit origin=EQ value: CONST Int type=kotlin.Int value=0 @@ -53,10 +53,10 @@ FILE fqName: fileName:/localDelegatedProperties.kt VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:kotlin.Int [val] CALL 'local final fun (): kotlin.Int declared in .test2' type=kotlin.Int origin=POSTFIX_INCR CALL 'local final fun (value: kotlin.Int): kotlin.Unit declared in .test2' type=kotlin.Unit origin=POSTFIX_INCR - value: CALL 'public final fun inc (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_INCR - $this: GET_VAR 'val tmp_0: kotlin.Int [val] declared in .test2' type=kotlin.Int origin=null - GET_VAR 'val tmp_0: kotlin.Int [val] declared in .test2' type=kotlin.Int origin=null + value: CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_INCR + $this: GET_VAR 'val tmp_0: kotlin.Int declared in .test2' type=kotlin.Int origin=null + GET_VAR 'val tmp_0: kotlin.Int declared in .test2' type=kotlin.Int origin=null CALL 'local final fun (value: kotlin.Int): kotlin.Unit declared in .test2' type=kotlin.Unit origin=PLUSEQ - value: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ + value: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ $this: CALL 'local final fun (): kotlin.Int declared in .test2' type=kotlin.Int origin=PLUSEQ other: CONST Int type=kotlin.Int value=1 diff --git a/compiler/testData/ir/irText/declarations/localVarInDoWhile.fir.ir.txt b/compiler/testData/ir/irText/declarations/localVarInDoWhile.fir.ir.txt index 0c6e0955b1d..3257665a44e 100644 --- a/compiler/testData/ir/irText/declarations/localVarInDoWhile.fir.ir.txt +++ b/compiler/testData/ir/irText/declarations/localVarInDoWhile.fir.ir.txt @@ -6,7 +6,7 @@ FILE fqName: fileName:/localVarInDoWhile.kt body: COMPOSITE type=kotlin.Unit origin=DO_WHILE_LOOP VAR name:x type:kotlin.Int [val] CONST Int type=kotlin.Int value=42 - condition: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ + condition: CALL 'public final fun not (): kotlin.Boolean 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_VAR 'val x: kotlin.Int [val] declared in .foo' type=kotlin.Int origin=null + arg0: GET_VAR 'val x: kotlin.Int declared in .foo' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=42 diff --git a/compiler/testData/ir/irText/declarations/localVarInDoWhile.ir.txt b/compiler/testData/ir/irText/declarations/localVarInDoWhile.ir.txt index 8fb82f0d426..c78acecd54e 100644 --- a/compiler/testData/ir/irText/declarations/localVarInDoWhile.ir.txt +++ b/compiler/testData/ir/irText/declarations/localVarInDoWhile.ir.txt @@ -6,7 +6,7 @@ FILE fqName: fileName:/localVarInDoWhile.kt body: COMPOSITE type=kotlin.Unit origin=null VAR name:x type:kotlin.Int [val] CONST Int type=kotlin.Int value=42 - condition: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ + condition: CALL 'public final fun not (): kotlin.Boolean 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_VAR 'val x: kotlin.Int [val] declared in .foo' type=kotlin.Int origin=null + arg0: GET_VAR 'val x: kotlin.Int declared in .foo' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=42 diff --git a/compiler/testData/ir/irText/declarations/multiplatform/expectClassInherited.ir.txt b/compiler/testData/ir/irText/declarations/multiplatform/expectClassInherited.ir.txt index a7d67747da8..93e33a53678 100644 --- a/compiler/testData/ir/irText/declarations/multiplatform/expectClassInherited.ir.txt +++ b/compiler/testData/ir/irText/declarations/multiplatform/expectClassInherited.ir.txt @@ -6,7 +6,7 @@ FILE fqName: fileName:/expectClassInherited.kt $this: VALUE_PARAMETER name: type:.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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -30,28 +30,28 @@ FILE fqName: fileName:/expectClassInherited.kt VALUE_PARAMETER name:s index:0 type:kotlin.String 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 .A + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .A $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 .A + public open fun hashCode (): kotlin.Int declared in .A $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 .A + public open fun toString (): kotlin.String declared in .A $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:A modality:ABSTRACT visibility:public superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.A CONSTRUCTOR visibility:protected <> () returnType:.A [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () 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:.A) returnType:kotlin.Unit $this: VALUE_PARAMETER name: type:.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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -67,7 +67,7 @@ FILE fqName: fileName:/expectClassInherited.kt CONSTRUCTOR visibility:public <> (i:kotlin.Int) returnType:.B [primary] VALUE_PARAMETER name:i index:0 type:kotlin.Int BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'protected constructor () [primary] declared in .A' + DELEGATING_CONSTRUCTOR_CALL 'protected constructor () declared in .A' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:B modality:OPEN visibility:public superTypes:[.A]' FUN name:foo visibility:public modality:OPEN <> ($this:.B) returnType:kotlin.Unit overridden: @@ -80,14 +80,14 @@ FILE fqName: fileName:/expectClassInherited.kt 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 [fake_override,operator] declared in .A + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .A $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 .A + public open fun hashCode (): kotlin.Int declared in .A $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 .A + public open fun toString (): kotlin.String declared in .A $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/declarations/multiplatform/expectIntersectionOverride.ir.txt b/compiler/testData/ir/irText/declarations/multiplatform/expectIntersectionOverride.ir.txt index 00bebbfca38..ad00d7ec933 100644 --- a/compiler/testData/ir/irText/declarations/multiplatform/expectIntersectionOverride.ir.txt +++ b/compiler/testData/ir/irText/declarations/multiplatform/expectIntersectionOverride.ir.txt @@ -10,7 +10,7 @@ FILE fqName: fileName:/common.kt $this: VALUE_PARAMETER name: type:.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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -31,7 +31,7 @@ FILE fqName: fileName:/common.kt $this: VALUE_PARAMETER name: type:.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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -52,8 +52,8 @@ FILE fqName: fileName:/common.kt $this: VALUE_PARAMETER name: type:.I1 PROPERTY FAKE_OVERRIDE name:p visibility:public modality:ABSTRACT [expect,fake_override,val] overridden: - public abstract p: kotlin.Int [val] - public abstract p: kotlin.Int [val] + public abstract p: kotlin.Int + public abstract p: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:ABSTRACT <> ($this:.I1) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:p visibility:public modality:ABSTRACT [expect,fake_override,val] overridden: @@ -62,19 +62,19 @@ FILE fqName: fileName:/common.kt $this: VALUE_PARAMETER name: type:.I1 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 [fake_override,operator] declared in .I1 - public open fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .I2 + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .I1 + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .I2 $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 [expect,fake_override] overridden: - public open fun hashCode (): kotlin.Int [fake_override] declared in .I1 - public open fun hashCode (): kotlin.Int [fake_override] declared in .I2 + public open fun hashCode (): kotlin.Int declared in .I1 + public open fun hashCode (): kotlin.Int declared in .I2 $this: VALUE_PARAMETER name: 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 [fake_override] declared in .I1 - public open fun toString (): kotlin.String [fake_override] declared in .I2 + public open fun toString (): kotlin.String declared in .I1 + public open fun toString (): kotlin.String declared in .I2 $this: VALUE_PARAMETER name: type:kotlin.Any Module: platform FILE fqName: fileName:/platform.kt @@ -82,7 +82,7 @@ FILE fqName: fileName:/platform.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.C CONSTRUCTOR visibility:public <> () returnType:.C [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C modality:FINAL visibility:public superTypes:[.I1; .I2]' FUN name:f visibility:public modality:OPEN <> ($this:.C) returnType:kotlin.String overridden: @@ -94,8 +94,8 @@ FILE fqName: fileName:/platform.kt CONST String type=kotlin.String value="OK" PROPERTY name:p visibility:public modality:OPEN [val] overridden: - public abstract p: kotlin.Int [val] - public abstract p: kotlin.Int [val] + 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 @@ -111,17 +111,17 @@ FILE fqName: fileName:/platform.kt receiver: GET_VAR ': .C declared in .C.' type=.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 [fake_override,operator] declared in .I1 - public open fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .I2 + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .I1 + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .I2 $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 .I1 - public open fun hashCode (): kotlin.Int [fake_override] declared in .I2 + public open fun hashCode (): kotlin.Int declared in .I1 + public open fun hashCode (): kotlin.Int declared in .I2 $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 .I1 - public open fun toString (): kotlin.String [fake_override] declared in .I2 + public open fun toString (): kotlin.String declared in .I1 + public open fun toString (): kotlin.String declared in .I2 $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/declarations/multiplatform/expectMemberInNotExpectClass.ir.txt b/compiler/testData/ir/irText/declarations/multiplatform/expectMemberInNotExpectClass.ir.txt index 7cf6e4d6c06..fe3ec7a7831 100644 --- a/compiler/testData/ir/irText/declarations/multiplatform/expectMemberInNotExpectClass.ir.txt +++ b/compiler/testData/ir/irText/declarations/multiplatform/expectMemberInNotExpectClass.ir.txt @@ -11,7 +11,7 @@ FILE fqName: fileName:/expectMemberInNotExpectClass.kt $this: VALUE_PARAMETER name: type:.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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -26,7 +26,7 @@ FILE fqName: fileName:/expectMemberInNotExpectClass.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.C2 CONSTRUCTOR visibility:public <> () returnType:.C2 [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .C1' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .C1' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C2 modality:FINAL visibility:public superTypes:[.C1]' FUN FAKE_OVERRIDE name:f visibility:public modality:FINAL <> ($this:.C1) returnType:kotlin.String [fake_override] overridden: @@ -34,7 +34,7 @@ FILE fqName: fileName:/expectMemberInNotExpectClass.kt $this: VALUE_PARAMETER name: type:.C1 PROPERTY FAKE_OVERRIDE name:p visibility:public modality:FINAL [fake_override,val] overridden: - public final p: kotlin.Int [val] + public final p: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.C1) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:p visibility:public modality:FINAL [fake_override,val] overridden: @@ -42,22 +42,22 @@ FILE fqName: fileName:/expectMemberInNotExpectClass.kt $this: VALUE_PARAMETER name: type:.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 .C1 + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .C1 $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 .C1 + public open fun hashCode (): kotlin.Int declared in .C1 $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 .C1 + public open fun toString (): kotlin.String declared in .C1 $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:C1 modality:OPEN visibility:public superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.C1 CONSTRUCTOR visibility:public <> () returnType:.C1 [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () 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:.C1) returnType:kotlin.String $this: VALUE_PARAMETER name: type:.C1 @@ -77,7 +77,7 @@ FILE fqName: fileName:/expectMemberInNotExpectClass.kt receiver: GET_VAR ': .C1 declared in .C1.' type=.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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/declarations/multiplatform/expectMemberInNotExpectClassFir.ir.txt b/compiler/testData/ir/irText/declarations/multiplatform/expectMemberInNotExpectClassFir.ir.txt index b629c3cbf20..1c5552d1f06 100644 --- a/compiler/testData/ir/irText/declarations/multiplatform/expectMemberInNotExpectClassFir.ir.txt +++ b/compiler/testData/ir/irText/declarations/multiplatform/expectMemberInNotExpectClassFir.ir.txt @@ -16,7 +16,7 @@ FILE fqName: fileName:/common.kt receiver: GET_VAR ': .C1 declared in .C1.' type=.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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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 [expect,fake_override] @@ -31,15 +31,15 @@ FILE fqName: fileName:/common.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.C2 CONSTRUCTOR visibility:public <> () returnType:.C2 [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary,expect] declared in .C1' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .C1' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C2 modality:FINAL visibility:public superTypes:[.C1]' FUN FAKE_OVERRIDE name:f visibility:public modality:FINAL <> ($this:.C1) returnType:kotlin.String [expect,fake_override] overridden: - public final fun f (): kotlin.String [expect] declared in .C1 + public final fun f (): kotlin.String declared in .C1 $this: VALUE_PARAMETER name: type:.C1 PROPERTY FAKE_OVERRIDE name:p visibility:public modality:FINAL [expect,fake_override,val] overridden: - public final p: kotlin.Int [expect,val] + public final p: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.C1) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:p visibility:public modality:FINAL [expect,fake_override,val] overridden: @@ -47,16 +47,16 @@ FILE fqName: fileName:/common.kt $this: VALUE_PARAMETER name: type:.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 .C1 + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .C1 $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 [expect,fake_override] declared in .C1 + public open fun hashCode (): kotlin.Int declared in .C1 $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 [expect,fake_override] declared in .C1 + public open fun toString (): kotlin.String declared in .C1 $this: VALUE_PARAMETER name: type:kotlin.Any Module: platform FILE fqName: fileName:/platform.kt @@ -64,7 +64,7 @@ FILE fqName: fileName:/platform.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.C1 CONSTRUCTOR visibility:public <> () returnType:.C1 [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () 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:.C1) returnType:kotlin.String $this: VALUE_PARAMETER name: type:.C1 @@ -84,7 +84,7 @@ FILE fqName: fileName:/platform.kt receiver: GET_VAR ': .C1 declared in .C1.' type=.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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/declarations/multiplatform/expectedEnumClass.ir.txt b/compiler/testData/ir/irText/declarations/multiplatform/expectedEnumClass.ir.txt index 2f450c18c89..3439547ad97 100644 --- a/compiler/testData/ir/irText/declarations/multiplatform/expectedEnumClass.ir.txt +++ b/compiler/testData/ir/irText/declarations/multiplatform/expectedEnumClass.ir.txt @@ -7,7 +7,7 @@ FILE fqName: fileName:/expectedEnumClass.kt annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.MyEnum>) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: @@ -15,7 +15,7 @@ FILE fqName: fileName:/expectedEnumClass.kt $this: VALUE_PARAMETER name: type:kotlin.Enum<.MyEnum> PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.MyEnum>) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: @@ -27,12 +27,12 @@ FILE fqName: fileName:/expectedEnumClass.kt $this: VALUE_PARAMETER name: type:kotlin.Enum<.MyEnum> FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum<.MyEnum>, other:.MyEnum) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: E of kotlin.Enum): kotlin.Int [operator] declared in kotlin.Enum + public final fun compareTo (other: E of kotlin.Enum): kotlin.Int declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum<.MyEnum> VALUE_PARAMETER name:other index:0 type:.MyEnum FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum<.MyEnum>, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Enum + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum<.MyEnum> VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:finalize visibility:protected/*protected and package*/ modality:FINAL <> ($this:kotlin.Enum<.MyEnum>) returnType:kotlin.Unit [fake_override] @@ -64,23 +64,23 @@ FILE fqName: fileName:/expectedEnumClass.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.MyEnum CONSTRUCTOR visibility:private <> () returnType:.MyEnum [primary] BLOCK_BODY - ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) [primary] declared in kotlin.Enum' + ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) declared in kotlin.Enum' : .MyEnum INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_CLASS name:MyEnum modality:FINAL visibility:public superTypes:[kotlin.Enum<.MyEnum>]' ENUM_ENTRY name:FOO init: EXPRESSION_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor () [primary] declared in .MyEnum' + ENUM_CONSTRUCTOR_CALL 'private constructor () declared in .MyEnum' ENUM_ENTRY name:BAR init: EXPRESSION_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor () [primary] declared in .MyEnum' + ENUM_CONSTRUCTOR_CALL 'private constructor () declared in .MyEnum' ENUM_ENTRY name:BAZ init: EXPRESSION_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor () [primary] declared in .MyEnum' + ENUM_CONSTRUCTOR_CALL 'private constructor () declared in .MyEnum' PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.MyEnum>) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: @@ -88,7 +88,7 @@ FILE fqName: fileName:/expectedEnumClass.kt $this: VALUE_PARAMETER name: type:kotlin.Enum<.MyEnum> PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.MyEnum>) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: @@ -100,12 +100,12 @@ FILE fqName: fileName:/expectedEnumClass.kt $this: VALUE_PARAMETER name: type:kotlin.Enum<.MyEnum> FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum<.MyEnum>, other:.MyEnum) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: E of kotlin.Enum): kotlin.Int [operator] declared in kotlin.Enum + public final fun compareTo (other: E of kotlin.Enum): kotlin.Int declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum<.MyEnum> VALUE_PARAMETER name:other index:0 type:.MyEnum FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum<.MyEnum>, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Enum + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum<.MyEnum> VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:finalize visibility:protected/*protected and package*/ modality:FINAL <> ($this:kotlin.Enum<.MyEnum>) returnType:kotlin.Unit [fake_override] diff --git a/compiler/testData/ir/irText/declarations/multiplatform/expectedEnumClass2.ir.txt b/compiler/testData/ir/irText/declarations/multiplatform/expectedEnumClass2.ir.txt index 0ec597c116d..9a831ee18fa 100644 --- a/compiler/testData/ir/irText/declarations/multiplatform/expectedEnumClass2.ir.txt +++ b/compiler/testData/ir/irText/declarations/multiplatform/expectedEnumClass2.ir.txt @@ -5,10 +5,10 @@ FILE fqName: fileName:/lib.kt CONSTRUCTOR visibility:private <> () returnType:.MyEnum [primary,expect] ENUM_ENTRY name:FOO init: EXPRESSION_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor () [primary,expect] declared in .MyEnum' + ENUM_CONSTRUCTOR_CALL 'private constructor () declared in .MyEnum' ENUM_ENTRY name:BAR init: EXPRESSION_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor () [primary,expect] declared in .MyEnum' + ENUM_CONSTRUCTOR_CALL 'private constructor () declared in .MyEnum' FUN ENUM_CLASS_SPECIAL_MEMBER name:values visibility:public modality:FINAL <> () returnType:kotlin.Array<.MyEnum> [expect] FUN ENUM_CLASS_SPECIAL_MEMBER name:valueOf visibility:public modality:FINAL <> (value:kotlin.String) returnType:.MyEnum [expect] VALUE_PARAMETER name:value index:0 type:kotlin.String @@ -22,12 +22,12 @@ FILE fqName: fileName:/lib.kt $this: VALUE_PARAMETER name: type:kotlin.Enum FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum, other:.MyEnum) returnType:kotlin.Int [expect,fake_override,operator] overridden: - public final fun compareTo (other: E of kotlin.Enum): kotlin.Int [operator] declared in kotlin.Enum + public final fun compareTo (other: E of kotlin.Enum): kotlin.Int declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:.MyEnum FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum, other:kotlin.Any?) returnType:kotlin.Boolean [expect,fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Enum + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:hashCode visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [expect,fake_override] @@ -42,7 +42,7 @@ FILE fqName: fileName:/lib.kt annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [expect,fake_override,val] overridden: @@ -50,7 +50,7 @@ FILE fqName: fileName:/lib.kt $this: VALUE_PARAMETER name: type:kotlin.Enum PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [expect,fake_override,val] overridden: - public final ordinal: kotlin.Int [val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [expect,fake_override,val] overridden: @@ -70,18 +70,18 @@ FILE fqName: fileName:/main.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.MyEnum CONSTRUCTOR visibility:private <> () returnType:.MyEnum [primary] BLOCK_BODY - ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) [primary] declared in kotlin.Enum' + ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) declared in kotlin.Enum' : .MyEnum INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_CLASS name:MyEnum modality:FINAL visibility:public superTypes:[kotlin.Enum<.MyEnum>]' ENUM_ENTRY name:FOO init: EXPRESSION_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor () [primary] declared in .MyEnum' + ENUM_CONSTRUCTOR_CALL 'private constructor () declared in .MyEnum' ENUM_ENTRY name:BAR init: EXPRESSION_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor () [primary] declared in .MyEnum' + ENUM_CONSTRUCTOR_CALL 'private constructor () declared in .MyEnum' ENUM_ENTRY name:BAZ init: EXPRESSION_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor () [primary] declared in .MyEnum' + ENUM_CONSTRUCTOR_CALL 'private constructor () declared in .MyEnum' FUN ENUM_CLASS_SPECIAL_MEMBER name:values visibility:public modality:FINAL <> () returnType:kotlin.Array<.MyEnum> SYNTHETIC_BODY kind=ENUM_VALUES FUN ENUM_CLASS_SPECIAL_MEMBER name:valueOf visibility:public modality:FINAL <> (value:kotlin.String) returnType:.MyEnum @@ -97,12 +97,12 @@ FILE fqName: fileName:/main.kt $this: VALUE_PARAMETER name: type:kotlin.Enum FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum, other:.MyEnum) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: E of kotlin.Enum): kotlin.Int [operator] declared in kotlin.Enum + public final fun compareTo (other: E of kotlin.Enum): kotlin.Int declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:.MyEnum FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Enum + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:hashCode visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] @@ -117,7 +117,7 @@ FILE fqName: fileName:/main.kt annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: @@ -125,7 +125,7 @@ FILE fqName: fileName:/main.kt $this: VALUE_PARAMETER name: type:kotlin.Enum PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: diff --git a/compiler/testData/ir/irText/declarations/multiplatform/expectedSealedClass.ir.txt b/compiler/testData/ir/irText/declarations/multiplatform/expectedSealedClass.ir.txt index c7adc2ee451..932c1fb7b78 100644 --- a/compiler/testData/ir/irText/declarations/multiplatform/expectedSealedClass.ir.txt +++ b/compiler/testData/ir/irText/declarations/multiplatform/expectedSealedClass.ir.txt @@ -6,7 +6,7 @@ FILE fqName: fileName:/expectedSealedClass.kt CONSTRUCTOR visibility:protected <> () returnType:.Ops [primary,expect] 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -22,16 +22,16 @@ FILE fqName: fileName:/expectedSealedClass.kt CONSTRUCTOR visibility:public <> () returnType:.Add [primary,expect] 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 .Ops + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Ops $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 .Ops + public open fun hashCode (): kotlin.Int declared in .Ops $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 .Ops + public open fun toString (): kotlin.String declared in .Ops $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:Ops modality:SEALED visibility:public superTypes:[kotlin.Any] sealedSubclasses: @@ -39,11 +39,11 @@ FILE fqName: fileName:/expectedSealedClass.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Ops CONSTRUCTOR visibility:protected <> () returnType:.Ops [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -58,18 +58,18 @@ FILE fqName: fileName:/expectedSealedClass.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Add CONSTRUCTOR visibility:public <> () returnType:.Add [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'protected constructor () [primary] declared in .Ops' + DELEGATING_CONSTRUCTOR_CALL 'protected constructor () declared in .Ops' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Add modality:FINAL visibility:public superTypes:[.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 [fake_override,operator] declared in .Ops + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Ops $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 .Ops + public open fun hashCode (): kotlin.Int declared in .Ops $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 .Ops + public open fun toString (): kotlin.String declared in .Ops $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/declarations/packageLevelProperties.fir.ir.txt b/compiler/testData/ir/irText/declarations/packageLevelProperties.fir.ir.txt index 5c539ad8e62..8b50f4d8538 100644 --- a/compiler/testData/ir/irText/declarations/packageLevelProperties.fir.ir.txt +++ b/compiler/testData/ir/irText/declarations/packageLevelProperties.fir.ir.txt @@ -82,34 +82,34 @@ FILE fqName: fileName:/packageLevelProperties.kt correspondingProperty: PROPERTY name:test7 visibility:public modality:FINAL [delegated,val] BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun (): kotlin.Int declared in ' - CALL 'public final fun getValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): T of kotlin.LazyKt.getValue [inline,operator] declared in kotlin.LazyKt' type=kotlin.Int origin=null + CALL 'public final fun getValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): T of kotlin.LazyKt.getValue declared in kotlin.LazyKt' type=kotlin.Int origin=null : kotlin.Int $receiver: GET_FIELD 'FIELD PROPERTY_DELEGATE name:test7$delegate type:kotlin.Lazy visibility:private [final,static]' type=kotlin.Lazy origin=null thisRef: CONST Null type=kotlin.Nothing? value=null - property: PROPERTY_REFERENCE 'public final test7: kotlin.Int [delegated,val]' field=null getter='public final fun (): kotlin.Int declared in ' setter=null type=kotlin.reflect.KProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE + property: PROPERTY_REFERENCE 'public final test7: kotlin.Int' field=null getter='public final fun (): kotlin.Int declared in ' setter=null type=kotlin.reflect.KProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE PROPERTY name:test8 visibility:public modality:FINAL [delegated,var] FIELD PROPERTY_DELEGATE name:test8$delegate type:java.util.HashMap visibility:private [final,static] EXPRESSION_BODY - CALL 'public final fun hashMapOf (): java.util.HashMap [inline] declared in kotlin.collections.MapsKt' type=java.util.HashMap origin=null + CALL 'public final fun hashMapOf (): java.util.HashMap declared in kotlin.collections.MapsKt' type=java.util.HashMap origin=null : kotlin.String : kotlin.Int FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:kotlin.Int correspondingProperty: PROPERTY name:test8 visibility:public modality:FINAL [delegated,var] BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun (): kotlin.Int declared in ' - CALL 'public final fun getValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): V1 of kotlin.collections.getValue [inline,operator] declared in kotlin.collections' type=kotlin.Int origin=null + CALL 'public final fun getValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): V1 of kotlin.collections.getValue declared in kotlin.collections' type=kotlin.Int origin=null : kotlin.Int : kotlin.Int $receiver: GET_FIELD 'FIELD PROPERTY_DELEGATE name:test8$delegate type:java.util.HashMap visibility:private [final,static]' type=java.util.HashMap origin=null thisRef: CONST Null type=kotlin.Nothing? value=null - property: PROPERTY_REFERENCE 'public final test8: kotlin.Int [delegated,var]' field=null getter='public final fun (): kotlin.Int declared in ' setter='public final fun (: kotlin.Int): kotlin.Unit declared in ' type=kotlin.reflect.KMutableProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE + property: PROPERTY_REFERENCE 'public final test8: kotlin.Int' field=null getter='public final fun (): kotlin.Int declared in ' setter='public final fun (: kotlin.Int): kotlin.Unit declared in ' type=kotlin.reflect.KMutableProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> (:kotlin.Int) returnType:kotlin.Unit correspondingProperty: PROPERTY name:test8 visibility:public modality:FINAL [delegated,var] VALUE_PARAMETER name: index:0 type:kotlin.Int BLOCK_BODY - CALL 'public final fun setValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>, value: V of kotlin.collections.setValue): kotlin.Unit [inline,operator] declared in kotlin.collections' type=kotlin.Unit origin=null + CALL 'public final fun setValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>, value: V of kotlin.collections.setValue): kotlin.Unit declared in kotlin.collections' type=kotlin.Unit origin=null : kotlin.Int $receiver: GET_FIELD 'FIELD PROPERTY_DELEGATE name:test8$delegate type:java.util.HashMap visibility:private [final,static]' type=java.util.HashMap origin=null thisRef: CONST Null type=kotlin.Nothing? value=null - property: PROPERTY_REFERENCE 'public final test8: kotlin.Int [delegated,var]' field=null getter='public final fun (): kotlin.Int declared in ' setter='public final fun (: kotlin.Int): kotlin.Unit declared in ' type=kotlin.reflect.KMutableProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE + property: PROPERTY_REFERENCE 'public final test8: kotlin.Int' field=null getter='public final fun (): kotlin.Int declared in ' setter='public final fun (: kotlin.Int): kotlin.Unit declared in ' type=kotlin.reflect.KMutableProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE value: GET_VAR ': kotlin.Int declared in .' type=kotlin.Int origin=null diff --git a/compiler/testData/ir/irText/declarations/packageLevelProperties.ir.txt b/compiler/testData/ir/irText/declarations/packageLevelProperties.ir.txt index 46ea614940d..7cff377d64f 100644 --- a/compiler/testData/ir/irText/declarations/packageLevelProperties.ir.txt +++ b/compiler/testData/ir/irText/declarations/packageLevelProperties.ir.txt @@ -82,35 +82,35 @@ FILE fqName: fileName:/packageLevelProperties.kt correspondingProperty: PROPERTY name:test7 visibility:public modality:FINAL [delegated,val] BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun (): kotlin.Int declared in ' - CALL 'public final fun getValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): T of kotlin.LazyKt.getValue [inline,operator] declared in kotlin.LazyKt' type=kotlin.Int origin=null + CALL 'public final fun getValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): T of kotlin.LazyKt.getValue declared in kotlin.LazyKt' type=kotlin.Int origin=null : kotlin.Int $receiver: GET_FIELD 'FIELD PROPERTY_DELEGATE name:test7$delegate type:kotlin.Lazy visibility:private [final,static]' type=kotlin.Lazy origin=null thisRef: CONST Null type=kotlin.Nothing? value=null - property: PROPERTY_REFERENCE 'public final test7: kotlin.Int [delegated,val]' field=null getter='public final fun (): kotlin.Int declared in ' setter=null type=kotlin.reflect.KProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE + property: PROPERTY_REFERENCE 'public final test7: kotlin.Int' field=null getter='public final fun (): kotlin.Int declared in ' setter=null type=kotlin.reflect.KProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE PROPERTY name:test8 visibility:public modality:FINAL [delegated,var] FIELD PROPERTY_DELEGATE name:test8$delegate type:java.util.HashMap{ kotlin.collections.HashMap } visibility:private [final,static] EXPRESSION_BODY - CALL 'public final fun hashMapOf (): java.util.HashMap{ kotlin.collections.HashMap } [inline] declared in kotlin.collections.MapsKt' type=java.util.HashMap{ kotlin.collections.HashMap } origin=null + CALL 'public final fun hashMapOf (): java.util.HashMap{ kotlin.collections.HashMap } declared in kotlin.collections.MapsKt' type=java.util.HashMap{ kotlin.collections.HashMap } origin=null : kotlin.String : kotlin.Int FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:kotlin.Int correspondingProperty: PROPERTY name:test8 visibility:public modality:FINAL [delegated,var] BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun (): kotlin.Int declared in ' - CALL 'public final fun getValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): V1 of kotlin.collections.getValue [inline,operator] declared in kotlin.collections' type=kotlin.Int origin=null + CALL 'public final fun getValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): V1 of kotlin.collections.getValue declared in kotlin.collections' type=kotlin.Int origin=null : kotlin.Int : kotlin.Int $receiver: GET_FIELD 'FIELD PROPERTY_DELEGATE name:test8$delegate type:java.util.HashMap{ kotlin.collections.HashMap } visibility:private [final,static]' type=java.util.HashMap{ kotlin.collections.HashMap } origin=null thisRef: CONST Null type=kotlin.Nothing? value=null - property: PROPERTY_REFERENCE 'public final test8: kotlin.Int [delegated,var]' field=null getter='public final fun (): kotlin.Int declared in ' setter='public final fun (: kotlin.Int): kotlin.Unit declared in ' type=kotlin.reflect.KMutableProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE + property: PROPERTY_REFERENCE 'public final test8: kotlin.Int' field=null getter='public final fun (): kotlin.Int declared in ' setter='public final fun (: kotlin.Int): kotlin.Unit declared in ' type=kotlin.reflect.KMutableProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> (:kotlin.Int) returnType:kotlin.Unit correspondingProperty: PROPERTY name:test8 visibility:public modality:FINAL [delegated,var] VALUE_PARAMETER name: index:0 type:kotlin.Int BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun (: kotlin.Int): kotlin.Unit declared in ' - CALL 'public final fun setValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>, value: V of kotlin.collections.setValue): kotlin.Unit [inline,operator] declared in kotlin.collections' type=kotlin.Unit origin=null + CALL 'public final fun setValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>, value: V of kotlin.collections.setValue): kotlin.Unit declared in kotlin.collections' type=kotlin.Unit origin=null : kotlin.Int $receiver: GET_FIELD 'FIELD PROPERTY_DELEGATE name:test8$delegate type:java.util.HashMap{ kotlin.collections.HashMap } visibility:private [final,static]' type=java.util.HashMap{ kotlin.collections.HashMap } origin=null thisRef: CONST Null type=kotlin.Nothing? value=null - property: PROPERTY_REFERENCE 'public final test8: kotlin.Int [delegated,var]' field=null getter='public final fun (): kotlin.Int declared in ' setter='public final fun (: kotlin.Int): kotlin.Unit declared in ' type=kotlin.reflect.KMutableProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE + property: PROPERTY_REFERENCE 'public final test8: kotlin.Int' field=null getter='public final fun (): kotlin.Int declared in ' setter='public final fun (: kotlin.Int): kotlin.Unit declared in ' type=kotlin.reflect.KMutableProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE value: GET_VAR ': kotlin.Int declared in .' type=kotlin.Int origin=null diff --git a/compiler/testData/ir/irText/declarations/parameters/class.ir.txt b/compiler/testData/ir/irText/declarations/parameters/class.ir.txt index 86b90db8caa..e223db6f093 100644 --- a/compiler/testData/ir/irText/declarations/parameters/class.ir.txt +++ b/compiler/testData/ir/irText/declarations/parameters/class.ir.txt @@ -7,7 +7,7 @@ FILE fqName: fileName:/class.kt TYPE_PARAMETER name:TT index:0 variance: superTypes:[kotlin.Any?] reified:false 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -20,7 +20,7 @@ FILE fqName: fileName:/class.kt $this: VALUE_PARAMETER name: type: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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -36,18 +36,18 @@ FILE fqName: fileName:/class.kt TYPE_PARAMETER name:T0 index:0 variance: superTypes:[kotlin.Any?] reified:false CONSTRUCTOR visibility:public <> () returnType:.Test.Test> [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test modality:FINAL visibility:public superTypes:[kotlin.Any]' CLASS CLASS name:TestNested modality:FINAL visibility:public superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Test.TestNested.Test.TestNested> TYPE_PARAMETER name:T1 index:0 variance: superTypes:[kotlin.Any?] reified:false CONSTRUCTOR visibility:public <> () returnType:.Test.TestNested.Test.TestNested> [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:TestNested modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -64,11 +64,11 @@ FILE fqName: fileName:/class.kt CONSTRUCTOR visibility:public <> ($this:.Test.Test>) returnType:.Test.TestInner.Test.TestInner, T0 of .Test> [primary] $outer: VALUE_PARAMETER name: type:.Test.Test> BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:TestInner modality:FINAL visibility:public [inner] 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -81,7 +81,7 @@ FILE fqName: fileName:/class.kt $this: VALUE_PARAMETER name: type: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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/declarations/parameters/constructor.fir.ir.txt b/compiler/testData/ir/irText/declarations/parameters/constructor.fir.ir.txt index 537dde5e766..620ed6cccd0 100644 --- a/compiler/testData/ir/irText/declarations/parameters/constructor.fir.ir.txt +++ b/compiler/testData/ir/irText/declarations/parameters/constructor.fir.ir.txt @@ -7,7 +7,7 @@ FILE fqName: fileName:/constructor.kt VALUE_PARAMETER name:x index:0 type:T1 of .Test1 VALUE_PARAMETER name:y index:1 type:T2 of .Test1 BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test1 modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:T1 of .Test1 visibility:private [final] @@ -33,7 +33,7 @@ FILE fqName: fileName:/constructor.kt receiver: GET_VAR ': .Test1.Test1, T2 of .Test1> declared in .Test1.' type=.Test1.Test1, T2 of .Test1> 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -50,7 +50,7 @@ FILE fqName: fileName:/constructor.kt VALUE_PARAMETER name:x index:0 type:kotlin.Int VALUE_PARAMETER name:y index:1 type:kotlin.String BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test2 modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:y visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:y type:kotlin.String visibility:private [final] @@ -70,7 +70,7 @@ FILE fqName: fileName:/constructor.kt $outer: VALUE_PARAMETER name: type:.Test2 VALUE_PARAMETER name:z index:0 type:Z of .Test2.TestInner BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:TestInner modality:FINAL visibility:public [inner] superTypes:[kotlin.Any]' PROPERTY name:z visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:z type:Z of .Test2.TestInner visibility:private [final] @@ -88,13 +88,13 @@ FILE fqName: fileName:/constructor.kt VALUE_PARAMETER name:z index:0 type:Z of .Test2.TestInner VALUE_PARAMETER name:i index:1 type:kotlin.Int BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor (z: Z of .Test2.TestInner) [primary] declared in .Test2.TestInner' + DELEGATING_CONSTRUCTOR_CALL 'public constructor (z: Z of .Test2.TestInner) declared in .Test2.TestInner' : Z of .Test2.TestInner $this: GET_VAR ': .Test2 declared in .Test2' type=.Test2 origin=null z: GET_VAR 'z: Z of .Test2.TestInner declared in .Test2.TestInner.' type=Z of .Test2.TestInner 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -107,7 +107,7 @@ FILE fqName: fileName:/constructor.kt $this: VALUE_PARAMETER name: type: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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -126,7 +126,7 @@ FILE fqName: fileName:/constructor.kt EXPRESSION_BODY CONST String type=kotlin.String value="" BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test3 modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private [final] @@ -152,7 +152,7 @@ FILE fqName: fileName:/constructor.kt receiver: GET_VAR ': .Test3 declared in .Test3.' type=.Test3 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -169,7 +169,7 @@ FILE fqName: fileName:/constructor.kt CONSTRUCTOR visibility:public <> (x:kotlin.Int) returnType:.Test4.Test4> [primary] VALUE_PARAMETER name:x index:0 type:kotlin.Int BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test4 modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private [final] @@ -188,14 +188,14 @@ FILE fqName: fileName:/constructor.kt EXPRESSION_BODY CONST Int type=kotlin.Int value=42 BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor (x: kotlin.Int) [primary] declared in .Test4' + DELEGATING_CONSTRUCTOR_CALL 'public constructor (x: kotlin.Int) declared in .Test4' : T of .Test4 - x: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUS + x: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUS $this: GET_VAR 'x: kotlin.Int declared in .Test4.' type=kotlin.Int origin=null other: GET_VAR 'y: kotlin.Int declared in .Test4.' type=kotlin.Int 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/declarations/parameters/constructor.ir.txt b/compiler/testData/ir/irText/declarations/parameters/constructor.ir.txt index 944330ff536..5a9f6f4b551 100644 --- a/compiler/testData/ir/irText/declarations/parameters/constructor.ir.txt +++ b/compiler/testData/ir/irText/declarations/parameters/constructor.ir.txt @@ -7,7 +7,7 @@ FILE fqName: fileName:/constructor.kt VALUE_PARAMETER name:x index:0 type:T1 of .Test1 VALUE_PARAMETER name:y index:1 type:T2 of .Test1 BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test1 modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:T1 of .Test1 visibility:private [final] @@ -33,7 +33,7 @@ FILE fqName: fileName:/constructor.kt receiver: GET_VAR ': .Test1.Test1, T2 of .Test1> declared in .Test1.' type=.Test1.Test1, T2 of .Test1> 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -50,7 +50,7 @@ FILE fqName: fileName:/constructor.kt VALUE_PARAMETER name:x index:0 type:kotlin.Int VALUE_PARAMETER name:y index:1 type:kotlin.String BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test2 modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:y visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:y type:kotlin.String visibility:private [final] @@ -70,7 +70,7 @@ FILE fqName: fileName:/constructor.kt $outer: VALUE_PARAMETER name: type:.Test2 VALUE_PARAMETER name:z index:0 type:Z of .Test2.TestInner BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:TestInner modality:FINAL visibility:public [inner] superTypes:[kotlin.Any]' PROPERTY name:z visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:z type:Z of .Test2.TestInner visibility:private [final] @@ -88,13 +88,13 @@ FILE fqName: fileName:/constructor.kt VALUE_PARAMETER name:z index:0 type:Z of .Test2.TestInner VALUE_PARAMETER name:i index:1 type:kotlin.Int BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor (z: Z of .Test2.TestInner) [primary] declared in .Test2.TestInner' + DELEGATING_CONSTRUCTOR_CALL 'public constructor (z: Z of .Test2.TestInner) declared in .Test2.TestInner' : Z of .Test2.TestInner $this: GET_VAR ': .Test2 declared in .Test2.TestInner.' type=.Test2 origin=null z: GET_VAR 'z: Z of .Test2.TestInner declared in .Test2.TestInner.' type=Z of .Test2.TestInner 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -107,7 +107,7 @@ FILE fqName: fileName:/constructor.kt $this: VALUE_PARAMETER name: type: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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -126,7 +126,7 @@ FILE fqName: fileName:/constructor.kt EXPRESSION_BODY CONST String type=kotlin.String value="" BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test3 modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private [final] @@ -152,7 +152,7 @@ FILE fqName: fileName:/constructor.kt receiver: GET_VAR ': .Test3 declared in .Test3.' type=.Test3 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -169,7 +169,7 @@ FILE fqName: fileName:/constructor.kt CONSTRUCTOR visibility:public <> (x:kotlin.Int) returnType:.Test4.Test4> [primary] VALUE_PARAMETER name:x index:0 type:kotlin.Int BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test4 modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private [final] @@ -188,14 +188,14 @@ FILE fqName: fileName:/constructor.kt EXPRESSION_BODY CONST Int type=kotlin.Int value=42 BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor (x: kotlin.Int) [primary] declared in .Test4' + DELEGATING_CONSTRUCTOR_CALL 'public constructor (x: kotlin.Int) declared in .Test4' : T of .Test4 - x: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUS + x: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUS $this: GET_VAR 'x: kotlin.Int declared in .Test4.' type=kotlin.Int origin=null other: GET_VAR 'y: kotlin.Int declared in .Test4.' type=kotlin.Int 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/declarations/parameters/dataClassMembers.fir.ir.txt b/compiler/testData/ir/irText/declarations/parameters/dataClassMembers.fir.ir.txt index 7acbc0c4b8f..b4a08394e1e 100644 --- a/compiler/testData/ir/irText/declarations/parameters/dataClassMembers.fir.ir.txt +++ b/compiler/testData/ir/irText/declarations/parameters/dataClassMembers.fir.ir.txt @@ -8,7 +8,7 @@ FILE fqName: fileName:/dataClassMembers.kt EXPRESSION_BODY CONST String type=kotlin.String value="" BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test modality:FINAL visibility:public [data] superTypes:[kotlin.Any]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:T of .Test visibility:private [final] @@ -35,13 +35,13 @@ FILE fqName: fileName:/dataClassMembers.kt FUN GENERATED_DATA_CLASS_MEMBER name:component1 visibility:public modality:FINAL <> ($this:.Test.Test>) returnType:T of .Test [operator] $this: VALUE_PARAMETER name: type:.Test.Test> BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component1 (): T of .Test [operator] declared in .Test' + RETURN type=kotlin.Nothing from='public final fun component1 (): T of .Test declared in .Test' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:T of .Test visibility:private [final]' type=T of .Test origin=null receiver: GET_VAR ': .Test.Test> declared in .Test.component1' type=.Test.Test> origin=null FUN GENERATED_DATA_CLASS_MEMBER name:component2 visibility:public modality:FINAL <> ($this:.Test.Test>) returnType:kotlin.String [operator] $this: VALUE_PARAMETER name: type:.Test.Test> BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component2 (): kotlin.String [operator] declared in .Test' + RETURN type=kotlin.Nothing from='public final fun component2 (): kotlin.String declared in .Test' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:y type:kotlin.String visibility:private [final]' type=kotlin.String origin=null receiver: GET_VAR ': .Test.Test> declared in .Test.component2' type=.Test.Test> origin=null FUN GENERATED_DATA_CLASS_MEMBER name:copy visibility:public modality:FINAL <> ($this:.Test.Test>, x:T of .Test, y:kotlin.String) returnType:.Test.Test> @@ -56,13 +56,13 @@ FILE fqName: fileName:/dataClassMembers.kt receiver: GET_VAR ': .Test.Test> declared in .Test.copy' type=.Test.Test> origin=null BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun copy (x: T of .Test, y: kotlin.String): .Test.Test> declared in .Test' - CONSTRUCTOR_CALL 'public constructor (x: T of .Test, y: kotlin.String) [primary] declared in .Test' type=.Test.Test> origin=null + CONSTRUCTOR_CALL 'public constructor (x: T of .Test, y: kotlin.String) declared in .Test' type=.Test.Test> origin=null : kotlin.Any x: GET_VAR 'x: T of .Test declared in .Test.copy' type=T of .Test origin=null y: GET_VAR 'y: kotlin.String declared in .Test.copy' type=kotlin.String origin=null FUN GENERATED_DATA_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:.Test.Test>, other:kotlin.Any?) returnType:kotlin.Boolean [operator] overridden: - public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any $this: VALUE_PARAMETER name: type:.Test.Test> VALUE_PARAMETER name:other index:0 type:kotlin.Any? BLOCK_BODY @@ -71,38 +71,38 @@ FILE fqName: fileName:/dataClassMembers.kt 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 ': .Test.Test> declared in .Test.equals' type=.Test.Test> origin=null arg1: GET_VAR 'other: kotlin.Any? declared in .Test.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test' CONST Boolean type=kotlin.Boolean value=true WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=.Test.Test> GET_VAR 'other: kotlin.Any? declared in .Test.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test' CONST Boolean type=kotlin.Boolean value=false VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:.Test.Test> [val] TYPE_OP type=.Test.Test> origin=CAST typeOperand=.Test.Test> GET_VAR 'other: kotlin.Any? declared in .Test.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 + if: CALL 'public final fun not (): kotlin.Boolean 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:x type:T of .Test visibility:private [final]' type=T of .Test origin=null receiver: GET_VAR ': .Test.Test> declared in .Test.equals' type=.Test.Test> origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:T of .Test visibility:private [final]' type=T of .Test origin=null - receiver: GET_VAR 'val tmp_0: .Test.Test> [val] declared in .Test.equals' type=.Test.Test> origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test' + receiver: GET_VAR 'val tmp_0: .Test.Test> declared in .Test.equals' type=.Test.Test> origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test' CONST Boolean type=kotlin.Boolean value=false 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 + if: CALL 'public final fun not (): kotlin.Boolean 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:y type:kotlin.String visibility:private [final]' type=kotlin.String origin=null receiver: GET_VAR ': .Test.Test> declared in .Test.equals' type=.Test.Test> origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:y type:kotlin.String visibility:private [final]' type=kotlin.String origin=null - receiver: GET_VAR 'val tmp_0: .Test.Test> [val] declared in .Test.equals' type=.Test.Test> origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test' + receiver: GET_VAR 'val tmp_0: .Test.Test> declared in .Test.equals' type=.Test.Test> origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test' CONST Boolean type=kotlin.Boolean value=false - RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test' + RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test' CONST Boolean type=kotlin.Boolean value=true FUN GENERATED_DATA_CLASS_MEMBER name:hashCode visibility:public modality:OPEN <> ($this:.Test.Test>) returnType:kotlin.Int overridden: @@ -122,16 +122,16 @@ FILE fqName: fileName:/dataClassMembers.kt then: CALL 'public open fun hashCode (): kotlin.Int declared in kotlin.Any' type=kotlin.Int origin=null $this: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:T of .Test visibility:private [final]' type=T of .Test origin=null receiver: GET_VAR ': .Test.Test> declared in .Test.hashCode' type=.Test.Test> origin=null - SET_VAR 'var result: kotlin.Int [var] declared in .Test.hashCode' type=kotlin.Unit origin=EQ - CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: CALL 'public final fun times (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'var result: kotlin.Int [var] declared in .Test.hashCode' type=kotlin.Int origin=null + SET_VAR 'var result: kotlin.Int declared in .Test.hashCode' type=kotlin.Unit origin=EQ + CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: CALL 'public final fun times (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'var result: kotlin.Int declared in .Test.hashCode' type=kotlin.Int origin=null other: CONST Int type=kotlin.Int value=31 - other: CALL 'public open fun hashCode (): kotlin.Int [fake_override] declared in kotlin.String' type=kotlin.Int origin=null + other: CALL 'public open fun hashCode (): kotlin.Int declared in kotlin.String' type=kotlin.Int origin=null $this: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:y type:kotlin.String visibility:private [final]' type=kotlin.String origin=null receiver: GET_VAR ': .Test.Test> declared in .Test.hashCode' type=.Test.Test> origin=null RETURN type=kotlin.Nothing from='public open fun hashCode (): kotlin.Int declared in .Test' - GET_VAR 'var result: kotlin.Int [var] declared in .Test.hashCode' type=kotlin.Int origin=null + GET_VAR 'var result: kotlin.Int declared in .Test.hashCode' type=kotlin.Int origin=null FUN GENERATED_DATA_CLASS_MEMBER name:toString visibility:public modality:OPEN <> ($this:.Test.Test>) returnType:kotlin.String overridden: public open fun toString (): kotlin.String declared in kotlin.Any diff --git a/compiler/testData/ir/irText/declarations/parameters/dataClassMembers.ir.txt b/compiler/testData/ir/irText/declarations/parameters/dataClassMembers.ir.txt index c748d7e58c2..b98bae6f326 100644 --- a/compiler/testData/ir/irText/declarations/parameters/dataClassMembers.ir.txt +++ b/compiler/testData/ir/irText/declarations/parameters/dataClassMembers.ir.txt @@ -8,7 +8,7 @@ FILE fqName: fileName:/dataClassMembers.kt EXPRESSION_BODY CONST String type=kotlin.String value="" BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test modality:FINAL visibility:public [data] superTypes:[kotlin.Any]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:T of .Test visibility:private [final] @@ -35,13 +35,13 @@ FILE fqName: fileName:/dataClassMembers.kt FUN GENERATED_DATA_CLASS_MEMBER name:component1 visibility:public modality:FINAL <> ($this:.Test.Test>) returnType:T of .Test [operator] $this: VALUE_PARAMETER name: type:.Test.Test> BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component1 (): T of .Test [operator] declared in .Test' + RETURN type=kotlin.Nothing from='public final fun component1 (): T of .Test declared in .Test' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:T of .Test visibility:private [final]' type=T of .Test origin=null receiver: GET_VAR ': .Test.Test> declared in .Test.component1' type=.Test.Test> origin=null FUN GENERATED_DATA_CLASS_MEMBER name:component2 visibility:public modality:FINAL <> ($this:.Test.Test>) returnType:kotlin.String [operator] $this: VALUE_PARAMETER name: type:.Test.Test> BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component2 (): kotlin.String [operator] declared in .Test' + RETURN type=kotlin.Nothing from='public final fun component2 (): kotlin.String declared in .Test' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:y type:kotlin.String visibility:private [final]' type=kotlin.String origin=null receiver: GET_VAR ': .Test.Test> declared in .Test.component2' type=.Test.Test> origin=null FUN GENERATED_DATA_CLASS_MEMBER name:copy visibility:public modality:FINAL <> ($this:.Test.Test>, x:T of .Test, y:kotlin.String) returnType:.Test.Test> @@ -56,7 +56,7 @@ FILE fqName: fileName:/dataClassMembers.kt receiver: GET_VAR ': .Test.Test> declared in .Test.copy' type=.Test.Test> origin=null BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun copy (x: T of .Test, y: kotlin.String): .Test.Test> declared in .Test' - CONSTRUCTOR_CALL 'public constructor (x: T of .Test, y: kotlin.String) [primary] declared in .Test' type=.Test.Test> origin=null + CONSTRUCTOR_CALL 'public constructor (x: T of .Test, y: kotlin.String) declared in .Test' type=.Test.Test> origin=null : T of .Test x: GET_VAR 'x: T of .Test declared in .Test.copy' type=T of .Test origin=null y: GET_VAR 'y: kotlin.String declared in .Test.copy' type=kotlin.String origin=null @@ -94,19 +94,19 @@ FILE fqName: fileName:/dataClassMembers.kt then: CALL 'public open fun hashCode (): kotlin.Int declared in kotlin.Any' type=kotlin.Int origin=null $this: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:T of .Test visibility:private [final]' type=T of .Test origin=null receiver: GET_VAR ': .Test.Test> declared in .Test.hashCode' type=.Test.Test> origin=null - SET_VAR 'var result: kotlin.Int [var] declared in .Test.hashCode' type=kotlin.Unit origin=EQ - CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: CALL 'public final fun times (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'var result: kotlin.Int [var] declared in .Test.hashCode' type=kotlin.Int origin=null + SET_VAR 'var result: kotlin.Int declared in .Test.hashCode' type=kotlin.Unit origin=EQ + CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: CALL 'public final fun times (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'var result: kotlin.Int declared in .Test.hashCode' type=kotlin.Int origin=null other: CONST Int type=kotlin.Int value=31 - other: CALL 'public open fun hashCode (): kotlin.Int [fake_override] declared in kotlin.String' type=kotlin.Int origin=null + other: CALL 'public open fun hashCode (): kotlin.Int declared in kotlin.String' type=kotlin.Int origin=null $this: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:y type:kotlin.String visibility:private [final]' type=kotlin.String origin=null receiver: GET_VAR ': .Test.Test> declared in .Test.hashCode' type=.Test.Test> origin=null RETURN type=kotlin.Nothing from='public open fun hashCode (): kotlin.Int declared in .Test' - GET_VAR 'var result: kotlin.Int [var] declared in .Test.hashCode' type=kotlin.Int origin=null + GET_VAR 'var result: kotlin.Int declared in .Test.hashCode' type=kotlin.Int origin=null FUN GENERATED_DATA_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:.Test.Test>, other:kotlin.Any?) returnType:kotlin.Boolean [operator] overridden: - public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any $this: VALUE_PARAMETER name: type:.Test.Test> VALUE_PARAMETER name:other index:0 type:kotlin.Any? BLOCK_BODY @@ -115,36 +115,36 @@ FILE fqName: fileName:/dataClassMembers.kt 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 ': .Test.Test> declared in .Test.equals' type=.Test.Test> origin=null arg1: GET_VAR 'other: kotlin.Any? declared in .Test.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test' CONST Boolean type=kotlin.Boolean value=true WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=.Test.Test> GET_VAR 'other: kotlin.Any? declared in .Test.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test' CONST Boolean type=kotlin.Boolean value=false VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:.Test.Test> [val] TYPE_OP type=.Test.Test> origin=CAST typeOperand=.Test.Test> GET_VAR 'other: kotlin.Any? declared in .Test.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 + if: CALL 'public final fun not (): kotlin.Boolean 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:x type:T of .Test visibility:private [final]' type=T of .Test origin=null receiver: GET_VAR ': .Test.Test> declared in .Test.equals' type=.Test.Test> origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:T of .Test visibility:private [final]' type=T of .Test origin=null - receiver: GET_VAR 'val tmp_0: .Test.Test> [val] declared in .Test.equals' type=.Test.Test> origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test' + receiver: GET_VAR 'val tmp_0: .Test.Test> declared in .Test.equals' type=.Test.Test> origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test' CONST Boolean type=kotlin.Boolean value=false 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 + if: CALL 'public final fun not (): kotlin.Boolean 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:y type:kotlin.String visibility:private [final]' type=kotlin.String origin=null receiver: GET_VAR ': .Test.Test> declared in .Test.equals' type=.Test.Test> origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:y type:kotlin.String visibility:private [final]' type=kotlin.String origin=null - receiver: GET_VAR 'val tmp_0: .Test.Test> [val] declared in .Test.equals' type=.Test.Test> origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test' + receiver: GET_VAR 'val tmp_0: .Test.Test> declared in .Test.equals' type=.Test.Test> origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test' CONST Boolean type=kotlin.Boolean value=false - RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Test' + RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Test' CONST Boolean type=kotlin.Boolean value=true diff --git a/compiler/testData/ir/irText/declarations/parameters/dataClassMembers.kt b/compiler/testData/ir/irText/declarations/parameters/dataClassMembers.kt index 482d9c3c7f6..eab59030559 100644 --- a/compiler/testData/ir/irText/declarations/parameters/dataClassMembers.kt +++ b/compiler/testData/ir/irText/declarations/parameters/dataClassMembers.kt @@ -1,7 +1,4 @@ -// IGNORE_BACKEND: JS_IR -// IGNORE_BACKEND: JS_IR_ES6 - -// MUTE_SIGNATURE_COMPARISON_K2: ANY +// MUTE_SIGNATURE_COMPARISON_K2: JVM_IR // ^ KT-57429 data class Test(val x: T, val y: String = "") diff --git a/compiler/testData/ir/irText/declarations/parameters/defaultPropertyAccessors.ir.txt b/compiler/testData/ir/irText/declarations/parameters/defaultPropertyAccessors.ir.txt index 04679722547..21b55173b11 100644 --- a/compiler/testData/ir/irText/declarations/parameters/defaultPropertyAccessors.ir.txt +++ b/compiler/testData/ir/irText/declarations/parameters/defaultPropertyAccessors.ir.txt @@ -27,7 +27,7 @@ FILE fqName: fileName:/defaultPropertyAccessors.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Host CONSTRUCTOR visibility:public <> () returnType:.Host [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Host modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:testMember1 visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:testMember1 type:kotlin.Int visibility:private [final] @@ -61,7 +61,7 @@ FILE fqName: fileName:/defaultPropertyAccessors.kt value: GET_VAR ': kotlin.Int declared in .Host.' type=kotlin.Int 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -81,7 +81,7 @@ FILE fqName: fileName:/defaultPropertyAccessors.kt EXPRESSION_BODY CONST Int type=kotlin.Int value=42 BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:InPrimaryCtor modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:testInPrimaryCtor1 visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:testInPrimaryCtor1 type:T of .InPrimaryCtor visibility:private [final] @@ -115,7 +115,7 @@ FILE fqName: fileName:/defaultPropertyAccessors.kt value: GET_VAR ': kotlin.Int declared in .InPrimaryCtor.' type=kotlin.Int 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/declarations/parameters/delegatedMembers.fir.ir.txt b/compiler/testData/ir/irText/declarations/parameters/delegatedMembers.fir.ir.txt index be96ed439b8..c8ce07ea029 100644 --- a/compiler/testData/ir/irText/declarations/parameters/delegatedMembers.fir.ir.txt +++ b/compiler/testData/ir/irText/declarations/parameters/delegatedMembers.fir.ir.txt @@ -16,7 +16,7 @@ FILE fqName: fileName:/delegatedMembers.kt VALUE_PARAMETER name:x index:1 type:X of .IBase.qux 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -33,7 +33,7 @@ FILE fqName: fileName:/delegatedMembers.kt CONSTRUCTOR visibility:public <> (impl:.IBase.Test>) returnType:.Test.Test> [primary] VALUE_PARAMETER name:impl index:0 type:.IBase.Test> BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test modality:FINAL visibility:public superTypes:[.IBase.Test>]' FUN DELEGATED_MEMBER name:foo visibility:public modality:OPEN <> ($this:.Test.Test>, x:kotlin.Int) returnType:kotlin.Unit overridden: @@ -61,7 +61,7 @@ FILE fqName: fileName:/delegatedMembers.kt x: GET_VAR 'x: X of .Test.qux declared in .Test.qux' type=X of .Test.qux origin=null PROPERTY DELEGATED_MEMBER name:bar visibility:public modality:OPEN [val] overridden: - public abstract bar: kotlin.Int [val] + public abstract bar: kotlin.Int FUN DELEGATED_MEMBER name: visibility:public modality:OPEN <> ($this:.Test.Test>) returnType:kotlin.Int correspondingProperty: PROPERTY DELEGATED_MEMBER name:bar visibility:public modality:OPEN [val] overridden: @@ -77,14 +77,14 @@ FILE fqName: fileName:/delegatedMembers.kt GET_VAR 'impl: .IBase.Test> declared in .Test.' type=.IBase.Test> 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 [fake_override,operator] declared in .IBase + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IBase $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 .IBase + public open fun hashCode (): kotlin.Int declared in .IBase $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 .IBase + public open fun toString (): kotlin.String declared in .IBase $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/declarations/parameters/delegatedMembers.ir.txt b/compiler/testData/ir/irText/declarations/parameters/delegatedMembers.ir.txt index 33bdeb983dd..462d54084dc 100644 --- a/compiler/testData/ir/irText/declarations/parameters/delegatedMembers.ir.txt +++ b/compiler/testData/ir/irText/declarations/parameters/delegatedMembers.ir.txt @@ -16,7 +16,7 @@ FILE fqName: fileName:/delegatedMembers.kt VALUE_PARAMETER name:x index:1 type:X of .IBase.qux 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -33,14 +33,14 @@ FILE fqName: fileName:/delegatedMembers.kt CONSTRUCTOR visibility:public <> (impl:.IBase.Test>) returnType:.Test.Test> [primary] VALUE_PARAMETER name:impl index:0 type:.IBase.Test> BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test modality:FINAL visibility:public superTypes:[.IBase.Test>]' FIELD DELEGATE name:$$delegate_0 type:.IBase.Test> visibility:private [final] EXPRESSION_BODY GET_VAR 'impl: .IBase.Test> declared in .Test.' type=.IBase.Test> origin=null PROPERTY DELEGATED_MEMBER name:bar visibility:public modality:OPEN [val] overridden: - public abstract bar: kotlin.Int [val] + public abstract bar: kotlin.Int FUN DELEGATED_MEMBER name: visibility:public modality:OPEN <> ($this:.Test.Test>) returnType:kotlin.Int correspondingProperty: PROPERTY DELEGATED_MEMBER name:bar visibility:public modality:OPEN [val] overridden: @@ -77,14 +77,14 @@ FILE fqName: fileName:/delegatedMembers.kt x: GET_VAR 'x: X of .Test.qux declared in .Test.qux' type=X of .Test.qux 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 [fake_override,operator] declared in .IBase + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IBase $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 .IBase + public open fun hashCode (): kotlin.Int declared in .IBase $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 .IBase + public open fun toString (): kotlin.String declared in .IBase $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/declarations/parameters/fun.ir.txt b/compiler/testData/ir/irText/declarations/parameters/fun.ir.txt index 262dfe390ed..8e34a76ab23 100644 --- a/compiler/testData/ir/irText/declarations/parameters/fun.ir.txt +++ b/compiler/testData/ir/irText/declarations/parameters/fun.ir.txt @@ -24,7 +24,7 @@ FILE fqName: fileName:/fun.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Host CONSTRUCTOR visibility:public <> () returnType:.Host [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Host modality:FINAL visibility:public superTypes:[kotlin.Any]' FUN name:testMembetExt1 visibility:public modality:FINAL <> ($this:.Host, $receiver:kotlin.String, i:kotlin.Int, j:kotlin.String) returnType:kotlin.Unit $this: VALUE_PARAMETER name: type:.Host @@ -41,7 +41,7 @@ FILE fqName: fileName:/fun.kt 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/declarations/parameters/genericInnerClass.ir.txt b/compiler/testData/ir/irText/declarations/parameters/genericInnerClass.ir.txt index 83d9255ac4e..a9862617988 100644 --- a/compiler/testData/ir/irText/declarations/parameters/genericInnerClass.ir.txt +++ b/compiler/testData/ir/irText/declarations/parameters/genericInnerClass.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/genericInnerClass.kt TYPE_PARAMETER name:T1 index:0 variance: superTypes:[kotlin.Any?] reified:false CONSTRUCTOR visibility:public <> () returnType:.Outer.Outer> [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Outer modality:FINAL visibility:public superTypes:[kotlin.Any]' CLASS CLASS name:Inner modality:FINAL visibility:public [inner] superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Outer.Inner.Outer.Inner, T1 of .Outer> @@ -12,7 +12,7 @@ FILE fqName: fileName:/genericInnerClass.kt CONSTRUCTOR visibility:public <> ($this:.Outer.Outer>) returnType:.Outer.Inner.Outer.Inner, T1 of .Outer> [primary] $outer: VALUE_PARAMETER name: type:.Outer.Outer> BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Inner modality:FINAL visibility:public [inner] superTypes:[kotlin.Any]' FUN name:foo visibility:public modality:FINAL <> ($this:.Outer.Inner.Outer.Inner, T1 of .Outer>, x1:T1 of .Outer, x2:T2 of .Outer.Inner) returnType:kotlin.Unit $this: VALUE_PARAMETER name: type:.Outer.Inner.Outer.Inner, T1 of .Outer> @@ -21,7 +21,7 @@ FILE fqName: fileName:/genericInnerClass.kt 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -34,7 +34,7 @@ FILE fqName: fileName:/genericInnerClass.kt $this: VALUE_PARAMETER name: type: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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/declarations/parameters/propertyAccessors.ir.txt b/compiler/testData/ir/irText/declarations/parameters/propertyAccessors.ir.txt index 8e9b1494f5d..92c45ba001a 100644 --- a/compiler/testData/ir/irText/declarations/parameters/propertyAccessors.ir.txt +++ b/compiler/testData/ir/irText/declarations/parameters/propertyAccessors.ir.txt @@ -61,7 +61,7 @@ FILE fqName: fileName:/propertyAccessors.kt TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false CONSTRUCTOR visibility:public <> () returnType:.Host.Host> [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Host modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:testMem1 visibility:public modality:FINAL [val] FUN name: visibility:public modality:FINAL <> ($this:.Host.Host>) returnType:kotlin.Int @@ -131,7 +131,7 @@ FILE fqName: fileName:/propertyAccessors.kt 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/declarations/parameters/typeParameterBeforeBound.ir.txt b/compiler/testData/ir/irText/declarations/parameters/typeParameterBeforeBound.ir.txt index db3f3239887..a2595012155 100644 --- a/compiler/testData/ir/irText/declarations/parameters/typeParameterBeforeBound.ir.txt +++ b/compiler/testData/ir/irText/declarations/parameters/typeParameterBeforeBound.ir.txt @@ -5,11 +5,11 @@ FILE fqName: fileName:/typeParameterBeforeBound.kt TYPE_PARAMETER name:U index:1 variance: superTypes:[kotlin.Any?] reified:false CONSTRUCTOR visibility:public <> () returnType:.Test1.Test1, U of .Test1> [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test1 modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/declarations/parameters/typeParameterBoundedBySubclass.ir.txt b/compiler/testData/ir/irText/declarations/parameters/typeParameterBoundedBySubclass.ir.txt index 0dba489d4f4..e320e772d62 100644 --- a/compiler/testData/ir/irText/declarations/parameters/typeParameterBoundedBySubclass.ir.txt +++ b/compiler/testData/ir/irText/declarations/parameters/typeParameterBoundedBySubclass.ir.txt @@ -4,11 +4,11 @@ FILE fqName: fileName:/typeParameterBoundedBySubclass.kt TYPE_PARAMETER name:T index:0 variance: superTypes:[.Derived1] reified:false CONSTRUCTOR visibility:public <> () returnType:.Base1.Base1> [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Base1 modality:ABSTRACT 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -23,27 +23,27 @@ FILE fqName: fileName:/typeParameterBoundedBySubclass.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Derived1 CONSTRUCTOR visibility:public <> () returnType:.Derived1 [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .Base1' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .Base1' : .Derived1 INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Derived1 modality:FINAL visibility:public superTypes:[.Base1<.Derived1>]' 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 .Base1 + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Base1 $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 .Base1 + public open fun hashCode (): kotlin.Int declared in .Base1 $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 .Base1 + public open fun toString (): kotlin.String declared in .Base1 $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:Base2 modality:ABSTRACT visibility:public superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Base2 CONSTRUCTOR visibility:public <> () returnType:.Base2 [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Base2 modality:ABSTRACT visibility:public superTypes:[kotlin.Any]' FUN name:foo visibility:public modality:FINAL ($this:.Base2, x:T of .Base2.foo) returnType:kotlin.Unit TYPE_PARAMETER name:T index:0 variance: superTypes:[.Derived2] reified:false @@ -52,7 +52,7 @@ FILE fqName: fileName:/typeParameterBoundedBySubclass.kt 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -67,7 +67,7 @@ FILE fqName: fileName:/typeParameterBoundedBySubclass.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Derived2 CONSTRUCTOR visibility:public <> () returnType:.Derived2 [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .Base2' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .Base2' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Derived2 modality:FINAL visibility:public superTypes:[.Base2]' FUN FAKE_OVERRIDE name:foo visibility:public modality:FINAL ($this:.Base2, x:T of .Derived2.foo) returnType:kotlin.Unit [fake_override] overridden: @@ -77,14 +77,14 @@ FILE fqName: fileName:/typeParameterBoundedBySubclass.kt VALUE_PARAMETER name:x index:0 type:T of .Derived2.foo 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 .Base2 + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Base2 $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 .Base2 + public open fun hashCode (): kotlin.Int declared in .Base2 $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 .Base2 + public open fun toString (): kotlin.String declared in .Base2 $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/declarations/parameters/useNextParamInLambda.ir.txt b/compiler/testData/ir/irText/declarations/parameters/useNextParamInLambda.ir.txt index b6b6fa4b19f..4fd4f81b539 100644 --- a/compiler/testData/ir/irText/declarations/parameters/useNextParamInLambda.ir.txt +++ b/compiler/testData/ir/irText/declarations/parameters/useNextParamInLambda.ir.txt @@ -6,7 +6,7 @@ FILE fqName: fileName:/useNextParamInLambda.kt FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:kotlin.String BLOCK_BODY RETURN type=kotlin.Nothing from='local final fun (): kotlin.String declared in .f' - CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=kotlin.String origin=INVOKE + CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=kotlin.String origin=INVOKE $this: GET_VAR 'f2: kotlin.Function0 declared in .f' type=kotlin.Function0 origin=VARIABLE_AS_FUNCTION VALUE_PARAMETER name:f2 index:1 type:kotlin.Function0 EXPRESSION_BODY @@ -17,7 +17,7 @@ FILE fqName: fileName:/useNextParamInLambda.kt CONST String type=kotlin.String value="FAIL" BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun f (f1: kotlin.Function0, f2: kotlin.Function0): kotlin.String declared in ' - CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=kotlin.String origin=INVOKE + CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=kotlin.String origin=INVOKE $this: GET_VAR 'f1: kotlin.Function0 declared in .f' type=kotlin.Function0 origin=VARIABLE_AS_FUNCTION FUN name:box visibility:public modality:FINAL <> () returnType:kotlin.String BLOCK_BODY @@ -27,13 +27,13 @@ FILE fqName: fileName:/useNextParamInLambda.kt try: BLOCK type=kotlin.Unit origin=null TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit CALL 'public final fun f (f1: kotlin.Function0, f2: kotlin.Function0): kotlin.String declared in ' type=kotlin.String origin=null - CATCH parameter=val e: java.lang.Exception{ kotlin.Exception } [val] declared in .box + CATCH parameter=val e: java.lang.Exception{ kotlin.Exception } declared in .box VAR CATCH_PARAMETER name:e type:java.lang.Exception{ kotlin.Exception } [val] BLOCK type=kotlin.Unit origin=null - SET_VAR 'var result: kotlin.String [var] declared in .box' type=kotlin.Unit origin=EQ + SET_VAR 'var result: kotlin.String declared in .box' type=kotlin.Unit origin=EQ CONST String type=kotlin.String value="OK" RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' - CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS + CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS $this: CALL 'public final fun f (f1: kotlin.Function0, f2: kotlin.Function0): kotlin.String declared in ' type=kotlin.String origin=null f2: FUN_EXPR type=kotlin.Function0 origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:kotlin.String diff --git a/compiler/testData/ir/irText/declarations/primaryCtorDefaultArguments.ir.txt b/compiler/testData/ir/irText/declarations/primaryCtorDefaultArguments.ir.txt index 9ba8f89e42e..86b136022db 100644 --- a/compiler/testData/ir/irText/declarations/primaryCtorDefaultArguments.ir.txt +++ b/compiler/testData/ir/irText/declarations/primaryCtorDefaultArguments.ir.txt @@ -6,7 +6,7 @@ FILE fqName: fileName:/primaryCtorDefaultArguments.kt EXPRESSION_BODY CONST Int type=kotlin.Int value=0 BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private [final] @@ -21,7 +21,7 @@ FILE fqName: fileName:/primaryCtorDefaultArguments.kt receiver: GET_VAR ': .Test declared in .Test.' type=.Test 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/declarations/primaryCtorProperties.ir.txt b/compiler/testData/ir/irText/declarations/primaryCtorProperties.ir.txt index afb31633f4e..61b76b71401 100644 --- a/compiler/testData/ir/irText/declarations/primaryCtorProperties.ir.txt +++ b/compiler/testData/ir/irText/declarations/primaryCtorProperties.ir.txt @@ -5,7 +5,7 @@ FILE fqName: fileName:/primaryCtorProperties.kt VALUE_PARAMETER name:test1 index:0 type:kotlin.Int VALUE_PARAMETER name:test2 index:1 type:kotlin.Int BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:test1 visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:test1 type:kotlin.Int visibility:private [final] @@ -39,7 +39,7 @@ FILE fqName: fileName:/primaryCtorProperties.kt value: GET_VAR ': kotlin.Int declared in .C.' type=kotlin.Int 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/declarations/provideDelegate/differentReceivers.ir.txt b/compiler/testData/ir/irText/declarations/provideDelegate/differentReceivers.ir.txt index e18f3a05fa2..7dbd0aab1fd 100644 --- a/compiler/testData/ir/irText/declarations/provideDelegate/differentReceivers.ir.txt +++ b/compiler/testData/ir/irText/declarations/provideDelegate/differentReceivers.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/differentReceivers.kt CONSTRUCTOR visibility:public <> (value:kotlin.String) returnType:.MyClass [primary] VALUE_PARAMETER name:value index:0 type:kotlin.String BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:MyClass modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:value visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:value type:kotlin.String visibility:private [final] @@ -19,7 +19,7 @@ FILE fqName: fileName:/differentReceivers.kt receiver: GET_VAR ': .MyClass declared in .MyClass.' type=.MyClass 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -35,7 +35,7 @@ FILE fqName: fileName:/differentReceivers.kt VALUE_PARAMETER name:host index:0 type:kotlin.Any? VALUE_PARAMETER name:p index:1 type:kotlin.Any BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun provideDelegate (host: kotlin.Any?, p: kotlin.Any): kotlin.String [operator] declared in ' + RETURN type=kotlin.Nothing from='public final fun provideDelegate (host: kotlin.Any?, p: kotlin.Any): kotlin.String declared in ' CALL 'public final fun (): kotlin.String declared in .MyClass' type=kotlin.String origin=GET_PROPERTY $this: GET_VAR ': .MyClass declared in .provideDelegate' type=.MyClass origin=null FUN name:getValue visibility:public modality:FINAL <> ($receiver:kotlin.String, receiver:kotlin.Any?, p:kotlin.Any) returnType:kotlin.String [operator] @@ -43,24 +43,24 @@ FILE fqName: fileName:/differentReceivers.kt VALUE_PARAMETER name:receiver index:0 type:kotlin.Any? VALUE_PARAMETER name:p index:1 type:kotlin.Any BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun getValue (receiver: kotlin.Any?, p: kotlin.Any): kotlin.String [operator] declared in ' + RETURN type=kotlin.Nothing from='public final fun getValue (receiver: kotlin.Any?, p: kotlin.Any): kotlin.String declared in ' GET_VAR ': kotlin.String declared in .getValue' type=kotlin.String origin=null PROPERTY name:testO visibility:public modality:FINAL [delegated,val] FIELD PROPERTY_DELEGATE name:testO$delegate type:kotlin.String visibility:private [final,static] EXPRESSION_BODY - CALL 'public final fun provideDelegate (host: kotlin.Any?, p: kotlin.Any): kotlin.String [operator] declared in ' type=kotlin.String origin=null - $receiver: CONSTRUCTOR_CALL 'public constructor (value: kotlin.String) [primary] declared in .MyClass' type=.MyClass origin=null + CALL 'public final fun provideDelegate (host: kotlin.Any?, p: kotlin.Any): kotlin.String declared in ' type=kotlin.String origin=null + $receiver: CONSTRUCTOR_CALL 'public constructor (value: kotlin.String) declared in .MyClass' type=.MyClass origin=null value: CONST String type=kotlin.String value="O" host: CONST Null type=kotlin.Nothing? value=null - p: PROPERTY_REFERENCE 'public final testO: kotlin.String [delegated,val]' field=null getter='public final fun (): kotlin.String declared in ' setter=null type=kotlin.reflect.KProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE + p: PROPERTY_REFERENCE 'public final testO: kotlin.String' field=null getter='public final fun (): kotlin.String declared in ' setter=null type=kotlin.reflect.KProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:kotlin.String correspondingProperty: PROPERTY name:testO visibility:public modality:FINAL [delegated,val] BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun (): kotlin.String declared in ' - CALL 'public final fun getValue (receiver: kotlin.Any?, p: kotlin.Any): kotlin.String [operator] declared in ' type=kotlin.String origin=null + CALL 'public final fun getValue (receiver: kotlin.Any?, p: kotlin.Any): kotlin.String declared in ' type=kotlin.String origin=null $receiver: GET_FIELD 'FIELD PROPERTY_DELEGATE name:testO$delegate type:kotlin.String visibility:private [final,static]' type=kotlin.String origin=null receiver: CONST Null type=kotlin.Nothing? value=null - p: PROPERTY_REFERENCE 'public final testO: kotlin.String [delegated,val]' field=null getter='public final fun (): kotlin.String declared in ' setter=null type=kotlin.reflect.KProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE + p: PROPERTY_REFERENCE 'public final testO: kotlin.String' field=null getter='public final fun (): kotlin.String declared in ' setter=null type=kotlin.reflect.KProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE PROPERTY name:testK visibility:public modality:FINAL [delegated,val] FIELD PROPERTY_DELEGATE name:testK$delegate type:kotlin.String visibility:private [final,static] EXPRESSION_BODY @@ -69,14 +69,14 @@ FILE fqName: fileName:/differentReceivers.kt correspondingProperty: PROPERTY name:testK visibility:public modality:FINAL [delegated,val] BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun (): kotlin.String declared in ' - CALL 'public final fun getValue (receiver: kotlin.Any?, p: kotlin.Any): kotlin.String [operator] declared in ' type=kotlin.String origin=null + CALL 'public final fun getValue (receiver: kotlin.Any?, p: kotlin.Any): kotlin.String declared in ' type=kotlin.String origin=null $receiver: GET_FIELD 'FIELD PROPERTY_DELEGATE name:testK$delegate type:kotlin.String visibility:private [final,static]' type=kotlin.String origin=null receiver: CONST Null type=kotlin.Nothing? value=null - p: PROPERTY_REFERENCE 'public final testK: kotlin.String [delegated,val]' field=null getter='public final fun (): kotlin.String declared in ' setter=null type=kotlin.reflect.KProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE + p: PROPERTY_REFERENCE 'public final testK: kotlin.String' field=null getter='public final fun (): kotlin.String declared in ' setter=null type=kotlin.reflect.KProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE PROPERTY name:testOK visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:testOK type:kotlin.String visibility:private [final,static] EXPRESSION_BODY - CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS + CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS $this: CALL 'public final fun (): kotlin.String declared in ' type=kotlin.String origin=GET_PROPERTY other: CALL 'public final fun (): kotlin.String declared in ' type=kotlin.String origin=GET_PROPERTY FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:kotlin.String diff --git a/compiler/testData/ir/irText/declarations/provideDelegate/javaDelegate.fir.ir.txt b/compiler/testData/ir/irText/declarations/provideDelegate/javaDelegate.fir.ir.txt index ebc177f1e14..787234bc391 100644 --- a/compiler/testData/ir/irText/declarations/provideDelegate/javaDelegate.fir.ir.txt +++ b/compiler/testData/ir/irText/declarations/provideDelegate/javaDelegate.fir.ir.txt @@ -2,50 +2,50 @@ FILE fqName:k fileName:/box.kt PROPERTY name:p1 visibility:public modality:FINAL [delegated,var] FIELD PROPERTY_DELEGATE name:p1$delegate type:kotlin.reflect.KMutableProperty0<@[FlexibleNullability] kotlin.String?> visibility:private [final,static] EXPRESSION_BODY - PROPERTY_REFERENCE 'public open foo: @[FlexibleNullability] kotlin.String? [var]' field=null getter='public open fun (): @[FlexibleNullability] kotlin.String? declared in .J' setter='public open fun (s: @[FlexibleNullability] kotlin.String?): kotlin.Unit declared in .J' type=kotlin.reflect.KMutableProperty0<@[FlexibleNullability] kotlin.String?> origin=null - $this: CONSTRUCTOR_CALL 'public constructor () [primary] declared in .J' type=.J origin=null + PROPERTY_REFERENCE 'public open foo: @[FlexibleNullability] kotlin.String?' field=null getter='public open fun (): @[FlexibleNullability] kotlin.String? declared in .J' setter='public open fun (s: @[FlexibleNullability] kotlin.String?): kotlin.Unit declared in .J' type=kotlin.reflect.KMutableProperty0<@[FlexibleNullability] kotlin.String?> origin=null + $this: CONSTRUCTOR_CALL 'public constructor () declared in .J' type=.J origin=null FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:@[FlexibleNullability] kotlin.String? correspondingProperty: PROPERTY name:p1 visibility:public modality:FINAL [delegated,var] BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun (): @[FlexibleNullability] kotlin.String? declared in k' - CALL 'public final fun getValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): V of kotlin.getValue [inline,operator] declared in kotlin' type=@[FlexibleNullability] kotlin.String? origin=null + CALL 'public final fun getValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): V of kotlin.getValue declared in kotlin' type=@[FlexibleNullability] kotlin.String? origin=null : @[FlexibleNullability] kotlin.String? $receiver: GET_FIELD 'FIELD PROPERTY_DELEGATE name:p1$delegate type:kotlin.reflect.KMutableProperty0<@[FlexibleNullability] kotlin.String?> visibility:private [final,static]' type=kotlin.reflect.KMutableProperty0<@[FlexibleNullability] kotlin.String?> origin=null thisRef: CONST Null type=kotlin.Nothing? value=null - property: PROPERTY_REFERENCE 'public final p1: @[FlexibleNullability] kotlin.String? [delegated,var]' field=null getter='public final fun (): @[FlexibleNullability] kotlin.String? declared in k' setter='public final fun (: @[FlexibleNullability] kotlin.String?): kotlin.Unit declared in k' type=kotlin.reflect.KMutableProperty0<@[FlexibleNullability] kotlin.String?> origin=PROPERTY_REFERENCE_FOR_DELEGATE + property: PROPERTY_REFERENCE 'public final p1: @[FlexibleNullability] kotlin.String?' field=null getter='public final fun (): @[FlexibleNullability] kotlin.String? declared in k' setter='public final fun (: @[FlexibleNullability] kotlin.String?): kotlin.Unit declared in k' type=kotlin.reflect.KMutableProperty0<@[FlexibleNullability] kotlin.String?> origin=PROPERTY_REFERENCE_FOR_DELEGATE FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> (:@[FlexibleNullability] kotlin.String?) returnType:kotlin.Unit correspondingProperty: PROPERTY name:p1 visibility:public modality:FINAL [delegated,var] VALUE_PARAMETER name: index:0 type:@[FlexibleNullability] kotlin.String? BLOCK_BODY - CALL 'public final fun setValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>, value: V of kotlin.setValue): kotlin.Unit [inline,operator] declared in kotlin' type=kotlin.Unit origin=null + CALL 'public final fun setValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>, value: V of kotlin.setValue): kotlin.Unit declared in kotlin' type=kotlin.Unit origin=null : @[FlexibleNullability] kotlin.String? $receiver: GET_FIELD 'FIELD PROPERTY_DELEGATE name:p1$delegate type:kotlin.reflect.KMutableProperty0<@[FlexibleNullability] kotlin.String?> visibility:private [final,static]' type=kotlin.reflect.KMutableProperty0<@[FlexibleNullability] kotlin.String?> origin=null thisRef: CONST Null type=kotlin.Nothing? value=null - property: PROPERTY_REFERENCE 'public final p1: @[FlexibleNullability] kotlin.String? [delegated,var]' field=null getter='public final fun (): @[FlexibleNullability] kotlin.String? declared in k' setter='public final fun (: @[FlexibleNullability] kotlin.String?): kotlin.Unit declared in k' type=kotlin.reflect.KMutableProperty0<@[FlexibleNullability] kotlin.String?> origin=PROPERTY_REFERENCE_FOR_DELEGATE + property: PROPERTY_REFERENCE 'public final p1: @[FlexibleNullability] kotlin.String?' field=null getter='public final fun (): @[FlexibleNullability] kotlin.String? declared in k' setter='public final fun (: @[FlexibleNullability] kotlin.String?): kotlin.Unit declared in k' type=kotlin.reflect.KMutableProperty0<@[FlexibleNullability] kotlin.String?> origin=PROPERTY_REFERENCE_FOR_DELEGATE value: GET_VAR ': @[FlexibleNullability] kotlin.String? declared in k.' type=@[FlexibleNullability] kotlin.String? origin=null PROPERTY name:p2 visibility:public modality:FINAL [delegated,var] FIELD PROPERTY_DELEGATE name:p2$delegate type:kotlin.reflect.KMutableProperty0<@[FlexibleNullability] kotlin.String?> visibility:private [final,static] EXPRESSION_BODY - PROPERTY_REFERENCE 'public open foo: @[FlexibleNullability] kotlin.String? [var]' field=null getter='public open fun (): @[FlexibleNullability] kotlin.String? declared in .J' setter='public open fun (s: @[FlexibleNullability] kotlin.String?): kotlin.Unit declared in .J' type=kotlin.reflect.KMutableProperty0<@[FlexibleNullability] kotlin.String?> origin=null - $this: CONSTRUCTOR_CALL 'public constructor () [primary] declared in .J' type=.J origin=null + PROPERTY_REFERENCE 'public open foo: @[FlexibleNullability] kotlin.String?' field=null getter='public open fun (): @[FlexibleNullability] kotlin.String? declared in .J' setter='public open fun (s: @[FlexibleNullability] kotlin.String?): kotlin.Unit declared in .J' type=kotlin.reflect.KMutableProperty0<@[FlexibleNullability] kotlin.String?> origin=null + $this: CONSTRUCTOR_CALL 'public constructor () declared in .J' type=.J origin=null FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:@[FlexibleNullability] kotlin.String? correspondingProperty: PROPERTY name:p2 visibility:public modality:FINAL [delegated,var] BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun (): @[FlexibleNullability] kotlin.String? declared in k' - CALL 'public final fun getValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): V of kotlin.getValue [inline,operator] declared in kotlin' type=@[FlexibleNullability] kotlin.String? origin=null + CALL 'public final fun getValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): V of kotlin.getValue declared in kotlin' type=@[FlexibleNullability] kotlin.String? origin=null : @[FlexibleNullability] kotlin.String? $receiver: GET_FIELD 'FIELD PROPERTY_DELEGATE name:p2$delegate type:kotlin.reflect.KMutableProperty0<@[FlexibleNullability] kotlin.String?> visibility:private [final,static]' type=kotlin.reflect.KMutableProperty0<@[FlexibleNullability] kotlin.String?> origin=null thisRef: CONST Null type=kotlin.Nothing? value=null - property: PROPERTY_REFERENCE 'public final p2: @[FlexibleNullability] kotlin.String? [delegated,var]' field=null getter='public final fun (): @[FlexibleNullability] kotlin.String? declared in k' setter='public final fun (: @[FlexibleNullability] kotlin.String?): kotlin.Unit declared in k' type=kotlin.reflect.KMutableProperty0<@[FlexibleNullability] kotlin.String?> origin=PROPERTY_REFERENCE_FOR_DELEGATE + property: PROPERTY_REFERENCE 'public final p2: @[FlexibleNullability] kotlin.String?' field=null getter='public final fun (): @[FlexibleNullability] kotlin.String? declared in k' setter='public final fun (: @[FlexibleNullability] kotlin.String?): kotlin.Unit declared in k' type=kotlin.reflect.KMutableProperty0<@[FlexibleNullability] kotlin.String?> origin=PROPERTY_REFERENCE_FOR_DELEGATE FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> (:@[FlexibleNullability] kotlin.String?) returnType:kotlin.Unit correspondingProperty: PROPERTY name:p2 visibility:public modality:FINAL [delegated,var] VALUE_PARAMETER name: index:0 type:@[FlexibleNullability] kotlin.String? BLOCK_BODY - CALL 'public final fun setValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>, value: V of kotlin.setValue): kotlin.Unit [inline,operator] declared in kotlin' type=kotlin.Unit origin=null + CALL 'public final fun setValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>, value: V of kotlin.setValue): kotlin.Unit declared in kotlin' type=kotlin.Unit origin=null : @[FlexibleNullability] kotlin.String? $receiver: GET_FIELD 'FIELD PROPERTY_DELEGATE name:p2$delegate type:kotlin.reflect.KMutableProperty0<@[FlexibleNullability] kotlin.String?> visibility:private [final,static]' type=kotlin.reflect.KMutableProperty0<@[FlexibleNullability] kotlin.String?> origin=null thisRef: CONST Null type=kotlin.Nothing? value=null - property: PROPERTY_REFERENCE 'public final p2: @[FlexibleNullability] kotlin.String? [delegated,var]' field=null getter='public final fun (): @[FlexibleNullability] kotlin.String? declared in k' setter='public final fun (: @[FlexibleNullability] kotlin.String?): kotlin.Unit declared in k' type=kotlin.reflect.KMutableProperty0<@[FlexibleNullability] kotlin.String?> origin=PROPERTY_REFERENCE_FOR_DELEGATE + property: PROPERTY_REFERENCE 'public final p2: @[FlexibleNullability] kotlin.String?' field=null getter='public final fun (): @[FlexibleNullability] kotlin.String? declared in k' setter='public final fun (: @[FlexibleNullability] kotlin.String?): kotlin.Unit declared in k' type=kotlin.reflect.KMutableProperty0<@[FlexibleNullability] kotlin.String?> origin=PROPERTY_REFERENCE_FOR_DELEGATE value: GET_VAR ': @[FlexibleNullability] kotlin.String? declared in k.' type=@[FlexibleNullability] kotlin.String? origin=null FUN name:box visibility:public modality:FINAL <> () returnType:kotlin.String BLOCK_BODY @@ -54,6 +54,6 @@ FILE fqName:k fileName:/box.kt CALL 'public final fun (: @[FlexibleNullability] kotlin.String?): kotlin.Unit declared in k' type=kotlin.Unit origin=EQ : CONST String type=kotlin.String value="K" RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in k' - CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS + CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS $this: CALL 'public final fun (): @[FlexibleNullability] kotlin.String? declared in k' type=@[FlexibleNullability] kotlin.String? origin=GET_PROPERTY other: CALL 'public final fun (): @[FlexibleNullability] kotlin.String? declared in k' type=@[FlexibleNullability] kotlin.String? origin=GET_PROPERTY diff --git a/compiler/testData/ir/irText/declarations/provideDelegate/javaDelegate.ir.txt b/compiler/testData/ir/irText/declarations/provideDelegate/javaDelegate.ir.txt index 2fdd9dc3a60..a03917638b4 100644 --- a/compiler/testData/ir/irText/declarations/provideDelegate/javaDelegate.ir.txt +++ b/compiler/testData/ir/irText/declarations/provideDelegate/javaDelegate.ir.txt @@ -2,52 +2,52 @@ FILE fqName:k fileName:/box.kt PROPERTY name:p1 visibility:public modality:FINAL [delegated,var] FIELD PROPERTY_DELEGATE name:p1$delegate type:kotlin.reflect.KMutableProperty0<@[FlexibleNullability] kotlin.String?> visibility:private [final,static] EXPRESSION_BODY - PROPERTY_REFERENCE 'public final foo [var]' field=null getter='public open fun getFoo (): @[FlexibleNullability] kotlin.String? declared in .J' setter='public open fun setFoo (s: @[FlexibleNullability] kotlin.String?): kotlin.Unit declared in .J' type=kotlin.reflect.KMutableProperty0<@[FlexibleNullability] kotlin.String?> origin=null - $receiver: CONSTRUCTOR_CALL 'public constructor () [primary] declared in .J' type=.J origin=null + PROPERTY_REFERENCE 'public final foo' field=null getter='public open fun getFoo (): @[FlexibleNullability] kotlin.String? declared in .J' setter='public open fun setFoo (s: @[FlexibleNullability] kotlin.String?): kotlin.Unit declared in .J' type=kotlin.reflect.KMutableProperty0<@[FlexibleNullability] kotlin.String?> origin=null + $receiver: CONSTRUCTOR_CALL 'public constructor () declared in .J' type=.J origin=null FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:@[FlexibleNullability] kotlin.String? correspondingProperty: PROPERTY name:p1 visibility:public modality:FINAL [delegated,var] BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun (): @[FlexibleNullability] kotlin.String? declared in k' - CALL 'public final fun getValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): V of kotlin.getValue [inline,operator] declared in kotlin' type=@[FlexibleNullability] kotlin.String? origin=null + CALL 'public final fun getValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): V of kotlin.getValue declared in kotlin' type=@[FlexibleNullability] kotlin.String? origin=null : @[FlexibleNullability] kotlin.String? $receiver: GET_FIELD 'FIELD PROPERTY_DELEGATE name:p1$delegate type:kotlin.reflect.KMutableProperty0<@[FlexibleNullability] kotlin.String?> visibility:private [final,static]' type=kotlin.reflect.KMutableProperty0<@[FlexibleNullability] kotlin.String?> origin=null thisRef: CONST Null type=kotlin.Nothing? value=null - property: PROPERTY_REFERENCE 'public final p1: @[FlexibleNullability] kotlin.String? [delegated,var]' field=null getter='public final fun (): @[FlexibleNullability] kotlin.String? declared in k' setter='public final fun (: @[FlexibleNullability] kotlin.String?): kotlin.Unit declared in k' type=kotlin.reflect.KMutableProperty0<@[FlexibleNullability] kotlin.String?> origin=PROPERTY_REFERENCE_FOR_DELEGATE + property: PROPERTY_REFERENCE 'public final p1: @[FlexibleNullability] kotlin.String?' field=null getter='public final fun (): @[FlexibleNullability] kotlin.String? declared in k' setter='public final fun (: @[FlexibleNullability] kotlin.String?): kotlin.Unit declared in k' type=kotlin.reflect.KMutableProperty0<@[FlexibleNullability] kotlin.String?> origin=PROPERTY_REFERENCE_FOR_DELEGATE FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> (:@[FlexibleNullability] kotlin.String?) returnType:kotlin.Unit correspondingProperty: PROPERTY name:p1 visibility:public modality:FINAL [delegated,var] VALUE_PARAMETER name: index:0 type:@[FlexibleNullability] kotlin.String? BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun (: @[FlexibleNullability] kotlin.String?): kotlin.Unit declared in k' - CALL 'public final fun setValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>, value: V of kotlin.setValue): kotlin.Unit [inline,operator] declared in kotlin' type=kotlin.Unit origin=null + CALL 'public final fun setValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>, value: V of kotlin.setValue): kotlin.Unit declared in kotlin' type=kotlin.Unit origin=null : @[FlexibleNullability] kotlin.String? $receiver: GET_FIELD 'FIELD PROPERTY_DELEGATE name:p1$delegate type:kotlin.reflect.KMutableProperty0<@[FlexibleNullability] kotlin.String?> visibility:private [final,static]' type=kotlin.reflect.KMutableProperty0<@[FlexibleNullability] kotlin.String?> origin=null thisRef: CONST Null type=kotlin.Nothing? value=null - property: PROPERTY_REFERENCE 'public final p1: @[FlexibleNullability] kotlin.String? [delegated,var]' field=null getter='public final fun (): @[FlexibleNullability] kotlin.String? declared in k' setter='public final fun (: @[FlexibleNullability] kotlin.String?): kotlin.Unit declared in k' type=kotlin.reflect.KMutableProperty0<@[FlexibleNullability] kotlin.String?> origin=PROPERTY_REFERENCE_FOR_DELEGATE + property: PROPERTY_REFERENCE 'public final p1: @[FlexibleNullability] kotlin.String?' field=null getter='public final fun (): @[FlexibleNullability] kotlin.String? declared in k' setter='public final fun (: @[FlexibleNullability] kotlin.String?): kotlin.Unit declared in k' type=kotlin.reflect.KMutableProperty0<@[FlexibleNullability] kotlin.String?> origin=PROPERTY_REFERENCE_FOR_DELEGATE value: GET_VAR ': @[FlexibleNullability] kotlin.String? declared in k.' type=@[FlexibleNullability] kotlin.String? origin=null PROPERTY name:p2 visibility:public modality:FINAL [delegated,var] FIELD PROPERTY_DELEGATE name:p2$delegate type:kotlin.reflect.KMutableProperty0<@[FlexibleNullability] kotlin.String?> visibility:private [final,static] EXPRESSION_BODY - PROPERTY_REFERENCE 'public final foo [var]' field=null getter='public open fun getFoo (): @[FlexibleNullability] kotlin.String? declared in .J' setter='public open fun setFoo (s: @[FlexibleNullability] kotlin.String?): kotlin.Unit declared in .J' type=kotlin.reflect.KMutableProperty0<@[FlexibleNullability] kotlin.String?> origin=null - $receiver: CONSTRUCTOR_CALL 'public constructor () [primary] declared in .J' type=.J origin=null + PROPERTY_REFERENCE 'public final foo' field=null getter='public open fun getFoo (): @[FlexibleNullability] kotlin.String? declared in .J' setter='public open fun setFoo (s: @[FlexibleNullability] kotlin.String?): kotlin.Unit declared in .J' type=kotlin.reflect.KMutableProperty0<@[FlexibleNullability] kotlin.String?> origin=null + $receiver: CONSTRUCTOR_CALL 'public constructor () declared in .J' type=.J origin=null FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:@[FlexibleNullability] kotlin.String? correspondingProperty: PROPERTY name:p2 visibility:public modality:FINAL [delegated,var] BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun (): @[FlexibleNullability] kotlin.String? declared in k' - CALL 'public final fun getValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): V of kotlin.getValue [inline,operator] declared in kotlin' type=@[FlexibleNullability] kotlin.String? origin=null + CALL 'public final fun getValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): V of kotlin.getValue declared in kotlin' type=@[FlexibleNullability] kotlin.String? origin=null : @[FlexibleNullability] kotlin.String? $receiver: GET_FIELD 'FIELD PROPERTY_DELEGATE name:p2$delegate type:kotlin.reflect.KMutableProperty0<@[FlexibleNullability] kotlin.String?> visibility:private [final,static]' type=kotlin.reflect.KMutableProperty0<@[FlexibleNullability] kotlin.String?> origin=null thisRef: CONST Null type=kotlin.Nothing? value=null - property: PROPERTY_REFERENCE 'public final p2: @[FlexibleNullability] kotlin.String? [delegated,var]' field=null getter='public final fun (): @[FlexibleNullability] kotlin.String? declared in k' setter='public final fun (: @[FlexibleNullability] kotlin.String?): kotlin.Unit declared in k' type=kotlin.reflect.KMutableProperty0<@[FlexibleNullability] kotlin.String?> origin=PROPERTY_REFERENCE_FOR_DELEGATE + property: PROPERTY_REFERENCE 'public final p2: @[FlexibleNullability] kotlin.String?' field=null getter='public final fun (): @[FlexibleNullability] kotlin.String? declared in k' setter='public final fun (: @[FlexibleNullability] kotlin.String?): kotlin.Unit declared in k' type=kotlin.reflect.KMutableProperty0<@[FlexibleNullability] kotlin.String?> origin=PROPERTY_REFERENCE_FOR_DELEGATE FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> (:@[FlexibleNullability] kotlin.String?) returnType:kotlin.Unit correspondingProperty: PROPERTY name:p2 visibility:public modality:FINAL [delegated,var] VALUE_PARAMETER name: index:0 type:@[FlexibleNullability] kotlin.String? BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun (: @[FlexibleNullability] kotlin.String?): kotlin.Unit declared in k' - CALL 'public final fun setValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>, value: V of kotlin.setValue): kotlin.Unit [inline,operator] declared in kotlin' type=kotlin.Unit origin=null + CALL 'public final fun setValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>, value: V of kotlin.setValue): kotlin.Unit declared in kotlin' type=kotlin.Unit origin=null : @[FlexibleNullability] kotlin.String? $receiver: GET_FIELD 'FIELD PROPERTY_DELEGATE name:p2$delegate type:kotlin.reflect.KMutableProperty0<@[FlexibleNullability] kotlin.String?> visibility:private [final,static]' type=kotlin.reflect.KMutableProperty0<@[FlexibleNullability] kotlin.String?> origin=null thisRef: CONST Null type=kotlin.Nothing? value=null - property: PROPERTY_REFERENCE 'public final p2: @[FlexibleNullability] kotlin.String? [delegated,var]' field=null getter='public final fun (): @[FlexibleNullability] kotlin.String? declared in k' setter='public final fun (: @[FlexibleNullability] kotlin.String?): kotlin.Unit declared in k' type=kotlin.reflect.KMutableProperty0<@[FlexibleNullability] kotlin.String?> origin=PROPERTY_REFERENCE_FOR_DELEGATE + property: PROPERTY_REFERENCE 'public final p2: @[FlexibleNullability] kotlin.String?' field=null getter='public final fun (): @[FlexibleNullability] kotlin.String? declared in k' setter='public final fun (: @[FlexibleNullability] kotlin.String?): kotlin.Unit declared in k' type=kotlin.reflect.KMutableProperty0<@[FlexibleNullability] kotlin.String?> origin=PROPERTY_REFERENCE_FOR_DELEGATE value: GET_VAR ': @[FlexibleNullability] kotlin.String? declared in k.' type=@[FlexibleNullability] kotlin.String? origin=null FUN name:box visibility:public modality:FINAL <> () returnType:kotlin.String BLOCK_BODY @@ -56,7 +56,7 @@ FILE fqName:k fileName:/box.kt CALL 'public final fun (: @[FlexibleNullability] kotlin.String?): kotlin.Unit declared in k' type=kotlin.Unit origin=EQ : CONST String type=kotlin.String value="K" RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in k' - CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS + CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS $this: TYPE_OP type=kotlin.String origin=IMPLICIT_NOTNULL typeOperand=kotlin.String CALL 'public final fun (): @[FlexibleNullability] kotlin.String? declared in k' type=@[FlexibleNullability] kotlin.String? origin=GET_PROPERTY other: CALL 'public final fun (): @[FlexibleNullability] kotlin.String? declared in k' type=@[FlexibleNullability] kotlin.String? origin=GET_PROPERTY diff --git a/compiler/testData/ir/irText/declarations/provideDelegate/local.ir.txt b/compiler/testData/ir/irText/declarations/provideDelegate/local.ir.txt index 66c654b6e1e..bbf3994dd65 100644 --- a/compiler/testData/ir/irText/declarations/provideDelegate/local.ir.txt +++ b/compiler/testData/ir/irText/declarations/provideDelegate/local.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/local.kt CONSTRUCTOR visibility:public <> (value:kotlin.String) returnType:.Delegate [primary] VALUE_PARAMETER name:value index:0 type:kotlin.String BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Delegate modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:value visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:value type:kotlin.String visibility:private [final] @@ -22,12 +22,12 @@ FILE fqName: fileName:/local.kt VALUE_PARAMETER name:thisRef index:0 type:kotlin.Any? VALUE_PARAMETER name:property index:1 type:kotlin.Any? BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun getValue (thisRef: kotlin.Any?, property: kotlin.Any?): kotlin.String [operator] declared in .Delegate' + RETURN type=kotlin.Nothing from='public final fun getValue (thisRef: kotlin.Any?, property: kotlin.Any?): kotlin.String declared in .Delegate' CALL 'public final fun (): kotlin.String declared in .Delegate' type=kotlin.String origin=GET_PROPERTY $this: GET_VAR ': .Delegate declared in .Delegate.getValue' type=.Delegate 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -43,7 +43,7 @@ FILE fqName: fileName:/local.kt CONSTRUCTOR visibility:public <> (value:kotlin.String) returnType:.DelegateProvider [primary] VALUE_PARAMETER name:value index:0 type:kotlin.String BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:DelegateProvider modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:value visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:value type:kotlin.String visibility:private [final] @@ -61,13 +61,13 @@ FILE fqName: fileName:/local.kt VALUE_PARAMETER name:thisRef index:0 type:kotlin.Any? VALUE_PARAMETER name:property index:1 type:kotlin.Any? BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun provideDelegate (thisRef: kotlin.Any?, property: kotlin.Any?): .Delegate [operator] declared in .DelegateProvider' - CONSTRUCTOR_CALL 'public constructor (value: kotlin.String) [primary] declared in .Delegate' type=.Delegate origin=null + RETURN type=kotlin.Nothing from='public final fun provideDelegate (thisRef: kotlin.Any?, property: kotlin.Any?): .Delegate declared in .DelegateProvider' + CONSTRUCTOR_CALL 'public constructor (value: kotlin.String) declared in .Delegate' type=.Delegate origin=null value: CALL 'public final fun (): kotlin.String declared in .DelegateProvider' type=kotlin.String origin=GET_PROPERTY $this: GET_VAR ': .DelegateProvider declared in .DelegateProvider.provideDelegate' type=.DelegateProvider 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -82,15 +82,15 @@ FILE fqName: fileName:/local.kt BLOCK_BODY LOCAL_DELEGATED_PROPERTY name:testMember type:kotlin.String flags:val VAR PROPERTY_DELEGATE name:testMember$delegate type:.Delegate [val] - CALL 'public final fun provideDelegate (thisRef: kotlin.Any?, property: kotlin.Any?): .Delegate [operator] declared in .DelegateProvider' type=.Delegate origin=null - $this: CONSTRUCTOR_CALL 'public constructor (value: kotlin.String) [primary] declared in .DelegateProvider' type=.DelegateProvider origin=null + CALL 'public final fun provideDelegate (thisRef: kotlin.Any?, property: kotlin.Any?): .Delegate declared in .DelegateProvider' type=.Delegate origin=null + $this: CONSTRUCTOR_CALL 'public constructor (value: kotlin.String) declared in .DelegateProvider' type=.DelegateProvider origin=null value: CONST String type=kotlin.String value="OK" thisRef: CONST Null type=kotlin.Nothing? value=null - property: LOCAL_DELEGATED_PROPERTY_REFERENCE 'val testMember: kotlin.String by (...)' delegate='val testMember$delegate: .Delegate [val] declared in .foo' getter='local final fun (): kotlin.String declared in .foo' setter=null type=kotlin.reflect.KProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE + property: LOCAL_DELEGATED_PROPERTY_REFERENCE 'val testMember: kotlin.String by (...)' delegate='val testMember$delegate: .Delegate declared in .foo' getter='local final fun (): kotlin.String declared in .foo' setter=null type=kotlin.reflect.KProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:local modality:FINAL <> () returnType:kotlin.String BLOCK_BODY RETURN type=kotlin.Nothing from='local final fun (): kotlin.String declared in .foo' - CALL 'public final fun getValue (thisRef: kotlin.Any?, property: kotlin.Any?): kotlin.String [operator] declared in .Delegate' type=kotlin.String origin=null - $this: GET_VAR 'val testMember$delegate: .Delegate [val] declared in .foo' type=.Delegate origin=null + CALL 'public final fun getValue (thisRef: kotlin.Any?, property: kotlin.Any?): kotlin.String declared in .Delegate' type=kotlin.String origin=null + $this: GET_VAR 'val testMember$delegate: .Delegate declared in .foo' type=.Delegate origin=null thisRef: CONST Null type=kotlin.Nothing? value=null - property: LOCAL_DELEGATED_PROPERTY_REFERENCE 'val testMember: kotlin.String by (...)' delegate='val testMember$delegate: .Delegate [val] declared in .foo' getter='local final fun (): kotlin.String declared in .foo' setter=null type=kotlin.reflect.KProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE + property: LOCAL_DELEGATED_PROPERTY_REFERENCE 'val testMember: kotlin.String by (...)' delegate='val testMember$delegate: .Delegate declared in .foo' getter='local final fun (): kotlin.String declared in .foo' setter=null type=kotlin.reflect.KProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE diff --git a/compiler/testData/ir/irText/declarations/provideDelegate/localDifferentReceivers.ir.txt b/compiler/testData/ir/irText/declarations/provideDelegate/localDifferentReceivers.ir.txt index ae3a509f73f..7edf2f401ee 100644 --- a/compiler/testData/ir/irText/declarations/provideDelegate/localDifferentReceivers.ir.txt +++ b/compiler/testData/ir/irText/declarations/provideDelegate/localDifferentReceivers.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/localDifferentReceivers.kt CONSTRUCTOR visibility:public <> (value:kotlin.String) returnType:.MyClass [primary] VALUE_PARAMETER name:value index:0 type:kotlin.String BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:MyClass modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:value visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:value type:kotlin.String visibility:private [final] @@ -19,7 +19,7 @@ FILE fqName: fileName:/localDifferentReceivers.kt receiver: GET_VAR ': .MyClass declared in .MyClass.' type=.MyClass 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -35,7 +35,7 @@ FILE fqName: fileName:/localDifferentReceivers.kt VALUE_PARAMETER name:host index:0 type:kotlin.Any? VALUE_PARAMETER name:p index:1 type:kotlin.Any BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun provideDelegate (host: kotlin.Any?, p: kotlin.Any): kotlin.String [operator] declared in ' + RETURN type=kotlin.Nothing from='public final fun provideDelegate (host: kotlin.Any?, p: kotlin.Any): kotlin.String declared in ' CALL 'public final fun (): kotlin.String declared in .MyClass' type=kotlin.String origin=GET_PROPERTY $this: GET_VAR ': .MyClass declared in .provideDelegate' type=.MyClass origin=null FUN name:getValue visibility:public modality:FINAL <> ($receiver:kotlin.String, receiver:kotlin.Any?, p:kotlin.Any) returnType:kotlin.String [operator] @@ -43,37 +43,37 @@ FILE fqName: fileName:/localDifferentReceivers.kt VALUE_PARAMETER name:receiver index:0 type:kotlin.Any? VALUE_PARAMETER name:p index:1 type:kotlin.Any BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun getValue (receiver: kotlin.Any?, p: kotlin.Any): kotlin.String [operator] declared in ' + RETURN type=kotlin.Nothing from='public final fun getValue (receiver: kotlin.Any?, p: kotlin.Any): kotlin.String declared in ' GET_VAR ': kotlin.String declared in .getValue' type=kotlin.String origin=null FUN name:box visibility:public modality:FINAL <> () returnType:kotlin.String BLOCK_BODY LOCAL_DELEGATED_PROPERTY name:testO type:kotlin.String flags:val VAR PROPERTY_DELEGATE name:testO$delegate type:kotlin.String [val] - CALL 'public final fun provideDelegate (host: kotlin.Any?, p: kotlin.Any): kotlin.String [operator] declared in ' type=kotlin.String origin=null - $receiver: CONSTRUCTOR_CALL 'public constructor (value: kotlin.String) [primary] declared in .MyClass' type=.MyClass origin=null + CALL 'public final fun provideDelegate (host: kotlin.Any?, p: kotlin.Any): kotlin.String declared in ' type=kotlin.String origin=null + $receiver: CONSTRUCTOR_CALL 'public constructor (value: kotlin.String) declared in .MyClass' type=.MyClass origin=null value: CONST String type=kotlin.String value="O" host: CONST Null type=kotlin.Nothing? value=null - p: LOCAL_DELEGATED_PROPERTY_REFERENCE 'val testO: kotlin.String by (...)' delegate='val testO$delegate: kotlin.String [val] declared in .box' getter='local final fun (): kotlin.String declared in .box' setter=null type=kotlin.reflect.KProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE + p: LOCAL_DELEGATED_PROPERTY_REFERENCE 'val testO: kotlin.String by (...)' delegate='val testO$delegate: kotlin.String declared in .box' getter='local final fun (): kotlin.String declared in .box' setter=null type=kotlin.reflect.KProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:local modality:FINAL <> () returnType:kotlin.String BLOCK_BODY RETURN type=kotlin.Nothing from='local final fun (): kotlin.String declared in .box' - CALL 'public final fun getValue (receiver: kotlin.Any?, p: kotlin.Any): kotlin.String [operator] declared in ' type=kotlin.String origin=null - $receiver: GET_VAR 'val testO$delegate: kotlin.String [val] declared in .box' type=kotlin.String origin=null + CALL 'public final fun getValue (receiver: kotlin.Any?, p: kotlin.Any): kotlin.String declared in ' type=kotlin.String origin=null + $receiver: GET_VAR 'val testO$delegate: kotlin.String declared in .box' type=kotlin.String origin=null receiver: CONST Null type=kotlin.Nothing? value=null - p: LOCAL_DELEGATED_PROPERTY_REFERENCE 'val testO: kotlin.String by (...)' delegate='val testO$delegate: kotlin.String [val] declared in .box' getter='local final fun (): kotlin.String declared in .box' setter=null type=kotlin.reflect.KProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE + p: LOCAL_DELEGATED_PROPERTY_REFERENCE 'val testO: kotlin.String by (...)' delegate='val testO$delegate: kotlin.String declared in .box' getter='local final fun (): kotlin.String declared in .box' setter=null type=kotlin.reflect.KProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE LOCAL_DELEGATED_PROPERTY name:testK type:kotlin.String flags:val VAR PROPERTY_DELEGATE name:testK$delegate type:kotlin.String [val] CONST String type=kotlin.String value="K" FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:local modality:FINAL <> () returnType:kotlin.String BLOCK_BODY RETURN type=kotlin.Nothing from='local final fun (): kotlin.String declared in .box' - CALL 'public final fun getValue (receiver: kotlin.Any?, p: kotlin.Any): kotlin.String [operator] declared in ' type=kotlin.String origin=null - $receiver: GET_VAR 'val testK$delegate: kotlin.String [val] declared in .box' type=kotlin.String origin=null + CALL 'public final fun getValue (receiver: kotlin.Any?, p: kotlin.Any): kotlin.String declared in ' type=kotlin.String origin=null + $receiver: GET_VAR 'val testK$delegate: kotlin.String declared in .box' type=kotlin.String origin=null receiver: CONST Null type=kotlin.Nothing? value=null - p: LOCAL_DELEGATED_PROPERTY_REFERENCE 'val testK: kotlin.String by (...)' delegate='val testK$delegate: kotlin.String [val] declared in .box' getter='local final fun (): kotlin.String declared in .box' setter=null type=kotlin.reflect.KProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE + p: LOCAL_DELEGATED_PROPERTY_REFERENCE 'val testK: kotlin.String by (...)' delegate='val testK$delegate: kotlin.String declared in .box' getter='local final fun (): kotlin.String declared in .box' setter=null type=kotlin.reflect.KProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE VAR name:testOK type:kotlin.String [val] - CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS + CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS $this: CALL 'local final fun (): kotlin.String declared in .box' type=kotlin.String origin=GET_LOCAL_PROPERTY other: CALL 'local final fun (): kotlin.String declared in .box' type=kotlin.String origin=GET_LOCAL_PROPERTY RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' - GET_VAR 'val testOK: kotlin.String [val] declared in .box' type=kotlin.String origin=null + GET_VAR 'val testOK: kotlin.String declared in .box' type=kotlin.String origin=null diff --git a/compiler/testData/ir/irText/declarations/provideDelegate/member.ir.txt b/compiler/testData/ir/irText/declarations/provideDelegate/member.ir.txt index b4f9f043d8c..f7e89475472 100644 --- a/compiler/testData/ir/irText/declarations/provideDelegate/member.ir.txt +++ b/compiler/testData/ir/irText/declarations/provideDelegate/member.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/member.kt CONSTRUCTOR visibility:public <> (value:kotlin.String) returnType:.Delegate [primary] VALUE_PARAMETER name:value index:0 type:kotlin.String BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Delegate modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:value visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:value type:kotlin.String visibility:private [final] @@ -22,12 +22,12 @@ FILE fqName: fileName:/member.kt VALUE_PARAMETER name:thisRef index:0 type:kotlin.Any? VALUE_PARAMETER name:property index:1 type:kotlin.Any? BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun getValue (thisRef: kotlin.Any?, property: kotlin.Any?): kotlin.String [operator] declared in .Delegate' + RETURN type=kotlin.Nothing from='public final fun getValue (thisRef: kotlin.Any?, property: kotlin.Any?): kotlin.String declared in .Delegate' CALL 'public final fun (): kotlin.String declared in .Delegate' type=kotlin.String origin=GET_PROPERTY $this: GET_VAR ': .Delegate declared in .Delegate.getValue' type=.Delegate 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -43,7 +43,7 @@ FILE fqName: fileName:/member.kt CONSTRUCTOR visibility:public <> (value:kotlin.String) returnType:.DelegateProvider [primary] VALUE_PARAMETER name:value index:0 type:kotlin.String BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:DelegateProvider modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:value visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:value type:kotlin.String visibility:private [final] @@ -61,13 +61,13 @@ FILE fqName: fileName:/member.kt VALUE_PARAMETER name:thisRef index:0 type:kotlin.Any? VALUE_PARAMETER name:property index:1 type:kotlin.Any? BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun provideDelegate (thisRef: kotlin.Any?, property: kotlin.Any?): .Delegate [operator] declared in .DelegateProvider' - CONSTRUCTOR_CALL 'public constructor (value: kotlin.String) [primary] declared in .Delegate' type=.Delegate origin=null + RETURN type=kotlin.Nothing from='public final fun provideDelegate (thisRef: kotlin.Any?, property: kotlin.Any?): .Delegate declared in .DelegateProvider' + CONSTRUCTOR_CALL 'public constructor (value: kotlin.String) declared in .Delegate' type=.Delegate origin=null value: CALL 'public final fun (): kotlin.String declared in .DelegateProvider' type=kotlin.String origin=GET_PROPERTY $this: GET_VAR ': .DelegateProvider declared in .DelegateProvider.provideDelegate' type=.DelegateProvider 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -82,29 +82,29 @@ FILE fqName: fileName:/member.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Host CONSTRUCTOR visibility:public <> () returnType:.Host [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Host modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:testMember visibility:public modality:FINAL [delegated,val] FIELD PROPERTY_DELEGATE name:testMember$delegate type:.Delegate visibility:private [final] EXPRESSION_BODY - CALL 'public final fun provideDelegate (thisRef: kotlin.Any?, property: kotlin.Any?): .Delegate [operator] declared in .DelegateProvider' type=.Delegate origin=null - $this: CONSTRUCTOR_CALL 'public constructor (value: kotlin.String) [primary] declared in .DelegateProvider' type=.DelegateProvider origin=null + CALL 'public final fun provideDelegate (thisRef: kotlin.Any?, property: kotlin.Any?): .Delegate declared in .DelegateProvider' type=.Delegate origin=null + $this: CONSTRUCTOR_CALL 'public constructor (value: kotlin.String) declared in .DelegateProvider' type=.DelegateProvider origin=null value: CONST String type=kotlin.String value="OK" thisRef: GET_VAR ': .Host declared in .Host' type=.Host origin=null - property: PROPERTY_REFERENCE 'public final testMember: kotlin.String [delegated,val]' field=null getter='public final fun (): kotlin.String declared in .Host' setter=null type=kotlin.reflect.KProperty1<.Host, kotlin.String> origin=PROPERTY_REFERENCE_FOR_DELEGATE + property: PROPERTY_REFERENCE 'public final testMember: kotlin.String' field=null getter='public final fun (): kotlin.String declared in .Host' setter=null type=kotlin.reflect.KProperty1<.Host, kotlin.String> origin=PROPERTY_REFERENCE_FOR_DELEGATE FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:.Host) returnType:kotlin.String correspondingProperty: PROPERTY name:testMember visibility:public modality:FINAL [delegated,val] $this: VALUE_PARAMETER name: type:.Host BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun (): kotlin.String declared in .Host' - CALL 'public final fun getValue (thisRef: kotlin.Any?, property: kotlin.Any?): kotlin.String [operator] declared in .Delegate' type=kotlin.String origin=null + CALL 'public final fun getValue (thisRef: kotlin.Any?, property: kotlin.Any?): kotlin.String declared in .Delegate' type=kotlin.String origin=null $this: GET_FIELD 'FIELD PROPERTY_DELEGATE name:testMember$delegate type:.Delegate visibility:private [final]' type=.Delegate origin=null receiver: GET_VAR ': .Host declared in .Host.' type=.Host origin=null thisRef: GET_VAR ': .Host declared in .Host.' type=.Host origin=null - property: PROPERTY_REFERENCE 'public final testMember: kotlin.String [delegated,val]' field=null getter='public final fun (): kotlin.String declared in .Host' setter=null type=kotlin.reflect.KProperty1<.Host, kotlin.String> origin=PROPERTY_REFERENCE_FOR_DELEGATE + property: PROPERTY_REFERENCE 'public final testMember: kotlin.String' field=null getter='public final fun (): kotlin.String declared in .Host' setter=null type=kotlin.reflect.KProperty1<.Host, kotlin.String> origin=PROPERTY_REFERENCE_FOR_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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/declarations/provideDelegate/memberExtension.ir.txt b/compiler/testData/ir/irText/declarations/provideDelegate/memberExtension.ir.txt index 80502c9aca9..8ac7f9fa5c6 100644 --- a/compiler/testData/ir/irText/declarations/provideDelegate/memberExtension.ir.txt +++ b/compiler/testData/ir/irText/declarations/provideDelegate/memberExtension.ir.txt @@ -3,14 +3,14 @@ FILE fqName: fileName:/memberExtension.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Host CONSTRUCTOR visibility:private <> () returnType:.Host [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:Host modality:FINAL visibility:public superTypes:[kotlin.Any]' CLASS CLASS name:StringDelegate modality:FINAL visibility:public superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Host.StringDelegate CONSTRUCTOR visibility:public <> (s:kotlin.String) returnType:.Host.StringDelegate [primary] VALUE_PARAMETER name:s index:0 type:kotlin.String BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:StringDelegate modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:s visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:s type:kotlin.String visibility:private [final] @@ -28,14 +28,14 @@ FILE fqName: fileName:/memberExtension.kt VALUE_PARAMETER name:receiver index:0 type:kotlin.String VALUE_PARAMETER name:p index:1 type:kotlin.Any BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun getValue (receiver: kotlin.String, p: kotlin.Any): kotlin.String [operator] declared in .Host.StringDelegate' - CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS + RETURN type=kotlin.Nothing from='public final fun getValue (receiver: kotlin.String, p: kotlin.Any): kotlin.String declared in .Host.StringDelegate' + CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS $this: GET_VAR 'receiver: kotlin.String declared in .Host.StringDelegate.getValue' type=kotlin.String origin=null other: CALL 'public final fun (): kotlin.String declared in .Host.StringDelegate' type=kotlin.String origin=GET_PROPERTY $this: GET_VAR ': .Host.StringDelegate declared in .Host.StringDelegate.getValue' type=.Host.StringDelegate 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -52,28 +52,28 @@ FILE fqName: fileName:/memberExtension.kt VALUE_PARAMETER name:host index:0 type:kotlin.Any? VALUE_PARAMETER name:p index:1 type:kotlin.Any BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun provideDelegate (host: kotlin.Any?, p: kotlin.Any): .Host.StringDelegate [operator] declared in .Host' - CONSTRUCTOR_CALL 'public constructor (s: kotlin.String) [primary] declared in .Host.StringDelegate' type=.Host.StringDelegate origin=null + RETURN type=kotlin.Nothing from='public final fun provideDelegate (host: kotlin.Any?, p: kotlin.Any): .Host.StringDelegate declared in .Host' + CONSTRUCTOR_CALL 'public constructor (s: kotlin.String) declared in .Host.StringDelegate' type=.Host.StringDelegate origin=null s: GET_VAR ': kotlin.String declared in .Host.provideDelegate' type=kotlin.String origin=null PROPERTY name:plusK visibility:public modality:FINAL [delegated,val] FIELD PROPERTY_DELEGATE name:plusK$delegate type:.Host.StringDelegate visibility:private [final] EXPRESSION_BODY - CALL 'public final fun provideDelegate (host: kotlin.Any?, p: kotlin.Any): .Host.StringDelegate [operator] declared in .Host' type=.Host.StringDelegate origin=null + CALL 'public final fun provideDelegate (host: kotlin.Any?, p: kotlin.Any): .Host.StringDelegate declared in .Host' type=.Host.StringDelegate origin=null $this: GET_VAR ': .Host declared in .Host' type=.Host origin=null $receiver: CONST String type=kotlin.String value="K" host: GET_VAR ': .Host declared in .Host' type=.Host origin=null - p: PROPERTY_REFERENCE 'public final plusK: kotlin.String [delegated,val]' field=null getter='public final fun (): kotlin.String declared in .Host' setter=null type=kotlin.reflect.KProperty2.Host, kotlin.String> origin=PROPERTY_REFERENCE_FOR_DELEGATE + p: PROPERTY_REFERENCE 'public final plusK: kotlin.String' field=null getter='public final fun (): kotlin.String declared in .Host' setter=null type=kotlin.reflect.KProperty2.Host, kotlin.String> origin=PROPERTY_REFERENCE_FOR_DELEGATE FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:.Host, $receiver:kotlin.String) returnType:kotlin.String correspondingProperty: PROPERTY name:plusK visibility:public modality:FINAL [delegated,val] $this: VALUE_PARAMETER name: type:.Host $receiver: VALUE_PARAMETER name: type:kotlin.String BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun (): kotlin.String declared in .Host' - CALL 'public final fun getValue (receiver: kotlin.String, p: kotlin.Any): kotlin.String [operator] declared in .Host.StringDelegate' type=kotlin.String origin=null + CALL 'public final fun getValue (receiver: kotlin.String, p: kotlin.Any): kotlin.String declared in .Host.StringDelegate' type=kotlin.String origin=null $this: GET_FIELD 'FIELD PROPERTY_DELEGATE name:plusK$delegate type:.Host.StringDelegate visibility:private [final]' type=.Host.StringDelegate origin=null receiver: GET_VAR ': .Host declared in .Host.' type=.Host origin=null receiver: GET_VAR ': kotlin.String declared in .Host.' type=kotlin.String origin=null - p: PROPERTY_REFERENCE 'public final plusK: kotlin.String [delegated,val]' field=null getter='public final fun (): kotlin.String declared in .Host' setter=null type=kotlin.reflect.KProperty2.Host, kotlin.String> origin=PROPERTY_REFERENCE_FOR_DELEGATE + p: PROPERTY_REFERENCE 'public final plusK: kotlin.String' field=null getter='public final fun (): kotlin.String declared in .Host' setter=null type=kotlin.reflect.KProperty2.Host, kotlin.String> origin=PROPERTY_REFERENCE_FOR_DELEGATE PROPERTY name:ok visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:ok type:kotlin.String visibility:private [final] EXPRESSION_BODY @@ -89,7 +89,7 @@ FILE fqName: fileName:/memberExtension.kt receiver: GET_VAR ': .Host declared in .Host.' type=.Host 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/declarations/provideDelegate/topLevel.ir.txt b/compiler/testData/ir/irText/declarations/provideDelegate/topLevel.ir.txt index ef6ef04f709..80ea3a06281 100644 --- a/compiler/testData/ir/irText/declarations/provideDelegate/topLevel.ir.txt +++ b/compiler/testData/ir/irText/declarations/provideDelegate/topLevel.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/topLevel.kt CONSTRUCTOR visibility:public <> (value:kotlin.String) returnType:.Delegate [primary] VALUE_PARAMETER name:value index:0 type:kotlin.String BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Delegate modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:value visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:value type:kotlin.String visibility:private [final] @@ -22,12 +22,12 @@ FILE fqName: fileName:/topLevel.kt VALUE_PARAMETER name:thisRef index:0 type:kotlin.Any? VALUE_PARAMETER name:property index:1 type:kotlin.Any? BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun getValue (thisRef: kotlin.Any?, property: kotlin.Any?): kotlin.String [operator] declared in .Delegate' + RETURN type=kotlin.Nothing from='public final fun getValue (thisRef: kotlin.Any?, property: kotlin.Any?): kotlin.String declared in .Delegate' CALL 'public final fun (): kotlin.String declared in .Delegate' type=kotlin.String origin=GET_PROPERTY $this: GET_VAR ': .Delegate declared in .Delegate.getValue' type=.Delegate 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -43,7 +43,7 @@ FILE fqName: fileName:/topLevel.kt CONSTRUCTOR visibility:public <> (value:kotlin.String) returnType:.DelegateProvider [primary] VALUE_PARAMETER name:value index:0 type:kotlin.String BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:DelegateProvider modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:value visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:value type:kotlin.String visibility:private [final] @@ -61,13 +61,13 @@ FILE fqName: fileName:/topLevel.kt VALUE_PARAMETER name:thisRef index:0 type:kotlin.Any? VALUE_PARAMETER name:property index:1 type:kotlin.Any? BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun provideDelegate (thisRef: kotlin.Any?, property: kotlin.Any?): .Delegate [operator] declared in .DelegateProvider' - CONSTRUCTOR_CALL 'public constructor (value: kotlin.String) [primary] declared in .Delegate' type=.Delegate origin=null + RETURN type=kotlin.Nothing from='public final fun provideDelegate (thisRef: kotlin.Any?, property: kotlin.Any?): .Delegate declared in .DelegateProvider' + CONSTRUCTOR_CALL 'public constructor (value: kotlin.String) declared in .Delegate' type=.Delegate origin=null value: CALL 'public final fun (): kotlin.String declared in .DelegateProvider' type=kotlin.String origin=GET_PROPERTY $this: GET_VAR ': .DelegateProvider declared in .DelegateProvider.provideDelegate' type=.DelegateProvider 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -81,16 +81,16 @@ FILE fqName: fileName:/topLevel.kt PROPERTY name:testTopLevel visibility:public modality:FINAL [delegated,val] FIELD PROPERTY_DELEGATE name:testTopLevel$delegate type:.Delegate visibility:private [final,static] EXPRESSION_BODY - CALL 'public final fun provideDelegate (thisRef: kotlin.Any?, property: kotlin.Any?): .Delegate [operator] declared in .DelegateProvider' type=.Delegate origin=null - $this: CONSTRUCTOR_CALL 'public constructor (value: kotlin.String) [primary] declared in .DelegateProvider' type=.DelegateProvider origin=null + CALL 'public final fun provideDelegate (thisRef: kotlin.Any?, property: kotlin.Any?): .Delegate declared in .DelegateProvider' type=.Delegate origin=null + $this: CONSTRUCTOR_CALL 'public constructor (value: kotlin.String) declared in .DelegateProvider' type=.DelegateProvider origin=null value: CONST String type=kotlin.String value="OK" thisRef: CONST Null type=kotlin.Nothing? value=null - property: PROPERTY_REFERENCE 'public final testTopLevel: kotlin.String [delegated,val]' field=null getter='public final fun (): kotlin.String declared in ' setter=null type=kotlin.reflect.KProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE + property: PROPERTY_REFERENCE 'public final testTopLevel: kotlin.String' field=null getter='public final fun (): kotlin.String declared in ' setter=null type=kotlin.reflect.KProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:kotlin.String correspondingProperty: PROPERTY name:testTopLevel visibility:public modality:FINAL [delegated,val] BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun (): kotlin.String declared in ' - CALL 'public final fun getValue (thisRef: kotlin.Any?, property: kotlin.Any?): kotlin.String [operator] declared in .Delegate' type=kotlin.String origin=null + CALL 'public final fun getValue (thisRef: kotlin.Any?, property: kotlin.Any?): kotlin.String declared in .Delegate' type=kotlin.String origin=null $this: GET_FIELD 'FIELD PROPERTY_DELEGATE name:testTopLevel$delegate type:.Delegate visibility:private [final,static]' type=.Delegate origin=null thisRef: CONST Null type=kotlin.Nothing? value=null - property: PROPERTY_REFERENCE 'public final testTopLevel: kotlin.String [delegated,val]' field=null getter='public final fun (): kotlin.String declared in ' setter=null type=kotlin.reflect.KProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE + property: PROPERTY_REFERENCE 'public final testTopLevel: kotlin.String' field=null getter='public final fun (): kotlin.String declared in ' setter=null type=kotlin.reflect.KProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE diff --git a/compiler/testData/ir/irText/declarations/typeAlias.fir.ir.txt b/compiler/testData/ir/irText/declarations/typeAlias.fir.ir.txt index 8113a116a1d..095a21c460d 100644 --- a/compiler/testData/ir/irText/declarations/typeAlias.fir.ir.txt +++ b/compiler/testData/ir/irText/declarations/typeAlias.fir.ir.txt @@ -7,11 +7,11 @@ FILE fqName: fileName:/typeAlias.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.C CONSTRUCTOR visibility:public <> () returnType:.C [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/declarations/typeAlias.ir.txt b/compiler/testData/ir/irText/declarations/typeAlias.ir.txt index ef4ee89919b..5d69e40a1c7 100644 --- a/compiler/testData/ir/irText/declarations/typeAlias.ir.txt +++ b/compiler/testData/ir/irText/declarations/typeAlias.ir.txt @@ -7,14 +7,14 @@ FILE fqName: fileName:/typeAlias.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.C CONSTRUCTOR visibility:public <> () returnType:.C [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C modality:FINAL visibility:public superTypes:[kotlin.Any]' TYPEALIAS name:TestNested visibility:public expandedType:kotlin.String annotations: Suppress(names = ['TOPLEVEL_TYPEALIASES_ONLY']) 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/errors/suppressedNonPublicCall.ir.txt b/compiler/testData/ir/irText/errors/suppressedNonPublicCall.ir.txt index ddf2a0216c5..5a66af2c878 100644 --- a/compiler/testData/ir/irText/errors/suppressedNonPublicCall.ir.txt +++ b/compiler/testData/ir/irText/errors/suppressedNonPublicCall.ir.txt @@ -3,14 +3,14 @@ FILE fqName: fileName:/suppressedNonPublicCall.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.C CONSTRUCTOR visibility:public <> () returnType:.C [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C modality:FINAL visibility:public superTypes:[kotlin.Any]' FUN name:bar visibility:internal modality:FINAL <> ($this:.C) returnType:kotlin.Unit $this: VALUE_PARAMETER name: type:.C 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/expressions/ambiguousFieldAccess.fir.ir.txt b/compiler/testData/ir/irText/expressions/ambiguousFieldAccess.fir.ir.txt index 23f2e3a5079..355371f24cf 100644 --- a/compiler/testData/ir/irText/expressions/ambiguousFieldAccess.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/ambiguousFieldAccess.fir.ir.txt @@ -4,13 +4,13 @@ FILE fqName:test fileName:/test.kt VALUE_PARAMETER name:f index:0 type:kotlin.Function0 BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun eval (f: kotlin.Function0): T of test.eval declared in test' - CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=T of test.eval origin=INVOKE + CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=T of test.eval origin=INVOKE $this: GET_VAR 'f: kotlin.Function0 declared in test.eval' type=kotlin.Function0 origin=VARIABLE_AS_FUNCTION CLASS CLASS name:C modality:FINAL visibility:public superTypes:[.A.B] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:test.C CONSTRUCTOR visibility:public <> () returnType:test.C [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .A.B' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .A.B' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C modality:FINAL visibility:public superTypes:[.A.B]' FUN name:f visibility:public modality:FINAL <> ($this:test.C) returnType:@[FlexibleNullability] kotlin.String? $this: VALUE_PARAMETER name: type:test.C @@ -38,14 +38,14 @@ FILE fqName:test fileName:/test.kt receiver: GET_VAR ': test.C declared in test.C.g' type=test.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 [fake_override,operator] declared in .A.B + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .A.B $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 .A.B + public open fun hashCode (): kotlin.Int declared in .A.B $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 .A.B + public open fun toString (): kotlin.String declared in .A.B $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/expressions/ambiguousFieldAccess.ir.txt b/compiler/testData/ir/irText/expressions/ambiguousFieldAccess.ir.txt index caff651dcab..ce1636efbfa 100644 --- a/compiler/testData/ir/irText/expressions/ambiguousFieldAccess.ir.txt +++ b/compiler/testData/ir/irText/expressions/ambiguousFieldAccess.ir.txt @@ -4,13 +4,13 @@ FILE fqName:test fileName:/test.kt VALUE_PARAMETER name:f index:0 type:kotlin.Function0 BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun eval (f: kotlin.Function0): T of test.eval declared in test' - CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=T of test.eval origin=INVOKE + CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=T of test.eval origin=INVOKE $this: GET_VAR 'f: kotlin.Function0 declared in test.eval' type=kotlin.Function0 origin=VARIABLE_AS_FUNCTION CLASS CLASS name:C modality:FINAL visibility:public superTypes:[.A.B] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:test.C CONSTRUCTOR visibility:public <> () returnType:test.C [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .A.B' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .A.B' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C modality:FINAL visibility:public superTypes:[.A.B]' FUN name:f visibility:public modality:FINAL <> ($this:test.C) returnType:@[FlexibleNullability] kotlin.String? $this: VALUE_PARAMETER name: type:test.C @@ -38,20 +38,20 @@ FILE fqName:test fileName:/test.kt receiver: GET_VAR ': test.C declared in test.C.g' type=test.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 [fake_override,operator] declared in .A.B + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .A.B $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 .A.B + public open fun hashCode (): kotlin.Int declared in .A.B $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 .A.B + public open fun toString (): kotlin.String declared in .A.B $this: VALUE_PARAMETER name: type:kotlin.Any PROPERTY FAKE_OVERRIDE name:y visibility:protected/*protected and package*/ modality:FINAL [fake_override,var] overridden: - protected/*protected and package*/ final y: @[FlexibleNullability] kotlin.String? [var] + protected/*protected and package*/ final y: @[FlexibleNullability] kotlin.String? PROPERTY FAKE_OVERRIDE name:x visibility:protected/*protected and package*/ modality:FINAL [fake_override,var] overridden: - protected/*protected and package*/ final x: @[FlexibleNullability] kotlin.String? [fake_override,var] + protected/*protected and package*/ final x: @[FlexibleNullability] kotlin.String? diff --git a/compiler/testData/ir/irText/expressions/argumentMappedWithError.ir.txt b/compiler/testData/ir/irText/expressions/argumentMappedWithError.ir.txt index 23d0b5ff2ab..e29ecc14621 100644 --- a/compiler/testData/ir/irText/expressions/argumentMappedWithError.ir.txt +++ b/compiler/testData/ir/irText/expressions/argumentMappedWithError.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/argumentMappedWithError.kt $receiver: VALUE_PARAMETER name: type:kotlin.Number BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun convert (): R of .convert declared in ' - CALL 'public final fun TODO (): kotlin.Nothing [inline] declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin.StandardKt' type=kotlin.Nothing origin=null FUN name:foo visibility:public modality:FINAL <> (arg:kotlin.Number) returnType:kotlin.Unit VALUE_PARAMETER name:arg index:0 type:kotlin.Number BLOCK_BODY @@ -16,4 +16,4 @@ FILE fqName: fileName:/argumentMappedWithError.kt CALL 'public final fun foo (arg: kotlin.Number): kotlin.Unit declared in ' type=kotlin.Unit origin=null arg: CALL 'public final fun convert (): R of .convert declared in ' type=kotlin.Number origin=null : kotlin.Number - $receiver: GET_VAR 'val x: kotlin.Int [val] declared in .main' type=kotlin.Int origin=null + $receiver: GET_VAR 'val x: kotlin.Int declared in .main' type=kotlin.Int origin=null diff --git a/compiler/testData/ir/irText/expressions/arrayAccess.fir.ir.txt b/compiler/testData/ir/irText/expressions/arrayAccess.fir.ir.txt index cffd614d158..ba88d295a46 100644 --- a/compiler/testData/ir/irText/expressions/arrayAccess.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/arrayAccess.fir.ir.txt @@ -16,14 +16,14 @@ FILE fqName: fileName:/arrayAccess.kt VALUE_PARAMETER name:a index:0 type:kotlin.IntArray BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test (a: kotlin.IntArray): kotlin.Int declared in ' - CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUS - $this: CALL 'public final fun get (index: kotlin.Int): kotlin.Int [operator] declared in kotlin.IntArray' type=kotlin.Int origin=null + CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUS + $this: CALL 'public final fun get (index: kotlin.Int): kotlin.Int declared in kotlin.IntArray' type=kotlin.Int origin=null $this: GET_VAR 'a: kotlin.IntArray declared in .test' type=kotlin.IntArray origin=null index: CONST Int type=kotlin.Int value=0 - other: CALL 'public final fun get (index: kotlin.Int): kotlin.Int [operator] declared in kotlin.IntArray' type=kotlin.Int origin=null + other: CALL 'public final fun get (index: kotlin.Int): kotlin.Int declared in kotlin.IntArray' type=kotlin.Int origin=null $this: GET_VAR 'a: kotlin.IntArray declared in .test' type=kotlin.IntArray origin=null index: CALL 'public final fun (): kotlin.Int declared in ' type=kotlin.Int origin=GET_PROPERTY - other: CALL 'public final fun get (index: kotlin.Int): kotlin.Int [operator] declared in kotlin.IntArray' type=kotlin.Int origin=null + other: CALL 'public final fun get (index: kotlin.Int): kotlin.Int declared in kotlin.IntArray' type=kotlin.Int origin=null $this: GET_VAR 'a: kotlin.IntArray declared in .test' type=kotlin.IntArray origin=null index: CALL 'public final fun foo (): kotlin.Int declared in ' type=kotlin.Int origin=null diff --git a/compiler/testData/ir/irText/expressions/arrayAccess.ir.txt b/compiler/testData/ir/irText/expressions/arrayAccess.ir.txt index 7717c82c315..bd9c3d894f8 100644 --- a/compiler/testData/ir/irText/expressions/arrayAccess.ir.txt +++ b/compiler/testData/ir/irText/expressions/arrayAccess.ir.txt @@ -16,14 +16,14 @@ FILE fqName: fileName:/arrayAccess.kt VALUE_PARAMETER name:a index:0 type:kotlin.IntArray BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test (a: kotlin.IntArray): kotlin.Int declared in ' - CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUS - $this: CALL 'public final fun get (index: kotlin.Int): kotlin.Int [operator] declared in kotlin.IntArray' type=kotlin.Int origin=GET_ARRAY_ELEMENT + CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUS + $this: CALL 'public final fun get (index: kotlin.Int): kotlin.Int declared in kotlin.IntArray' type=kotlin.Int origin=GET_ARRAY_ELEMENT $this: GET_VAR 'a: kotlin.IntArray declared in .test' type=kotlin.IntArray origin=null index: CONST Int type=kotlin.Int value=0 - other: CALL 'public final fun get (index: kotlin.Int): kotlin.Int [operator] declared in kotlin.IntArray' type=kotlin.Int origin=GET_ARRAY_ELEMENT + other: CALL 'public final fun get (index: kotlin.Int): kotlin.Int declared in kotlin.IntArray' type=kotlin.Int origin=GET_ARRAY_ELEMENT $this: GET_VAR 'a: kotlin.IntArray declared in .test' type=kotlin.IntArray origin=null index: CALL 'public final fun (): kotlin.Int declared in ' type=kotlin.Int origin=GET_PROPERTY - other: CALL 'public final fun get (index: kotlin.Int): kotlin.Int [operator] declared in kotlin.IntArray' type=kotlin.Int origin=GET_ARRAY_ELEMENT + other: CALL 'public final fun get (index: kotlin.Int): kotlin.Int declared in kotlin.IntArray' type=kotlin.Int origin=GET_ARRAY_ELEMENT $this: GET_VAR 'a: kotlin.IntArray declared in .test' type=kotlin.IntArray origin=null index: CALL 'public final fun foo (): kotlin.Int declared in ' type=kotlin.Int origin=null diff --git a/compiler/testData/ir/irText/expressions/arrayAssignment.fir.ir.txt b/compiler/testData/ir/irText/expressions/arrayAssignment.fir.ir.txt index 68b8150111a..6453e12a4b3 100644 --- a/compiler/testData/ir/irText/expressions/arrayAssignment.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/arrayAssignment.fir.ir.txt @@ -7,8 +7,8 @@ FILE fqName: fileName:/arrayAssignment.kt CONST Int type=kotlin.Int value=1 CONST Int type=kotlin.Int value=2 CONST Int type=kotlin.Int value=3 - CALL 'public final fun set (index: kotlin.Int, value: kotlin.Int): kotlin.Unit [operator] declared in kotlin.IntArray' type=kotlin.Unit origin=null - $this: GET_VAR 'val x: kotlin.IntArray [val] declared in .test' type=kotlin.IntArray origin=null + CALL 'public final fun set (index: kotlin.Int, value: kotlin.Int): kotlin.Unit declared in kotlin.IntArray' type=kotlin.Unit origin=null + $this: GET_VAR 'val x: kotlin.IntArray declared in .test' type=kotlin.IntArray origin=null index: CONST Int type=kotlin.Int value=1 value: CONST Int type=kotlin.Int value=0 FUN name:foo visibility:public modality:FINAL <> () returnType:kotlin.Int @@ -17,7 +17,7 @@ FILE fqName: fileName:/arrayAssignment.kt CONST Int type=kotlin.Int value=1 FUN name:test2 visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY - CALL 'public final fun set (index: kotlin.Int, value: kotlin.Int): kotlin.Unit [operator] declared in kotlin.IntArray' type=kotlin.Unit origin=null + CALL 'public final fun set (index: kotlin.Int, value: kotlin.Int): kotlin.Unit declared in kotlin.IntArray' type=kotlin.Unit origin=null $this: CALL 'public final fun intArrayOf (vararg elements: kotlin.Int): kotlin.IntArray declared in kotlin' type=kotlin.IntArray origin=null elements: VARARG type=kotlin.IntArray varargElementType=kotlin.Int CONST Int type=kotlin.Int value=1 diff --git a/compiler/testData/ir/irText/expressions/arrayAssignment.ir.txt b/compiler/testData/ir/irText/expressions/arrayAssignment.ir.txt index 2ccb04a37d6..984ce2db4c8 100644 --- a/compiler/testData/ir/irText/expressions/arrayAssignment.ir.txt +++ b/compiler/testData/ir/irText/expressions/arrayAssignment.ir.txt @@ -7,8 +7,8 @@ FILE fqName: fileName:/arrayAssignment.kt CONST Int type=kotlin.Int value=1 CONST Int type=kotlin.Int value=2 CONST Int type=kotlin.Int value=3 - CALL 'public final fun set (index: kotlin.Int, value: kotlin.Int): kotlin.Unit [operator] declared in kotlin.IntArray' type=kotlin.Unit origin=EQ - $this: GET_VAR 'val x: kotlin.IntArray [val] declared in .test' type=kotlin.IntArray origin=null + CALL 'public final fun set (index: kotlin.Int, value: kotlin.Int): kotlin.Unit declared in kotlin.IntArray' type=kotlin.Unit origin=EQ + $this: GET_VAR 'val x: kotlin.IntArray declared in .test' type=kotlin.IntArray origin=null index: CONST Int type=kotlin.Int value=1 value: CONST Int type=kotlin.Int value=0 FUN name:foo visibility:public modality:FINAL <> () returnType:kotlin.Int @@ -17,7 +17,7 @@ FILE fqName: fileName:/arrayAssignment.kt CONST Int type=kotlin.Int value=1 FUN name:test2 visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY - CALL 'public final fun set (index: kotlin.Int, value: kotlin.Int): kotlin.Unit [operator] declared in kotlin.IntArray' type=kotlin.Unit origin=EQ + CALL 'public final fun set (index: kotlin.Int, value: kotlin.Int): kotlin.Unit declared in kotlin.IntArray' type=kotlin.Unit origin=EQ $this: CALL 'public final fun intArrayOf (vararg elements: kotlin.Int): kotlin.IntArray declared in kotlin' type=kotlin.IntArray origin=null elements: VARARG type=kotlin.IntArray varargElementType=kotlin.Int CONST Int type=kotlin.Int value=1 diff --git a/compiler/testData/ir/irText/expressions/arrayAssignment.kt b/compiler/testData/ir/irText/expressions/arrayAssignment.kt index d5bb94ddea1..82733c3bf25 100644 --- a/compiler/testData/ir/irText/expressions/arrayAssignment.kt +++ b/compiler/testData/ir/irText/expressions/arrayAssignment.kt @@ -1,6 +1,3 @@ -// IGNORE_BACKEND: JS_IR -// IGNORE_BACKEND: JS_IR_ES6 - fun test() { val x = intArrayOf(1, 2, 3) x[1] = 0 diff --git a/compiler/testData/ir/irText/expressions/arrayAugmentedAssignment1.fir.ir.txt b/compiler/testData/ir/irText/expressions/arrayAugmentedAssignment1.fir.ir.txt index 577a5c920a0..1c970d50a43 100644 --- a/compiler/testData/ir/irText/expressions/arrayAugmentedAssignment1.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/arrayAugmentedAssignment1.fir.ir.txt @@ -16,7 +16,7 @@ FILE fqName: fileName:/arrayAugmentedAssignment1.kt CONSTRUCTOR visibility:public <> (x:kotlin.IntArray) returnType:.C [primary] VALUE_PARAMETER name:x index:0 type:kotlin.IntArray BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.IntArray visibility:private [final] @@ -31,7 +31,7 @@ FILE fqName: fileName:/arrayAugmentedAssignment1.kt receiver: GET_VAR ': .C declared in .C.' type=.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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -48,16 +48,16 @@ FILE fqName: fileName:/arrayAugmentedAssignment1.kt CALL 'public final fun foo (): kotlin.IntArray declared in ' type=kotlin.IntArray origin=null BLOCK type=kotlin.Unit origin=null VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:kotlin.IntArray [val] - GET_VAR 'var x: kotlin.IntArray [var] declared in .testVariable' type=kotlin.IntArray origin=null + GET_VAR 'var x: kotlin.IntArray declared in .testVariable' type=kotlin.IntArray origin=null VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:kotlin.Int [val] CONST Int type=kotlin.Int value=0 - CALL 'public final fun set (index: kotlin.Int, value: kotlin.Int): kotlin.Unit [operator] declared in kotlin.IntArray' type=kotlin.Unit origin=null - $this: GET_VAR 'val tmp_0: kotlin.IntArray [val] declared in .testVariable' type=kotlin.IntArray origin=null - index: GET_VAR 'val tmp_1: kotlin.Int [val] declared in .testVariable' type=kotlin.Int origin=null - value: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: CALL 'public final fun get (index: kotlin.Int): kotlin.Int [operator] declared in kotlin.IntArray' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp_0: kotlin.IntArray [val] declared in .testVariable' type=kotlin.IntArray origin=null - index: GET_VAR 'val tmp_1: kotlin.Int [val] declared in .testVariable' type=kotlin.Int origin=null + CALL 'public final fun set (index: kotlin.Int, value: kotlin.Int): kotlin.Unit declared in kotlin.IntArray' type=kotlin.Unit origin=null + $this: GET_VAR 'val tmp_0: kotlin.IntArray declared in .testVariable' type=kotlin.IntArray origin=null + index: GET_VAR 'val tmp_1: kotlin.Int declared in .testVariable' type=kotlin.Int origin=null + value: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: CALL 'public final fun get (index: kotlin.Int): kotlin.Int declared in kotlin.IntArray' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_0: kotlin.IntArray declared in .testVariable' type=kotlin.IntArray origin=null + index: GET_VAR 'val tmp_1: kotlin.Int declared in .testVariable' type=kotlin.Int origin=null other: CONST Int type=kotlin.Int value=1 FUN name:testCall visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY @@ -66,13 +66,13 @@ FILE fqName: fileName:/arrayAugmentedAssignment1.kt CALL 'public final fun foo (): kotlin.IntArray declared in ' type=kotlin.IntArray origin=null VAR IR_TEMPORARY_VARIABLE name:tmp_3 type:kotlin.Int [val] CALL 'public final fun bar (): kotlin.Int declared in ' type=kotlin.Int origin=null - CALL 'public final fun set (index: kotlin.Int, value: kotlin.Int): kotlin.Unit [operator] declared in kotlin.IntArray' type=kotlin.Unit origin=null - $this: GET_VAR 'val tmp_2: kotlin.IntArray [val] declared in .testCall' type=kotlin.IntArray origin=null - index: GET_VAR 'val tmp_3: kotlin.Int [val] declared in .testCall' type=kotlin.Int origin=null - value: CALL 'public final fun times (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: CALL 'public final fun get (index: kotlin.Int): kotlin.Int [operator] declared in kotlin.IntArray' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp_2: kotlin.IntArray [val] declared in .testCall' type=kotlin.IntArray origin=null - index: GET_VAR 'val tmp_3: kotlin.Int [val] declared in .testCall' type=kotlin.Int origin=null + CALL 'public final fun set (index: kotlin.Int, value: kotlin.Int): kotlin.Unit declared in kotlin.IntArray' type=kotlin.Unit origin=null + $this: GET_VAR 'val tmp_2: kotlin.IntArray declared in .testCall' type=kotlin.IntArray origin=null + index: GET_VAR 'val tmp_3: kotlin.Int declared in .testCall' type=kotlin.Int origin=null + value: CALL 'public final fun times (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: CALL 'public final fun get (index: kotlin.Int): kotlin.Int declared in kotlin.IntArray' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_2: kotlin.IntArray declared in .testCall' type=kotlin.IntArray origin=null + index: GET_VAR 'val tmp_3: kotlin.Int declared in .testCall' type=kotlin.Int origin=null other: CONST Int type=kotlin.Int value=2 FUN name:testMember visibility:public modality:FINAL <> (c:.C) returnType:kotlin.Unit VALUE_PARAMETER name:c index:0 type:.C @@ -83,13 +83,13 @@ FILE fqName: fileName:/arrayAugmentedAssignment1.kt VAR IR_TEMPORARY_VARIABLE name:tmp_5 type:kotlin.Int [val] CONST Int type=kotlin.Int value=0 VAR IR_TEMPORARY_VARIABLE name:tmp_6 type:kotlin.Int [val] - CALL 'public final fun get (index: kotlin.Int): kotlin.Int [operator] declared in kotlin.IntArray' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp_4: kotlin.IntArray [val] declared in .testMember' type=kotlin.IntArray origin=null - index: GET_VAR 'val tmp_5: kotlin.Int [val] declared in .testMember' type=kotlin.Int origin=null - CALL 'public final fun set (index: kotlin.Int, value: kotlin.Int): kotlin.Unit [operator] declared in kotlin.IntArray' type=kotlin.Unit origin=null - $this: GET_VAR 'val tmp_4: kotlin.IntArray [val] declared in .testMember' type=kotlin.IntArray origin=null - index: GET_VAR 'val tmp_5: kotlin.Int [val] declared in .testMember' type=kotlin.Int origin=null - value: CALL 'public final fun inc (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp_6: kotlin.Int [val] declared in .testMember' type=kotlin.Int origin=null + CALL 'public final fun get (index: kotlin.Int): kotlin.Int declared in kotlin.IntArray' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_4: kotlin.IntArray declared in .testMember' type=kotlin.IntArray origin=null + index: GET_VAR 'val tmp_5: kotlin.Int declared in .testMember' type=kotlin.Int origin=null + CALL 'public final fun set (index: kotlin.Int, value: kotlin.Int): kotlin.Unit declared in kotlin.IntArray' type=kotlin.Unit origin=null + $this: GET_VAR 'val tmp_4: kotlin.IntArray declared in .testMember' type=kotlin.IntArray origin=null + index: GET_VAR 'val tmp_5: kotlin.Int declared in .testMember' type=kotlin.Int origin=null + value: CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_6: kotlin.Int declared in .testMember' type=kotlin.Int origin=null TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit - GET_VAR 'val tmp_6: kotlin.Int [val] declared in .testMember' type=kotlin.Int origin=null + GET_VAR 'val tmp_6: kotlin.Int declared in .testMember' type=kotlin.Int origin=null diff --git a/compiler/testData/ir/irText/expressions/arrayAugmentedAssignment1.ir.txt b/compiler/testData/ir/irText/expressions/arrayAugmentedAssignment1.ir.txt index 59f1a57d9c9..5591b9d0ff5 100644 --- a/compiler/testData/ir/irText/expressions/arrayAugmentedAssignment1.ir.txt +++ b/compiler/testData/ir/irText/expressions/arrayAugmentedAssignment1.ir.txt @@ -16,7 +16,7 @@ FILE fqName: fileName:/arrayAugmentedAssignment1.kt CONSTRUCTOR visibility:public <> (x:kotlin.IntArray) returnType:.C [primary] VALUE_PARAMETER name:x index:0 type:kotlin.IntArray BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.IntArray visibility:private [final] @@ -31,7 +31,7 @@ FILE fqName: fileName:/arrayAugmentedAssignment1.kt receiver: GET_VAR ': .C declared in .C.' type=.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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -48,16 +48,16 @@ FILE fqName: fileName:/arrayAugmentedAssignment1.kt CALL 'public final fun foo (): kotlin.IntArray declared in ' type=kotlin.IntArray origin=null BLOCK type=kotlin.Unit origin=PLUSEQ VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:kotlin.IntArray [val] - GET_VAR 'var x: kotlin.IntArray [var] declared in .testVariable' type=kotlin.IntArray origin=null + GET_VAR 'var x: kotlin.IntArray declared in .testVariable' type=kotlin.IntArray origin=null VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:kotlin.Int [val] CONST Int type=kotlin.Int value=0 - CALL 'public final fun set (index: kotlin.Int, value: kotlin.Int): kotlin.Unit [operator] declared in kotlin.IntArray' type=kotlin.Unit origin=PLUSEQ - $this: GET_VAR 'val tmp_0: kotlin.IntArray [val] declared in .testVariable' type=kotlin.IntArray origin=null - index: GET_VAR 'val tmp_1: kotlin.Int [val] declared in .testVariable' type=kotlin.Int origin=null - value: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ - $this: CALL 'public final fun get (index: kotlin.Int): kotlin.Int [operator] declared in kotlin.IntArray' type=kotlin.Int origin=PLUSEQ - $this: GET_VAR 'val tmp_0: kotlin.IntArray [val] declared in .testVariable' type=kotlin.IntArray origin=null - index: GET_VAR 'val tmp_1: kotlin.Int [val] declared in .testVariable' type=kotlin.Int origin=null + CALL 'public final fun set (index: kotlin.Int, value: kotlin.Int): kotlin.Unit declared in kotlin.IntArray' type=kotlin.Unit origin=PLUSEQ + $this: GET_VAR 'val tmp_0: kotlin.IntArray declared in .testVariable' type=kotlin.IntArray origin=null + index: GET_VAR 'val tmp_1: kotlin.Int declared in .testVariable' type=kotlin.Int origin=null + value: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ + $this: CALL 'public final fun get (index: kotlin.Int): kotlin.Int declared in kotlin.IntArray' type=kotlin.Int origin=PLUSEQ + $this: GET_VAR 'val tmp_0: kotlin.IntArray declared in .testVariable' type=kotlin.IntArray origin=null + index: GET_VAR 'val tmp_1: kotlin.Int declared in .testVariable' type=kotlin.Int origin=null other: CONST Int type=kotlin.Int value=1 FUN name:testCall visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY @@ -66,13 +66,13 @@ FILE fqName: fileName:/arrayAugmentedAssignment1.kt CALL 'public final fun foo (): kotlin.IntArray declared in ' type=kotlin.IntArray origin=null VAR IR_TEMPORARY_VARIABLE name:tmp_3 type:kotlin.Int [val] CALL 'public final fun bar (): kotlin.Int declared in ' type=kotlin.Int origin=null - CALL 'public final fun set (index: kotlin.Int, value: kotlin.Int): kotlin.Unit [operator] declared in kotlin.IntArray' type=kotlin.Unit origin=MULTEQ - $this: GET_VAR 'val tmp_2: kotlin.IntArray [val] declared in .testCall' type=kotlin.IntArray origin=null - index: GET_VAR 'val tmp_3: kotlin.Int [val] declared in .testCall' type=kotlin.Int origin=null - value: CALL 'public final fun times (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=MULTEQ - $this: CALL 'public final fun get (index: kotlin.Int): kotlin.Int [operator] declared in kotlin.IntArray' type=kotlin.Int origin=MULTEQ - $this: GET_VAR 'val tmp_2: kotlin.IntArray [val] declared in .testCall' type=kotlin.IntArray origin=null - index: GET_VAR 'val tmp_3: kotlin.Int [val] declared in .testCall' type=kotlin.Int origin=null + CALL 'public final fun set (index: kotlin.Int, value: kotlin.Int): kotlin.Unit declared in kotlin.IntArray' type=kotlin.Unit origin=MULTEQ + $this: GET_VAR 'val tmp_2: kotlin.IntArray declared in .testCall' type=kotlin.IntArray origin=null + index: GET_VAR 'val tmp_3: kotlin.Int declared in .testCall' type=kotlin.Int origin=null + value: CALL 'public final fun times (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=MULTEQ + $this: CALL 'public final fun get (index: kotlin.Int): kotlin.Int declared in kotlin.IntArray' type=kotlin.Int origin=MULTEQ + $this: GET_VAR 'val tmp_2: kotlin.IntArray declared in .testCall' type=kotlin.IntArray origin=null + index: GET_VAR 'val tmp_3: kotlin.Int declared in .testCall' type=kotlin.Int origin=null other: CONST Int type=kotlin.Int value=2 FUN name:testMember visibility:public modality:FINAL <> (c:.C) returnType:kotlin.Unit VALUE_PARAMETER name:c index:0 type:.C @@ -85,12 +85,12 @@ FILE fqName: fileName:/arrayAugmentedAssignment1.kt VAR IR_TEMPORARY_VARIABLE name:tmp_5 type:kotlin.Int [val] CONST Int type=kotlin.Int value=0 VAR IR_TEMPORARY_VARIABLE name:tmp_6 type:kotlin.Int [val] - CALL 'public final fun get (index: kotlin.Int): kotlin.Int [operator] declared in kotlin.IntArray' type=kotlin.Int origin=POSTFIX_INCR - $this: GET_VAR 'val tmp_4: kotlin.IntArray [val] declared in .testMember' type=kotlin.IntArray origin=null - index: GET_VAR 'val tmp_5: kotlin.Int [val] declared in .testMember' type=kotlin.Int origin=null - CALL 'public final fun set (index: kotlin.Int, value: kotlin.Int): kotlin.Unit [operator] declared in kotlin.IntArray' type=kotlin.Unit origin=POSTFIX_INCR - $this: GET_VAR 'val tmp_4: kotlin.IntArray [val] declared in .testMember' type=kotlin.IntArray origin=null - index: GET_VAR 'val tmp_5: kotlin.Int [val] declared in .testMember' type=kotlin.Int origin=null - value: CALL 'public final fun inc (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_INCR - $this: GET_VAR 'val tmp_6: kotlin.Int [val] declared in .testMember' type=kotlin.Int origin=null - GET_VAR 'val tmp_6: kotlin.Int [val] declared in .testMember' type=kotlin.Int origin=null + CALL 'public final fun get (index: kotlin.Int): kotlin.Int declared in kotlin.IntArray' type=kotlin.Int origin=POSTFIX_INCR + $this: GET_VAR 'val tmp_4: kotlin.IntArray declared in .testMember' type=kotlin.IntArray origin=null + index: GET_VAR 'val tmp_5: kotlin.Int declared in .testMember' type=kotlin.Int origin=null + CALL 'public final fun set (index: kotlin.Int, value: kotlin.Int): kotlin.Unit declared in kotlin.IntArray' type=kotlin.Unit origin=POSTFIX_INCR + $this: GET_VAR 'val tmp_4: kotlin.IntArray declared in .testMember' type=kotlin.IntArray origin=null + index: GET_VAR 'val tmp_5: kotlin.Int declared in .testMember' type=kotlin.Int origin=null + value: CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_INCR + $this: GET_VAR 'val tmp_6: kotlin.Int declared in .testMember' type=kotlin.Int origin=null + GET_VAR 'val tmp_6: kotlin.Int declared in .testMember' type=kotlin.Int origin=null diff --git a/compiler/testData/ir/irText/expressions/arrayAugmentedAssignment1.kt b/compiler/testData/ir/irText/expressions/arrayAugmentedAssignment1.kt index bfc1408b017..a00051d55e5 100644 --- a/compiler/testData/ir/irText/expressions/arrayAugmentedAssignment1.kt +++ b/compiler/testData/ir/irText/expressions/arrayAugmentedAssignment1.kt @@ -1,6 +1,3 @@ -// IGNORE_BACKEND: JS_IR -// IGNORE_BACKEND: JS_IR_ES6 - fun foo(): IntArray = intArrayOf(1, 2, 3) fun bar() = 42 diff --git a/compiler/testData/ir/irText/expressions/arrayAugmentedAssignment2.fir.ir.txt b/compiler/testData/ir/irText/expressions/arrayAugmentedAssignment2.fir.ir.txt index 68194b85141..5649a7efad2 100644 --- a/compiler/testData/ir/irText/expressions/arrayAugmentedAssignment2.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/arrayAugmentedAssignment2.fir.ir.txt @@ -6,7 +6,7 @@ FILE fqName: fileName:/arrayAugmentedAssignment2.kt VALUE_PARAMETER name:index index:0 type:kotlin.String 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -26,7 +26,7 @@ FILE fqName: fileName:/arrayAugmentedAssignment2.kt VALUE_PARAMETER name:value index:1 type:kotlin.Int 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -46,12 +46,12 @@ FILE fqName: fileName:/arrayAugmentedAssignment2.kt GET_VAR 'a: .IA declared in .test' type=.IA origin=null VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:kotlin.String [val] CONST String type=kotlin.String value="" - CALL 'public abstract fun set (index: kotlin.String, value: kotlin.Int): kotlin.Unit [operator] declared in .IB' type=kotlin.Unit origin=null + CALL 'public abstract fun set (index: kotlin.String, value: kotlin.Int): kotlin.Unit declared in .IB' type=kotlin.Unit origin=null $this: GET_VAR ': .IB declared in .test' type=.IB origin=null - $receiver: GET_VAR 'val tmp_0: .IA [val] declared in .test' type=.IA origin=null - index: GET_VAR 'val tmp_1: kotlin.String [val] declared in .test' type=kotlin.String origin=null - value: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: CALL 'public abstract fun get (index: kotlin.String): kotlin.Int [operator] declared in .IA' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp_0: .IA [val] declared in .test' type=.IA origin=null - index: GET_VAR 'val tmp_1: kotlin.String [val] declared in .test' type=kotlin.String origin=null + $receiver: GET_VAR 'val tmp_0: .IA declared in .test' type=.IA origin=null + index: GET_VAR 'val tmp_1: kotlin.String declared in .test' type=kotlin.String origin=null + value: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: CALL 'public abstract fun get (index: kotlin.String): kotlin.Int declared in .IA' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_0: .IA declared in .test' type=.IA origin=null + index: GET_VAR 'val tmp_1: kotlin.String declared in .test' type=kotlin.String origin=null other: CONST Int type=kotlin.Int value=42 diff --git a/compiler/testData/ir/irText/expressions/arrayAugmentedAssignment2.ir.txt b/compiler/testData/ir/irText/expressions/arrayAugmentedAssignment2.ir.txt index 949c683da15..852693046bb 100644 --- a/compiler/testData/ir/irText/expressions/arrayAugmentedAssignment2.ir.txt +++ b/compiler/testData/ir/irText/expressions/arrayAugmentedAssignment2.ir.txt @@ -6,7 +6,7 @@ FILE fqName: fileName:/arrayAugmentedAssignment2.kt VALUE_PARAMETER name:index index:0 type:kotlin.String 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -26,7 +26,7 @@ FILE fqName: fileName:/arrayAugmentedAssignment2.kt VALUE_PARAMETER name:value index:1 type:kotlin.Int 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -46,12 +46,12 @@ FILE fqName: fileName:/arrayAugmentedAssignment2.kt GET_VAR 'a: .IA declared in .test' type=.IA origin=null VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:kotlin.String [val] CONST String type=kotlin.String value="" - CALL 'public abstract fun set (index: kotlin.String, value: kotlin.Int): kotlin.Unit [operator] declared in .IB' type=kotlin.Unit origin=PLUSEQ + CALL 'public abstract fun set (index: kotlin.String, value: kotlin.Int): kotlin.Unit declared in .IB' type=kotlin.Unit origin=PLUSEQ $this: GET_VAR ': .IB declared in .test' type=.IB origin=null - $receiver: GET_VAR 'val tmp_0: .IA [val] declared in .test' type=.IA origin=null - index: GET_VAR 'val tmp_1: kotlin.String [val] declared in .test' type=kotlin.String origin=null - value: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ - $this: CALL 'public abstract fun get (index: kotlin.String): kotlin.Int [operator] declared in .IA' type=kotlin.Int origin=PLUSEQ - $this: GET_VAR 'val tmp_0: .IA [val] declared in .test' type=.IA origin=null - index: GET_VAR 'val tmp_1: kotlin.String [val] declared in .test' type=kotlin.String origin=null + $receiver: GET_VAR 'val tmp_0: .IA declared in .test' type=.IA origin=null + index: GET_VAR 'val tmp_1: kotlin.String declared in .test' type=kotlin.String origin=null + value: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ + $this: CALL 'public abstract fun get (index: kotlin.String): kotlin.Int declared in .IA' type=kotlin.Int origin=PLUSEQ + $this: GET_VAR 'val tmp_0: .IA declared in .test' type=.IA origin=null + index: GET_VAR 'val tmp_1: kotlin.String declared in .test' type=kotlin.String origin=null other: CONST Int type=kotlin.Int value=42 diff --git a/compiler/testData/ir/irText/expressions/assignments.ir.txt b/compiler/testData/ir/irText/expressions/assignments.ir.txt index f8e96b50d6c..08fdb944feb 100644 --- a/compiler/testData/ir/irText/expressions/assignments.ir.txt +++ b/compiler/testData/ir/irText/expressions/assignments.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/assignments.kt CONSTRUCTOR visibility:public <> (x:kotlin.Int) returnType:.Ref [primary] VALUE_PARAMETER name:x index:0 type:kotlin.Int BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Ref modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:x visibility:public modality:FINAL [var] FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private @@ -27,7 +27,7 @@ FILE fqName: fileName:/assignments.kt value: GET_VAR ': kotlin.Int declared in .Ref.' type=kotlin.Int 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -42,11 +42,11 @@ FILE fqName: fileName:/assignments.kt BLOCK_BODY VAR name:x type:kotlin.Int [var] CONST Int type=kotlin.Int value=0 - SET_VAR 'var x: kotlin.Int [var] declared in .test1' type=kotlin.Unit origin=EQ + SET_VAR 'var x: kotlin.Int declared in .test1' type=kotlin.Unit origin=EQ CONST Int type=kotlin.Int value=1 - SET_VAR 'var x: kotlin.Int [var] declared in .test1' type=kotlin.Unit origin=EQ - CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUS - $this: GET_VAR 'var x: kotlin.Int [var] declared in .test1' type=kotlin.Int origin=null + SET_VAR 'var x: kotlin.Int declared in .test1' type=kotlin.Unit origin=EQ + CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUS + $this: GET_VAR 'var x: kotlin.Int declared in .test1' type=kotlin.Int origin=null other: CONST Int type=kotlin.Int value=1 FUN name:test2 visibility:public modality:FINAL <> (r:.Ref) returnType:kotlin.Unit VALUE_PARAMETER name:r index:0 type:.Ref diff --git a/compiler/testData/ir/irText/expressions/augmentedAssignment1.fir.ir.txt b/compiler/testData/ir/irText/expressions/augmentedAssignment1.fir.ir.txt index 0668f122294..795cba07a80 100644 --- a/compiler/testData/ir/irText/expressions/augmentedAssignment1.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/augmentedAssignment1.fir.ir.txt @@ -18,45 +18,45 @@ FILE fqName: fileName:/augmentedAssignment1.kt BLOCK_BODY VAR name:x type:kotlin.Int [var] CONST Int type=kotlin.Int value=0 - SET_VAR 'var x: kotlin.Int [var] declared in .testVariable' type=kotlin.Unit origin=PLUSEQ - CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'var x: kotlin.Int [var] declared in .testVariable' type=kotlin.Int origin=null + SET_VAR 'var x: kotlin.Int declared in .testVariable' type=kotlin.Unit origin=PLUSEQ + CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'var x: kotlin.Int declared in .testVariable' type=kotlin.Int origin=null other: CONST Int type=kotlin.Int value=1 - SET_VAR 'var x: kotlin.Int [var] declared in .testVariable' type=kotlin.Unit origin=MINUSEQ - CALL 'public final fun minus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'var x: kotlin.Int [var] declared in .testVariable' type=kotlin.Int origin=null + SET_VAR 'var x: kotlin.Int declared in .testVariable' type=kotlin.Unit origin=MINUSEQ + CALL 'public final fun minus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'var x: kotlin.Int declared in .testVariable' type=kotlin.Int origin=null other: CONST Int type=kotlin.Int value=2 - SET_VAR 'var x: kotlin.Int [var] declared in .testVariable' type=kotlin.Unit origin=EQ - CALL 'public final fun times (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'var x: kotlin.Int [var] declared in .testVariable' type=kotlin.Int origin=null + SET_VAR 'var x: kotlin.Int declared in .testVariable' type=kotlin.Unit origin=EQ + CALL 'public final fun times (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'var x: kotlin.Int declared in .testVariable' type=kotlin.Int origin=null other: CONST Int type=kotlin.Int value=3 - SET_VAR 'var x: kotlin.Int [var] declared in .testVariable' type=kotlin.Unit origin=EQ - CALL 'public final fun div (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'var x: kotlin.Int [var] declared in .testVariable' type=kotlin.Int origin=null + SET_VAR 'var x: kotlin.Int declared in .testVariable' type=kotlin.Unit origin=EQ + CALL 'public final fun div (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'var x: kotlin.Int declared in .testVariable' type=kotlin.Int origin=null other: CONST Int type=kotlin.Int value=4 - SET_VAR 'var x: kotlin.Int [var] declared in .testVariable' type=kotlin.Unit origin=EQ - CALL 'public final fun rem (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'var x: kotlin.Int [var] declared in .testVariable' type=kotlin.Int origin=null + SET_VAR 'var x: kotlin.Int declared in .testVariable' type=kotlin.Unit origin=EQ + CALL 'public final fun rem (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'var x: kotlin.Int declared in .testVariable' type=kotlin.Int origin=null other: CONST Int type=kotlin.Int value=5 FUN name:testProperty visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=EQ - : CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null + : CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: CALL 'public final fun (): kotlin.Int declared in ' type=kotlin.Int origin=GET_PROPERTY other: CONST Int type=kotlin.Int value=1 CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=EQ - : CALL 'public final fun minus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null + : CALL 'public final fun minus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: CALL 'public final fun (): kotlin.Int declared in ' type=kotlin.Int origin=GET_PROPERTY other: CONST Int type=kotlin.Int value=2 CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=EQ - : CALL 'public final fun times (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null + : CALL 'public final fun times (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: CALL 'public final fun (): kotlin.Int declared in ' type=kotlin.Int origin=GET_PROPERTY other: CONST Int type=kotlin.Int value=3 CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=EQ - : CALL 'public final fun div (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null + : CALL 'public final fun div (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: CALL 'public final fun (): kotlin.Int declared in ' type=kotlin.Int origin=GET_PROPERTY other: CONST Int type=kotlin.Int value=4 CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=EQ - : CALL 'public final fun rem (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null + : CALL 'public final fun rem (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: CALL 'public final fun (): kotlin.Int declared in ' type=kotlin.Int origin=GET_PROPERTY other: CONST Int type=kotlin.Int value=5 diff --git a/compiler/testData/ir/irText/expressions/augmentedAssignment1.ir.txt b/compiler/testData/ir/irText/expressions/augmentedAssignment1.ir.txt index d982b7598d2..658dd886f90 100644 --- a/compiler/testData/ir/irText/expressions/augmentedAssignment1.ir.txt +++ b/compiler/testData/ir/irText/expressions/augmentedAssignment1.ir.txt @@ -18,50 +18,50 @@ FILE fqName: fileName:/augmentedAssignment1.kt BLOCK_BODY VAR name:x type:kotlin.Int [var] CONST Int type=kotlin.Int value=0 - SET_VAR 'var x: kotlin.Int [var] declared in .testVariable' type=kotlin.Unit origin=PLUSEQ - CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ - $this: GET_VAR 'var x: kotlin.Int [var] declared in .testVariable' type=kotlin.Int origin=PLUSEQ + SET_VAR 'var x: kotlin.Int declared in .testVariable' type=kotlin.Unit origin=PLUSEQ + CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ + $this: GET_VAR 'var x: kotlin.Int declared in .testVariable' type=kotlin.Int origin=PLUSEQ other: CONST Int type=kotlin.Int value=1 - SET_VAR 'var x: kotlin.Int [var] declared in .testVariable' type=kotlin.Unit origin=MINUSEQ - CALL 'public final fun minus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=MINUSEQ - $this: GET_VAR 'var x: kotlin.Int [var] declared in .testVariable' type=kotlin.Int origin=MINUSEQ + SET_VAR 'var x: kotlin.Int declared in .testVariable' type=kotlin.Unit origin=MINUSEQ + CALL 'public final fun minus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=MINUSEQ + $this: GET_VAR 'var x: kotlin.Int declared in .testVariable' type=kotlin.Int origin=MINUSEQ other: CONST Int type=kotlin.Int value=2 - SET_VAR 'var x: kotlin.Int [var] declared in .testVariable' type=kotlin.Unit origin=MULTEQ - CALL 'public final fun times (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=MULTEQ - $this: GET_VAR 'var x: kotlin.Int [var] declared in .testVariable' type=kotlin.Int origin=MULTEQ + SET_VAR 'var x: kotlin.Int declared in .testVariable' type=kotlin.Unit origin=MULTEQ + CALL 'public final fun times (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=MULTEQ + $this: GET_VAR 'var x: kotlin.Int declared in .testVariable' type=kotlin.Int origin=MULTEQ other: CONST Int type=kotlin.Int value=3 - SET_VAR 'var x: kotlin.Int [var] declared in .testVariable' type=kotlin.Unit origin=DIVEQ - CALL 'public final fun div (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=DIVEQ - $this: GET_VAR 'var x: kotlin.Int [var] declared in .testVariable' type=kotlin.Int origin=DIVEQ + SET_VAR 'var x: kotlin.Int declared in .testVariable' type=kotlin.Unit origin=DIVEQ + CALL 'public final fun div (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=DIVEQ + $this: GET_VAR 'var x: kotlin.Int declared in .testVariable' type=kotlin.Int origin=DIVEQ other: CONST Int type=kotlin.Int value=4 - SET_VAR 'var x: kotlin.Int [var] declared in .testVariable' type=kotlin.Unit origin=PERCEQ - CALL 'public final fun rem (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PERCEQ - $this: GET_VAR 'var x: kotlin.Int [var] declared in .testVariable' type=kotlin.Int origin=PERCEQ + SET_VAR 'var x: kotlin.Int declared in .testVariable' type=kotlin.Unit origin=PERCEQ + CALL 'public final fun rem (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PERCEQ + $this: GET_VAR 'var x: kotlin.Int declared in .testVariable' type=kotlin.Int origin=PERCEQ other: CONST Int type=kotlin.Int value=5 FUN name:testProperty visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY BLOCK type=kotlin.Unit origin=PLUSEQ CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=PLUSEQ - : CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ + : CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ $this: CALL 'public final fun (): kotlin.Int declared in ' type=kotlin.Int origin=PLUSEQ other: CONST Int type=kotlin.Int value=1 BLOCK type=kotlin.Unit origin=MINUSEQ CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=MINUSEQ - : CALL 'public final fun minus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=MINUSEQ + : CALL 'public final fun minus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=MINUSEQ $this: CALL 'public final fun (): kotlin.Int declared in ' type=kotlin.Int origin=MINUSEQ other: CONST Int type=kotlin.Int value=2 BLOCK type=kotlin.Unit origin=MULTEQ CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=MULTEQ - : CALL 'public final fun times (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=MULTEQ + : CALL 'public final fun times (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=MULTEQ $this: CALL 'public final fun (): kotlin.Int declared in ' type=kotlin.Int origin=MULTEQ other: CONST Int type=kotlin.Int value=3 BLOCK type=kotlin.Unit origin=DIVEQ CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=DIVEQ - : CALL 'public final fun div (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=DIVEQ + : CALL 'public final fun div (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=DIVEQ $this: CALL 'public final fun (): kotlin.Int declared in ' type=kotlin.Int origin=DIVEQ other: CONST Int type=kotlin.Int value=4 BLOCK type=kotlin.Unit origin=PERCEQ CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=PERCEQ - : CALL 'public final fun rem (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PERCEQ + : CALL 'public final fun rem (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PERCEQ $this: CALL 'public final fun (): kotlin.Int declared in ' type=kotlin.Int origin=PERCEQ other: CONST Int type=kotlin.Int value=5 diff --git a/compiler/testData/ir/irText/expressions/augmentedAssignment2.fir.ir.txt b/compiler/testData/ir/irText/expressions/augmentedAssignment2.fir.ir.txt index d5aa74e0f5b..291131f9098 100644 --- a/compiler/testData/ir/irText/expressions/augmentedAssignment2.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/augmentedAssignment2.fir.ir.txt @@ -3,11 +3,11 @@ FILE fqName: fileName:/augmentedAssignment2.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.A CONSTRUCTOR visibility:public <> () returnType:.A [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:A modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -41,7 +41,7 @@ FILE fqName: fileName:/augmentedAssignment2.kt PROPERTY name:p visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:p type:.A visibility:private [final,static] EXPRESSION_BODY - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .A' type=.A origin=null + CONSTRUCTOR_CALL 'public constructor () declared in .A' type=.A origin=null FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:.A correspondingProperty: PROPERTY name:p visibility:public modality:FINAL [val] BLOCK_BODY @@ -50,36 +50,36 @@ FILE fqName: fileName:/augmentedAssignment2.kt FUN name:testVariable visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY VAR name:a type:.A [val] - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .A' type=.A origin=null - CALL 'public final fun plusAssign (s: kotlin.String): kotlin.Unit [operator] declared in ' type=kotlin.Unit origin=null - $receiver: GET_VAR 'val a: .A [val] declared in .testVariable' type=.A origin=null + CONSTRUCTOR_CALL 'public constructor () declared in .A' type=.A origin=null + CALL 'public final fun plusAssign (s: kotlin.String): kotlin.Unit declared in ' type=kotlin.Unit origin=null + $receiver: GET_VAR 'val a: .A declared in .testVariable' type=.A origin=null s: CONST String type=kotlin.String value="+=" - CALL 'public final fun minusAssign (s: kotlin.String): kotlin.Unit [operator] declared in ' type=kotlin.Unit origin=null - $receiver: GET_VAR 'val a: .A [val] declared in .testVariable' type=.A origin=null + CALL 'public final fun minusAssign (s: kotlin.String): kotlin.Unit declared in ' type=kotlin.Unit origin=null + $receiver: GET_VAR 'val a: .A declared in .testVariable' type=.A origin=null s: CONST String type=kotlin.String value="-=" - CALL 'public final fun timesAssign (s: kotlin.String): kotlin.Unit [operator] declared in ' type=kotlin.Unit origin=null - $receiver: GET_VAR 'val a: .A [val] declared in .testVariable' type=.A origin=null + CALL 'public final fun timesAssign (s: kotlin.String): kotlin.Unit declared in ' type=kotlin.Unit origin=null + $receiver: GET_VAR 'val a: .A declared in .testVariable' type=.A origin=null s: CONST String type=kotlin.String value="*=" - CALL 'public final fun divAssign (s: kotlin.String): kotlin.Unit [operator] declared in ' type=kotlin.Unit origin=null - $receiver: GET_VAR 'val a: .A [val] declared in .testVariable' type=.A origin=null + CALL 'public final fun divAssign (s: kotlin.String): kotlin.Unit declared in ' type=kotlin.Unit origin=null + $receiver: GET_VAR 'val a: .A declared in .testVariable' type=.A origin=null s: CONST String type=kotlin.String value="/=" - CALL 'public final fun remAssign (s: kotlin.String): kotlin.Unit [operator] declared in ' type=kotlin.Unit origin=null - $receiver: GET_VAR 'val a: .A [val] declared in .testVariable' type=.A origin=null + CALL 'public final fun remAssign (s: kotlin.String): kotlin.Unit declared in ' type=kotlin.Unit origin=null + $receiver: GET_VAR 'val a: .A declared in .testVariable' type=.A origin=null s: CONST String type=kotlin.String value="*=" FUN name:testProperty visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY - CALL 'public final fun plusAssign (s: kotlin.String): kotlin.Unit [operator] declared in ' type=kotlin.Unit origin=null + CALL 'public final fun plusAssign (s: kotlin.String): kotlin.Unit declared in ' type=kotlin.Unit origin=null $receiver: CALL 'public final fun (): .A declared in ' type=.A origin=GET_PROPERTY s: CONST String type=kotlin.String value="+=" - CALL 'public final fun minusAssign (s: kotlin.String): kotlin.Unit [operator] declared in ' type=kotlin.Unit origin=null + CALL 'public final fun minusAssign (s: kotlin.String): kotlin.Unit declared in ' type=kotlin.Unit origin=null $receiver: CALL 'public final fun (): .A declared in ' type=.A origin=GET_PROPERTY s: CONST String type=kotlin.String value="-=" - CALL 'public final fun timesAssign (s: kotlin.String): kotlin.Unit [operator] declared in ' type=kotlin.Unit origin=null + CALL 'public final fun timesAssign (s: kotlin.String): kotlin.Unit declared in ' type=kotlin.Unit origin=null $receiver: CALL 'public final fun (): .A declared in ' type=.A origin=GET_PROPERTY s: CONST String type=kotlin.String value="*=" - CALL 'public final fun divAssign (s: kotlin.String): kotlin.Unit [operator] declared in ' type=kotlin.Unit origin=null + CALL 'public final fun divAssign (s: kotlin.String): kotlin.Unit declared in ' type=kotlin.Unit origin=null $receiver: CALL 'public final fun (): .A declared in ' type=.A origin=GET_PROPERTY s: CONST String type=kotlin.String value="/=" - CALL 'public final fun remAssign (s: kotlin.String): kotlin.Unit [operator] declared in ' type=kotlin.Unit origin=null + CALL 'public final fun remAssign (s: kotlin.String): kotlin.Unit declared in ' type=kotlin.Unit origin=null $receiver: CALL 'public final fun (): .A declared in ' type=.A origin=GET_PROPERTY s: CONST String type=kotlin.String value="%=" diff --git a/compiler/testData/ir/irText/expressions/augmentedAssignment2.ir.txt b/compiler/testData/ir/irText/expressions/augmentedAssignment2.ir.txt index c26097b3b6e..2780582f5b0 100644 --- a/compiler/testData/ir/irText/expressions/augmentedAssignment2.ir.txt +++ b/compiler/testData/ir/irText/expressions/augmentedAssignment2.ir.txt @@ -3,11 +3,11 @@ FILE fqName: fileName:/augmentedAssignment2.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.A CONSTRUCTOR visibility:public <> () returnType:.A [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:A modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -41,7 +41,7 @@ FILE fqName: fileName:/augmentedAssignment2.kt PROPERTY name:p visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:p type:.A visibility:private [final,static] EXPRESSION_BODY - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .A' type=.A origin=null + CONSTRUCTOR_CALL 'public constructor () declared in .A' type=.A origin=null FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:.A correspondingProperty: PROPERTY name:p visibility:public modality:FINAL [val] BLOCK_BODY @@ -50,41 +50,41 @@ FILE fqName: fileName:/augmentedAssignment2.kt FUN name:testVariable visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY VAR name:a type:.A [val] - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .A' type=.A origin=null - CALL 'public final fun plusAssign (s: kotlin.String): kotlin.Unit [operator] declared in ' type=kotlin.Unit origin=PLUSEQ - $receiver: GET_VAR 'val a: .A [val] declared in .testVariable' type=.A origin=PLUSEQ + CONSTRUCTOR_CALL 'public constructor () declared in .A' type=.A origin=null + CALL 'public final fun plusAssign (s: kotlin.String): kotlin.Unit declared in ' type=kotlin.Unit origin=PLUSEQ + $receiver: GET_VAR 'val a: .A declared in .testVariable' type=.A origin=PLUSEQ s: CONST String type=kotlin.String value="+=" - CALL 'public final fun minusAssign (s: kotlin.String): kotlin.Unit [operator] declared in ' type=kotlin.Unit origin=MINUSEQ - $receiver: GET_VAR 'val a: .A [val] declared in .testVariable' type=.A origin=MINUSEQ + CALL 'public final fun minusAssign (s: kotlin.String): kotlin.Unit declared in ' type=kotlin.Unit origin=MINUSEQ + $receiver: GET_VAR 'val a: .A declared in .testVariable' type=.A origin=MINUSEQ s: CONST String type=kotlin.String value="-=" - CALL 'public final fun timesAssign (s: kotlin.String): kotlin.Unit [operator] declared in ' type=kotlin.Unit origin=MULTEQ - $receiver: GET_VAR 'val a: .A [val] declared in .testVariable' type=.A origin=MULTEQ + CALL 'public final fun timesAssign (s: kotlin.String): kotlin.Unit declared in ' type=kotlin.Unit origin=MULTEQ + $receiver: GET_VAR 'val a: .A declared in .testVariable' type=.A origin=MULTEQ s: CONST String type=kotlin.String value="*=" - CALL 'public final fun divAssign (s: kotlin.String): kotlin.Unit [operator] declared in ' type=kotlin.Unit origin=DIVEQ - $receiver: GET_VAR 'val a: .A [val] declared in .testVariable' type=.A origin=DIVEQ + CALL 'public final fun divAssign (s: kotlin.String): kotlin.Unit declared in ' type=kotlin.Unit origin=DIVEQ + $receiver: GET_VAR 'val a: .A declared in .testVariable' type=.A origin=DIVEQ s: CONST String type=kotlin.String value="/=" - CALL 'public final fun remAssign (s: kotlin.String): kotlin.Unit [operator] declared in ' type=kotlin.Unit origin=PERCEQ - $receiver: GET_VAR 'val a: .A [val] declared in .testVariable' type=.A origin=PERCEQ + CALL 'public final fun remAssign (s: kotlin.String): kotlin.Unit declared in ' type=kotlin.Unit origin=PERCEQ + $receiver: GET_VAR 'val a: .A declared in .testVariable' type=.A origin=PERCEQ s: CONST String type=kotlin.String value="*=" FUN name:testProperty visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY BLOCK type=kotlin.Unit origin=PLUSEQ - CALL 'public final fun plusAssign (s: kotlin.String): kotlin.Unit [operator] declared in ' type=kotlin.Unit origin=PLUSEQ + CALL 'public final fun plusAssign (s: kotlin.String): kotlin.Unit declared in ' type=kotlin.Unit origin=PLUSEQ $receiver: CALL 'public final fun (): .A declared in ' type=.A origin=PLUSEQ s: CONST String type=kotlin.String value="+=" BLOCK type=kotlin.Unit origin=MINUSEQ - CALL 'public final fun minusAssign (s: kotlin.String): kotlin.Unit [operator] declared in ' type=kotlin.Unit origin=MINUSEQ + CALL 'public final fun minusAssign (s: kotlin.String): kotlin.Unit declared in ' type=kotlin.Unit origin=MINUSEQ $receiver: CALL 'public final fun (): .A declared in ' type=.A origin=MINUSEQ s: CONST String type=kotlin.String value="-=" BLOCK type=kotlin.Unit origin=MULTEQ - CALL 'public final fun timesAssign (s: kotlin.String): kotlin.Unit [operator] declared in ' type=kotlin.Unit origin=MULTEQ + CALL 'public final fun timesAssign (s: kotlin.String): kotlin.Unit declared in ' type=kotlin.Unit origin=MULTEQ $receiver: CALL 'public final fun (): .A declared in ' type=.A origin=MULTEQ s: CONST String type=kotlin.String value="*=" BLOCK type=kotlin.Unit origin=DIVEQ - CALL 'public final fun divAssign (s: kotlin.String): kotlin.Unit [operator] declared in ' type=kotlin.Unit origin=DIVEQ + CALL 'public final fun divAssign (s: kotlin.String): kotlin.Unit declared in ' type=kotlin.Unit origin=DIVEQ $receiver: CALL 'public final fun (): .A declared in ' type=.A origin=DIVEQ s: CONST String type=kotlin.String value="/=" BLOCK type=kotlin.Unit origin=PERCEQ - CALL 'public final fun remAssign (s: kotlin.String): kotlin.Unit [operator] declared in ' type=kotlin.Unit origin=PERCEQ + CALL 'public final fun remAssign (s: kotlin.String): kotlin.Unit declared in ' type=kotlin.Unit origin=PERCEQ $receiver: CALL 'public final fun (): .A declared in ' type=.A origin=PERCEQ s: CONST String type=kotlin.String value="%=" diff --git a/compiler/testData/ir/irText/expressions/augmentedAssignmentWithExpression.fir.ir.txt b/compiler/testData/ir/irText/expressions/augmentedAssignmentWithExpression.fir.ir.txt index ec72d39ee90..4e335fd60d4 100644 --- a/compiler/testData/ir/irText/expressions/augmentedAssignmentWithExpression.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/augmentedAssignmentWithExpression.fir.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/augmentedAssignmentWithExpression.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Host CONSTRUCTOR visibility:public <> () returnType:.Host [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Host modality:FINAL visibility:public superTypes:[kotlin.Any]' FUN name:plusAssign visibility:public modality:FINAL <> ($this:.Host, x:kotlin.Int) returnType:kotlin.Unit [operator] $this: VALUE_PARAMETER name: type:.Host @@ -12,12 +12,12 @@ FILE fqName: fileName:/augmentedAssignmentWithExpression.kt FUN name:test1 visibility:public modality:FINAL <> ($this:.Host) returnType:kotlin.Unit $this: VALUE_PARAMETER name: type:.Host BLOCK_BODY - CALL 'public final fun plusAssign (x: kotlin.Int): kotlin.Unit [operator] declared in .Host' type=kotlin.Unit origin=null + CALL 'public final fun plusAssign (x: kotlin.Int): kotlin.Unit declared in .Host' type=kotlin.Unit origin=null $this: GET_VAR ': .Host declared in .Host.test1' type=.Host origin=null x: CONST Int type=kotlin.Int value=1 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -31,22 +31,22 @@ FILE fqName: fileName:/augmentedAssignmentWithExpression.kt FUN name:foo visibility:public modality:FINAL <> () returnType:.Host BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun foo (): .Host declared in ' - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .Host' type=.Host origin=null + CONSTRUCTOR_CALL 'public constructor () declared in .Host' type=.Host origin=null FUN name:test2 visibility:public modality:FINAL <> ($receiver:.Host) returnType:kotlin.Unit $receiver: VALUE_PARAMETER name: type:.Host BLOCK_BODY - CALL 'public final fun plusAssign (x: kotlin.Int): kotlin.Unit [operator] declared in .Host' type=kotlin.Unit origin=null + CALL 'public final fun plusAssign (x: kotlin.Int): kotlin.Unit declared in .Host' type=kotlin.Unit origin=null $this: GET_VAR ': .Host declared in .test2' type=.Host origin=null x: CONST Int type=kotlin.Int value=1 FUN name:test3 visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY - CALL 'public final fun plusAssign (x: kotlin.Int): kotlin.Unit [operator] declared in .Host' type=kotlin.Unit origin=null + CALL 'public final fun plusAssign (x: kotlin.Int): kotlin.Unit declared in .Host' type=kotlin.Unit origin=null $this: CALL 'public final fun foo (): .Host declared in ' type=.Host origin=null x: CONST Int type=kotlin.Int value=1 FUN name:test4 visibility:public modality:FINAL <> (a:kotlin.Function0<.Host>) returnType:kotlin.Unit VALUE_PARAMETER name:a index:0 type:kotlin.Function0<.Host> BLOCK_BODY - CALL 'public final fun plusAssign (x: kotlin.Int): kotlin.Unit [operator] declared in .Host' type=kotlin.Unit origin=null - $this: CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=.Host origin=INVOKE + CALL 'public final fun plusAssign (x: kotlin.Int): kotlin.Unit declared in .Host' type=kotlin.Unit origin=null + $this: CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=.Host origin=INVOKE $this: GET_VAR 'a: kotlin.Function0<.Host> declared in .test4' type=kotlin.Function0<.Host> origin=VARIABLE_AS_FUNCTION x: CONST Int type=kotlin.Int value=1 diff --git a/compiler/testData/ir/irText/expressions/augmentedAssignmentWithExpression.ir.txt b/compiler/testData/ir/irText/expressions/augmentedAssignmentWithExpression.ir.txt index bcd3e1600c7..e9734d7d62c 100644 --- a/compiler/testData/ir/irText/expressions/augmentedAssignmentWithExpression.ir.txt +++ b/compiler/testData/ir/irText/expressions/augmentedAssignmentWithExpression.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/augmentedAssignmentWithExpression.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Host CONSTRUCTOR visibility:public <> () returnType:.Host [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Host modality:FINAL visibility:public superTypes:[kotlin.Any]' FUN name:plusAssign visibility:public modality:FINAL <> ($this:.Host, x:kotlin.Int) returnType:kotlin.Unit [operator] $this: VALUE_PARAMETER name: type:.Host @@ -12,12 +12,12 @@ FILE fqName: fileName:/augmentedAssignmentWithExpression.kt FUN name:test1 visibility:public modality:FINAL <> ($this:.Host) returnType:kotlin.Unit $this: VALUE_PARAMETER name: type:.Host BLOCK_BODY - CALL 'public final fun plusAssign (x: kotlin.Int): kotlin.Unit [operator] declared in .Host' type=kotlin.Unit origin=PLUSEQ + CALL 'public final fun plusAssign (x: kotlin.Int): kotlin.Unit declared in .Host' type=kotlin.Unit origin=PLUSEQ $this: GET_VAR ': .Host declared in .Host.test1' type=.Host origin=PLUSEQ x: CONST Int type=kotlin.Int value=1 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -31,22 +31,22 @@ FILE fqName: fileName:/augmentedAssignmentWithExpression.kt FUN name:foo visibility:public modality:FINAL <> () returnType:.Host BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun foo (): .Host declared in ' - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .Host' type=.Host origin=null + CONSTRUCTOR_CALL 'public constructor () declared in .Host' type=.Host origin=null FUN name:test2 visibility:public modality:FINAL <> ($receiver:.Host) returnType:kotlin.Unit $receiver: VALUE_PARAMETER name: type:.Host BLOCK_BODY - CALL 'public final fun plusAssign (x: kotlin.Int): kotlin.Unit [operator] declared in .Host' type=kotlin.Unit origin=PLUSEQ + CALL 'public final fun plusAssign (x: kotlin.Int): kotlin.Unit declared in .Host' type=kotlin.Unit origin=PLUSEQ $this: GET_VAR ': .Host declared in .test2' type=.Host origin=PLUSEQ x: CONST Int type=kotlin.Int value=1 FUN name:test3 visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY - CALL 'public final fun plusAssign (x: kotlin.Int): kotlin.Unit [operator] declared in .Host' type=kotlin.Unit origin=PLUSEQ + CALL 'public final fun plusAssign (x: kotlin.Int): kotlin.Unit declared in .Host' type=kotlin.Unit origin=PLUSEQ $this: CALL 'public final fun foo (): .Host declared in ' type=.Host origin=null x: CONST Int type=kotlin.Int value=1 FUN name:test4 visibility:public modality:FINAL <> (a:kotlin.Function0<.Host>) returnType:kotlin.Unit VALUE_PARAMETER name:a index:0 type:kotlin.Function0<.Host> BLOCK_BODY - CALL 'public final fun plusAssign (x: kotlin.Int): kotlin.Unit [operator] declared in .Host' type=kotlin.Unit origin=PLUSEQ - $this: CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=.Host origin=INVOKE + CALL 'public final fun plusAssign (x: kotlin.Int): kotlin.Unit declared in .Host' type=kotlin.Unit origin=PLUSEQ + $this: CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=.Host origin=INVOKE $this: GET_VAR 'a: kotlin.Function0<.Host> declared in .test4' type=kotlin.Function0<.Host> origin=VARIABLE_AS_FUNCTION x: CONST Int type=kotlin.Int value=1 diff --git a/compiler/testData/ir/irText/expressions/badInlinedBreakContinue.ir.txt b/compiler/testData/ir/irText/expressions/badInlinedBreakContinue.ir.txt index 532cdd809ca..26128f6cdbb 100644 --- a/compiler/testData/ir/irText/expressions/badInlinedBreakContinue.ir.txt +++ b/compiler/testData/ir/irText/expressions/badInlinedBreakContinue.ir.txt @@ -2,21 +2,21 @@ FILE fqName: fileName:/badInlinedBreakContinue.kt FUN name:foo visibility:public modality:FINAL <> (block:kotlin.Function0) returnType:kotlin.Unit [inline] VALUE_PARAMETER name:block index:0 type:kotlin.Function0 BLOCK_BODY - CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=kotlin.Unit origin=INVOKE + CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=kotlin.Unit origin=INVOKE $this: GET_VAR 'block: kotlin.Function0 declared in .foo' type=kotlin.Function0 origin=VARIABLE_AS_FUNCTION FUN name:bar visibility:public modality:FINAL <> (block1:kotlin.Function0, block2:kotlin.Function0) returnType:kotlin.Unit [inline] VALUE_PARAMETER name:block1 index:0 type:kotlin.Function0 VALUE_PARAMETER name:block2 index:1 type:kotlin.Function0 [noinline] BLOCK_BODY - CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=kotlin.Unit origin=INVOKE + CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=kotlin.Unit origin=INVOKE $this: GET_VAR 'block1: kotlin.Function0 declared in .bar' type=kotlin.Function0 origin=VARIABLE_AS_FUNCTION - CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=kotlin.Unit origin=INVOKE - $this: GET_VAR 'block2: kotlin.Function0 [noinline] declared in .bar' type=kotlin.Function0 origin=VARIABLE_AS_FUNCTION + CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=kotlin.Unit origin=INVOKE + $this: GET_VAR 'block2: kotlin.Function0 declared in .bar' type=kotlin.Function0 origin=VARIABLE_AS_FUNCTION FUN name:baz visibility:public modality:FINAL <> (block:kotlin.Function0) returnType:kotlin.Unit [inline] VALUE_PARAMETER name:block index:0 type:kotlin.Function0 [crossinline] BLOCK_BODY - CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=kotlin.Unit origin=INVOKE - $this: GET_VAR 'block: kotlin.Function0 [crossinline] declared in .baz' type=kotlin.Function0 origin=VARIABLE_AS_FUNCTION + CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=kotlin.Unit origin=INVOKE + $this: GET_VAR 'block: kotlin.Function0 declared in .baz' type=kotlin.Function0 origin=VARIABLE_AS_FUNCTION FUN name:myForEach visibility:public modality:FINAL ($receiver:kotlin.collections.Iterable.myForEach>, action:kotlin.Function1.myForEach, kotlin.Unit>) returnType:kotlin.Unit [inline] TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false $receiver: VALUE_PARAMETER name: type:kotlin.collections.Iterable.myForEach> @@ -24,48 +24,48 @@ FILE fqName: fileName:/badInlinedBreakContinue.kt BLOCK_BODY BLOCK type=kotlin.Unit origin=FOR_LOOP VAR FOR_LOOP_ITERATOR name:tmp_0 type:kotlin.collections.Iterator.myForEach> [val] - CALL 'public abstract fun iterator (): kotlin.collections.Iterator [operator] declared in kotlin.collections.Iterable' type=kotlin.collections.Iterator.myForEach> origin=FOR_LOOP_ITERATOR + CALL 'public abstract fun iterator (): kotlin.collections.Iterator declared in kotlin.collections.Iterable' type=kotlin.collections.Iterator.myForEach> origin=FOR_LOOP_ITERATOR $this: GET_VAR ': kotlin.collections.Iterable.myForEach> declared in .myForEach' type=kotlin.collections.Iterable.myForEach> origin=null WHILE label=null origin=FOR_LOOP_INNER_WHILE - condition: CALL 'public abstract fun hasNext (): kotlin.Boolean [operator] declared in kotlin.collections.Iterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT - $this: GET_VAR 'val tmp_0: kotlin.collections.Iterator.myForEach> [val] declared in .myForEach' type=kotlin.collections.Iterator.myForEach> origin=null + condition: CALL 'public abstract fun hasNext (): kotlin.Boolean declared in kotlin.collections.Iterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT + $this: GET_VAR 'val tmp_0: kotlin.collections.Iterator.myForEach> declared in .myForEach' type=kotlin.collections.Iterator.myForEach> origin=null body: BLOCK type=kotlin.Unit origin=FOR_LOOP_INNER_WHILE VAR FOR_LOOP_VARIABLE name:element type:T of .myForEach [val] - CALL 'public abstract fun next (): T of kotlin.collections.Iterator [operator] declared in kotlin.collections.Iterator' type=T of .myForEach origin=FOR_LOOP_NEXT - $this: GET_VAR 'val tmp_0: kotlin.collections.Iterator.myForEach> [val] declared in .myForEach' type=kotlin.collections.Iterator.myForEach> origin=null - CALL 'public abstract fun invoke (p1: P1 of kotlin.Function1): R of kotlin.Function1 [operator] declared in kotlin.Function1' type=kotlin.Unit origin=INVOKE + CALL 'public abstract fun next (): T of kotlin.collections.Iterator declared in kotlin.collections.Iterator' type=T of .myForEach origin=FOR_LOOP_NEXT + $this: GET_VAR 'val tmp_0: kotlin.collections.Iterator.myForEach> declared in .myForEach' type=kotlin.collections.Iterator.myForEach> origin=null + CALL 'public abstract fun invoke (p1: P1 of kotlin.Function1): R of kotlin.Function1 declared in kotlin.Function1' type=kotlin.Unit origin=INVOKE $this: GET_VAR 'action: kotlin.Function1.myForEach, kotlin.Unit> declared in .myForEach' type=kotlin.Function1.myForEach, kotlin.Unit> origin=VARIABLE_AS_FUNCTION - p1: GET_VAR 'val element: T of .myForEach [val] declared in .myForEach' type=T of .myForEach origin=null + p1: GET_VAR 'val element: T of .myForEach declared in .myForEach' type=T of .myForEach origin=null FUN name:test1 visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY ERROR_EXPR '{break}() {continue}()' type=IrErrorType([Error type: Error expression type]) - CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=kotlin.Unit origin=INVOKE + CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=kotlin.Unit origin=INVOKE $this: FUN_EXPR type=kotlin.Function0 origin=ANONYMOUS_FUNCTION FUN LOCAL_FUNCTION name: visibility:local modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY ERROR_EXPR 'Loop not found for break expression: break' type=kotlin.Nothing - CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=kotlin.Unit origin=INVOKE + CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=kotlin.Unit origin=INVOKE $this: FUN_EXPR type=kotlin.Function0 origin=ANONYMOUS_FUNCTION FUN LOCAL_FUNCTION name: visibility:local modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY ERROR_EXPR 'Loop not found for continue expression: continue' type=kotlin.Nothing - CALL 'public final fun foo (block: kotlin.Function0): kotlin.Unit [inline] declared in ' type=kotlin.Unit origin=null + CALL 'public final fun foo (block: kotlin.Function0): kotlin.Unit declared in ' type=kotlin.Unit origin=null block: FUN_EXPR type=kotlin.Function0 origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY ERROR_EXPR 'Loop not found for break expression: break' type=kotlin.Nothing - CALL 'public final fun foo (block: kotlin.Function0): kotlin.Unit [inline] declared in ' type=kotlin.Unit origin=null + CALL 'public final fun foo (block: kotlin.Function0): kotlin.Unit declared in ' type=kotlin.Unit origin=null block: FUN_EXPR type=kotlin.Function0 origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY ERROR_EXPR 'Loop not found for continue expression: continue' type=kotlin.Nothing - CALL 'public final fun foo (block: kotlin.Function0): kotlin.Unit [inline] declared in ' type=kotlin.Unit origin=null + CALL 'public final fun foo (block: kotlin.Function0): kotlin.Unit declared in ' type=kotlin.Unit origin=null block: FUN_EXPR type=kotlin.Function0 origin=ANONYMOUS_FUNCTION FUN LOCAL_FUNCTION name: visibility:local modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY ERROR_EXPR 'Loop not found for break expression: break' type=kotlin.Nothing - CALL 'public final fun foo (block: kotlin.Function0): kotlin.Unit [inline] declared in ' type=kotlin.Unit origin=null + CALL 'public final fun foo (block: kotlin.Function0): kotlin.Unit declared in ' type=kotlin.Unit origin=null block: FUN_EXPR type=kotlin.Function0 origin=ANONYMOUS_FUNCTION FUN LOCAL_FUNCTION name: visibility:local modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY @@ -77,32 +77,32 @@ FILE fqName: fileName:/badInlinedBreakContinue.kt body: BLOCK type=kotlin.Unit origin=null ERROR_EXPR '{break@ERROR}() {continue@ERROR}()' type=IrErrorType([Error type: Error expression type]) - CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=kotlin.Unit origin=INVOKE + CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=kotlin.Unit origin=INVOKE $this: FUN_EXPR type=kotlin.Function0 origin=ANONYMOUS_FUNCTION FUN LOCAL_FUNCTION name: visibility:local modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY ERROR_EXPR 'Loop not found for break expression: break@ERROR' type=kotlin.Nothing - CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=kotlin.Unit origin=INVOKE + CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=kotlin.Unit origin=INVOKE $this: FUN_EXPR type=kotlin.Function0 origin=ANONYMOUS_FUNCTION FUN LOCAL_FUNCTION name: visibility:local modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY ERROR_EXPR 'Loop not found for continue expression: continue@ERROR' type=kotlin.Nothing - CALL 'public final fun foo (block: kotlin.Function0): kotlin.Unit [inline] declared in ' type=kotlin.Unit origin=null + CALL 'public final fun foo (block: kotlin.Function0): kotlin.Unit declared in ' type=kotlin.Unit origin=null block: FUN_EXPR type=kotlin.Function0 origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY ERROR_EXPR 'Loop not found for break expression: break@ERROR' type=kotlin.Nothing - CALL 'public final fun foo (block: kotlin.Function0): kotlin.Unit [inline] declared in ' type=kotlin.Unit origin=null + CALL 'public final fun foo (block: kotlin.Function0): kotlin.Unit declared in ' type=kotlin.Unit origin=null block: FUN_EXPR type=kotlin.Function0 origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY ERROR_EXPR 'Loop not found for continue expression: continue@ERROR' type=kotlin.Nothing - CALL 'public final fun foo (block: kotlin.Function0): kotlin.Unit [inline] declared in ' type=kotlin.Unit origin=null + CALL 'public final fun foo (block: kotlin.Function0): kotlin.Unit declared in ' type=kotlin.Unit origin=null block: FUN_EXPR type=kotlin.Function0 origin=ANONYMOUS_FUNCTION FUN LOCAL_FUNCTION name: visibility:local modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY ERROR_EXPR 'Loop not found for break expression: break@ERROR' type=kotlin.Nothing - CALL 'public final fun foo (block: kotlin.Function0): kotlin.Unit [inline] declared in ' type=kotlin.Unit origin=null + CALL 'public final fun foo (block: kotlin.Function0): kotlin.Unit declared in ' type=kotlin.Unit origin=null block: FUN_EXPR type=kotlin.Function0 origin=ANONYMOUS_FUNCTION FUN LOCAL_FUNCTION name: visibility:local modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY @@ -118,32 +118,32 @@ FILE fqName: fileName:/badInlinedBreakContinue.kt BLOCK_BODY ERROR_EXPR '{break@L1}() {continue@L1}()' type=IrErrorType([Error type: Error expression type]) - CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=kotlin.Unit origin=INVOKE + CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=kotlin.Unit origin=INVOKE $this: FUN_EXPR type=kotlin.Function0 origin=ANONYMOUS_FUNCTION FUN LOCAL_FUNCTION name: visibility:local modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY ERROR_EXPR 'Loop not found for break expression: break@L1' type=kotlin.Nothing - CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=kotlin.Unit origin=INVOKE + CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=kotlin.Unit origin=INVOKE $this: FUN_EXPR type=kotlin.Function0 origin=ANONYMOUS_FUNCTION FUN LOCAL_FUNCTION name: visibility:local modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY ERROR_EXPR 'Loop not found for continue expression: continue@L1' type=kotlin.Nothing - CALL 'public final fun foo (block: kotlin.Function0): kotlin.Unit [inline] declared in ' type=kotlin.Unit origin=null + CALL 'public final fun foo (block: kotlin.Function0): kotlin.Unit declared in ' type=kotlin.Unit origin=null block: FUN_EXPR type=kotlin.Function0 origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY ERROR_EXPR 'Loop not found for break expression: break@L1' type=kotlin.Nothing - CALL 'public final fun foo (block: kotlin.Function0): kotlin.Unit [inline] declared in ' type=kotlin.Unit origin=null + CALL 'public final fun foo (block: kotlin.Function0): kotlin.Unit declared in ' type=kotlin.Unit origin=null block: FUN_EXPR type=kotlin.Function0 origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY ERROR_EXPR 'Loop not found for continue expression: continue@L1' type=kotlin.Nothing - CALL 'public final fun foo (block: kotlin.Function0): kotlin.Unit [inline] declared in ' type=kotlin.Unit origin=null + CALL 'public final fun foo (block: kotlin.Function0): kotlin.Unit declared in ' type=kotlin.Unit origin=null block: FUN_EXPR type=kotlin.Function0 origin=ANONYMOUS_FUNCTION FUN LOCAL_FUNCTION name: visibility:local modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY ERROR_EXPR 'Loop not found for break expression: break@L1' type=kotlin.Nothing - CALL 'public final fun foo (block: kotlin.Function0): kotlin.Unit [inline] declared in ' type=kotlin.Unit origin=null + CALL 'public final fun foo (block: kotlin.Function0): kotlin.Unit declared in ' type=kotlin.Unit origin=null block: FUN_EXPR type=kotlin.Function0 origin=ANONYMOUS_FUNCTION FUN LOCAL_FUNCTION name: visibility:local modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY @@ -151,7 +151,7 @@ FILE fqName: fileName:/badInlinedBreakContinue.kt FUN name:test4 visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY WHILE label=null origin=WHILE_LOOP - condition: CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=kotlin.Nothing origin=INVOKE + condition: CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=kotlin.Nothing origin=INVOKE $this: FUN_EXPR type=kotlin.Function0 origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:kotlin.Nothing BLOCK_BODY @@ -159,7 +159,7 @@ FILE fqName: fileName:/badInlinedBreakContinue.kt ERROR_EXPR 'Loop not found for break expression: break' type=kotlin.Nothing body: BLOCK type=kotlin.Unit origin=null WHILE label=null origin=WHILE_LOOP - condition: CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=kotlin.Nothing origin=INVOKE + condition: CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=kotlin.Nothing origin=INVOKE $this: FUN_EXPR type=kotlin.Function0 origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:kotlin.Nothing BLOCK_BODY @@ -168,7 +168,7 @@ FILE fqName: fileName:/badInlinedBreakContinue.kt body: BLOCK type=kotlin.Unit origin=null WHILE label=null origin=WHILE_LOOP condition: TYPE_OP type=kotlin.Boolean origin=IMPLICIT_CAST typeOperand=kotlin.Boolean - CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=kotlin.Unit origin=INVOKE + CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=kotlin.Unit origin=INVOKE $this: FUN_EXPR type=kotlin.Function0 origin=ANONYMOUS_FUNCTION FUN LOCAL_FUNCTION name: visibility:local modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY @@ -176,7 +176,7 @@ FILE fqName: fileName:/badInlinedBreakContinue.kt body: BLOCK type=kotlin.Unit origin=null WHILE label=null origin=WHILE_LOOP condition: TYPE_OP type=kotlin.Boolean origin=IMPLICIT_CAST typeOperand=kotlin.Boolean - CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=kotlin.Unit origin=INVOKE + CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=kotlin.Unit origin=INVOKE $this: FUN_EXPR type=kotlin.Function0 origin=ANONYMOUS_FUNCTION FUN LOCAL_FUNCTION name: visibility:local modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY @@ -184,7 +184,7 @@ FILE fqName: fileName:/badInlinedBreakContinue.kt body: BLOCK type=kotlin.Unit origin=null WHILE label=null origin=WHILE_LOOP condition: TYPE_OP type=kotlin.Boolean origin=IMPLICIT_CAST typeOperand=kotlin.Boolean - CALL 'public final fun foo (block: kotlin.Function0): kotlin.Unit [inline] declared in ' type=kotlin.Unit origin=null + CALL 'public final fun foo (block: kotlin.Function0): kotlin.Unit declared in ' type=kotlin.Unit origin=null block: FUN_EXPR type=kotlin.Function0 origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY @@ -192,7 +192,7 @@ FILE fqName: fileName:/badInlinedBreakContinue.kt body: BLOCK type=kotlin.Unit origin=null WHILE label=null origin=WHILE_LOOP condition: TYPE_OP type=kotlin.Boolean origin=IMPLICIT_CAST typeOperand=kotlin.Boolean - CALL 'public final fun foo (block: kotlin.Function0): kotlin.Unit [inline] declared in ' type=kotlin.Unit origin=null + CALL 'public final fun foo (block: kotlin.Function0): kotlin.Unit declared in ' type=kotlin.Unit origin=null block: FUN_EXPR type=kotlin.Function0 origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY @@ -200,7 +200,7 @@ FILE fqName: fileName:/badInlinedBreakContinue.kt body: BLOCK type=kotlin.Unit origin=null WHILE label=null origin=WHILE_LOOP condition: TYPE_OP type=kotlin.Boolean origin=IMPLICIT_CAST typeOperand=kotlin.Boolean - CALL 'public final fun foo (block: kotlin.Function0): kotlin.Unit [inline] declared in ' type=kotlin.Unit origin=null + CALL 'public final fun foo (block: kotlin.Function0): kotlin.Unit declared in ' type=kotlin.Unit origin=null block: FUN_EXPR type=kotlin.Function0 origin=ANONYMOUS_FUNCTION FUN LOCAL_FUNCTION name: visibility:local modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY @@ -208,7 +208,7 @@ FILE fqName: fileName:/badInlinedBreakContinue.kt body: BLOCK type=kotlin.Unit origin=null WHILE label=null origin=WHILE_LOOP condition: TYPE_OP type=kotlin.Boolean origin=IMPLICIT_CAST typeOperand=kotlin.Boolean - CALL 'public final fun foo (block: kotlin.Function0): kotlin.Unit [inline] declared in ' type=kotlin.Unit origin=null + CALL 'public final fun foo (block: kotlin.Function0): kotlin.Unit declared in ' type=kotlin.Unit origin=null block: FUN_EXPR type=kotlin.Function0 origin=ANONYMOUS_FUNCTION FUN LOCAL_FUNCTION name: visibility:local modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY @@ -216,7 +216,7 @@ FILE fqName: fileName:/badInlinedBreakContinue.kt body: BLOCK type=kotlin.Unit origin=null FUN name:test5 visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY - CALL 'public final fun forEach (action: kotlin.Function1): kotlin.Unit [inline] declared in kotlin.collections.CollectionsKt' type=kotlin.Unit origin=null + CALL 'public final fun forEach (action: kotlin.Function1): kotlin.Unit declared in kotlin.collections.CollectionsKt' type=kotlin.Unit origin=null : kotlin.Int $receiver: CALL 'public final fun listOf (vararg elements: T of kotlin.collections.CollectionsKt.listOf): kotlin.collections.List declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List origin=null : kotlin.Int @@ -234,7 +234,7 @@ FILE fqName: fileName:/badInlinedBreakContinue.kt arg0: GET_VAR 'i: kotlin.Int declared in .test5.' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=2 then: ERROR_EXPR 'Loop not found for break expression: break' type=kotlin.Nothing - CALL 'public final fun forEach (action: kotlin.Function1): kotlin.Unit [inline] declared in kotlin.collections.CollectionsKt' type=kotlin.Unit origin=null + CALL 'public final fun forEach (action: kotlin.Function1): kotlin.Unit declared in kotlin.collections.CollectionsKt' type=kotlin.Unit origin=null : kotlin.Int $receiver: CALL 'public final fun listOf (vararg elements: T of kotlin.collections.CollectionsKt.listOf): kotlin.collections.List declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List origin=null : kotlin.Int @@ -252,7 +252,7 @@ FILE fqName: fileName:/badInlinedBreakContinue.kt arg0: GET_VAR 'i: kotlin.Int declared in .test5.' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=2 then: ERROR_EXPR 'Loop not found for continue expression: continue' type=kotlin.Nothing - CALL 'public final fun forEach (action: kotlin.Function1): kotlin.Unit [inline] declared in kotlin.collections.CollectionsKt' type=kotlin.Unit origin=null + CALL 'public final fun forEach (action: kotlin.Function1): kotlin.Unit declared in kotlin.collections.CollectionsKt' type=kotlin.Unit origin=null : kotlin.Int $receiver: CALL 'public final fun listOf (vararg elements: T of kotlin.collections.CollectionsKt.listOf): kotlin.collections.List declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List origin=null : kotlin.Int @@ -270,7 +270,7 @@ FILE fqName: fileName:/badInlinedBreakContinue.kt arg0: GET_VAR 'i: kotlin.Int declared in .test5.' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=2 then: ERROR_EXPR 'Loop not found for break expression: break' type=kotlin.Nothing - CALL 'public final fun forEach (action: kotlin.Function1): kotlin.Unit [inline] declared in kotlin.collections.CollectionsKt' type=kotlin.Unit origin=null + CALL 'public final fun forEach (action: kotlin.Function1): kotlin.Unit declared in kotlin.collections.CollectionsKt' type=kotlin.Unit origin=null : kotlin.Int $receiver: CALL 'public final fun listOf (vararg elements: T of kotlin.collections.CollectionsKt.listOf): kotlin.collections.List declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List origin=null : kotlin.Int @@ -293,7 +293,7 @@ FILE fqName: fileName:/badInlinedBreakContinue.kt WHILE label=null origin=WHILE_LOOP condition: CONST Boolean type=kotlin.Boolean value=true body: BLOCK type=kotlin.Unit origin=null - CALL 'public final fun bar (block1: kotlin.Function0, block2: kotlin.Function0): kotlin.Unit [inline] declared in ' type=kotlin.Unit origin=null + CALL 'public final fun bar (block1: kotlin.Function0, block2: kotlin.Function0): kotlin.Unit declared in ' type=kotlin.Unit origin=null block1: FUN_EXPR type=kotlin.Function0 origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY @@ -303,7 +303,7 @@ FILE fqName: fileName:/badInlinedBreakContinue.kt FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY ERROR_EXPR 'Loop not found for break expression: break' type=kotlin.Nothing - CALL 'public final fun bar (block1: kotlin.Function0, block2: kotlin.Function0): kotlin.Unit [inline] declared in ' type=kotlin.Unit origin=null + CALL 'public final fun bar (block1: kotlin.Function0, block2: kotlin.Function0): kotlin.Unit declared in ' type=kotlin.Unit origin=null block1: FUN_EXPR type=kotlin.Function0 origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY @@ -313,7 +313,7 @@ FILE fqName: fileName:/badInlinedBreakContinue.kt FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY ERROR_EXPR 'Loop not found for continue expression: continue' type=kotlin.Nothing - CALL 'public final fun bar (block1: kotlin.Function0, block2: kotlin.Function0): kotlin.Unit [inline] declared in ' type=kotlin.Unit origin=null + CALL 'public final fun bar (block1: kotlin.Function0, block2: kotlin.Function0): kotlin.Unit declared in ' type=kotlin.Unit origin=null block1: FUN_EXPR type=kotlin.Function0 origin=ANONYMOUS_FUNCTION FUN LOCAL_FUNCTION name: visibility:local modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY @@ -321,7 +321,7 @@ FILE fqName: fileName:/badInlinedBreakContinue.kt FUN LOCAL_FUNCTION name: visibility:local modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY ERROR_EXPR 'Loop not found for break expression: break' type=kotlin.Nothing - CALL 'public final fun bar (block1: kotlin.Function0, block2: kotlin.Function0): kotlin.Unit [inline] declared in ' type=kotlin.Unit origin=null + CALL 'public final fun bar (block1: kotlin.Function0, block2: kotlin.Function0): kotlin.Unit declared in ' type=kotlin.Unit origin=null block1: FUN_EXPR type=kotlin.Function0 origin=ANONYMOUS_FUNCTION FUN LOCAL_FUNCTION name: visibility:local modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY @@ -331,9 +331,9 @@ FILE fqName: fileName:/badInlinedBreakContinue.kt ERROR_EXPR 'Loop not found for continue expression: continue' type=kotlin.Nothing FUN name:test7 visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY - CALL 'public final fun myForEach (action: kotlin.Function1.myForEach, kotlin.Unit>): kotlin.Unit [inline] declared in ' type=kotlin.Unit origin=null + CALL 'public final fun myForEach (action: kotlin.Function1.myForEach, kotlin.Unit>): kotlin.Unit declared in ' type=kotlin.Unit origin=null : kotlin.Int - $receiver: CALL 'public final fun rangeTo (other: kotlin.Int): kotlin.ranges.IntRange [operator] declared in kotlin.Int' type=kotlin.ranges.IntRange origin=RANGE + $receiver: CALL 'public final fun rangeTo (other: kotlin.Int): kotlin.ranges.IntRange declared in kotlin.Int' type=kotlin.ranges.IntRange origin=RANGE $this: CONST Int type=kotlin.Int value=1 other: CONST Int type=kotlin.Int value=3 action: FUN_EXPR type=kotlin.Function1 origin=LAMBDA @@ -352,7 +352,7 @@ FILE fqName: fileName:/badInlinedBreakContinue.kt WHILE label=null origin=WHILE_LOOP condition: CONST Boolean type=kotlin.Boolean value=true body: BLOCK type=kotlin.Unit origin=null - CALL 'public final fun baz (block: kotlin.Function0): kotlin.Unit [inline] declared in ' type=kotlin.Unit origin=null + CALL 'public final fun baz (block: kotlin.Function0): kotlin.Unit declared in ' type=kotlin.Unit origin=null block: FUN_EXPR type=kotlin.Function0 origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY diff --git a/compiler/testData/ir/irText/expressions/bangbang.fir.ir.txt b/compiler/testData/ir/irText/expressions/bangbang.fir.ir.txt index 5956c243297..baef2e63988 100644 --- a/compiler/testData/ir/irText/expressions/bangbang.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/bangbang.fir.ir.txt @@ -18,13 +18,13 @@ FILE fqName: fileName:/bangbang.kt WHEN type=kotlin.Int? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_0: kotlin.Any? [val] declared in .test2' type=kotlin.Any? origin=null + arg0: GET_VAR 'val tmp_0: kotlin.Any? declared in .test2' type=kotlin.Any? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public open fun hashCode (): kotlin.Int declared in kotlin.Any' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp_0: kotlin.Any? [val] declared in .test2' type=kotlin.Any? origin=null + $this: GET_VAR 'val tmp_0: kotlin.Any? declared in .test2' type=kotlin.Any? origin=null FUN name:test3 visibility:public modality:FINAL (a:X of .test3) returnType:{X of .test3 & Any} TYPE_PARAMETER name:X index:0 variance: superTypes:[kotlin.Any?] reified:false VALUE_PARAMETER name:a index:0 type:X of .test3 diff --git a/compiler/testData/ir/irText/expressions/bangbang.ir.txt b/compiler/testData/ir/irText/expressions/bangbang.ir.txt index 0531b4dd584..2d9eff2dadf 100644 --- a/compiler/testData/ir/irText/expressions/bangbang.ir.txt +++ b/compiler/testData/ir/irText/expressions/bangbang.ir.txt @@ -18,13 +18,13 @@ FILE fqName: fileName:/bangbang.kt WHEN type=kotlin.Int? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_0: kotlin.Any? [val] declared in .test2' type=kotlin.Any? origin=null + arg0: GET_VAR 'val tmp_0: kotlin.Any? declared in .test2' type=kotlin.Any? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public open fun hashCode (): kotlin.Int declared in kotlin.Any' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp_0: kotlin.Any? [val] declared in .test2' type=kotlin.Any? origin=null + $this: GET_VAR 'val tmp_0: kotlin.Any? declared in .test2' type=kotlin.Any? origin=null FUN name:test3 visibility:public modality:FINAL (a:X of .test3) returnType:{X of .test3 & Any} TYPE_PARAMETER name:X index:0 variance: superTypes:[kotlin.Any?] reified:false VALUE_PARAMETER name:a index:0 type:X of .test3 diff --git a/compiler/testData/ir/irText/expressions/booleanOperators.ir.txt b/compiler/testData/ir/irText/expressions/booleanOperators.ir.txt index f92c381af60..55a2108c32c 100644 --- a/compiler/testData/ir/irText/expressions/booleanOperators.ir.txt +++ b/compiler/testData/ir/irText/expressions/booleanOperators.ir.txt @@ -28,7 +28,7 @@ FILE fqName: fileName:/booleanOperators.kt VALUE_PARAMETER name:b index:1 type:kotlin.Boolean BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test1x (a: kotlin.Boolean, b: kotlin.Boolean): kotlin.Boolean declared in ' - CALL 'public final fun and (other: kotlin.Boolean): kotlin.Boolean [infix] declared in kotlin.Boolean' type=kotlin.Boolean origin=null + CALL 'public final fun and (other: kotlin.Boolean): kotlin.Boolean declared in kotlin.Boolean' type=kotlin.Boolean origin=null $this: GET_VAR 'a: kotlin.Boolean declared in .test1x' type=kotlin.Boolean origin=null other: GET_VAR 'b: kotlin.Boolean declared in .test1x' type=kotlin.Boolean origin=null FUN name:test2x visibility:public modality:FINAL <> (a:kotlin.Boolean, b:kotlin.Boolean) returnType:kotlin.Boolean @@ -36,6 +36,6 @@ FILE fqName: fileName:/booleanOperators.kt VALUE_PARAMETER name:b index:1 type:kotlin.Boolean BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test2x (a: kotlin.Boolean, b: kotlin.Boolean): kotlin.Boolean declared in ' - CALL 'public final fun or (other: kotlin.Boolean): kotlin.Boolean [infix] declared in kotlin.Boolean' type=kotlin.Boolean origin=null + CALL 'public final fun or (other: kotlin.Boolean): kotlin.Boolean declared in kotlin.Boolean' type=kotlin.Boolean origin=null $this: GET_VAR 'a: kotlin.Boolean declared in .test2x' type=kotlin.Boolean origin=null other: GET_VAR 'b: kotlin.Boolean declared in .test2x' type=kotlin.Boolean origin=null diff --git a/compiler/testData/ir/irText/expressions/boundCallableReferences.ir.txt b/compiler/testData/ir/irText/expressions/boundCallableReferences.ir.txt index 58f267076cb..f0746468215 100644 --- a/compiler/testData/ir/irText/expressions/boundCallableReferences.ir.txt +++ b/compiler/testData/ir/irText/expressions/boundCallableReferences.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/boundCallableReferences.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.A CONSTRUCTOR visibility:public <> () returnType:.A [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:A modality:FINAL visibility:public superTypes:[kotlin.Any]' FUN name:foo visibility:public modality:FINAL <> ($this:.A) returnType:kotlin.Unit $this: VALUE_PARAMETER name: type:.A @@ -21,7 +21,7 @@ FILE fqName: fileName:/boundCallableReferences.kt receiver: GET_VAR ': .A declared in .A.' type=.A 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -39,7 +39,7 @@ FILE fqName: fileName:/boundCallableReferences.kt FIELD PROPERTY_BACKING_FIELD name:test1 type:kotlin.reflect.KFunction0 visibility:private [final,static] EXPRESSION_BODY FUNCTION_REFERENCE 'public final fun foo (): kotlin.Unit declared in .A' type=kotlin.reflect.KFunction0 origin=null reflectionTarget= - $this: CONSTRUCTOR_CALL 'public constructor () [primary] declared in .A' type=.A origin=null + $this: CONSTRUCTOR_CALL 'public constructor () declared in .A' type=.A origin=null FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:kotlin.reflect.KFunction0 correspondingProperty: PROPERTY name:test1 visibility:public modality:FINAL [val] BLOCK_BODY @@ -48,8 +48,8 @@ FILE fqName: fileName:/boundCallableReferences.kt PROPERTY name:test2 visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:test2 type:kotlin.reflect.KProperty0 visibility:private [final,static] EXPRESSION_BODY - PROPERTY_REFERENCE 'public final bar: kotlin.Int [val]' field=null getter='public final fun (): kotlin.Int declared in .A' setter=null type=kotlin.reflect.KProperty0 origin=null - $this: CONSTRUCTOR_CALL 'public constructor () [primary] declared in .A' type=.A origin=null + PROPERTY_REFERENCE 'public final bar: kotlin.Int' field=null getter='public final fun (): kotlin.Int declared in .A' setter=null type=kotlin.reflect.KProperty0 origin=null + $this: CONSTRUCTOR_CALL 'public constructor () declared in .A' type=.A origin=null FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:kotlin.reflect.KProperty0 correspondingProperty: PROPERTY name:test2 visibility:public modality:FINAL [val] BLOCK_BODY @@ -59,7 +59,7 @@ FILE fqName: fileName:/boundCallableReferences.kt FIELD PROPERTY_BACKING_FIELD name:test3 type:kotlin.reflect.KFunction0 visibility:private [final,static] EXPRESSION_BODY FUNCTION_REFERENCE 'public final fun qux (): kotlin.Unit declared in ' type=kotlin.reflect.KFunction0 origin=null reflectionTarget= - $receiver: CONSTRUCTOR_CALL 'public constructor () [primary] declared in .A' type=.A origin=null + $receiver: CONSTRUCTOR_CALL 'public constructor () declared in .A' type=.A origin=null FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:kotlin.reflect.KFunction0 correspondingProperty: PROPERTY name:test3 visibility:public modality:FINAL [val] BLOCK_BODY diff --git a/compiler/testData/ir/irText/expressions/breakContinueInLoopHeader.fir.ir.txt b/compiler/testData/ir/irText/expressions/breakContinueInLoopHeader.fir.ir.txt index 2b6b2122bc6..66f282fcccd 100644 --- a/compiler/testData/ir/irText/expressions/breakContinueInLoopHeader.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/breakContinueInLoopHeader.fir.ir.txt @@ -12,12 +12,12 @@ FILE fqName: fileName:/breakContinueInLoopHeader.kt WHEN type=kotlin.Boolean origin=ELVIS BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_0: kotlin.Boolean? [val] declared in .test1' type=kotlin.Boolean? origin=null + arg0: GET_VAR 'val tmp_0: kotlin.Boolean? declared in .test1' type=kotlin.Boolean? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: BREAK label=L loop.label=L BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val tmp_0: kotlin.Boolean? [val] declared in .test1' type=kotlin.Boolean? origin=null + then: GET_VAR 'val tmp_0: kotlin.Boolean? declared in .test1' type=kotlin.Boolean? origin=null body: BLOCK type=kotlin.Unit origin=null FUN name:test2 visibility:public modality:FINAL <> (c:kotlin.Boolean?) returnType:kotlin.Unit VALUE_PARAMETER name:c index:0 type:kotlin.Boolean? @@ -32,12 +32,12 @@ FILE fqName: fileName:/breakContinueInLoopHeader.kt WHEN type=kotlin.Boolean origin=ELVIS BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_1: kotlin.Boolean? [val] declared in .test2' type=kotlin.Boolean? origin=null + arg0: GET_VAR 'val tmp_1: kotlin.Boolean? declared in .test2' type=kotlin.Boolean? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONTINUE label=L loop.label=L BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val tmp_1: kotlin.Boolean? [val] declared in .test2' type=kotlin.Boolean? origin=null + then: GET_VAR 'val tmp_1: kotlin.Boolean? declared in .test2' type=kotlin.Boolean? origin=null body: BLOCK type=kotlin.Unit origin=null FUN name:test3 visibility:public modality:FINAL <> (ss:kotlin.collections.List?) returnType:kotlin.Unit VALUE_PARAMETER name:ss index:0 type:kotlin.collections.List? @@ -47,26 +47,26 @@ FILE fqName: fileName:/breakContinueInLoopHeader.kt body: BLOCK type=kotlin.Unit origin=null BLOCK type=kotlin.Unit origin=FOR_LOOP VAR FOR_LOOP_ITERATOR name:tmp_2 type:kotlin.collections.Iterator [val] - CALL 'public abstract fun iterator (): kotlin.collections.Iterator [operator] declared in kotlin.collections.List' type=kotlin.collections.Iterator origin=FOR_LOOP_ITERATOR + CALL 'public abstract fun iterator (): kotlin.collections.Iterator declared in kotlin.collections.List' type=kotlin.collections.Iterator origin=FOR_LOOP_ITERATOR $this: BLOCK type=kotlin.collections.List origin=ELVIS VAR IR_TEMPORARY_VARIABLE name:tmp_3 type:kotlin.collections.List? [val] GET_VAR 'ss: kotlin.collections.List? declared in .test3' type=kotlin.collections.List? origin=null WHEN type=kotlin.collections.List origin=ELVIS BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_3: kotlin.collections.List? [val] declared in .test3' type=kotlin.collections.List? origin=null + arg0: GET_VAR 'val tmp_3: kotlin.collections.List? declared in .test3' type=kotlin.collections.List? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONTINUE label=L loop.label=L BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val tmp_3: kotlin.collections.List? [val] declared in .test3' type=kotlin.collections.List? origin=null + then: GET_VAR 'val tmp_3: kotlin.collections.List? declared in .test3' type=kotlin.collections.List? origin=null WHILE label=L2 origin=FOR_LOOP_INNER_WHILE - condition: CALL 'public abstract fun hasNext (): kotlin.Boolean [operator] declared in kotlin.collections.Iterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT - $this: GET_VAR 'val tmp_2: kotlin.collections.Iterator [val] declared in .test3' type=kotlin.collections.Iterator origin=null + condition: CALL 'public abstract fun hasNext (): kotlin.Boolean declared in kotlin.collections.Iterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT + $this: GET_VAR 'val tmp_2: kotlin.collections.Iterator declared in .test3' type=kotlin.collections.Iterator origin=null body: BLOCK type=kotlin.Unit origin=FOR_LOOP_INNER_WHILE VAR FOR_LOOP_VARIABLE name:s type:kotlin.String [val] - CALL 'public abstract fun next (): T of kotlin.collections.Iterator [operator] declared in kotlin.collections.Iterator' type=kotlin.String origin=FOR_LOOP_NEXT - $this: GET_VAR 'val tmp_2: kotlin.collections.Iterator [val] declared in .test3' type=kotlin.collections.Iterator origin=null + CALL 'public abstract fun next (): T of kotlin.collections.Iterator declared in kotlin.collections.Iterator' type=kotlin.String origin=FOR_LOOP_NEXT + $this: GET_VAR 'val tmp_2: kotlin.collections.Iterator declared in .test3' type=kotlin.collections.Iterator origin=null BLOCK type=kotlin.Unit origin=null FUN name:test4 visibility:public modality:FINAL <> (ss:kotlin.collections.List?) returnType:kotlin.Unit VALUE_PARAMETER name:ss index:0 type:kotlin.collections.List? @@ -76,26 +76,26 @@ FILE fqName: fileName:/breakContinueInLoopHeader.kt body: BLOCK type=kotlin.Unit origin=null BLOCK type=kotlin.Unit origin=FOR_LOOP VAR FOR_LOOP_ITERATOR name:tmp_4 type:kotlin.collections.Iterator [val] - CALL 'public abstract fun iterator (): kotlin.collections.Iterator [operator] declared in kotlin.collections.List' type=kotlin.collections.Iterator origin=FOR_LOOP_ITERATOR + CALL 'public abstract fun iterator (): kotlin.collections.Iterator declared in kotlin.collections.List' type=kotlin.collections.Iterator origin=FOR_LOOP_ITERATOR $this: BLOCK type=kotlin.collections.List origin=ELVIS VAR IR_TEMPORARY_VARIABLE name:tmp_5 type:kotlin.collections.List? [val] GET_VAR 'ss: kotlin.collections.List? declared in .test4' type=kotlin.collections.List? origin=null WHEN type=kotlin.collections.List origin=ELVIS BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_5: kotlin.collections.List? [val] declared in .test4' type=kotlin.collections.List? origin=null + arg0: GET_VAR 'val tmp_5: kotlin.collections.List? declared in .test4' type=kotlin.collections.List? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: BREAK label=L loop.label=L BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val tmp_5: kotlin.collections.List? [val] declared in .test4' type=kotlin.collections.List? origin=null + then: GET_VAR 'val tmp_5: kotlin.collections.List? declared in .test4' type=kotlin.collections.List? origin=null WHILE label=L2 origin=FOR_LOOP_INNER_WHILE - condition: CALL 'public abstract fun hasNext (): kotlin.Boolean [operator] declared in kotlin.collections.Iterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT - $this: GET_VAR 'val tmp_4: kotlin.collections.Iterator [val] declared in .test4' type=kotlin.collections.Iterator origin=null + condition: CALL 'public abstract fun hasNext (): kotlin.Boolean declared in kotlin.collections.Iterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT + $this: GET_VAR 'val tmp_4: kotlin.collections.Iterator declared in .test4' type=kotlin.collections.Iterator origin=null body: BLOCK type=kotlin.Unit origin=FOR_LOOP_INNER_WHILE VAR FOR_LOOP_VARIABLE name:s type:kotlin.String [val] - CALL 'public abstract fun next (): T of kotlin.collections.Iterator [operator] declared in kotlin.collections.Iterator' type=kotlin.String origin=FOR_LOOP_NEXT - $this: GET_VAR 'val tmp_4: kotlin.collections.Iterator [val] declared in .test4' type=kotlin.collections.Iterator origin=null + CALL 'public abstract fun next (): T of kotlin.collections.Iterator declared in kotlin.collections.Iterator' type=kotlin.String origin=FOR_LOOP_NEXT + $this: GET_VAR 'val tmp_4: kotlin.collections.Iterator declared in .test4' type=kotlin.collections.Iterator origin=null BLOCK type=kotlin.Unit origin=null FUN name:test5 visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY @@ -106,23 +106,23 @@ FILE fqName: fileName:/breakContinueInLoopHeader.kt body: BLOCK type=kotlin.Unit origin=null TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit BLOCK type=kotlin.Int origin=null - SET_VAR 'var i: kotlin.Int [var] declared in .test5' type=kotlin.Unit origin=PREFIX_INCR - CALL 'public final fun inc (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'var i: kotlin.Int [var] declared in .test5' type=kotlin.Int origin=null - GET_VAR 'var i: kotlin.Int [var] declared in .test5' type=kotlin.Int origin=null + SET_VAR 'var i: kotlin.Int declared in .test5' type=kotlin.Unit origin=PREFIX_INCR + CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'var i: kotlin.Int declared in .test5' type=kotlin.Int origin=null + GET_VAR 'var i: kotlin.Int declared in .test5' type=kotlin.Int origin=null VAR name:j type:kotlin.Int [var] CONST Int type=kotlin.Int value=0 BLOCK type=kotlin.Unit origin=null DO_WHILE label=Inner origin=DO_WHILE_LOOP body: BLOCK type=kotlin.Int origin=null - SET_VAR 'var j: kotlin.Int [var] declared in .test5' type=kotlin.Unit origin=PREFIX_INCR - CALL 'public final fun inc (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'var j: kotlin.Int [var] declared in .test5' type=kotlin.Int origin=null - GET_VAR 'var j: kotlin.Int [var] declared in .test5' type=kotlin.Int origin=null + SET_VAR 'var j: kotlin.Int declared in .test5' type=kotlin.Unit origin=PREFIX_INCR + CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'var j: kotlin.Int declared in .test5' type=kotlin.Int origin=null + GET_VAR 'var j: kotlin.Int declared in .test5' type=kotlin.Int origin=null condition: WHEN type=kotlin.Boolean origin=IF BRANCH if: CALL 'public final fun greaterOrEqual (arg0: kotlin.Int, arg1: kotlin.Int): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=GTEQ - arg0: GET_VAR 'var j: kotlin.Int [var] declared in .test5' type=kotlin.Int origin=null + arg0: GET_VAR 'var j: kotlin.Int declared in .test5' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=3 then: CONST Boolean type=kotlin.Boolean value=false BRANCH @@ -131,6 +131,6 @@ FILE fqName: fileName:/breakContinueInLoopHeader.kt WHEN type=kotlin.Unit origin=IF BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'var i: kotlin.Int [var] declared in .test5' type=kotlin.Int origin=null + arg0: GET_VAR 'var i: kotlin.Int declared in .test5' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=3 then: BREAK label=Outer loop.label=Outer diff --git a/compiler/testData/ir/irText/expressions/breakContinueInLoopHeader.ir.txt b/compiler/testData/ir/irText/expressions/breakContinueInLoopHeader.ir.txt index 714e097e9b9..a6b64bdcb73 100644 --- a/compiler/testData/ir/irText/expressions/breakContinueInLoopHeader.ir.txt +++ b/compiler/testData/ir/irText/expressions/breakContinueInLoopHeader.ir.txt @@ -12,12 +12,12 @@ FILE fqName: fileName:/breakContinueInLoopHeader.kt WHEN type=kotlin.Boolean origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_0: kotlin.Boolean? [val] declared in .test1' type=kotlin.Boolean? origin=null + arg0: GET_VAR 'val tmp_0: kotlin.Boolean? declared in .test1' type=kotlin.Boolean? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: BREAK label=null loop.label=L BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val tmp_0: kotlin.Boolean? [val] declared in .test1' type=kotlin.Boolean? origin=null + then: GET_VAR 'val tmp_0: kotlin.Boolean? declared in .test1' type=kotlin.Boolean? origin=null FUN name:test2 visibility:public modality:FINAL <> (c:kotlin.Boolean?) returnType:kotlin.Unit VALUE_PARAMETER name:c index:0 type:kotlin.Boolean? BLOCK_BODY @@ -31,12 +31,12 @@ FILE fqName: fileName:/breakContinueInLoopHeader.kt WHEN type=kotlin.Boolean origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_1: kotlin.Boolean? [val] declared in .test2' type=kotlin.Boolean? origin=null + arg0: GET_VAR 'val tmp_1: kotlin.Boolean? declared in .test2' type=kotlin.Boolean? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONTINUE label=null loop.label=L BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val tmp_1: kotlin.Boolean? [val] declared in .test2' type=kotlin.Boolean? origin=null + then: GET_VAR 'val tmp_1: kotlin.Boolean? declared in .test2' type=kotlin.Boolean? origin=null FUN name:test3 visibility:public modality:FINAL <> (ss:kotlin.collections.List?) returnType:kotlin.Unit VALUE_PARAMETER name:ss index:0 type:kotlin.collections.List? BLOCK_BODY @@ -45,26 +45,26 @@ FILE fqName: fileName:/breakContinueInLoopHeader.kt body: BLOCK type=kotlin.Unit origin=null BLOCK type=kotlin.Unit origin=FOR_LOOP VAR FOR_LOOP_ITERATOR name:tmp_2 type:kotlin.collections.Iterator [val] - CALL 'public abstract fun iterator (): kotlin.collections.Iterator [operator] declared in kotlin.collections.List' type=kotlin.collections.Iterator origin=FOR_LOOP_ITERATOR + CALL 'public abstract fun iterator (): kotlin.collections.Iterator declared in kotlin.collections.List' type=kotlin.collections.Iterator origin=FOR_LOOP_ITERATOR $this: BLOCK type=kotlin.collections.List origin=ELVIS VAR IR_TEMPORARY_VARIABLE name:tmp_3 type:kotlin.collections.List? [val] GET_VAR 'ss: kotlin.collections.List? declared in .test3' type=kotlin.collections.List? origin=null WHEN type=kotlin.collections.List origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_3: kotlin.collections.List? [val] declared in .test3' type=kotlin.collections.List? origin=null + arg0: GET_VAR 'val tmp_3: kotlin.collections.List? declared in .test3' type=kotlin.collections.List? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONTINUE label=null loop.label=L BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val tmp_3: kotlin.collections.List? [val] declared in .test3' type=kotlin.collections.List? origin=null + then: GET_VAR 'val tmp_3: kotlin.collections.List? declared in .test3' type=kotlin.collections.List? origin=null WHILE label=L2 origin=FOR_LOOP_INNER_WHILE - condition: CALL 'public abstract fun hasNext (): kotlin.Boolean [operator] declared in kotlin.collections.Iterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT - $this: GET_VAR 'val tmp_2: kotlin.collections.Iterator [val] declared in .test3' type=kotlin.collections.Iterator origin=null + condition: CALL 'public abstract fun hasNext (): kotlin.Boolean declared in kotlin.collections.Iterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT + $this: GET_VAR 'val tmp_2: kotlin.collections.Iterator declared in .test3' type=kotlin.collections.Iterator origin=null body: BLOCK type=kotlin.Unit origin=FOR_LOOP_INNER_WHILE VAR FOR_LOOP_VARIABLE name:s type:kotlin.String [val] - CALL 'public abstract fun next (): T of kotlin.collections.Iterator [operator] declared in kotlin.collections.Iterator' type=kotlin.String origin=FOR_LOOP_NEXT - $this: GET_VAR 'val tmp_2: kotlin.collections.Iterator [val] declared in .test3' type=kotlin.collections.Iterator origin=null + CALL 'public abstract fun next (): T of kotlin.collections.Iterator declared in kotlin.collections.Iterator' type=kotlin.String origin=FOR_LOOP_NEXT + $this: GET_VAR 'val tmp_2: kotlin.collections.Iterator declared in .test3' type=kotlin.collections.Iterator origin=null FUN name:test4 visibility:public modality:FINAL <> (ss:kotlin.collections.List?) returnType:kotlin.Unit VALUE_PARAMETER name:ss index:0 type:kotlin.collections.List? BLOCK_BODY @@ -73,26 +73,26 @@ FILE fqName: fileName:/breakContinueInLoopHeader.kt body: BLOCK type=kotlin.Unit origin=null BLOCK type=kotlin.Unit origin=FOR_LOOP VAR FOR_LOOP_ITERATOR name:tmp_4 type:kotlin.collections.Iterator [val] - CALL 'public abstract fun iterator (): kotlin.collections.Iterator [operator] declared in kotlin.collections.List' type=kotlin.collections.Iterator origin=FOR_LOOP_ITERATOR + CALL 'public abstract fun iterator (): kotlin.collections.Iterator declared in kotlin.collections.List' type=kotlin.collections.Iterator origin=FOR_LOOP_ITERATOR $this: BLOCK type=kotlin.collections.List origin=ELVIS VAR IR_TEMPORARY_VARIABLE name:tmp_5 type:kotlin.collections.List? [val] GET_VAR 'ss: kotlin.collections.List? declared in .test4' type=kotlin.collections.List? origin=null WHEN type=kotlin.collections.List origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_5: kotlin.collections.List? [val] declared in .test4' type=kotlin.collections.List? origin=null + arg0: GET_VAR 'val tmp_5: kotlin.collections.List? declared in .test4' type=kotlin.collections.List? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: BREAK label=null loop.label=L BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val tmp_5: kotlin.collections.List? [val] declared in .test4' type=kotlin.collections.List? origin=null + then: GET_VAR 'val tmp_5: kotlin.collections.List? declared in .test4' type=kotlin.collections.List? origin=null WHILE label=L2 origin=FOR_LOOP_INNER_WHILE - condition: CALL 'public abstract fun hasNext (): kotlin.Boolean [operator] declared in kotlin.collections.Iterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT - $this: GET_VAR 'val tmp_4: kotlin.collections.Iterator [val] declared in .test4' type=kotlin.collections.Iterator origin=null + condition: CALL 'public abstract fun hasNext (): kotlin.Boolean declared in kotlin.collections.Iterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT + $this: GET_VAR 'val tmp_4: kotlin.collections.Iterator declared in .test4' type=kotlin.collections.Iterator origin=null body: BLOCK type=kotlin.Unit origin=FOR_LOOP_INNER_WHILE VAR FOR_LOOP_VARIABLE name:s type:kotlin.String [val] - CALL 'public abstract fun next (): T of kotlin.collections.Iterator [operator] declared in kotlin.collections.Iterator' type=kotlin.String origin=FOR_LOOP_NEXT - $this: GET_VAR 'val tmp_4: kotlin.collections.Iterator [val] declared in .test4' type=kotlin.collections.Iterator origin=null + CALL 'public abstract fun next (): T of kotlin.collections.Iterator declared in kotlin.collections.Iterator' type=kotlin.String origin=FOR_LOOP_NEXT + $this: GET_VAR 'val tmp_4: kotlin.collections.Iterator declared in .test4' type=kotlin.collections.Iterator origin=null FUN name:test5 visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY VAR name:i type:kotlin.Int [var] @@ -102,10 +102,10 @@ FILE fqName: fileName:/breakContinueInLoopHeader.kt body: BLOCK type=kotlin.Unit origin=null TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit BLOCK type=kotlin.Int origin=PREFIX_INCR - SET_VAR 'var i: kotlin.Int [var] declared in .test5' type=kotlin.Unit origin=PREFIX_INCR - CALL 'public final fun inc (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PREFIX_INCR - $this: GET_VAR 'var i: kotlin.Int [var] declared in .test5' type=kotlin.Int origin=PREFIX_INCR - GET_VAR 'var i: kotlin.Int [var] declared in .test5' type=kotlin.Int origin=PREFIX_INCR + SET_VAR 'var i: kotlin.Int declared in .test5' type=kotlin.Unit origin=PREFIX_INCR + CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PREFIX_INCR + $this: GET_VAR 'var i: kotlin.Int declared in .test5' type=kotlin.Int origin=PREFIX_INCR + GET_VAR 'var i: kotlin.Int declared in .test5' type=kotlin.Int origin=PREFIX_INCR VAR name:j type:kotlin.Int [var] CONST Int type=kotlin.Int value=0 BLOCK type=kotlin.Unit origin=null @@ -113,14 +113,14 @@ FILE fqName: fileName:/breakContinueInLoopHeader.kt body: COMPOSITE type=kotlin.Unit origin=null TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit BLOCK type=kotlin.Int origin=PREFIX_INCR - SET_VAR 'var j: kotlin.Int [var] declared in .test5' type=kotlin.Unit origin=PREFIX_INCR - CALL 'public final fun inc (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PREFIX_INCR - $this: GET_VAR 'var j: kotlin.Int [var] declared in .test5' type=kotlin.Int origin=PREFIX_INCR - GET_VAR 'var j: kotlin.Int [var] declared in .test5' type=kotlin.Int origin=PREFIX_INCR + SET_VAR 'var j: kotlin.Int declared in .test5' type=kotlin.Unit origin=PREFIX_INCR + CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PREFIX_INCR + $this: GET_VAR 'var j: kotlin.Int declared in .test5' type=kotlin.Int origin=PREFIX_INCR + GET_VAR 'var j: kotlin.Int declared in .test5' type=kotlin.Int origin=PREFIX_INCR condition: WHEN type=kotlin.Boolean origin=IF BRANCH if: CALL 'public final fun greaterOrEqual (arg0: kotlin.Int, arg1: kotlin.Int): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=GTEQ - arg0: GET_VAR 'var j: kotlin.Int [var] declared in .test5' type=kotlin.Int origin=null + arg0: GET_VAR 'var j: kotlin.Int declared in .test5' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=3 then: CONST Boolean type=kotlin.Boolean value=false BRANCH @@ -129,6 +129,6 @@ FILE fqName: fileName:/breakContinueInLoopHeader.kt WHEN type=kotlin.Unit origin=IF BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'var i: kotlin.Int [var] declared in .test5' type=kotlin.Int origin=null + arg0: GET_VAR 'var i: kotlin.Int declared in .test5' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=3 then: BREAK label=null loop.label=Outer diff --git a/compiler/testData/ir/irText/expressions/breakContinueInWhen.fir.ir.txt b/compiler/testData/ir/irText/expressions/breakContinueInWhen.fir.ir.txt index 8c280cb6a69..959a5dbae77 100644 --- a/compiler/testData/ir/irText/expressions/breakContinueInWhen.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/breakContinueInWhen.fir.ir.txt @@ -14,19 +14,19 @@ FILE fqName: fileName:/breakContinueInWhen.kt CONST Int type=kotlin.Int value=0 BLOCK type=kotlin.Unit origin=FOR_LOOP VAR FOR_LOOP_ITERATOR name:tmp_0 type:kotlin.collections.IntIterator [val] - CALL 'public final fun iterator (): kotlin.collections.IntIterator [operator] declared in kotlin.IntArray' type=kotlin.collections.IntIterator origin=null - $this: GET_VAR 'val xs: kotlin.IntArray [val] declared in .testBreakFor' type=kotlin.IntArray origin=null + CALL 'public final fun iterator (): kotlin.collections.IntIterator declared in kotlin.IntArray' type=kotlin.collections.IntIterator origin=null + $this: GET_VAR 'val xs: kotlin.IntArray declared in .testBreakFor' type=kotlin.IntArray origin=null WHILE label=null origin=FOR_LOOP_INNER_WHILE - condition: CALL 'public abstract fun hasNext (): kotlin.Boolean [fake_override,operator] declared in kotlin.collections.IntIterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT - $this: GET_VAR 'val tmp_0: kotlin.collections.IntIterator [val] declared in .testBreakFor' type=kotlin.collections.IntIterator origin=null + condition: CALL 'public abstract fun hasNext (): kotlin.Boolean declared in kotlin.collections.IntIterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT + $this: GET_VAR 'val tmp_0: kotlin.collections.IntIterator declared in .testBreakFor' type=kotlin.collections.IntIterator origin=null body: BLOCK type=kotlin.Unit origin=FOR_LOOP_INNER_WHILE VAR FOR_LOOP_VARIABLE name:x type:kotlin.Int [val] - CALL 'public final fun next (): kotlin.Int [operator] declared in kotlin.collections.IntIterator' type=kotlin.Int origin=FOR_LOOP_NEXT - $this: GET_VAR 'val tmp_0: kotlin.collections.IntIterator [val] declared in .testBreakFor' type=kotlin.collections.IntIterator origin=null + CALL 'public final fun next (): kotlin.Int declared in kotlin.collections.IntIterator' type=kotlin.Int origin=FOR_LOOP_NEXT + $this: GET_VAR 'val tmp_0: kotlin.collections.IntIterator declared in .testBreakFor' type=kotlin.collections.IntIterator origin=null WHEN type=kotlin.Unit origin=WHEN BRANCH if: CALL 'public final fun greater (arg0: kotlin.Int, arg1: kotlin.Int): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=GT - arg0: GET_VAR 'var k: kotlin.Int [var] declared in .testBreakFor' type=kotlin.Int origin=null + arg0: GET_VAR 'var k: kotlin.Int declared in .testBreakFor' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=2 then: BREAK label=null loop.label=null FUN name:testBreakWhile visibility:public modality:FINAL <> () returnType:kotlin.Unit @@ -35,12 +35,12 @@ FILE fqName: fileName:/breakContinueInWhen.kt CONST Int type=kotlin.Int value=0 WHILE label=null origin=WHILE_LOOP condition: CALL 'public final fun less (arg0: kotlin.Int, arg1: kotlin.Int): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=LT - arg0: GET_VAR 'var k: kotlin.Int [var] declared in .testBreakWhile' type=kotlin.Int origin=null + arg0: GET_VAR 'var k: kotlin.Int declared in .testBreakWhile' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=10 body: WHEN type=kotlin.Unit origin=WHEN BRANCH if: CALL 'public final fun greater (arg0: kotlin.Int, arg1: kotlin.Int): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=GT - arg0: GET_VAR 'var k: kotlin.Int [var] declared in .testBreakWhile' type=kotlin.Int origin=null + arg0: GET_VAR 'var k: kotlin.Int declared in .testBreakWhile' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=2 then: BREAK label=null loop.label=null FUN name:testBreakDoWhile visibility:public modality:FINAL <> () returnType:kotlin.Unit @@ -52,11 +52,11 @@ FILE fqName: fileName:/breakContinueInWhen.kt body: WHEN type=kotlin.Unit origin=WHEN BRANCH if: CALL 'public final fun greater (arg0: kotlin.Int, arg1: kotlin.Int): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=GT - arg0: GET_VAR 'var k: kotlin.Int [var] declared in .testBreakDoWhile' type=kotlin.Int origin=null + arg0: GET_VAR 'var k: kotlin.Int declared in .testBreakDoWhile' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=2 then: BREAK label=null loop.label=null condition: CALL 'public final fun less (arg0: kotlin.Int, arg1: kotlin.Int): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=LT - arg0: GET_VAR 'var k: kotlin.Int [var] declared in .testBreakDoWhile' type=kotlin.Int origin=null + arg0: GET_VAR 'var k: kotlin.Int declared in .testBreakDoWhile' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=10 FUN name:testContinueFor visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY @@ -73,19 +73,19 @@ FILE fqName: fileName:/breakContinueInWhen.kt CONST Int type=kotlin.Int value=0 BLOCK type=kotlin.Unit origin=FOR_LOOP VAR FOR_LOOP_ITERATOR name:tmp_1 type:kotlin.collections.IntIterator [val] - CALL 'public final fun iterator (): kotlin.collections.IntIterator [operator] declared in kotlin.IntArray' type=kotlin.collections.IntIterator origin=null - $this: GET_VAR 'val xs: kotlin.IntArray [val] declared in .testContinueFor' type=kotlin.IntArray origin=null + CALL 'public final fun iterator (): kotlin.collections.IntIterator declared in kotlin.IntArray' type=kotlin.collections.IntIterator origin=null + $this: GET_VAR 'val xs: kotlin.IntArray declared in .testContinueFor' type=kotlin.IntArray origin=null WHILE label=null origin=FOR_LOOP_INNER_WHILE - condition: CALL 'public abstract fun hasNext (): kotlin.Boolean [fake_override,operator] declared in kotlin.collections.IntIterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT - $this: GET_VAR 'val tmp_1: kotlin.collections.IntIterator [val] declared in .testContinueFor' type=kotlin.collections.IntIterator origin=null + condition: CALL 'public abstract fun hasNext (): kotlin.Boolean declared in kotlin.collections.IntIterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT + $this: GET_VAR 'val tmp_1: kotlin.collections.IntIterator declared in .testContinueFor' type=kotlin.collections.IntIterator origin=null body: BLOCK type=kotlin.Unit origin=FOR_LOOP_INNER_WHILE VAR FOR_LOOP_VARIABLE name:x type:kotlin.Int [val] - CALL 'public final fun next (): kotlin.Int [operator] declared in kotlin.collections.IntIterator' type=kotlin.Int origin=FOR_LOOP_NEXT - $this: GET_VAR 'val tmp_1: kotlin.collections.IntIterator [val] declared in .testContinueFor' type=kotlin.collections.IntIterator origin=null + CALL 'public final fun next (): kotlin.Int declared in kotlin.collections.IntIterator' type=kotlin.Int origin=FOR_LOOP_NEXT + $this: GET_VAR 'val tmp_1: kotlin.collections.IntIterator declared in .testContinueFor' type=kotlin.collections.IntIterator origin=null WHEN type=kotlin.Unit origin=WHEN BRANCH if: CALL 'public final fun greater (arg0: kotlin.Int, arg1: kotlin.Int): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=GT - arg0: GET_VAR 'var k: kotlin.Int [var] declared in .testContinueFor' type=kotlin.Int origin=null + arg0: GET_VAR 'var k: kotlin.Int declared in .testContinueFor' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=2 then: CONTINUE label=null loop.label=null FUN name:testContinueWhile visibility:public modality:FINAL <> () returnType:kotlin.Unit @@ -94,12 +94,12 @@ FILE fqName: fileName:/breakContinueInWhen.kt CONST Int type=kotlin.Int value=0 WHILE label=null origin=WHILE_LOOP condition: CALL 'public final fun less (arg0: kotlin.Int, arg1: kotlin.Int): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=LT - arg0: GET_VAR 'var k: kotlin.Int [var] declared in .testContinueWhile' type=kotlin.Int origin=null + arg0: GET_VAR 'var k: kotlin.Int declared in .testContinueWhile' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=10 body: WHEN type=kotlin.Unit origin=WHEN BRANCH if: CALL 'public final fun greater (arg0: kotlin.Int, arg1: kotlin.Int): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=GT - arg0: GET_VAR 'var k: kotlin.Int [var] declared in .testContinueWhile' type=kotlin.Int origin=null + arg0: GET_VAR 'var k: kotlin.Int declared in .testContinueWhile' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=2 then: CONTINUE label=null loop.label=null FUN name:testContinueDoWhile visibility:public modality:FINAL <> () returnType:kotlin.Unit @@ -113,31 +113,31 @@ FILE fqName: fileName:/breakContinueInWhen.kt body: COMPOSITE type=kotlin.Unit origin=DO_WHILE_LOOP TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit BLOCK type=kotlin.Int origin=null - SET_VAR 'var k: kotlin.Int [var] declared in .testContinueDoWhile' type=kotlin.Unit origin=PREFIX_INCR - CALL 'public final fun inc (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'var k: kotlin.Int [var] declared in .testContinueDoWhile' type=kotlin.Int origin=null - GET_VAR 'var k: kotlin.Int [var] declared in .testContinueDoWhile' type=kotlin.Int origin=null + SET_VAR 'var k: kotlin.Int declared in .testContinueDoWhile' type=kotlin.Unit origin=PREFIX_INCR + CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'var k: kotlin.Int declared in .testContinueDoWhile' type=kotlin.Int origin=null + GET_VAR 'var k: kotlin.Int declared in .testContinueDoWhile' type=kotlin.Int origin=null WHEN type=kotlin.Unit origin=WHEN BRANCH if: CALL 'public final fun greater (arg0: kotlin.Int, arg1: kotlin.Int): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=GT - arg0: GET_VAR 'var k: kotlin.Int [var] declared in .testContinueDoWhile' type=kotlin.Int origin=null + arg0: GET_VAR 'var k: kotlin.Int declared in .testContinueDoWhile' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=2 then: CONTINUE label=null loop.label=null - SET_VAR 'var s: kotlin.String [var] declared in .testContinueDoWhile' type=kotlin.Unit origin=EQ - CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=null - $this: GET_VAR 'var s: kotlin.String [var] declared in .testContinueDoWhile' type=kotlin.String origin=null + SET_VAR 'var s: kotlin.String declared in .testContinueDoWhile' type=kotlin.Unit origin=EQ + CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=null + $this: GET_VAR 'var s: kotlin.String declared in .testContinueDoWhile' type=kotlin.String origin=null other: STRING_CONCATENATION type=kotlin.String - GET_VAR 'var k: kotlin.Int [var] declared in .testContinueDoWhile' type=kotlin.Int origin=null + GET_VAR 'var k: kotlin.Int declared in .testContinueDoWhile' type=kotlin.Int origin=null CONST String type=kotlin.String value=";" condition: CALL 'public final fun less (arg0: kotlin.Int, arg1: kotlin.Int): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=LT - arg0: GET_VAR 'var k: kotlin.Int [var] declared in .testContinueDoWhile' type=kotlin.Int origin=null + arg0: GET_VAR 'var k: kotlin.Int declared in .testContinueDoWhile' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=10 WHEN type=kotlin.Unit origin=IF BRANCH - if: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ + if: CALL 'public final fun not (): kotlin.Boolean 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_VAR 'var s: kotlin.String [var] declared in .testContinueDoWhile' type=kotlin.String origin=null + arg0: GET_VAR 'var s: kotlin.String declared in .testContinueDoWhile' type=kotlin.String origin=null arg1: CONST String type=kotlin.String value="1;2;" then: THROW type=kotlin.Nothing CONSTRUCTOR_CALL 'public constructor (p0: @[FlexibleNullability] kotlin.Any?) declared in java.lang.AssertionError' type=java.lang.AssertionError origin=null - p0: GET_VAR 'var s: kotlin.String [var] declared in .testContinueDoWhile' type=kotlin.String origin=null + p0: GET_VAR 'var s: kotlin.String declared in .testContinueDoWhile' type=kotlin.String origin=null diff --git a/compiler/testData/ir/irText/expressions/breakContinueInWhen.ir.txt b/compiler/testData/ir/irText/expressions/breakContinueInWhen.ir.txt index c1d7e815ef0..5df2cdba1fa 100644 --- a/compiler/testData/ir/irText/expressions/breakContinueInWhen.ir.txt +++ b/compiler/testData/ir/irText/expressions/breakContinueInWhen.ir.txt @@ -14,20 +14,20 @@ FILE fqName: fileName:/breakContinueInWhen.kt CONST Int type=kotlin.Int value=0 BLOCK type=kotlin.Unit origin=FOR_LOOP VAR FOR_LOOP_ITERATOR name:tmp_0 type:kotlin.collections.IntIterator [val] - CALL 'public final fun iterator (): kotlin.collections.IntIterator [operator] declared in kotlin.IntArray' type=kotlin.collections.IntIterator origin=FOR_LOOP_ITERATOR - $this: GET_VAR 'val xs: kotlin.IntArray [val] declared in .testBreakFor' type=kotlin.IntArray origin=null + CALL 'public final fun iterator (): kotlin.collections.IntIterator declared in kotlin.IntArray' type=kotlin.collections.IntIterator origin=FOR_LOOP_ITERATOR + $this: GET_VAR 'val xs: kotlin.IntArray declared in .testBreakFor' type=kotlin.IntArray origin=null WHILE label=null origin=FOR_LOOP_INNER_WHILE - condition: CALL 'public abstract fun hasNext (): kotlin.Boolean [fake_override,operator] declared in kotlin.collections.IntIterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT - $this: GET_VAR 'val tmp_0: kotlin.collections.IntIterator [val] declared in .testBreakFor' type=kotlin.collections.IntIterator origin=null + condition: CALL 'public abstract fun hasNext (): kotlin.Boolean declared in kotlin.collections.IntIterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT + $this: GET_VAR 'val tmp_0: kotlin.collections.IntIterator declared in .testBreakFor' type=kotlin.collections.IntIterator origin=null body: BLOCK type=kotlin.Unit origin=FOR_LOOP_INNER_WHILE VAR FOR_LOOP_VARIABLE name:x type:kotlin.Int [val] - CALL 'public final fun next (): kotlin.Int [operator] declared in kotlin.collections.IntIterator' type=kotlin.Int origin=FOR_LOOP_NEXT - $this: GET_VAR 'val tmp_0: kotlin.collections.IntIterator [val] declared in .testBreakFor' type=kotlin.collections.IntIterator origin=null + CALL 'public final fun next (): kotlin.Int declared in kotlin.collections.IntIterator' type=kotlin.Int origin=FOR_LOOP_NEXT + $this: GET_VAR 'val tmp_0: kotlin.collections.IntIterator declared in .testBreakFor' type=kotlin.collections.IntIterator origin=null BLOCK type=kotlin.Unit origin=null WHEN type=kotlin.Unit origin=WHEN BRANCH if: CALL 'public final fun greater (arg0: kotlin.Int, arg1: kotlin.Int): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=GT - arg0: GET_VAR 'var k: kotlin.Int [var] declared in .testBreakFor' type=kotlin.Int origin=null + arg0: GET_VAR 'var k: kotlin.Int declared in .testBreakFor' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=2 then: BREAK label=null loop.label=null FUN name:testBreakWhile visibility:public modality:FINAL <> () returnType:kotlin.Unit @@ -36,13 +36,13 @@ FILE fqName: fileName:/breakContinueInWhen.kt CONST Int type=kotlin.Int value=0 WHILE label=null origin=WHILE_LOOP condition: CALL 'public final fun less (arg0: kotlin.Int, arg1: kotlin.Int): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=LT - arg0: GET_VAR 'var k: kotlin.Int [var] declared in .testBreakWhile' type=kotlin.Int origin=null + arg0: GET_VAR 'var k: kotlin.Int declared in .testBreakWhile' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=10 body: BLOCK type=kotlin.Unit origin=null WHEN type=kotlin.Unit origin=WHEN BRANCH if: CALL 'public final fun greater (arg0: kotlin.Int, arg1: kotlin.Int): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=GT - arg0: GET_VAR 'var k: kotlin.Int [var] declared in .testBreakWhile' type=kotlin.Int origin=null + arg0: GET_VAR 'var k: kotlin.Int declared in .testBreakWhile' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=2 then: BREAK label=null loop.label=null FUN name:testBreakDoWhile visibility:public modality:FINAL <> () returnType:kotlin.Unit @@ -55,11 +55,11 @@ FILE fqName: fileName:/breakContinueInWhen.kt WHEN type=kotlin.Unit origin=WHEN BRANCH if: CALL 'public final fun greater (arg0: kotlin.Int, arg1: kotlin.Int): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=GT - arg0: GET_VAR 'var k: kotlin.Int [var] declared in .testBreakDoWhile' type=kotlin.Int origin=null + arg0: GET_VAR 'var k: kotlin.Int declared in .testBreakDoWhile' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=2 then: BREAK label=null loop.label=null condition: CALL 'public final fun less (arg0: kotlin.Int, arg1: kotlin.Int): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=LT - arg0: GET_VAR 'var k: kotlin.Int [var] declared in .testBreakDoWhile' type=kotlin.Int origin=null + arg0: GET_VAR 'var k: kotlin.Int declared in .testBreakDoWhile' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=10 FUN name:testContinueFor visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY @@ -76,20 +76,20 @@ FILE fqName: fileName:/breakContinueInWhen.kt CONST Int type=kotlin.Int value=0 BLOCK type=kotlin.Unit origin=FOR_LOOP VAR FOR_LOOP_ITERATOR name:tmp_1 type:kotlin.collections.IntIterator [val] - CALL 'public final fun iterator (): kotlin.collections.IntIterator [operator] declared in kotlin.IntArray' type=kotlin.collections.IntIterator origin=FOR_LOOP_ITERATOR - $this: GET_VAR 'val xs: kotlin.IntArray [val] declared in .testContinueFor' type=kotlin.IntArray origin=null + CALL 'public final fun iterator (): kotlin.collections.IntIterator declared in kotlin.IntArray' type=kotlin.collections.IntIterator origin=FOR_LOOP_ITERATOR + $this: GET_VAR 'val xs: kotlin.IntArray declared in .testContinueFor' type=kotlin.IntArray origin=null WHILE label=null origin=FOR_LOOP_INNER_WHILE - condition: CALL 'public abstract fun hasNext (): kotlin.Boolean [fake_override,operator] declared in kotlin.collections.IntIterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT - $this: GET_VAR 'val tmp_1: kotlin.collections.IntIterator [val] declared in .testContinueFor' type=kotlin.collections.IntIterator origin=null + condition: CALL 'public abstract fun hasNext (): kotlin.Boolean declared in kotlin.collections.IntIterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT + $this: GET_VAR 'val tmp_1: kotlin.collections.IntIterator declared in .testContinueFor' type=kotlin.collections.IntIterator origin=null body: BLOCK type=kotlin.Unit origin=FOR_LOOP_INNER_WHILE VAR FOR_LOOP_VARIABLE name:x type:kotlin.Int [val] - CALL 'public final fun next (): kotlin.Int [operator] declared in kotlin.collections.IntIterator' type=kotlin.Int origin=FOR_LOOP_NEXT - $this: GET_VAR 'val tmp_1: kotlin.collections.IntIterator [val] declared in .testContinueFor' type=kotlin.collections.IntIterator origin=null + CALL 'public final fun next (): kotlin.Int declared in kotlin.collections.IntIterator' type=kotlin.Int origin=FOR_LOOP_NEXT + $this: GET_VAR 'val tmp_1: kotlin.collections.IntIterator declared in .testContinueFor' type=kotlin.collections.IntIterator origin=null BLOCK type=kotlin.Unit origin=null WHEN type=kotlin.Unit origin=WHEN BRANCH if: CALL 'public final fun greater (arg0: kotlin.Int, arg1: kotlin.Int): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=GT - arg0: GET_VAR 'var k: kotlin.Int [var] declared in .testContinueFor' type=kotlin.Int origin=null + arg0: GET_VAR 'var k: kotlin.Int declared in .testContinueFor' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=2 then: CONTINUE label=null loop.label=null FUN name:testContinueWhile visibility:public modality:FINAL <> () returnType:kotlin.Unit @@ -98,13 +98,13 @@ FILE fqName: fileName:/breakContinueInWhen.kt CONST Int type=kotlin.Int value=0 WHILE label=null origin=WHILE_LOOP condition: CALL 'public final fun less (arg0: kotlin.Int, arg1: kotlin.Int): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=LT - arg0: GET_VAR 'var k: kotlin.Int [var] declared in .testContinueWhile' type=kotlin.Int origin=null + arg0: GET_VAR 'var k: kotlin.Int declared in .testContinueWhile' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=10 body: BLOCK type=kotlin.Unit origin=null WHEN type=kotlin.Unit origin=WHEN BRANCH if: CALL 'public final fun greater (arg0: kotlin.Int, arg1: kotlin.Int): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=GT - arg0: GET_VAR 'var k: kotlin.Int [var] declared in .testContinueWhile' type=kotlin.Int origin=null + arg0: GET_VAR 'var k: kotlin.Int declared in .testContinueWhile' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=2 then: CONTINUE label=null loop.label=null FUN name:testContinueDoWhile visibility:public modality:FINAL <> () returnType:kotlin.Unit @@ -118,31 +118,31 @@ FILE fqName: fileName:/breakContinueInWhen.kt body: COMPOSITE type=kotlin.Unit origin=null TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit BLOCK type=kotlin.Int origin=PREFIX_INCR - SET_VAR 'var k: kotlin.Int [var] declared in .testContinueDoWhile' type=kotlin.Unit origin=PREFIX_INCR - CALL 'public final fun inc (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PREFIX_INCR - $this: GET_VAR 'var k: kotlin.Int [var] declared in .testContinueDoWhile' type=kotlin.Int origin=PREFIX_INCR - GET_VAR 'var k: kotlin.Int [var] declared in .testContinueDoWhile' type=kotlin.Int origin=PREFIX_INCR + SET_VAR 'var k: kotlin.Int declared in .testContinueDoWhile' type=kotlin.Unit origin=PREFIX_INCR + CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PREFIX_INCR + $this: GET_VAR 'var k: kotlin.Int declared in .testContinueDoWhile' type=kotlin.Int origin=PREFIX_INCR + GET_VAR 'var k: kotlin.Int declared in .testContinueDoWhile' type=kotlin.Int origin=PREFIX_INCR WHEN type=kotlin.Unit origin=WHEN BRANCH if: CALL 'public final fun greater (arg0: kotlin.Int, arg1: kotlin.Int): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=GT - arg0: GET_VAR 'var k: kotlin.Int [var] declared in .testContinueDoWhile' type=kotlin.Int origin=null + arg0: GET_VAR 'var k: kotlin.Int declared in .testContinueDoWhile' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=2 then: CONTINUE label=null loop.label=null - SET_VAR 'var s: kotlin.String [var] declared in .testContinueDoWhile' type=kotlin.Unit origin=PLUSEQ - CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUSEQ - $this: GET_VAR 'var s: kotlin.String [var] declared in .testContinueDoWhile' type=kotlin.String origin=PLUSEQ + SET_VAR 'var s: kotlin.String declared in .testContinueDoWhile' type=kotlin.Unit origin=PLUSEQ + CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUSEQ + $this: GET_VAR 'var s: kotlin.String declared in .testContinueDoWhile' type=kotlin.String origin=PLUSEQ other: STRING_CONCATENATION type=kotlin.String - GET_VAR 'var k: kotlin.Int [var] declared in .testContinueDoWhile' type=kotlin.Int origin=null + GET_VAR 'var k: kotlin.Int declared in .testContinueDoWhile' type=kotlin.Int origin=null CONST String type=kotlin.String value=";" condition: CALL 'public final fun less (arg0: kotlin.Int, arg1: kotlin.Int): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=LT - arg0: GET_VAR 'var k: kotlin.Int [var] declared in .testContinueDoWhile' type=kotlin.Int origin=null + arg0: GET_VAR 'var k: kotlin.Int declared in .testContinueDoWhile' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=10 WHEN type=kotlin.Unit origin=IF BRANCH - if: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ + if: CALL 'public final fun not (): kotlin.Boolean 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_VAR 'var s: kotlin.String [var] declared in .testContinueDoWhile' type=kotlin.String origin=null + arg0: GET_VAR 'var s: kotlin.String declared in .testContinueDoWhile' type=kotlin.String origin=null arg1: CONST String type=kotlin.String value="1;2;" then: THROW type=kotlin.Nothing CONSTRUCTOR_CALL 'public constructor (p0: @[FlexibleNullability] kotlin.Any?) declared in java.lang.AssertionError' type=java.lang.AssertionError origin=null - p0: GET_VAR 'var s: kotlin.String [var] declared in .testContinueDoWhile' type=kotlin.String origin=null + p0: GET_VAR 'var s: kotlin.String declared in .testContinueDoWhile' type=kotlin.String origin=null diff --git a/compiler/testData/ir/irText/expressions/builtinOperators.ir.txt b/compiler/testData/ir/irText/expressions/builtinOperators.ir.txt index abf75e88882..043a84b6d72 100644 --- a/compiler/testData/ir/irText/expressions/builtinOperators.ir.txt +++ b/compiler/testData/ir/irText/expressions/builtinOperators.ir.txt @@ -4,21 +4,21 @@ FILE fqName:test fileName:/test.kt VALUE_PARAMETER name:b index:1 type:kotlin.Int BLOCK_BODY TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit - CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUS + CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUS $this: GET_VAR 'a: kotlin.Int declared in test.callBuiltinFunctions' type=kotlin.Int origin=null other: GET_VAR 'b: kotlin.Int declared in test.callBuiltinFunctions' type=kotlin.Int origin=null TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit - CALL 'public final fun or (other: kotlin.Int): kotlin.Int [infix] declared in kotlin.Int' type=kotlin.Int origin=null + CALL 'public final fun or (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: GET_VAR 'a: kotlin.Int declared in test.callBuiltinFunctions' type=kotlin.Int origin=null other: GET_VAR 'b: kotlin.Int declared in test.callBuiltinFunctions' type=kotlin.Int origin=null TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit - CALL 'public final fun and (other: kotlin.Int): kotlin.Int [infix] declared in kotlin.Int' type=kotlin.Int origin=null + CALL 'public final fun and (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: GET_VAR 'a: kotlin.Int declared in test.callBuiltinFunctions' type=kotlin.Int origin=null other: GET_VAR 'b: kotlin.Int declared in test.callBuiltinFunctions' type=kotlin.Int origin=null TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit CALL 'public final fun inv (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: GET_VAR 'a: kotlin.Int declared in test.callBuiltinFunctions' type=kotlin.Int origin=null TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit - CALL 'public final fun shl (bitCount: kotlin.Int): kotlin.Int [infix] declared in kotlin.Int' type=kotlin.Int origin=null + CALL 'public final fun shl (bitCount: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: GET_VAR 'a: kotlin.Int declared in test.callBuiltinFunctions' type=kotlin.Int origin=null bitCount: GET_VAR 'b: kotlin.Int declared in test.callBuiltinFunctions' type=kotlin.Int origin=null diff --git a/compiler/testData/ir/irText/expressions/callWithReorderedArguments.ir.txt b/compiler/testData/ir/irText/expressions/callWithReorderedArguments.ir.txt index acc634caadb..de08ec706df 100644 --- a/compiler/testData/ir/irText/expressions/callWithReorderedArguments.ir.txt +++ b/compiler/testData/ir/irText/expressions/callWithReorderedArguments.ir.txt @@ -30,11 +30,11 @@ FILE fqName: fileName:/callWithReorderedArguments.kt VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:kotlin.Int [val] CALL 'public final fun reordered2 (): kotlin.Int declared in ' type=kotlin.Int origin=null CALL 'public final fun foo (a: kotlin.Int, b: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=null - a: GET_VAR 'val tmp_1: kotlin.Int [val] declared in .test' type=kotlin.Int origin=null - b: GET_VAR 'val tmp_0: kotlin.Int [val] declared in .test' type=kotlin.Int origin=null + a: GET_VAR 'val tmp_1: kotlin.Int declared in .test' type=kotlin.Int origin=null + b: GET_VAR 'val tmp_0: kotlin.Int declared in .test' type=kotlin.Int origin=null BLOCK type=kotlin.Unit origin=ARGUMENTS_REORDERING_FOR_CALL VAR IR_TEMPORARY_VARIABLE name:tmp_2 type:kotlin.Int [val] CALL 'public final fun reordered2 (): kotlin.Int declared in ' type=kotlin.Int origin=null CALL 'public final fun foo (a: kotlin.Int, b: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=null - a: GET_VAR 'val tmp_2: kotlin.Int [val] declared in .test' type=kotlin.Int origin=null + a: GET_VAR 'val tmp_2: kotlin.Int declared in .test' type=kotlin.Int origin=null b: CONST Int type=kotlin.Int value=1 diff --git a/compiler/testData/ir/irText/expressions/callableReferences/adaptedExtensionFunctions.fir.ir.txt b/compiler/testData/ir/irText/expressions/callableReferences/adaptedExtensionFunctions.fir.ir.txt index e51d09e756d..00abbdbd139 100644 --- a/compiler/testData/ir/irText/expressions/callableReferences/adaptedExtensionFunctions.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/callableReferences/adaptedExtensionFunctions.fir.ir.txt @@ -6,11 +6,11 @@ FILE fqName: fileName:/adaptedExtensionFunctions.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.C CONSTRUCTOR visibility:public <> () returnType:.C [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/expressions/callableReferences/adaptedExtensionFunctions.ir.txt b/compiler/testData/ir/irText/expressions/callableReferences/adaptedExtensionFunctions.ir.txt index 524ec3aa4ce..5bf5c833d1b 100644 --- a/compiler/testData/ir/irText/expressions/callableReferences/adaptedExtensionFunctions.ir.txt +++ b/compiler/testData/ir/irText/expressions/callableReferences/adaptedExtensionFunctions.ir.txt @@ -6,11 +6,11 @@ FILE fqName: fileName:/adaptedExtensionFunctions.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.C CONSTRUCTOR visibility:public <> () returnType:.C [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/expressions/callableReferences/boundInlineAdaptedReference.fir.ir.txt b/compiler/testData/ir/irText/expressions/callableReferences/boundInlineAdaptedReference.fir.ir.txt index 1fc2b6fc985..b053334e7a9 100644 --- a/compiler/testData/ir/irText/expressions/callableReferences/boundInlineAdaptedReference.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/callableReferences/boundInlineAdaptedReference.fir.ir.txt @@ -13,7 +13,7 @@ FILE fqName:test fileName:/boundInlineAdaptedReference.kt GET_VAR 's: kotlin.String declared in test.id' type=kotlin.String origin=null FUN name:test visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY - CALL 'public final fun foo (x: kotlin.Function0): kotlin.Unit [inline] declared in test' type=kotlin.Unit origin=null + CALL 'public final fun foo (x: kotlin.Function0): kotlin.Unit declared in test' type=kotlin.Unit origin=null x: BLOCK type=kotlin.Function0 origin=ADAPTED_FUNCTION_REFERENCE FUN ADAPTER_FOR_CALLABLE_REFERENCE name:id visibility:local modality:FINAL <> ($receiver:kotlin.String) returnType:kotlin.Unit $receiver: VALUE_PARAMETER ADAPTER_PARAMETER_FOR_CALLABLE_REFERENCE name:receiver type:kotlin.String diff --git a/compiler/testData/ir/irText/expressions/callableReferences/boundInlineAdaptedReference.ir.txt b/compiler/testData/ir/irText/expressions/callableReferences/boundInlineAdaptedReference.ir.txt index a7545077304..95d66a7d6eb 100644 --- a/compiler/testData/ir/irText/expressions/callableReferences/boundInlineAdaptedReference.ir.txt +++ b/compiler/testData/ir/irText/expressions/callableReferences/boundInlineAdaptedReference.ir.txt @@ -13,7 +13,7 @@ FILE fqName:test fileName:/boundInlineAdaptedReference.kt GET_VAR 's: kotlin.String declared in test.id' type=kotlin.String origin=null FUN name:test visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY - CALL 'public final fun foo (x: kotlin.Function0): kotlin.Unit [inline] declared in test' type=kotlin.Unit origin=null + CALL 'public final fun foo (x: kotlin.Function0): kotlin.Unit declared in test' type=kotlin.Unit origin=null x: BLOCK type=kotlin.Function0 origin=ADAPTED_FUNCTION_REFERENCE FUN ADAPTER_FOR_CALLABLE_REFERENCE name:id visibility:local modality:FINAL <> ($receiver:kotlin.String) returnType:kotlin.Unit $receiver: VALUE_PARAMETER ADAPTER_PARAMETER_FOR_CALLABLE_REFERENCE name:receiver type:kotlin.String diff --git a/compiler/testData/ir/irText/expressions/callableReferences/boundInnerGenericConstructor.ir.txt b/compiler/testData/ir/irText/expressions/callableReferences/boundInnerGenericConstructor.ir.txt index ea0dbb792a4..828f15c529c 100644 --- a/compiler/testData/ir/irText/expressions/callableReferences/boundInnerGenericConstructor.ir.txt +++ b/compiler/testData/ir/irText/expressions/callableReferences/boundInnerGenericConstructor.ir.txt @@ -4,7 +4,7 @@ FILE fqName:test fileName:/boundInnerGenericConstructor.kt TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false CONSTRUCTOR visibility:public <> () returnType:test.Foo [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Foo modality:FINAL visibility:public superTypes:[kotlin.Any]' CLASS CLASS name:Inner modality:FINAL visibility:public [inner] superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:test.Foo.Inner

@@ -14,7 +14,7 @@ FILE fqName:test fileName:/boundInnerGenericConstructor.kt VALUE_PARAMETER name:a index:0 type:T of test.Foo VALUE_PARAMETER name:b index:1 type:P of test.Foo.Inner BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Inner modality:FINAL visibility:public [inner] superTypes:[kotlin.Any]' PROPERTY name:a visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:a type:T of test.Foo visibility:private [final] @@ -40,7 +40,7 @@ FILE fqName:test fileName:/boundInnerGenericConstructor.kt receiver: GET_VAR ': test.Foo.Inner

declared in test.Foo.Inner.' type=test.Foo.Inner

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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -53,7 +53,7 @@ FILE fqName:test fileName:/boundInnerGenericConstructor.kt $this: VALUE_PARAMETER name: type: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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -71,28 +71,28 @@ FILE fqName:test fileName:/boundInnerGenericConstructor.kt VALUE_PARAMETER name:b index:1 type:B of test.foo VALUE_PARAMETER name:x index:2 type:kotlin.Function2> BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun foo (a: A of test.foo, b: B of test.foo, x: kotlin.Function2>): test.Foo.Inner [inline] declared in test' - CALL 'public abstract fun invoke (p1: P1 of kotlin.Function2, p2: P2 of kotlin.Function2): R of kotlin.Function2 [operator] declared in kotlin.Function2' type=test.Foo.Inner origin=INVOKE + RETURN type=kotlin.Nothing from='public final fun foo (a: A of test.foo, b: B of test.foo, x: kotlin.Function2>): test.Foo.Inner declared in test' + CALL 'public abstract fun invoke (p1: P1 of kotlin.Function2, p2: P2 of kotlin.Function2): R of kotlin.Function2 declared in kotlin.Function2' type=test.Foo.Inner origin=INVOKE $this: GET_VAR 'x: kotlin.Function2> declared in test.foo' type=kotlin.Function2> origin=VARIABLE_AS_FUNCTION p1: GET_VAR 'a: A of test.foo declared in test.foo' type=A of test.foo origin=null p2: GET_VAR 'b: B of test.foo declared in test.foo' type=B of test.foo origin=null FUN name:box visibility:public modality:FINAL <> () returnType:kotlin.String BLOCK_BODY VAR name:z type:test.Foo [val] - CONSTRUCTOR_CALL 'public constructor () [primary] declared in test.Foo' type=test.Foo origin=null + CONSTRUCTOR_CALL 'public constructor () declared in test.Foo' type=test.Foo origin=null : kotlin.String VAR name:foo type:test.Foo.Inner [val] - CALL 'public final fun foo (a: A of test.foo, b: B of test.foo, x: kotlin.Function2>): test.Foo.Inner [inline] declared in test' type=test.Foo.Inner origin=null + CALL 'public final fun foo (a: A of test.foo, b: B of test.foo, x: kotlin.Function2>): test.Foo.Inner declared in test' type=test.Foo.Inner origin=null : kotlin.String : kotlin.String a: CONST String type=kotlin.String value="O" b: CONST String type=kotlin.String value="K" - x: FUNCTION_REFERENCE 'public constructor (a: T of test.Foo, b: P of test.Foo.Inner) [primary] declared in test.Foo.Inner' type=kotlin.reflect.KFunction2> origin=null reflectionTarget= + x: FUNCTION_REFERENCE 'public constructor (a: T of test.Foo, b: P of test.Foo.Inner) declared in test.Foo.Inner' type=kotlin.reflect.KFunction2> origin=null reflectionTarget=

: kotlin.String - $this: GET_VAR 'val z: test.Foo [val] declared in test.box' type=test.Foo origin=null + $this: GET_VAR 'val z: test.Foo declared in test.box' type=test.Foo origin=null RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in test' - CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS + CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS $this: CALL 'public final fun (): T of test.Foo declared in test.Foo.Inner' type=kotlin.String origin=GET_PROPERTY - $this: GET_VAR 'val foo: test.Foo.Inner [val] declared in test.box' type=test.Foo.Inner origin=null + $this: GET_VAR 'val foo: test.Foo.Inner declared in test.box' type=test.Foo.Inner origin=null other: CALL 'public final fun (): P of test.Foo.Inner declared in test.Foo.Inner' type=kotlin.String origin=GET_PROPERTY - $this: GET_VAR 'val foo: test.Foo.Inner [val] declared in test.box' type=test.Foo.Inner origin=null + $this: GET_VAR 'val foo: test.Foo.Inner declared in test.box' type=test.Foo.Inner origin=null diff --git a/compiler/testData/ir/irText/expressions/callableReferences/caoWithAdaptationForSam.fir.ir.txt b/compiler/testData/ir/irText/expressions/callableReferences/caoWithAdaptationForSam.fir.ir.txt index a30761d3011..746e9e247e1 100644 --- a/compiler/testData/ir/irText/expressions/callableReferences/caoWithAdaptationForSam.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/callableReferences/caoWithAdaptationForSam.fir.ir.txt @@ -6,7 +6,7 @@ FILE fqName: fileName:/caoWithAdaptationForSam.kt VALUE_PARAMETER name:i index:0 type:kotlin.Int 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -26,26 +26,26 @@ FILE fqName: fileName:/caoWithAdaptationForSam.kt VALUE_PARAMETER name:i index:0 type:kotlin.Int 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 .IFoo + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IFoo $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 .IFoo + public open fun hashCode (): kotlin.Int declared in .IFoo $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 .IFoo + public open fun toString (): kotlin.String declared in .IFoo $this: VALUE_PARAMETER name: type:kotlin.Any CLASS OBJECT name:A modality:FINAL visibility:public superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.A CONSTRUCTOR visibility:private <> () returnType:.A [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:A modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -60,11 +60,11 @@ FILE fqName: fileName:/caoWithAdaptationForSam.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.B CONSTRUCTOR visibility:private <> () returnType:.B [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:B modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -79,7 +79,7 @@ FILE fqName: fileName:/caoWithAdaptationForSam.kt $receiver: VALUE_PARAMETER name: type:.A VALUE_PARAMETER name:i index:0 type:.IFoo BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun get (i: .IFoo): kotlin.Int [operator] declared in ' + RETURN type=kotlin.Nothing from='public final fun get (i: .IFoo): kotlin.Int declared in ' CONST Int type=kotlin.Int value=1 FUN name:set visibility:public modality:FINAL <> ($receiver:.A, i:.IFoo, newValue:kotlin.Int) returnType:kotlin.Unit [operator] $receiver: VALUE_PARAMETER name: type:.A @@ -90,7 +90,7 @@ FILE fqName: fileName:/caoWithAdaptationForSam.kt $receiver: VALUE_PARAMETER name: type:.B VALUE_PARAMETER name:i index:0 type:.IFoo BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun get (i: .IFoo): kotlin.Int [operator] declared in ' + RETURN type=kotlin.Nothing from='public final fun get (i: .IFoo): kotlin.Int declared in ' CONST Int type=kotlin.Int value=1 FUN name:set visibility:public modality:FINAL <> ($receiver:.B, i:.IFoo2, newValue:kotlin.Int) returnType:kotlin.Unit [operator] $receiver: VALUE_PARAMETER name: type:.B @@ -115,15 +115,15 @@ FILE fqName: fileName:/caoWithAdaptationForSam.kt CALL 'public final fun withVararg (vararg xs: kotlin.Int): kotlin.Int declared in ' type=kotlin.Int origin=null xs: VARARG type=kotlin.IntArray varargElementType=kotlin.Int GET_VAR 'p0: kotlin.Int declared in .test1.withVararg' type=kotlin.Int origin=null - CALL 'public final fun set (i: .IFoo, newValue: kotlin.Int): kotlin.Unit [operator] declared in ' type=kotlin.Unit origin=null - $receiver: GET_VAR 'val tmp_0: .A [val] declared in .test1' type=.A origin=null + CALL 'public final fun set (i: .IFoo, newValue: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=null + $receiver: GET_VAR 'val tmp_0: .A declared in .test1' type=.A origin=null i: TYPE_OP type=.IFoo origin=SAM_CONVERSION typeOperand=.IFoo - GET_VAR 'val tmp_1: kotlin.Function1 [val] declared in .test1' type=kotlin.Function1 origin=null - newValue: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: CALL 'public final fun get (i: .IFoo): kotlin.Int [operator] declared in ' type=kotlin.Int origin=null - $receiver: GET_VAR 'val tmp_0: .A [val] declared in .test1' type=.A origin=null + GET_VAR 'val tmp_1: kotlin.Function1 declared in .test1' type=kotlin.Function1 origin=null + newValue: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: CALL 'public final fun get (i: .IFoo): kotlin.Int declared in ' type=kotlin.Int origin=null + $receiver: GET_VAR 'val tmp_0: .A declared in .test1' type=.A origin=null i: TYPE_OP type=.IFoo origin=SAM_CONVERSION typeOperand=.IFoo - GET_VAR 'val tmp_1: kotlin.Function1 [val] declared in .test1' type=kotlin.Function1 origin=null + GET_VAR 'val tmp_1: kotlin.Function1 declared in .test1' type=kotlin.Function1 origin=null other: CONST Int type=kotlin.Int value=1 FUN name:test2 visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY @@ -138,15 +138,15 @@ FILE fqName: fileName:/caoWithAdaptationForSam.kt CALL 'public final fun withVararg (vararg xs: kotlin.Int): kotlin.Int declared in ' type=kotlin.Int origin=null xs: VARARG type=kotlin.IntArray varargElementType=kotlin.Int GET_VAR 'p0: kotlin.Int declared in .test2.withVararg' type=kotlin.Int origin=null - CALL 'public final fun set (i: .IFoo2, newValue: kotlin.Int): kotlin.Unit [operator] declared in ' type=kotlin.Unit origin=null - $receiver: GET_VAR 'val tmp_2: .B [val] declared in .test2' type=.B origin=null + CALL 'public final fun set (i: .IFoo2, newValue: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=null + $receiver: GET_VAR 'val tmp_2: .B declared in .test2' type=.B origin=null i: TYPE_OP type=.IFoo2 origin=SAM_CONVERSION typeOperand=.IFoo2 - GET_VAR 'val tmp_3: kotlin.Function1 [val] declared in .test2' type=kotlin.Function1 origin=null - newValue: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: CALL 'public final fun get (i: .IFoo): kotlin.Int [operator] declared in ' type=kotlin.Int origin=null - $receiver: GET_VAR 'val tmp_2: .B [val] declared in .test2' type=.B origin=null + GET_VAR 'val tmp_3: kotlin.Function1 declared in .test2' type=kotlin.Function1 origin=null + newValue: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: CALL 'public final fun get (i: .IFoo): kotlin.Int declared in ' type=kotlin.Int origin=null + $receiver: GET_VAR 'val tmp_2: .B declared in .test2' type=.B origin=null i: TYPE_OP type=.IFoo origin=SAM_CONVERSION typeOperand=.IFoo - GET_VAR 'val tmp_3: kotlin.Function1 [val] declared in .test2' type=kotlin.Function1 origin=null + GET_VAR 'val tmp_3: kotlin.Function1 declared in .test2' type=kotlin.Function1 origin=null other: CONST Int type=kotlin.Int value=1 FUN name:test3 visibility:public modality:FINAL <> (fn:kotlin.Function1) returnType:kotlin.Unit VALUE_PARAMETER name:fn index:0 type:kotlin.Function1 @@ -156,15 +156,15 @@ FILE fqName: fileName:/caoWithAdaptationForSam.kt GET_OBJECT 'CLASS OBJECT name:A modality:FINAL visibility:public superTypes:[kotlin.Any]' type=.A VAR IR_TEMPORARY_VARIABLE name:tmp_5 type:kotlin.Function1 [val] GET_VAR 'fn: kotlin.Function1 declared in .test3' type=kotlin.Function1 origin=null - CALL 'public final fun set (i: .IFoo, newValue: kotlin.Int): kotlin.Unit [operator] declared in ' type=kotlin.Unit origin=null - $receiver: GET_VAR 'val tmp_4: .A [val] declared in .test3' type=.A origin=null + CALL 'public final fun set (i: .IFoo, newValue: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=null + $receiver: GET_VAR 'val tmp_4: .A declared in .test3' type=.A origin=null i: TYPE_OP type=.IFoo origin=SAM_CONVERSION typeOperand=.IFoo - GET_VAR 'val tmp_5: kotlin.Function1 [val] declared in .test3' type=kotlin.Function1 origin=null - newValue: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: CALL 'public final fun get (i: .IFoo): kotlin.Int [operator] declared in ' type=kotlin.Int origin=null - $receiver: GET_VAR 'val tmp_4: .A [val] declared in .test3' type=.A origin=null + GET_VAR 'val tmp_5: kotlin.Function1 declared in .test3' type=kotlin.Function1 origin=null + newValue: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: CALL 'public final fun get (i: .IFoo): kotlin.Int declared in ' type=kotlin.Int origin=null + $receiver: GET_VAR 'val tmp_4: .A declared in .test3' type=.A origin=null i: TYPE_OP type=.IFoo origin=SAM_CONVERSION typeOperand=.IFoo - GET_VAR 'val tmp_5: kotlin.Function1 [val] declared in .test3' type=kotlin.Function1 origin=null + GET_VAR 'val tmp_5: kotlin.Function1 declared in .test3' type=kotlin.Function1 origin=null other: CONST Int type=kotlin.Int value=1 FUN name:test4 visibility:public modality:FINAL <> (fn:kotlin.Function1) returnType:kotlin.Unit VALUE_PARAMETER name:fn index:0 type:kotlin.Function1 @@ -179,13 +179,13 @@ FILE fqName: fileName:/caoWithAdaptationForSam.kt VAR IR_TEMPORARY_VARIABLE name:tmp_7 type:.IFoo [val] TYPE_OP type=.IFoo origin=IMPLICIT_CAST typeOperand=.IFoo GET_VAR 'fn: kotlin.Function1 declared in .test4' type=kotlin.Function1 origin=null - CALL 'public final fun set (i: .IFoo, newValue: kotlin.Int): kotlin.Unit [operator] declared in ' type=kotlin.Unit origin=null - $receiver: GET_VAR 'val tmp_6: .A [val] declared in .test4' type=.A origin=null - i: GET_VAR 'val tmp_7: .IFoo [val] declared in .test4' type=.IFoo origin=null - newValue: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: CALL 'public final fun get (i: .IFoo): kotlin.Int [operator] declared in ' type=kotlin.Int origin=null - $receiver: GET_VAR 'val tmp_6: .A [val] declared in .test4' type=.A origin=null - i: GET_VAR 'val tmp_7: .IFoo [val] declared in .test4' type=.IFoo origin=null + CALL 'public final fun set (i: .IFoo, newValue: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=null + $receiver: GET_VAR 'val tmp_6: .A declared in .test4' type=.A origin=null + i: GET_VAR 'val tmp_7: .IFoo declared in .test4' type=.IFoo origin=null + newValue: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: CALL 'public final fun get (i: .IFoo): kotlin.Int declared in ' type=kotlin.Int origin=null + $receiver: GET_VAR 'val tmp_6: .A declared in .test4' type=.A origin=null + i: GET_VAR 'val tmp_7: .IFoo declared in .test4' type=.IFoo origin=null other: CONST Int type=kotlin.Int value=1 FUN name:test5 visibility:public modality:FINAL <> (a:kotlin.Any) returnType:kotlin.Unit VALUE_PARAMETER name:a index:0 type:kotlin.Any @@ -199,15 +199,15 @@ FILE fqName: fileName:/caoWithAdaptationForSam.kt VAR IR_TEMPORARY_VARIABLE name:tmp_9 type:kotlin.Function1 [val] TYPE_OP type=kotlin.Function1 origin=IMPLICIT_CAST typeOperand=kotlin.Function1 GET_VAR 'a: kotlin.Any declared in .test5' type=kotlin.Any origin=null - CALL 'public final fun set (i: .IFoo, newValue: kotlin.Int): kotlin.Unit [operator] declared in ' type=kotlin.Unit origin=null - $receiver: GET_VAR 'val tmp_8: .A [val] declared in .test5' type=.A origin=null + CALL 'public final fun set (i: .IFoo, newValue: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=null + $receiver: GET_VAR 'val tmp_8: .A declared in .test5' type=.A origin=null i: TYPE_OP type=.IFoo origin=SAM_CONVERSION typeOperand=.IFoo - GET_VAR 'val tmp_9: kotlin.Function1 [val] declared in .test5' type=kotlin.Function1 origin=null - newValue: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: CALL 'public final fun get (i: .IFoo): kotlin.Int [operator] declared in ' type=kotlin.Int origin=null - $receiver: GET_VAR 'val tmp_8: .A [val] declared in .test5' type=.A origin=null + GET_VAR 'val tmp_9: kotlin.Function1 declared in .test5' type=kotlin.Function1 origin=null + newValue: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: CALL 'public final fun get (i: .IFoo): kotlin.Int declared in ' type=kotlin.Int origin=null + $receiver: GET_VAR 'val tmp_8: .A declared in .test5' type=.A origin=null i: TYPE_OP type=.IFoo origin=SAM_CONVERSION typeOperand=.IFoo - GET_VAR 'val tmp_9: kotlin.Function1 [val] declared in .test5' type=kotlin.Function1 origin=null + GET_VAR 'val tmp_9: kotlin.Function1 declared in .test5' type=kotlin.Function1 origin=null other: CONST Int type=kotlin.Int value=1 FUN name:test6 visibility:public modality:FINAL <> (a:kotlin.Any) returnType:kotlin.Unit VALUE_PARAMETER name:a index:0 type:kotlin.Any @@ -225,11 +225,11 @@ FILE fqName: fileName:/caoWithAdaptationForSam.kt VAR IR_TEMPORARY_VARIABLE name:tmp_11 type:kotlin.Function1 [val] TYPE_OP type=kotlin.Function1 origin=IMPLICIT_CAST typeOperand=kotlin.Function1 GET_VAR 'a: kotlin.Any declared in .test6' type=kotlin.Any origin=null - CALL 'public final fun set (i: .IFoo, newValue: kotlin.Int): kotlin.Unit [operator] declared in ' type=kotlin.Unit origin=null - $receiver: GET_VAR 'val tmp_10: .A [val] declared in .test6' type=.A origin=null - i: GET_VAR 'val tmp_11: kotlin.Function1 [val] declared in .test6' type=kotlin.Function1 origin=null - newValue: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: CALL 'public final fun get (i: .IFoo): kotlin.Int [operator] declared in ' type=kotlin.Int origin=null - $receiver: GET_VAR 'val tmp_10: .A [val] declared in .test6' type=.A origin=null - i: GET_VAR 'val tmp_11: kotlin.Function1 [val] declared in .test6' type=kotlin.Function1 origin=null + CALL 'public final fun set (i: .IFoo, newValue: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=null + $receiver: GET_VAR 'val tmp_10: .A declared in .test6' type=.A origin=null + i: GET_VAR 'val tmp_11: kotlin.Function1 declared in .test6' type=kotlin.Function1 origin=null + newValue: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: CALL 'public final fun get (i: .IFoo): kotlin.Int declared in ' type=kotlin.Int origin=null + $receiver: GET_VAR 'val tmp_10: .A declared in .test6' type=.A origin=null + i: GET_VAR 'val tmp_11: kotlin.Function1 declared in .test6' type=kotlin.Function1 origin=null other: CONST Int type=kotlin.Int value=1 diff --git a/compiler/testData/ir/irText/expressions/callableReferences/caoWithAdaptationForSam.ir.txt b/compiler/testData/ir/irText/expressions/callableReferences/caoWithAdaptationForSam.ir.txt index 640f58b385d..c98f7de8af5 100644 --- a/compiler/testData/ir/irText/expressions/callableReferences/caoWithAdaptationForSam.ir.txt +++ b/compiler/testData/ir/irText/expressions/callableReferences/caoWithAdaptationForSam.ir.txt @@ -6,7 +6,7 @@ FILE fqName: fileName:/caoWithAdaptationForSam.kt VALUE_PARAMETER name:i index:0 type:kotlin.Int 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -26,26 +26,26 @@ FILE fqName: fileName:/caoWithAdaptationForSam.kt VALUE_PARAMETER name:i index:0 type:kotlin.Int 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 .IFoo + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IFoo $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 .IFoo + public open fun hashCode (): kotlin.Int declared in .IFoo $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 .IFoo + public open fun toString (): kotlin.String declared in .IFoo $this: VALUE_PARAMETER name: type:kotlin.Any CLASS OBJECT name:A modality:FINAL visibility:public superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.A CONSTRUCTOR visibility:private <> () returnType:.A [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:A modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -60,11 +60,11 @@ FILE fqName: fileName:/caoWithAdaptationForSam.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.B CONSTRUCTOR visibility:private <> () returnType:.B [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:B modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -79,7 +79,7 @@ FILE fqName: fileName:/caoWithAdaptationForSam.kt $receiver: VALUE_PARAMETER name: type:.A VALUE_PARAMETER name:i index:0 type:.IFoo BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun get (i: .IFoo): kotlin.Int [operator] declared in ' + RETURN type=kotlin.Nothing from='public final fun get (i: .IFoo): kotlin.Int declared in ' CONST Int type=kotlin.Int value=1 FUN name:set visibility:public modality:FINAL <> ($receiver:.A, i:.IFoo, newValue:kotlin.Int) returnType:kotlin.Unit [operator] $receiver: VALUE_PARAMETER name: type:.A @@ -90,7 +90,7 @@ FILE fqName: fileName:/caoWithAdaptationForSam.kt $receiver: VALUE_PARAMETER name: type:.B VALUE_PARAMETER name:i index:0 type:.IFoo BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun get (i: .IFoo): kotlin.Int [operator] declared in ' + RETURN type=kotlin.Nothing from='public final fun get (i: .IFoo): kotlin.Int declared in ' CONST Int type=kotlin.Int value=1 FUN name:set visibility:public modality:FINAL <> ($receiver:.B, i:.IFoo2, newValue:kotlin.Int) returnType:kotlin.Unit [operator] $receiver: VALUE_PARAMETER name: type:.B @@ -118,13 +118,13 @@ FILE fqName: fileName:/caoWithAdaptationForSam.kt xs: VARARG type=kotlin.IntArray varargElementType=kotlin.Int GET_VAR 'p0: kotlin.Int declared in .test1.withVararg' type=kotlin.Int origin=null FUNCTION_REFERENCE 'local final fun withVararg (p0: kotlin.Int): kotlin.Unit declared in .test1' type=kotlin.Function1 origin=ADAPTED_FUNCTION_REFERENCE reflectionTarget=public final fun withVararg (vararg xs: kotlin.Int): kotlin.Int declared in - CALL 'public final fun set (i: .IFoo, newValue: kotlin.Int): kotlin.Unit [operator] declared in ' type=kotlin.Unit origin=PLUSEQ - $receiver: GET_VAR 'val tmp_0: .A [val] declared in .test1' type=.A origin=null - i: GET_VAR 'val tmp_1: .IFoo [val] declared in .test1' type=.IFoo origin=null - newValue: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ - $this: CALL 'public final fun get (i: .IFoo): kotlin.Int [operator] declared in ' type=kotlin.Int origin=PLUSEQ - $receiver: GET_VAR 'val tmp_0: .A [val] declared in .test1' type=.A origin=null - i: GET_VAR 'val tmp_1: .IFoo [val] declared in .test1' type=.IFoo origin=null + CALL 'public final fun set (i: .IFoo, newValue: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=PLUSEQ + $receiver: GET_VAR 'val tmp_0: .A declared in .test1' type=.A origin=null + i: GET_VAR 'val tmp_1: .IFoo declared in .test1' type=.IFoo origin=null + newValue: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ + $this: CALL 'public final fun get (i: .IFoo): kotlin.Int declared in ' type=kotlin.Int origin=PLUSEQ + $receiver: GET_VAR 'val tmp_0: .A declared in .test1' type=.A origin=null + i: GET_VAR 'val tmp_1: .IFoo declared in .test1' type=.IFoo origin=null other: CONST Int type=kotlin.Int value=1 FUN name:test2 visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY @@ -142,13 +142,13 @@ FILE fqName: fileName:/caoWithAdaptationForSam.kt xs: VARARG type=kotlin.IntArray varargElementType=kotlin.Int GET_VAR 'p0: kotlin.Int declared in .test2.withVararg' type=kotlin.Int origin=null FUNCTION_REFERENCE 'local final fun withVararg (p0: kotlin.Int): kotlin.Unit declared in .test2' type=kotlin.Function1 origin=ADAPTED_FUNCTION_REFERENCE reflectionTarget=public final fun withVararg (vararg xs: kotlin.Int): kotlin.Int declared in - CALL 'public final fun set (i: .IFoo2, newValue: kotlin.Int): kotlin.Unit [operator] declared in ' type=kotlin.Unit origin=PLUSEQ - $receiver: GET_VAR 'val tmp_2: .B [val] declared in .test2' type=.B origin=null - i: GET_VAR 'val tmp_3: .IFoo2 [val] declared in .test2' type=.IFoo2 origin=null - newValue: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ - $this: CALL 'public final fun get (i: .IFoo): kotlin.Int [operator] declared in ' type=kotlin.Int origin=PLUSEQ - $receiver: GET_VAR 'val tmp_2: .B [val] declared in .test2' type=.B origin=null - i: GET_VAR 'val tmp_3: .IFoo2 [val] declared in .test2' type=.IFoo2 origin=null + CALL 'public final fun set (i: .IFoo2, newValue: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=PLUSEQ + $receiver: GET_VAR 'val tmp_2: .B declared in .test2' type=.B origin=null + i: GET_VAR 'val tmp_3: .IFoo2 declared in .test2' type=.IFoo2 origin=null + newValue: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ + $this: CALL 'public final fun get (i: .IFoo): kotlin.Int declared in ' type=kotlin.Int origin=PLUSEQ + $receiver: GET_VAR 'val tmp_2: .B declared in .test2' type=.B origin=null + i: GET_VAR 'val tmp_3: .IFoo2 declared in .test2' type=.IFoo2 origin=null other: CONST Int type=kotlin.Int value=1 FUN name:test3 visibility:public modality:FINAL <> (fn:kotlin.Function1) returnType:kotlin.Unit VALUE_PARAMETER name:fn index:0 type:kotlin.Function1 @@ -159,13 +159,13 @@ FILE fqName: fileName:/caoWithAdaptationForSam.kt VAR IR_TEMPORARY_VARIABLE name:tmp_5 type:.IFoo [val] TYPE_OP type=.IFoo origin=SAM_CONVERSION typeOperand=.IFoo GET_VAR 'fn: kotlin.Function1 declared in .test3' type=kotlin.Function1 origin=null - CALL 'public final fun set (i: .IFoo, newValue: kotlin.Int): kotlin.Unit [operator] declared in ' type=kotlin.Unit origin=PLUSEQ - $receiver: GET_VAR 'val tmp_4: .A [val] declared in .test3' type=.A origin=null - i: GET_VAR 'val tmp_5: .IFoo [val] declared in .test3' type=.IFoo origin=null - newValue: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ - $this: CALL 'public final fun get (i: .IFoo): kotlin.Int [operator] declared in ' type=kotlin.Int origin=PLUSEQ - $receiver: GET_VAR 'val tmp_4: .A [val] declared in .test3' type=.A origin=null - i: GET_VAR 'val tmp_5: .IFoo [val] declared in .test3' type=.IFoo origin=null + CALL 'public final fun set (i: .IFoo, newValue: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=PLUSEQ + $receiver: GET_VAR 'val tmp_4: .A declared in .test3' type=.A origin=null + i: GET_VAR 'val tmp_5: .IFoo declared in .test3' type=.IFoo origin=null + newValue: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ + $this: CALL 'public final fun get (i: .IFoo): kotlin.Int declared in ' type=kotlin.Int origin=PLUSEQ + $receiver: GET_VAR 'val tmp_4: .A declared in .test3' type=.A origin=null + i: GET_VAR 'val tmp_5: .IFoo declared in .test3' type=.IFoo origin=null other: CONST Int type=kotlin.Int value=1 FUN name:test4 visibility:public modality:FINAL <> (fn:kotlin.Function1) returnType:kotlin.Unit VALUE_PARAMETER name:fn index:0 type:kotlin.Function1 @@ -180,15 +180,15 @@ FILE fqName: fileName:/caoWithAdaptationForSam.kt GET_OBJECT 'CLASS OBJECT name:A modality:FINAL visibility:public superTypes:[kotlin.Any]' type=.A VAR IR_TEMPORARY_VARIABLE name:tmp_7 type:kotlin.Function1 [val] GET_VAR 'fn: kotlin.Function1 declared in .test4' type=kotlin.Function1 origin=null - CALL 'public final fun set (i: .IFoo, newValue: kotlin.Int): kotlin.Unit [operator] declared in ' type=kotlin.Unit origin=PLUSEQ - $receiver: GET_VAR 'val tmp_6: .A [val] declared in .test4' type=.A origin=null + CALL 'public final fun set (i: .IFoo, newValue: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=PLUSEQ + $receiver: GET_VAR 'val tmp_6: .A declared in .test4' type=.A origin=null i: TYPE_OP type=.IFoo origin=IMPLICIT_CAST typeOperand=.IFoo - GET_VAR 'val tmp_7: kotlin.Function1 [val] declared in .test4' type=kotlin.Function1 origin=null - newValue: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ - $this: CALL 'public final fun get (i: .IFoo): kotlin.Int [operator] declared in ' type=kotlin.Int origin=PLUSEQ - $receiver: GET_VAR 'val tmp_6: .A [val] declared in .test4' type=.A origin=null + GET_VAR 'val tmp_7: kotlin.Function1 declared in .test4' type=kotlin.Function1 origin=null + newValue: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ + $this: CALL 'public final fun get (i: .IFoo): kotlin.Int declared in ' type=kotlin.Int origin=PLUSEQ + $receiver: GET_VAR 'val tmp_6: .A declared in .test4' type=.A origin=null i: TYPE_OP type=.IFoo origin=IMPLICIT_CAST typeOperand=.IFoo - GET_VAR 'val tmp_7: kotlin.Function1 [val] declared in .test4' type=kotlin.Function1 origin=null + GET_VAR 'val tmp_7: kotlin.Function1 declared in .test4' type=kotlin.Function1 origin=null other: CONST Int type=kotlin.Int value=1 FUN name:test5 visibility:public modality:FINAL <> (a:kotlin.Any) returnType:kotlin.Unit VALUE_PARAMETER name:a index:0 type:kotlin.Any @@ -203,13 +203,13 @@ FILE fqName: fileName:/caoWithAdaptationForSam.kt TYPE_OP type=.IFoo origin=SAM_CONVERSION typeOperand=.IFoo TYPE_OP type=kotlin.Function1 origin=IMPLICIT_CAST typeOperand=kotlin.Function1 GET_VAR 'a: kotlin.Any declared in .test5' type=kotlin.Any origin=null - CALL 'public final fun set (i: .IFoo, newValue: kotlin.Int): kotlin.Unit [operator] declared in ' type=kotlin.Unit origin=PLUSEQ - $receiver: GET_VAR 'val tmp_8: .A [val] declared in .test5' type=.A origin=null - i: GET_VAR 'val tmp_9: .IFoo [val] declared in .test5' type=.IFoo origin=null - newValue: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ - $this: CALL 'public final fun get (i: .IFoo): kotlin.Int [operator] declared in ' type=kotlin.Int origin=PLUSEQ - $receiver: GET_VAR 'val tmp_8: .A [val] declared in .test5' type=.A origin=null - i: GET_VAR 'val tmp_9: .IFoo [val] declared in .test5' type=.IFoo origin=null + CALL 'public final fun set (i: .IFoo, newValue: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=PLUSEQ + $receiver: GET_VAR 'val tmp_8: .A declared in .test5' type=.A origin=null + i: GET_VAR 'val tmp_9: .IFoo declared in .test5' type=.IFoo origin=null + newValue: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ + $this: CALL 'public final fun get (i: .IFoo): kotlin.Int declared in ' type=kotlin.Int origin=PLUSEQ + $receiver: GET_VAR 'val tmp_8: .A declared in .test5' type=.A origin=null + i: GET_VAR 'val tmp_9: .IFoo declared in .test5' type=.IFoo origin=null other: CONST Int type=kotlin.Int value=1 FUN name:test6 visibility:public modality:FINAL <> (a:kotlin.Any) returnType:kotlin.Unit VALUE_PARAMETER name:a index:0 type:kotlin.Any @@ -225,13 +225,13 @@ FILE fqName: fileName:/caoWithAdaptationForSam.kt GET_OBJECT 'CLASS OBJECT name:A modality:FINAL visibility:public superTypes:[kotlin.Any]' type=.A VAR IR_TEMPORARY_VARIABLE name:tmp_11 type:kotlin.Any [val] GET_VAR 'a: kotlin.Any declared in .test6' type=kotlin.Any origin=null - CALL 'public final fun set (i: .IFoo, newValue: kotlin.Int): kotlin.Unit [operator] declared in ' type=kotlin.Unit origin=PLUSEQ - $receiver: GET_VAR 'val tmp_10: .A [val] declared in .test6' type=.A origin=null + CALL 'public final fun set (i: .IFoo, newValue: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=PLUSEQ + $receiver: GET_VAR 'val tmp_10: .A declared in .test6' type=.A origin=null i: TYPE_OP type=.IFoo origin=IMPLICIT_CAST typeOperand=.IFoo - GET_VAR 'val tmp_11: kotlin.Any [val] declared in .test6' type=kotlin.Any origin=null - newValue: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ - $this: CALL 'public final fun get (i: .IFoo): kotlin.Int [operator] declared in ' type=kotlin.Int origin=PLUSEQ - $receiver: GET_VAR 'val tmp_10: .A [val] declared in .test6' type=.A origin=null + GET_VAR 'val tmp_11: kotlin.Any declared in .test6' type=kotlin.Any origin=null + newValue: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ + $this: CALL 'public final fun get (i: .IFoo): kotlin.Int declared in ' type=kotlin.Int origin=PLUSEQ + $receiver: GET_VAR 'val tmp_10: .A declared in .test6' type=.A origin=null i: TYPE_OP type=.IFoo origin=IMPLICIT_CAST typeOperand=.IFoo - GET_VAR 'val tmp_11: kotlin.Any [val] declared in .test6' type=kotlin.Any origin=null + GET_VAR 'val tmp_11: kotlin.Any declared in .test6' type=kotlin.Any origin=null other: CONST Int type=kotlin.Int value=1 diff --git a/compiler/testData/ir/irText/expressions/callableReferences/constructorWithAdaptedArguments.fir.ir.txt b/compiler/testData/ir/irText/expressions/callableReferences/constructorWithAdaptedArguments.fir.ir.txt index 82ebbb6d5a9..e2f3fa40714 100644 --- a/compiler/testData/ir/irText/expressions/callableReferences/constructorWithAdaptedArguments.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/callableReferences/constructorWithAdaptedArguments.fir.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/constructorWithAdaptedArguments.kt VALUE_PARAMETER name:fn index:0 type:kotlin.Function1 BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun use (fn: kotlin.Function1): kotlin.Any declared in ' - CALL 'public abstract fun invoke (p1: P1 of kotlin.Function1): R of kotlin.Function1 [operator] declared in kotlin.Function1' type=kotlin.Any origin=INVOKE + CALL 'public abstract fun invoke (p1: P1 of kotlin.Function1): R of kotlin.Function1 declared in kotlin.Function1' type=kotlin.Any origin=INVOKE $this: GET_VAR 'fn: kotlin.Function1 declared in .use' type=kotlin.Function1 origin=VARIABLE_AS_FUNCTION p1: CONST Int type=kotlin.Int value=42 CLASS CLASS name:C modality:FINAL visibility:public superTypes:[kotlin.Any] @@ -11,11 +11,11 @@ FILE fqName: fileName:/constructorWithAdaptedArguments.kt CONSTRUCTOR visibility:public <> (xs:kotlin.IntArray) returnType:.C [primary] VALUE_PARAMETER name:xs index:0 type:kotlin.IntArray varargElementType:kotlin.Int [vararg] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -30,7 +30,7 @@ FILE fqName: fileName:/constructorWithAdaptedArguments.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Outer CONSTRUCTOR visibility:public <> () returnType:.Outer [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Outer modality:FINAL visibility:public superTypes:[kotlin.Any]' CLASS CLASS name:Inner modality:FINAL visibility:public [inner] superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Outer.Inner @@ -38,11 +38,11 @@ FILE fqName: fileName:/constructorWithAdaptedArguments.kt $outer: VALUE_PARAMETER name: type:.Outer VALUE_PARAMETER name:xs index:0 type:kotlin.IntArray varargElementType:kotlin.Int [vararg] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Inner modality:FINAL visibility:public [inner] 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -55,7 +55,7 @@ FILE fqName: fileName:/constructorWithAdaptedArguments.kt $this: VALUE_PARAMETER name: type: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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -75,7 +75,7 @@ FILE fqName: fileName:/constructorWithAdaptedArguments.kt VALUE_PARAMETER ADAPTER_PARAMETER_FOR_CALLABLE_REFERENCE name:p0 index:0 type:kotlin.Int BLOCK_BODY RETURN type=kotlin.Nothing from='local final fun (p0: kotlin.Int): .C declared in .testConstructor' - CONSTRUCTOR_CALL 'public constructor (vararg xs: kotlin.Int) [primary] declared in .C' type=.C origin=null + CONSTRUCTOR_CALL 'public constructor (vararg xs: kotlin.Int) declared in .C' type=.C origin=null xs: VARARG type=kotlin.IntArray varargElementType=kotlin.Int GET_VAR 'p0: kotlin.Int declared in .testConstructor.' type=kotlin.Int origin=null FUN name:testInnerClassConstructor visibility:public modality:FINAL <> (outer:.Outer) returnType:kotlin.Any @@ -89,7 +89,7 @@ FILE fqName: fileName:/constructorWithAdaptedArguments.kt VALUE_PARAMETER ADAPTER_PARAMETER_FOR_CALLABLE_REFERENCE name:p0 index:0 type:kotlin.Int BLOCK_BODY RETURN type=kotlin.Nothing from='local final fun (p0: kotlin.Int): .Outer.Inner declared in .testInnerClassConstructor' - CONSTRUCTOR_CALL 'public constructor (vararg xs: kotlin.Int) [primary] declared in .Outer.Inner' type=.Outer.Inner origin=null + CONSTRUCTOR_CALL 'public constructor (vararg xs: kotlin.Int) declared in .Outer.Inner' type=.Outer.Inner origin=null $outer: GET_VAR 'receiver: .Outer declared in .testInnerClassConstructor.' type=.Outer origin=ADAPTED_FUNCTION_REFERENCE xs: VARARG type=kotlin.IntArray varargElementType=kotlin.Int GET_VAR 'p0: kotlin.Int declared in .testInnerClassConstructor.' type=kotlin.Int origin=null @@ -105,9 +105,9 @@ FILE fqName: fileName:/constructorWithAdaptedArguments.kt VALUE_PARAMETER ADAPTER_PARAMETER_FOR_CALLABLE_REFERENCE name:p0 index:0 type:kotlin.Int BLOCK_BODY RETURN type=kotlin.Nothing from='local final fun (p0: kotlin.Int): .Outer.Inner declared in .testInnerClassConstructorCapturingOuter' - CONSTRUCTOR_CALL 'public constructor (vararg xs: kotlin.Int) [primary] declared in .Outer.Inner' type=.Outer.Inner origin=null + CONSTRUCTOR_CALL 'public constructor (vararg xs: kotlin.Int) declared in .Outer.Inner' type=.Outer.Inner origin=null $outer: GET_VAR 'receiver: .Outer declared in .testInnerClassConstructorCapturingOuter.' type=.Outer origin=ADAPTED_FUNCTION_REFERENCE xs: VARARG type=kotlin.IntArray varargElementType=kotlin.Int GET_VAR 'p0: kotlin.Int declared in .testInnerClassConstructorCapturingOuter.' type=kotlin.Int origin=null FUNCTION_REFERENCE 'local final fun (p0: kotlin.Int): .Outer.Inner declared in .testInnerClassConstructorCapturingOuter' type=kotlin.Function1.Outer.Inner> origin=ADAPTED_FUNCTION_REFERENCE reflectionTarget=null - $receiver: CONSTRUCTOR_CALL 'public constructor () [primary] declared in .Outer' type=.Outer origin=null + $receiver: CONSTRUCTOR_CALL 'public constructor () declared in .Outer' type=.Outer origin=null diff --git a/compiler/testData/ir/irText/expressions/callableReferences/constructorWithAdaptedArguments.ir.txt b/compiler/testData/ir/irText/expressions/callableReferences/constructorWithAdaptedArguments.ir.txt index f6b50e40710..037900c3a6e 100644 --- a/compiler/testData/ir/irText/expressions/callableReferences/constructorWithAdaptedArguments.ir.txt +++ b/compiler/testData/ir/irText/expressions/callableReferences/constructorWithAdaptedArguments.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/constructorWithAdaptedArguments.kt VALUE_PARAMETER name:fn index:0 type:kotlin.Function1 BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun use (fn: kotlin.Function1): kotlin.Any declared in ' - CALL 'public abstract fun invoke (p1: P1 of kotlin.Function1): R of kotlin.Function1 [operator] declared in kotlin.Function1' type=kotlin.Any origin=INVOKE + CALL 'public abstract fun invoke (p1: P1 of kotlin.Function1): R of kotlin.Function1 declared in kotlin.Function1' type=kotlin.Any origin=INVOKE $this: GET_VAR 'fn: kotlin.Function1 declared in .use' type=kotlin.Function1 origin=VARIABLE_AS_FUNCTION p1: CONST Int type=kotlin.Int value=42 CLASS CLASS name:C modality:FINAL visibility:public superTypes:[kotlin.Any] @@ -11,11 +11,11 @@ FILE fqName: fileName:/constructorWithAdaptedArguments.kt CONSTRUCTOR visibility:public <> (xs:kotlin.IntArray) returnType:.C [primary] VALUE_PARAMETER name:xs index:0 type:kotlin.IntArray varargElementType:kotlin.Int [vararg] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -30,7 +30,7 @@ FILE fqName: fileName:/constructorWithAdaptedArguments.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Outer CONSTRUCTOR visibility:public <> () returnType:.Outer [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Outer modality:FINAL visibility:public superTypes:[kotlin.Any]' CLASS CLASS name:Inner modality:FINAL visibility:public [inner] superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Outer.Inner @@ -38,11 +38,11 @@ FILE fqName: fileName:/constructorWithAdaptedArguments.kt $outer: VALUE_PARAMETER name: type:.Outer VALUE_PARAMETER name:xs index:0 type:kotlin.IntArray varargElementType:kotlin.Int [vararg] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Inner modality:FINAL visibility:public [inner] 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -55,7 +55,7 @@ FILE fqName: fileName:/constructorWithAdaptedArguments.kt $this: VALUE_PARAMETER name: type: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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -75,10 +75,10 @@ FILE fqName: fileName:/constructorWithAdaptedArguments.kt VALUE_PARAMETER ADAPTER_PARAMETER_FOR_CALLABLE_REFERENCE name:p0 index:0 type:kotlin.Int BLOCK_BODY RETURN type=kotlin.Nothing from='local final fun (p0: kotlin.Int): .C declared in .testConstructor' - CONSTRUCTOR_CALL 'public constructor (vararg xs: kotlin.Int) [primary] declared in .C' type=.C origin=null + CONSTRUCTOR_CALL 'public constructor (vararg xs: kotlin.Int) declared in .C' type=.C origin=null xs: VARARG type=kotlin.IntArray varargElementType=kotlin.Int GET_VAR 'p0: kotlin.Int declared in .testConstructor.' type=kotlin.Int origin=null - FUNCTION_REFERENCE 'local final fun (p0: kotlin.Int): .C declared in .testConstructor' type=kotlin.Function1.C> origin=ADAPTED_FUNCTION_REFERENCE reflectionTarget=public constructor (vararg xs: kotlin.Int) [primary] declared in .C + FUNCTION_REFERENCE 'local final fun (p0: kotlin.Int): .C declared in .testConstructor' type=kotlin.Function1.C> origin=ADAPTED_FUNCTION_REFERENCE reflectionTarget=public constructor (vararg xs: kotlin.Int) declared in .C FUN name:testInnerClassConstructor visibility:public modality:FINAL <> (outer:.Outer) returnType:kotlin.Any VALUE_PARAMETER name:outer index:0 type:.Outer BLOCK_BODY @@ -90,11 +90,11 @@ FILE fqName: fileName:/constructorWithAdaptedArguments.kt VALUE_PARAMETER ADAPTER_PARAMETER_FOR_CALLABLE_REFERENCE name:p0 index:0 type:kotlin.Int BLOCK_BODY RETURN type=kotlin.Nothing from='local final fun (p0: kotlin.Int): .Outer.Inner declared in .testInnerClassConstructor' - CONSTRUCTOR_CALL 'public constructor (vararg xs: kotlin.Int) [primary] declared in .Outer.Inner' type=.Outer.Inner origin=null + CONSTRUCTOR_CALL 'public constructor (vararg xs: kotlin.Int) declared in .Outer.Inner' type=.Outer.Inner origin=null $outer: GET_VAR 'receiver: .Outer declared in .testInnerClassConstructor.' type=.Outer origin=ADAPTED_FUNCTION_REFERENCE xs: VARARG type=kotlin.IntArray varargElementType=kotlin.Int GET_VAR 'p0: kotlin.Int declared in .testInnerClassConstructor.' type=kotlin.Int origin=null - FUNCTION_REFERENCE 'local final fun (p0: kotlin.Int): .Outer.Inner declared in .testInnerClassConstructor' type=kotlin.Function1.Outer.Inner> origin=ADAPTED_FUNCTION_REFERENCE reflectionTarget=public constructor (vararg xs: kotlin.Int) [primary] declared in .Outer.Inner + FUNCTION_REFERENCE 'local final fun (p0: kotlin.Int): .Outer.Inner declared in .testInnerClassConstructor' type=kotlin.Function1.Outer.Inner> origin=ADAPTED_FUNCTION_REFERENCE reflectionTarget=public constructor (vararg xs: kotlin.Int) declared in .Outer.Inner $receiver: GET_VAR 'outer: .Outer declared in .testInnerClassConstructor' type=.Outer origin=null FUN name:testInnerClassConstructorCapturingOuter visibility:public modality:FINAL <> () returnType:kotlin.Any BLOCK_BODY @@ -106,9 +106,9 @@ FILE fqName: fileName:/constructorWithAdaptedArguments.kt VALUE_PARAMETER ADAPTER_PARAMETER_FOR_CALLABLE_REFERENCE name:p0 index:0 type:kotlin.Int BLOCK_BODY RETURN type=kotlin.Nothing from='local final fun (p0: kotlin.Int): .Outer.Inner declared in .testInnerClassConstructorCapturingOuter' - CONSTRUCTOR_CALL 'public constructor (vararg xs: kotlin.Int) [primary] declared in .Outer.Inner' type=.Outer.Inner origin=null + CONSTRUCTOR_CALL 'public constructor (vararg xs: kotlin.Int) declared in .Outer.Inner' type=.Outer.Inner origin=null $outer: GET_VAR 'receiver: .Outer declared in .testInnerClassConstructorCapturingOuter.' type=.Outer origin=ADAPTED_FUNCTION_REFERENCE xs: VARARG type=kotlin.IntArray varargElementType=kotlin.Int GET_VAR 'p0: kotlin.Int declared in .testInnerClassConstructorCapturingOuter.' type=kotlin.Int origin=null - FUNCTION_REFERENCE 'local final fun (p0: kotlin.Int): .Outer.Inner declared in .testInnerClassConstructorCapturingOuter' type=kotlin.Function1.Outer.Inner> origin=ADAPTED_FUNCTION_REFERENCE reflectionTarget=public constructor (vararg xs: kotlin.Int) [primary] declared in .Outer.Inner - $receiver: CONSTRUCTOR_CALL 'public constructor () [primary] declared in .Outer' type=.Outer origin=null + FUNCTION_REFERENCE 'local final fun (p0: kotlin.Int): .Outer.Inner declared in .testInnerClassConstructorCapturingOuter' type=kotlin.Function1.Outer.Inner> origin=ADAPTED_FUNCTION_REFERENCE reflectionTarget=public constructor (vararg xs: kotlin.Int) declared in .Outer.Inner + $receiver: CONSTRUCTOR_CALL 'public constructor () declared in .Outer' type=.Outer origin=null diff --git a/compiler/testData/ir/irText/expressions/callableReferences/funWithDefaultParametersAsKCallableStar.ir.txt b/compiler/testData/ir/irText/expressions/callableReferences/funWithDefaultParametersAsKCallableStar.ir.txt index 025a50c0133..1609ef6a9a6 100644 --- a/compiler/testData/ir/irText/expressions/callableReferences/funWithDefaultParametersAsKCallableStar.ir.txt +++ b/compiler/testData/ir/irText/expressions/callableReferences/funWithDefaultParametersAsKCallableStar.ir.txt @@ -26,7 +26,7 @@ FILE fqName: fileName:/funWithDefaultParametersAsKCallableStar.kt EXPRESSION_BODY CONST String type=kotlin.String value="" BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.String visibility:private [final] @@ -41,7 +41,7 @@ FILE fqName: fileName:/funWithDefaultParametersAsKCallableStar.kt receiver: GET_VAR ': .C declared in .C.' type=.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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -70,4 +70,4 @@ FILE fqName: fileName:/funWithDefaultParametersAsKCallableStar.kt FUN name:testCtorStar visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY CALL 'public final fun useKCallableStar (fn: kotlin.reflect.KCallable<*>): kotlin.Unit declared in ' type=kotlin.Unit origin=null - fn: FUNCTION_REFERENCE 'public constructor (x: kotlin.String) [primary] declared in .C' type=kotlin.reflect.KFunction1.C> origin=null reflectionTarget= + fn: FUNCTION_REFERENCE 'public constructor (x: kotlin.String) declared in .C' type=kotlin.reflect.KFunction1.C> origin=null reflectionTarget= diff --git a/compiler/testData/ir/irText/expressions/callableReferences/genericLocalClassConstructorReference.fir.ir.txt b/compiler/testData/ir/irText/expressions/callableReferences/genericLocalClassConstructorReference.fir.ir.txt index 91a4e9641e2..b79a4dd247f 100644 --- a/compiler/testData/ir/irText/expressions/callableReferences/genericLocalClassConstructorReference.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/callableReferences/genericLocalClassConstructorReference.fir.ir.txt @@ -5,7 +5,7 @@ FILE fqName: fileName:/genericLocalClassConstructorReference.kt CONSTRUCTOR visibility:public <> (ll:LL of .L) returnType:.L.L> [primary] VALUE_PARAMETER name:ll index:0 type:LL of .L BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:L modality:OPEN visibility:public superTypes:[kotlin.Any]' PROPERTY name:ll visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:ll type:LL of .L visibility:private [final] @@ -20,7 +20,7 @@ FILE fqName: fileName:/genericLocalClassConstructorReference.kt receiver: GET_VAR ': .L.L> declared in .L.' type=.L.L> 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -37,7 +37,7 @@ FILE fqName: fileName:/genericLocalClassConstructorReference.kt CONSTRUCTOR visibility:public <> (rt:T of .Rec) returnType:.Rec.Rec> [primary] VALUE_PARAMETER name:rt index:0 type:T of .Rec BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Rec modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:rt visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:rt type:T of .Rec visibility:private [final] @@ -52,7 +52,7 @@ FILE fqName: fileName:/genericLocalClassConstructorReference.kt receiver: GET_VAR ': .Rec.Rec> declared in .Rec.' type=.Rec.Rec> 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -76,7 +76,7 @@ FILE fqName: fileName:/genericLocalClassConstructorReference.kt VALUE_PARAMETER name:lt index:0 type:LT of ..PLocal VALUE_PARAMETER name:pt index:1 type:PT of . BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor (ll: LL of .L) [primary] declared in .L' + DELEGATING_CONSTRUCTOR_CALL 'public constructor (ll: LL of .L) declared in .L' : LT of ..PLocal ll: GET_VAR 'lt: LT of ..PLocal declared in ..PLocal.' type=LT of ..PLocal origin=null INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:PLocal modality:FINAL visibility:local superTypes:[.L..PLocal>]' @@ -93,7 +93,7 @@ FILE fqName: fileName:/genericLocalClassConstructorReference.kt receiver: GET_VAR ': ..PLocal..PLocal, PT of .> declared in ..PLocal.' type=..PLocal..PLocal, PT of .> origin=null PROPERTY FAKE_OVERRIDE name:ll visibility:public modality:FINAL [fake_override,val] overridden: - public final ll: LL of .L [val] + public final ll: LL of .L FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.L.L>) returnType:LT of ..PLocal [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ll visibility:public modality:FINAL [fake_override,val] overridden: @@ -101,16 +101,16 @@ FILE fqName: fileName:/genericLocalClassConstructorReference.kt $this: VALUE_PARAMETER name: type:.L.L> 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 .L + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .L $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 .L + public open fun hashCode (): kotlin.Int declared in .L $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 .L + public open fun toString (): kotlin.String declared in .L $this: VALUE_PARAMETER name: type:kotlin.Any RETURN type=kotlin.Nothing from='public final fun (): .L.> declared in ' CALL 'public final fun foo2 (t1: T1 of .foo2, t2: T2 of .foo2, bb: kotlin.Function2.foo2, T2 of .foo2, R of .foo2>): R of .foo2 declared in ' type=..PLocal., PT of .> origin=null @@ -121,7 +121,7 @@ FILE fqName: fileName:/genericLocalClassConstructorReference.kt $this: GET_VAR ': .Rec.> declared in .' type=.Rec.> origin=null t2: CALL 'public final fun (): T of .Rec declared in .Rec' type=PT of . origin=GET_PROPERTY $this: GET_VAR ': .Rec.> declared in .' type=.Rec.> origin=null - bb: FUNCTION_REFERENCE 'public constructor (lt: LT of ..PLocal, pt: PT of .) [primary] declared in ..PLocal' type=kotlin.reflect.KFunction2., PT of ., ..PLocal., PT of .>> origin=null reflectionTarget= + bb: FUNCTION_REFERENCE 'public constructor (lt: LT of ..PLocal, pt: PT of .) declared in ..PLocal' type=kotlin.reflect.KFunction2., PT of ., ..PLocal., PT of .>> origin=null reflectionTarget= : PT of . FUN name:fn visibility:public modality:FINAL ($receiver:.Rec.fn>) returnType:.L.fn> TYPE_PARAMETER name:FT index:0 variance: superTypes:[kotlin.Any?] reified:false @@ -134,7 +134,7 @@ FILE fqName: fileName:/genericLocalClassConstructorReference.kt VALUE_PARAMETER name:lt index:0 type:LT of .fn.FLocal VALUE_PARAMETER name:pt index:1 type:FT of .fn BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor (ll: LL of .L) [primary] declared in .L' + DELEGATING_CONSTRUCTOR_CALL 'public constructor (ll: LL of .L) declared in .L' : LT of .fn.FLocal ll: GET_VAR 'lt: LT of .fn.FLocal declared in .fn.FLocal.' type=LT of .fn.FLocal origin=null INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:FLocal modality:FINAL visibility:local superTypes:[.L.fn.FLocal>]' @@ -151,7 +151,7 @@ FILE fqName: fileName:/genericLocalClassConstructorReference.kt receiver: GET_VAR ': .fn.FLocal.fn.FLocal, FT of .fn> declared in .fn.FLocal.' type=.fn.FLocal.fn.FLocal, FT of .fn> origin=null PROPERTY FAKE_OVERRIDE name:ll visibility:public modality:FINAL [fake_override,val] overridden: - public final ll: LL of .L [val] + public final ll: LL of .L FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.L.L>) returnType:LT of .fn.FLocal [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ll visibility:public modality:FINAL [fake_override,val] overridden: @@ -159,16 +159,16 @@ FILE fqName: fileName:/genericLocalClassConstructorReference.kt $this: VALUE_PARAMETER name: type:.L.L> 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 .L + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .L $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 .L + public open fun hashCode (): kotlin.Int declared in .L $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 .L + public open fun toString (): kotlin.String declared in .L $this: VALUE_PARAMETER name: type:kotlin.Any RETURN type=kotlin.Nothing from='public final fun fn (): .L.fn> declared in ' CALL 'public final fun foo2 (t1: T1 of .foo2, t2: T2 of .foo2, bb: kotlin.Function2.foo2, T2 of .foo2, R of .foo2>): R of .foo2 declared in ' type=.fn.FLocal.fn, FT of .fn> origin=null @@ -179,7 +179,7 @@ FILE fqName: fileName:/genericLocalClassConstructorReference.kt $this: GET_VAR ': .Rec.fn> declared in .fn' type=.Rec.fn> origin=null t2: CALL 'public final fun (): T of .Rec declared in .Rec' type=FT of .fn origin=GET_PROPERTY $this: GET_VAR ': .Rec.fn> declared in .fn' type=.Rec.fn> origin=null - bb: FUNCTION_REFERENCE 'public constructor (lt: LT of .fn.FLocal, pt: FT of .fn) [primary] declared in .fn.FLocal' type=kotlin.reflect.KFunction2.fn, FT of .fn, .fn.FLocal.fn, FT of .fn>> origin=null reflectionTarget= + bb: FUNCTION_REFERENCE 'public constructor (lt: LT of .fn.FLocal, pt: FT of .fn) declared in .fn.FLocal' type=kotlin.reflect.KFunction2.fn, FT of .fn, .fn.FLocal.fn, FT of .fn>> origin=null reflectionTarget= : FT of .fn FUN name:foo2 visibility:public modality:FINAL (t1:T1 of .foo2, t2:T2 of .foo2, bb:kotlin.Function2.foo2, T2 of .foo2, R of .foo2>) returnType:R of .foo2 TYPE_PARAMETER name:T1 index:0 variance: superTypes:[kotlin.Any?] reified:false @@ -190,7 +190,7 @@ FILE fqName: fileName:/genericLocalClassConstructorReference.kt VALUE_PARAMETER name:bb index:2 type:kotlin.Function2.foo2, T2 of .foo2, R of .foo2> BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun foo2 (t1: T1 of .foo2, t2: T2 of .foo2, bb: kotlin.Function2.foo2, T2 of .foo2, R of .foo2>): R of .foo2 declared in ' - CALL 'public abstract fun invoke (p1: P1 of kotlin.Function2, p2: P2 of kotlin.Function2): R of kotlin.Function2 [operator] declared in kotlin.Function2' type=R of .foo2 origin=INVOKE + CALL 'public abstract fun invoke (p1: P1 of kotlin.Function2, p2: P2 of kotlin.Function2): R of kotlin.Function2 declared in kotlin.Function2' type=R of .foo2 origin=INVOKE $this: GET_VAR 'bb: kotlin.Function2.foo2, T2 of .foo2, R of .foo2> declared in .foo2' type=kotlin.Function2.foo2, T2 of .foo2, R of .foo2> origin=VARIABLE_AS_FUNCTION p1: GET_VAR 't1: T1 of .foo2 declared in .foo2' type=T1 of .foo2 origin=null p2: GET_VAR 't2: T2 of .foo2 declared in .foo2' type=T2 of .foo2 origin=null diff --git a/compiler/testData/ir/irText/expressions/callableReferences/genericLocalClassConstructorReference.ir.txt b/compiler/testData/ir/irText/expressions/callableReferences/genericLocalClassConstructorReference.ir.txt index 48ced592c1d..75476587e9c 100644 --- a/compiler/testData/ir/irText/expressions/callableReferences/genericLocalClassConstructorReference.ir.txt +++ b/compiler/testData/ir/irText/expressions/callableReferences/genericLocalClassConstructorReference.ir.txt @@ -5,7 +5,7 @@ FILE fqName: fileName:/genericLocalClassConstructorReference.kt CONSTRUCTOR visibility:public <> (ll:LL of .L) returnType:.L.L> [primary] VALUE_PARAMETER name:ll index:0 type:LL of .L BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:L modality:OPEN visibility:public superTypes:[kotlin.Any]' PROPERTY name:ll visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:ll type:LL of .L visibility:private [final] @@ -20,7 +20,7 @@ FILE fqName: fileName:/genericLocalClassConstructorReference.kt receiver: GET_VAR ': .L.L> declared in .L.' type=.L.L> 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -37,7 +37,7 @@ FILE fqName: fileName:/genericLocalClassConstructorReference.kt CONSTRUCTOR visibility:public <> (rt:T of .Rec) returnType:.Rec.Rec> [primary] VALUE_PARAMETER name:rt index:0 type:T of .Rec BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Rec modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:rt visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:rt type:T of .Rec visibility:private [final] @@ -52,7 +52,7 @@ FILE fqName: fileName:/genericLocalClassConstructorReference.kt receiver: GET_VAR ': .Rec.Rec> declared in .Rec.' type=.Rec.Rec> 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -76,7 +76,7 @@ FILE fqName: fileName:/genericLocalClassConstructorReference.kt VALUE_PARAMETER name:lt index:0 type:LT of ..PLocal VALUE_PARAMETER name:pt index:1 type:PT of . BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor (ll: LL of .L) [primary] declared in .L' + DELEGATING_CONSTRUCTOR_CALL 'public constructor (ll: LL of .L) declared in .L' : LT of ..PLocal ll: GET_VAR 'lt: LT of ..PLocal declared in ..PLocal.' type=LT of ..PLocal origin=null INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:PLocal modality:FINAL visibility:local superTypes:[.L..PLocal>]' @@ -93,7 +93,7 @@ FILE fqName: fileName:/genericLocalClassConstructorReference.kt receiver: GET_VAR ': ..PLocal..PLocal> declared in ..PLocal.' type=..PLocal..PLocal> origin=null PROPERTY FAKE_OVERRIDE name:ll visibility:public modality:FINAL [fake_override,val] overridden: - public final ll: LL of .L [val] + public final ll: LL of .L FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.L..PLocal>) returnType:LT of ..PLocal [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ll visibility:public modality:FINAL [fake_override,val] overridden: @@ -101,16 +101,16 @@ FILE fqName: fileName:/genericLocalClassConstructorReference.kt $this: VALUE_PARAMETER name: type:.L..PLocal> 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 .L + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .L $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 .L + public open fun hashCode (): kotlin.Int declared in .L $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 .L + public open fun toString (): kotlin.String declared in .L $this: VALUE_PARAMETER name: type:kotlin.Any RETURN type=kotlin.Nothing from='public final fun (): .L.> declared in ' CALL 'public final fun foo2 (t1: T1 of .foo2, t2: T2 of .foo2, bb: kotlin.Function2.foo2, T2 of .foo2, R of .foo2>): R of .foo2 declared in ' type=..PLocal.> origin=null @@ -121,7 +121,7 @@ FILE fqName: fileName:/genericLocalClassConstructorReference.kt $this: GET_VAR ': .Rec.> declared in .' type=.Rec.> origin=null t2: CALL 'public final fun (): T of .Rec declared in .Rec' type=PT of . origin=GET_PROPERTY $this: GET_VAR ': .Rec.> declared in .' type=.Rec.> origin=null - bb: FUNCTION_REFERENCE 'public constructor (lt: LT of ..PLocal, pt: PT of .) [primary] declared in ..PLocal' type=kotlin.reflect.KFunction2., PT of ., ..PLocal.>> origin=null reflectionTarget= + bb: FUNCTION_REFERENCE 'public constructor (lt: LT of ..PLocal, pt: PT of .) declared in ..PLocal' type=kotlin.reflect.KFunction2., PT of ., ..PLocal.>> origin=null reflectionTarget= : PT of . FUN name:fn visibility:public modality:FINAL ($receiver:.Rec.fn>) returnType:.L.fn> TYPE_PARAMETER name:FT index:0 variance: superTypes:[kotlin.Any?] reified:false @@ -134,7 +134,7 @@ FILE fqName: fileName:/genericLocalClassConstructorReference.kt VALUE_PARAMETER name:lt index:0 type:LT of .fn.FLocal VALUE_PARAMETER name:pt index:1 type:FT of .fn BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor (ll: LL of .L) [primary] declared in .L' + DELEGATING_CONSTRUCTOR_CALL 'public constructor (ll: LL of .L) declared in .L' : LT of .fn.FLocal ll: GET_VAR 'lt: LT of .fn.FLocal declared in .fn.FLocal.' type=LT of .fn.FLocal origin=null INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:FLocal modality:FINAL visibility:local superTypes:[.L.fn.FLocal>]' @@ -151,7 +151,7 @@ FILE fqName: fileName:/genericLocalClassConstructorReference.kt receiver: GET_VAR ': .fn.FLocal.fn.FLocal, FT of .fn> declared in .fn.FLocal.' type=.fn.FLocal.fn.FLocal, FT of .fn> origin=null PROPERTY FAKE_OVERRIDE name:ll visibility:public modality:FINAL [fake_override,val] overridden: - public final ll: LL of .L [val] + public final ll: LL of .L FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.L.fn.FLocal>) returnType:LT of .fn.FLocal [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ll visibility:public modality:FINAL [fake_override,val] overridden: @@ -159,16 +159,16 @@ FILE fqName: fileName:/genericLocalClassConstructorReference.kt $this: VALUE_PARAMETER name: type:.L.fn.FLocal> 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 .L + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .L $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 .L + public open fun hashCode (): kotlin.Int declared in .L $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 .L + public open fun toString (): kotlin.String declared in .L $this: VALUE_PARAMETER name: type:kotlin.Any RETURN type=kotlin.Nothing from='public final fun fn (): .L.fn> declared in ' CALL 'public final fun foo2 (t1: T1 of .foo2, t2: T2 of .foo2, bb: kotlin.Function2.foo2, T2 of .foo2, R of .foo2>): R of .foo2 declared in ' type=.fn.FLocal.fn, FT of .fn> origin=null @@ -179,7 +179,7 @@ FILE fqName: fileName:/genericLocalClassConstructorReference.kt $this: GET_VAR ': .Rec.fn> declared in .fn' type=.Rec.fn> origin=null t2: CALL 'public final fun (): T of .Rec declared in .Rec' type=FT of .fn origin=GET_PROPERTY $this: GET_VAR ': .Rec.fn> declared in .fn' type=.Rec.fn> origin=null - bb: FUNCTION_REFERENCE 'public constructor (lt: LT of .fn.FLocal, pt: FT of .fn) [primary] declared in .fn.FLocal' type=kotlin.reflect.KFunction2.fn, FT of .fn, .fn.FLocal.fn, FT of .fn>> origin=null reflectionTarget= + bb: FUNCTION_REFERENCE 'public constructor (lt: LT of .fn.FLocal, pt: FT of .fn) declared in .fn.FLocal' type=kotlin.reflect.KFunction2.fn, FT of .fn, .fn.FLocal.fn, FT of .fn>> origin=null reflectionTarget= : FT of .fn FUN name:foo2 visibility:public modality:FINAL (t1:T1 of .foo2, t2:T2 of .foo2, bb:kotlin.Function2.foo2, T2 of .foo2, R of .foo2>) returnType:R of .foo2 TYPE_PARAMETER name:T1 index:0 variance: superTypes:[kotlin.Any?] reified:false @@ -190,7 +190,7 @@ FILE fqName: fileName:/genericLocalClassConstructorReference.kt VALUE_PARAMETER name:bb index:2 type:kotlin.Function2.foo2, T2 of .foo2, R of .foo2> BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun foo2 (t1: T1 of .foo2, t2: T2 of .foo2, bb: kotlin.Function2.foo2, T2 of .foo2, R of .foo2>): R of .foo2 declared in ' - CALL 'public abstract fun invoke (p1: P1 of kotlin.Function2, p2: P2 of kotlin.Function2): R of kotlin.Function2 [operator] declared in kotlin.Function2' type=R of .foo2 origin=INVOKE + CALL 'public abstract fun invoke (p1: P1 of kotlin.Function2, p2: P2 of kotlin.Function2): R of kotlin.Function2 declared in kotlin.Function2' type=R of .foo2 origin=INVOKE $this: GET_VAR 'bb: kotlin.Function2.foo2, T2 of .foo2, R of .foo2> declared in .foo2' type=kotlin.Function2.foo2, T2 of .foo2, R of .foo2> origin=VARIABLE_AS_FUNCTION p1: GET_VAR 't1: T1 of .foo2 declared in .foo2' type=T1 of .foo2 origin=null p2: GET_VAR 't2: T2 of .foo2 declared in .foo2' type=T2 of .foo2 origin=null diff --git a/compiler/testData/ir/irText/expressions/callableReferences/genericMember.ir.txt b/compiler/testData/ir/irText/expressions/callableReferences/genericMember.ir.txt index 38d585a6cc0..c88c38b47d8 100644 --- a/compiler/testData/ir/irText/expressions/callableReferences/genericMember.ir.txt +++ b/compiler/testData/ir/irText/expressions/callableReferences/genericMember.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/genericMember.kt TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false CONSTRUCTOR visibility:public <> () returnType:.A.A> [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:A modality:FINAL visibility:public superTypes:[kotlin.Any]' FUN name:foo visibility:public modality:FINAL <> ($this:.A.A>) returnType:kotlin.Unit $this: VALUE_PARAMETER name: type:.A.A> @@ -22,7 +22,7 @@ FILE fqName: fileName:/genericMember.kt receiver: GET_VAR ': .A.A> declared in .A.' type=.A.A> 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -45,7 +45,7 @@ FILE fqName: fileName:/genericMember.kt PROPERTY name:test2 visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:test2 type:kotlin.reflect.KProperty1<.A, kotlin.Int> visibility:private [final,static] EXPRESSION_BODY - PROPERTY_REFERENCE 'public final bar: kotlin.Int [val]' field=null getter='public final fun (): kotlin.Int declared in .A' setter=null type=kotlin.reflect.KProperty1<.A, kotlin.Int> origin=null + PROPERTY_REFERENCE 'public final bar: kotlin.Int' field=null getter='public final fun (): kotlin.Int declared in .A' setter=null type=kotlin.reflect.KProperty1<.A, kotlin.Int> origin=null FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:kotlin.reflect.KProperty1<.A, kotlin.Int> correspondingProperty: PROPERTY name:test2 visibility:public modality:FINAL [val] BLOCK_BODY diff --git a/compiler/testData/ir/irText/expressions/callableReferences/importedFromObject.ir.txt b/compiler/testData/ir/irText/expressions/callableReferences/importedFromObject.ir.txt index b1f4c47b588..324007f0eab 100644 --- a/compiler/testData/ir/irText/expressions/callableReferences/importedFromObject.ir.txt +++ b/compiler/testData/ir/irText/expressions/callableReferences/importedFromObject.ir.txt @@ -3,7 +3,7 @@ FILE fqName:test fileName:/importedFromObject.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:test.Foo CONSTRUCTOR visibility:private <> () returnType:test.Foo [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:Foo modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:a visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:a type:kotlin.String visibility:private [final] @@ -23,7 +23,7 @@ FILE fqName:test fileName:/importedFromObject.kt CONST String type=kotlin.String value="" 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -37,7 +37,7 @@ FILE fqName:test fileName:/importedFromObject.kt PROPERTY name:test1 visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:test1 type:kotlin.reflect.KProperty0 visibility:private [final,static] EXPRESSION_BODY - PROPERTY_REFERENCE 'public final a: kotlin.String [val]' field=null getter='public final fun (): kotlin.String declared in test.Foo' setter=null type=kotlin.reflect.KProperty0 origin=null + PROPERTY_REFERENCE 'public final a: kotlin.String' field=null getter='public final fun (): kotlin.String declared in test.Foo' setter=null type=kotlin.reflect.KProperty0 origin=null $this: GET_OBJECT 'CLASS OBJECT name:Foo modality:FINAL visibility:public superTypes:[kotlin.Any]' type=test.Foo FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:kotlin.reflect.KProperty0 correspondingProperty: PROPERTY name:test1 visibility:public modality:FINAL [val] @@ -47,7 +47,7 @@ FILE fqName:test fileName:/importedFromObject.kt PROPERTY name:test1a visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:test1a type:kotlin.reflect.KProperty0 visibility:private [final,static] EXPRESSION_BODY - PROPERTY_REFERENCE 'public final a: kotlin.String [val]' field=null getter='public final fun (): kotlin.String declared in test.Foo' setter=null type=kotlin.reflect.KProperty0 origin=null + PROPERTY_REFERENCE 'public final a: kotlin.String' field=null getter='public final fun (): kotlin.String declared in test.Foo' setter=null type=kotlin.reflect.KProperty0 origin=null $this: GET_OBJECT 'CLASS OBJECT name:Foo modality:FINAL visibility:public superTypes:[kotlin.Any]' type=test.Foo FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:kotlin.reflect.KProperty0 correspondingProperty: PROPERTY name:test1a visibility:public modality:FINAL [val] diff --git a/compiler/testData/ir/irText/expressions/callableReferences/kt37131.fir.ir.txt b/compiler/testData/ir/irText/expressions/callableReferences/kt37131.fir.ir.txt index af4140b63a2..c964b9db530 100644 --- a/compiler/testData/ir/irText/expressions/callableReferences/kt37131.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/callableReferences/kt37131.fir.ir.txt @@ -13,7 +13,7 @@ FILE fqName: fileName:/kt37131.kt EXPRESSION_BODY CONST String type=kotlin.String value="" BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.String visibility:private [final] @@ -28,7 +28,7 @@ FILE fqName: fileName:/kt37131.kt receiver: GET_VAR ': .C declared in .C.' type=.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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -43,7 +43,7 @@ FILE fqName: fileName:/kt37131.kt VALUE_PARAMETER name:fn index:0 type:kotlin.Function0 BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun use (fn: kotlin.Function0): kotlin.Any declared in ' - CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=kotlin.Any origin=INVOKE + CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=kotlin.Any origin=INVOKE $this: GET_VAR 'fn: kotlin.Function0 declared in .use' type=kotlin.Function0 origin=VARIABLE_AS_FUNCTION FUN name:testFn visibility:public modality:FINAL <> () returnType:kotlin.Any BLOCK_BODY @@ -62,4 +62,4 @@ FILE fqName: fileName:/kt37131.kt FUN ADAPTER_FOR_CALLABLE_REFERENCE name: visibility:local modality:FINAL <> () returnType:.C BLOCK_BODY RETURN type=kotlin.Nothing from='local final fun (): .C declared in .testCtor' - CONSTRUCTOR_CALL 'public constructor (x: kotlin.String) [primary] declared in .C' type=.C origin=null + CONSTRUCTOR_CALL 'public constructor (x: kotlin.String) declared in .C' type=.C origin=null diff --git a/compiler/testData/ir/irText/expressions/callableReferences/kt37131.ir.txt b/compiler/testData/ir/irText/expressions/callableReferences/kt37131.ir.txt index 528fb8b40a9..286ac82b1a3 100644 --- a/compiler/testData/ir/irText/expressions/callableReferences/kt37131.ir.txt +++ b/compiler/testData/ir/irText/expressions/callableReferences/kt37131.ir.txt @@ -13,7 +13,7 @@ FILE fqName: fileName:/kt37131.kt EXPRESSION_BODY CONST String type=kotlin.String value="" BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.String visibility:private [final] @@ -28,7 +28,7 @@ FILE fqName: fileName:/kt37131.kt receiver: GET_VAR ': .C declared in .C.' type=.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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -43,7 +43,7 @@ FILE fqName: fileName:/kt37131.kt VALUE_PARAMETER name:fn index:0 type:kotlin.Function0 BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun use (fn: kotlin.Function0): kotlin.Any declared in ' - CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=kotlin.Any origin=INVOKE + CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=kotlin.Any origin=INVOKE $this: GET_VAR 'fn: kotlin.Function0 declared in .use' type=kotlin.Function0 origin=VARIABLE_AS_FUNCTION FUN name:testFn visibility:public modality:FINAL <> () returnType:kotlin.Any BLOCK_BODY @@ -63,5 +63,5 @@ FILE fqName: fileName:/kt37131.kt FUN ADAPTER_FOR_CALLABLE_REFERENCE name: visibility:local modality:FINAL <> () returnType:.C BLOCK_BODY RETURN type=kotlin.Nothing from='local final fun (): .C declared in .testCtor' - CONSTRUCTOR_CALL 'public constructor (x: kotlin.String) [primary] declared in .C' type=.C origin=null - FUNCTION_REFERENCE 'local final fun (): .C declared in .testCtor' type=kotlin.Function0<.C> origin=ADAPTED_FUNCTION_REFERENCE reflectionTarget=public constructor (x: kotlin.String) [primary] declared in .C + CONSTRUCTOR_CALL 'public constructor (x: kotlin.String) declared in .C' type=.C origin=null + FUNCTION_REFERENCE 'local final fun (): .C declared in .testCtor' type=kotlin.Function0<.C> origin=ADAPTED_FUNCTION_REFERENCE reflectionTarget=public constructor (x: kotlin.String) declared in .C diff --git a/compiler/testData/ir/irText/expressions/callableReferences/kt46069.fir.ir.txt b/compiler/testData/ir/irText/expressions/callableReferences/kt46069.fir.ir.txt index 3105abea1c0..d6b7be5ecc5 100644 --- a/compiler/testData/ir/irText/expressions/callableReferences/kt46069.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/callableReferences/kt46069.fir.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/kt46069.kt TYPE_PARAMETER name:ACTUAL index:0 variance: superTypes:[kotlin.Any?] reified:false CONSTRUCTOR visibility:public <> () returnType:.ObjectAssert.ObjectAssert> [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:ObjectAssert modality:FINAL visibility:public superTypes:[kotlin.Any]' FUN name:describedAs visibility:public modality:FINAL <> ($this:.ObjectAssert.ObjectAssert>, description:kotlin.String?, args:kotlin.Array) returnType:.ObjectAssert.ObjectAssert>? $this: VALUE_PARAMETER name: type:.ObjectAssert.ObjectAssert> @@ -15,7 +15,7 @@ FILE fqName: fileName:/kt46069.kt CONST Null type=kotlin.Nothing? value=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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -30,7 +30,7 @@ FILE fqName: fileName:/kt46069.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Assertions CONSTRUCTOR visibility:private <> () returnType:.Assertions [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:Assertions modality:FINAL visibility:public superTypes:[kotlin.Any]' FUN name:assertThat visibility:public modality:FINAL ($this:.Assertions, actual:S of .Assertions.assertThat) returnType:.ObjectAssert.Assertions.assertThat> TYPE_PARAMETER name:S index:0 variance: superTypes:[kotlin.Any?] reified:false @@ -38,11 +38,11 @@ FILE fqName: fileName:/kt46069.kt VALUE_PARAMETER name:actual index:0 type:S of .Assertions.assertThat BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun assertThat (actual: S of .Assertions.assertThat): .ObjectAssert.Assertions.assertThat> declared in .Assertions' - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .ObjectAssert' type=.ObjectAssert.Assertions.assertThat> origin=null + CONSTRUCTOR_CALL 'public constructor () declared in .ObjectAssert' type=.ObjectAssert.Assertions.assertThat> origin=null : S of .Assertions.assertThat 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -72,15 +72,15 @@ FILE fqName: fileName:/kt46069.kt WHEN type=.ObjectAssert.assertNotNull?>? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_0: kotlin.String? [val] declared in .assertNotNull' type=kotlin.String? origin=null + arg0: GET_VAR 'val tmp_0: kotlin.String? declared in .assertNotNull' type=kotlin.String? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: CALL 'public final fun let (block: kotlin.Function1): R of kotlin.StandardKt.let [inline] declared in kotlin.StandardKt' type=.ObjectAssert.assertNotNull?>? origin=null + then: CALL 'public final fun let (block: kotlin.Function1): R of kotlin.StandardKt.let declared in kotlin.StandardKt' type=.ObjectAssert.assertNotNull?>? origin=null : kotlin.String : .ObjectAssert.assertNotNull?>? - $receiver: GET_VAR 'val tmp_0: kotlin.String? [val] declared in .assertNotNull' type=kotlin.String? origin=null + $receiver: GET_VAR 'val tmp_0: kotlin.String? declared in .assertNotNull' type=kotlin.String? origin=null block: BLOCK type=kotlin.Function1.ObjectAssert.assertNotNull?>?> origin=ADAPTED_FUNCTION_REFERENCE FUN ADAPTER_FOR_CALLABLE_REFERENCE name:describedAs visibility:local modality:FINAL <> ($receiver:.ObjectAssert.assertNotNull?>, p0:kotlin.String?) returnType:.ObjectAssert.assertNotNull?>? $receiver: VALUE_PARAMETER ADAPTER_PARAMETER_FOR_CALLABLE_REFERENCE name:receiver type:.ObjectAssert.assertNotNull?> @@ -91,4 +91,4 @@ FILE fqName: fileName:/kt46069.kt $this: GET_VAR 'receiver: .ObjectAssert.assertNotNull?> declared in .assertNotNull.describedAs' type=.ObjectAssert.assertNotNull?> origin=ADAPTED_FUNCTION_REFERENCE description: GET_VAR 'p0: kotlin.String? declared in .assertNotNull.describedAs' type=kotlin.String? origin=null FUNCTION_REFERENCE 'local final fun describedAs (p0: kotlin.String?): .ObjectAssert.assertNotNull?>? declared in .assertNotNull' type=kotlin.Function1.ObjectAssert.assertNotNull?>?> origin=ADAPTED_FUNCTION_REFERENCE reflectionTarget=null - $receiver: GET_VAR 'val assert: .ObjectAssert.assertNotNull?> [val] declared in .assertNotNull' type=.ObjectAssert.assertNotNull?> origin=null + $receiver: GET_VAR 'val assert: .ObjectAssert.assertNotNull?> declared in .assertNotNull' type=.ObjectAssert.assertNotNull?> origin=null diff --git a/compiler/testData/ir/irText/expressions/callableReferences/kt46069.ir.txt b/compiler/testData/ir/irText/expressions/callableReferences/kt46069.ir.txt index f9a542d89cf..44451a18563 100644 --- a/compiler/testData/ir/irText/expressions/callableReferences/kt46069.ir.txt +++ b/compiler/testData/ir/irText/expressions/callableReferences/kt46069.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/kt46069.kt TYPE_PARAMETER name:ACTUAL index:0 variance: superTypes:[kotlin.Any?] reified:false CONSTRUCTOR visibility:public <> () returnType:.ObjectAssert.ObjectAssert> [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:ObjectAssert modality:FINAL visibility:public superTypes:[kotlin.Any]' FUN name:describedAs visibility:public modality:FINAL <> ($this:.ObjectAssert.ObjectAssert>, description:kotlin.String?, args:kotlin.Array) returnType:.ObjectAssert.ObjectAssert>? $this: VALUE_PARAMETER name: type:.ObjectAssert.ObjectAssert> @@ -15,7 +15,7 @@ FILE fqName: fileName:/kt46069.kt CONST Null type=kotlin.Nothing? value=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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -30,7 +30,7 @@ FILE fqName: fileName:/kt46069.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Assertions CONSTRUCTOR visibility:private <> () returnType:.Assertions [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:Assertions modality:FINAL visibility:public superTypes:[kotlin.Any]' FUN name:assertThat visibility:public modality:FINAL ($this:.Assertions, actual:S of .Assertions.assertThat) returnType:.ObjectAssert.Assertions.assertThat> TYPE_PARAMETER name:S index:0 variance: superTypes:[kotlin.Any?] reified:false @@ -38,11 +38,11 @@ FILE fqName: fileName:/kt46069.kt VALUE_PARAMETER name:actual index:0 type:S of .Assertions.assertThat BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun assertThat (actual: S of .Assertions.assertThat): .ObjectAssert.Assertions.assertThat> declared in .Assertions' - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .ObjectAssert' type=.ObjectAssert.Assertions.assertThat> origin=null + CONSTRUCTOR_CALL 'public constructor () declared in .ObjectAssert' type=.ObjectAssert.Assertions.assertThat> origin=null : S of .Assertions.assertThat 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -72,15 +72,15 @@ FILE fqName: fileName:/kt46069.kt WHEN type=.ObjectAssert.assertNotNull?>? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_0: kotlin.String? [val] declared in .assertNotNull' type=kotlin.String? origin=null + arg0: GET_VAR 'val tmp_0: kotlin.String? declared in .assertNotNull' type=kotlin.String? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: CALL 'public final fun let (block: kotlin.Function1): R of kotlin.StandardKt.let [inline] declared in kotlin.StandardKt' type=.ObjectAssert.assertNotNull?>? origin=null + then: CALL 'public final fun let (block: kotlin.Function1): R of kotlin.StandardKt.let declared in kotlin.StandardKt' type=.ObjectAssert.assertNotNull?>? origin=null : kotlin.String : .ObjectAssert.assertNotNull?>? - $receiver: GET_VAR 'val tmp_0: kotlin.String? [val] declared in .assertNotNull' type=kotlin.String? origin=null + $receiver: GET_VAR 'val tmp_0: kotlin.String? declared in .assertNotNull' type=kotlin.String? origin=null block: BLOCK type=kotlin.Function1.ObjectAssert.assertNotNull?>?> origin=ADAPTED_FUNCTION_REFERENCE FUN ADAPTER_FOR_CALLABLE_REFERENCE name:describedAs visibility:local modality:FINAL <> ($receiver:.ObjectAssert.assertNotNull?>, p0:kotlin.String?) returnType:.ObjectAssert.assertNotNull?>? $receiver: VALUE_PARAMETER ADAPTER_PARAMETER_FOR_CALLABLE_REFERENCE name:receiver type:.ObjectAssert.assertNotNull?> @@ -91,4 +91,4 @@ FILE fqName: fileName:/kt46069.kt $this: GET_VAR 'receiver: .ObjectAssert.assertNotNull?> declared in .assertNotNull.describedAs' type=.ObjectAssert.assertNotNull?> origin=ADAPTED_FUNCTION_REFERENCE description: GET_VAR 'p0: kotlin.String? declared in .assertNotNull.describedAs' type=kotlin.String? origin=null FUNCTION_REFERENCE 'local final fun describedAs (p0: kotlin.String?): .ObjectAssert.assertNotNull?>? declared in .assertNotNull' type=kotlin.Function1.ObjectAssert.assertNotNull?>?> origin=ADAPTED_FUNCTION_REFERENCE reflectionTarget=public final fun describedAs (description: kotlin.String?, vararg args: kotlin.Any?): .ObjectAssert.ObjectAssert>? declared in .ObjectAssert - $receiver: GET_VAR 'val assert: .ObjectAssert.assertNotNull?> [val] declared in .assertNotNull' type=.ObjectAssert.assertNotNull?> origin=null + $receiver: GET_VAR 'val assert: .ObjectAssert.assertNotNull?> declared in .assertNotNull' type=.ObjectAssert.assertNotNull?> origin=null diff --git a/compiler/testData/ir/irText/expressions/callableReferences/suspendConversion.fir.ir.txt b/compiler/testData/ir/irText/expressions/callableReferences/suspendConversion.fir.ir.txt index 09c81f08743..d50c495d60c 100644 --- a/compiler/testData/ir/irText/expressions/callableReferences/suspendConversion.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/callableReferences/suspendConversion.fir.ir.txt @@ -34,14 +34,14 @@ FILE fqName: fileName:/suspendConversion.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.C CONSTRUCTOR visibility:public <> () returnType:.C [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C modality:FINAL visibility:public superTypes:[kotlin.Any]' FUN name:bar visibility:public modality:FINAL <> ($this:.C) returnType:kotlin.Unit $this: VALUE_PARAMETER name: type:.C 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -62,7 +62,7 @@ FILE fqName: fileName:/suspendConversion.kt FUN name:testNoCoversion visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY CALL 'public final fun useSuspend (fn: kotlin.coroutines.SuspendFunction0): kotlin.Unit declared in ' type=kotlin.Unit origin=null - fn: FUNCTION_REFERENCE 'public final fun foo0 (): kotlin.Unit [suspend] declared in ' type=kotlin.reflect.KSuspendFunction0 origin=null reflectionTarget= + fn: FUNCTION_REFERENCE 'public final fun foo0 (): kotlin.Unit declared in ' type=kotlin.reflect.KSuspendFunction0 origin=null reflectionTarget= FUN name:testSuspendPlain visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY CALL 'public final fun useSuspend (fn: kotlin.coroutines.SuspendFunction0): kotlin.Unit declared in ' type=kotlin.Unit origin=null @@ -119,8 +119,8 @@ FILE fqName: fileName:/suspendConversion.kt BLOCK_BODY CALL 'public final fun bar (): kotlin.Unit declared in .C' type=kotlin.Unit origin=null $this: GET_VAR 'receiver: .C declared in .testWithBoundReceiver.bar' type=.C origin=ADAPTED_FUNCTION_REFERENCE - FUNCTION_REFERENCE 'local final fun bar (): kotlin.Unit [suspend] declared in .testWithBoundReceiver' type=kotlin.coroutines.SuspendFunction0 origin=ADAPTED_FUNCTION_REFERENCE reflectionTarget=null - $receiver: CONSTRUCTOR_CALL 'public constructor () [primary] declared in .C' type=.C origin=null + FUNCTION_REFERENCE 'local final fun bar (): kotlin.Unit declared in .testWithBoundReceiver' type=kotlin.coroutines.SuspendFunction0 origin=ADAPTED_FUNCTION_REFERENCE reflectionTarget=null + $receiver: CONSTRUCTOR_CALL 'public constructor () declared in .C' type=.C origin=null FUN name:testNullableParam visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY CALL 'public final fun useSuspendNullable (fn: kotlin.coroutines.SuspendFunction0?): kotlin.Unit declared in ' type=kotlin.Unit origin=null diff --git a/compiler/testData/ir/irText/expressions/callableReferences/suspendConversion.ir.txt b/compiler/testData/ir/irText/expressions/callableReferences/suspendConversion.ir.txt index d165fbc6a9f..bad21efe3d6 100644 --- a/compiler/testData/ir/irText/expressions/callableReferences/suspendConversion.ir.txt +++ b/compiler/testData/ir/irText/expressions/callableReferences/suspendConversion.ir.txt @@ -34,14 +34,14 @@ FILE fqName: fileName:/suspendConversion.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.C CONSTRUCTOR visibility:public <> () returnType:.C [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C modality:FINAL visibility:public superTypes:[kotlin.Any]' FUN name:bar visibility:public modality:FINAL <> ($this:.C) returnType:kotlin.Unit $this: VALUE_PARAMETER name: type:.C 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -62,7 +62,7 @@ FILE fqName: fileName:/suspendConversion.kt FUN name:testNoCoversion visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY CALL 'public final fun useSuspend (fn: kotlin.coroutines.SuspendFunction0): kotlin.Unit declared in ' type=kotlin.Unit origin=null - fn: FUNCTION_REFERENCE 'public final fun foo0 (): kotlin.Unit [suspend] declared in ' type=kotlin.reflect.KSuspendFunction0 origin=null reflectionTarget= + fn: FUNCTION_REFERENCE 'public final fun foo0 (): kotlin.Unit declared in ' type=kotlin.reflect.KSuspendFunction0 origin=null reflectionTarget= FUN name:testSuspendPlain visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY CALL 'public final fun useSuspend (fn: kotlin.coroutines.SuspendFunction0): kotlin.Unit declared in ' type=kotlin.Unit origin=null @@ -70,7 +70,7 @@ FILE fqName: fileName:/suspendConversion.kt FUN ADAPTER_FOR_CALLABLE_REFERENCE name:foo1 visibility:local modality:FINAL <> () returnType:kotlin.Unit [suspend] BLOCK_BODY CALL 'public final fun foo1 (): kotlin.Unit declared in ' type=kotlin.Unit origin=null - FUNCTION_REFERENCE 'local final fun foo1 (): kotlin.Unit [suspend] declared in .testSuspendPlain' type=kotlin.coroutines.SuspendFunction0 origin=ADAPTED_FUNCTION_REFERENCE reflectionTarget=public final fun foo1 (): kotlin.Unit declared in + FUNCTION_REFERENCE 'local final fun foo1 (): kotlin.Unit declared in .testSuspendPlain' type=kotlin.coroutines.SuspendFunction0 origin=ADAPTED_FUNCTION_REFERENCE reflectionTarget=public final fun foo1 (): kotlin.Unit declared in FUN name:testSuspendWithArgs visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY CALL 'public final fun useSuspendInt (fn: kotlin.coroutines.SuspendFunction1): kotlin.Unit declared in ' type=kotlin.Unit origin=null @@ -80,7 +80,7 @@ FILE fqName: fileName:/suspendConversion.kt BLOCK_BODY CALL 'public final fun fooInt (x: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=null x: GET_VAR 'p0: kotlin.Int declared in .testSuspendWithArgs.fooInt' type=kotlin.Int origin=null - FUNCTION_REFERENCE 'local final fun fooInt (p0: kotlin.Int): kotlin.Unit [suspend] declared in .testSuspendWithArgs' type=kotlin.coroutines.SuspendFunction1 origin=ADAPTED_FUNCTION_REFERENCE reflectionTarget=public final fun fooInt (x: kotlin.Int): kotlin.Unit declared in + FUNCTION_REFERENCE 'local final fun fooInt (p0: kotlin.Int): kotlin.Unit declared in .testSuspendWithArgs' type=kotlin.coroutines.SuspendFunction1 origin=ADAPTED_FUNCTION_REFERENCE reflectionTarget=public final fun fooInt (x: kotlin.Int): kotlin.Unit declared in FUN name:testWithVararg visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY CALL 'public final fun useSuspend (fn: kotlin.coroutines.SuspendFunction0): kotlin.Unit declared in ' type=kotlin.Unit origin=null @@ -88,7 +88,7 @@ FILE fqName: fileName:/suspendConversion.kt FUN ADAPTER_FOR_CALLABLE_REFERENCE name:foo2 visibility:local modality:FINAL <> () returnType:kotlin.Unit [suspend] BLOCK_BODY CALL 'public final fun foo2 (vararg xs: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=null - FUNCTION_REFERENCE 'local final fun foo2 (): kotlin.Unit [suspend] declared in .testWithVararg' type=kotlin.coroutines.SuspendFunction0 origin=ADAPTED_FUNCTION_REFERENCE reflectionTarget=public final fun foo2 (vararg xs: kotlin.Int): kotlin.Unit declared in + FUNCTION_REFERENCE 'local final fun foo2 (): kotlin.Unit declared in .testWithVararg' type=kotlin.coroutines.SuspendFunction0 origin=ADAPTED_FUNCTION_REFERENCE reflectionTarget=public final fun foo2 (vararg xs: kotlin.Int): kotlin.Unit declared in FUN name:testWithVarargMapped visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY CALL 'public final fun useSuspendInt (fn: kotlin.coroutines.SuspendFunction1): kotlin.Unit declared in ' type=kotlin.Unit origin=null @@ -99,7 +99,7 @@ FILE fqName: fileName:/suspendConversion.kt CALL 'public final fun foo2 (vararg xs: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=null xs: VARARG type=kotlin.IntArray varargElementType=kotlin.Int GET_VAR 'p0: kotlin.Int declared in .testWithVarargMapped.foo2' type=kotlin.Int origin=null - FUNCTION_REFERENCE 'local final fun foo2 (p0: kotlin.Int): kotlin.Unit [suspend] declared in .testWithVarargMapped' type=kotlin.coroutines.SuspendFunction1 origin=ADAPTED_FUNCTION_REFERENCE reflectionTarget=public final fun foo2 (vararg xs: kotlin.Int): kotlin.Unit declared in + FUNCTION_REFERENCE 'local final fun foo2 (p0: kotlin.Int): kotlin.Unit declared in .testWithVarargMapped' type=kotlin.coroutines.SuspendFunction1 origin=ADAPTED_FUNCTION_REFERENCE reflectionTarget=public final fun foo2 (vararg xs: kotlin.Int): kotlin.Unit declared in FUN name:testWithCoercionToUnit visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY CALL 'public final fun useSuspend (fn: kotlin.coroutines.SuspendFunction0): kotlin.Unit declared in ' type=kotlin.Unit origin=null @@ -108,7 +108,7 @@ FILE fqName: fileName:/suspendConversion.kt BLOCK_BODY TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit CALL 'public final fun foo3 (): kotlin.Int declared in ' type=kotlin.Int origin=null - FUNCTION_REFERENCE 'local final fun foo3 (): kotlin.Unit [suspend] declared in .testWithCoercionToUnit' type=kotlin.coroutines.SuspendFunction0 origin=ADAPTED_FUNCTION_REFERENCE reflectionTarget=public final fun foo3 (): kotlin.Int declared in + FUNCTION_REFERENCE 'local final fun foo3 (): kotlin.Unit declared in .testWithCoercionToUnit' type=kotlin.coroutines.SuspendFunction0 origin=ADAPTED_FUNCTION_REFERENCE reflectionTarget=public final fun foo3 (): kotlin.Int declared in FUN name:testWithDefaults visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY CALL 'public final fun useSuspend (fn: kotlin.coroutines.SuspendFunction0): kotlin.Unit declared in ' type=kotlin.Unit origin=null @@ -116,7 +116,7 @@ FILE fqName: fileName:/suspendConversion.kt FUN ADAPTER_FOR_CALLABLE_REFERENCE name:foo4 visibility:local modality:FINAL <> () returnType:kotlin.Unit [suspend] BLOCK_BODY CALL 'public final fun foo4 (i: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=null - FUNCTION_REFERENCE 'local final fun foo4 (): kotlin.Unit [suspend] declared in .testWithDefaults' type=kotlin.coroutines.SuspendFunction0 origin=ADAPTED_FUNCTION_REFERENCE reflectionTarget=public final fun foo4 (i: kotlin.Int): kotlin.Unit declared in + FUNCTION_REFERENCE 'local final fun foo4 (): kotlin.Unit declared in .testWithDefaults' type=kotlin.coroutines.SuspendFunction0 origin=ADAPTED_FUNCTION_REFERENCE reflectionTarget=public final fun foo4 (i: kotlin.Int): kotlin.Unit declared in FUN name:testWithBoundReceiver visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY CALL 'public final fun useSuspend (fn: kotlin.coroutines.SuspendFunction0): kotlin.Unit declared in ' type=kotlin.Unit origin=null @@ -126,8 +126,8 @@ FILE fqName: fileName:/suspendConversion.kt BLOCK_BODY CALL 'public final fun bar (): kotlin.Unit declared in .C' type=kotlin.Unit origin=null $this: GET_VAR 'receiver: .C declared in .testWithBoundReceiver.bar' type=.C origin=ADAPTED_FUNCTION_REFERENCE - FUNCTION_REFERENCE 'local final fun bar (): kotlin.Unit [suspend] declared in .testWithBoundReceiver' type=kotlin.coroutines.SuspendFunction0 origin=ADAPTED_FUNCTION_REFERENCE reflectionTarget=public final fun bar (): kotlin.Unit declared in .C - $receiver: CONSTRUCTOR_CALL 'public constructor () [primary] declared in .C' type=.C origin=null + FUNCTION_REFERENCE 'local final fun bar (): kotlin.Unit declared in .testWithBoundReceiver' type=kotlin.coroutines.SuspendFunction0 origin=ADAPTED_FUNCTION_REFERENCE reflectionTarget=public final fun bar (): kotlin.Unit declared in .C + $receiver: CONSTRUCTOR_CALL 'public constructor () declared in .C' type=.C origin=null FUN name:testNullableParam visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY CALL 'public final fun useSuspendNullable (fn: kotlin.coroutines.SuspendFunction0?): kotlin.Unit declared in ' type=kotlin.Unit origin=null @@ -135,7 +135,7 @@ FILE fqName: fileName:/suspendConversion.kt FUN ADAPTER_FOR_CALLABLE_REFERENCE name:foo1 visibility:local modality:FINAL <> () returnType:kotlin.Unit [suspend] BLOCK_BODY CALL 'public final fun foo1 (): kotlin.Unit declared in ' type=kotlin.Unit origin=null - FUNCTION_REFERENCE 'local final fun foo1 (): kotlin.Unit [suspend] declared in .testNullableParam' type=kotlin.coroutines.SuspendFunction0 origin=ADAPTED_FUNCTION_REFERENCE reflectionTarget=public final fun foo1 (): kotlin.Unit declared in + FUNCTION_REFERENCE 'local final fun foo1 (): kotlin.Unit declared in .testNullableParam' type=kotlin.coroutines.SuspendFunction0 origin=ADAPTED_FUNCTION_REFERENCE reflectionTarget=public final fun foo1 (): kotlin.Unit declared in FUN name:testNestedNullableParam visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY CALL 'public final fun useSuspendNestedNullable (fn: kotlin.coroutines.SuspendFunction0?): kotlin.Unit declared in ' type=kotlin.Unit origin=null @@ -143,4 +143,4 @@ FILE fqName: fileName:/suspendConversion.kt FUN ADAPTER_FOR_CALLABLE_REFERENCE name:foo1 visibility:local modality:FINAL <> () returnType:kotlin.Unit [suspend] BLOCK_BODY CALL 'public final fun foo1 (): kotlin.Unit declared in ' type=kotlin.Unit origin=null - FUNCTION_REFERENCE 'local final fun foo1 (): kotlin.Unit [suspend] declared in .testNestedNullableParam' type=kotlin.coroutines.SuspendFunction0 origin=ADAPTED_FUNCTION_REFERENCE reflectionTarget=public final fun foo1 (): kotlin.Unit declared in + FUNCTION_REFERENCE 'local final fun foo1 (): kotlin.Unit declared in .testNestedNullableParam' type=kotlin.coroutines.SuspendFunction0 origin=ADAPTED_FUNCTION_REFERENCE reflectionTarget=public final fun foo1 (): kotlin.Unit declared in diff --git a/compiler/testData/ir/irText/expressions/callableReferences/typeArguments.fir.ir.txt b/compiler/testData/ir/irText/expressions/callableReferences/typeArguments.fir.ir.txt index a8ef6cd33e3..77cbe5f6818 100644 --- a/compiler/testData/ir/irText/expressions/callableReferences/typeArguments.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/callableReferences/typeArguments.fir.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/typeArguments.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Host CONSTRUCTOR visibility:private <> () returnType:.Host [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:Host modality:FINAL visibility:public superTypes:[kotlin.Any]' FUN name:objectMember visibility:public modality:FINAL ($this:.Host, x:T of .Host.objectMember) returnType:kotlin.Unit [inline] TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:true @@ -12,7 +12,7 @@ FILE fqName: fileName:/typeArguments.kt 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -34,7 +34,7 @@ FILE fqName: fileName:/typeArguments.kt PROPERTY name:test1 visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:test1 type:kotlin.Function1 visibility:private [final,static] EXPRESSION_BODY - FUNCTION_REFERENCE 'public final fun topLevel1 (x: T of .topLevel1): kotlin.Unit [inline] declared in ' type=kotlin.reflect.KFunction1 origin=null reflectionTarget= + FUNCTION_REFERENCE 'public final fun topLevel1 (x: T of .topLevel1): kotlin.Unit declared in ' type=kotlin.reflect.KFunction1 origin=null reflectionTarget= : kotlin.Int FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:kotlin.Function1 correspondingProperty: PROPERTY name:test1 visibility:public modality:FINAL [val] @@ -44,7 +44,7 @@ FILE fqName: fileName:/typeArguments.kt PROPERTY name:test2 visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:test2 type:kotlin.Function1, kotlin.Unit> visibility:private [final,static] EXPRESSION_BODY - FUNCTION_REFERENCE 'public final fun topLevel2 (x: kotlin.collections.List.topLevel2>): kotlin.Unit [inline] declared in ' type=kotlin.reflect.KFunction1, kotlin.Unit> origin=null reflectionTarget= + FUNCTION_REFERENCE 'public final fun topLevel2 (x: kotlin.collections.List.topLevel2>): kotlin.Unit declared in ' type=kotlin.reflect.KFunction1, kotlin.Unit> origin=null reflectionTarget= : kotlin.String FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:kotlin.Function1, kotlin.Unit> correspondingProperty: PROPERTY name:test2 visibility:public modality:FINAL [val] @@ -54,7 +54,7 @@ FILE fqName: fileName:/typeArguments.kt PROPERTY name:test3 visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:test3 type:kotlin.Function1 visibility:private [final,static] EXPRESSION_BODY - FUNCTION_REFERENCE 'public final fun objectMember (x: T of .Host.objectMember): kotlin.Unit [inline] declared in .Host' type=kotlin.reflect.KFunction1 origin=null reflectionTarget= + FUNCTION_REFERENCE 'public final fun objectMember (x: T of .Host.objectMember): kotlin.Unit declared in .Host' type=kotlin.reflect.KFunction1 origin=null reflectionTarget= : kotlin.Int $this: GET_OBJECT 'CLASS OBJECT name:Host modality:FINAL visibility:public superTypes:[kotlin.Any]' type=.Host FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:kotlin.Function1 diff --git a/compiler/testData/ir/irText/expressions/callableReferences/typeArguments.ir.txt b/compiler/testData/ir/irText/expressions/callableReferences/typeArguments.ir.txt index 694a0b95b81..b5d583740d8 100644 --- a/compiler/testData/ir/irText/expressions/callableReferences/typeArguments.ir.txt +++ b/compiler/testData/ir/irText/expressions/callableReferences/typeArguments.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/typeArguments.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Host CONSTRUCTOR visibility:private <> () returnType:.Host [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:Host modality:FINAL visibility:public superTypes:[kotlin.Any]' FUN name:objectMember visibility:public modality:FINAL ($this:.Host, x:T of .Host.objectMember) returnType:kotlin.Unit [inline] TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:true @@ -12,7 +12,7 @@ FILE fqName: fileName:/typeArguments.kt 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -34,7 +34,7 @@ FILE fqName: fileName:/typeArguments.kt PROPERTY name:test1 visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:test1 type:kotlin.Function1 visibility:private [final,static] EXPRESSION_BODY - FUNCTION_REFERENCE 'public final fun topLevel1 (x: T of .topLevel1): kotlin.Unit [inline] declared in ' type=kotlin.reflect.KFunction1<@[ParameterName(name = 'x')] kotlin.Int, kotlin.Unit> origin=null reflectionTarget= + FUNCTION_REFERENCE 'public final fun topLevel1 (x: T of .topLevel1): kotlin.Unit declared in ' type=kotlin.reflect.KFunction1<@[ParameterName(name = 'x')] kotlin.Int, kotlin.Unit> origin=null reflectionTarget= : kotlin.Int FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:kotlin.Function1 correspondingProperty: PROPERTY name:test1 visibility:public modality:FINAL [val] @@ -44,7 +44,7 @@ FILE fqName: fileName:/typeArguments.kt PROPERTY name:test2 visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:test2 type:kotlin.Function1, kotlin.Unit> visibility:private [final,static] EXPRESSION_BODY - FUNCTION_REFERENCE 'public final fun topLevel2 (x: kotlin.collections.List.topLevel2>): kotlin.Unit [inline] declared in ' type=kotlin.reflect.KFunction1<@[ParameterName(name = 'x')] kotlin.collections.List, kotlin.Unit> origin=null reflectionTarget= + FUNCTION_REFERENCE 'public final fun topLevel2 (x: kotlin.collections.List.topLevel2>): kotlin.Unit declared in ' type=kotlin.reflect.KFunction1<@[ParameterName(name = 'x')] kotlin.collections.List, kotlin.Unit> origin=null reflectionTarget= : kotlin.String FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:kotlin.Function1, kotlin.Unit> correspondingProperty: PROPERTY name:test2 visibility:public modality:FINAL [val] @@ -54,7 +54,7 @@ FILE fqName: fileName:/typeArguments.kt PROPERTY name:test3 visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:test3 type:kotlin.Function1 visibility:private [final,static] EXPRESSION_BODY - FUNCTION_REFERENCE 'public final fun objectMember (x: T of .Host.objectMember): kotlin.Unit [inline] declared in .Host' type=kotlin.reflect.KFunction1<@[ParameterName(name = 'x')] kotlin.Int, kotlin.Unit> origin=null reflectionTarget= + FUNCTION_REFERENCE 'public final fun objectMember (x: T of .Host.objectMember): kotlin.Unit declared in .Host' type=kotlin.reflect.KFunction1<@[ParameterName(name = 'x')] kotlin.Int, kotlin.Unit> origin=null reflectionTarget= : kotlin.Int $this: GET_OBJECT 'CLASS OBJECT name:Host modality:FINAL visibility:public superTypes:[kotlin.Any]' type=.Host FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:kotlin.Function1 diff --git a/compiler/testData/ir/irText/expressions/callableReferences/unboundMemberReferenceWithAdaptedArguments.fir.ir.txt b/compiler/testData/ir/irText/expressions/callableReferences/unboundMemberReferenceWithAdaptedArguments.fir.ir.txt index 87c57e51132..8e12eb775b0 100644 --- a/compiler/testData/ir/irText/expressions/callableReferences/unboundMemberReferenceWithAdaptedArguments.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/callableReferences/unboundMemberReferenceWithAdaptedArguments.fir.ir.txt @@ -9,7 +9,7 @@ FILE fqName: fileName:/unboundMemberReferenceWithAdaptedArguments.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.A CONSTRUCTOR visibility:public <> () returnType:.A [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:A modality:OPEN visibility:public superTypes:[kotlin.Any]' FUN name:foo visibility:public modality:OPEN <> ($this:.A, xs:kotlin.IntArray) returnType:kotlin.Int $this: VALUE_PARAMETER name: type:.A @@ -19,7 +19,7 @@ FILE fqName: fileName:/unboundMemberReferenceWithAdaptedArguments.kt CONST Int type=kotlin.Int value=1 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -34,7 +34,7 @@ FILE fqName: fileName:/unboundMemberReferenceWithAdaptedArguments.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Obj CONSTRUCTOR visibility:private <> () returnType:.Obj [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .A' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .A' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:Obj modality:FINAL visibility:public superTypes:[.A]' FUN name:foo visibility:public modality:OPEN <> ($this:.Obj, xs:kotlin.IntArray) returnType:kotlin.Int overridden: @@ -46,16 +46,16 @@ FILE fqName: fileName:/unboundMemberReferenceWithAdaptedArguments.kt CONST Int type=kotlin.Int value=1 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 .A + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .A $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 .A + public open fun hashCode (): kotlin.Int declared in .A $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 .A + public open fun toString (): kotlin.String declared in .A $this: VALUE_PARAMETER name: type:kotlin.Any FUN name:testUnbound visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY diff --git a/compiler/testData/ir/irText/expressions/callableReferences/unboundMemberReferenceWithAdaptedArguments.ir.txt b/compiler/testData/ir/irText/expressions/callableReferences/unboundMemberReferenceWithAdaptedArguments.ir.txt index 533f39bbbdf..c0a985504a0 100644 --- a/compiler/testData/ir/irText/expressions/callableReferences/unboundMemberReferenceWithAdaptedArguments.ir.txt +++ b/compiler/testData/ir/irText/expressions/callableReferences/unboundMemberReferenceWithAdaptedArguments.ir.txt @@ -9,7 +9,7 @@ FILE fqName: fileName:/unboundMemberReferenceWithAdaptedArguments.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.A CONSTRUCTOR visibility:public <> () returnType:.A [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:A modality:OPEN visibility:public superTypes:[kotlin.Any]' FUN name:foo visibility:public modality:OPEN <> ($this:.A, xs:kotlin.IntArray) returnType:kotlin.Int $this: VALUE_PARAMETER name: type:.A @@ -19,7 +19,7 @@ FILE fqName: fileName:/unboundMemberReferenceWithAdaptedArguments.kt CONST Int type=kotlin.Int value=1 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -34,7 +34,7 @@ FILE fqName: fileName:/unboundMemberReferenceWithAdaptedArguments.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Obj CONSTRUCTOR visibility:private <> () returnType:.Obj [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .A' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .A' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:Obj modality:FINAL visibility:public superTypes:[.A]' FUN name:foo visibility:public modality:OPEN <> ($this:.Obj, xs:kotlin.IntArray) returnType:kotlin.Int overridden: @@ -46,16 +46,16 @@ FILE fqName: fileName:/unboundMemberReferenceWithAdaptedArguments.kt CONST Int type=kotlin.Int value=1 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 .A + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .A $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 .A + public open fun hashCode (): kotlin.Int declared in .A $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 .A + public open fun toString (): kotlin.String declared in .A $this: VALUE_PARAMETER name: type:kotlin.Any FUN name:testUnbound visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY diff --git a/compiler/testData/ir/irText/expressions/callableReferences/varargFunImportedFromObject.fir.ir.txt b/compiler/testData/ir/irText/expressions/callableReferences/varargFunImportedFromObject.fir.ir.txt index 762905bf794..70605521ba9 100644 --- a/compiler/testData/ir/irText/expressions/callableReferences/varargFunImportedFromObject.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/callableReferences/varargFunImportedFromObject.fir.ir.txt @@ -3,14 +3,14 @@ FILE fqName: fileName:/varargFunImportedFromObject.kt VALUE_PARAMETER name:fn index:0 type:kotlin.Function1 BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun withO (fn: kotlin.Function1): kotlin.String declared in ' - CALL 'public abstract fun invoke (p1: P1 of kotlin.Function1): R of kotlin.Function1 [operator] declared in kotlin.Function1' type=kotlin.String origin=INVOKE + CALL 'public abstract fun invoke (p1: P1 of kotlin.Function1): R of kotlin.Function1 declared in kotlin.Function1' type=kotlin.String origin=INVOKE $this: GET_VAR 'fn: kotlin.Function1 declared in .withO' type=kotlin.Function1 origin=VARIABLE_AS_FUNCTION p1: CONST String type=kotlin.String value="O" CLASS OBJECT name:Host modality:FINAL visibility:public superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Host CONSTRUCTOR visibility:private <> () returnType:.Host [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:Host modality:FINAL visibility:public superTypes:[kotlin.Any]' FUN name:foo visibility:public modality:FINAL <> ($this:.Host, x:kotlin.Array) returnType:kotlin.String $this: VALUE_PARAMETER name: type:.Host @@ -20,7 +20,7 @@ FILE fqName: fileName:/varargFunImportedFromObject.kt CONST String type=kotlin.String value="K" 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/expressions/callableReferences/varargFunImportedFromObject.ir.txt b/compiler/testData/ir/irText/expressions/callableReferences/varargFunImportedFromObject.ir.txt index 1bfc5a67007..0f2de808922 100644 --- a/compiler/testData/ir/irText/expressions/callableReferences/varargFunImportedFromObject.ir.txt +++ b/compiler/testData/ir/irText/expressions/callableReferences/varargFunImportedFromObject.ir.txt @@ -3,14 +3,14 @@ FILE fqName: fileName:/varargFunImportedFromObject.kt VALUE_PARAMETER name:fn index:0 type:kotlin.Function1 BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun withO (fn: kotlin.Function1): kotlin.String declared in ' - CALL 'public abstract fun invoke (p1: P1 of kotlin.Function1): R of kotlin.Function1 [operator] declared in kotlin.Function1' type=kotlin.String origin=INVOKE + CALL 'public abstract fun invoke (p1: P1 of kotlin.Function1): R of kotlin.Function1 declared in kotlin.Function1' type=kotlin.String origin=INVOKE $this: GET_VAR 'fn: kotlin.Function1 declared in .withO' type=kotlin.Function1 origin=VARIABLE_AS_FUNCTION p1: CONST String type=kotlin.String value="O" CLASS OBJECT name:Host modality:FINAL visibility:public superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Host CONSTRUCTOR visibility:private <> () returnType:.Host [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:Host modality:FINAL visibility:public superTypes:[kotlin.Any]' FUN name:foo visibility:public modality:FINAL <> ($this:.Host, x:kotlin.Array) returnType:kotlin.String $this: VALUE_PARAMETER name: type:.Host @@ -20,7 +20,7 @@ FILE fqName: fileName:/varargFunImportedFromObject.kt CONST String type=kotlin.String value="K" 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/expressions/callableReferences/withAdaptationForSam.fir.ir.txt b/compiler/testData/ir/irText/expressions/callableReferences/withAdaptationForSam.fir.ir.txt index 395717b0639..2b473923c85 100644 --- a/compiler/testData/ir/irText/expressions/callableReferences/withAdaptationForSam.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/callableReferences/withAdaptationForSam.fir.ir.txt @@ -6,7 +6,7 @@ FILE fqName: fileName:/withAdaptationForSam.kt VALUE_PARAMETER name:i index:0 type:kotlin.Int 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/expressions/callableReferences/withAdaptationForSam.ir.txt b/compiler/testData/ir/irText/expressions/callableReferences/withAdaptationForSam.ir.txt index 9e681a8735e..c5761ea0bb1 100644 --- a/compiler/testData/ir/irText/expressions/callableReferences/withAdaptationForSam.ir.txt +++ b/compiler/testData/ir/irText/expressions/callableReferences/withAdaptationForSam.ir.txt @@ -6,7 +6,7 @@ FILE fqName: fileName:/withAdaptationForSam.kt VALUE_PARAMETER name:i index:0 type:kotlin.Int 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/expressions/callableReferences/withAdaptedArguments.fir.ir.txt b/compiler/testData/ir/irText/expressions/callableReferences/withAdaptedArguments.fir.ir.txt index a91455bbaf0..abd6eb311e3 100644 --- a/compiler/testData/ir/irText/expressions/callableReferences/withAdaptedArguments.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/callableReferences/withAdaptedArguments.fir.ir.txt @@ -3,14 +3,14 @@ FILE fqName: fileName:/withAdaptedArguments.kt VALUE_PARAMETER name:fn index:0 type:kotlin.Function1 BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun use (fn: kotlin.Function1): kotlin.String declared in ' - CALL 'public abstract fun invoke (p1: P1 of kotlin.Function1): R of kotlin.Function1 [operator] declared in kotlin.Function1' type=kotlin.String origin=INVOKE + CALL 'public abstract fun invoke (p1: P1 of kotlin.Function1): R of kotlin.Function1 declared in kotlin.Function1' type=kotlin.String origin=INVOKE $this: GET_VAR 'fn: kotlin.Function1 declared in .use' type=kotlin.Function1 origin=VARIABLE_AS_FUNCTION p1: CONST Int type=kotlin.Int value=1 FUN name:use0 visibility:public modality:FINAL <> (fn:kotlin.Function0) returnType:kotlin.String VALUE_PARAMETER name:fn index:0 type:kotlin.Function0 BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun use0 (fn: kotlin.Function0): kotlin.String declared in ' - CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=kotlin.String origin=INVOKE + CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=kotlin.String origin=INVOKE $this: GET_VAR 'fn: kotlin.Function0 declared in .use0' type=kotlin.Function0 origin=VARIABLE_AS_FUNCTION FUN name:coerceToUnit visibility:public modality:FINAL <> (fn:kotlin.Function1) returnType:kotlin.Unit VALUE_PARAMETER name:fn index:0 type:kotlin.Function1 @@ -42,7 +42,7 @@ FILE fqName: fileName:/withAdaptedArguments.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Host CONSTRUCTOR visibility:private <> () returnType:.Host [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:Host modality:FINAL visibility:public superTypes:[kotlin.Any]' FUN name:importedObjectMemberWithVarargs visibility:public modality:FINAL <> ($this:.Host, xs:kotlin.IntArray) returnType:kotlin.String $this: VALUE_PARAMETER name: type:.Host @@ -52,7 +52,7 @@ FILE fqName: fileName:/withAdaptedArguments.kt CONST String type=kotlin.String value="abc" 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/expressions/callableReferences/withAdaptedArguments.ir.txt b/compiler/testData/ir/irText/expressions/callableReferences/withAdaptedArguments.ir.txt index 6665ea57a7b..a1a4e17c3bb 100644 --- a/compiler/testData/ir/irText/expressions/callableReferences/withAdaptedArguments.ir.txt +++ b/compiler/testData/ir/irText/expressions/callableReferences/withAdaptedArguments.ir.txt @@ -3,14 +3,14 @@ FILE fqName: fileName:/withAdaptedArguments.kt VALUE_PARAMETER name:fn index:0 type:kotlin.Function1 BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun use (fn: kotlin.Function1): kotlin.String declared in ' - CALL 'public abstract fun invoke (p1: P1 of kotlin.Function1): R of kotlin.Function1 [operator] declared in kotlin.Function1' type=kotlin.String origin=INVOKE + CALL 'public abstract fun invoke (p1: P1 of kotlin.Function1): R of kotlin.Function1 declared in kotlin.Function1' type=kotlin.String origin=INVOKE $this: GET_VAR 'fn: kotlin.Function1 declared in .use' type=kotlin.Function1 origin=VARIABLE_AS_FUNCTION p1: CONST Int type=kotlin.Int value=1 FUN name:use0 visibility:public modality:FINAL <> (fn:kotlin.Function0) returnType:kotlin.String VALUE_PARAMETER name:fn index:0 type:kotlin.Function0 BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun use0 (fn: kotlin.Function0): kotlin.String declared in ' - CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=kotlin.String origin=INVOKE + CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=kotlin.String origin=INVOKE $this: GET_VAR 'fn: kotlin.Function0 declared in .use0' type=kotlin.Function0 origin=VARIABLE_AS_FUNCTION FUN name:coerceToUnit visibility:public modality:FINAL <> (fn:kotlin.Function1) returnType:kotlin.Unit VALUE_PARAMETER name:fn index:0 type:kotlin.Function1 @@ -42,7 +42,7 @@ FILE fqName: fileName:/withAdaptedArguments.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Host CONSTRUCTOR visibility:private <> () returnType:.Host [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:Host modality:FINAL visibility:public superTypes:[kotlin.Any]' FUN name:importedObjectMemberWithVarargs visibility:public modality:FINAL <> ($this:.Host, xs:kotlin.IntArray) returnType:kotlin.String $this: VALUE_PARAMETER name: type:.Host @@ -52,7 +52,7 @@ FILE fqName: fileName:/withAdaptedArguments.kt CONST String type=kotlin.String value="abc" 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/expressions/callableReferences/withArgumentAdaptationAndReceiver.fir.ir.txt b/compiler/testData/ir/irText/expressions/callableReferences/withArgumentAdaptationAndReceiver.fir.ir.txt index 8ceeb35e6e2..15fdac6ba97 100644 --- a/compiler/testData/ir/irText/expressions/callableReferences/withArgumentAdaptationAndReceiver.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/callableReferences/withArgumentAdaptationAndReceiver.fir.ir.txt @@ -2,14 +2,14 @@ FILE fqName: fileName:/withArgumentAdaptationAndReceiver.kt FUN name:use visibility:public modality:FINAL <> (fn:kotlin.Function1) returnType:kotlin.Unit VALUE_PARAMETER name:fn index:0 type:kotlin.Function1 BLOCK_BODY - CALL 'public abstract fun invoke (p1: P1 of kotlin.Function1): R of kotlin.Function1 [operator] declared in kotlin.Function1' type=kotlin.Unit origin=INVOKE + CALL 'public abstract fun invoke (p1: P1 of kotlin.Function1): R of kotlin.Function1 declared in kotlin.Function1' type=kotlin.Unit origin=INVOKE $this: GET_VAR 'fn: kotlin.Function1 declared in .use' type=kotlin.Function1 origin=VARIABLE_AS_FUNCTION p1: CONST Int type=kotlin.Int value=1 CLASS CLASS name:Host modality:FINAL visibility:public superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Host CONSTRUCTOR visibility:public <> () returnType:.Host [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Host modality:FINAL visibility:public superTypes:[kotlin.Any]' FUN name:withVararg visibility:public modality:FINAL <> ($this:.Host, xs:kotlin.IntArray) returnType:kotlin.String $this: VALUE_PARAMETER name: type:.Host @@ -36,7 +36,7 @@ FILE fqName: fileName:/withArgumentAdaptationAndReceiver.kt $this: VALUE_PARAMETER name: type:.Host BLOCK_BODY VAR name:h type:.Host [val] - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .Host' type=.Host origin=null + CONSTRUCTOR_CALL 'public constructor () declared in .Host' type=.Host origin=null CALL 'public final fun use (fn: kotlin.Function1): kotlin.Unit declared in ' type=kotlin.Unit origin=null fn: BLOCK type=kotlin.Function1 origin=ADAPTED_FUNCTION_REFERENCE FUN ADAPTER_FOR_CALLABLE_REFERENCE name:withVararg visibility:local modality:FINAL <> ($receiver:.Host, p0:kotlin.Int) returnType:kotlin.Unit @@ -48,12 +48,12 @@ FILE fqName: fileName:/withArgumentAdaptationAndReceiver.kt xs: VARARG type=kotlin.IntArray varargElementType=kotlin.Int GET_VAR 'p0: kotlin.Int declared in .Host.testBoundReceiverLocalVal.withVararg' type=kotlin.Int origin=null FUNCTION_REFERENCE 'local final fun withVararg (p0: kotlin.Int): kotlin.Unit declared in .Host.testBoundReceiverLocalVal' type=kotlin.Function1 origin=ADAPTED_FUNCTION_REFERENCE reflectionTarget=null - $receiver: GET_VAR 'val h: .Host [val] declared in .Host.testBoundReceiverLocalVal' type=.Host origin=null + $receiver: GET_VAR 'val h: .Host declared in .Host.testBoundReceiverLocalVal' type=.Host origin=null FUN name:testBoundReceiverLocalVar visibility:public modality:FINAL <> ($this:.Host) returnType:kotlin.Unit $this: VALUE_PARAMETER name: type:.Host BLOCK_BODY VAR name:h type:.Host [var] - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .Host' type=.Host origin=null + CONSTRUCTOR_CALL 'public constructor () declared in .Host' type=.Host origin=null CALL 'public final fun use (fn: kotlin.Function1): kotlin.Unit declared in ' type=kotlin.Unit origin=null fn: BLOCK type=kotlin.Function1 origin=ADAPTED_FUNCTION_REFERENCE FUN ADAPTER_FOR_CALLABLE_REFERENCE name:withVararg visibility:local modality:FINAL <> ($receiver:.Host, p0:kotlin.Int) returnType:kotlin.Unit @@ -65,7 +65,7 @@ FILE fqName: fileName:/withArgumentAdaptationAndReceiver.kt xs: VARARG type=kotlin.IntArray varargElementType=kotlin.Int GET_VAR 'p0: kotlin.Int declared in .Host.testBoundReceiverLocalVar.withVararg' type=kotlin.Int origin=null FUNCTION_REFERENCE 'local final fun withVararg (p0: kotlin.Int): kotlin.Unit declared in .Host.testBoundReceiverLocalVar' type=kotlin.Function1 origin=ADAPTED_FUNCTION_REFERENCE reflectionTarget=null - $receiver: GET_VAR 'var h: .Host [var] declared in .Host.testBoundReceiverLocalVar' type=.Host origin=null + $receiver: GET_VAR 'var h: .Host declared in .Host.testBoundReceiverLocalVar' type=.Host origin=null FUN name:testBoundReceiverParameter visibility:public modality:FINAL <> ($this:.Host, h:.Host) returnType:kotlin.Unit $this: VALUE_PARAMETER name: type:.Host VALUE_PARAMETER name:h index:0 type:.Host @@ -96,10 +96,10 @@ FILE fqName: fileName:/withArgumentAdaptationAndReceiver.kt xs: VARARG type=kotlin.IntArray varargElementType=kotlin.Int GET_VAR 'p0: kotlin.Int declared in .Host.testBoundReceiverExpression.withVararg' type=kotlin.Int origin=null FUNCTION_REFERENCE 'local final fun withVararg (p0: kotlin.Int): kotlin.Unit declared in .Host.testBoundReceiverExpression' type=kotlin.Function1 origin=ADAPTED_FUNCTION_REFERENCE reflectionTarget=null - $receiver: CONSTRUCTOR_CALL 'public constructor () [primary] declared in .Host' type=.Host origin=null + $receiver: CONSTRUCTOR_CALL 'public constructor () declared in .Host' type=.Host 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/expressions/callableReferences/withArgumentAdaptationAndReceiver.ir.txt b/compiler/testData/ir/irText/expressions/callableReferences/withArgumentAdaptationAndReceiver.ir.txt index f5053154d12..711101420f9 100644 --- a/compiler/testData/ir/irText/expressions/callableReferences/withArgumentAdaptationAndReceiver.ir.txt +++ b/compiler/testData/ir/irText/expressions/callableReferences/withArgumentAdaptationAndReceiver.ir.txt @@ -2,14 +2,14 @@ FILE fqName: fileName:/withArgumentAdaptationAndReceiver.kt FUN name:use visibility:public modality:FINAL <> (fn:kotlin.Function1) returnType:kotlin.Unit VALUE_PARAMETER name:fn index:0 type:kotlin.Function1 BLOCK_BODY - CALL 'public abstract fun invoke (p1: P1 of kotlin.Function1): R of kotlin.Function1 [operator] declared in kotlin.Function1' type=kotlin.Unit origin=INVOKE + CALL 'public abstract fun invoke (p1: P1 of kotlin.Function1): R of kotlin.Function1 declared in kotlin.Function1' type=kotlin.Unit origin=INVOKE $this: GET_VAR 'fn: kotlin.Function1 declared in .use' type=kotlin.Function1 origin=VARIABLE_AS_FUNCTION p1: CONST Int type=kotlin.Int value=1 CLASS CLASS name:Host modality:FINAL visibility:public superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Host CONSTRUCTOR visibility:public <> () returnType:.Host [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Host modality:FINAL visibility:public superTypes:[kotlin.Any]' FUN name:withVararg visibility:public modality:FINAL <> ($this:.Host, xs:kotlin.IntArray) returnType:kotlin.String $this: VALUE_PARAMETER name: type:.Host @@ -37,7 +37,7 @@ FILE fqName: fileName:/withArgumentAdaptationAndReceiver.kt $this: VALUE_PARAMETER name: type:.Host BLOCK_BODY VAR name:h type:.Host [val] - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .Host' type=.Host origin=null + CONSTRUCTOR_CALL 'public constructor () declared in .Host' type=.Host origin=null CALL 'public final fun use (fn: kotlin.Function1): kotlin.Unit declared in ' type=kotlin.Unit origin=null fn: BLOCK type=kotlin.Function1 origin=ADAPTED_FUNCTION_REFERENCE FUN ADAPTER_FOR_CALLABLE_REFERENCE name:withVararg visibility:local modality:FINAL <> ($receiver:.Host, p0:kotlin.Int) returnType:kotlin.Unit @@ -50,12 +50,12 @@ FILE fqName: fileName:/withArgumentAdaptationAndReceiver.kt xs: VARARG type=kotlin.IntArray varargElementType=kotlin.Int GET_VAR 'p0: kotlin.Int declared in .Host.testBoundReceiverLocalVal.withVararg' type=kotlin.Int origin=null FUNCTION_REFERENCE 'local final fun withVararg (p0: kotlin.Int): kotlin.Unit declared in .Host.testBoundReceiverLocalVal' type=kotlin.Function1 origin=ADAPTED_FUNCTION_REFERENCE reflectionTarget=public final fun withVararg (vararg xs: kotlin.Int): kotlin.String declared in .Host - $receiver: GET_VAR 'val h: .Host [val] declared in .Host.testBoundReceiverLocalVal' type=.Host origin=null + $receiver: GET_VAR 'val h: .Host declared in .Host.testBoundReceiverLocalVal' type=.Host origin=null FUN name:testBoundReceiverLocalVar visibility:public modality:FINAL <> ($this:.Host) returnType:kotlin.Unit $this: VALUE_PARAMETER name: type:.Host BLOCK_BODY VAR name:h type:.Host [var] - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .Host' type=.Host origin=null + CONSTRUCTOR_CALL 'public constructor () declared in .Host' type=.Host origin=null CALL 'public final fun use (fn: kotlin.Function1): kotlin.Unit declared in ' type=kotlin.Unit origin=null fn: BLOCK type=kotlin.Function1 origin=ADAPTED_FUNCTION_REFERENCE FUN ADAPTER_FOR_CALLABLE_REFERENCE name:withVararg visibility:local modality:FINAL <> ($receiver:.Host, p0:kotlin.Int) returnType:kotlin.Unit @@ -68,7 +68,7 @@ FILE fqName: fileName:/withArgumentAdaptationAndReceiver.kt xs: VARARG type=kotlin.IntArray varargElementType=kotlin.Int GET_VAR 'p0: kotlin.Int declared in .Host.testBoundReceiverLocalVar.withVararg' type=kotlin.Int origin=null FUNCTION_REFERENCE 'local final fun withVararg (p0: kotlin.Int): kotlin.Unit declared in .Host.testBoundReceiverLocalVar' type=kotlin.Function1 origin=ADAPTED_FUNCTION_REFERENCE reflectionTarget=public final fun withVararg (vararg xs: kotlin.Int): kotlin.String declared in .Host - $receiver: GET_VAR 'var h: .Host [var] declared in .Host.testBoundReceiverLocalVar' type=.Host origin=null + $receiver: GET_VAR 'var h: .Host declared in .Host.testBoundReceiverLocalVar' type=.Host origin=null FUN name:testBoundReceiverParameter visibility:public modality:FINAL <> ($this:.Host, h:.Host) returnType:kotlin.Unit $this: VALUE_PARAMETER name: type:.Host VALUE_PARAMETER name:h index:0 type:.Host @@ -101,10 +101,10 @@ FILE fqName: fileName:/withArgumentAdaptationAndReceiver.kt xs: VARARG type=kotlin.IntArray varargElementType=kotlin.Int GET_VAR 'p0: kotlin.Int declared in .Host.testBoundReceiverExpression.withVararg' type=kotlin.Int origin=null FUNCTION_REFERENCE 'local final fun withVararg (p0: kotlin.Int): kotlin.Unit declared in .Host.testBoundReceiverExpression' type=kotlin.Function1 origin=ADAPTED_FUNCTION_REFERENCE reflectionTarget=public final fun withVararg (vararg xs: kotlin.Int): kotlin.String declared in .Host - $receiver: CONSTRUCTOR_CALL 'public constructor () [primary] declared in .Host' type=.Host origin=null + $receiver: CONSTRUCTOR_CALL 'public constructor () declared in .Host' type=.Host 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/expressions/callableReferences/withVarargViewedAsArray.fir.ir.txt b/compiler/testData/ir/irText/expressions/callableReferences/withVarargViewedAsArray.fir.ir.txt index 16b5cec4835..7402497dd98 100644 --- a/compiler/testData/ir/irText/expressions/callableReferences/withVarargViewedAsArray.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/callableReferences/withVarargViewedAsArray.fir.ir.txt @@ -6,22 +6,22 @@ FILE fqName: fileName:/withVarargViewedAsArray.kt CONST Int type=kotlin.Int value=0 BLOCK type=kotlin.Unit origin=FOR_LOOP VAR FOR_LOOP_ITERATOR name:tmp_0 type:kotlin.collections.IntIterator [val] - CALL 'public final fun iterator (): kotlin.collections.IntIterator [operator] declared in kotlin.IntArray' type=kotlin.collections.IntIterator origin=null - $this: GET_VAR 'args: kotlin.IntArray [vararg] declared in .sum' type=kotlin.IntArray origin=null + CALL 'public final fun iterator (): kotlin.collections.IntIterator declared in kotlin.IntArray' type=kotlin.collections.IntIterator origin=null + $this: GET_VAR 'args: kotlin.IntArray declared in .sum' type=kotlin.IntArray origin=null WHILE label=null origin=FOR_LOOP_INNER_WHILE - condition: CALL 'public abstract fun hasNext (): kotlin.Boolean [fake_override,operator] declared in kotlin.collections.IntIterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT - $this: GET_VAR 'val tmp_0: kotlin.collections.IntIterator [val] declared in .sum' type=kotlin.collections.IntIterator origin=null + condition: CALL 'public abstract fun hasNext (): kotlin.Boolean declared in kotlin.collections.IntIterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT + $this: GET_VAR 'val tmp_0: kotlin.collections.IntIterator declared in .sum' type=kotlin.collections.IntIterator origin=null body: BLOCK type=kotlin.Unit origin=FOR_LOOP_INNER_WHILE VAR FOR_LOOP_VARIABLE name:arg type:kotlin.Int [val] - CALL 'public final fun next (): kotlin.Int [operator] declared in kotlin.collections.IntIterator' type=kotlin.Int origin=FOR_LOOP_NEXT - $this: GET_VAR 'val tmp_0: kotlin.collections.IntIterator [val] declared in .sum' type=kotlin.collections.IntIterator origin=null + CALL 'public final fun next (): kotlin.Int declared in kotlin.collections.IntIterator' type=kotlin.Int origin=FOR_LOOP_NEXT + $this: GET_VAR 'val tmp_0: kotlin.collections.IntIterator declared in .sum' type=kotlin.collections.IntIterator origin=null BLOCK type=kotlin.Unit origin=null - SET_VAR 'var result: kotlin.Int [var] declared in .sum' type=kotlin.Unit origin=PLUSEQ - CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'var result: kotlin.Int [var] declared in .sum' type=kotlin.Int origin=null - other: GET_VAR 'val arg: kotlin.Int [val] declared in .sum' type=kotlin.Int origin=null + SET_VAR 'var result: kotlin.Int declared in .sum' type=kotlin.Unit origin=PLUSEQ + CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'var result: kotlin.Int declared in .sum' type=kotlin.Int origin=null + other: GET_VAR 'val arg: kotlin.Int declared in .sum' type=kotlin.Int origin=null RETURN type=kotlin.Nothing from='public final fun sum (vararg args: kotlin.Int): kotlin.Int declared in ' - GET_VAR 'var result: kotlin.Int [var] declared in .sum' type=kotlin.Int origin=null + GET_VAR 'var result: kotlin.Int declared in .sum' type=kotlin.Int origin=null FUN name:nsum visibility:public modality:FINAL <> (args:kotlin.Array) returnType:kotlin.Int VALUE_PARAMETER name:args index:0 type:kotlin.Array varargElementType:kotlin.Number [vararg] BLOCK_BODY @@ -31,15 +31,15 @@ FILE fqName: fileName:/withVarargViewedAsArray.kt SPREAD_ELEMENT CONSTRUCTOR_CALL 'public constructor (size: kotlin.Int, init: kotlin.Function1) declared in kotlin.IntArray' type=kotlin.IntArray origin=null size: CALL 'public final fun (): kotlin.Int declared in kotlin.Array' type=kotlin.Int origin=GET_PROPERTY - $this: GET_VAR 'args: kotlin.Array [vararg] declared in .nsum' type=kotlin.Array origin=null + $this: GET_VAR 'args: kotlin.Array declared in .nsum' type=kotlin.Array origin=null init: FUN_EXPR type=kotlin.Function1 origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> (it:kotlin.Int) returnType:kotlin.Int VALUE_PARAMETER name:it index:0 type:kotlin.Int BLOCK_BODY RETURN type=kotlin.Nothing from='local final fun (it: kotlin.Int): kotlin.Int declared in .nsum' CALL 'public abstract fun toInt (): kotlin.Int declared in kotlin.Number' type=kotlin.Int origin=null - $this: CALL 'public final fun get (index: kotlin.Int): T of kotlin.Array [operator] declared in kotlin.Array' type=kotlin.Number origin=null - $this: GET_VAR 'args: kotlin.Array [vararg] declared in .nsum' type=kotlin.Array origin=null + $this: CALL 'public final fun get (index: kotlin.Int): T of kotlin.Array declared in kotlin.Array' type=kotlin.Number origin=null + $this: GET_VAR 'args: kotlin.Array declared in .nsum' type=kotlin.Array origin=null index: GET_VAR 'it: kotlin.Int declared in .nsum.' type=kotlin.Int origin=null FUN name:zap visibility:public modality:FINAL <> (b:kotlin.Array, k:kotlin.Int) returnType:kotlin.Unit VALUE_PARAMETER name:b index:0 type:kotlin.Array varargElementType:kotlin.String [vararg] diff --git a/compiler/testData/ir/irText/expressions/callableReferences/withVarargViewedAsArray.ir.txt b/compiler/testData/ir/irText/expressions/callableReferences/withVarargViewedAsArray.ir.txt index 684f8df7dc6..ec061cd0a92 100644 --- a/compiler/testData/ir/irText/expressions/callableReferences/withVarargViewedAsArray.ir.txt +++ b/compiler/testData/ir/irText/expressions/callableReferences/withVarargViewedAsArray.ir.txt @@ -6,21 +6,21 @@ FILE fqName: fileName:/withVarargViewedAsArray.kt CONST Int type=kotlin.Int value=0 BLOCK type=kotlin.Unit origin=FOR_LOOP VAR FOR_LOOP_ITERATOR name:tmp_0 type:kotlin.collections.IntIterator [val] - CALL 'public final fun iterator (): kotlin.collections.IntIterator [operator] declared in kotlin.IntArray' type=kotlin.collections.IntIterator origin=FOR_LOOP_ITERATOR - $this: GET_VAR 'args: kotlin.IntArray [vararg] declared in .sum' type=kotlin.IntArray origin=null + CALL 'public final fun iterator (): kotlin.collections.IntIterator declared in kotlin.IntArray' type=kotlin.collections.IntIterator origin=FOR_LOOP_ITERATOR + $this: GET_VAR 'args: kotlin.IntArray declared in .sum' type=kotlin.IntArray origin=null WHILE label=null origin=FOR_LOOP_INNER_WHILE - condition: CALL 'public abstract fun hasNext (): kotlin.Boolean [fake_override,operator] declared in kotlin.collections.IntIterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT - $this: GET_VAR 'val tmp_0: kotlin.collections.IntIterator [val] declared in .sum' type=kotlin.collections.IntIterator origin=null + condition: CALL 'public abstract fun hasNext (): kotlin.Boolean declared in kotlin.collections.IntIterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT + $this: GET_VAR 'val tmp_0: kotlin.collections.IntIterator declared in .sum' type=kotlin.collections.IntIterator origin=null body: BLOCK type=kotlin.Unit origin=FOR_LOOP_INNER_WHILE VAR FOR_LOOP_VARIABLE name:arg type:kotlin.Int [val] - CALL 'public final fun next (): kotlin.Int [operator] declared in kotlin.collections.IntIterator' type=kotlin.Int origin=FOR_LOOP_NEXT - $this: GET_VAR 'val tmp_0: kotlin.collections.IntIterator [val] declared in .sum' type=kotlin.collections.IntIterator origin=null - SET_VAR 'var result: kotlin.Int [var] declared in .sum' type=kotlin.Unit origin=PLUSEQ - CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ - $this: GET_VAR 'var result: kotlin.Int [var] declared in .sum' type=kotlin.Int origin=PLUSEQ - other: GET_VAR 'val arg: kotlin.Int [val] declared in .sum' type=kotlin.Int origin=null + CALL 'public final fun next (): kotlin.Int declared in kotlin.collections.IntIterator' type=kotlin.Int origin=FOR_LOOP_NEXT + $this: GET_VAR 'val tmp_0: kotlin.collections.IntIterator declared in .sum' type=kotlin.collections.IntIterator origin=null + SET_VAR 'var result: kotlin.Int declared in .sum' type=kotlin.Unit origin=PLUSEQ + CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ + $this: GET_VAR 'var result: kotlin.Int declared in .sum' type=kotlin.Int origin=PLUSEQ + other: GET_VAR 'val arg: kotlin.Int declared in .sum' type=kotlin.Int origin=null RETURN type=kotlin.Nothing from='public final fun sum (vararg args: kotlin.Int): kotlin.Int declared in ' - GET_VAR 'var result: kotlin.Int [var] declared in .sum' type=kotlin.Int origin=null + GET_VAR 'var result: kotlin.Int declared in .sum' type=kotlin.Int origin=null FUN name:nsum visibility:public modality:FINAL <> (args:kotlin.Array) returnType:kotlin.Int VALUE_PARAMETER name:args index:0 type:kotlin.Array varargElementType:kotlin.Number [vararg] BLOCK_BODY @@ -30,15 +30,15 @@ FILE fqName: fileName:/withVarargViewedAsArray.kt SPREAD_ELEMENT CONSTRUCTOR_CALL 'public constructor (size: kotlin.Int, init: kotlin.Function1) declared in kotlin.IntArray' type=kotlin.IntArray origin=null size: CALL 'public final fun (): kotlin.Int declared in kotlin.Array' type=kotlin.Int origin=GET_PROPERTY - $this: GET_VAR 'args: kotlin.Array [vararg] declared in .nsum' type=kotlin.Array origin=null + $this: GET_VAR 'args: kotlin.Array declared in .nsum' type=kotlin.Array origin=null init: FUN_EXPR type=kotlin.Function1 origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> (it:kotlin.Int) returnType:kotlin.Int VALUE_PARAMETER name:it index:0 type:kotlin.Int BLOCK_BODY RETURN type=kotlin.Nothing from='local final fun (it: kotlin.Int): kotlin.Int declared in .nsum' CALL 'public abstract fun toInt (): kotlin.Int declared in kotlin.Number' type=kotlin.Int origin=null - $this: CALL 'public final fun get (index: kotlin.Int): T of kotlin.Array [operator] declared in kotlin.Array' type=kotlin.Number origin=GET_ARRAY_ELEMENT - $this: GET_VAR 'args: kotlin.Array [vararg] declared in .nsum' type=kotlin.Array origin=null + $this: CALL 'public final fun get (index: kotlin.Int): T of kotlin.Array declared in kotlin.Array' type=kotlin.Number origin=GET_ARRAY_ELEMENT + $this: GET_VAR 'args: kotlin.Array declared in .nsum' type=kotlin.Array origin=null index: GET_VAR 'it: kotlin.Int declared in .nsum.' type=kotlin.Int origin=null FUN name:zap visibility:public modality:FINAL <> (b:kotlin.Array, k:kotlin.Int) returnType:kotlin.Unit VALUE_PARAMETER name:b index:0 type:kotlin.Array varargElementType:kotlin.String [vararg] diff --git a/compiler/testData/ir/irText/expressions/castToTypeParameter.ir.txt b/compiler/testData/ir/irText/expressions/castToTypeParameter.ir.txt index 0846e253d49..dd5a3ff40aa 100644 --- a/compiler/testData/ir/irText/expressions/castToTypeParameter.ir.txt +++ b/compiler/testData/ir/irText/expressions/castToTypeParameter.ir.txt @@ -27,7 +27,7 @@ FILE fqName: fileName:/castToTypeParameter.kt TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false CONSTRUCTOR visibility:public <> () returnType:.Host.Host> [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Host modality:FINAL visibility:public superTypes:[kotlin.Any]' FUN name:castMemberFun visibility:public modality:FINAL <> ($this:.Host.Host>, x:kotlin.Any) returnType:T of .Host $this: VALUE_PARAMETER name: type:.Host.Host> @@ -80,7 +80,7 @@ FILE fqName: fileName:/castToTypeParameter.kt GET_VAR ': TV of .Host. declared in .Host.' type=TV of .Host. 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/expressions/catchParameterAccess.fir.ir.txt b/compiler/testData/ir/irText/expressions/catchParameterAccess.fir.ir.txt index 189b3e13b94..128ba7a39cd 100644 --- a/compiler/testData/ir/irText/expressions/catchParameterAccess.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/catchParameterAccess.fir.ir.txt @@ -5,10 +5,10 @@ FILE fqName: fileName:/catchParameterAccess.kt RETURN type=kotlin.Nothing from='public final fun test (f: kotlin.Function0): kotlin.Unit declared in ' TRY type=kotlin.Unit try: BLOCK type=kotlin.Unit origin=null - CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=kotlin.Unit origin=INVOKE + CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=kotlin.Unit origin=INVOKE $this: GET_VAR 'f: kotlin.Function0 declared in .test' type=kotlin.Function0 origin=VARIABLE_AS_FUNCTION - CATCH parameter=val e: java.lang.Exception [val] declared in .test + CATCH parameter=val e: java.lang.Exception declared in .test VAR CATCH_PARAMETER name:e type:java.lang.Exception [val] BLOCK type=kotlin.Nothing origin=null THROW type=kotlin.Nothing - GET_VAR 'val e: java.lang.Exception [val] declared in .test' type=java.lang.Exception origin=null + GET_VAR 'val e: java.lang.Exception declared in .test' type=java.lang.Exception origin=null diff --git a/compiler/testData/ir/irText/expressions/catchParameterAccess.ir.txt b/compiler/testData/ir/irText/expressions/catchParameterAccess.ir.txt index a374b4a9724..2b5161076f8 100644 --- a/compiler/testData/ir/irText/expressions/catchParameterAccess.ir.txt +++ b/compiler/testData/ir/irText/expressions/catchParameterAccess.ir.txt @@ -5,10 +5,10 @@ FILE fqName: fileName:/catchParameterAccess.kt RETURN type=kotlin.Nothing from='public final fun test (f: kotlin.Function0): kotlin.Unit declared in ' TRY type=kotlin.Unit try: BLOCK type=kotlin.Unit origin=null - CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=kotlin.Unit origin=INVOKE + CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=kotlin.Unit origin=INVOKE $this: GET_VAR 'f: kotlin.Function0 declared in .test' type=kotlin.Function0 origin=VARIABLE_AS_FUNCTION - CATCH parameter=val e: java.lang.Exception{ kotlin.Exception } [val] declared in .test + CATCH parameter=val e: java.lang.Exception{ kotlin.Exception } declared in .test VAR CATCH_PARAMETER name:e type:java.lang.Exception{ kotlin.Exception } [val] BLOCK type=kotlin.Nothing origin=null THROW type=kotlin.Nothing - GET_VAR 'val e: java.lang.Exception{ kotlin.Exception } [val] declared in .test' type=java.lang.Exception{ kotlin.Exception } origin=null + GET_VAR 'val e: java.lang.Exception{ kotlin.Exception } declared in .test' type=java.lang.Exception{ kotlin.Exception } origin=null diff --git a/compiler/testData/ir/irText/expressions/chainOfSafeCalls.ir.txt b/compiler/testData/ir/irText/expressions/chainOfSafeCalls.ir.txt index ed8e621b69d..ffa4e50d9a6 100644 --- a/compiler/testData/ir/irText/expressions/chainOfSafeCalls.ir.txt +++ b/compiler/testData/ir/irText/expressions/chainOfSafeCalls.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/chainOfSafeCalls.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.C CONSTRUCTOR visibility:public <> () returnType:.C [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C modality:FINAL visibility:public superTypes:[kotlin.Any]' FUN name:foo visibility:public modality:FINAL <> ($this:.C) returnType:.C $this: VALUE_PARAMETER name: type:.C @@ -17,7 +17,7 @@ FILE fqName: fileName:/chainOfSafeCalls.kt GET_VAR ': .C declared in .C.bar' type=.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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -44,40 +44,40 @@ FILE fqName: fileName:/chainOfSafeCalls.kt WHEN type=.C? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_3: .C? [val] declared in .test' type=.C? origin=null + arg0: GET_VAR 'val tmp_3: .C? declared in .test' type=.C? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public final fun foo (): .C declared in .C' type=.C origin=null - $this: GET_VAR 'val tmp_3: .C? [val] declared in .test' type=.C? origin=null + $this: GET_VAR 'val tmp_3: .C? declared in .test' type=.C? origin=null WHEN type=.C? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_2: .C? [val] declared in .test' type=.C? origin=null + arg0: GET_VAR 'val tmp_2: .C? declared in .test' type=.C? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public final fun bar (): .C? declared in .C' type=.C? origin=null - $this: GET_VAR 'val tmp_2: .C? [val] declared in .test' type=.C? origin=null + $this: GET_VAR 'val tmp_2: .C? declared in .test' type=.C? origin=null WHEN type=.C? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_1: .C? [val] declared in .test' type=.C? origin=null + arg0: GET_VAR 'val tmp_1: .C? declared in .test' type=.C? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public final fun foo (): .C declared in .C' type=.C origin=null - $this: GET_VAR 'val tmp_1: .C? [val] declared in .test' type=.C? origin=null + $this: GET_VAR 'val tmp_1: .C? declared in .test' type=.C? origin=null WHEN type=.C? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_0: .C? [val] declared in .test' type=.C? origin=null + arg0: GET_VAR 'val tmp_0: .C? declared in .test' type=.C? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public final fun foo (): .C declared in .C' type=.C origin=null - $this: GET_VAR 'val tmp_0: .C? [val] declared in .test' type=.C? origin=null + $this: GET_VAR 'val tmp_0: .C? declared in .test' type=.C? origin=null diff --git a/compiler/testData/ir/irText/expressions/chainedFunSuspendConversionForSimpleExpression.fir.ir.txt b/compiler/testData/ir/irText/expressions/chainedFunSuspendConversionForSimpleExpression.fir.ir.txt index 6772ebf733e..2968bdea80c 100644 --- a/compiler/testData/ir/irText/expressions/chainedFunSuspendConversionForSimpleExpression.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/chainedFunSuspendConversionForSimpleExpression.fir.ir.txt @@ -5,7 +5,7 @@ FILE fqName: fileName:/chainedFunSuspendConversionForSimpleExpression.kt $this: VALUE_PARAMETER name: type:.SuspendRunnable 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -37,9 +37,9 @@ FILE fqName: fileName:/chainedFunSuspendConversionForSimpleExpression.kt FUN ADAPTER_FOR_SUSPEND_CONVERSION name:suspendConversion visibility:local modality:FINAL <> ($receiver:kotlin.Function0) returnType:kotlin.Unit [suspend] $receiver: VALUE_PARAMETER ADAPTER_PARAMETER_FOR_SUSPEND_CONVERSION name:callee type:kotlin.Function0 BLOCK_BODY - CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=kotlin.Unit origin=null + CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=kotlin.Unit origin=null $this: GET_VAR 'callee: kotlin.Function0 declared in .test.suspendConversion' type=kotlin.Function0 origin=null - FUNCTION_REFERENCE 'local final fun suspendConversion (): kotlin.Unit [suspend] declared in .test' type=kotlin.coroutines.SuspendFunction0 origin=SUSPEND_CONVERSION reflectionTarget=null + FUNCTION_REFERENCE 'local final fun suspendConversion (): kotlin.Unit declared in .test' type=kotlin.coroutines.SuspendFunction0 origin=SUSPEND_CONVERSION reflectionTarget=null $receiver: GET_VAR 'f: kotlin.Function0 declared in .test' type=kotlin.Function0 origin=null CALL 'public final fun foo (s: .SuspendRunnable): kotlin.Unit declared in ' type=kotlin.Unit origin=null s: TYPE_OP type=.SuspendRunnable origin=SAM_CONVERSION typeOperand=.SuspendRunnable @@ -48,9 +48,9 @@ FILE fqName: fileName:/chainedFunSuspendConversionForSimpleExpression.kt FUN ADAPTER_FOR_SUSPEND_CONVERSION name:suspendConversion visibility:local modality:FINAL <> ($receiver:kotlin.Function0) returnType:kotlin.Unit [suspend] $receiver: VALUE_PARAMETER ADAPTER_PARAMETER_FOR_SUSPEND_CONVERSION name:callee type:kotlin.Function0 BLOCK_BODY - CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=kotlin.Unit origin=null + CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=kotlin.Unit origin=null $this: GET_VAR 'callee: kotlin.Function0 declared in .test.suspendConversion' type=kotlin.Function0 origin=null - FUNCTION_REFERENCE 'local final fun suspendConversion (): kotlin.Unit [suspend] declared in .test' type=kotlin.coroutines.SuspendFunction0 origin=SUSPEND_CONVERSION reflectionTarget=null + FUNCTION_REFERENCE 'local final fun suspendConversion (): kotlin.Unit declared in .test' type=kotlin.coroutines.SuspendFunction0 origin=SUSPEND_CONVERSION reflectionTarget=null $receiver: CALL 'public final fun bar (): kotlin.Function0 declared in ' type=kotlin.Function0 origin=null VAR name:t type:kotlin.Function0 [var] GET_VAR 'f: kotlin.Function0 declared in .test' type=kotlin.Function0 origin=null @@ -61,7 +61,7 @@ FILE fqName: fileName:/chainedFunSuspendConversionForSimpleExpression.kt FUN ADAPTER_FOR_SUSPEND_CONVERSION name:suspendConversion visibility:local modality:FINAL <> ($receiver:kotlin.Function0) returnType:kotlin.Unit [suspend] $receiver: VALUE_PARAMETER ADAPTER_PARAMETER_FOR_SUSPEND_CONVERSION name:callee type:kotlin.Function0 BLOCK_BODY - CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=kotlin.Unit origin=null + CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=kotlin.Unit origin=null $this: GET_VAR 'callee: kotlin.Function0 declared in .test.suspendConversion' type=kotlin.Function0 origin=null - FUNCTION_REFERENCE 'local final fun suspendConversion (): kotlin.Unit [suspend] declared in .test' type=kotlin.coroutines.SuspendFunction0 origin=SUSPEND_CONVERSION reflectionTarget=null - $receiver: GET_VAR 'var t: kotlin.Function0 [var] declared in .test' type=kotlin.Function0 origin=null + FUNCTION_REFERENCE 'local final fun suspendConversion (): kotlin.Unit declared in .test' type=kotlin.coroutines.SuspendFunction0 origin=SUSPEND_CONVERSION reflectionTarget=null + $receiver: GET_VAR 'var t: kotlin.Function0 declared in .test' type=kotlin.Function0 origin=null diff --git a/compiler/testData/ir/irText/expressions/chainedFunSuspendConversionForSimpleExpression.ir.txt b/compiler/testData/ir/irText/expressions/chainedFunSuspendConversionForSimpleExpression.ir.txt index 54f76df2046..b3d6e2e7886 100644 --- a/compiler/testData/ir/irText/expressions/chainedFunSuspendConversionForSimpleExpression.ir.txt +++ b/compiler/testData/ir/irText/expressions/chainedFunSuspendConversionForSimpleExpression.ir.txt @@ -5,7 +5,7 @@ FILE fqName: fileName:/chainedFunSuspendConversionForSimpleExpression.kt $this: VALUE_PARAMETER name: type:.SuspendRunnable 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -35,20 +35,20 @@ FILE fqName: fileName:/chainedFunSuspendConversionForSimpleExpression.kt FUN ADAPTER_FOR_SUSPEND_CONVERSION name:suspendConversion0 visibility:local modality:FINAL <> ($receiver:kotlin.Function0) returnType:kotlin.Unit [suspend] $receiver: VALUE_PARAMETER ADAPTER_PARAMETER_FOR_SUSPEND_CONVERSION name:callee type:kotlin.Function0 BLOCK_BODY - CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=kotlin.Unit origin=null + CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=kotlin.Unit origin=null $this: GET_VAR 'callee: kotlin.Function0 declared in .test.suspendConversion0' type=kotlin.Function0 origin=null TYPE_OP type=.SuspendRunnable origin=SAM_CONVERSION typeOperand=.SuspendRunnable - FUNCTION_REFERENCE 'local final fun suspendConversion0 (): kotlin.Unit [suspend] declared in .test' type=kotlin.coroutines.SuspendFunction0 origin=SUSPEND_CONVERSION reflectionTarget=null + FUNCTION_REFERENCE 'local final fun suspendConversion0 (): kotlin.Unit declared in .test' type=kotlin.coroutines.SuspendFunction0 origin=SUSPEND_CONVERSION reflectionTarget=null $receiver: GET_VAR 'f: kotlin.Function0 declared in .test' type=kotlin.Function0 origin=null CALL 'public final fun foo (s: .SuspendRunnable): kotlin.Unit declared in ' type=kotlin.Unit origin=null s: BLOCK type=.SuspendRunnable origin=SUSPEND_CONVERSION FUN ADAPTER_FOR_SUSPEND_CONVERSION name:suspendConversion1 visibility:local modality:FINAL <> ($receiver:kotlin.Function0) returnType:kotlin.Unit [suspend] $receiver: VALUE_PARAMETER ADAPTER_PARAMETER_FOR_SUSPEND_CONVERSION name:callee type:kotlin.Function0 BLOCK_BODY - CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=kotlin.Unit origin=null + CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=kotlin.Unit origin=null $this: GET_VAR 'callee: kotlin.Function0 declared in .test.suspendConversion1' type=kotlin.Function0 origin=null TYPE_OP type=.SuspendRunnable origin=SAM_CONVERSION typeOperand=.SuspendRunnable - FUNCTION_REFERENCE 'local final fun suspendConversion1 (): kotlin.Unit [suspend] declared in .test' type=kotlin.coroutines.SuspendFunction0 origin=SUSPEND_CONVERSION reflectionTarget=null + FUNCTION_REFERENCE 'local final fun suspendConversion1 (): kotlin.Unit declared in .test' type=kotlin.coroutines.SuspendFunction0 origin=SUSPEND_CONVERSION reflectionTarget=null $receiver: CALL 'public final fun bar (): kotlin.Function0 declared in ' type=kotlin.Function0 origin=null VAR name:t type:kotlin.Function0 [var] GET_VAR 'f: kotlin.Function0 declared in .test' type=kotlin.Function0 origin=null @@ -57,8 +57,8 @@ FILE fqName: fileName:/chainedFunSuspendConversionForSimpleExpression.kt FUN ADAPTER_FOR_SUSPEND_CONVERSION name:suspendConversion2 visibility:local modality:FINAL <> ($receiver:kotlin.Function0) returnType:kotlin.Unit [suspend] $receiver: VALUE_PARAMETER ADAPTER_PARAMETER_FOR_SUSPEND_CONVERSION name:callee type:kotlin.Function0 BLOCK_BODY - CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=kotlin.Unit origin=null + CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=kotlin.Unit origin=null $this: GET_VAR 'callee: kotlin.Function0 declared in .test.suspendConversion2' type=kotlin.Function0 origin=null TYPE_OP type=.SuspendRunnable origin=SAM_CONVERSION typeOperand=.SuspendRunnable - FUNCTION_REFERENCE 'local final fun suspendConversion2 (): kotlin.Unit [suspend] declared in .test' type=kotlin.coroutines.SuspendFunction0 origin=SUSPEND_CONVERSION reflectionTarget=null - $receiver: GET_VAR 'var t: kotlin.Function0 [var] declared in .test' type=kotlin.Function0 origin=null + FUNCTION_REFERENCE 'local final fun suspendConversion2 (): kotlin.Unit declared in .test' type=kotlin.coroutines.SuspendFunction0 origin=SUSPEND_CONVERSION reflectionTarget=null + $receiver: GET_VAR 'var t: kotlin.Function0 declared in .test' type=kotlin.Function0 origin=null diff --git a/compiler/testData/ir/irText/expressions/classReference.ir.txt b/compiler/testData/ir/irText/expressions/classReference.ir.txt index cadd4a41df2..445ce30de88 100644 --- a/compiler/testData/ir/irText/expressions/classReference.ir.txt +++ b/compiler/testData/ir/irText/expressions/classReference.ir.txt @@ -3,11 +3,11 @@ FILE fqName: fileName:/classReference.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.A CONSTRUCTOR visibility:public <> () returnType:.A [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:A modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -24,7 +24,7 @@ FILE fqName: fileName:/classReference.kt CLASS_REFERENCE 'CLASS CLASS name:A modality:FINAL visibility:public superTypes:[kotlin.Any]' type=kotlin.reflect.KClass<.A> TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit GET_CLASS type=kotlin.reflect.KClass.A> - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .A' type=.A origin=null + CONSTRUCTOR_CALL 'public constructor () declared in .A' type=.A origin=null TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit CALL 'public final fun (): java.lang.Class> declared in kotlin.jvm' type=java.lang.Class<.A> origin=GET_PROPERTY : .A @@ -33,4 +33,4 @@ FILE fqName: fileName:/classReference.kt CALL 'public final fun (): java.lang.Class> declared in kotlin.jvm' type=java.lang.Class.A> origin=GET_PROPERTY : .A $receiver: GET_CLASS type=kotlin.reflect.KClass.A> - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .A' type=.A origin=null + CONSTRUCTOR_CALL 'public constructor () declared in .A' type=.A origin=null diff --git a/compiler/testData/ir/irText/expressions/coercionToUnit.fir.ir.txt b/compiler/testData/ir/irText/expressions/coercionToUnit.fir.ir.txt index 3ab2be2bdd7..8fea040be5d 100644 --- a/compiler/testData/ir/irText/expressions/coercionToUnit.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/coercionToUnit.fir.ir.txt @@ -28,13 +28,13 @@ FILE fqName: fileName:/coercionToUnit.kt WHEN type=kotlin.Unit? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_0: @[FlexibleNullability] java.io.PrintStream? [val] declared in .test3' type=@[FlexibleNullability] java.io.PrintStream? origin=null + arg0: GET_VAR 'val tmp_0: @[FlexibleNullability] java.io.PrintStream? declared in .test3' type=@[FlexibleNullability] java.io.PrintStream? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public open fun println (p0: @[FlexibleNullability] kotlin.String?): kotlin.Unit declared in java.io.PrintStream' type=kotlin.Unit origin=null - $this: GET_VAR 'val tmp_0: @[FlexibleNullability] java.io.PrintStream? [val] declared in .test3' type=@[FlexibleNullability] java.io.PrintStream? origin=null + $this: GET_VAR 'val tmp_0: @[FlexibleNullability] java.io.PrintStream? declared in .test3' type=@[FlexibleNullability] java.io.PrintStream? origin=null p0: CONST String type=kotlin.String value="Hello," TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit BLOCK type=kotlin.Unit? origin=SAFE_CALL @@ -43,11 +43,11 @@ FILE fqName: fileName:/coercionToUnit.kt WHEN type=kotlin.Unit? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_1: @[FlexibleNullability] java.io.PrintStream? [val] declared in .test3' type=@[FlexibleNullability] java.io.PrintStream? origin=null + arg0: GET_VAR 'val tmp_1: @[FlexibleNullability] java.io.PrintStream? declared in .test3' type=@[FlexibleNullability] java.io.PrintStream? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public open fun println (p0: @[FlexibleNullability] kotlin.String?): kotlin.Unit declared in java.io.PrintStream' type=kotlin.Unit origin=null - $this: GET_VAR 'val tmp_1: @[FlexibleNullability] java.io.PrintStream? [val] declared in .test3' type=@[FlexibleNullability] java.io.PrintStream? origin=null + $this: GET_VAR 'val tmp_1: @[FlexibleNullability] java.io.PrintStream? declared in .test3' type=@[FlexibleNullability] java.io.PrintStream? origin=null p0: CONST String type=kotlin.String value="world!" diff --git a/compiler/testData/ir/irText/expressions/coercionToUnit.ir.txt b/compiler/testData/ir/irText/expressions/coercionToUnit.ir.txt index 4b90a8e65c6..904b7803c27 100644 --- a/compiler/testData/ir/irText/expressions/coercionToUnit.ir.txt +++ b/compiler/testData/ir/irText/expressions/coercionToUnit.ir.txt @@ -28,14 +28,14 @@ FILE fqName: fileName:/coercionToUnit.kt WHEN type=kotlin.Unit? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_0: @[FlexibleNullability] java.io.PrintStream? [val] declared in .test3' type=@[FlexibleNullability] java.io.PrintStream? origin=null + arg0: GET_VAR 'val tmp_0: @[FlexibleNullability] java.io.PrintStream? declared in .test3' type=@[FlexibleNullability] java.io.PrintStream? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public open fun println (p0: @[FlexibleNullability] kotlin.String?): kotlin.Unit declared in java.io.PrintStream' type=kotlin.Unit origin=null $this: TYPE_OP type=java.io.PrintStream origin=IMPLICIT_NOTNULL typeOperand=java.io.PrintStream - GET_VAR 'val tmp_0: @[FlexibleNullability] java.io.PrintStream? [val] declared in .test3' type=@[FlexibleNullability] java.io.PrintStream? origin=null + GET_VAR 'val tmp_0: @[FlexibleNullability] java.io.PrintStream? declared in .test3' type=@[FlexibleNullability] java.io.PrintStream? origin=null p0: CONST String type=kotlin.String value="Hello," TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit BLOCK type=kotlin.Unit? origin=SAFE_CALL @@ -44,12 +44,12 @@ FILE fqName: fileName:/coercionToUnit.kt WHEN type=kotlin.Unit? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_1: @[FlexibleNullability] java.io.PrintStream? [val] declared in .test3' type=@[FlexibleNullability] java.io.PrintStream? origin=null + arg0: GET_VAR 'val tmp_1: @[FlexibleNullability] java.io.PrintStream? declared in .test3' type=@[FlexibleNullability] java.io.PrintStream? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public open fun println (p0: @[FlexibleNullability] kotlin.String?): kotlin.Unit declared in java.io.PrintStream' type=kotlin.Unit origin=null $this: TYPE_OP type=java.io.PrintStream origin=IMPLICIT_NOTNULL typeOperand=java.io.PrintStream - GET_VAR 'val tmp_1: @[FlexibleNullability] java.io.PrintStream? [val] declared in .test3' type=@[FlexibleNullability] java.io.PrintStream? origin=null + GET_VAR 'val tmp_1: @[FlexibleNullability] java.io.PrintStream? declared in .test3' type=@[FlexibleNullability] java.io.PrintStream? origin=null p0: CONST String type=kotlin.String value="world!" diff --git a/compiler/testData/ir/irText/expressions/complexAugmentedAssignment.fir.ir.txt b/compiler/testData/ir/irText/expressions/complexAugmentedAssignment.fir.ir.txt index 0b85ea40938..546da584309 100644 --- a/compiler/testData/ir/irText/expressions/complexAugmentedAssignment.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/complexAugmentedAssignment.fir.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/complexAugmentedAssignment.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.X1 CONSTRUCTOR visibility:private <> () returnType:.X1 [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:X1 modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:x1 visibility:public modality:FINAL [var] FIELD PROPERTY_BACKING_FIELD name:x1 type:kotlin.Int visibility:private @@ -28,7 +28,7 @@ FILE fqName: fileName:/complexAugmentedAssignment.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.X1.X2 CONSTRUCTOR visibility:private <> () returnType:.X1.X2 [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:X2 modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:x2 visibility:public modality:FINAL [var] FIELD PROPERTY_BACKING_FIELD name:x2 type:kotlin.Int visibility:private @@ -53,7 +53,7 @@ FILE fqName: fileName:/complexAugmentedAssignment.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.X1.X2.X3 CONSTRUCTOR visibility:private <> () returnType:.X1.X2.X3 [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:X3 modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:x3 visibility:public modality:FINAL [var] FIELD PROPERTY_BACKING_FIELD name:x3 type:kotlin.Int visibility:private @@ -76,7 +76,7 @@ FILE fqName: fileName:/complexAugmentedAssignment.kt value: GET_VAR ': kotlin.Int declared in .X1.X2.X3.' type=kotlin.Int 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -89,7 +89,7 @@ FILE fqName: fileName:/complexAugmentedAssignment.kt $this: VALUE_PARAMETER name: type: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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -102,7 +102,7 @@ FILE fqName: fileName:/complexAugmentedAssignment.kt $this: VALUE_PARAMETER name: type: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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -123,22 +123,22 @@ FILE fqName: fileName:/complexAugmentedAssignment.kt VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:kotlin.Int [val] BLOCK type=kotlin.Int origin=POSTFIX_INCR VAR IR_TEMPORARY_VARIABLE name:tmp_2 type:kotlin.Int [val] - GET_VAR 'var i: kotlin.Int [var] declared in .test1' type=kotlin.Int origin=null - SET_VAR 'var i: kotlin.Int [var] declared in .test1' type=kotlin.Unit origin=POSTFIX_INCR - CALL 'public final fun inc (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp_2: kotlin.Int [val] declared in .test1' type=kotlin.Int origin=null - GET_VAR 'val tmp_2: kotlin.Int [val] declared in .test1' type=kotlin.Int origin=null + GET_VAR 'var i: kotlin.Int declared in .test1' type=kotlin.Int origin=null + SET_VAR 'var i: kotlin.Int declared in .test1' type=kotlin.Unit origin=POSTFIX_INCR + CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_2: kotlin.Int declared in .test1' type=kotlin.Int origin=null + GET_VAR 'val tmp_2: kotlin.Int declared in .test1' type=kotlin.Int origin=null VAR IR_TEMPORARY_VARIABLE name:tmp_3 type:kotlin.Int [val] - CALL 'public final fun get (index: kotlin.Int): kotlin.Int [operator] declared in kotlin.IntArray' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp_0: kotlin.IntArray [val] declared in .test1' type=kotlin.IntArray origin=null - index: GET_VAR 'val tmp_1: kotlin.Int [val] declared in .test1' type=kotlin.Int origin=null - CALL 'public final fun set (index: kotlin.Int, value: kotlin.Int): kotlin.Unit [operator] declared in kotlin.IntArray' type=kotlin.Unit origin=null - $this: GET_VAR 'val tmp_0: kotlin.IntArray [val] declared in .test1' type=kotlin.IntArray origin=null - index: GET_VAR 'val tmp_1: kotlin.Int [val] declared in .test1' type=kotlin.Int origin=null - value: CALL 'public final fun inc (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp_3: kotlin.Int [val] declared in .test1' type=kotlin.Int origin=null + CALL 'public final fun get (index: kotlin.Int): kotlin.Int declared in kotlin.IntArray' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_0: kotlin.IntArray declared in .test1' type=kotlin.IntArray origin=null + index: GET_VAR 'val tmp_1: kotlin.Int declared in .test1' type=kotlin.Int origin=null + CALL 'public final fun set (index: kotlin.Int, value: kotlin.Int): kotlin.Unit declared in kotlin.IntArray' type=kotlin.Unit origin=null + $this: GET_VAR 'val tmp_0: kotlin.IntArray declared in .test1' type=kotlin.IntArray origin=null + index: GET_VAR 'val tmp_1: kotlin.Int declared in .test1' type=kotlin.Int origin=null + value: CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_3: kotlin.Int declared in .test1' type=kotlin.Int origin=null TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit - GET_VAR 'val tmp_3: kotlin.Int [val] declared in .test1' type=kotlin.Int origin=null + GET_VAR 'val tmp_3: kotlin.Int declared in .test1' type=kotlin.Int origin=null FUN name:test2 visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit @@ -148,9 +148,9 @@ FILE fqName: fileName:/complexAugmentedAssignment.kt $this: GET_OBJECT 'CLASS OBJECT name:X1 modality:FINAL visibility:public superTypes:[kotlin.Any]' type=.X1 CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in .X1' type=kotlin.Unit origin=EQ $this: GET_OBJECT 'CLASS OBJECT name:X1 modality:FINAL visibility:public superTypes:[kotlin.Any]' type=.X1 - : CALL 'public final fun inc (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp_4: kotlin.Int [val] declared in .test2' type=kotlin.Int origin=null - GET_VAR 'val tmp_4: kotlin.Int [val] declared in .test2' type=kotlin.Int origin=null + : CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_4: kotlin.Int declared in .test2' type=kotlin.Int origin=null + GET_VAR 'val tmp_4: kotlin.Int declared in .test2' type=kotlin.Int origin=null TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit BLOCK type=kotlin.Int origin=null VAR IR_TEMPORARY_VARIABLE name:tmp_5 type:kotlin.Int [val] @@ -158,9 +158,9 @@ FILE fqName: fileName:/complexAugmentedAssignment.kt $this: GET_OBJECT 'CLASS OBJECT name:X2 modality:FINAL visibility:public superTypes:[kotlin.Any]' type=.X1.X2 CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in .X1.X2' type=kotlin.Unit origin=EQ $this: GET_OBJECT 'CLASS OBJECT name:X2 modality:FINAL visibility:public superTypes:[kotlin.Any]' type=.X1.X2 - : CALL 'public final fun inc (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp_5: kotlin.Int [val] declared in .test2' type=kotlin.Int origin=null - GET_VAR 'val tmp_5: kotlin.Int [val] declared in .test2' type=kotlin.Int origin=null + : CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_5: kotlin.Int declared in .test2' type=kotlin.Int origin=null + GET_VAR 'val tmp_5: kotlin.Int declared in .test2' type=kotlin.Int origin=null TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit BLOCK type=kotlin.Int origin=null VAR IR_TEMPORARY_VARIABLE name:tmp_6 type:kotlin.Int [val] @@ -168,9 +168,9 @@ FILE fqName: fileName:/complexAugmentedAssignment.kt $this: GET_OBJECT 'CLASS OBJECT name:X3 modality:FINAL visibility:public superTypes:[kotlin.Any]' type=.X1.X2.X3 CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in .X1.X2.X3' type=kotlin.Unit origin=EQ $this: GET_OBJECT 'CLASS OBJECT name:X3 modality:FINAL visibility:public superTypes:[kotlin.Any]' type=.X1.X2.X3 - : CALL 'public final fun inc (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp_6: kotlin.Int [val] declared in .test2' type=kotlin.Int origin=null - GET_VAR 'val tmp_6: kotlin.Int [val] declared in .test2' type=kotlin.Int origin=null + : CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_6: kotlin.Int declared in .test2' type=kotlin.Int origin=null + GET_VAR 'val tmp_6: kotlin.Int declared in .test2' type=kotlin.Int origin=null CLASS CLASS name:B modality:FINAL visibility:public superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.B CONSTRUCTOR visibility:public <> (s:kotlin.Int) returnType:.B [primary] @@ -178,7 +178,7 @@ FILE fqName: fileName:/complexAugmentedAssignment.kt EXPRESSION_BODY CONST Int type=kotlin.Int value=0 BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:B modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:s visibility:public modality:FINAL [var] FIELD PROPERTY_BACKING_FIELD name:s type:kotlin.Int visibility:private @@ -201,7 +201,7 @@ FILE fqName: fileName:/complexAugmentedAssignment.kt value: GET_VAR ': kotlin.Int declared in .B.' type=kotlin.Int 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -216,7 +216,7 @@ FILE fqName: fileName:/complexAugmentedAssignment.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Host CONSTRUCTOR visibility:private <> () returnType:.Host [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:Host modality:FINAL visibility:public superTypes:[kotlin.Any]' FUN name:plusAssign visibility:public modality:FINAL <> ($this:.Host, $receiver:.B, b:.B) returnType:kotlin.Unit [operator] $this: VALUE_PARAMETER name: type:.Host @@ -225,14 +225,14 @@ FILE fqName: fileName:/complexAugmentedAssignment.kt BLOCK_BODY CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in .B' type=kotlin.Unit origin=EQ $this: GET_VAR ': .B declared in .Host.plusAssign' type=.B origin=null - : CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null + : CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: CALL 'public final fun (): kotlin.Int declared in .B' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR ': .B declared in .Host.plusAssign' type=.B origin=null other: CALL 'public final fun (): kotlin.Int declared in .B' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR 'b: .B declared in .Host.plusAssign' type=.B 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -247,8 +247,8 @@ FILE fqName: fileName:/complexAugmentedAssignment.kt $receiver: VALUE_PARAMETER name: type:.Host VALUE_PARAMETER name:v index:0 type:.B BLOCK_BODY - CALL 'public final fun plusAssign (b: .B): kotlin.Unit [operator] declared in .Host' type=kotlin.Unit origin=null + CALL 'public final fun plusAssign (b: .B): kotlin.Unit declared in .Host' type=kotlin.Unit origin=null $this: GET_VAR ': .Host declared in .test3' type=.Host origin=null $receiver: GET_VAR 'v: .B declared in .test3' type=.B origin=null - b: CONSTRUCTOR_CALL 'public constructor (s: kotlin.Int) [primary] declared in .B' type=.B origin=null + b: CONSTRUCTOR_CALL 'public constructor (s: kotlin.Int) declared in .B' type=.B origin=null s: CONST Int type=kotlin.Int value=1000 diff --git a/compiler/testData/ir/irText/expressions/complexAugmentedAssignment.ir.txt b/compiler/testData/ir/irText/expressions/complexAugmentedAssignment.ir.txt index eb52cf596a9..0bca71ab801 100644 --- a/compiler/testData/ir/irText/expressions/complexAugmentedAssignment.ir.txt +++ b/compiler/testData/ir/irText/expressions/complexAugmentedAssignment.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/complexAugmentedAssignment.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.X1 CONSTRUCTOR visibility:private <> () returnType:.X1 [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:X1 modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:x1 visibility:public modality:FINAL [var] FIELD PROPERTY_BACKING_FIELD name:x1 type:kotlin.Int visibility:private @@ -28,7 +28,7 @@ FILE fqName: fileName:/complexAugmentedAssignment.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.X1.X2 CONSTRUCTOR visibility:private <> () returnType:.X1.X2 [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:X2 modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:x2 visibility:public modality:FINAL [var] FIELD PROPERTY_BACKING_FIELD name:x2 type:kotlin.Int visibility:private @@ -53,7 +53,7 @@ FILE fqName: fileName:/complexAugmentedAssignment.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.X1.X2.X3 CONSTRUCTOR visibility:private <> () returnType:.X1.X2.X3 [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:X3 modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:x3 visibility:public modality:FINAL [var] FIELD PROPERTY_BACKING_FIELD name:x3 type:kotlin.Int visibility:private @@ -76,7 +76,7 @@ FILE fqName: fileName:/complexAugmentedAssignment.kt value: GET_VAR ': kotlin.Int declared in .X1.X2.X3.' type=kotlin.Int 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -89,7 +89,7 @@ FILE fqName: fileName:/complexAugmentedAssignment.kt $this: VALUE_PARAMETER name: type: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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -102,7 +102,7 @@ FILE fqName: fileName:/complexAugmentedAssignment.kt $this: VALUE_PARAMETER name: type: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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -125,21 +125,21 @@ FILE fqName: fileName:/complexAugmentedAssignment.kt VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:kotlin.Int [val] BLOCK type=kotlin.Int origin=POSTFIX_INCR VAR IR_TEMPORARY_VARIABLE name:tmp_2 type:kotlin.Int [val] - GET_VAR 'var i: kotlin.Int [var] declared in .test1' type=kotlin.Int origin=POSTFIX_INCR - SET_VAR 'var i: kotlin.Int [var] declared in .test1' type=kotlin.Unit origin=POSTFIX_INCR - CALL 'public final fun inc (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_INCR - $this: GET_VAR 'val tmp_2: kotlin.Int [val] declared in .test1' type=kotlin.Int origin=null - GET_VAR 'val tmp_2: kotlin.Int [val] declared in .test1' type=kotlin.Int origin=null + GET_VAR 'var i: kotlin.Int declared in .test1' type=kotlin.Int origin=POSTFIX_INCR + SET_VAR 'var i: kotlin.Int declared in .test1' type=kotlin.Unit origin=POSTFIX_INCR + CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_INCR + $this: GET_VAR 'val tmp_2: kotlin.Int declared in .test1' type=kotlin.Int origin=null + GET_VAR 'val tmp_2: kotlin.Int declared in .test1' type=kotlin.Int origin=null VAR IR_TEMPORARY_VARIABLE name:tmp_3 type:kotlin.Int [val] - CALL 'public final fun get (index: kotlin.Int): kotlin.Int [operator] declared in kotlin.IntArray' type=kotlin.Int origin=POSTFIX_INCR - $this: GET_VAR 'val tmp_0: kotlin.IntArray [val] declared in .test1' type=kotlin.IntArray origin=null - index: GET_VAR 'val tmp_1: kotlin.Int [val] declared in .test1' type=kotlin.Int origin=null - CALL 'public final fun set (index: kotlin.Int, value: kotlin.Int): kotlin.Unit [operator] declared in kotlin.IntArray' type=kotlin.Unit origin=POSTFIX_INCR - $this: GET_VAR 'val tmp_0: kotlin.IntArray [val] declared in .test1' type=kotlin.IntArray origin=null - index: GET_VAR 'val tmp_1: kotlin.Int [val] declared in .test1' type=kotlin.Int origin=null - value: CALL 'public final fun inc (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_INCR - $this: GET_VAR 'val tmp_3: kotlin.Int [val] declared in .test1' type=kotlin.Int origin=null - GET_VAR 'val tmp_3: kotlin.Int [val] declared in .test1' type=kotlin.Int origin=null + CALL 'public final fun get (index: kotlin.Int): kotlin.Int declared in kotlin.IntArray' type=kotlin.Int origin=POSTFIX_INCR + $this: GET_VAR 'val tmp_0: kotlin.IntArray declared in .test1' type=kotlin.IntArray origin=null + index: GET_VAR 'val tmp_1: kotlin.Int declared in .test1' type=kotlin.Int origin=null + CALL 'public final fun set (index: kotlin.Int, value: kotlin.Int): kotlin.Unit declared in kotlin.IntArray' type=kotlin.Unit origin=POSTFIX_INCR + $this: GET_VAR 'val tmp_0: kotlin.IntArray declared in .test1' type=kotlin.IntArray origin=null + index: GET_VAR 'val tmp_1: kotlin.Int declared in .test1' type=kotlin.Int origin=null + value: CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_INCR + $this: GET_VAR 'val tmp_3: kotlin.Int declared in .test1' type=kotlin.Int origin=null + GET_VAR 'val tmp_3: kotlin.Int declared in .test1' type=kotlin.Int origin=null FUN name:test2 visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit @@ -149,12 +149,12 @@ FILE fqName: fileName:/complexAugmentedAssignment.kt BLOCK type=kotlin.Int origin=POSTFIX_INCR VAR IR_TEMPORARY_VARIABLE name:tmp_5 type:kotlin.Int [val] CALL 'public final fun (): kotlin.Int declared in .X1' type=kotlin.Int origin=POSTFIX_INCR - $this: GET_VAR 'val tmp_4: .X1 [val] declared in .test2' type=.X1 origin=null + $this: GET_VAR 'val tmp_4: .X1 declared in .test2' type=.X1 origin=null CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in .X1' type=kotlin.Unit origin=POSTFIX_INCR - $this: GET_VAR 'val tmp_4: .X1 [val] declared in .test2' type=.X1 origin=null - : CALL 'public final fun inc (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_INCR - $this: GET_VAR 'val tmp_5: kotlin.Int [val] declared in .test2' type=kotlin.Int origin=null - GET_VAR 'val tmp_5: kotlin.Int [val] declared in .test2' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_4: .X1 declared in .test2' type=.X1 origin=null + : CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_INCR + $this: GET_VAR 'val tmp_5: kotlin.Int declared in .test2' type=kotlin.Int origin=null + GET_VAR 'val tmp_5: kotlin.Int declared in .test2' type=kotlin.Int origin=null TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit BLOCK type=kotlin.Int origin=POSTFIX_INCR VAR IR_TEMPORARY_VARIABLE name:tmp_6 type:.X1.X2 [val] @@ -162,12 +162,12 @@ FILE fqName: fileName:/complexAugmentedAssignment.kt BLOCK type=kotlin.Int origin=POSTFIX_INCR VAR IR_TEMPORARY_VARIABLE name:tmp_7 type:kotlin.Int [val] CALL 'public final fun (): kotlin.Int declared in .X1.X2' type=kotlin.Int origin=POSTFIX_INCR - $this: GET_VAR 'val tmp_6: .X1.X2 [val] declared in .test2' type=.X1.X2 origin=null + $this: GET_VAR 'val tmp_6: .X1.X2 declared in .test2' type=.X1.X2 origin=null CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in .X1.X2' type=kotlin.Unit origin=POSTFIX_INCR - $this: GET_VAR 'val tmp_6: .X1.X2 [val] declared in .test2' type=.X1.X2 origin=null - : CALL 'public final fun inc (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_INCR - $this: GET_VAR 'val tmp_7: kotlin.Int [val] declared in .test2' type=kotlin.Int origin=null - GET_VAR 'val tmp_7: kotlin.Int [val] declared in .test2' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_6: .X1.X2 declared in .test2' type=.X1.X2 origin=null + : CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_INCR + $this: GET_VAR 'val tmp_7: kotlin.Int declared in .test2' type=kotlin.Int origin=null + GET_VAR 'val tmp_7: kotlin.Int declared in .test2' type=kotlin.Int origin=null TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit BLOCK type=kotlin.Int origin=POSTFIX_INCR VAR IR_TEMPORARY_VARIABLE name:tmp_8 type:.X1.X2.X3 [val] @@ -175,12 +175,12 @@ FILE fqName: fileName:/complexAugmentedAssignment.kt BLOCK type=kotlin.Int origin=POSTFIX_INCR VAR IR_TEMPORARY_VARIABLE name:tmp_9 type:kotlin.Int [val] CALL 'public final fun (): kotlin.Int declared in .X1.X2.X3' type=kotlin.Int origin=POSTFIX_INCR - $this: GET_VAR 'val tmp_8: .X1.X2.X3 [val] declared in .test2' type=.X1.X2.X3 origin=null + $this: GET_VAR 'val tmp_8: .X1.X2.X3 declared in .test2' type=.X1.X2.X3 origin=null CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in .X1.X2.X3' type=kotlin.Unit origin=POSTFIX_INCR - $this: GET_VAR 'val tmp_8: .X1.X2.X3 [val] declared in .test2' type=.X1.X2.X3 origin=null - : CALL 'public final fun inc (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_INCR - $this: GET_VAR 'val tmp_9: kotlin.Int [val] declared in .test2' type=kotlin.Int origin=null - GET_VAR 'val tmp_9: kotlin.Int [val] declared in .test2' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_8: .X1.X2.X3 declared in .test2' type=.X1.X2.X3 origin=null + : CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_INCR + $this: GET_VAR 'val tmp_9: kotlin.Int declared in .test2' type=kotlin.Int origin=null + GET_VAR 'val tmp_9: kotlin.Int declared in .test2' type=kotlin.Int origin=null CLASS CLASS name:B modality:FINAL visibility:public superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.B CONSTRUCTOR visibility:public <> (s:kotlin.Int) returnType:.B [primary] @@ -188,7 +188,7 @@ FILE fqName: fileName:/complexAugmentedAssignment.kt EXPRESSION_BODY CONST Int type=kotlin.Int value=0 BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:B modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:s visibility:public modality:FINAL [var] FIELD PROPERTY_BACKING_FIELD name:s type:kotlin.Int visibility:private @@ -211,7 +211,7 @@ FILE fqName: fileName:/complexAugmentedAssignment.kt value: GET_VAR ': kotlin.Int declared in .B.' type=kotlin.Int 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -226,7 +226,7 @@ FILE fqName: fileName:/complexAugmentedAssignment.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Host CONSTRUCTOR visibility:private <> () returnType:.Host [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:Host modality:FINAL visibility:public superTypes:[kotlin.Any]' FUN name:plusAssign visibility:public modality:FINAL <> ($this:.Host, $receiver:.B, b:.B) returnType:kotlin.Unit [operator] $this: VALUE_PARAMETER name: type:.Host @@ -237,15 +237,15 @@ FILE fqName: fileName:/complexAugmentedAssignment.kt VAR IR_TEMPORARY_VARIABLE name:tmp_10 type:.B [val] GET_VAR ': .B declared in .Host.plusAssign' type=.B origin=null CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in .B' type=kotlin.Unit origin=PLUSEQ - $this: GET_VAR 'val tmp_10: .B [val] declared in .Host.plusAssign' type=.B origin=null - : CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ + $this: GET_VAR 'val tmp_10: .B declared in .Host.plusAssign' type=.B origin=null + : CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ $this: CALL 'public final fun (): kotlin.Int declared in .B' type=kotlin.Int origin=PLUSEQ - $this: GET_VAR 'val tmp_10: .B [val] declared in .Host.plusAssign' type=.B origin=null + $this: GET_VAR 'val tmp_10: .B declared in .Host.plusAssign' type=.B origin=null other: CALL 'public final fun (): kotlin.Int declared in .B' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR 'b: .B declared in .Host.plusAssign' type=.B 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -260,8 +260,8 @@ FILE fqName: fileName:/complexAugmentedAssignment.kt $receiver: VALUE_PARAMETER name: type:.Host VALUE_PARAMETER name:v index:0 type:.B BLOCK_BODY - CALL 'public final fun plusAssign (b: .B): kotlin.Unit [operator] declared in .Host' type=kotlin.Unit origin=PLUSEQ + CALL 'public final fun plusAssign (b: .B): kotlin.Unit declared in .Host' type=kotlin.Unit origin=PLUSEQ $this: GET_VAR ': .Host declared in .test3' type=.Host origin=null $receiver: GET_VAR 'v: .B declared in .test3' type=.B origin=PLUSEQ - b: CONSTRUCTOR_CALL 'public constructor (s: kotlin.Int) [primary] declared in .B' type=.B origin=null + b: CONSTRUCTOR_CALL 'public constructor (s: kotlin.Int) declared in .B' type=.B origin=null s: CONST Int type=kotlin.Int value=1000 diff --git a/compiler/testData/ir/irText/expressions/constructorWithOwnTypeParametersCall.fir.ir.txt b/compiler/testData/ir/irText/expressions/constructorWithOwnTypeParametersCall.fir.ir.txt index a634f718f4e..3c545638f75 100644 --- a/compiler/testData/ir/irText/expressions/constructorWithOwnTypeParametersCall.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/constructorWithOwnTypeParametersCall.fir.ir.txt @@ -2,9 +2,9 @@ FILE fqName: fileName:/constructorWithOwnTypeParametersCall.kt FUN name:testKotlin visibility:public modality:FINAL <> () returnType:.K1.K2 BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun testKotlin (): .K1.K2 declared in ' - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .K1.K2' type=.K1.K2 origin=null + CONSTRUCTOR_CALL 'public constructor () declared in .K1.K2' type=.K1.K2 origin=null : kotlin.String - $outer: CONSTRUCTOR_CALL 'public constructor () [primary] declared in .K1' type=.K1 origin=null + $outer: CONSTRUCTOR_CALL 'public constructor () declared in .K1' type=.K1 origin=null : kotlin.Int FUN name:testJava visibility:public modality:FINAL <> () returnType:.J1.J2 BLOCK_BODY @@ -20,7 +20,7 @@ FILE fqName: fileName:/constructorWithOwnTypeParametersCall.kt TYPE_PARAMETER name:T1 index:0 variance: superTypes:[kotlin.Number] reified:false CONSTRUCTOR visibility:public <> () returnType:.K1.K1> [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:K1 modality:FINAL visibility:public superTypes:[kotlin.Any]' CLASS CLASS name:K2 modality:FINAL visibility:public [inner] superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.K1.K2.K1.K2, T1 of .K1> @@ -28,11 +28,11 @@ FILE fqName: fileName:/constructorWithOwnTypeParametersCall.kt CONSTRUCTOR visibility:public <> ($this:.K1.K1>) returnType:.K1.K2.K1.K2, T1 of .K1> [primary] $outer: VALUE_PARAMETER name: type:.K1.K1> BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:K2 modality:FINAL visibility:public [inner] 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -45,7 +45,7 @@ FILE fqName: fileName:/constructorWithOwnTypeParametersCall.kt $this: VALUE_PARAMETER name: type: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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/expressions/constructorWithOwnTypeParametersCall.ir.txt b/compiler/testData/ir/irText/expressions/constructorWithOwnTypeParametersCall.ir.txt index d24e4a095ff..3b01df4fa8f 100644 --- a/compiler/testData/ir/irText/expressions/constructorWithOwnTypeParametersCall.ir.txt +++ b/compiler/testData/ir/irText/expressions/constructorWithOwnTypeParametersCall.ir.txt @@ -2,9 +2,9 @@ FILE fqName: fileName:/constructorWithOwnTypeParametersCall.kt FUN name:testKotlin visibility:public modality:FINAL <> () returnType:.K1.K2 BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun testKotlin (): .K1.K2 declared in ' - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .K1.K2' type=.K1.K2 origin=null + CONSTRUCTOR_CALL 'public constructor () declared in .K1.K2' type=.K1.K2 origin=null : kotlin.String - $outer: CONSTRUCTOR_CALL 'public constructor () [primary] declared in .K1' type=.K1 origin=null + $outer: CONSTRUCTOR_CALL 'public constructor () declared in .K1' type=.K1 origin=null : kotlin.Int FUN name:testJava visibility:public modality:FINAL <> () returnType:.J1.J2 BLOCK_BODY @@ -20,7 +20,7 @@ FILE fqName: fileName:/constructorWithOwnTypeParametersCall.kt TYPE_PARAMETER name:T1 index:0 variance: superTypes:[kotlin.Number] reified:false CONSTRUCTOR visibility:public <> () returnType:.K1.K1> [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:K1 modality:FINAL visibility:public superTypes:[kotlin.Any]' CLASS CLASS name:K2 modality:FINAL visibility:public [inner] superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.K1.K2.K1.K2, T1 of .K1> @@ -28,11 +28,11 @@ FILE fqName: fileName:/constructorWithOwnTypeParametersCall.kt CONSTRUCTOR visibility:public <> ($this:.K1.K1>) returnType:.K1.K2.K1.K2, T1 of .K1> [primary] $outer: VALUE_PARAMETER name: type:.K1.K1> BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:K2 modality:FINAL visibility:public [inner] 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -45,7 +45,7 @@ FILE fqName: fileName:/constructorWithOwnTypeParametersCall.kt $this: VALUE_PARAMETER name: type: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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/expressions/contructorCall.ir.txt b/compiler/testData/ir/irText/expressions/contructorCall.ir.txt index eb4c46bb76f..642d62a68e6 100644 --- a/compiler/testData/ir/irText/expressions/contructorCall.ir.txt +++ b/compiler/testData/ir/irText/expressions/contructorCall.ir.txt @@ -3,11 +3,11 @@ FILE fqName: fileName:/contructorCall.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.A CONSTRUCTOR visibility:public <> () returnType:.A [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:A modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -21,7 +21,7 @@ FILE fqName: fileName:/contructorCall.kt PROPERTY name:test visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:test type:.A visibility:private [final,static] EXPRESSION_BODY - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .A' type=.A origin=null + CONSTRUCTOR_CALL 'public constructor () declared in .A' type=.A origin=null FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:.A correspondingProperty: PROPERTY name:test visibility:public modality:FINAL [val] BLOCK_BODY diff --git a/compiler/testData/ir/irText/expressions/conventionComparisons.fir.ir.txt b/compiler/testData/ir/irText/expressions/conventionComparisons.fir.ir.txt index ccdce811ae6..6b46c0fd1e8 100644 --- a/compiler/testData/ir/irText/expressions/conventionComparisons.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/conventionComparisons.fir.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/conventionComparisons.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.IA 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -22,7 +22,7 @@ FILE fqName: fileName:/conventionComparisons.kt VALUE_PARAMETER name:other index:0 type:.IA 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -40,7 +40,7 @@ FILE fqName: fileName:/conventionComparisons.kt BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test1 (a1: .IA, a2: .IA): kotlin.Boolean declared in ' CALL 'public final fun greater (arg0: kotlin.Int, arg1: kotlin.Int): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=GT - arg0: CALL 'public abstract fun compareTo (other: .IA): kotlin.Int [operator] declared in .IB' type=kotlin.Int origin=null + arg0: CALL 'public abstract fun compareTo (other: .IA): kotlin.Int declared in .IB' type=kotlin.Int origin=null $this: GET_VAR ': .IB declared in .test1' type=.IB origin=null $receiver: GET_VAR 'a1: .IA declared in .test1' type=.IA origin=null other: GET_VAR 'a2: .IA declared in .test1' type=.IA origin=null @@ -52,7 +52,7 @@ FILE fqName: fileName:/conventionComparisons.kt BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test2 (a1: .IA, a2: .IA): kotlin.Boolean declared in ' CALL 'public final fun greaterOrEqual (arg0: kotlin.Int, arg1: kotlin.Int): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=GTEQ - arg0: CALL 'public abstract fun compareTo (other: .IA): kotlin.Int [operator] declared in .IB' type=kotlin.Int origin=null + arg0: CALL 'public abstract fun compareTo (other: .IA): kotlin.Int declared in .IB' type=kotlin.Int origin=null $this: GET_VAR ': .IB declared in .test2' type=.IB origin=null $receiver: GET_VAR 'a1: .IA declared in .test2' type=.IA origin=null other: GET_VAR 'a2: .IA declared in .test2' type=.IA origin=null @@ -64,7 +64,7 @@ FILE fqName: fileName:/conventionComparisons.kt BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test3 (a1: .IA, a2: .IA): kotlin.Boolean declared in ' CALL 'public final fun less (arg0: kotlin.Int, arg1: kotlin.Int): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=LT - arg0: CALL 'public abstract fun compareTo (other: .IA): kotlin.Int [operator] declared in .IB' type=kotlin.Int origin=null + arg0: CALL 'public abstract fun compareTo (other: .IA): kotlin.Int declared in .IB' type=kotlin.Int origin=null $this: GET_VAR ': .IB declared in .test3' type=.IB origin=null $receiver: GET_VAR 'a1: .IA declared in .test3' type=.IA origin=null other: GET_VAR 'a2: .IA declared in .test3' type=.IA origin=null @@ -76,7 +76,7 @@ FILE fqName: fileName:/conventionComparisons.kt BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test4 (a1: .IA, a2: .IA): kotlin.Boolean declared in ' CALL 'public final fun lessOrEqual (arg0: kotlin.Int, arg1: kotlin.Int): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=LTEQ - arg0: CALL 'public abstract fun compareTo (other: .IA): kotlin.Int [operator] declared in .IB' type=kotlin.Int origin=null + arg0: CALL 'public abstract fun compareTo (other: .IA): kotlin.Int declared in .IB' type=kotlin.Int origin=null $this: GET_VAR ': .IB declared in .test4' type=.IB origin=null $receiver: GET_VAR 'a1: .IA declared in .test4' type=.IA origin=null other: GET_VAR 'a2: .IA declared in .test4' type=.IA origin=null diff --git a/compiler/testData/ir/irText/expressions/conventionComparisons.ir.txt b/compiler/testData/ir/irText/expressions/conventionComparisons.ir.txt index 9619514fb78..07a3ac21870 100644 --- a/compiler/testData/ir/irText/expressions/conventionComparisons.ir.txt +++ b/compiler/testData/ir/irText/expressions/conventionComparisons.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/conventionComparisons.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.IA 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -22,7 +22,7 @@ FILE fqName: fileName:/conventionComparisons.kt VALUE_PARAMETER name:other index:0 type:.IA 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -40,7 +40,7 @@ FILE fqName: fileName:/conventionComparisons.kt BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test1 (a1: .IA, a2: .IA): kotlin.Boolean declared in ' CALL 'public final fun greater (arg0: kotlin.Int, arg1: kotlin.Int): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=GT - arg0: CALL 'public abstract fun compareTo (other: .IA): kotlin.Int [operator] declared in .IB' type=kotlin.Int origin=GT + arg0: CALL 'public abstract fun compareTo (other: .IA): kotlin.Int declared in .IB' type=kotlin.Int origin=GT $this: GET_VAR ': .IB declared in .test1' type=.IB origin=null $receiver: GET_VAR 'a1: .IA declared in .test1' type=.IA origin=null other: GET_VAR 'a2: .IA declared in .test1' type=.IA origin=null @@ -52,7 +52,7 @@ FILE fqName: fileName:/conventionComparisons.kt BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test2 (a1: .IA, a2: .IA): kotlin.Boolean declared in ' CALL 'public final fun greaterOrEqual (arg0: kotlin.Int, arg1: kotlin.Int): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=GTEQ - arg0: CALL 'public abstract fun compareTo (other: .IA): kotlin.Int [operator] declared in .IB' type=kotlin.Int origin=GTEQ + arg0: CALL 'public abstract fun compareTo (other: .IA): kotlin.Int declared in .IB' type=kotlin.Int origin=GTEQ $this: GET_VAR ': .IB declared in .test2' type=.IB origin=null $receiver: GET_VAR 'a1: .IA declared in .test2' type=.IA origin=null other: GET_VAR 'a2: .IA declared in .test2' type=.IA origin=null @@ -64,7 +64,7 @@ FILE fqName: fileName:/conventionComparisons.kt BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test3 (a1: .IA, a2: .IA): kotlin.Boolean declared in ' CALL 'public final fun less (arg0: kotlin.Int, arg1: kotlin.Int): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=LT - arg0: CALL 'public abstract fun compareTo (other: .IA): kotlin.Int [operator] declared in .IB' type=kotlin.Int origin=LT + arg0: CALL 'public abstract fun compareTo (other: .IA): kotlin.Int declared in .IB' type=kotlin.Int origin=LT $this: GET_VAR ': .IB declared in .test3' type=.IB origin=null $receiver: GET_VAR 'a1: .IA declared in .test3' type=.IA origin=null other: GET_VAR 'a2: .IA declared in .test3' type=.IA origin=null @@ -76,7 +76,7 @@ FILE fqName: fileName:/conventionComparisons.kt BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test4 (a1: .IA, a2: .IA): kotlin.Boolean declared in ' CALL 'public final fun lessOrEqual (arg0: kotlin.Int, arg1: kotlin.Int): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=LTEQ - arg0: CALL 'public abstract fun compareTo (other: .IA): kotlin.Int [operator] declared in .IB' type=kotlin.Int origin=LTEQ + arg0: CALL 'public abstract fun compareTo (other: .IA): kotlin.Int declared in .IB' type=kotlin.Int origin=LTEQ $this: GET_VAR ': .IB declared in .test4' type=.IB origin=null $receiver: GET_VAR 'a1: .IA declared in .test4' type=.IA origin=null other: GET_VAR 'a2: .IA declared in .test4' type=.IA origin=null diff --git a/compiler/testData/ir/irText/expressions/destructuring1.fir.ir.txt b/compiler/testData/ir/irText/expressions/destructuring1.fir.ir.txt index 03cbb4573f8..e6144cc3e97 100644 --- a/compiler/testData/ir/irText/expressions/destructuring1.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/destructuring1.fir.ir.txt @@ -3,11 +3,11 @@ FILE fqName: fileName:/destructuring1.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.A CONSTRUCTOR visibility:private <> () returnType:.A [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:A modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -22,23 +22,23 @@ FILE fqName: fileName:/destructuring1.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.B CONSTRUCTOR visibility:private <> () returnType:.B [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:B modality:FINAL visibility:public superTypes:[kotlin.Any]' FUN name:component1 visibility:public modality:FINAL <> ($this:.B, $receiver:.A) returnType:kotlin.Int [operator] $this: VALUE_PARAMETER name: type:.B $receiver: VALUE_PARAMETER name: type:.A BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Int [operator] declared in .B' + RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Int declared in .B' CONST Int type=kotlin.Int value=1 FUN name:component2 visibility:public modality:FINAL <> ($this:.B, $receiver:.A) returnType:kotlin.Int [operator] $this: VALUE_PARAMETER name: type:.B $receiver: VALUE_PARAMETER name: type:.A BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component2 (): kotlin.Int [operator] declared in .B' + RETURN type=kotlin.Nothing from='public final fun component2 (): kotlin.Int declared in .B' CONST Int type=kotlin.Int value=2 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -55,10 +55,10 @@ FILE fqName: fileName:/destructuring1.kt VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:.A [val] GET_OBJECT 'CLASS OBJECT name:A modality:FINAL visibility:public superTypes:[kotlin.Any]' type=.A VAR name:x type:kotlin.Int [val] - CALL 'public final fun component1 (): kotlin.Int [operator] declared in .B' type=kotlin.Int origin=COMPONENT_N(index=1) + CALL 'public final fun component1 (): kotlin.Int declared in .B' type=kotlin.Int origin=COMPONENT_N(index=1) $this: GET_VAR ': .B declared in .test' type=.B origin=null - $receiver: GET_VAR 'val tmp_0: .A [val] declared in .test' type=.A origin=null + $receiver: GET_VAR 'val tmp_0: .A declared in .test' type=.A origin=null VAR name:y type:kotlin.Int [val] - CALL 'public final fun component2 (): kotlin.Int [operator] declared in .B' type=kotlin.Int origin=COMPONENT_N(index=2) + CALL 'public final fun component2 (): kotlin.Int declared in .B' type=kotlin.Int origin=COMPONENT_N(index=2) $this: GET_VAR ': .B declared in .test' type=.B origin=null - $receiver: GET_VAR 'val tmp_0: .A [val] declared in .test' type=.A origin=null + $receiver: GET_VAR 'val tmp_0: .A declared in .test' type=.A origin=null diff --git a/compiler/testData/ir/irText/expressions/destructuring1.ir.txt b/compiler/testData/ir/irText/expressions/destructuring1.ir.txt index 4b11512daa0..59371caf725 100644 --- a/compiler/testData/ir/irText/expressions/destructuring1.ir.txt +++ b/compiler/testData/ir/irText/expressions/destructuring1.ir.txt @@ -3,11 +3,11 @@ FILE fqName: fileName:/destructuring1.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.A CONSTRUCTOR visibility:private <> () returnType:.A [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:A modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -22,23 +22,23 @@ FILE fqName: fileName:/destructuring1.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.B CONSTRUCTOR visibility:private <> () returnType:.B [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:B modality:FINAL visibility:public superTypes:[kotlin.Any]' FUN name:component1 visibility:public modality:FINAL <> ($this:.B, $receiver:.A) returnType:kotlin.Int [operator] $this: VALUE_PARAMETER name: type:.B $receiver: VALUE_PARAMETER name: type:.A BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Int [operator] declared in .B' + RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Int declared in .B' CONST Int type=kotlin.Int value=1 FUN name:component2 visibility:public modality:FINAL <> ($this:.B, $receiver:.A) returnType:kotlin.Int [operator] $this: VALUE_PARAMETER name: type:.B $receiver: VALUE_PARAMETER name: type:.A BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component2 (): kotlin.Int [operator] declared in .B' + RETURN type=kotlin.Nothing from='public final fun component2 (): kotlin.Int declared in .B' CONST Int type=kotlin.Int value=2 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -56,10 +56,10 @@ FILE fqName: fileName:/destructuring1.kt VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:.A [val] GET_OBJECT 'CLASS OBJECT name:A modality:FINAL visibility:public superTypes:[kotlin.Any]' type=.A VAR name:x type:kotlin.Int [val] - CALL 'public final fun component1 (): kotlin.Int [operator] declared in .B' type=kotlin.Int origin=COMPONENT_N(index=1) + CALL 'public final fun component1 (): kotlin.Int declared in .B' type=kotlin.Int origin=COMPONENT_N(index=1) $this: GET_VAR ': .B declared in .test' type=.B origin=null - $receiver: GET_VAR 'val tmp_0: .A [val] declared in .test' type=.A origin=null + $receiver: GET_VAR 'val tmp_0: .A declared in .test' type=.A origin=null VAR name:y type:kotlin.Int [val] - CALL 'public final fun component2 (): kotlin.Int [operator] declared in .B' type=kotlin.Int origin=COMPONENT_N(index=2) + CALL 'public final fun component2 (): kotlin.Int declared in .B' type=kotlin.Int origin=COMPONENT_N(index=2) $this: GET_VAR ': .B declared in .test' type=.B origin=null - $receiver: GET_VAR 'val tmp_0: .A [val] declared in .test' type=.A origin=null + $receiver: GET_VAR 'val tmp_0: .A declared in .test' type=.A origin=null diff --git a/compiler/testData/ir/irText/expressions/destructuringWithUnderscore.fir.ir.txt b/compiler/testData/ir/irText/expressions/destructuringWithUnderscore.fir.ir.txt index 6858b385696..6c4688eed22 100644 --- a/compiler/testData/ir/irText/expressions/destructuringWithUnderscore.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/destructuringWithUnderscore.fir.ir.txt @@ -3,11 +3,11 @@ FILE fqName: fileName:/destructuringWithUnderscore.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.A CONSTRUCTOR visibility:private <> () returnType:.A [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:A modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -22,29 +22,29 @@ FILE fqName: fileName:/destructuringWithUnderscore.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.B CONSTRUCTOR visibility:private <> () returnType:.B [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:B modality:FINAL visibility:public superTypes:[kotlin.Any]' FUN name:component1 visibility:public modality:FINAL <> ($this:.B, $receiver:.A) returnType:kotlin.Int [operator] $this: VALUE_PARAMETER name: type:.B $receiver: VALUE_PARAMETER name: type:.A BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Int [operator] declared in .B' + RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Int declared in .B' CONST Int type=kotlin.Int value=1 FUN name:component2 visibility:public modality:FINAL <> ($this:.B, $receiver:.A) returnType:kotlin.Int [operator] $this: VALUE_PARAMETER name: type:.B $receiver: VALUE_PARAMETER name: type:.A BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component2 (): kotlin.Int [operator] declared in .B' + RETURN type=kotlin.Nothing from='public final fun component2 (): kotlin.Int declared in .B' CONST Int type=kotlin.Int value=2 FUN name:component3 visibility:public modality:FINAL <> ($this:.B, $receiver:.A) returnType:kotlin.Int [operator] $this: VALUE_PARAMETER name: type:.B $receiver: VALUE_PARAMETER name: type:.A BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component3 (): kotlin.Int [operator] declared in .B' + RETURN type=kotlin.Nothing from='public final fun component3 (): kotlin.Int declared in .B' CONST Int type=kotlin.Int value=3 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -61,10 +61,10 @@ FILE fqName: fileName:/destructuringWithUnderscore.kt VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:.A [val] GET_OBJECT 'CLASS OBJECT name:A modality:FINAL visibility:public superTypes:[kotlin.Any]' type=.A VAR name:x type:kotlin.Int [val] - CALL 'public final fun component1 (): kotlin.Int [operator] declared in .B' type=kotlin.Int origin=COMPONENT_N(index=1) + CALL 'public final fun component1 (): kotlin.Int declared in .B' type=kotlin.Int origin=COMPONENT_N(index=1) $this: GET_VAR ': .B declared in .test' type=.B origin=null - $receiver: GET_VAR 'val tmp_0: .A [val] declared in .test' type=.A origin=null + $receiver: GET_VAR 'val tmp_0: .A declared in .test' type=.A origin=null VAR name:z type:kotlin.Int [val] - CALL 'public final fun component3 (): kotlin.Int [operator] declared in .B' type=kotlin.Int origin=COMPONENT_N(index=3) + CALL 'public final fun component3 (): kotlin.Int declared in .B' type=kotlin.Int origin=COMPONENT_N(index=3) $this: GET_VAR ': .B declared in .test' type=.B origin=null - $receiver: GET_VAR 'val tmp_0: .A [val] declared in .test' type=.A origin=null + $receiver: GET_VAR 'val tmp_0: .A declared in .test' type=.A origin=null diff --git a/compiler/testData/ir/irText/expressions/destructuringWithUnderscore.ir.txt b/compiler/testData/ir/irText/expressions/destructuringWithUnderscore.ir.txt index 0b8512e24c4..f62eced8d91 100644 --- a/compiler/testData/ir/irText/expressions/destructuringWithUnderscore.ir.txt +++ b/compiler/testData/ir/irText/expressions/destructuringWithUnderscore.ir.txt @@ -3,11 +3,11 @@ FILE fqName: fileName:/destructuringWithUnderscore.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.A CONSTRUCTOR visibility:private <> () returnType:.A [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:A modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -22,29 +22,29 @@ FILE fqName: fileName:/destructuringWithUnderscore.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.B CONSTRUCTOR visibility:private <> () returnType:.B [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:B modality:FINAL visibility:public superTypes:[kotlin.Any]' FUN name:component1 visibility:public modality:FINAL <> ($this:.B, $receiver:.A) returnType:kotlin.Int [operator] $this: VALUE_PARAMETER name: type:.B $receiver: VALUE_PARAMETER name: type:.A BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Int [operator] declared in .B' + RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Int declared in .B' CONST Int type=kotlin.Int value=1 FUN name:component2 visibility:public modality:FINAL <> ($this:.B, $receiver:.A) returnType:kotlin.Int [operator] $this: VALUE_PARAMETER name: type:.B $receiver: VALUE_PARAMETER name: type:.A BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component2 (): kotlin.Int [operator] declared in .B' + RETURN type=kotlin.Nothing from='public final fun component2 (): kotlin.Int declared in .B' CONST Int type=kotlin.Int value=2 FUN name:component3 visibility:public modality:FINAL <> ($this:.B, $receiver:.A) returnType:kotlin.Int [operator] $this: VALUE_PARAMETER name: type:.B $receiver: VALUE_PARAMETER name: type:.A BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component3 (): kotlin.Int [operator] declared in .B' + RETURN type=kotlin.Nothing from='public final fun component3 (): kotlin.Int declared in .B' CONST Int type=kotlin.Int value=3 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -62,10 +62,10 @@ FILE fqName: fileName:/destructuringWithUnderscore.kt VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:.A [val] GET_OBJECT 'CLASS OBJECT name:A modality:FINAL visibility:public superTypes:[kotlin.Any]' type=.A VAR name:x type:kotlin.Int [val] - CALL 'public final fun component1 (): kotlin.Int [operator] declared in .B' type=kotlin.Int origin=COMPONENT_N(index=1) + CALL 'public final fun component1 (): kotlin.Int declared in .B' type=kotlin.Int origin=COMPONENT_N(index=1) $this: GET_VAR ': .B declared in .test' type=.B origin=null - $receiver: GET_VAR 'val tmp_0: .A [val] declared in .test' type=.A origin=null + $receiver: GET_VAR 'val tmp_0: .A declared in .test' type=.A origin=null VAR name:z type:kotlin.Int [val] - CALL 'public final fun component3 (): kotlin.Int [operator] declared in .B' type=kotlin.Int origin=COMPONENT_N(index=3) + CALL 'public final fun component3 (): kotlin.Int declared in .B' type=kotlin.Int origin=COMPONENT_N(index=3) $this: GET_VAR ': .B declared in .test' type=.B origin=null - $receiver: GET_VAR 'val tmp_0: .A [val] declared in .test' type=.A origin=null + $receiver: GET_VAR 'val tmp_0: .A declared in .test' type=.A origin=null diff --git a/compiler/testData/ir/irText/expressions/dotQualified.ir.txt b/compiler/testData/ir/irText/expressions/dotQualified.ir.txt index 7d730a47d3b..6f4aa2d5fc5 100644 --- a/compiler/testData/ir/irText/expressions/dotQualified.ir.txt +++ b/compiler/testData/ir/irText/expressions/dotQualified.ir.txt @@ -15,10 +15,10 @@ FILE fqName: fileName:/dotQualified.kt WHEN type=kotlin.Int? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_0: kotlin.String? [val] declared in .lengthN' type=kotlin.String? origin=null + arg0: GET_VAR 'val tmp_0: kotlin.String? declared in .lengthN' type=kotlin.String? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public open fun (): kotlin.Int declared in kotlin.String' type=kotlin.Int origin=GET_PROPERTY - $this: GET_VAR 'val tmp_0: kotlin.String? [val] declared in .lengthN' type=kotlin.String? origin=null + $this: GET_VAR 'val tmp_0: kotlin.String? declared in .lengthN' type=kotlin.String? origin=null diff --git a/compiler/testData/ir/irText/expressions/elvis.fir.ir.txt b/compiler/testData/ir/irText/expressions/elvis.fir.ir.txt index 2b4064a2fc2..eba6ff47841 100644 --- a/compiler/testData/ir/irText/expressions/elvis.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/elvis.fir.ir.txt @@ -23,12 +23,12 @@ FILE fqName: fileName:/elvis.kt WHEN type=kotlin.Any origin=ELVIS BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_0: kotlin.Any? [val] declared in .test1' type=kotlin.Any? origin=null + arg0: GET_VAR 'val tmp_0: kotlin.Any? declared in .test1' type=kotlin.Any? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: GET_VAR 'b: kotlin.Any declared in .test1' type=kotlin.Any origin=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val tmp_0: kotlin.Any? [val] declared in .test1' type=kotlin.Any? origin=null + then: GET_VAR 'val tmp_0: kotlin.Any? declared in .test1' type=kotlin.Any? origin=null FUN name:test2 visibility:public modality:FINAL <> (a:kotlin.String?, b:kotlin.Any) returnType:kotlin.Any VALUE_PARAMETER name:a index:0 type:kotlin.String? VALUE_PARAMETER name:b index:1 type:kotlin.Any @@ -40,12 +40,12 @@ FILE fqName: fileName:/elvis.kt WHEN type=kotlin.Any origin=ELVIS BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_1: kotlin.String? [val] declared in .test2' type=kotlin.String? origin=null + arg0: GET_VAR 'val tmp_1: kotlin.String? declared in .test2' type=kotlin.String? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: GET_VAR 'b: kotlin.Any declared in .test2' type=kotlin.Any origin=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val tmp_1: kotlin.String? [val] declared in .test2' type=kotlin.String? origin=null + then: GET_VAR 'val tmp_1: kotlin.String? declared in .test2' type=kotlin.String? origin=null FUN name:test3 visibility:public modality:FINAL <> (a:kotlin.Any?, b:kotlin.Any?) returnType:kotlin.String VALUE_PARAMETER name:a index:0 type:kotlin.Any? VALUE_PARAMETER name:b index:1 type:kotlin.Any? @@ -70,13 +70,13 @@ FILE fqName: fileName:/elvis.kt WHEN type=kotlin.String origin=ELVIS BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_2: kotlin.String? [val] declared in .test3' type=kotlin.String? origin=null + arg0: GET_VAR 'val tmp_2: kotlin.String? declared in .test3' type=kotlin.String? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: TYPE_OP type=kotlin.String origin=IMPLICIT_CAST typeOperand=kotlin.String GET_VAR 'b: kotlin.Any? declared in .test3' type=kotlin.Any? origin=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val tmp_2: kotlin.String? [val] declared in .test3' type=kotlin.String? origin=null + then: GET_VAR 'val tmp_2: kotlin.String? declared in .test3' type=kotlin.String? origin=null FUN name:test4 visibility:public modality:FINAL <> (x:kotlin.Any) returnType:kotlin.Any VALUE_PARAMETER name:x index:0 type:kotlin.Any BLOCK_BODY @@ -87,12 +87,12 @@ FILE fqName: fileName:/elvis.kt WHEN type=kotlin.Any origin=ELVIS BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_3: kotlin.Any? [val] declared in .test4' type=kotlin.Any? origin=null + arg0: GET_VAR 'val tmp_3: kotlin.Any? declared in .test4' type=kotlin.Any? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: GET_VAR 'x: kotlin.Any declared in .test4' type=kotlin.Any origin=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val tmp_3: kotlin.Any? [val] declared in .test4' type=kotlin.Any? origin=null + then: GET_VAR 'val tmp_3: kotlin.Any? declared in .test4' type=kotlin.Any? origin=null FUN name:test5 visibility:public modality:FINAL <> (x:kotlin.Any) returnType:kotlin.Any VALUE_PARAMETER name:x index:0 type:kotlin.Any BLOCK_BODY @@ -103,9 +103,9 @@ FILE fqName: fileName:/elvis.kt WHEN type=kotlin.Any origin=ELVIS BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_4: kotlin.Any? [val] declared in .test5' type=kotlin.Any? origin=null + arg0: GET_VAR 'val tmp_4: kotlin.Any? declared in .test5' type=kotlin.Any? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: GET_VAR 'x: kotlin.Any declared in .test5' type=kotlin.Any origin=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val tmp_4: kotlin.Any? [val] declared in .test5' type=kotlin.Any? origin=null + then: GET_VAR 'val tmp_4: kotlin.Any? declared in .test5' type=kotlin.Any? origin=null diff --git a/compiler/testData/ir/irText/expressions/elvis.ir.txt b/compiler/testData/ir/irText/expressions/elvis.ir.txt index 3fe78d58f46..09cda5fd2a8 100644 --- a/compiler/testData/ir/irText/expressions/elvis.ir.txt +++ b/compiler/testData/ir/irText/expressions/elvis.ir.txt @@ -23,12 +23,12 @@ FILE fqName: fileName:/elvis.kt WHEN type=kotlin.Any origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_0: kotlin.Any? [val] declared in .test1' type=kotlin.Any? origin=null + arg0: GET_VAR 'val tmp_0: kotlin.Any? declared in .test1' type=kotlin.Any? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: GET_VAR 'b: kotlin.Any declared in .test1' type=kotlin.Any origin=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val tmp_0: kotlin.Any? [val] declared in .test1' type=kotlin.Any? origin=null + then: GET_VAR 'val tmp_0: kotlin.Any? declared in .test1' type=kotlin.Any? origin=null FUN name:test2 visibility:public modality:FINAL <> (a:kotlin.String?, b:kotlin.Any) returnType:kotlin.Any VALUE_PARAMETER name:a index:0 type:kotlin.String? VALUE_PARAMETER name:b index:1 type:kotlin.Any @@ -40,12 +40,12 @@ FILE fqName: fileName:/elvis.kt WHEN type=kotlin.Any origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_1: kotlin.String? [val] declared in .test2' type=kotlin.String? origin=null + arg0: GET_VAR 'val tmp_1: kotlin.String? declared in .test2' type=kotlin.String? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: GET_VAR 'b: kotlin.Any declared in .test2' type=kotlin.Any origin=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val tmp_1: kotlin.String? [val] declared in .test2' type=kotlin.String? origin=null + then: GET_VAR 'val tmp_1: kotlin.String? declared in .test2' type=kotlin.String? origin=null FUN name:test3 visibility:public modality:FINAL <> (a:kotlin.Any?, b:kotlin.Any?) returnType:kotlin.String VALUE_PARAMETER name:a index:0 type:kotlin.Any? VALUE_PARAMETER name:b index:1 type:kotlin.Any? @@ -70,13 +70,13 @@ FILE fqName: fileName:/elvis.kt WHEN type=kotlin.String origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_2: kotlin.String? [val] declared in .test3' type=kotlin.String? origin=null + arg0: GET_VAR 'val tmp_2: kotlin.String? declared in .test3' type=kotlin.String? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: TYPE_OP type=kotlin.String origin=IMPLICIT_CAST typeOperand=kotlin.String GET_VAR 'b: kotlin.Any? declared in .test3' type=kotlin.Any? origin=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val tmp_2: kotlin.String? [val] declared in .test3' type=kotlin.String? origin=null + then: GET_VAR 'val tmp_2: kotlin.String? declared in .test3' type=kotlin.String? origin=null FUN name:test4 visibility:public modality:FINAL <> (x:kotlin.Any) returnType:kotlin.Any VALUE_PARAMETER name:x index:0 type:kotlin.Any BLOCK_BODY @@ -87,12 +87,12 @@ FILE fqName: fileName:/elvis.kt WHEN type=kotlin.Any origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_3: kotlin.Any? [val] declared in .test4' type=kotlin.Any? origin=null + arg0: GET_VAR 'val tmp_3: kotlin.Any? declared in .test4' type=kotlin.Any? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: GET_VAR 'x: kotlin.Any declared in .test4' type=kotlin.Any origin=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val tmp_3: kotlin.Any? [val] declared in .test4' type=kotlin.Any? origin=null + then: GET_VAR 'val tmp_3: kotlin.Any? declared in .test4' type=kotlin.Any? origin=null FUN name:test5 visibility:public modality:FINAL <> (x:kotlin.Any) returnType:kotlin.Any VALUE_PARAMETER name:x index:0 type:kotlin.Any BLOCK_BODY @@ -103,9 +103,9 @@ FILE fqName: fileName:/elvis.kt WHEN type=kotlin.Any origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_4: kotlin.Any? [val] declared in .test5' type=kotlin.Any? origin=null + arg0: GET_VAR 'val tmp_4: kotlin.Any? declared in .test5' type=kotlin.Any? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: GET_VAR 'x: kotlin.Any declared in .test5' type=kotlin.Any origin=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val tmp_4: kotlin.Any? [val] declared in .test5' type=kotlin.Any? origin=null + then: GET_VAR 'val tmp_4: kotlin.Any? declared in .test5' type=kotlin.Any? origin=null diff --git a/compiler/testData/ir/irText/expressions/enumEntryAsReceiver.fir.ir.txt b/compiler/testData/ir/irText/expressions/enumEntryAsReceiver.fir.ir.txt index ae7a1d87133..93b4b7f15fd 100644 --- a/compiler/testData/ir/irText/expressions/enumEntryAsReceiver.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/enumEntryAsReceiver.fir.ir.txt @@ -3,17 +3,17 @@ FILE fqName: fileName:/enumEntryAsReceiver.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.X CONSTRUCTOR visibility:private <> () returnType:.X [primary] BLOCK_BODY - ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) [primary] declared in kotlin.Enum' + ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) declared in kotlin.Enum' : .X INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_CLASS name:X modality:ABSTRACT visibility:public superTypes:[kotlin.Enum<.X>]' ENUM_ENTRY name:B init: EXPRESSION_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor () [primary] declared in .X.B' + ENUM_CONSTRUCTOR_CALL 'private constructor () declared in .X.B' class: CLASS ENUM_ENTRY name:B modality:FINAL visibility:private superTypes:[.X] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.X.B CONSTRUCTOR visibility:private <> () returnType:.X.B [primary] BLOCK_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor () [primary] declared in .X' + ENUM_CONSTRUCTOR_CALL 'private constructor () declared in .X' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_ENTRY name:B modality:FINAL visibility:private superTypes:[.X]' PROPERTY name:value2 visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:value2 type:kotlin.String visibility:private [final] @@ -28,7 +28,7 @@ FILE fqName: fileName:/enumEntryAsReceiver.kt receiver: GET_VAR ': .X.B declared in .X.B.' type=.X.B origin=null PROPERTY name:value visibility:public modality:OPEN [val] overridden: - public abstract value: kotlin.Function0 [val] + public abstract value: kotlin.Function0 FIELD PROPERTY_BACKING_FIELD name:value type:kotlin.Function0 visibility:private [final] EXPRESSION_BODY FUN_EXPR type=kotlin.Function0 origin=LAMBDA @@ -48,51 +48,51 @@ FILE fqName: fileName:/enumEntryAsReceiver.kt receiver: GET_VAR ': .X.B declared in .X.B.' type=.X.B origin=null FUN FAKE_OVERRIDE name:clone visibility:protected modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Any [fake_override] overridden: - protected final fun clone (): kotlin.Any [fake_override] declared in .X + protected final fun clone (): kotlin.Any declared in .X $this: VALUE_PARAMETER name: type:kotlin.Enum FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum, other:.X) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: .X): kotlin.Int [fake_override,operator] declared in .X + public final fun compareTo (other: .X): kotlin.Int declared in .X $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:.X FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .X + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in .X $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:hashCode visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] overridden: - public final fun hashCode (): kotlin.Int [fake_override] declared in .X + public final fun hashCode (): kotlin.Int declared in .X $this: VALUE_PARAMETER name: type:kotlin.Enum FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Enum) returnType:kotlin.String [fake_override] overridden: - public open fun toString (): kotlin.String [fake_override] declared in .X + public open fun toString (): kotlin.String declared in .X $this: VALUE_PARAMETER name: type:kotlin.Enum PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [fake_override,val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: - public final fun (): kotlin.String [fake_override] declared in .X + public final fun (): kotlin.String declared in .X $this: VALUE_PARAMETER name: type:kotlin.Enum PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [fake_override,val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final fun (): kotlin.Int [fake_override] declared in .X + public final fun (): kotlin.Int declared in .X $this: VALUE_PARAMETER name: type:kotlin.Enum FUN FAKE_OVERRIDE name:getDeclaringClass visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:@[FlexibleNullability] java.lang.Class<@[FlexibleNullability] .X?>? [fake_override] overridden: - public final fun getDeclaringClass (): @[FlexibleNullability] java.lang.Class<@[FlexibleNullability] .X?>? [fake_override] declared in .X + public final fun getDeclaringClass (): @[FlexibleNullability] java.lang.Class<@[FlexibleNullability] .X?>? declared in .X $this: VALUE_PARAMETER name: type:kotlin.Enum FUN FAKE_OVERRIDE name:finalize visibility:protected/*protected and package*/ modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Unit [fake_override] overridden: - protected/*protected and package*/ final fun finalize (): kotlin.Unit [fake_override] declared in .X + protected/*protected and package*/ final fun finalize (): kotlin.Unit declared in .X $this: VALUE_PARAMETER name: type:kotlin.Enum PROPERTY name:value visibility:public modality:ABSTRACT [val] FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:ABSTRACT <> ($this:.X) returnType:kotlin.Function0 @@ -113,12 +113,12 @@ FILE fqName: fileName:/enumEntryAsReceiver.kt $this: VALUE_PARAMETER name: type:kotlin.Enum FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum, other:.X) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: E of kotlin.Enum): kotlin.Int [operator] declared in kotlin.Enum + public final fun compareTo (other: E of kotlin.Enum): kotlin.Int declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:.X FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Enum + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:hashCode visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] @@ -133,7 +133,7 @@ FILE fqName: fileName:/enumEntryAsReceiver.kt annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: @@ -141,7 +141,7 @@ FILE fqName: fileName:/enumEntryAsReceiver.kt $this: VALUE_PARAMETER name: type:kotlin.Enum PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: @@ -158,6 +158,6 @@ FILE fqName: fileName:/enumEntryAsReceiver.kt FUN name:box visibility:public modality:FINAL <> () returnType:kotlin.String BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' - CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=kotlin.String origin=INVOKE + CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=kotlin.String origin=INVOKE $this: CALL 'public abstract fun (): kotlin.Function0 declared in .X' type=kotlin.Function0 origin=GET_PROPERTY $this: GET_ENUM 'ENUM_ENTRY name:B' type=.X diff --git a/compiler/testData/ir/irText/expressions/enumEntryAsReceiver.ir.txt b/compiler/testData/ir/irText/expressions/enumEntryAsReceiver.ir.txt index dd9db5084bc..3d2c8085589 100644 --- a/compiler/testData/ir/irText/expressions/enumEntryAsReceiver.ir.txt +++ b/compiler/testData/ir/irText/expressions/enumEntryAsReceiver.ir.txt @@ -3,18 +3,18 @@ FILE fqName: fileName:/enumEntryAsReceiver.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.X CONSTRUCTOR visibility:private <> () returnType:.X [primary] BLOCK_BODY - ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) [primary] declared in kotlin.Enum' + ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) declared in kotlin.Enum' : .X INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_CLASS name:X modality:ABSTRACT visibility:public superTypes:[kotlin.Enum<.X>]' ENUM_ENTRY name:B init: EXPRESSION_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor () [primary] declared in .X.B' + ENUM_CONSTRUCTOR_CALL 'private constructor () declared in .X.B' class: CLASS ENUM_ENTRY name:B modality:FINAL visibility:private superTypes:[.X] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.X.B CONSTRUCTOR visibility:private <> () returnType:.X.B [primary] BLOCK_BODY TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit - ENUM_CONSTRUCTOR_CALL 'private constructor () [primary] declared in .X' + ENUM_CONSTRUCTOR_CALL 'private constructor () declared in .X' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_ENTRY name:B modality:FINAL visibility:private superTypes:[.X]' PROPERTY name:value2 visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:value2 type:kotlin.String visibility:private [final] @@ -29,7 +29,7 @@ FILE fqName: fileName:/enumEntryAsReceiver.kt receiver: GET_VAR ': .X.B declared in .X.B.' type=.X.B origin=null PROPERTY name:value visibility:public modality:OPEN [val] overridden: - public abstract value: kotlin.Function0 [val] + public abstract value: kotlin.Function0 FIELD PROPERTY_BACKING_FIELD name:value type:kotlin.Function0 visibility:private [final] EXPRESSION_BODY FUN_EXPR type=kotlin.Function0 origin=LAMBDA @@ -51,49 +51,49 @@ FILE fqName: fileName:/enumEntryAsReceiver.kt annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [fake_override,val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.X>) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: - public final fun (): kotlin.String [fake_override] declared in .X + public final fun (): kotlin.String declared in .X $this: VALUE_PARAMETER name: type:kotlin.Enum<.X> PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [fake_override,val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.X>) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final fun (): kotlin.Int [fake_override] declared in .X + public final fun (): kotlin.Int declared in .X $this: VALUE_PARAMETER name: type:kotlin.Enum<.X> FUN FAKE_OVERRIDE name:clone visibility:protected modality:FINAL <> ($this:kotlin.Enum<.X>) returnType:kotlin.Any [fake_override] overridden: - protected final fun clone (): kotlin.Any [fake_override] declared in .X + protected final fun clone (): kotlin.Any declared in .X $this: VALUE_PARAMETER name: type:kotlin.Enum<.X> FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum<.X>, other:.X) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: .X): kotlin.Int [fake_override,operator] declared in .X + public final fun compareTo (other: .X): kotlin.Int declared in .X $this: VALUE_PARAMETER name: type:kotlin.Enum<.X> VALUE_PARAMETER name:other index:0 type:.X FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum<.X>, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .X + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in .X $this: VALUE_PARAMETER name: type:kotlin.Enum<.X> VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:finalize visibility:protected/*protected and package*/ modality:FINAL <> ($this:kotlin.Enum<.X>) returnType:kotlin.Unit [fake_override] overridden: - protected/*protected and package*/ final fun finalize (): kotlin.Unit [fake_override] declared in .X + protected/*protected and package*/ final fun finalize (): kotlin.Unit declared in .X $this: VALUE_PARAMETER name: type:kotlin.Enum<.X> FUN FAKE_OVERRIDE name:getDeclaringClass visibility:public modality:FINAL <> ($this:kotlin.Enum<.X>) returnType:@[FlexibleNullability] java.lang.Class<@[FlexibleNullability] .X?>? [fake_override] overridden: - public final fun getDeclaringClass (): @[FlexibleNullability] java.lang.Class<@[FlexibleNullability] .X?>? [fake_override] declared in .X + public final fun getDeclaringClass (): @[FlexibleNullability] java.lang.Class<@[FlexibleNullability] .X?>? declared in .X $this: VALUE_PARAMETER name: type:kotlin.Enum<.X> FUN FAKE_OVERRIDE name:hashCode visibility:public modality:FINAL <> ($this:kotlin.Enum<.X>) returnType:kotlin.Int [fake_override] overridden: - public final fun hashCode (): kotlin.Int [fake_override] declared in .X + public final fun hashCode (): kotlin.Int declared in .X $this: VALUE_PARAMETER name: type:kotlin.Enum<.X> FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Enum<.X>) returnType:kotlin.String [fake_override] overridden: - public open fun toString (): kotlin.String [fake_override] declared in .X + public open fun toString (): kotlin.String declared in .X $this: VALUE_PARAMETER name: type:kotlin.Enum<.X> PROPERTY name:value visibility:public modality:ABSTRACT [val] FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:ABSTRACT <> ($this:.X) returnType:kotlin.Function0 @@ -103,7 +103,7 @@ FILE fqName: fileName:/enumEntryAsReceiver.kt annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.X>) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: @@ -111,7 +111,7 @@ FILE fqName: fileName:/enumEntryAsReceiver.kt $this: VALUE_PARAMETER name: type:kotlin.Enum<.X> PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.X>) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: @@ -123,12 +123,12 @@ FILE fqName: fileName:/enumEntryAsReceiver.kt $this: VALUE_PARAMETER name: type:kotlin.Enum<.X> FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum<.X>, other:.X) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: E of kotlin.Enum): kotlin.Int [operator] declared in kotlin.Enum + public final fun compareTo (other: E of kotlin.Enum): kotlin.Int declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum<.X> VALUE_PARAMETER name:other index:0 type:.X FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum<.X>, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Enum + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum<.X> VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:finalize visibility:protected/*protected and package*/ modality:FINAL <> ($this:kotlin.Enum<.X>) returnType:kotlin.Unit [fake_override] @@ -159,6 +159,6 @@ FILE fqName: fileName:/enumEntryAsReceiver.kt FUN name:box visibility:public modality:FINAL <> () returnType:kotlin.String BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' - CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=kotlin.String origin=INVOKE + CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=kotlin.String origin=INVOKE $this: CALL 'public abstract fun (): kotlin.Function0 declared in .X' type=kotlin.Function0 origin=GET_PROPERTY $this: GET_ENUM 'ENUM_ENTRY name:B' type=.X diff --git a/compiler/testData/ir/irText/expressions/enumEntryReferenceFromEnumEntryClass.fir.ir.txt b/compiler/testData/ir/irText/expressions/enumEntryReferenceFromEnumEntryClass.fir.ir.txt index d9c2890b100..66209713f7d 100644 --- a/compiler/testData/ir/irText/expressions/enumEntryReferenceFromEnumEntryClass.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/enumEntryReferenceFromEnumEntryClass.fir.ir.txt @@ -3,17 +3,17 @@ FILE fqName: fileName:/enumEntryReferenceFromEnumEntryClass.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.MyEnum CONSTRUCTOR visibility:private <> () returnType:.MyEnum [primary] BLOCK_BODY - ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) [primary] declared in kotlin.Enum' + ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) declared in kotlin.Enum' : .MyEnum INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_CLASS name:MyEnum modality:OPEN visibility:public superTypes:[kotlin.Enum<.MyEnum>]' ENUM_ENTRY name:Z init: EXPRESSION_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor () [primary] declared in .MyEnum.Z' + ENUM_CONSTRUCTOR_CALL 'private constructor () declared in .MyEnum.Z' class: CLASS ENUM_ENTRY name:Z modality:FINAL visibility:private superTypes:[.MyEnum] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.MyEnum.Z CONSTRUCTOR visibility:private <> () returnType:.MyEnum.Z [primary] BLOCK_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor () [primary] declared in .MyEnum' + ENUM_CONSTRUCTOR_CALL 'private constructor () declared in .MyEnum' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_ENTRY name:Z modality:FINAL visibility:private superTypes:[.MyEnum]' PROPERTY name:counter visibility:public modality:FINAL [var] FIELD PROPERTY_BACKING_FIELD name:counter type:kotlin.Int visibility:private @@ -71,7 +71,7 @@ FILE fqName: fileName:/enumEntryReferenceFromEnumEntryClass.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.MyEnum.Z.anObject. CONSTRUCTOR visibility:public <> () returnType:.MyEnum.Z.anObject. [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name: modality:FINAL visibility:local superTypes:[kotlin.Any]' ANONYMOUS_INITIALIZER isStatic=false BLOCK_BODY @@ -90,7 +90,7 @@ FILE fqName: fileName:/enumEntryReferenceFromEnumEntryClass.kt $this: GET_VAR ': .MyEnum.Z declared in .MyEnum.Z' type=.MyEnum.Z 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -101,7 +101,7 @@ FILE fqName: fileName:/enumEntryReferenceFromEnumEntryClass.kt overridden: public open fun toString (): kotlin.String declared in kotlin.Any $this: VALUE_PARAMETER name: type:kotlin.Any - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .MyEnum.Z.anObject.' type=.MyEnum.Z.anObject. origin=OBJECT_LITERAL + CONSTRUCTOR_CALL 'public constructor () declared in .MyEnum.Z.anObject.' type=.MyEnum.Z.anObject. origin=OBJECT_LITERAL FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:.MyEnum.Z) returnType:.MyEnum.Z.anObject. correspondingProperty: PROPERTY name:anObject visibility:public modality:FINAL [val] $this: VALUE_PARAMETER name: type:.MyEnum.Z @@ -111,51 +111,51 @@ FILE fqName: fileName:/enumEntryReferenceFromEnumEntryClass.kt receiver: GET_VAR ': .MyEnum.Z declared in .MyEnum.Z.' type=.MyEnum.Z origin=null FUN FAKE_OVERRIDE name:clone visibility:protected modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Any [fake_override] overridden: - protected final fun clone (): kotlin.Any [fake_override] declared in .MyEnum + protected final fun clone (): kotlin.Any declared in .MyEnum $this: VALUE_PARAMETER name: type:kotlin.Enum FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum, other:.MyEnum) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: .MyEnum): kotlin.Int [fake_override,operator] declared in .MyEnum + public final fun compareTo (other: .MyEnum): kotlin.Int declared in .MyEnum $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:.MyEnum FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .MyEnum + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in .MyEnum $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:hashCode visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] overridden: - public final fun hashCode (): kotlin.Int [fake_override] declared in .MyEnum + public final fun hashCode (): kotlin.Int declared in .MyEnum $this: VALUE_PARAMETER name: type:kotlin.Enum FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Enum) returnType:kotlin.String [fake_override] overridden: - public open fun toString (): kotlin.String [fake_override] declared in .MyEnum + public open fun toString (): kotlin.String declared in .MyEnum $this: VALUE_PARAMETER name: type:kotlin.Enum PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [fake_override,val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: - public final fun (): kotlin.String [fake_override] declared in .MyEnum + public final fun (): kotlin.String declared in .MyEnum $this: VALUE_PARAMETER name: type:kotlin.Enum PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [fake_override,val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final fun (): kotlin.Int [fake_override] declared in .MyEnum + public final fun (): kotlin.Int declared in .MyEnum $this: VALUE_PARAMETER name: type:kotlin.Enum FUN FAKE_OVERRIDE name:getDeclaringClass visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:@[FlexibleNullability] java.lang.Class<@[FlexibleNullability] .MyEnum?>? [fake_override] overridden: - public final fun getDeclaringClass (): @[FlexibleNullability] java.lang.Class<@[FlexibleNullability] .MyEnum?>? [fake_override] declared in .MyEnum + public final fun getDeclaringClass (): @[FlexibleNullability] java.lang.Class<@[FlexibleNullability] .MyEnum?>? declared in .MyEnum $this: VALUE_PARAMETER name: type:kotlin.Enum FUN FAKE_OVERRIDE name:finalize visibility:protected/*protected and package*/ modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Unit [fake_override] overridden: - protected/*protected and package*/ final fun finalize (): kotlin.Unit [fake_override] declared in .MyEnum + protected/*protected and package*/ final fun finalize (): kotlin.Unit declared in .MyEnum $this: VALUE_PARAMETER name: type:kotlin.Enum FUN ENUM_CLASS_SPECIAL_MEMBER name:values visibility:public modality:FINAL <> () returnType:kotlin.Array<.MyEnum> SYNTHETIC_BODY kind=ENUM_VALUES @@ -172,12 +172,12 @@ FILE fqName: fileName:/enumEntryReferenceFromEnumEntryClass.kt $this: VALUE_PARAMETER name: type:kotlin.Enum FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum, other:.MyEnum) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: E of kotlin.Enum): kotlin.Int [operator] declared in kotlin.Enum + public final fun compareTo (other: E of kotlin.Enum): kotlin.Int declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:.MyEnum FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Enum + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:hashCode visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] @@ -192,7 +192,7 @@ FILE fqName: fileName:/enumEntryReferenceFromEnumEntryClass.kt annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: @@ -200,7 +200,7 @@ FILE fqName: fileName:/enumEntryReferenceFromEnumEntryClass.kt $this: VALUE_PARAMETER name: type:kotlin.Enum PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: diff --git a/compiler/testData/ir/irText/expressions/enumEntryReferenceFromEnumEntryClass.ir.txt b/compiler/testData/ir/irText/expressions/enumEntryReferenceFromEnumEntryClass.ir.txt index be58403bd14..252b6037c24 100644 --- a/compiler/testData/ir/irText/expressions/enumEntryReferenceFromEnumEntryClass.ir.txt +++ b/compiler/testData/ir/irText/expressions/enumEntryReferenceFromEnumEntryClass.ir.txt @@ -3,18 +3,18 @@ FILE fqName: fileName:/enumEntryReferenceFromEnumEntryClass.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.MyEnum CONSTRUCTOR visibility:private <> () returnType:.MyEnum [primary] BLOCK_BODY - ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) [primary] declared in kotlin.Enum' + ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) declared in kotlin.Enum' : .MyEnum INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_CLASS name:MyEnum modality:OPEN visibility:public superTypes:[kotlin.Enum<.MyEnum>]' ENUM_ENTRY name:Z init: EXPRESSION_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor () [primary] declared in .MyEnum.Z' + ENUM_CONSTRUCTOR_CALL 'private constructor () declared in .MyEnum.Z' class: CLASS ENUM_ENTRY name:Z modality:FINAL visibility:private superTypes:[.MyEnum] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.MyEnum.Z CONSTRUCTOR visibility:private <> () returnType:.MyEnum.Z [primary] BLOCK_BODY TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit - ENUM_CONSTRUCTOR_CALL 'private constructor () [primary] declared in .MyEnum' + ENUM_CONSTRUCTOR_CALL 'private constructor () declared in .MyEnum' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_ENTRY name:Z modality:FINAL visibility:private superTypes:[.MyEnum]' PROPERTY name:counter visibility:public modality:FINAL [var] FIELD PROPERTY_BACKING_FIELD name:counter type:kotlin.Int visibility:private @@ -72,7 +72,7 @@ FILE fqName: fileName:/enumEntryReferenceFromEnumEntryClass.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.MyEnum.Z.anObject. CONSTRUCTOR visibility:public <> () returnType:.MyEnum.Z.anObject. [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name: modality:FINAL visibility:local superTypes:[kotlin.Any]' ANONYMOUS_INITIALIZER isStatic=false BLOCK_BODY @@ -91,7 +91,7 @@ FILE fqName: fileName:/enumEntryReferenceFromEnumEntryClass.kt $this: GET_ENUM 'ENUM_ENTRY name:Z' type=.MyEnum.Z 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -102,7 +102,7 @@ FILE fqName: fileName:/enumEntryReferenceFromEnumEntryClass.kt overridden: public open fun toString (): kotlin.String declared in kotlin.Any $this: VALUE_PARAMETER name: type:kotlin.Any - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .MyEnum.Z.anObject.' type=.MyEnum.Z.anObject. origin=OBJECT_LITERAL + CONSTRUCTOR_CALL 'public constructor () declared in .MyEnum.Z.anObject.' type=.MyEnum.Z.anObject. origin=OBJECT_LITERAL FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:.MyEnum.Z) returnType:kotlin.Any correspondingProperty: PROPERTY name:anObject visibility:public modality:FINAL [val] $this: VALUE_PARAMETER name: type:.MyEnum.Z @@ -114,55 +114,55 @@ FILE fqName: fileName:/enumEntryReferenceFromEnumEntryClass.kt annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [fake_override,val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.MyEnum>) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: - public final fun (): kotlin.String [fake_override] declared in .MyEnum + public final fun (): kotlin.String declared in .MyEnum $this: VALUE_PARAMETER name: type:kotlin.Enum<.MyEnum> PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [fake_override,val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.MyEnum>) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final fun (): kotlin.Int [fake_override] declared in .MyEnum + public final fun (): kotlin.Int declared in .MyEnum $this: VALUE_PARAMETER name: type:kotlin.Enum<.MyEnum> FUN FAKE_OVERRIDE name:clone visibility:protected modality:FINAL <> ($this:kotlin.Enum<.MyEnum>) returnType:kotlin.Any [fake_override] overridden: - protected final fun clone (): kotlin.Any [fake_override] declared in .MyEnum + protected final fun clone (): kotlin.Any declared in .MyEnum $this: VALUE_PARAMETER name: type:kotlin.Enum<.MyEnum> FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum<.MyEnum>, other:.MyEnum) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: .MyEnum): kotlin.Int [fake_override,operator] declared in .MyEnum + public final fun compareTo (other: .MyEnum): kotlin.Int declared in .MyEnum $this: VALUE_PARAMETER name: type:kotlin.Enum<.MyEnum> VALUE_PARAMETER name:other index:0 type:.MyEnum FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum<.MyEnum>, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .MyEnum + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in .MyEnum $this: VALUE_PARAMETER name: type:kotlin.Enum<.MyEnum> VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:finalize visibility:protected/*protected and package*/ modality:FINAL <> ($this:kotlin.Enum<.MyEnum>) returnType:kotlin.Unit [fake_override] overridden: - protected/*protected and package*/ final fun finalize (): kotlin.Unit [fake_override] declared in .MyEnum + protected/*protected and package*/ final fun finalize (): kotlin.Unit declared in .MyEnum $this: VALUE_PARAMETER name: type:kotlin.Enum<.MyEnum> FUN FAKE_OVERRIDE name:getDeclaringClass visibility:public modality:FINAL <> ($this:kotlin.Enum<.MyEnum>) returnType:@[FlexibleNullability] java.lang.Class<@[FlexibleNullability] .MyEnum?>? [fake_override] overridden: - public final fun getDeclaringClass (): @[FlexibleNullability] java.lang.Class<@[FlexibleNullability] .MyEnum?>? [fake_override] declared in .MyEnum + public final fun getDeclaringClass (): @[FlexibleNullability] java.lang.Class<@[FlexibleNullability] .MyEnum?>? declared in .MyEnum $this: VALUE_PARAMETER name: type:kotlin.Enum<.MyEnum> FUN FAKE_OVERRIDE name:hashCode visibility:public modality:FINAL <> ($this:kotlin.Enum<.MyEnum>) returnType:kotlin.Int [fake_override] overridden: - public final fun hashCode (): kotlin.Int [fake_override] declared in .MyEnum + public final fun hashCode (): kotlin.Int declared in .MyEnum $this: VALUE_PARAMETER name: type:kotlin.Enum<.MyEnum> FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Enum<.MyEnum>) returnType:kotlin.String [fake_override] overridden: - public open fun toString (): kotlin.String [fake_override] declared in .MyEnum + public open fun toString (): kotlin.String declared in .MyEnum $this: VALUE_PARAMETER name: type:kotlin.Enum<.MyEnum> PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.MyEnum>) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: @@ -170,7 +170,7 @@ FILE fqName: fileName:/enumEntryReferenceFromEnumEntryClass.kt $this: VALUE_PARAMETER name: type:kotlin.Enum<.MyEnum> PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.MyEnum>) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: @@ -182,12 +182,12 @@ FILE fqName: fileName:/enumEntryReferenceFromEnumEntryClass.kt $this: VALUE_PARAMETER name: type:kotlin.Enum<.MyEnum> FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum<.MyEnum>, other:.MyEnum) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: E of kotlin.Enum): kotlin.Int [operator] declared in kotlin.Enum + public final fun compareTo (other: E of kotlin.Enum): kotlin.Int declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum<.MyEnum> VALUE_PARAMETER name:other index:0 type:.MyEnum FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum<.MyEnum>, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Enum + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum<.MyEnum> VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:finalize visibility:protected/*protected and package*/ modality:FINAL <> ($this:kotlin.Enum<.MyEnum>) returnType:kotlin.Unit [fake_override] diff --git a/compiler/testData/ir/irText/expressions/equality.ir.txt b/compiler/testData/ir/irText/expressions/equality.ir.txt index 175a40a7b4c..5d9fab02529 100644 --- a/compiler/testData/ir/irText/expressions/equality.ir.txt +++ b/compiler/testData/ir/irText/expressions/equality.ir.txt @@ -12,7 +12,7 @@ FILE fqName: fileName:/equality.kt VALUE_PARAMETER name:b index:1 type:kotlin.Int BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test2 (a: kotlin.Int, b: kotlin.Int): kotlin.Boolean declared in ' - CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ + CALL 'public final fun not (): kotlin.Boolean 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_VAR 'a: kotlin.Int declared in .test2' type=kotlin.Int origin=null arg1: GET_VAR 'b: kotlin.Int declared in .test2' type=kotlin.Int origin=null diff --git a/compiler/testData/ir/irText/expressions/equals.fir.ir.txt b/compiler/testData/ir/irText/expressions/equals.fir.ir.txt index c762ad65868..a820bc0708f 100644 --- a/compiler/testData/ir/irText/expressions/equals.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/equals.fir.ir.txt @@ -12,7 +12,7 @@ FILE fqName: fileName:/equals.kt VALUE_PARAMETER name:b index:1 type:kotlin.Int BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun testEquals (a: kotlin.Int, b: kotlin.Int): kotlin.Boolean declared in ' - CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Int' type=kotlin.Boolean origin=null + CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Int' type=kotlin.Boolean origin=null $this: GET_VAR 'a: kotlin.Int declared in .testEquals' type=kotlin.Int origin=null other: GET_VAR 'b: kotlin.Int declared in .testEquals' type=kotlin.Int origin=null FUN name:testJEqeqNull visibility:public modality:FINAL <> () returnType:kotlin.Boolean @@ -24,6 +24,6 @@ FILE fqName: fileName:/equals.kt FUN name:testJEqualsNull visibility:public modality:FINAL <> () returnType:kotlin.Boolean BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun testJEqualsNull (): kotlin.Boolean declared in ' - CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Int' type=kotlin.Boolean origin=null + CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Int' type=kotlin.Boolean origin=null $this: GET_FIELD 'FIELD IR_EXTERNAL_JAVA_DECLARATION_STUB name:INT_NULL type:@[FlexibleNullability] kotlin.Int? visibility:public [static]' type=@[FlexibleNullability] kotlin.Int? origin=GET_PROPERTY other: CONST Null type=kotlin.Nothing? value=null diff --git a/compiler/testData/ir/irText/expressions/equals.ir.txt b/compiler/testData/ir/irText/expressions/equals.ir.txt index 702d01f7657..3b78f65ab6b 100644 --- a/compiler/testData/ir/irText/expressions/equals.ir.txt +++ b/compiler/testData/ir/irText/expressions/equals.ir.txt @@ -12,7 +12,7 @@ FILE fqName: fileName:/equals.kt VALUE_PARAMETER name:b index:1 type:kotlin.Int BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun testEquals (a: kotlin.Int, b: kotlin.Int): kotlin.Boolean declared in ' - CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Int' type=kotlin.Boolean origin=null + CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Int' type=kotlin.Boolean origin=null $this: GET_VAR 'a: kotlin.Int declared in .testEquals' type=kotlin.Int origin=null other: GET_VAR 'b: kotlin.Int declared in .testEquals' type=kotlin.Int origin=null FUN name:testJEqeqNull visibility:public modality:FINAL <> () returnType:kotlin.Boolean @@ -24,7 +24,7 @@ FILE fqName: fileName:/equals.kt FUN name:testJEqualsNull visibility:public modality:FINAL <> () returnType:kotlin.Boolean BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun testJEqualsNull (): kotlin.Boolean declared in ' - CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Int' type=kotlin.Boolean origin=null + CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Int' type=kotlin.Boolean origin=null $this: TYPE_OP type=kotlin.Int origin=IMPLICIT_NOTNULL typeOperand=kotlin.Int GET_FIELD 'FIELD IR_EXTERNAL_JAVA_DECLARATION_STUB name:INT_NULL type:@[FlexibleNullability] kotlin.Int? visibility:public [static]' type=@[FlexibleNullability] kotlin.Int? origin=GET_PROPERTY other: CONST Null type=kotlin.Nothing? value=null diff --git a/compiler/testData/ir/irText/expressions/exclExclOnPlatformType.fir.ir.txt b/compiler/testData/ir/irText/expressions/exclExclOnPlatformType.fir.ir.txt index 82e133d8af7..30364fadc49 100644 --- a/compiler/testData/ir/irText/expressions/exclExclOnPlatformType.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/exclExclOnPlatformType.fir.ir.txt @@ -7,7 +7,7 @@ FILE fqName: fileName:/exclExclOnPlatformType.kt CALL 'public final fun use (a: kotlin.Any): kotlin.Unit declared in ' type=kotlin.Unit origin=null a: CALL 'public final fun CHECK_NOT_NULL (arg0: T0 of kotlin.internal.ir.CHECK_NOT_NULL?): {T0 of kotlin.internal.ir.CHECK_NOT_NULL & Any} declared in kotlin.internal.ir' type=kotlin.String origin=EXCLEXCL : kotlin.String - arg0: CALL 'public open fun get (): T of java.lang.ref.WeakReference? [fake_override] declared in java.lang.ref.WeakReference' type=kotlin.String? origin=null + arg0: CALL 'public open fun get (): T of java.lang.ref.WeakReference? declared in java.lang.ref.WeakReference' type=kotlin.String? origin=null $this: CONSTRUCTOR_CALL 'public constructor (p0: @[FlexibleNullability] T of java.lang.ref.WeakReference?) declared in java.lang.ref.WeakReference' type=java.lang.ref.WeakReference<@[FlexibleNullability] kotlin.String?> origin=null : @[FlexibleNullability] kotlin.String? p0: CONST String type=kotlin.String value="" diff --git a/compiler/testData/ir/irText/expressions/exclExclOnPlatformType.ir.txt b/compiler/testData/ir/irText/expressions/exclExclOnPlatformType.ir.txt index 9721f5d8a3b..f53769bb82b 100644 --- a/compiler/testData/ir/irText/expressions/exclExclOnPlatformType.ir.txt +++ b/compiler/testData/ir/irText/expressions/exclExclOnPlatformType.ir.txt @@ -7,7 +7,7 @@ FILE fqName: fileName:/exclExclOnPlatformType.kt CALL 'public final fun use (a: kotlin.Any): kotlin.Unit declared in ' type=kotlin.Unit origin=null a: CALL 'public final fun CHECK_NOT_NULL (arg0: T0 of kotlin.internal.ir.CHECK_NOT_NULL?): {T0 of kotlin.internal.ir.CHECK_NOT_NULL & Any} declared in kotlin.internal.ir' type=kotlin.String origin=EXCLEXCL : kotlin.String - arg0: CALL 'public open fun get (): @[EnhancedNullability] T of java.lang.ref.WeakReference? [fake_override] declared in java.lang.ref.WeakReference' type=@[EnhancedNullability] kotlin.String? origin=null + arg0: CALL 'public open fun get (): @[EnhancedNullability] T of java.lang.ref.WeakReference? declared in java.lang.ref.WeakReference' type=@[EnhancedNullability] kotlin.String? origin=null $this: CONSTRUCTOR_CALL 'public constructor (p0: @[FlexibleNullability] T of java.lang.ref.WeakReference?) declared in java.lang.ref.WeakReference' type=java.lang.ref.WeakReference<@[FlexibleNullability] kotlin.String?> origin=null : @[FlexibleNullability] kotlin.String? p0: CONST String type=kotlin.String value="" diff --git a/compiler/testData/ir/irText/expressions/exhaustiveWhenElseBranch.fir.ir.txt b/compiler/testData/ir/irText/expressions/exhaustiveWhenElseBranch.fir.ir.txt index 1645d36625f..1c2adedb86e 100644 --- a/compiler/testData/ir/irText/expressions/exhaustiveWhenElseBranch.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/exhaustiveWhenElseBranch.fir.ir.txt @@ -3,12 +3,12 @@ FILE fqName: fileName:/exhaustiveWhenElseBranch.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.A CONSTRUCTOR visibility:private <> () returnType:.A [primary] BLOCK_BODY - ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) [primary] declared in kotlin.Enum' + ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) declared in kotlin.Enum' : .A INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_CLASS name:A modality:FINAL visibility:public superTypes:[kotlin.Enum<.A>]' ENUM_ENTRY name:V1 init: EXPRESSION_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor () [primary] declared in .A' + ENUM_CONSTRUCTOR_CALL 'private constructor () declared in .A' FUN ENUM_CLASS_SPECIAL_MEMBER name:values visibility:public modality:FINAL <> () returnType:kotlin.Array<.A> SYNTHETIC_BODY kind=ENUM_VALUES FUN ENUM_CLASS_SPECIAL_MEMBER name:valueOf visibility:public modality:FINAL <> (value:kotlin.String) returnType:.A @@ -24,12 +24,12 @@ FILE fqName: fileName:/exhaustiveWhenElseBranch.kt $this: VALUE_PARAMETER name: type:kotlin.Enum FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum, other:.A) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: E of kotlin.Enum): kotlin.Int [operator] declared in kotlin.Enum + public final fun compareTo (other: E of kotlin.Enum): kotlin.Int declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:.A FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Enum + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:hashCode visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] @@ -44,7 +44,7 @@ FILE fqName: fileName:/exhaustiveWhenElseBranch.kt annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: @@ -52,7 +52,7 @@ FILE fqName: fileName:/exhaustiveWhenElseBranch.kt $this: VALUE_PARAMETER name: type:kotlin.Enum PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: @@ -76,10 +76,10 @@ FILE fqName: fileName:/exhaustiveWhenElseBranch.kt WHEN type=kotlin.Unit origin=WHEN BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_0: .A [val] declared in .testVariableAssignment_throws' type=.A origin=null + arg0: GET_VAR 'val tmp_0: .A declared in .testVariableAssignment_throws' type=.A origin=null arg1: GET_ENUM 'ENUM_ENTRY name:V1' type=.A then: BLOCK type=kotlin.Unit origin=null - SET_VAR 'val x: kotlin.Int [val] declared in .testVariableAssignment_throws' type=kotlin.Unit origin=EQ + SET_VAR 'val x: kotlin.Int declared in .testVariableAssignment_throws' type=kotlin.Unit origin=EQ CONST Int type=kotlin.Int value=11 BRANCH if: CONST Boolean type=kotlin.Boolean value=true @@ -94,7 +94,7 @@ FILE fqName: fileName:/exhaustiveWhenElseBranch.kt WHEN type=kotlin.Int origin=WHEN BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_1: .A [val] declared in .testStatement_empty' type=.A origin=null + arg0: GET_VAR 'val tmp_1: .A declared in .testStatement_empty' type=.A origin=null arg1: GET_ENUM 'ENUM_ENTRY name:V1' type=.A then: CONST Int type=kotlin.Int value=1 BRANCH @@ -110,7 +110,7 @@ FILE fqName: fileName:/exhaustiveWhenElseBranch.kt WHEN type=kotlin.Int origin=WHEN BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_2: .A [val] declared in .testParenthesized_throwsJvm' type=.A origin=null + arg0: GET_VAR 'val tmp_2: .A declared in .testParenthesized_throwsJvm' type=.A origin=null arg1: GET_ENUM 'ENUM_ENTRY name:V1' type=.A then: CONST Int type=kotlin.Int value=1 BRANCH @@ -126,7 +126,7 @@ FILE fqName: fileName:/exhaustiveWhenElseBranch.kt WHEN type=kotlin.Int origin=WHEN BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_3: .A [val] declared in .testAnnotated_throwsJvm' type=.A origin=null + arg0: GET_VAR 'val tmp_3: .A declared in .testAnnotated_throwsJvm' type=.A origin=null arg1: GET_ENUM 'ENUM_ENTRY name:V1' type=.A then: CONST Int type=kotlin.Int value=1 BRANCH @@ -142,7 +142,7 @@ FILE fqName: fileName:/exhaustiveWhenElseBranch.kt WHEN type=kotlin.Int origin=WHEN BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_4: .A [val] declared in .testExpression_throws' type=.A origin=null + arg0: GET_VAR 'val tmp_4: .A declared in .testExpression_throws' type=.A origin=null arg1: GET_ENUM 'ENUM_ENTRY name:V1' type=.A then: CONST Int type=kotlin.Int value=1 BRANCH @@ -165,7 +165,7 @@ FILE fqName: fileName:/exhaustiveWhenElseBranch.kt WHEN type=kotlin.Int origin=WHEN BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_5: .A [val] declared in .testIfTheElseStatement_empty' type=.A origin=null + arg0: GET_VAR 'val tmp_5: .A declared in .testIfTheElseStatement_empty' type=.A origin=null arg1: GET_ENUM 'ENUM_ENTRY name:V1' type=.A then: CONST Int type=kotlin.Int value=1 BRANCH @@ -188,7 +188,7 @@ FILE fqName: fileName:/exhaustiveWhenElseBranch.kt WHEN type=kotlin.Int origin=WHEN BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_6: .A [val] declared in .testIfTheElseParenthesized_throwsJvm' type=.A origin=null + arg0: GET_VAR 'val tmp_6: .A declared in .testIfTheElseParenthesized_throwsJvm' type=.A origin=null arg1: GET_ENUM 'ENUM_ENTRY name:V1' type=.A then: CONST Int type=kotlin.Int value=1 BRANCH @@ -211,7 +211,7 @@ FILE fqName: fileName:/exhaustiveWhenElseBranch.kt WHEN type=kotlin.Int origin=WHEN BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_7: .A [val] declared in .testIfTheElseAnnotated_throwsJvm' type=.A origin=null + arg0: GET_VAR 'val tmp_7: .A declared in .testIfTheElseAnnotated_throwsJvm' type=.A origin=null arg1: GET_ENUM 'ENUM_ENTRY name:V1' type=.A then: CONST Int type=kotlin.Int value=1 BRANCH @@ -221,7 +221,7 @@ FILE fqName: fileName:/exhaustiveWhenElseBranch.kt VALUE_PARAMETER name:a index:0 type:.A BLOCK_BODY TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit - CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=kotlin.Int origin=INVOKE + CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=kotlin.Int origin=INVOKE $this: FUN_EXPR type=kotlin.Function0 origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:kotlin.Int BLOCK_BODY @@ -232,7 +232,7 @@ FILE fqName: fileName:/exhaustiveWhenElseBranch.kt WHEN type=kotlin.Int origin=WHEN BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_8: .A [val] declared in .testLambdaResultExpression_throws.' type=.A origin=null + arg0: GET_VAR 'val tmp_8: .A declared in .testLambdaResultExpression_throws.' type=.A origin=null arg1: GET_ENUM 'ENUM_ENTRY name:V1' type=.A then: CONST Int type=kotlin.Int value=1 BRANCH diff --git a/compiler/testData/ir/irText/expressions/exhaustiveWhenElseBranch.ir.txt b/compiler/testData/ir/irText/expressions/exhaustiveWhenElseBranch.ir.txt index dab5f9cd914..d54fae76a08 100644 --- a/compiler/testData/ir/irText/expressions/exhaustiveWhenElseBranch.ir.txt +++ b/compiler/testData/ir/irText/expressions/exhaustiveWhenElseBranch.ir.txt @@ -3,17 +3,17 @@ FILE fqName: fileName:/exhaustiveWhenElseBranch.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.A CONSTRUCTOR visibility:private <> () returnType:.A [primary] BLOCK_BODY - ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) [primary] declared in kotlin.Enum' + ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) declared in kotlin.Enum' : .A INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_CLASS name:A modality:FINAL visibility:public superTypes:[kotlin.Enum<.A>]' ENUM_ENTRY name:V1 init: EXPRESSION_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor () [primary] declared in .A' + ENUM_CONSTRUCTOR_CALL 'private constructor () declared in .A' PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.A>) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: @@ -21,7 +21,7 @@ FILE fqName: fileName:/exhaustiveWhenElseBranch.kt $this: VALUE_PARAMETER name: type:kotlin.Enum<.A> PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.A>) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: @@ -33,12 +33,12 @@ FILE fqName: fileName:/exhaustiveWhenElseBranch.kt $this: VALUE_PARAMETER name: type:kotlin.Enum<.A> FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum<.A>, other:.A) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: E of kotlin.Enum): kotlin.Int [operator] declared in kotlin.Enum + public final fun compareTo (other: E of kotlin.Enum): kotlin.Int declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum<.A> VALUE_PARAMETER name:other index:0 type:.A FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum<.A>, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Enum + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum<.A> VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:finalize visibility:protected/*protected and package*/ modality:FINAL <> ($this:kotlin.Enum<.A>) returnType:kotlin.Unit [fake_override] @@ -76,9 +76,9 @@ FILE fqName: fileName:/exhaustiveWhenElseBranch.kt WHEN type=kotlin.Unit origin=WHEN BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_0: .A [val] declared in .testVariableAssignment_throws' type=.A origin=null + arg0: GET_VAR 'val tmp_0: .A declared in .testVariableAssignment_throws' type=.A origin=null arg1: GET_ENUM 'ENUM_ENTRY name:V1' type=.A - then: SET_VAR 'val x: kotlin.Int [val] declared in .testVariableAssignment_throws' type=kotlin.Unit origin=EQ + then: SET_VAR 'val x: kotlin.Int declared in .testVariableAssignment_throws' type=kotlin.Unit origin=EQ CONST Int type=kotlin.Int value=11 BRANCH if: CONST Boolean type=kotlin.Boolean value=true @@ -92,7 +92,7 @@ FILE fqName: fileName:/exhaustiveWhenElseBranch.kt WHEN type=kotlin.Unit origin=WHEN BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_1: .A [val] declared in .testStatement_empty' type=.A origin=null + arg0: GET_VAR 'val tmp_1: .A declared in .testStatement_empty' type=.A origin=null arg1: GET_ENUM 'ENUM_ENTRY name:V1' type=.A then: TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit CONST Int type=kotlin.Int value=1 @@ -105,7 +105,7 @@ FILE fqName: fileName:/exhaustiveWhenElseBranch.kt WHEN type=kotlin.Unit origin=WHEN BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_2: .A [val] declared in .testParenthesized_throwsJvm' type=.A origin=null + arg0: GET_VAR 'val tmp_2: .A declared in .testParenthesized_throwsJvm' type=.A origin=null arg1: GET_ENUM 'ENUM_ENTRY name:V1' type=.A then: TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit CONST Int type=kotlin.Int value=1 @@ -118,7 +118,7 @@ FILE fqName: fileName:/exhaustiveWhenElseBranch.kt WHEN type=kotlin.Unit origin=WHEN BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_3: .A [val] declared in .testAnnotated_throwsJvm' type=.A origin=null + arg0: GET_VAR 'val tmp_3: .A declared in .testAnnotated_throwsJvm' type=.A origin=null arg1: GET_ENUM 'ENUM_ENTRY name:V1' type=.A then: TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit CONST Int type=kotlin.Int value=1 @@ -132,7 +132,7 @@ FILE fqName: fileName:/exhaustiveWhenElseBranch.kt WHEN type=kotlin.Int origin=WHEN BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_4: .A [val] declared in .testExpression_throws' type=.A origin=null + arg0: GET_VAR 'val tmp_4: .A declared in .testExpression_throws' type=.A origin=null arg1: GET_ENUM 'ENUM_ENTRY name:V1' type=.A then: CONST Int type=kotlin.Int value=1 BRANCH @@ -156,7 +156,7 @@ FILE fqName: fileName:/exhaustiveWhenElseBranch.kt WHEN type=kotlin.Unit origin=WHEN BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_5: .A [val] declared in .testIfTheElseStatement_empty' type=.A origin=null + arg0: GET_VAR 'val tmp_5: .A declared in .testIfTheElseStatement_empty' type=.A origin=null arg1: GET_ENUM 'ENUM_ENTRY name:V1' type=.A then: TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit CONST Int type=kotlin.Int value=1 @@ -178,7 +178,7 @@ FILE fqName: fileName:/exhaustiveWhenElseBranch.kt WHEN type=kotlin.Unit origin=WHEN BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_6: .A [val] declared in .testIfTheElseParenthesized_throwsJvm' type=.A origin=null + arg0: GET_VAR 'val tmp_6: .A declared in .testIfTheElseParenthesized_throwsJvm' type=.A origin=null arg1: GET_ENUM 'ENUM_ENTRY name:V1' type=.A then: TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit CONST Int type=kotlin.Int value=1 @@ -200,7 +200,7 @@ FILE fqName: fileName:/exhaustiveWhenElseBranch.kt WHEN type=kotlin.Unit origin=WHEN BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_7: .A [val] declared in .testIfTheElseAnnotated_throwsJvm' type=.A origin=null + arg0: GET_VAR 'val tmp_7: .A declared in .testIfTheElseAnnotated_throwsJvm' type=.A origin=null arg1: GET_ENUM 'ENUM_ENTRY name:V1' type=.A then: TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit CONST Int type=kotlin.Int value=1 @@ -208,7 +208,7 @@ FILE fqName: fileName:/exhaustiveWhenElseBranch.kt VALUE_PARAMETER name:a index:0 type:.A BLOCK_BODY TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit - CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=kotlin.Int origin=INVOKE + CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=kotlin.Int origin=INVOKE $this: FUN_EXPR type=kotlin.Function0 origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:kotlin.Int BLOCK_BODY @@ -219,7 +219,7 @@ FILE fqName: fileName:/exhaustiveWhenElseBranch.kt WHEN type=kotlin.Int origin=WHEN BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_8: .A [val] declared in .testLambdaResultExpression_throws.' type=.A origin=null + arg0: GET_VAR 'val tmp_8: .A declared in .testLambdaResultExpression_throws.' type=.A origin=null arg1: GET_ENUM 'ENUM_ENTRY name:V1' type=.A then: CONST Int type=kotlin.Int value=1 BRANCH diff --git a/compiler/testData/ir/irText/expressions/extFunInvokeAsFun.ir.txt b/compiler/testData/ir/irText/expressions/extFunInvokeAsFun.ir.txt index 3f666ec6363..db69ed628a0 100644 --- a/compiler/testData/ir/irText/expressions/extFunInvokeAsFun.ir.txt +++ b/compiler/testData/ir/irText/expressions/extFunInvokeAsFun.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/extFunInvokeAsFun.kt VALUE_PARAMETER name:block index:1 type:@[ExtensionFunctionType] kotlin.Function1 BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun with1 (receiver: kotlin.Any?, block: @[ExtensionFunctionType] kotlin.Function1): kotlin.Unit declared in ' - CALL 'public abstract fun invoke (p1: P1 of kotlin.Function1): R of kotlin.Function1 [operator] declared in kotlin.Function1' type=kotlin.Unit origin=INVOKE + CALL 'public abstract fun invoke (p1: P1 of kotlin.Function1): R of kotlin.Function1 declared in kotlin.Function1' type=kotlin.Unit origin=INVOKE $this: GET_VAR 'block: @[ExtensionFunctionType] kotlin.Function1 declared in .with1' type=@[ExtensionFunctionType] kotlin.Function1 origin=VARIABLE_AS_FUNCTION p1: GET_VAR 'receiver: kotlin.Any? declared in .with1' type=kotlin.Any? origin=null FUN name:with2 visibility:public modality:FINAL <> (receiver:kotlin.Any?, block:@[ExtensionFunctionType] kotlin.Function1) returnType:kotlin.Unit @@ -12,6 +12,6 @@ FILE fqName: fileName:/extFunInvokeAsFun.kt VALUE_PARAMETER name:block index:1 type:@[ExtensionFunctionType] kotlin.Function1 BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun with2 (receiver: kotlin.Any?, block: @[ExtensionFunctionType] kotlin.Function1): kotlin.Unit declared in ' - CALL 'public abstract fun invoke (p1: P1 of kotlin.Function1): R of kotlin.Function1 [operator] declared in kotlin.Function1' type=kotlin.Unit origin=INVOKE + CALL 'public abstract fun invoke (p1: P1 of kotlin.Function1): R of kotlin.Function1 declared in kotlin.Function1' type=kotlin.Unit origin=INVOKE $this: GET_VAR 'block: @[ExtensionFunctionType] kotlin.Function1 declared in .with2' type=@[ExtensionFunctionType] kotlin.Function1 origin=VARIABLE_AS_FUNCTION p1: GET_VAR 'receiver: kotlin.Any? declared in .with2' type=kotlin.Any? origin=null diff --git a/compiler/testData/ir/irText/expressions/extFunSafeInvoke.ir.txt b/compiler/testData/ir/irText/expressions/extFunSafeInvoke.ir.txt index e670d64c782..6317e179e58 100644 --- a/compiler/testData/ir/irText/expressions/extFunSafeInvoke.ir.txt +++ b/compiler/testData/ir/irText/expressions/extFunSafeInvoke.ir.txt @@ -10,13 +10,13 @@ FILE fqName: fileName:/extFunSafeInvoke.kt WHEN type=kotlin.Unit? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_0: kotlin.Any? [val] declared in .test' type=kotlin.Any? origin=null + arg0: GET_VAR 'val tmp_0: kotlin.Any? declared in .test' type=kotlin.Any? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: CALL 'public abstract fun invoke (p1: P1 of kotlin.Function3, p2: P2 of kotlin.Function3, p3: P3 of kotlin.Function3): R of kotlin.Function3 [operator] declared in kotlin.Function3' type=kotlin.Unit origin=INVOKE + then: CALL 'public abstract fun invoke (p1: P1 of kotlin.Function3, p2: P2 of kotlin.Function3, p3: P3 of kotlin.Function3): R of kotlin.Function3 declared in kotlin.Function3' type=kotlin.Unit origin=INVOKE $this: GET_VAR 'fn: @[ExtensionFunctionType] kotlin.Function3 declared in .test' type=@[ExtensionFunctionType] kotlin.Function3 origin=VARIABLE_AS_FUNCTION - p1: GET_VAR 'val tmp_0: kotlin.Any? [val] declared in .test' type=kotlin.Any? origin=null + p1: GET_VAR 'val tmp_0: kotlin.Any? declared in .test' type=kotlin.Any? origin=null p2: CONST Int type=kotlin.Int value=42 p3: CONST String type=kotlin.String value="Hello" diff --git a/compiler/testData/ir/irText/expressions/field.fir.ir.txt b/compiler/testData/ir/irText/expressions/field.fir.ir.txt index 52eb0250973..a4c09552db4 100644 --- a/compiler/testData/ir/irText/expressions/field.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/field.fir.ir.txt @@ -28,6 +28,6 @@ FILE fqName: fileName:/field.kt VALUE_PARAMETER name:value index:0 type:kotlin.Int BLOCK_BODY SET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:testAugmented type:kotlin.Int visibility:private [static]' type=kotlin.Unit origin=PLUSEQ - value: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null + value: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:testAugmented type:kotlin.Int visibility:private [static]' type=kotlin.Int origin=GET_PROPERTY other: GET_VAR 'value: kotlin.Int declared in .' type=kotlin.Int origin=null diff --git a/compiler/testData/ir/irText/expressions/field.ir.txt b/compiler/testData/ir/irText/expressions/field.ir.txt index 6cd9eae68d8..e12b3436cda 100644 --- a/compiler/testData/ir/irText/expressions/field.ir.txt +++ b/compiler/testData/ir/irText/expressions/field.ir.txt @@ -28,6 +28,6 @@ FILE fqName: fileName:/field.kt VALUE_PARAMETER name:value index:0 type:kotlin.Int BLOCK_BODY SET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:testAugmented type:kotlin.Int visibility:private [static]' type=kotlin.Unit origin=PLUSEQ - value: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ + value: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ $this: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:testAugmented type:kotlin.Int visibility:private [static]' type=kotlin.Int origin=PLUSEQ other: GET_VAR 'value: kotlin.Int declared in .' type=kotlin.Int origin=null diff --git a/compiler/testData/ir/irText/expressions/floatingPointComparisons/floatingPointCompareTo.ir.txt b/compiler/testData/ir/irText/expressions/floatingPointComparisons/floatingPointCompareTo.ir.txt index 3012591b8e8..99bb78bf82c 100644 --- a/compiler/testData/ir/irText/expressions/floatingPointComparisons/floatingPointCompareTo.ir.txt +++ b/compiler/testData/ir/irText/expressions/floatingPointComparisons/floatingPointCompareTo.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/floatingPointCompareTo.kt VALUE_PARAMETER name:y index:1 type:kotlin.Double BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test1d (x: kotlin.Double, y: kotlin.Double): kotlin.Int declared in ' - CALL 'public open fun compareTo (other: kotlin.Double): kotlin.Int [operator] declared in kotlin.Double' type=kotlin.Int origin=null + CALL 'public open fun compareTo (other: kotlin.Double): kotlin.Int declared in kotlin.Double' type=kotlin.Int origin=null $this: GET_VAR 'x: kotlin.Double declared in .test1d' type=kotlin.Double origin=null other: GET_VAR 'y: kotlin.Double declared in .test1d' type=kotlin.Double origin=null FUN name:test2d visibility:public modality:FINAL <> (x:kotlin.Double, y:kotlin.Any) returnType:kotlin.Boolean @@ -17,7 +17,7 @@ FILE fqName: fileName:/floatingPointCompareTo.kt if: TYPE_OP type=kotlin.Boolean origin=INSTANCEOF typeOperand=kotlin.Double GET_VAR 'y: kotlin.Any declared in .test2d' type=kotlin.Any origin=null then: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: CALL 'public open fun compareTo (other: kotlin.Double): kotlin.Int [operator] declared in kotlin.Double' type=kotlin.Int origin=null + arg0: CALL 'public open fun compareTo (other: kotlin.Double): kotlin.Int declared in kotlin.Double' type=kotlin.Int origin=null $this: GET_VAR 'x: kotlin.Double declared in .test2d' type=kotlin.Double origin=null other: TYPE_OP type=kotlin.Double origin=IMPLICIT_CAST typeOperand=kotlin.Double GET_VAR 'y: kotlin.Any declared in .test2d' type=kotlin.Any origin=null @@ -42,7 +42,7 @@ FILE fqName: fileName:/floatingPointCompareTo.kt if: CONST Boolean type=kotlin.Boolean value=true then: CONST Boolean type=kotlin.Boolean value=false then: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: CALL 'public open fun compareTo (other: kotlin.Double): kotlin.Int [operator] declared in kotlin.Double' type=kotlin.Int origin=null + arg0: CALL 'public open fun compareTo (other: kotlin.Double): kotlin.Int declared in kotlin.Double' type=kotlin.Int origin=null $this: TYPE_OP type=kotlin.Double origin=IMPLICIT_CAST typeOperand=kotlin.Double GET_VAR 'x: kotlin.Any declared in .test3d' type=kotlin.Any origin=null other: TYPE_OP type=kotlin.Double origin=IMPLICIT_CAST typeOperand=kotlin.Double @@ -56,7 +56,7 @@ FILE fqName: fileName:/floatingPointCompareTo.kt VALUE_PARAMETER name:y index:1 type:kotlin.Float BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test1f (x: kotlin.Float, y: kotlin.Float): kotlin.Int declared in ' - CALL 'public open fun compareTo (other: kotlin.Float): kotlin.Int [operator] declared in kotlin.Float' type=kotlin.Int origin=null + CALL 'public open fun compareTo (other: kotlin.Float): kotlin.Int declared in kotlin.Float' type=kotlin.Int origin=null $this: GET_VAR 'x: kotlin.Float declared in .test1f' type=kotlin.Float origin=null other: GET_VAR 'y: kotlin.Float declared in .test1f' type=kotlin.Float origin=null FUN name:test2f visibility:public modality:FINAL <> (x:kotlin.Float, y:kotlin.Any) returnType:kotlin.Boolean @@ -69,7 +69,7 @@ FILE fqName: fileName:/floatingPointCompareTo.kt if: TYPE_OP type=kotlin.Boolean origin=INSTANCEOF typeOperand=kotlin.Float GET_VAR 'y: kotlin.Any declared in .test2f' type=kotlin.Any origin=null then: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: CALL 'public open fun compareTo (other: kotlin.Float): kotlin.Int [operator] declared in kotlin.Float' type=kotlin.Int origin=null + arg0: CALL 'public open fun compareTo (other: kotlin.Float): kotlin.Int declared in kotlin.Float' type=kotlin.Int origin=null $this: GET_VAR 'x: kotlin.Float declared in .test2f' type=kotlin.Float origin=null other: TYPE_OP type=kotlin.Float origin=IMPLICIT_CAST typeOperand=kotlin.Float GET_VAR 'y: kotlin.Any declared in .test2f' type=kotlin.Any origin=null @@ -94,7 +94,7 @@ FILE fqName: fileName:/floatingPointCompareTo.kt if: CONST Boolean type=kotlin.Boolean value=true then: CONST Boolean type=kotlin.Boolean value=false then: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: CALL 'public open fun compareTo (other: kotlin.Float): kotlin.Int [operator] declared in kotlin.Float' type=kotlin.Int origin=null + arg0: CALL 'public open fun compareTo (other: kotlin.Float): kotlin.Int declared in kotlin.Float' type=kotlin.Int origin=null $this: TYPE_OP type=kotlin.Float origin=IMPLICIT_CAST typeOperand=kotlin.Float GET_VAR 'x: kotlin.Any declared in .test3f' type=kotlin.Any origin=null other: TYPE_OP type=kotlin.Float origin=IMPLICIT_CAST typeOperand=kotlin.Float @@ -120,7 +120,7 @@ FILE fqName: fileName:/floatingPointCompareTo.kt if: CONST Boolean type=kotlin.Boolean value=true then: CONST Boolean type=kotlin.Boolean value=false then: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: CALL 'public final fun compareTo (other: kotlin.Double): kotlin.Int [operator] declared in kotlin.Float' type=kotlin.Int origin=null + arg0: CALL 'public final fun compareTo (other: kotlin.Double): kotlin.Int declared in kotlin.Float' type=kotlin.Int origin=null $this: TYPE_OP type=kotlin.Float origin=IMPLICIT_CAST typeOperand=kotlin.Float GET_VAR 'x: kotlin.Any declared in .testFD' type=kotlin.Any origin=null other: TYPE_OP type=kotlin.Double origin=IMPLICIT_CAST typeOperand=kotlin.Double @@ -146,7 +146,7 @@ FILE fqName: fileName:/floatingPointCompareTo.kt if: CONST Boolean type=kotlin.Boolean value=true then: CONST Boolean type=kotlin.Boolean value=false then: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: CALL 'public final fun compareTo (other: kotlin.Float): kotlin.Int [operator] declared in kotlin.Double' type=kotlin.Int origin=null + arg0: CALL 'public final fun compareTo (other: kotlin.Float): kotlin.Int declared in kotlin.Double' type=kotlin.Int origin=null $this: TYPE_OP type=kotlin.Double origin=IMPLICIT_CAST typeOperand=kotlin.Double GET_VAR 'x: kotlin.Any declared in .testDF' type=kotlin.Any origin=null other: TYPE_OP type=kotlin.Float origin=IMPLICIT_CAST typeOperand=kotlin.Float @@ -160,7 +160,7 @@ FILE fqName: fileName:/floatingPointCompareTo.kt VALUE_PARAMETER name:x index:0 type:kotlin.Float BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test1fr (x: kotlin.Float): kotlin.Int declared in ' - CALL 'public open fun compareTo (other: kotlin.Float): kotlin.Int [operator] declared in kotlin.Float' type=kotlin.Int origin=null + CALL 'public open fun compareTo (other: kotlin.Float): kotlin.Int declared in kotlin.Float' type=kotlin.Int origin=null $this: GET_VAR ': kotlin.Float declared in .test1fr' type=kotlin.Float origin=null other: GET_VAR 'x: kotlin.Float declared in .test1fr' type=kotlin.Float origin=null FUN name:test2fr visibility:public modality:FINAL <> ($receiver:kotlin.Float, x:kotlin.Any) returnType:kotlin.Boolean @@ -173,7 +173,7 @@ FILE fqName: fileName:/floatingPointCompareTo.kt if: TYPE_OP type=kotlin.Boolean origin=INSTANCEOF typeOperand=kotlin.Float GET_VAR 'x: kotlin.Any declared in .test2fr' type=kotlin.Any origin=null then: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: CALL 'public open fun compareTo (other: kotlin.Float): kotlin.Int [operator] declared in kotlin.Float' type=kotlin.Int origin=null + arg0: CALL 'public open fun compareTo (other: kotlin.Float): kotlin.Int declared in kotlin.Float' type=kotlin.Int origin=null $this: GET_VAR ': kotlin.Float declared in .test2fr' type=kotlin.Float origin=null other: TYPE_OP type=kotlin.Float origin=IMPLICIT_CAST typeOperand=kotlin.Float GET_VAR 'x: kotlin.Any declared in .test2fr' type=kotlin.Any origin=null @@ -191,7 +191,7 @@ FILE fqName: fileName:/floatingPointCompareTo.kt if: TYPE_OP type=kotlin.Boolean origin=INSTANCEOF typeOperand=kotlin.Double GET_VAR 'x: kotlin.Any declared in .test3fr' type=kotlin.Any origin=null then: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: CALL 'public final fun compareTo (other: kotlin.Double): kotlin.Int [operator] declared in kotlin.Float' type=kotlin.Int origin=null + arg0: CALL 'public final fun compareTo (other: kotlin.Double): kotlin.Int declared in kotlin.Float' type=kotlin.Int origin=null $this: GET_VAR ': kotlin.Float declared in .test3fr' type=kotlin.Float origin=null other: TYPE_OP type=kotlin.Double origin=IMPLICIT_CAST typeOperand=kotlin.Double GET_VAR 'x: kotlin.Any declared in .test3fr' type=kotlin.Any origin=null diff --git a/compiler/testData/ir/irText/expressions/floatingPointComparisons/floatingPointEquals.fir.ir.txt b/compiler/testData/ir/irText/expressions/floatingPointComparisons/floatingPointEquals.fir.ir.txt index 6876414ac39..e5b9513e680 100644 --- a/compiler/testData/ir/irText/expressions/floatingPointComparisons/floatingPointEquals.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/floatingPointComparisons/floatingPointEquals.fir.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/floatingPointEquals.kt VALUE_PARAMETER name:y index:1 type:kotlin.Double BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test1d (x: kotlin.Double, y: kotlin.Double): kotlin.Boolean declared in ' - CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Double' type=kotlin.Boolean origin=null + CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Double' type=kotlin.Boolean origin=null $this: GET_VAR 'x: kotlin.Double declared in .test1d' type=kotlin.Double origin=null other: GET_VAR 'y: kotlin.Double declared in .test1d' type=kotlin.Double origin=null FUN name:test2d visibility:public modality:FINAL <> (x:kotlin.Double, y:kotlin.Double?) returnType:kotlin.Boolean @@ -12,7 +12,7 @@ FILE fqName: fileName:/floatingPointEquals.kt VALUE_PARAMETER name:y index:1 type:kotlin.Double? BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test2d (x: kotlin.Double, y: kotlin.Double?): kotlin.Boolean declared in ' - CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Double' type=kotlin.Boolean origin=null + CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Double' type=kotlin.Boolean origin=null $this: GET_VAR 'x: kotlin.Double declared in .test2d' type=kotlin.Double origin=null other: GET_VAR 'y: kotlin.Double? declared in .test2d' type=kotlin.Double? origin=null FUN name:test3d visibility:public modality:FINAL <> (x:kotlin.Double, y:kotlin.Any) returnType:kotlin.Boolean @@ -20,7 +20,7 @@ FILE fqName: fileName:/floatingPointEquals.kt VALUE_PARAMETER name:y index:1 type:kotlin.Any BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test3d (x: kotlin.Double, y: kotlin.Any): kotlin.Boolean declared in ' - CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Double' type=kotlin.Boolean origin=null + CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Double' type=kotlin.Boolean origin=null $this: GET_VAR 'x: kotlin.Double declared in .test3d' type=kotlin.Double origin=null other: GET_VAR 'y: kotlin.Any declared in .test3d' type=kotlin.Any origin=null FUN name:test4d visibility:public modality:FINAL <> (x:kotlin.Double, y:kotlin.Number) returnType:kotlin.Boolean @@ -28,7 +28,7 @@ FILE fqName: fileName:/floatingPointEquals.kt VALUE_PARAMETER name:y index:1 type:kotlin.Number BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test4d (x: kotlin.Double, y: kotlin.Number): kotlin.Boolean declared in ' - CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Double' type=kotlin.Boolean origin=null + CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Double' type=kotlin.Boolean origin=null $this: GET_VAR 'x: kotlin.Double declared in .test4d' type=kotlin.Double origin=null other: GET_VAR 'y: kotlin.Number declared in .test4d' type=kotlin.Number origin=null FUN name:test5d visibility:public modality:FINAL <> (x:kotlin.Double, y:kotlin.Any) returnType:kotlin.Boolean @@ -40,7 +40,7 @@ FILE fqName: fileName:/floatingPointEquals.kt BRANCH if: TYPE_OP type=kotlin.Boolean origin=INSTANCEOF typeOperand=kotlin.Double GET_VAR 'y: kotlin.Any declared in .test5d' type=kotlin.Any origin=null - then: CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Double' type=kotlin.Boolean origin=null + then: CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Double' type=kotlin.Boolean origin=null $this: GET_VAR 'x: kotlin.Double declared in .test5d' type=kotlin.Double origin=null other: TYPE_OP type=kotlin.Double origin=IMPLICIT_CAST typeOperand=kotlin.Double GET_VAR 'y: kotlin.Any declared in .test5d' type=kotlin.Any origin=null @@ -63,7 +63,7 @@ FILE fqName: fileName:/floatingPointEquals.kt BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CONST Boolean type=kotlin.Boolean value=false - then: CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Double' type=kotlin.Boolean origin=null + then: CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Double' type=kotlin.Boolean origin=null $this: TYPE_OP type=kotlin.Double origin=IMPLICIT_CAST typeOperand=kotlin.Double GET_VAR 'x: kotlin.Any declared in .test6d' type=kotlin.Any origin=null other: TYPE_OP type=kotlin.Double origin=IMPLICIT_CAST typeOperand=kotlin.Double @@ -76,7 +76,7 @@ FILE fqName: fileName:/floatingPointEquals.kt VALUE_PARAMETER name:y index:1 type:kotlin.Float BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test1f (x: kotlin.Float, y: kotlin.Float): kotlin.Boolean declared in ' - CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Float' type=kotlin.Boolean origin=null + CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Float' type=kotlin.Boolean origin=null $this: GET_VAR 'x: kotlin.Float declared in .test1f' type=kotlin.Float origin=null other: GET_VAR 'y: kotlin.Float declared in .test1f' type=kotlin.Float origin=null FUN name:test2f visibility:public modality:FINAL <> (x:kotlin.Float, y:kotlin.Float?) returnType:kotlin.Boolean @@ -84,7 +84,7 @@ FILE fqName: fileName:/floatingPointEquals.kt VALUE_PARAMETER name:y index:1 type:kotlin.Float? BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test2f (x: kotlin.Float, y: kotlin.Float?): kotlin.Boolean declared in ' - CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Float' type=kotlin.Boolean origin=null + CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Float' type=kotlin.Boolean origin=null $this: GET_VAR 'x: kotlin.Float declared in .test2f' type=kotlin.Float origin=null other: GET_VAR 'y: kotlin.Float? declared in .test2f' type=kotlin.Float? origin=null FUN name:test3f visibility:public modality:FINAL <> (x:kotlin.Float, y:kotlin.Any) returnType:kotlin.Boolean @@ -92,7 +92,7 @@ FILE fqName: fileName:/floatingPointEquals.kt VALUE_PARAMETER name:y index:1 type:kotlin.Any BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test3f (x: kotlin.Float, y: kotlin.Any): kotlin.Boolean declared in ' - CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Float' type=kotlin.Boolean origin=null + CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Float' type=kotlin.Boolean origin=null $this: GET_VAR 'x: kotlin.Float declared in .test3f' type=kotlin.Float origin=null other: GET_VAR 'y: kotlin.Any declared in .test3f' type=kotlin.Any origin=null FUN name:test4f visibility:public modality:FINAL <> (x:kotlin.Float, y:kotlin.Number) returnType:kotlin.Boolean @@ -100,7 +100,7 @@ FILE fqName: fileName:/floatingPointEquals.kt VALUE_PARAMETER name:y index:1 type:kotlin.Number BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test4f (x: kotlin.Float, y: kotlin.Number): kotlin.Boolean declared in ' - CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Float' type=kotlin.Boolean origin=null + CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Float' type=kotlin.Boolean origin=null $this: GET_VAR 'x: kotlin.Float declared in .test4f' type=kotlin.Float origin=null other: GET_VAR 'y: kotlin.Number declared in .test4f' type=kotlin.Number origin=null FUN name:test5f visibility:public modality:FINAL <> (x:kotlin.Float, y:kotlin.Any) returnType:kotlin.Boolean @@ -112,7 +112,7 @@ FILE fqName: fileName:/floatingPointEquals.kt BRANCH if: TYPE_OP type=kotlin.Boolean origin=INSTANCEOF typeOperand=kotlin.Float GET_VAR 'y: kotlin.Any declared in .test5f' type=kotlin.Any origin=null - then: CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Float' type=kotlin.Boolean origin=null + then: CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Float' type=kotlin.Boolean origin=null $this: GET_VAR 'x: kotlin.Float declared in .test5f' type=kotlin.Float origin=null other: TYPE_OP type=kotlin.Float origin=IMPLICIT_CAST typeOperand=kotlin.Float GET_VAR 'y: kotlin.Any declared in .test5f' type=kotlin.Any origin=null @@ -135,7 +135,7 @@ FILE fqName: fileName:/floatingPointEquals.kt BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CONST Boolean type=kotlin.Boolean value=false - then: CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Float' type=kotlin.Boolean origin=null + then: CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Float' type=kotlin.Boolean origin=null $this: TYPE_OP type=kotlin.Float origin=IMPLICIT_CAST typeOperand=kotlin.Float GET_VAR 'x: kotlin.Any declared in .test6f' type=kotlin.Any origin=null other: TYPE_OP type=kotlin.Float origin=IMPLICIT_CAST typeOperand=kotlin.Float @@ -159,7 +159,7 @@ FILE fqName: fileName:/floatingPointEquals.kt BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CONST Boolean type=kotlin.Boolean value=false - then: CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Float' type=kotlin.Boolean origin=null + then: CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Float' type=kotlin.Boolean origin=null $this: TYPE_OP type=kotlin.Float origin=IMPLICIT_CAST typeOperand=kotlin.Float GET_VAR 'x: kotlin.Any declared in .testFD' type=kotlin.Any origin=null other: TYPE_OP type=kotlin.Double origin=IMPLICIT_CAST typeOperand=kotlin.Double @@ -183,7 +183,7 @@ FILE fqName: fileName:/floatingPointEquals.kt BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CONST Boolean type=kotlin.Boolean value=false - then: CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Double' type=kotlin.Boolean origin=null + then: CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Double' type=kotlin.Boolean origin=null $this: TYPE_OP type=kotlin.Double origin=IMPLICIT_CAST typeOperand=kotlin.Double GET_VAR 'x: kotlin.Any declared in .testDF' type=kotlin.Any origin=null other: TYPE_OP type=kotlin.Float origin=IMPLICIT_CAST typeOperand=kotlin.Float @@ -196,7 +196,7 @@ FILE fqName: fileName:/floatingPointEquals.kt VALUE_PARAMETER name:x index:0 type:kotlin.Float BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test1fr (x: kotlin.Float): kotlin.Boolean declared in ' - CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Float' type=kotlin.Boolean origin=null + CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Float' type=kotlin.Boolean origin=null $this: GET_VAR ': kotlin.Float declared in .test1fr' type=kotlin.Float origin=null other: GET_VAR 'x: kotlin.Float declared in .test1fr' type=kotlin.Float origin=null FUN name:test2fr visibility:public modality:FINAL <> ($receiver:kotlin.Float, x:kotlin.Float?) returnType:kotlin.Boolean @@ -204,7 +204,7 @@ FILE fqName: fileName:/floatingPointEquals.kt VALUE_PARAMETER name:x index:0 type:kotlin.Float? BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test2fr (x: kotlin.Float?): kotlin.Boolean declared in ' - CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Float' type=kotlin.Boolean origin=null + CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Float' type=kotlin.Boolean origin=null $this: GET_VAR ': kotlin.Float declared in .test2fr' type=kotlin.Float origin=null other: GET_VAR 'x: kotlin.Float? declared in .test2fr' type=kotlin.Float? origin=null FUN name:test3fr visibility:public modality:FINAL <> ($receiver:kotlin.Float, x:kotlin.Any) returnType:kotlin.Boolean @@ -212,7 +212,7 @@ FILE fqName: fileName:/floatingPointEquals.kt VALUE_PARAMETER name:x index:0 type:kotlin.Any BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test3fr (x: kotlin.Any): kotlin.Boolean declared in ' - CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Float' type=kotlin.Boolean origin=null + CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Float' type=kotlin.Boolean origin=null $this: GET_VAR ': kotlin.Float declared in .test3fr' type=kotlin.Float origin=null other: GET_VAR 'x: kotlin.Any declared in .test3fr' type=kotlin.Any origin=null FUN name:test4fr visibility:public modality:FINAL <> ($receiver:kotlin.Float, x:kotlin.Number) returnType:kotlin.Boolean @@ -220,7 +220,7 @@ FILE fqName: fileName:/floatingPointEquals.kt VALUE_PARAMETER name:x index:0 type:kotlin.Number BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test4fr (x: kotlin.Number): kotlin.Boolean declared in ' - CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Float' type=kotlin.Boolean origin=null + CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Float' type=kotlin.Boolean origin=null $this: GET_VAR ': kotlin.Float declared in .test4fr' type=kotlin.Float origin=null other: GET_VAR 'x: kotlin.Number declared in .test4fr' type=kotlin.Number origin=null FUN name:test5fr visibility:public modality:FINAL <> ($receiver:kotlin.Float, x:kotlin.Any) returnType:kotlin.Boolean @@ -232,7 +232,7 @@ FILE fqName: fileName:/floatingPointEquals.kt BRANCH if: TYPE_OP type=kotlin.Boolean origin=INSTANCEOF typeOperand=kotlin.Float GET_VAR 'x: kotlin.Any declared in .test5fr' type=kotlin.Any origin=null - then: CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Float' type=kotlin.Boolean origin=null + then: CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Float' type=kotlin.Boolean origin=null $this: GET_VAR ': kotlin.Float declared in .test5fr' type=kotlin.Float origin=null other: TYPE_OP type=kotlin.Float origin=IMPLICIT_CAST typeOperand=kotlin.Float GET_VAR 'x: kotlin.Any declared in .test5fr' type=kotlin.Any origin=null @@ -248,7 +248,7 @@ FILE fqName: fileName:/floatingPointEquals.kt BRANCH if: TYPE_OP type=kotlin.Boolean origin=INSTANCEOF typeOperand=kotlin.Double GET_VAR 'x: kotlin.Any declared in .test6fr' type=kotlin.Any origin=null - then: CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Float' type=kotlin.Boolean origin=null + then: CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Float' type=kotlin.Boolean origin=null $this: GET_VAR ': kotlin.Float declared in .test6fr' type=kotlin.Float origin=null other: TYPE_OP type=kotlin.Double origin=IMPLICIT_CAST typeOperand=kotlin.Double GET_VAR 'x: kotlin.Any declared in .test6fr' type=kotlin.Any origin=null diff --git a/compiler/testData/ir/irText/expressions/floatingPointComparisons/floatingPointEquals.ir.txt b/compiler/testData/ir/irText/expressions/floatingPointComparisons/floatingPointEquals.ir.txt index 509e1948cd4..0927b7e58a4 100644 --- a/compiler/testData/ir/irText/expressions/floatingPointComparisons/floatingPointEquals.ir.txt +++ b/compiler/testData/ir/irText/expressions/floatingPointComparisons/floatingPointEquals.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/floatingPointEquals.kt VALUE_PARAMETER name:y index:1 type:kotlin.Double BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test1d (x: kotlin.Double, y: kotlin.Double): kotlin.Boolean declared in ' - CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Double' type=kotlin.Boolean origin=null + CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Double' type=kotlin.Boolean origin=null $this: GET_VAR 'x: kotlin.Double declared in .test1d' type=kotlin.Double origin=null other: GET_VAR 'y: kotlin.Double declared in .test1d' type=kotlin.Double origin=null FUN name:test2d visibility:public modality:FINAL <> (x:kotlin.Double, y:kotlin.Double?) returnType:kotlin.Boolean @@ -12,7 +12,7 @@ FILE fqName: fileName:/floatingPointEquals.kt VALUE_PARAMETER name:y index:1 type:kotlin.Double? BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test2d (x: kotlin.Double, y: kotlin.Double?): kotlin.Boolean declared in ' - CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Double' type=kotlin.Boolean origin=null + CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Double' type=kotlin.Boolean origin=null $this: GET_VAR 'x: kotlin.Double declared in .test2d' type=kotlin.Double origin=null other: GET_VAR 'y: kotlin.Double? declared in .test2d' type=kotlin.Double? origin=null FUN name:test3d visibility:public modality:FINAL <> (x:kotlin.Double, y:kotlin.Any) returnType:kotlin.Boolean @@ -20,7 +20,7 @@ FILE fqName: fileName:/floatingPointEquals.kt VALUE_PARAMETER name:y index:1 type:kotlin.Any BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test3d (x: kotlin.Double, y: kotlin.Any): kotlin.Boolean declared in ' - CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Double' type=kotlin.Boolean origin=null + CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Double' type=kotlin.Boolean origin=null $this: GET_VAR 'x: kotlin.Double declared in .test3d' type=kotlin.Double origin=null other: GET_VAR 'y: kotlin.Any declared in .test3d' type=kotlin.Any origin=null FUN name:test4d visibility:public modality:FINAL <> (x:kotlin.Double, y:kotlin.Number) returnType:kotlin.Boolean @@ -28,7 +28,7 @@ FILE fqName: fileName:/floatingPointEquals.kt VALUE_PARAMETER name:y index:1 type:kotlin.Number BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test4d (x: kotlin.Double, y: kotlin.Number): kotlin.Boolean declared in ' - CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Double' type=kotlin.Boolean origin=null + CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Double' type=kotlin.Boolean origin=null $this: GET_VAR 'x: kotlin.Double declared in .test4d' type=kotlin.Double origin=null other: GET_VAR 'y: kotlin.Number declared in .test4d' type=kotlin.Number origin=null FUN name:test5d visibility:public modality:FINAL <> (x:kotlin.Double, y:kotlin.Any) returnType:kotlin.Boolean @@ -40,7 +40,7 @@ FILE fqName: fileName:/floatingPointEquals.kt BRANCH if: TYPE_OP type=kotlin.Boolean origin=INSTANCEOF typeOperand=kotlin.Double GET_VAR 'y: kotlin.Any declared in .test5d' type=kotlin.Any origin=null - then: CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Double' type=kotlin.Boolean origin=null + then: CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Double' type=kotlin.Boolean origin=null $this: GET_VAR 'x: kotlin.Double declared in .test5d' type=kotlin.Double origin=null other: GET_VAR 'y: kotlin.Any declared in .test5d' type=kotlin.Any origin=null BRANCH @@ -62,7 +62,7 @@ FILE fqName: fileName:/floatingPointEquals.kt BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CONST Boolean type=kotlin.Boolean value=false - then: CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Any' type=kotlin.Boolean origin=null + then: CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any' type=kotlin.Boolean origin=null $this: GET_VAR 'x: kotlin.Any declared in .test6d' type=kotlin.Any origin=null other: GET_VAR 'y: kotlin.Any declared in .test6d' type=kotlin.Any origin=null BRANCH @@ -73,7 +73,7 @@ FILE fqName: fileName:/floatingPointEquals.kt VALUE_PARAMETER name:y index:1 type:kotlin.Float BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test1f (x: kotlin.Float, y: kotlin.Float): kotlin.Boolean declared in ' - CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Float' type=kotlin.Boolean origin=null + CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Float' type=kotlin.Boolean origin=null $this: GET_VAR 'x: kotlin.Float declared in .test1f' type=kotlin.Float origin=null other: GET_VAR 'y: kotlin.Float declared in .test1f' type=kotlin.Float origin=null FUN name:test2f visibility:public modality:FINAL <> (x:kotlin.Float, y:kotlin.Float?) returnType:kotlin.Boolean @@ -81,7 +81,7 @@ FILE fqName: fileName:/floatingPointEquals.kt VALUE_PARAMETER name:y index:1 type:kotlin.Float? BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test2f (x: kotlin.Float, y: kotlin.Float?): kotlin.Boolean declared in ' - CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Float' type=kotlin.Boolean origin=null + CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Float' type=kotlin.Boolean origin=null $this: GET_VAR 'x: kotlin.Float declared in .test2f' type=kotlin.Float origin=null other: GET_VAR 'y: kotlin.Float? declared in .test2f' type=kotlin.Float? origin=null FUN name:test3f visibility:public modality:FINAL <> (x:kotlin.Float, y:kotlin.Any) returnType:kotlin.Boolean @@ -89,7 +89,7 @@ FILE fqName: fileName:/floatingPointEquals.kt VALUE_PARAMETER name:y index:1 type:kotlin.Any BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test3f (x: kotlin.Float, y: kotlin.Any): kotlin.Boolean declared in ' - CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Float' type=kotlin.Boolean origin=null + CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Float' type=kotlin.Boolean origin=null $this: GET_VAR 'x: kotlin.Float declared in .test3f' type=kotlin.Float origin=null other: GET_VAR 'y: kotlin.Any declared in .test3f' type=kotlin.Any origin=null FUN name:test4f visibility:public modality:FINAL <> (x:kotlin.Float, y:kotlin.Number) returnType:kotlin.Boolean @@ -97,7 +97,7 @@ FILE fqName: fileName:/floatingPointEquals.kt VALUE_PARAMETER name:y index:1 type:kotlin.Number BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test4f (x: kotlin.Float, y: kotlin.Number): kotlin.Boolean declared in ' - CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Float' type=kotlin.Boolean origin=null + CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Float' type=kotlin.Boolean origin=null $this: GET_VAR 'x: kotlin.Float declared in .test4f' type=kotlin.Float origin=null other: GET_VAR 'y: kotlin.Number declared in .test4f' type=kotlin.Number origin=null FUN name:test5f visibility:public modality:FINAL <> (x:kotlin.Float, y:kotlin.Any) returnType:kotlin.Boolean @@ -109,7 +109,7 @@ FILE fqName: fileName:/floatingPointEquals.kt BRANCH if: TYPE_OP type=kotlin.Boolean origin=INSTANCEOF typeOperand=kotlin.Float GET_VAR 'y: kotlin.Any declared in .test5f' type=kotlin.Any origin=null - then: CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Float' type=kotlin.Boolean origin=null + then: CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Float' type=kotlin.Boolean origin=null $this: GET_VAR 'x: kotlin.Float declared in .test5f' type=kotlin.Float origin=null other: GET_VAR 'y: kotlin.Any declared in .test5f' type=kotlin.Any origin=null BRANCH @@ -131,7 +131,7 @@ FILE fqName: fileName:/floatingPointEquals.kt BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CONST Boolean type=kotlin.Boolean value=false - then: CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Any' type=kotlin.Boolean origin=null + then: CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any' type=kotlin.Boolean origin=null $this: GET_VAR 'x: kotlin.Any declared in .test6f' type=kotlin.Any origin=null other: GET_VAR 'y: kotlin.Any declared in .test6f' type=kotlin.Any origin=null BRANCH @@ -153,7 +153,7 @@ FILE fqName: fileName:/floatingPointEquals.kt BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CONST Boolean type=kotlin.Boolean value=false - then: CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Any' type=kotlin.Boolean origin=null + then: CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any' type=kotlin.Boolean origin=null $this: GET_VAR 'x: kotlin.Any declared in .testFD' type=kotlin.Any origin=null other: GET_VAR 'y: kotlin.Any declared in .testFD' type=kotlin.Any origin=null BRANCH @@ -175,7 +175,7 @@ FILE fqName: fileName:/floatingPointEquals.kt BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CONST Boolean type=kotlin.Boolean value=false - then: CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Any' type=kotlin.Boolean origin=null + then: CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any' type=kotlin.Boolean origin=null $this: GET_VAR 'x: kotlin.Any declared in .testDF' type=kotlin.Any origin=null other: GET_VAR 'y: kotlin.Any declared in .testDF' type=kotlin.Any origin=null BRANCH @@ -186,7 +186,7 @@ FILE fqName: fileName:/floatingPointEquals.kt VALUE_PARAMETER name:x index:0 type:kotlin.Float BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test1fr (x: kotlin.Float): kotlin.Boolean declared in ' - CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Float' type=kotlin.Boolean origin=null + CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Float' type=kotlin.Boolean origin=null $this: GET_VAR ': kotlin.Float declared in .test1fr' type=kotlin.Float origin=null other: GET_VAR 'x: kotlin.Float declared in .test1fr' type=kotlin.Float origin=null FUN name:test2fr visibility:public modality:FINAL <> ($receiver:kotlin.Float, x:kotlin.Float?) returnType:kotlin.Boolean @@ -194,7 +194,7 @@ FILE fqName: fileName:/floatingPointEquals.kt VALUE_PARAMETER name:x index:0 type:kotlin.Float? BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test2fr (x: kotlin.Float?): kotlin.Boolean declared in ' - CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Float' type=kotlin.Boolean origin=null + CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Float' type=kotlin.Boolean origin=null $this: GET_VAR ': kotlin.Float declared in .test2fr' type=kotlin.Float origin=null other: GET_VAR 'x: kotlin.Float? declared in .test2fr' type=kotlin.Float? origin=null FUN name:test3fr visibility:public modality:FINAL <> ($receiver:kotlin.Float, x:kotlin.Any) returnType:kotlin.Boolean @@ -202,7 +202,7 @@ FILE fqName: fileName:/floatingPointEquals.kt VALUE_PARAMETER name:x index:0 type:kotlin.Any BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test3fr (x: kotlin.Any): kotlin.Boolean declared in ' - CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Float' type=kotlin.Boolean origin=null + CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Float' type=kotlin.Boolean origin=null $this: GET_VAR ': kotlin.Float declared in .test3fr' type=kotlin.Float origin=null other: GET_VAR 'x: kotlin.Any declared in .test3fr' type=kotlin.Any origin=null FUN name:test4fr visibility:public modality:FINAL <> ($receiver:kotlin.Float, x:kotlin.Number) returnType:kotlin.Boolean @@ -210,7 +210,7 @@ FILE fqName: fileName:/floatingPointEquals.kt VALUE_PARAMETER name:x index:0 type:kotlin.Number BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test4fr (x: kotlin.Number): kotlin.Boolean declared in ' - CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Float' type=kotlin.Boolean origin=null + CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Float' type=kotlin.Boolean origin=null $this: GET_VAR ': kotlin.Float declared in .test4fr' type=kotlin.Float origin=null other: GET_VAR 'x: kotlin.Number declared in .test4fr' type=kotlin.Number origin=null FUN name:test5fr visibility:public modality:FINAL <> ($receiver:kotlin.Float, x:kotlin.Any) returnType:kotlin.Boolean @@ -222,7 +222,7 @@ FILE fqName: fileName:/floatingPointEquals.kt BRANCH if: TYPE_OP type=kotlin.Boolean origin=INSTANCEOF typeOperand=kotlin.Float GET_VAR 'x: kotlin.Any declared in .test5fr' type=kotlin.Any origin=null - then: CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Float' type=kotlin.Boolean origin=null + then: CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Float' type=kotlin.Boolean origin=null $this: GET_VAR ': kotlin.Float declared in .test5fr' type=kotlin.Float origin=null other: GET_VAR 'x: kotlin.Any declared in .test5fr' type=kotlin.Any origin=null BRANCH @@ -237,7 +237,7 @@ FILE fqName: fileName:/floatingPointEquals.kt BRANCH if: TYPE_OP type=kotlin.Boolean origin=INSTANCEOF typeOperand=kotlin.Double GET_VAR 'x: kotlin.Any declared in .test6fr' type=kotlin.Any origin=null - then: CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Float' type=kotlin.Boolean origin=null + then: CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Float' type=kotlin.Boolean origin=null $this: GET_VAR ': kotlin.Float declared in .test6fr' type=kotlin.Float origin=null other: GET_VAR 'x: kotlin.Any declared in .test6fr' type=kotlin.Any origin=null BRANCH diff --git a/compiler/testData/ir/irText/expressions/floatingPointComparisons/floatingPointExcleq.ir.txt b/compiler/testData/ir/irText/expressions/floatingPointComparisons/floatingPointExcleq.ir.txt index 62ff9d5b571..9f577923263 100644 --- a/compiler/testData/ir/irText/expressions/floatingPointComparisons/floatingPointExcleq.ir.txt +++ b/compiler/testData/ir/irText/expressions/floatingPointComparisons/floatingPointExcleq.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/floatingPointExcleq.kt VALUE_PARAMETER name:y index:1 type:kotlin.Double BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test1d (x: kotlin.Double, y: kotlin.Double): kotlin.Boolean declared in ' - CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ + CALL 'public final fun not (): kotlin.Boolean declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ $this: CALL 'public final fun ieee754equals (arg0: kotlin.Double?, arg1: kotlin.Double?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EXCLEQ arg0: GET_VAR 'x: kotlin.Double declared in .test1d' type=kotlin.Double origin=null arg1: GET_VAR 'y: kotlin.Double declared in .test1d' type=kotlin.Double origin=null @@ -13,7 +13,7 @@ FILE fqName: fileName:/floatingPointExcleq.kt VALUE_PARAMETER name:y index:1 type:kotlin.Double? BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test2d (x: kotlin.Double, y: kotlin.Double?): kotlin.Boolean declared in ' - CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ + CALL 'public final fun not (): kotlin.Boolean declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ $this: CALL 'public final fun ieee754equals (arg0: kotlin.Double?, arg1: kotlin.Double?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EXCLEQ arg0: GET_VAR 'x: kotlin.Double declared in .test2d' type=kotlin.Double origin=null arg1: GET_VAR 'y: kotlin.Double? declared in .test2d' type=kotlin.Double? origin=null @@ -22,7 +22,7 @@ FILE fqName: fileName:/floatingPointExcleq.kt VALUE_PARAMETER name:y index:1 type:kotlin.Any BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test3d (x: kotlin.Double, y: kotlin.Any): kotlin.Boolean declared in ' - CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ + CALL 'public final fun not (): kotlin.Boolean 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_VAR 'x: kotlin.Double declared in .test3d' type=kotlin.Double origin=null arg1: GET_VAR 'y: kotlin.Any declared in .test3d' type=kotlin.Any origin=null @@ -31,7 +31,7 @@ FILE fqName: fileName:/floatingPointExcleq.kt VALUE_PARAMETER name:y index:1 type:kotlin.Number BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test4d (x: kotlin.Double, y: kotlin.Number): kotlin.Boolean declared in ' - CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ + CALL 'public final fun not (): kotlin.Boolean 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_VAR 'x: kotlin.Double declared in .test4d' type=kotlin.Double origin=null arg1: GET_VAR 'y: kotlin.Number declared in .test4d' type=kotlin.Number origin=null @@ -44,7 +44,7 @@ FILE fqName: fileName:/floatingPointExcleq.kt BRANCH if: TYPE_OP type=kotlin.Boolean origin=INSTANCEOF typeOperand=kotlin.Double GET_VAR 'y: kotlin.Any declared in .test5d' type=kotlin.Any origin=null - then: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ + then: CALL 'public final fun not (): kotlin.Boolean declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ $this: CALL 'public final fun ieee754equals (arg0: kotlin.Double?, arg1: kotlin.Double?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EXCLEQ arg0: GET_VAR 'x: kotlin.Double declared in .test5d' type=kotlin.Double origin=null arg1: TYPE_OP type=kotlin.Double origin=IMPLICIT_CAST typeOperand=kotlin.Double @@ -68,7 +68,7 @@ FILE fqName: fileName:/floatingPointExcleq.kt BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CONST Boolean type=kotlin.Boolean value=false - then: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ + then: CALL 'public final fun not (): kotlin.Boolean declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ $this: CALL 'public final fun ieee754equals (arg0: kotlin.Double?, arg1: kotlin.Double?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EXCLEQ arg0: TYPE_OP type=kotlin.Double origin=IMPLICIT_CAST typeOperand=kotlin.Double GET_VAR 'x: kotlin.Any declared in .test6d' type=kotlin.Any origin=null @@ -82,7 +82,7 @@ FILE fqName: fileName:/floatingPointExcleq.kt VALUE_PARAMETER name:y index:1 type:kotlin.Float BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test1f (x: kotlin.Float, y: kotlin.Float): kotlin.Boolean declared in ' - CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ + CALL 'public final fun not (): kotlin.Boolean declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ $this: CALL 'public final fun ieee754equals (arg0: kotlin.Float?, arg1: kotlin.Float?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EXCLEQ arg0: GET_VAR 'x: kotlin.Float declared in .test1f' type=kotlin.Float origin=null arg1: GET_VAR 'y: kotlin.Float declared in .test1f' type=kotlin.Float origin=null @@ -91,7 +91,7 @@ FILE fqName: fileName:/floatingPointExcleq.kt VALUE_PARAMETER name:y index:1 type:kotlin.Float? BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test2f (x: kotlin.Float, y: kotlin.Float?): kotlin.Boolean declared in ' - CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ + CALL 'public final fun not (): kotlin.Boolean declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ $this: CALL 'public final fun ieee754equals (arg0: kotlin.Float?, arg1: kotlin.Float?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EXCLEQ arg0: GET_VAR 'x: kotlin.Float declared in .test2f' type=kotlin.Float origin=null arg1: GET_VAR 'y: kotlin.Float? declared in .test2f' type=kotlin.Float? origin=null @@ -100,7 +100,7 @@ FILE fqName: fileName:/floatingPointExcleq.kt VALUE_PARAMETER name:y index:1 type:kotlin.Any BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test3f (x: kotlin.Float, y: kotlin.Any): kotlin.Boolean declared in ' - CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ + CALL 'public final fun not (): kotlin.Boolean 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_VAR 'x: kotlin.Float declared in .test3f' type=kotlin.Float origin=null arg1: GET_VAR 'y: kotlin.Any declared in .test3f' type=kotlin.Any origin=null @@ -109,7 +109,7 @@ FILE fqName: fileName:/floatingPointExcleq.kt VALUE_PARAMETER name:y index:1 type:kotlin.Number BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test4f (x: kotlin.Float, y: kotlin.Number): kotlin.Boolean declared in ' - CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ + CALL 'public final fun not (): kotlin.Boolean 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_VAR 'x: kotlin.Float declared in .test4f' type=kotlin.Float origin=null arg1: GET_VAR 'y: kotlin.Number declared in .test4f' type=kotlin.Number origin=null @@ -122,7 +122,7 @@ FILE fqName: fileName:/floatingPointExcleq.kt BRANCH if: TYPE_OP type=kotlin.Boolean origin=INSTANCEOF typeOperand=kotlin.Float GET_VAR 'y: kotlin.Any declared in .test5f' type=kotlin.Any origin=null - then: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ + then: CALL 'public final fun not (): kotlin.Boolean declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ $this: CALL 'public final fun ieee754equals (arg0: kotlin.Float?, arg1: kotlin.Float?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EXCLEQ arg0: GET_VAR 'x: kotlin.Float declared in .test5f' type=kotlin.Float origin=null arg1: TYPE_OP type=kotlin.Float origin=IMPLICIT_CAST typeOperand=kotlin.Float @@ -146,7 +146,7 @@ FILE fqName: fileName:/floatingPointExcleq.kt BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CONST Boolean type=kotlin.Boolean value=false - then: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ + then: CALL 'public final fun not (): kotlin.Boolean declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ $this: CALL 'public final fun ieee754equals (arg0: kotlin.Float?, arg1: kotlin.Float?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EXCLEQ arg0: TYPE_OP type=kotlin.Float origin=IMPLICIT_CAST typeOperand=kotlin.Float GET_VAR 'x: kotlin.Any declared in .test6f' type=kotlin.Any origin=null @@ -171,7 +171,7 @@ FILE fqName: fileName:/floatingPointExcleq.kt BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CONST Boolean type=kotlin.Boolean value=false - then: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ + then: CALL 'public final fun not (): kotlin.Boolean declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ $this: CALL 'public final fun ieee754equals (arg0: kotlin.Double?, arg1: kotlin.Double?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EXCLEQ arg0: CALL 'public open fun toDouble (): kotlin.Double declared in kotlin.Float' type=kotlin.Double origin=null $this: TYPE_OP type=kotlin.Float origin=IMPLICIT_CAST typeOperand=kotlin.Float @@ -197,7 +197,7 @@ FILE fqName: fileName:/floatingPointExcleq.kt BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CONST Boolean type=kotlin.Boolean value=false - then: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ + then: CALL 'public final fun not (): kotlin.Boolean declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ $this: CALL 'public final fun ieee754equals (arg0: kotlin.Double?, arg1: kotlin.Double?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EXCLEQ arg0: TYPE_OP type=kotlin.Double origin=IMPLICIT_CAST typeOperand=kotlin.Double GET_VAR 'x: kotlin.Any declared in .testDF' type=kotlin.Any origin=null diff --git a/compiler/testData/ir/irText/expressions/floatingPointComparisons/nullableFloatingPointEqeq.fir.ir.txt b/compiler/testData/ir/irText/expressions/floatingPointComparisons/nullableFloatingPointEqeq.fir.ir.txt index 0237b3a6b20..52b941c836d 100644 --- a/compiler/testData/ir/irText/expressions/floatingPointComparisons/nullableFloatingPointEqeq.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/floatingPointComparisons/nullableFloatingPointEqeq.fir.ir.txt @@ -25,13 +25,13 @@ FILE fqName: fileName:/nullableFloatingPointEqeq.kt WHEN type=kotlin.Double? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_0: kotlin.Float? [val] declared in .testDF' type=kotlin.Float? origin=null + arg0: GET_VAR 'val tmp_0: kotlin.Float? declared in .testDF' type=kotlin.Float? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public open fun toDouble (): kotlin.Double declared in kotlin.Float' type=kotlin.Double origin=null - $this: GET_VAR 'val tmp_0: kotlin.Float? [val] declared in .testDF' type=kotlin.Float? origin=null + $this: GET_VAR 'val tmp_0: kotlin.Float? declared in .testDF' type=kotlin.Float? origin=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CONST Boolean type=kotlin.Boolean value=false @@ -53,13 +53,13 @@ FILE fqName: fileName:/nullableFloatingPointEqeq.kt WHEN type=kotlin.Double? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_1: kotlin.Int? [val] declared in .testDI' type=kotlin.Int? origin=null + arg0: GET_VAR 'val tmp_1: kotlin.Int? declared in .testDI' type=kotlin.Int? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public open fun toDouble (): kotlin.Double declared in kotlin.Int' type=kotlin.Double origin=null - $this: GET_VAR 'val tmp_1: kotlin.Int? [val] declared in .testDI' type=kotlin.Int? origin=null + $this: GET_VAR 'val tmp_1: kotlin.Int? declared in .testDI' type=kotlin.Int? origin=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CONST Boolean type=kotlin.Boolean value=false @@ -87,13 +87,13 @@ FILE fqName: fileName:/nullableFloatingPointEqeq.kt WHEN type=kotlin.Double? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_2: kotlin.Int? [val] declared in .testDI2' type=kotlin.Int? origin=null + arg0: GET_VAR 'val tmp_2: kotlin.Int? declared in .testDI2' type=kotlin.Int? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public open fun toDouble (): kotlin.Double declared in kotlin.Int' type=kotlin.Double origin=null - $this: GET_VAR 'val tmp_2: kotlin.Int? [val] declared in .testDI2' type=kotlin.Int? origin=null + $this: GET_VAR 'val tmp_2: kotlin.Int? declared in .testDI2' type=kotlin.Int? origin=null arg1: TYPE_OP type=kotlin.Double? origin=IMPLICIT_CAST typeOperand=kotlin.Double? GET_VAR 'y: kotlin.Any? declared in .testDI2' type=kotlin.Any? origin=null BRANCH diff --git a/compiler/testData/ir/irText/expressions/floatingPointComparisons/nullableFloatingPointEqeq.ir.txt b/compiler/testData/ir/irText/expressions/floatingPointComparisons/nullableFloatingPointEqeq.ir.txt index e1a4077875b..79365f59705 100644 --- a/compiler/testData/ir/irText/expressions/floatingPointComparisons/nullableFloatingPointEqeq.ir.txt +++ b/compiler/testData/ir/irText/expressions/floatingPointComparisons/nullableFloatingPointEqeq.ir.txt @@ -24,14 +24,14 @@ FILE fqName: fileName:/nullableFloatingPointEqeq.kt WHEN type=kotlin.Double? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_0: kotlin.Any? [val] declared in .testDF' type=kotlin.Any? origin=null + arg0: GET_VAR 'val tmp_0: kotlin.Any? declared in .testDF' type=kotlin.Any? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public open fun toDouble (): kotlin.Double declared in kotlin.Float' type=kotlin.Double origin=null $this: TYPE_OP type=kotlin.Float origin=IMPLICIT_CAST typeOperand=kotlin.Float - GET_VAR 'val tmp_0: kotlin.Any? [val] declared in .testDF' type=kotlin.Any? origin=null + GET_VAR 'val tmp_0: kotlin.Any? declared in .testDF' type=kotlin.Any? origin=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CONST Boolean type=kotlin.Boolean value=false @@ -52,14 +52,14 @@ FILE fqName: fileName:/nullableFloatingPointEqeq.kt WHEN type=kotlin.Double? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_1: kotlin.Any? [val] declared in .testDI' type=kotlin.Any? origin=null + arg0: GET_VAR 'val tmp_1: kotlin.Any? declared in .testDI' type=kotlin.Any? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public open fun toDouble (): kotlin.Double declared in kotlin.Int' type=kotlin.Double origin=null $this: TYPE_OP type=kotlin.Int origin=IMPLICIT_CAST typeOperand=kotlin.Int - GET_VAR 'val tmp_1: kotlin.Any? [val] declared in .testDI' type=kotlin.Any? origin=null + GET_VAR 'val tmp_1: kotlin.Any? declared in .testDI' type=kotlin.Any? origin=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CONST Boolean type=kotlin.Boolean value=false @@ -86,14 +86,14 @@ FILE fqName: fileName:/nullableFloatingPointEqeq.kt WHEN type=kotlin.Double? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_2: kotlin.Any? [val] declared in .testDI2' type=kotlin.Any? origin=null + arg0: GET_VAR 'val tmp_2: kotlin.Any? declared in .testDI2' type=kotlin.Any? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public open fun toDouble (): kotlin.Double declared in kotlin.Int' type=kotlin.Double origin=null $this: TYPE_OP type=kotlin.Int origin=IMPLICIT_CAST typeOperand=kotlin.Int - GET_VAR 'val tmp_2: kotlin.Any? [val] declared in .testDI2' type=kotlin.Any? origin=null + GET_VAR 'val tmp_2: kotlin.Any? declared in .testDI2' type=kotlin.Any? origin=null arg1: TYPE_OP type=kotlin.Double? origin=IMPLICIT_CAST typeOperand=kotlin.Double? GET_VAR 'y: kotlin.Any? declared in .testDI2' type=kotlin.Any? origin=null BRANCH diff --git a/compiler/testData/ir/irText/expressions/floatingPointComparisons/typeParameterWithPrimitiveNumericSupertype.ir.txt b/compiler/testData/ir/irText/expressions/floatingPointComparisons/typeParameterWithPrimitiveNumericSupertype.ir.txt index 5438a4f7b3d..86b3b363357 100644 --- a/compiler/testData/ir/irText/expressions/floatingPointComparisons/typeParameterWithPrimitiveNumericSupertype.ir.txt +++ b/compiler/testData/ir/irText/expressions/floatingPointComparisons/typeParameterWithPrimitiveNumericSupertype.ir.txt @@ -126,7 +126,7 @@ FILE fqName: fileName:/typeParameterWithPrimitiveNumericSupertype.kt TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Float] reified:false CONSTRUCTOR visibility:public <> () returnType:.F.F> [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:F modality:FINAL visibility:public superTypes:[kotlin.Any]' FUN name:testCapturedType visibility:public modality:FINAL <> ($this:.F.F>, x:T of .F, y:kotlin.Any) returnType:kotlin.Boolean $this: VALUE_PARAMETER name: type:.F.F> @@ -148,7 +148,7 @@ FILE fqName: fileName:/typeParameterWithPrimitiveNumericSupertype.kt then: CONST Boolean type=kotlin.Boolean value=false 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/expressions/floatingPointComparisons/whenByFloatingPoint.fir.ir.txt b/compiler/testData/ir/irText/expressions/floatingPointComparisons/whenByFloatingPoint.fir.ir.txt index d81d584b822..f6f285cd903 100644 --- a/compiler/testData/ir/irText/expressions/floatingPointComparisons/whenByFloatingPoint.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/floatingPointComparisons/whenByFloatingPoint.fir.ir.txt @@ -9,7 +9,7 @@ FILE fqName: fileName:/whenByFloatingPoint.kt WHEN type=kotlin.Int origin=WHEN BRANCH if: CALL 'public final fun ieee754equals (arg0: kotlin.Double?, arg1: kotlin.Double?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_0: kotlin.Double [val] declared in .testSimple' type=kotlin.Double origin=null + arg0: GET_VAR 'val tmp_0: kotlin.Double declared in .testSimple' type=kotlin.Double origin=null arg1: CONST Double type=kotlin.Double value=0.0 then: CONST Int type=kotlin.Int value=0 BRANCH @@ -32,7 +32,7 @@ FILE fqName: fileName:/whenByFloatingPoint.kt WHEN type=kotlin.Int origin=WHEN BRANCH if: CALL 'public final fun ieee754equals (arg0: kotlin.Double?, arg1: kotlin.Double?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_1: kotlin.Double [val] declared in .testSmartCastInWhenSubject' type=kotlin.Double origin=null + arg0: GET_VAR 'val tmp_1: kotlin.Double declared in .testSmartCastInWhenSubject' type=kotlin.Double origin=null arg1: CONST Double type=kotlin.Double value=0.0 then: CONST Int type=kotlin.Int value=0 BRANCH @@ -55,7 +55,7 @@ FILE fqName: fileName:/whenByFloatingPoint.kt WHEN type=kotlin.Int origin=WHEN BRANCH if: CALL 'public final fun ieee754equals (arg0: kotlin.Double?, arg1: kotlin.Double?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_2: kotlin.Double [val] declared in .testSmartCastInWhenCondition' type=kotlin.Double origin=null + arg0: GET_VAR 'val tmp_2: kotlin.Double declared in .testSmartCastInWhenCondition' type=kotlin.Double origin=null arg1: TYPE_OP type=kotlin.Double origin=IMPLICIT_CAST typeOperand=kotlin.Double GET_VAR 'y: kotlin.Any declared in .testSmartCastInWhenCondition' type=kotlin.Any origin=null then: CONST Int type=kotlin.Int value=0 @@ -72,12 +72,12 @@ FILE fqName: fileName:/whenByFloatingPoint.kt WHEN type=kotlin.Int origin=WHEN BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=kotlin.Double - GET_VAR 'val tmp_3: kotlin.Any [val] declared in .testSmartCastInWhenConditionInBranch' type=kotlin.Any origin=null + GET_VAR 'val tmp_3: kotlin.Any declared in .testSmartCastInWhenConditionInBranch' type=kotlin.Any origin=null then: CONST Int type=kotlin.Int value=-1 BRANCH if: CALL 'public final fun ieee754equals (arg0: kotlin.Double?, arg1: kotlin.Double?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ arg0: TYPE_OP type=kotlin.Double origin=IMPLICIT_CAST typeOperand=kotlin.Double - GET_VAR 'val tmp_3: kotlin.Any [val] declared in .testSmartCastInWhenConditionInBranch' type=kotlin.Any origin=null + GET_VAR 'val tmp_3: kotlin.Any declared in .testSmartCastInWhenConditionInBranch' type=kotlin.Any origin=null arg1: CONST Double type=kotlin.Double value=0.0 then: CONST Int type=kotlin.Int value=0 BRANCH @@ -107,7 +107,7 @@ FILE fqName: fileName:/whenByFloatingPoint.kt WHEN type=kotlin.Int origin=WHEN BRANCH if: CALL 'public final fun ieee754equals (arg0: kotlin.Double?, arg1: kotlin.Double?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_4: kotlin.Double [val] declared in .testSmartCastToDifferentTypes' type=kotlin.Double origin=null + arg0: GET_VAR 'val tmp_4: kotlin.Double declared in .testSmartCastToDifferentTypes' type=kotlin.Double origin=null arg1: CALL 'public open fun toDouble (): kotlin.Double declared in kotlin.Float' type=kotlin.Double origin=null $this: TYPE_OP type=kotlin.Float origin=IMPLICIT_CAST typeOperand=kotlin.Float GET_VAR 'y: kotlin.Any declared in .testSmartCastToDifferentTypes' type=kotlin.Any origin=null @@ -130,7 +130,7 @@ FILE fqName: fileName:/whenByFloatingPoint.kt WHEN type=kotlin.Int origin=WHEN BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_5: kotlin.Any [val] declared in .testWithPrematureExitInConditionSubexpression' type=kotlin.Any origin=null + arg0: GET_VAR 'val tmp_5: kotlin.Any declared in .testWithPrematureExitInConditionSubexpression' type=kotlin.Any origin=null arg1: CALL 'public final fun foo (x: kotlin.Double): kotlin.Double declared in ' type=kotlin.Double origin=null x: WHEN type=kotlin.Double origin=IF BRANCH diff --git a/compiler/testData/ir/irText/expressions/floatingPointComparisons/whenByFloatingPoint.ir.txt b/compiler/testData/ir/irText/expressions/floatingPointComparisons/whenByFloatingPoint.ir.txt index 1071055c55f..f33b5b52952 100644 --- a/compiler/testData/ir/irText/expressions/floatingPointComparisons/whenByFloatingPoint.ir.txt +++ b/compiler/testData/ir/irText/expressions/floatingPointComparisons/whenByFloatingPoint.ir.txt @@ -9,7 +9,7 @@ FILE fqName: fileName:/whenByFloatingPoint.kt WHEN type=kotlin.Int origin=WHEN BRANCH if: CALL 'public final fun ieee754equals (arg0: kotlin.Double?, arg1: kotlin.Double?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_0: kotlin.Double [val] declared in .testSimple' type=kotlin.Double origin=null + arg0: GET_VAR 'val tmp_0: kotlin.Double declared in .testSimple' type=kotlin.Double origin=null arg1: CONST Double type=kotlin.Double value=0.0 then: CONST Int type=kotlin.Int value=0 BRANCH @@ -32,7 +32,7 @@ FILE fqName: fileName:/whenByFloatingPoint.kt BRANCH if: CALL 'public final fun ieee754equals (arg0: kotlin.Double?, arg1: kotlin.Double?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ arg0: TYPE_OP type=kotlin.Double origin=IMPLICIT_CAST typeOperand=kotlin.Double - GET_VAR 'val tmp_1: kotlin.Any [val] declared in .testSmartCastInWhenSubject' type=kotlin.Any origin=null + GET_VAR 'val tmp_1: kotlin.Any declared in .testSmartCastInWhenSubject' type=kotlin.Any origin=null arg1: CONST Double type=kotlin.Double value=0.0 then: CONST Int type=kotlin.Int value=0 BRANCH @@ -55,7 +55,7 @@ FILE fqName: fileName:/whenByFloatingPoint.kt WHEN type=kotlin.Int origin=WHEN BRANCH if: CALL 'public final fun ieee754equals (arg0: kotlin.Double?, arg1: kotlin.Double?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_2: kotlin.Double [val] declared in .testSmartCastInWhenCondition' type=kotlin.Double origin=null + arg0: GET_VAR 'val tmp_2: kotlin.Double declared in .testSmartCastInWhenCondition' type=kotlin.Double origin=null arg1: TYPE_OP type=kotlin.Double origin=IMPLICIT_CAST typeOperand=kotlin.Double GET_VAR 'y: kotlin.Any declared in .testSmartCastInWhenCondition' type=kotlin.Any origin=null then: CONST Int type=kotlin.Int value=0 @@ -71,14 +71,14 @@ FILE fqName: fileName:/whenByFloatingPoint.kt GET_VAR 'x: kotlin.Any declared in .testSmartCastInWhenConditionInBranch' type=kotlin.Any origin=null WHEN type=kotlin.Int origin=WHEN BRANCH - if: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCL + if: CALL 'public final fun not (): kotlin.Boolean declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCL $this: TYPE_OP type=kotlin.Boolean origin=INSTANCEOF typeOperand=kotlin.Double - GET_VAR 'val tmp_3: kotlin.Any [val] declared in .testSmartCastInWhenConditionInBranch' type=kotlin.Any origin=null + GET_VAR 'val tmp_3: kotlin.Any declared in .testSmartCastInWhenConditionInBranch' type=kotlin.Any origin=null then: CONST Int type=kotlin.Int value=-1 BRANCH if: CALL 'public final fun ieee754equals (arg0: kotlin.Double?, arg1: kotlin.Double?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ arg0: TYPE_OP type=kotlin.Double origin=IMPLICIT_CAST typeOperand=kotlin.Double - GET_VAR 'val tmp_3: kotlin.Any [val] declared in .testSmartCastInWhenConditionInBranch' type=kotlin.Any origin=null + GET_VAR 'val tmp_3: kotlin.Any declared in .testSmartCastInWhenConditionInBranch' type=kotlin.Any origin=null arg1: CONST Double type=kotlin.Double value=0.0 then: CONST Int type=kotlin.Int value=0 BRANCH @@ -108,7 +108,7 @@ FILE fqName: fileName:/whenByFloatingPoint.kt BRANCH if: CALL 'public final fun ieee754equals (arg0: kotlin.Double?, arg1: kotlin.Double?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ arg0: TYPE_OP type=kotlin.Double origin=IMPLICIT_CAST typeOperand=kotlin.Double - GET_VAR 'val tmp_4: kotlin.Any [val] declared in .testSmartCastToDifferentTypes' type=kotlin.Any origin=null + GET_VAR 'val tmp_4: kotlin.Any declared in .testSmartCastToDifferentTypes' type=kotlin.Any origin=null arg1: CALL 'public open fun toDouble (): kotlin.Double declared in kotlin.Float' type=kotlin.Double origin=null $this: TYPE_OP type=kotlin.Float origin=IMPLICIT_CAST typeOperand=kotlin.Float GET_VAR 'y: kotlin.Any declared in .testSmartCastToDifferentTypes' type=kotlin.Any origin=null @@ -131,7 +131,7 @@ FILE fqName: fileName:/whenByFloatingPoint.kt WHEN type=kotlin.Int origin=WHEN BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_5: kotlin.Any [val] declared in .testWithPrematureExitInConditionSubexpression' type=kotlin.Any origin=null + arg0: GET_VAR 'val tmp_5: kotlin.Any declared in .testWithPrematureExitInConditionSubexpression' type=kotlin.Any origin=null arg1: CALL 'public final fun foo (x: kotlin.Double): kotlin.Double declared in ' type=kotlin.Double origin=null x: WHEN type=kotlin.Double origin=IF BRANCH diff --git a/compiler/testData/ir/irText/expressions/for.fir.ir.txt b/compiler/testData/ir/irText/expressions/for.fir.ir.txt index 328bdc16ee0..dd0d86b3a47 100644 --- a/compiler/testData/ir/irText/expressions/for.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/for.fir.ir.txt @@ -4,70 +4,70 @@ FILE fqName: fileName:/for.kt BLOCK_BODY BLOCK type=kotlin.Unit origin=FOR_LOOP VAR FOR_LOOP_ITERATOR name:tmp_0 type:kotlin.collections.Iterator [val] - CALL 'public abstract fun iterator (): kotlin.collections.Iterator [operator] declared in kotlin.collections.List' type=kotlin.collections.Iterator origin=FOR_LOOP_ITERATOR + CALL 'public abstract fun iterator (): kotlin.collections.Iterator declared in kotlin.collections.List' type=kotlin.collections.Iterator origin=FOR_LOOP_ITERATOR $this: GET_VAR 'ss: kotlin.collections.List declared in .testEmpty' type=kotlin.collections.List origin=null WHILE label=null origin=FOR_LOOP_INNER_WHILE - condition: CALL 'public abstract fun hasNext (): kotlin.Boolean [operator] declared in kotlin.collections.Iterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT - $this: GET_VAR 'val tmp_0: kotlin.collections.Iterator [val] declared in .testEmpty' type=kotlin.collections.Iterator origin=null + condition: CALL 'public abstract fun hasNext (): kotlin.Boolean declared in kotlin.collections.Iterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT + $this: GET_VAR 'val tmp_0: kotlin.collections.Iterator declared in .testEmpty' type=kotlin.collections.Iterator origin=null body: BLOCK type=kotlin.Unit origin=FOR_LOOP_INNER_WHILE VAR FOR_LOOP_VARIABLE name:s type:kotlin.String [val] - CALL 'public abstract fun next (): T of kotlin.collections.Iterator [operator] declared in kotlin.collections.Iterator' type=kotlin.String origin=FOR_LOOP_NEXT - $this: GET_VAR 'val tmp_0: kotlin.collections.Iterator [val] declared in .testEmpty' type=kotlin.collections.Iterator origin=null + CALL 'public abstract fun next (): T of kotlin.collections.Iterator declared in kotlin.collections.Iterator' type=kotlin.String origin=FOR_LOOP_NEXT + $this: GET_VAR 'val tmp_0: kotlin.collections.Iterator declared in .testEmpty' type=kotlin.collections.Iterator origin=null BLOCK type=kotlin.Unit origin=null FUN name:testIterable visibility:public modality:FINAL <> (ss:kotlin.collections.List) returnType:kotlin.Unit VALUE_PARAMETER name:ss index:0 type:kotlin.collections.List BLOCK_BODY BLOCK type=kotlin.Unit origin=FOR_LOOP VAR FOR_LOOP_ITERATOR name:tmp_1 type:kotlin.collections.Iterator [val] - CALL 'public abstract fun iterator (): kotlin.collections.Iterator [operator] declared in kotlin.collections.List' type=kotlin.collections.Iterator origin=FOR_LOOP_ITERATOR + CALL 'public abstract fun iterator (): kotlin.collections.Iterator declared in kotlin.collections.List' type=kotlin.collections.Iterator origin=FOR_LOOP_ITERATOR $this: GET_VAR 'ss: kotlin.collections.List declared in .testIterable' type=kotlin.collections.List origin=null WHILE label=null origin=FOR_LOOP_INNER_WHILE - condition: CALL 'public abstract fun hasNext (): kotlin.Boolean [operator] declared in kotlin.collections.Iterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT - $this: GET_VAR 'val tmp_1: kotlin.collections.Iterator [val] declared in .testIterable' type=kotlin.collections.Iterator origin=null + condition: CALL 'public abstract fun hasNext (): kotlin.Boolean declared in kotlin.collections.Iterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT + $this: GET_VAR 'val tmp_1: kotlin.collections.Iterator declared in .testIterable' type=kotlin.collections.Iterator origin=null body: BLOCK type=kotlin.Unit origin=FOR_LOOP_INNER_WHILE VAR FOR_LOOP_VARIABLE name:s type:kotlin.String [val] - CALL 'public abstract fun next (): T of kotlin.collections.Iterator [operator] declared in kotlin.collections.Iterator' type=kotlin.String origin=FOR_LOOP_NEXT - $this: GET_VAR 'val tmp_1: kotlin.collections.Iterator [val] declared in .testIterable' type=kotlin.collections.Iterator origin=null - CALL 'public final fun println (message: kotlin.Any?): kotlin.Unit [inline] declared in kotlin.io' type=kotlin.Unit origin=null - message: GET_VAR 'val s: kotlin.String [val] declared in .testIterable' type=kotlin.String origin=null + CALL 'public abstract fun next (): T of kotlin.collections.Iterator declared in kotlin.collections.Iterator' type=kotlin.String origin=FOR_LOOP_NEXT + $this: GET_VAR 'val tmp_1: kotlin.collections.Iterator declared in .testIterable' type=kotlin.collections.Iterator origin=null + CALL 'public final fun println (message: kotlin.Any?): kotlin.Unit declared in kotlin.io' type=kotlin.Unit origin=null + message: GET_VAR 'val s: kotlin.String declared in .testIterable' type=kotlin.String origin=null FUN name:testDestructuring visibility:public modality:FINAL <> (pp:kotlin.collections.List>) returnType:kotlin.Unit VALUE_PARAMETER name:pp index:0 type:kotlin.collections.List> BLOCK_BODY BLOCK type=kotlin.Unit origin=FOR_LOOP VAR FOR_LOOP_ITERATOR name:tmp_2 type:kotlin.collections.Iterator> [val] - CALL 'public abstract fun iterator (): kotlin.collections.Iterator [operator] declared in kotlin.collections.List' type=kotlin.collections.Iterator> origin=FOR_LOOP_ITERATOR + CALL 'public abstract fun iterator (): kotlin.collections.Iterator declared in kotlin.collections.List' type=kotlin.collections.Iterator> origin=FOR_LOOP_ITERATOR $this: GET_VAR 'pp: kotlin.collections.List> declared in .testDestructuring' type=kotlin.collections.List> origin=null WHILE label=null origin=FOR_LOOP_INNER_WHILE - condition: CALL 'public abstract fun hasNext (): kotlin.Boolean [operator] declared in kotlin.collections.Iterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT - $this: GET_VAR 'val tmp_2: kotlin.collections.Iterator> [val] declared in .testDestructuring' type=kotlin.collections.Iterator> origin=null + condition: CALL 'public abstract fun hasNext (): kotlin.Boolean declared in kotlin.collections.Iterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT + $this: GET_VAR 'val tmp_2: kotlin.collections.Iterator> declared in .testDestructuring' type=kotlin.collections.Iterator> origin=null body: BLOCK type=kotlin.Unit origin=FOR_LOOP_INNER_WHILE VAR IR_TEMPORARY_VARIABLE name:tmp_3 type:kotlin.Pair [val] - CALL 'public abstract fun next (): T of kotlin.collections.Iterator [operator] declared in kotlin.collections.Iterator' type=kotlin.Pair origin=FOR_LOOP_NEXT - $this: GET_VAR 'val tmp_2: kotlin.collections.Iterator> [val] declared in .testDestructuring' type=kotlin.collections.Iterator> origin=null + CALL 'public abstract fun next (): T of kotlin.collections.Iterator declared in kotlin.collections.Iterator' type=kotlin.Pair origin=FOR_LOOP_NEXT + $this: GET_VAR 'val tmp_2: kotlin.collections.Iterator> declared in .testDestructuring' type=kotlin.collections.Iterator> origin=null VAR name:i type:kotlin.Int [val] - CALL 'public final fun component1 (): A of kotlin.Pair [operator] declared in kotlin.Pair' type=kotlin.Int origin=COMPONENT_N(index=1) - $this: GET_VAR 'val tmp_3: kotlin.Pair [val] declared in .testDestructuring' type=kotlin.Pair origin=null + CALL 'public final fun component1 (): A of kotlin.Pair declared in kotlin.Pair' type=kotlin.Int origin=COMPONENT_N(index=1) + $this: GET_VAR 'val tmp_3: kotlin.Pair declared in .testDestructuring' type=kotlin.Pair origin=null VAR name:s type:kotlin.String [val] - CALL 'public final fun component2 (): B of kotlin.Pair [operator] declared in kotlin.Pair' type=kotlin.String origin=COMPONENT_N(index=2) - $this: GET_VAR 'val tmp_3: kotlin.Pair [val] declared in .testDestructuring' type=kotlin.Pair origin=null + CALL 'public final fun component2 (): B of kotlin.Pair declared in kotlin.Pair' type=kotlin.String origin=COMPONENT_N(index=2) + $this: GET_VAR 'val tmp_3: kotlin.Pair declared in .testDestructuring' type=kotlin.Pair origin=null BLOCK type=kotlin.Unit origin=null - CALL 'public final fun println (message: kotlin.Int): kotlin.Unit [inline] declared in kotlin.io' type=kotlin.Unit origin=null - message: GET_VAR 'val i: kotlin.Int [val] declared in .testDestructuring' type=kotlin.Int origin=null - CALL 'public final fun println (message: kotlin.Any?): kotlin.Unit [inline] declared in kotlin.io' type=kotlin.Unit origin=null - message: GET_VAR 'val s: kotlin.String [val] declared in .testDestructuring' type=kotlin.String origin=null + CALL 'public final fun println (message: kotlin.Int): kotlin.Unit declared in kotlin.io' type=kotlin.Unit origin=null + message: GET_VAR 'val i: kotlin.Int declared in .testDestructuring' type=kotlin.Int origin=null + CALL 'public final fun println (message: kotlin.Any?): kotlin.Unit declared in kotlin.io' type=kotlin.Unit origin=null + message: GET_VAR 'val s: kotlin.String declared in .testDestructuring' type=kotlin.String origin=null FUN name:testRange visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY BLOCK type=kotlin.Unit origin=FOR_LOOP VAR FOR_LOOP_ITERATOR name:tmp_4 type:kotlin.collections.IntIterator [val] - CALL 'public open fun iterator (): kotlin.collections.IntIterator [fake_override,operator] declared in kotlin.ranges.IntRange' type=kotlin.collections.IntIterator origin=FOR_LOOP_ITERATOR - $this: CALL 'public final fun rangeTo (other: kotlin.Int): kotlin.ranges.IntRange [operator] declared in kotlin.Int' type=kotlin.ranges.IntRange origin=RANGE + CALL 'public open fun iterator (): kotlin.collections.IntIterator declared in kotlin.ranges.IntRange' type=kotlin.collections.IntIterator origin=FOR_LOOP_ITERATOR + $this: CALL 'public final fun rangeTo (other: kotlin.Int): kotlin.ranges.IntRange declared in kotlin.Int' type=kotlin.ranges.IntRange origin=RANGE $this: CONST Int type=kotlin.Int value=1 other: CONST Int type=kotlin.Int value=10 WHILE label=null origin=FOR_LOOP_INNER_WHILE - condition: CALL 'public abstract fun hasNext (): kotlin.Boolean [fake_override,operator] declared in kotlin.collections.IntIterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT - $this: GET_VAR 'val tmp_4: kotlin.collections.IntIterator [val] declared in .testRange' type=kotlin.collections.IntIterator origin=null + condition: CALL 'public abstract fun hasNext (): kotlin.Boolean declared in kotlin.collections.IntIterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT + $this: GET_VAR 'val tmp_4: kotlin.collections.IntIterator declared in .testRange' type=kotlin.collections.IntIterator origin=null body: BLOCK type=kotlin.Unit origin=FOR_LOOP_INNER_WHILE VAR FOR_LOOP_VARIABLE name:i type:kotlin.Int [val] - CALL 'public final fun next (): kotlin.Int [operator] declared in kotlin.collections.IntIterator' type=kotlin.Int origin=FOR_LOOP_NEXT - $this: GET_VAR 'val tmp_4: kotlin.collections.IntIterator [val] declared in .testRange' type=kotlin.collections.IntIterator origin=null + CALL 'public final fun next (): kotlin.Int declared in kotlin.collections.IntIterator' type=kotlin.Int origin=FOR_LOOP_NEXT + $this: GET_VAR 'val tmp_4: kotlin.collections.IntIterator declared in .testRange' type=kotlin.collections.IntIterator origin=null BLOCK type=kotlin.Unit origin=null diff --git a/compiler/testData/ir/irText/expressions/for.ir.txt b/compiler/testData/ir/irText/expressions/for.ir.txt index 94209d7c2a8..317288ca2c4 100644 --- a/compiler/testData/ir/irText/expressions/for.ir.txt +++ b/compiler/testData/ir/irText/expressions/for.ir.txt @@ -4,69 +4,69 @@ FILE fqName: fileName:/for.kt BLOCK_BODY BLOCK type=kotlin.Unit origin=FOR_LOOP VAR FOR_LOOP_ITERATOR name:tmp_0 type:kotlin.collections.Iterator [val] - CALL 'public abstract fun iterator (): kotlin.collections.Iterator [operator] declared in kotlin.collections.List' type=kotlin.collections.Iterator origin=FOR_LOOP_ITERATOR + CALL 'public abstract fun iterator (): kotlin.collections.Iterator declared in kotlin.collections.List' type=kotlin.collections.Iterator origin=FOR_LOOP_ITERATOR $this: GET_VAR 'ss: kotlin.collections.List declared in .testEmpty' type=kotlin.collections.List origin=null WHILE label=null origin=FOR_LOOP_INNER_WHILE - condition: CALL 'public abstract fun hasNext (): kotlin.Boolean [operator] declared in kotlin.collections.Iterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT - $this: GET_VAR 'val tmp_0: kotlin.collections.Iterator [val] declared in .testEmpty' type=kotlin.collections.Iterator origin=null + condition: CALL 'public abstract fun hasNext (): kotlin.Boolean declared in kotlin.collections.Iterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT + $this: GET_VAR 'val tmp_0: kotlin.collections.Iterator declared in .testEmpty' type=kotlin.collections.Iterator origin=null body: BLOCK type=kotlin.Unit origin=FOR_LOOP_INNER_WHILE VAR FOR_LOOP_VARIABLE name:s type:kotlin.String [val] - CALL 'public abstract fun next (): T of kotlin.collections.Iterator [operator] declared in kotlin.collections.Iterator' type=kotlin.String origin=FOR_LOOP_NEXT - $this: GET_VAR 'val tmp_0: kotlin.collections.Iterator [val] declared in .testEmpty' type=kotlin.collections.Iterator origin=null + CALL 'public abstract fun next (): T of kotlin.collections.Iterator declared in kotlin.collections.Iterator' type=kotlin.String origin=FOR_LOOP_NEXT + $this: GET_VAR 'val tmp_0: kotlin.collections.Iterator declared in .testEmpty' type=kotlin.collections.Iterator origin=null FUN name:testIterable visibility:public modality:FINAL <> (ss:kotlin.collections.List) returnType:kotlin.Unit VALUE_PARAMETER name:ss index:0 type:kotlin.collections.List BLOCK_BODY BLOCK type=kotlin.Unit origin=FOR_LOOP VAR FOR_LOOP_ITERATOR name:tmp_1 type:kotlin.collections.Iterator [val] - CALL 'public abstract fun iterator (): kotlin.collections.Iterator [operator] declared in kotlin.collections.List' type=kotlin.collections.Iterator origin=FOR_LOOP_ITERATOR + CALL 'public abstract fun iterator (): kotlin.collections.Iterator declared in kotlin.collections.List' type=kotlin.collections.Iterator origin=FOR_LOOP_ITERATOR $this: GET_VAR 'ss: kotlin.collections.List declared in .testIterable' type=kotlin.collections.List origin=null WHILE label=null origin=FOR_LOOP_INNER_WHILE - condition: CALL 'public abstract fun hasNext (): kotlin.Boolean [operator] declared in kotlin.collections.Iterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT - $this: GET_VAR 'val tmp_1: kotlin.collections.Iterator [val] declared in .testIterable' type=kotlin.collections.Iterator origin=null + condition: CALL 'public abstract fun hasNext (): kotlin.Boolean declared in kotlin.collections.Iterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT + $this: GET_VAR 'val tmp_1: kotlin.collections.Iterator declared in .testIterable' type=kotlin.collections.Iterator origin=null body: BLOCK type=kotlin.Unit origin=FOR_LOOP_INNER_WHILE VAR FOR_LOOP_VARIABLE name:s type:kotlin.String [val] - CALL 'public abstract fun next (): T of kotlin.collections.Iterator [operator] declared in kotlin.collections.Iterator' type=kotlin.String origin=FOR_LOOP_NEXT - $this: GET_VAR 'val tmp_1: kotlin.collections.Iterator [val] declared in .testIterable' type=kotlin.collections.Iterator origin=null + CALL 'public abstract fun next (): T of kotlin.collections.Iterator declared in kotlin.collections.Iterator' type=kotlin.String origin=FOR_LOOP_NEXT + $this: GET_VAR 'val tmp_1: kotlin.collections.Iterator declared in .testIterable' type=kotlin.collections.Iterator origin=null BLOCK type=kotlin.Unit origin=null - CALL 'public final fun println (message: kotlin.Any?): kotlin.Unit [inline] declared in kotlin.io' type=kotlin.Unit origin=null - message: GET_VAR 'val s: kotlin.String [val] declared in .testIterable' type=kotlin.String origin=null + CALL 'public final fun println (message: kotlin.Any?): kotlin.Unit declared in kotlin.io' type=kotlin.Unit origin=null + message: GET_VAR 'val s: kotlin.String declared in .testIterable' type=kotlin.String origin=null FUN name:testDestructuring visibility:public modality:FINAL <> (pp:kotlin.collections.List>) returnType:kotlin.Unit VALUE_PARAMETER name:pp index:0 type:kotlin.collections.List> BLOCK_BODY BLOCK type=kotlin.Unit origin=FOR_LOOP VAR FOR_LOOP_ITERATOR name:tmp_2 type:kotlin.collections.Iterator> [val] - CALL 'public abstract fun iterator (): kotlin.collections.Iterator [operator] declared in kotlin.collections.List' type=kotlin.collections.Iterator> origin=FOR_LOOP_ITERATOR + CALL 'public abstract fun iterator (): kotlin.collections.Iterator declared in kotlin.collections.List' type=kotlin.collections.Iterator> origin=FOR_LOOP_ITERATOR $this: GET_VAR 'pp: kotlin.collections.List> declared in .testDestructuring' type=kotlin.collections.List> origin=null WHILE label=null origin=FOR_LOOP_INNER_WHILE - condition: CALL 'public abstract fun hasNext (): kotlin.Boolean [operator] declared in kotlin.collections.Iterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT - $this: GET_VAR 'val tmp_2: kotlin.collections.Iterator> [val] declared in .testDestructuring' type=kotlin.collections.Iterator> origin=null + condition: CALL 'public abstract fun hasNext (): kotlin.Boolean declared in kotlin.collections.Iterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT + $this: GET_VAR 'val tmp_2: kotlin.collections.Iterator> declared in .testDestructuring' type=kotlin.collections.Iterator> origin=null body: BLOCK type=kotlin.Unit origin=FOR_LOOP_INNER_WHILE VAR IR_TEMPORARY_VARIABLE name:tmp_3 type:kotlin.Pair [val] - CALL 'public abstract fun next (): T of kotlin.collections.Iterator [operator] declared in kotlin.collections.Iterator' type=kotlin.Pair origin=FOR_LOOP_NEXT - $this: GET_VAR 'val tmp_2: kotlin.collections.Iterator> [val] declared in .testDestructuring' type=kotlin.collections.Iterator> origin=null + CALL 'public abstract fun next (): T of kotlin.collections.Iterator declared in kotlin.collections.Iterator' type=kotlin.Pair origin=FOR_LOOP_NEXT + $this: GET_VAR 'val tmp_2: kotlin.collections.Iterator> declared in .testDestructuring' type=kotlin.collections.Iterator> origin=null VAR name:i type:kotlin.Int [val] - CALL 'public final fun component1 (): A of kotlin.Pair [operator] declared in kotlin.Pair' type=kotlin.Int origin=COMPONENT_N(index=1) - $this: GET_VAR 'val tmp_3: kotlin.Pair [val] declared in .testDestructuring' type=kotlin.Pair origin=null + CALL 'public final fun component1 (): A of kotlin.Pair declared in kotlin.Pair' type=kotlin.Int origin=COMPONENT_N(index=1) + $this: GET_VAR 'val tmp_3: kotlin.Pair declared in .testDestructuring' type=kotlin.Pair origin=null VAR name:s type:kotlin.String [val] - CALL 'public final fun component2 (): B of kotlin.Pair [operator] declared in kotlin.Pair' type=kotlin.String origin=COMPONENT_N(index=2) - $this: GET_VAR 'val tmp_3: kotlin.Pair [val] declared in .testDestructuring' type=kotlin.Pair origin=null + CALL 'public final fun component2 (): B of kotlin.Pair declared in kotlin.Pair' type=kotlin.String origin=COMPONENT_N(index=2) + $this: GET_VAR 'val tmp_3: kotlin.Pair declared in .testDestructuring' type=kotlin.Pair origin=null BLOCK type=kotlin.Unit origin=null - CALL 'public final fun println (message: kotlin.Int): kotlin.Unit [inline] declared in kotlin.io' type=kotlin.Unit origin=null - message: GET_VAR 'val i: kotlin.Int [val] declared in .testDestructuring' type=kotlin.Int origin=null - CALL 'public final fun println (message: kotlin.Any?): kotlin.Unit [inline] declared in kotlin.io' type=kotlin.Unit origin=null - message: GET_VAR 'val s: kotlin.String [val] declared in .testDestructuring' type=kotlin.String origin=null + CALL 'public final fun println (message: kotlin.Int): kotlin.Unit declared in kotlin.io' type=kotlin.Unit origin=null + message: GET_VAR 'val i: kotlin.Int declared in .testDestructuring' type=kotlin.Int origin=null + CALL 'public final fun println (message: kotlin.Any?): kotlin.Unit declared in kotlin.io' type=kotlin.Unit origin=null + message: GET_VAR 'val s: kotlin.String declared in .testDestructuring' type=kotlin.String origin=null FUN name:testRange visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY BLOCK type=kotlin.Unit origin=FOR_LOOP VAR FOR_LOOP_ITERATOR name:tmp_4 type:kotlin.collections.IntIterator [val] - CALL 'public open fun iterator (): kotlin.collections.IntIterator [fake_override,operator] declared in kotlin.ranges.IntRange' type=kotlin.collections.IntIterator origin=FOR_LOOP_ITERATOR - $this: CALL 'public final fun rangeTo (other: kotlin.Int): kotlin.ranges.IntRange [operator] declared in kotlin.Int' type=kotlin.ranges.IntRange origin=RANGE + CALL 'public open fun iterator (): kotlin.collections.IntIterator declared in kotlin.ranges.IntRange' type=kotlin.collections.IntIterator origin=FOR_LOOP_ITERATOR + $this: CALL 'public final fun rangeTo (other: kotlin.Int): kotlin.ranges.IntRange declared in kotlin.Int' type=kotlin.ranges.IntRange origin=RANGE $this: CONST Int type=kotlin.Int value=1 other: CONST Int type=kotlin.Int value=10 WHILE label=null origin=FOR_LOOP_INNER_WHILE - condition: CALL 'public abstract fun hasNext (): kotlin.Boolean [fake_override,operator] declared in kotlin.collections.IntIterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT - $this: GET_VAR 'val tmp_4: kotlin.collections.IntIterator [val] declared in .testRange' type=kotlin.collections.IntIterator origin=null + condition: CALL 'public abstract fun hasNext (): kotlin.Boolean declared in kotlin.collections.IntIterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT + $this: GET_VAR 'val tmp_4: kotlin.collections.IntIterator declared in .testRange' type=kotlin.collections.IntIterator origin=null body: BLOCK type=kotlin.Unit origin=FOR_LOOP_INNER_WHILE VAR FOR_LOOP_VARIABLE name:i type:kotlin.Int [val] - CALL 'public final fun next (): kotlin.Int [operator] declared in kotlin.collections.IntIterator' type=kotlin.Int origin=FOR_LOOP_NEXT - $this: GET_VAR 'val tmp_4: kotlin.collections.IntIterator [val] declared in .testRange' type=kotlin.collections.IntIterator origin=null + CALL 'public final fun next (): kotlin.Int declared in kotlin.collections.IntIterator' type=kotlin.Int origin=FOR_LOOP_NEXT + $this: GET_VAR 'val tmp_4: kotlin.collections.IntIterator declared in .testRange' type=kotlin.collections.IntIterator origin=null diff --git a/compiler/testData/ir/irText/expressions/forWithBreakContinue.fir.ir.txt b/compiler/testData/ir/irText/expressions/forWithBreakContinue.fir.ir.txt index 55e84fb1eee..61440440409 100644 --- a/compiler/testData/ir/irText/expressions/forWithBreakContinue.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/forWithBreakContinue.fir.ir.txt @@ -4,42 +4,42 @@ FILE fqName: fileName:/forWithBreakContinue.kt BLOCK_BODY BLOCK type=kotlin.Unit origin=FOR_LOOP VAR FOR_LOOP_ITERATOR name:tmp_0 type:kotlin.collections.Iterator [val] - CALL 'public abstract fun iterator (): kotlin.collections.Iterator [operator] declared in kotlin.collections.List' type=kotlin.collections.Iterator origin=FOR_LOOP_ITERATOR + CALL 'public abstract fun iterator (): kotlin.collections.Iterator declared in kotlin.collections.List' type=kotlin.collections.Iterator origin=FOR_LOOP_ITERATOR $this: GET_VAR 'ss: kotlin.collections.List declared in .testForBreak1' type=kotlin.collections.List origin=null WHILE label=null origin=FOR_LOOP_INNER_WHILE - condition: CALL 'public abstract fun hasNext (): kotlin.Boolean [operator] declared in kotlin.collections.Iterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT - $this: GET_VAR 'val tmp_0: kotlin.collections.Iterator [val] declared in .testForBreak1' type=kotlin.collections.Iterator origin=null + condition: CALL 'public abstract fun hasNext (): kotlin.Boolean declared in kotlin.collections.Iterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT + $this: GET_VAR 'val tmp_0: kotlin.collections.Iterator declared in .testForBreak1' type=kotlin.collections.Iterator origin=null body: BLOCK type=kotlin.Unit origin=FOR_LOOP_INNER_WHILE VAR FOR_LOOP_VARIABLE name:s type:kotlin.String [val] - CALL 'public abstract fun next (): T of kotlin.collections.Iterator [operator] declared in kotlin.collections.Iterator' type=kotlin.String origin=FOR_LOOP_NEXT - $this: GET_VAR 'val tmp_0: kotlin.collections.Iterator [val] declared in .testForBreak1' type=kotlin.collections.Iterator origin=null + CALL 'public abstract fun next (): T of kotlin.collections.Iterator declared in kotlin.collections.Iterator' type=kotlin.String origin=FOR_LOOP_NEXT + $this: GET_VAR 'val tmp_0: kotlin.collections.Iterator declared in .testForBreak1' type=kotlin.collections.Iterator origin=null BREAK label=null loop.label=null FUN name:testForBreak2 visibility:public modality:FINAL <> (ss:kotlin.collections.List) returnType:kotlin.Unit VALUE_PARAMETER name:ss index:0 type:kotlin.collections.List BLOCK_BODY BLOCK type=kotlin.Unit origin=FOR_LOOP VAR FOR_LOOP_ITERATOR name:tmp_1 type:kotlin.collections.Iterator [val] - CALL 'public abstract fun iterator (): kotlin.collections.Iterator [operator] declared in kotlin.collections.List' type=kotlin.collections.Iterator origin=FOR_LOOP_ITERATOR + CALL 'public abstract fun iterator (): kotlin.collections.Iterator declared in kotlin.collections.List' type=kotlin.collections.Iterator origin=FOR_LOOP_ITERATOR $this: GET_VAR 'ss: kotlin.collections.List declared in .testForBreak2' type=kotlin.collections.List origin=null WHILE label=OUTER origin=FOR_LOOP_INNER_WHILE - condition: CALL 'public abstract fun hasNext (): kotlin.Boolean [operator] declared in kotlin.collections.Iterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT - $this: GET_VAR 'val tmp_1: kotlin.collections.Iterator [val] declared in .testForBreak2' type=kotlin.collections.Iterator origin=null + condition: CALL 'public abstract fun hasNext (): kotlin.Boolean declared in kotlin.collections.Iterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT + $this: GET_VAR 'val tmp_1: kotlin.collections.Iterator declared in .testForBreak2' type=kotlin.collections.Iterator origin=null body: BLOCK type=kotlin.Unit origin=FOR_LOOP_INNER_WHILE VAR FOR_LOOP_VARIABLE name:s1 type:kotlin.String [val] - CALL 'public abstract fun next (): T of kotlin.collections.Iterator [operator] declared in kotlin.collections.Iterator' type=kotlin.String origin=FOR_LOOP_NEXT - $this: GET_VAR 'val tmp_1: kotlin.collections.Iterator [val] declared in .testForBreak2' type=kotlin.collections.Iterator origin=null + CALL 'public abstract fun next (): T of kotlin.collections.Iterator declared in kotlin.collections.Iterator' type=kotlin.String origin=FOR_LOOP_NEXT + $this: GET_VAR 'val tmp_1: kotlin.collections.Iterator declared in .testForBreak2' type=kotlin.collections.Iterator origin=null BLOCK type=kotlin.Nothing origin=null BLOCK type=kotlin.Unit origin=FOR_LOOP VAR FOR_LOOP_ITERATOR name:tmp_2 type:kotlin.collections.Iterator [val] - CALL 'public abstract fun iterator (): kotlin.collections.Iterator [operator] declared in kotlin.collections.List' type=kotlin.collections.Iterator origin=FOR_LOOP_ITERATOR + CALL 'public abstract fun iterator (): kotlin.collections.Iterator declared in kotlin.collections.List' type=kotlin.collections.Iterator origin=FOR_LOOP_ITERATOR $this: GET_VAR 'ss: kotlin.collections.List declared in .testForBreak2' type=kotlin.collections.List origin=null WHILE label=INNER origin=FOR_LOOP_INNER_WHILE - condition: CALL 'public abstract fun hasNext (): kotlin.Boolean [operator] declared in kotlin.collections.Iterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT - $this: GET_VAR 'val tmp_2: kotlin.collections.Iterator [val] declared in .testForBreak2' type=kotlin.collections.Iterator origin=null + condition: CALL 'public abstract fun hasNext (): kotlin.Boolean declared in kotlin.collections.Iterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT + $this: GET_VAR 'val tmp_2: kotlin.collections.Iterator declared in .testForBreak2' type=kotlin.collections.Iterator origin=null body: BLOCK type=kotlin.Unit origin=FOR_LOOP_INNER_WHILE VAR FOR_LOOP_VARIABLE name:s2 type:kotlin.String [val] - CALL 'public abstract fun next (): T of kotlin.collections.Iterator [operator] declared in kotlin.collections.Iterator' type=kotlin.String origin=FOR_LOOP_NEXT - $this: GET_VAR 'val tmp_2: kotlin.collections.Iterator [val] declared in .testForBreak2' type=kotlin.collections.Iterator origin=null + CALL 'public abstract fun next (): T of kotlin.collections.Iterator declared in kotlin.collections.Iterator' type=kotlin.String origin=FOR_LOOP_NEXT + $this: GET_VAR 'val tmp_2: kotlin.collections.Iterator declared in .testForBreak2' type=kotlin.collections.Iterator origin=null BLOCK type=kotlin.Nothing origin=null BREAK label=OUTER loop.label=OUTER BREAK label=INNER loop.label=INNER @@ -50,42 +50,42 @@ FILE fqName: fileName:/forWithBreakContinue.kt BLOCK_BODY BLOCK type=kotlin.Unit origin=FOR_LOOP VAR FOR_LOOP_ITERATOR name:tmp_3 type:kotlin.collections.Iterator [val] - CALL 'public abstract fun iterator (): kotlin.collections.Iterator [operator] declared in kotlin.collections.List' type=kotlin.collections.Iterator origin=FOR_LOOP_ITERATOR + CALL 'public abstract fun iterator (): kotlin.collections.Iterator declared in kotlin.collections.List' type=kotlin.collections.Iterator origin=FOR_LOOP_ITERATOR $this: GET_VAR 'ss: kotlin.collections.List declared in .testForContinue1' type=kotlin.collections.List origin=null WHILE label=null origin=FOR_LOOP_INNER_WHILE - condition: CALL 'public abstract fun hasNext (): kotlin.Boolean [operator] declared in kotlin.collections.Iterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT - $this: GET_VAR 'val tmp_3: kotlin.collections.Iterator [val] declared in .testForContinue1' type=kotlin.collections.Iterator origin=null + condition: CALL 'public abstract fun hasNext (): kotlin.Boolean declared in kotlin.collections.Iterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT + $this: GET_VAR 'val tmp_3: kotlin.collections.Iterator declared in .testForContinue1' type=kotlin.collections.Iterator origin=null body: BLOCK type=kotlin.Unit origin=FOR_LOOP_INNER_WHILE VAR FOR_LOOP_VARIABLE name:s type:kotlin.String [val] - CALL 'public abstract fun next (): T of kotlin.collections.Iterator [operator] declared in kotlin.collections.Iterator' type=kotlin.String origin=FOR_LOOP_NEXT - $this: GET_VAR 'val tmp_3: kotlin.collections.Iterator [val] declared in .testForContinue1' type=kotlin.collections.Iterator origin=null + CALL 'public abstract fun next (): T of kotlin.collections.Iterator declared in kotlin.collections.Iterator' type=kotlin.String origin=FOR_LOOP_NEXT + $this: GET_VAR 'val tmp_3: kotlin.collections.Iterator declared in .testForContinue1' type=kotlin.collections.Iterator origin=null CONTINUE label=null loop.label=null FUN name:testForContinue2 visibility:public modality:FINAL <> (ss:kotlin.collections.List) returnType:kotlin.Unit VALUE_PARAMETER name:ss index:0 type:kotlin.collections.List BLOCK_BODY BLOCK type=kotlin.Unit origin=FOR_LOOP VAR FOR_LOOP_ITERATOR name:tmp_4 type:kotlin.collections.Iterator [val] - CALL 'public abstract fun iterator (): kotlin.collections.Iterator [operator] declared in kotlin.collections.List' type=kotlin.collections.Iterator origin=FOR_LOOP_ITERATOR + CALL 'public abstract fun iterator (): kotlin.collections.Iterator declared in kotlin.collections.List' type=kotlin.collections.Iterator origin=FOR_LOOP_ITERATOR $this: GET_VAR 'ss: kotlin.collections.List declared in .testForContinue2' type=kotlin.collections.List origin=null WHILE label=OUTER origin=FOR_LOOP_INNER_WHILE - condition: CALL 'public abstract fun hasNext (): kotlin.Boolean [operator] declared in kotlin.collections.Iterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT - $this: GET_VAR 'val tmp_4: kotlin.collections.Iterator [val] declared in .testForContinue2' type=kotlin.collections.Iterator origin=null + condition: CALL 'public abstract fun hasNext (): kotlin.Boolean declared in kotlin.collections.Iterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT + $this: GET_VAR 'val tmp_4: kotlin.collections.Iterator declared in .testForContinue2' type=kotlin.collections.Iterator origin=null body: BLOCK type=kotlin.Unit origin=FOR_LOOP_INNER_WHILE VAR FOR_LOOP_VARIABLE name:s1 type:kotlin.String [val] - CALL 'public abstract fun next (): T of kotlin.collections.Iterator [operator] declared in kotlin.collections.Iterator' type=kotlin.String origin=FOR_LOOP_NEXT - $this: GET_VAR 'val tmp_4: kotlin.collections.Iterator [val] declared in .testForContinue2' type=kotlin.collections.Iterator origin=null + CALL 'public abstract fun next (): T of kotlin.collections.Iterator declared in kotlin.collections.Iterator' type=kotlin.String origin=FOR_LOOP_NEXT + $this: GET_VAR 'val tmp_4: kotlin.collections.Iterator declared in .testForContinue2' type=kotlin.collections.Iterator origin=null BLOCK type=kotlin.Nothing origin=null BLOCK type=kotlin.Unit origin=FOR_LOOP VAR FOR_LOOP_ITERATOR name:tmp_5 type:kotlin.collections.Iterator [val] - CALL 'public abstract fun iterator (): kotlin.collections.Iterator [operator] declared in kotlin.collections.List' type=kotlin.collections.Iterator origin=FOR_LOOP_ITERATOR + CALL 'public abstract fun iterator (): kotlin.collections.Iterator declared in kotlin.collections.List' type=kotlin.collections.Iterator origin=FOR_LOOP_ITERATOR $this: GET_VAR 'ss: kotlin.collections.List declared in .testForContinue2' type=kotlin.collections.List origin=null WHILE label=INNER origin=FOR_LOOP_INNER_WHILE - condition: CALL 'public abstract fun hasNext (): kotlin.Boolean [operator] declared in kotlin.collections.Iterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT - $this: GET_VAR 'val tmp_5: kotlin.collections.Iterator [val] declared in .testForContinue2' type=kotlin.collections.Iterator origin=null + condition: CALL 'public abstract fun hasNext (): kotlin.Boolean declared in kotlin.collections.Iterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT + $this: GET_VAR 'val tmp_5: kotlin.collections.Iterator declared in .testForContinue2' type=kotlin.collections.Iterator origin=null body: BLOCK type=kotlin.Unit origin=FOR_LOOP_INNER_WHILE VAR FOR_LOOP_VARIABLE name:s2 type:kotlin.String [val] - CALL 'public abstract fun next (): T of kotlin.collections.Iterator [operator] declared in kotlin.collections.Iterator' type=kotlin.String origin=FOR_LOOP_NEXT - $this: GET_VAR 'val tmp_5: kotlin.collections.Iterator [val] declared in .testForContinue2' type=kotlin.collections.Iterator origin=null + CALL 'public abstract fun next (): T of kotlin.collections.Iterator declared in kotlin.collections.Iterator' type=kotlin.String origin=FOR_LOOP_NEXT + $this: GET_VAR 'val tmp_5: kotlin.collections.Iterator declared in .testForContinue2' type=kotlin.collections.Iterator origin=null BLOCK type=kotlin.Nothing origin=null CONTINUE label=OUTER loop.label=OUTER CONTINUE label=INNER loop.label=INNER diff --git a/compiler/testData/ir/irText/expressions/forWithBreakContinue.ir.txt b/compiler/testData/ir/irText/expressions/forWithBreakContinue.ir.txt index 805c67132b3..c4892311049 100644 --- a/compiler/testData/ir/irText/expressions/forWithBreakContinue.ir.txt +++ b/compiler/testData/ir/irText/expressions/forWithBreakContinue.ir.txt @@ -4,15 +4,15 @@ FILE fqName: fileName:/forWithBreakContinue.kt BLOCK_BODY BLOCK type=kotlin.Unit origin=FOR_LOOP VAR FOR_LOOP_ITERATOR name:tmp_0 type:kotlin.collections.Iterator [val] - CALL 'public abstract fun iterator (): kotlin.collections.Iterator [operator] declared in kotlin.collections.List' type=kotlin.collections.Iterator origin=FOR_LOOP_ITERATOR + CALL 'public abstract fun iterator (): kotlin.collections.Iterator declared in kotlin.collections.List' type=kotlin.collections.Iterator origin=FOR_LOOP_ITERATOR $this: GET_VAR 'ss: kotlin.collections.List declared in .testForBreak1' type=kotlin.collections.List origin=null WHILE label=null origin=FOR_LOOP_INNER_WHILE - condition: CALL 'public abstract fun hasNext (): kotlin.Boolean [operator] declared in kotlin.collections.Iterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT - $this: GET_VAR 'val tmp_0: kotlin.collections.Iterator [val] declared in .testForBreak1' type=kotlin.collections.Iterator origin=null + condition: CALL 'public abstract fun hasNext (): kotlin.Boolean declared in kotlin.collections.Iterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT + $this: GET_VAR 'val tmp_0: kotlin.collections.Iterator declared in .testForBreak1' type=kotlin.collections.Iterator origin=null body: BLOCK type=kotlin.Unit origin=FOR_LOOP_INNER_WHILE VAR FOR_LOOP_VARIABLE name:s type:kotlin.String [val] - CALL 'public abstract fun next (): T of kotlin.collections.Iterator [operator] declared in kotlin.collections.Iterator' type=kotlin.String origin=FOR_LOOP_NEXT - $this: GET_VAR 'val tmp_0: kotlin.collections.Iterator [val] declared in .testForBreak1' type=kotlin.collections.Iterator origin=null + CALL 'public abstract fun next (): T of kotlin.collections.Iterator declared in kotlin.collections.Iterator' type=kotlin.String origin=FOR_LOOP_NEXT + $this: GET_VAR 'val tmp_0: kotlin.collections.Iterator declared in .testForBreak1' type=kotlin.collections.Iterator origin=null BLOCK type=kotlin.Unit origin=null BREAK label=null loop.label=null FUN name:testForBreak2 visibility:public modality:FINAL <> (ss:kotlin.collections.List) returnType:kotlin.Unit @@ -20,27 +20,27 @@ FILE fqName: fileName:/forWithBreakContinue.kt BLOCK_BODY BLOCK type=kotlin.Unit origin=FOR_LOOP VAR FOR_LOOP_ITERATOR name:tmp_1 type:kotlin.collections.Iterator [val] - CALL 'public abstract fun iterator (): kotlin.collections.Iterator [operator] declared in kotlin.collections.List' type=kotlin.collections.Iterator origin=FOR_LOOP_ITERATOR + CALL 'public abstract fun iterator (): kotlin.collections.Iterator declared in kotlin.collections.List' type=kotlin.collections.Iterator origin=FOR_LOOP_ITERATOR $this: GET_VAR 'ss: kotlin.collections.List declared in .testForBreak2' type=kotlin.collections.List origin=null WHILE label=OUTER origin=FOR_LOOP_INNER_WHILE - condition: CALL 'public abstract fun hasNext (): kotlin.Boolean [operator] declared in kotlin.collections.Iterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT - $this: GET_VAR 'val tmp_1: kotlin.collections.Iterator [val] declared in .testForBreak2' type=kotlin.collections.Iterator origin=null + condition: CALL 'public abstract fun hasNext (): kotlin.Boolean declared in kotlin.collections.Iterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT + $this: GET_VAR 'val tmp_1: kotlin.collections.Iterator declared in .testForBreak2' type=kotlin.collections.Iterator origin=null body: BLOCK type=kotlin.Unit origin=FOR_LOOP_INNER_WHILE VAR FOR_LOOP_VARIABLE name:s1 type:kotlin.String [val] - CALL 'public abstract fun next (): T of kotlin.collections.Iterator [operator] declared in kotlin.collections.Iterator' type=kotlin.String origin=FOR_LOOP_NEXT - $this: GET_VAR 'val tmp_1: kotlin.collections.Iterator [val] declared in .testForBreak2' type=kotlin.collections.Iterator origin=null + CALL 'public abstract fun next (): T of kotlin.collections.Iterator declared in kotlin.collections.Iterator' type=kotlin.String origin=FOR_LOOP_NEXT + $this: GET_VAR 'val tmp_1: kotlin.collections.Iterator declared in .testForBreak2' type=kotlin.collections.Iterator origin=null BLOCK type=kotlin.Unit origin=null BLOCK type=kotlin.Unit origin=FOR_LOOP VAR FOR_LOOP_ITERATOR name:tmp_2 type:kotlin.collections.Iterator [val] - CALL 'public abstract fun iterator (): kotlin.collections.Iterator [operator] declared in kotlin.collections.List' type=kotlin.collections.Iterator origin=FOR_LOOP_ITERATOR + CALL 'public abstract fun iterator (): kotlin.collections.Iterator declared in kotlin.collections.List' type=kotlin.collections.Iterator origin=FOR_LOOP_ITERATOR $this: GET_VAR 'ss: kotlin.collections.List declared in .testForBreak2' type=kotlin.collections.List origin=null WHILE label=INNER origin=FOR_LOOP_INNER_WHILE - condition: CALL 'public abstract fun hasNext (): kotlin.Boolean [operator] declared in kotlin.collections.Iterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT - $this: GET_VAR 'val tmp_2: kotlin.collections.Iterator [val] declared in .testForBreak2' type=kotlin.collections.Iterator origin=null + condition: CALL 'public abstract fun hasNext (): kotlin.Boolean declared in kotlin.collections.Iterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT + $this: GET_VAR 'val tmp_2: kotlin.collections.Iterator declared in .testForBreak2' type=kotlin.collections.Iterator origin=null body: BLOCK type=kotlin.Unit origin=FOR_LOOP_INNER_WHILE VAR FOR_LOOP_VARIABLE name:s2 type:kotlin.String [val] - CALL 'public abstract fun next (): T of kotlin.collections.Iterator [operator] declared in kotlin.collections.Iterator' type=kotlin.String origin=FOR_LOOP_NEXT - $this: GET_VAR 'val tmp_2: kotlin.collections.Iterator [val] declared in .testForBreak2' type=kotlin.collections.Iterator origin=null + CALL 'public abstract fun next (): T of kotlin.collections.Iterator declared in kotlin.collections.Iterator' type=kotlin.String origin=FOR_LOOP_NEXT + $this: GET_VAR 'val tmp_2: kotlin.collections.Iterator declared in .testForBreak2' type=kotlin.collections.Iterator origin=null BLOCK type=kotlin.Unit origin=null BREAK label=OUTER loop.label=OUTER BREAK label=INNER loop.label=INNER @@ -51,15 +51,15 @@ FILE fqName: fileName:/forWithBreakContinue.kt BLOCK_BODY BLOCK type=kotlin.Unit origin=FOR_LOOP VAR FOR_LOOP_ITERATOR name:tmp_3 type:kotlin.collections.Iterator [val] - CALL 'public abstract fun iterator (): kotlin.collections.Iterator [operator] declared in kotlin.collections.List' type=kotlin.collections.Iterator origin=FOR_LOOP_ITERATOR + CALL 'public abstract fun iterator (): kotlin.collections.Iterator declared in kotlin.collections.List' type=kotlin.collections.Iterator origin=FOR_LOOP_ITERATOR $this: GET_VAR 'ss: kotlin.collections.List declared in .testForContinue1' type=kotlin.collections.List origin=null WHILE label=null origin=FOR_LOOP_INNER_WHILE - condition: CALL 'public abstract fun hasNext (): kotlin.Boolean [operator] declared in kotlin.collections.Iterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT - $this: GET_VAR 'val tmp_3: kotlin.collections.Iterator [val] declared in .testForContinue1' type=kotlin.collections.Iterator origin=null + condition: CALL 'public abstract fun hasNext (): kotlin.Boolean declared in kotlin.collections.Iterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT + $this: GET_VAR 'val tmp_3: kotlin.collections.Iterator declared in .testForContinue1' type=kotlin.collections.Iterator origin=null body: BLOCK type=kotlin.Unit origin=FOR_LOOP_INNER_WHILE VAR FOR_LOOP_VARIABLE name:s type:kotlin.String [val] - CALL 'public abstract fun next (): T of kotlin.collections.Iterator [operator] declared in kotlin.collections.Iterator' type=kotlin.String origin=FOR_LOOP_NEXT - $this: GET_VAR 'val tmp_3: kotlin.collections.Iterator [val] declared in .testForContinue1' type=kotlin.collections.Iterator origin=null + CALL 'public abstract fun next (): T of kotlin.collections.Iterator declared in kotlin.collections.Iterator' type=kotlin.String origin=FOR_LOOP_NEXT + $this: GET_VAR 'val tmp_3: kotlin.collections.Iterator declared in .testForContinue1' type=kotlin.collections.Iterator origin=null BLOCK type=kotlin.Unit origin=null CONTINUE label=null loop.label=null FUN name:testForContinue2 visibility:public modality:FINAL <> (ss:kotlin.collections.List) returnType:kotlin.Unit @@ -67,27 +67,27 @@ FILE fqName: fileName:/forWithBreakContinue.kt BLOCK_BODY BLOCK type=kotlin.Unit origin=FOR_LOOP VAR FOR_LOOP_ITERATOR name:tmp_4 type:kotlin.collections.Iterator [val] - CALL 'public abstract fun iterator (): kotlin.collections.Iterator [operator] declared in kotlin.collections.List' type=kotlin.collections.Iterator origin=FOR_LOOP_ITERATOR + CALL 'public abstract fun iterator (): kotlin.collections.Iterator declared in kotlin.collections.List' type=kotlin.collections.Iterator origin=FOR_LOOP_ITERATOR $this: GET_VAR 'ss: kotlin.collections.List declared in .testForContinue2' type=kotlin.collections.List origin=null WHILE label=OUTER origin=FOR_LOOP_INNER_WHILE - condition: CALL 'public abstract fun hasNext (): kotlin.Boolean [operator] declared in kotlin.collections.Iterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT - $this: GET_VAR 'val tmp_4: kotlin.collections.Iterator [val] declared in .testForContinue2' type=kotlin.collections.Iterator origin=null + condition: CALL 'public abstract fun hasNext (): kotlin.Boolean declared in kotlin.collections.Iterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT + $this: GET_VAR 'val tmp_4: kotlin.collections.Iterator declared in .testForContinue2' type=kotlin.collections.Iterator origin=null body: BLOCK type=kotlin.Unit origin=FOR_LOOP_INNER_WHILE VAR FOR_LOOP_VARIABLE name:s1 type:kotlin.String [val] - CALL 'public abstract fun next (): T of kotlin.collections.Iterator [operator] declared in kotlin.collections.Iterator' type=kotlin.String origin=FOR_LOOP_NEXT - $this: GET_VAR 'val tmp_4: kotlin.collections.Iterator [val] declared in .testForContinue2' type=kotlin.collections.Iterator origin=null + CALL 'public abstract fun next (): T of kotlin.collections.Iterator declared in kotlin.collections.Iterator' type=kotlin.String origin=FOR_LOOP_NEXT + $this: GET_VAR 'val tmp_4: kotlin.collections.Iterator declared in .testForContinue2' type=kotlin.collections.Iterator origin=null BLOCK type=kotlin.Unit origin=null BLOCK type=kotlin.Unit origin=FOR_LOOP VAR FOR_LOOP_ITERATOR name:tmp_5 type:kotlin.collections.Iterator [val] - CALL 'public abstract fun iterator (): kotlin.collections.Iterator [operator] declared in kotlin.collections.List' type=kotlin.collections.Iterator origin=FOR_LOOP_ITERATOR + CALL 'public abstract fun iterator (): kotlin.collections.Iterator declared in kotlin.collections.List' type=kotlin.collections.Iterator origin=FOR_LOOP_ITERATOR $this: GET_VAR 'ss: kotlin.collections.List declared in .testForContinue2' type=kotlin.collections.List origin=null WHILE label=INNER origin=FOR_LOOP_INNER_WHILE - condition: CALL 'public abstract fun hasNext (): kotlin.Boolean [operator] declared in kotlin.collections.Iterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT - $this: GET_VAR 'val tmp_5: kotlin.collections.Iterator [val] declared in .testForContinue2' type=kotlin.collections.Iterator origin=null + condition: CALL 'public abstract fun hasNext (): kotlin.Boolean declared in kotlin.collections.Iterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT + $this: GET_VAR 'val tmp_5: kotlin.collections.Iterator declared in .testForContinue2' type=kotlin.collections.Iterator origin=null body: BLOCK type=kotlin.Unit origin=FOR_LOOP_INNER_WHILE VAR FOR_LOOP_VARIABLE name:s2 type:kotlin.String [val] - CALL 'public abstract fun next (): T of kotlin.collections.Iterator [operator] declared in kotlin.collections.Iterator' type=kotlin.String origin=FOR_LOOP_NEXT - $this: GET_VAR 'val tmp_5: kotlin.collections.Iterator [val] declared in .testForContinue2' type=kotlin.collections.Iterator origin=null + CALL 'public abstract fun next (): T of kotlin.collections.Iterator declared in kotlin.collections.Iterator' type=kotlin.String origin=FOR_LOOP_NEXT + $this: GET_VAR 'val tmp_5: kotlin.collections.Iterator declared in .testForContinue2' type=kotlin.collections.Iterator origin=null BLOCK type=kotlin.Unit origin=null CONTINUE label=OUTER loop.label=OUTER CONTINUE label=INNER loop.label=INNER diff --git a/compiler/testData/ir/irText/expressions/forWithImplicitReceivers.fir.ir.txt b/compiler/testData/ir/irText/expressions/forWithImplicitReceivers.fir.ir.txt index bc9283259c8..9d812de9f40 100644 --- a/compiler/testData/ir/irText/expressions/forWithImplicitReceivers.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/forWithImplicitReceivers.fir.ir.txt @@ -3,11 +3,11 @@ FILE fqName: fileName:/forWithImplicitReceivers.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.FiveTimes CONSTRUCTOR visibility:private <> () returnType:.FiveTimes [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:FiveTimes modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -23,7 +23,7 @@ FILE fqName: fileName:/forWithImplicitReceivers.kt CONSTRUCTOR visibility:public <> (value:kotlin.Int) returnType:.IntCell [primary] VALUE_PARAMETER name:value index:0 type:kotlin.Int BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:IntCell modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:value visibility:public modality:FINAL [var] FIELD PROPERTY_BACKING_FIELD name:value type:kotlin.Int visibility:private @@ -46,7 +46,7 @@ FILE fqName: fileName:/forWithImplicitReceivers.kt value: GET_VAR ': kotlin.Int declared in .IntCell.' type=kotlin.Int 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -63,14 +63,14 @@ FILE fqName: fileName:/forWithImplicitReceivers.kt $this: VALUE_PARAMETER name: type:.IReceiver $receiver: VALUE_PARAMETER name: type:.FiveTimes BLOCK_BODY - RETURN type=kotlin.Nothing from='public open fun iterator (): .IntCell [operator] declared in .IReceiver' - CONSTRUCTOR_CALL 'public constructor (value: kotlin.Int) [primary] declared in .IntCell' type=.IntCell origin=null + RETURN type=kotlin.Nothing from='public open fun iterator (): .IntCell declared in .IReceiver' + CONSTRUCTOR_CALL 'public constructor (value: kotlin.Int) declared in .IntCell' type=.IntCell origin=null value: CONST Int type=kotlin.Int value=5 FUN name:hasNext visibility:public modality:OPEN <> ($this:.IReceiver, $receiver:.IntCell) returnType:kotlin.Boolean [operator] $this: VALUE_PARAMETER name: type:.IReceiver $receiver: VALUE_PARAMETER name: type:.IntCell BLOCK_BODY - RETURN type=kotlin.Nothing from='public open fun hasNext (): kotlin.Boolean [operator] declared in .IReceiver' + RETURN type=kotlin.Nothing from='public open fun hasNext (): kotlin.Boolean declared in .IReceiver' CALL 'public final fun greater (arg0: kotlin.Int, arg1: kotlin.Int): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=GT arg0: CALL 'public final fun (): kotlin.Int declared in .IntCell' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR ': .IntCell declared in .IReceiver.hasNext' type=.IntCell origin=null @@ -79,19 +79,19 @@ FILE fqName: fileName:/forWithImplicitReceivers.kt $this: VALUE_PARAMETER name: type:.IReceiver $receiver: VALUE_PARAMETER name: type:.IntCell BLOCK_BODY - RETURN type=kotlin.Nothing from='public open fun next (): kotlin.Int [operator] declared in .IReceiver' + RETURN type=kotlin.Nothing from='public open fun next (): kotlin.Int declared in .IReceiver' BLOCK type=kotlin.Int origin=null VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:kotlin.Int [val] CALL 'public final fun (): kotlin.Int declared in .IntCell' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR ': .IntCell declared in .IReceiver.next' type=.IntCell origin=null CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in .IntCell' type=kotlin.Unit origin=EQ $this: GET_VAR ': .IntCell declared in .IReceiver.next' type=.IntCell origin=null - : CALL 'public final fun dec (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp_0: kotlin.Int [val] declared in .IReceiver.next' type=kotlin.Int origin=null - GET_VAR 'val tmp_0: kotlin.Int [val] declared in .IReceiver.next' type=kotlin.Int origin=null + : CALL 'public final fun dec (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_0: kotlin.Int declared in .IReceiver.next' type=kotlin.Int origin=null + GET_VAR 'val tmp_0: kotlin.Int declared in .IReceiver.next' type=kotlin.Int 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -107,17 +107,17 @@ FILE fqName: fileName:/forWithImplicitReceivers.kt BLOCK_BODY BLOCK type=kotlin.Unit origin=FOR_LOOP VAR FOR_LOOP_ITERATOR name:tmp_1 type:.IntCell [val] - CALL 'public open fun iterator (): .IntCell [operator] declared in .IReceiver' type=.IntCell origin=null + CALL 'public open fun iterator (): .IntCell declared in .IReceiver' type=.IntCell origin=null $this: GET_VAR ': .IReceiver declared in .test' type=.IReceiver origin=null $receiver: GET_OBJECT 'CLASS OBJECT name:FiveTimes modality:FINAL visibility:public superTypes:[kotlin.Any]' type=.FiveTimes WHILE label=null origin=FOR_LOOP_INNER_WHILE - condition: CALL 'public open fun hasNext (): kotlin.Boolean [operator] declared in .IReceiver' type=kotlin.Boolean origin=null + condition: CALL 'public open fun hasNext (): kotlin.Boolean declared in .IReceiver' type=kotlin.Boolean origin=null $this: GET_VAR ': .IReceiver declared in .test' type=.IReceiver origin=null - $receiver: GET_VAR 'val tmp_1: .IntCell [val] declared in .test' type=.IntCell origin=null + $receiver: GET_VAR 'val tmp_1: .IntCell declared in .test' type=.IntCell origin=null body: BLOCK type=kotlin.Unit origin=FOR_LOOP_INNER_WHILE VAR name:i type:kotlin.Int [val] - CALL 'public open fun next (): kotlin.Int [operator] declared in .IReceiver' type=kotlin.Int origin=null + CALL 'public open fun next (): kotlin.Int declared in .IReceiver' type=kotlin.Int origin=null $this: GET_VAR ': .IReceiver declared in .test' type=.IReceiver origin=null - $receiver: GET_VAR 'val tmp_1: .IntCell [val] declared in .test' type=.IntCell origin=null - CALL 'public final fun println (message: kotlin.Int): kotlin.Unit [inline] declared in kotlin.io' type=kotlin.Unit origin=null - message: GET_VAR 'val i: kotlin.Int [val] declared in .test' type=kotlin.Int origin=null + $receiver: GET_VAR 'val tmp_1: .IntCell declared in .test' type=.IntCell origin=null + CALL 'public final fun println (message: kotlin.Int): kotlin.Unit declared in kotlin.io' type=kotlin.Unit origin=null + message: GET_VAR 'val i: kotlin.Int declared in .test' type=kotlin.Int origin=null diff --git a/compiler/testData/ir/irText/expressions/forWithImplicitReceivers.ir.txt b/compiler/testData/ir/irText/expressions/forWithImplicitReceivers.ir.txt index b1a5be3e576..8d0849a54e7 100644 --- a/compiler/testData/ir/irText/expressions/forWithImplicitReceivers.ir.txt +++ b/compiler/testData/ir/irText/expressions/forWithImplicitReceivers.ir.txt @@ -3,11 +3,11 @@ FILE fqName: fileName:/forWithImplicitReceivers.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.FiveTimes CONSTRUCTOR visibility:private <> () returnType:.FiveTimes [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:FiveTimes modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -23,7 +23,7 @@ FILE fqName: fileName:/forWithImplicitReceivers.kt CONSTRUCTOR visibility:public <> (value:kotlin.Int) returnType:.IntCell [primary] VALUE_PARAMETER name:value index:0 type:kotlin.Int BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:IntCell modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:value visibility:public modality:FINAL [var] FIELD PROPERTY_BACKING_FIELD name:value type:kotlin.Int visibility:private @@ -46,7 +46,7 @@ FILE fqName: fileName:/forWithImplicitReceivers.kt value: GET_VAR ': kotlin.Int declared in .IntCell.' type=kotlin.Int 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -63,14 +63,14 @@ FILE fqName: fileName:/forWithImplicitReceivers.kt $this: VALUE_PARAMETER name: type:.IReceiver $receiver: VALUE_PARAMETER name: type:.FiveTimes BLOCK_BODY - RETURN type=kotlin.Nothing from='public open fun iterator (): .IntCell [operator] declared in .IReceiver' - CONSTRUCTOR_CALL 'public constructor (value: kotlin.Int) [primary] declared in .IntCell' type=.IntCell origin=null + RETURN type=kotlin.Nothing from='public open fun iterator (): .IntCell declared in .IReceiver' + CONSTRUCTOR_CALL 'public constructor (value: kotlin.Int) declared in .IntCell' type=.IntCell origin=null value: CONST Int type=kotlin.Int value=5 FUN name:hasNext visibility:public modality:OPEN <> ($this:.IReceiver, $receiver:.IntCell) returnType:kotlin.Boolean [operator] $this: VALUE_PARAMETER name: type:.IReceiver $receiver: VALUE_PARAMETER name: type:.IntCell BLOCK_BODY - RETURN type=kotlin.Nothing from='public open fun hasNext (): kotlin.Boolean [operator] declared in .IReceiver' + RETURN type=kotlin.Nothing from='public open fun hasNext (): kotlin.Boolean declared in .IReceiver' CALL 'public final fun greater (arg0: kotlin.Int, arg1: kotlin.Int): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=GT arg0: CALL 'public final fun (): kotlin.Int declared in .IntCell' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR ': .IntCell declared in .IReceiver.hasNext' type=.IntCell origin=null @@ -79,22 +79,22 @@ FILE fqName: fileName:/forWithImplicitReceivers.kt $this: VALUE_PARAMETER name: type:.IReceiver $receiver: VALUE_PARAMETER name: type:.IntCell BLOCK_BODY - RETURN type=kotlin.Nothing from='public open fun next (): kotlin.Int [operator] declared in .IReceiver' + RETURN type=kotlin.Nothing from='public open fun next (): kotlin.Int declared in .IReceiver' BLOCK type=kotlin.Int origin=POSTFIX_DECR VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:.IntCell [val] GET_VAR ': .IntCell declared in .IReceiver.next' type=.IntCell origin=null BLOCK type=kotlin.Int origin=POSTFIX_DECR VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:kotlin.Int [val] CALL 'public final fun (): kotlin.Int declared in .IntCell' type=kotlin.Int origin=POSTFIX_DECR - $this: GET_VAR 'val tmp_0: .IntCell [val] declared in .IReceiver.next' type=.IntCell origin=null + $this: GET_VAR 'val tmp_0: .IntCell declared in .IReceiver.next' type=.IntCell origin=null CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in .IntCell' type=kotlin.Unit origin=POSTFIX_DECR - $this: GET_VAR 'val tmp_0: .IntCell [val] declared in .IReceiver.next' type=.IntCell origin=null - : CALL 'public final fun dec (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_DECR - $this: GET_VAR 'val tmp_1: kotlin.Int [val] declared in .IReceiver.next' type=kotlin.Int origin=null - GET_VAR 'val tmp_1: kotlin.Int [val] declared in .IReceiver.next' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_0: .IntCell declared in .IReceiver.next' type=.IntCell origin=null + : CALL 'public final fun dec (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_DECR + $this: GET_VAR 'val tmp_1: kotlin.Int declared in .IReceiver.next' type=kotlin.Int origin=null + GET_VAR 'val tmp_1: kotlin.Int declared in .IReceiver.next' type=kotlin.Int 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -110,18 +110,18 @@ FILE fqName: fileName:/forWithImplicitReceivers.kt BLOCK_BODY BLOCK type=kotlin.Unit origin=FOR_LOOP VAR FOR_LOOP_ITERATOR name:tmp_2 type:.IntCell [val] - CALL 'public open fun iterator (): .IntCell [operator] declared in .IReceiver' type=.IntCell origin=FOR_LOOP_ITERATOR + CALL 'public open fun iterator (): .IntCell declared in .IReceiver' type=.IntCell origin=FOR_LOOP_ITERATOR $this: GET_VAR ': .IReceiver declared in .test' type=.IReceiver origin=null $receiver: GET_OBJECT 'CLASS OBJECT name:FiveTimes modality:FINAL visibility:public superTypes:[kotlin.Any]' type=.FiveTimes WHILE label=null origin=FOR_LOOP_INNER_WHILE - condition: CALL 'public open fun hasNext (): kotlin.Boolean [operator] declared in .IReceiver' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT + condition: CALL 'public open fun hasNext (): kotlin.Boolean declared in .IReceiver' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT $this: GET_VAR ': .IReceiver declared in .test' type=.IReceiver origin=null - $receiver: GET_VAR 'val tmp_2: .IntCell [val] declared in .test' type=.IntCell origin=null + $receiver: GET_VAR 'val tmp_2: .IntCell declared in .test' type=.IntCell origin=null body: BLOCK type=kotlin.Unit origin=FOR_LOOP_INNER_WHILE VAR FOR_LOOP_VARIABLE name:i type:kotlin.Int [val] - CALL 'public open fun next (): kotlin.Int [operator] declared in .IReceiver' type=kotlin.Int origin=FOR_LOOP_NEXT + CALL 'public open fun next (): kotlin.Int declared in .IReceiver' type=kotlin.Int origin=FOR_LOOP_NEXT $this: GET_VAR ': .IReceiver declared in .test' type=.IReceiver origin=null - $receiver: GET_VAR 'val tmp_2: .IntCell [val] declared in .test' type=.IntCell origin=null + $receiver: GET_VAR 'val tmp_2: .IntCell declared in .test' type=.IntCell origin=null BLOCK type=kotlin.Unit origin=null - CALL 'public final fun println (message: kotlin.Int): kotlin.Unit [inline] declared in kotlin.io' type=kotlin.Unit origin=null - message: GET_VAR 'val i: kotlin.Int [val] declared in .test' type=kotlin.Int origin=null + CALL 'public final fun println (message: kotlin.Int): kotlin.Unit declared in kotlin.io' type=kotlin.Unit origin=null + message: GET_VAR 'val i: kotlin.Int declared in .test' type=kotlin.Int origin=null diff --git a/compiler/testData/ir/irText/expressions/funImportedFromObject.ir.txt b/compiler/testData/ir/irText/expressions/funImportedFromObject.ir.txt index ddeb6c67846..007fc55a08c 100644 --- a/compiler/testData/ir/irText/expressions/funImportedFromObject.ir.txt +++ b/compiler/testData/ir/irText/expressions/funImportedFromObject.ir.txt @@ -3,17 +3,17 @@ FILE fqName:test fileName:/funImportedFromObject.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:test.Host CONSTRUCTOR visibility:private <> () returnType:test.Host [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:Host modality:FINAL visibility:public superTypes:[kotlin.Any]' FUN name:foo visibility:public modality:FINAL ($this:test.Host) returnType:kotlin.String [inline] TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:true $this: VALUE_PARAMETER name: type:test.Host BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun foo (): kotlin.String [inline] declared in test.Host' + RETURN type=kotlin.Nothing from='public final fun foo (): kotlin.String declared in test.Host' CONST String type=kotlin.String value="OK" 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -27,6 +27,6 @@ FILE fqName:test fileName:/funImportedFromObject.kt FUN name:test visibility:public modality:FINAL <> () returnType:kotlin.String BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test (): kotlin.String declared in test' - CALL 'public final fun foo (): kotlin.String [inline] declared in test.Host' type=kotlin.String origin=null + CALL 'public final fun foo (): kotlin.String declared in test.Host' type=kotlin.String origin=null : kotlin.Any $this: GET_OBJECT 'CLASS OBJECT name:Host modality:FINAL visibility:public superTypes:[kotlin.Any]' type=test.Host diff --git a/compiler/testData/ir/irText/expressions/funInterface/arrayAsVarargAfterSamArgument_fi.ir.txt b/compiler/testData/ir/irText/expressions/funInterface/arrayAsVarargAfterSamArgument_fi.ir.txt index 1ba2beb0eec..ca81c779fd6 100644 --- a/compiler/testData/ir/irText/expressions/funInterface/arrayAsVarargAfterSamArgument_fi.ir.txt +++ b/compiler/testData/ir/irText/expressions/funInterface/arrayAsVarargAfterSamArgument_fi.ir.txt @@ -5,7 +5,7 @@ FILE fqName: fileName:/arrayAsVarargAfterSamArgument_fi.kt $this: VALUE_PARAMETER name: type:.IRunnable 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/expressions/funInterface/basicFunInterfaceConversion.ir.txt b/compiler/testData/ir/irText/expressions/funInterface/basicFunInterfaceConversion.ir.txt index c50d837d025..6819e46adc4 100644 --- a/compiler/testData/ir/irText/expressions/funInterface/basicFunInterfaceConversion.ir.txt +++ b/compiler/testData/ir/irText/expressions/funInterface/basicFunInterfaceConversion.ir.txt @@ -5,7 +5,7 @@ FILE fqName: fileName:/basicFunInterfaceConversion.kt $this: VALUE_PARAMETER name: type:.Foo 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/expressions/funInterface/castFromAny.ir.txt b/compiler/testData/ir/irText/expressions/funInterface/castFromAny.ir.txt index 1c13506c9b6..f1f33b6e79b 100644 --- a/compiler/testData/ir/irText/expressions/funInterface/castFromAny.ir.txt +++ b/compiler/testData/ir/irText/expressions/funInterface/castFromAny.ir.txt @@ -5,7 +5,7 @@ FILE fqName: fileName:/castFromAny.kt $this: VALUE_PARAMETER name: type:.KRunnable 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/expressions/funInterface/functionSupertype.fir.ir.txt b/compiler/testData/ir/irText/expressions/funInterface/functionSupertype.fir.ir.txt index c991b851c84..fa6312f2240 100644 --- a/compiler/testData/ir/irText/expressions/funInterface/functionSupertype.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/funInterface/functionSupertype.fir.ir.txt @@ -3,20 +3,20 @@ FILE fqName: fileName:/functionSupertype.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Foo FUN FAKE_OVERRIDE name:invoke visibility:public modality:ABSTRACT <> ($this:kotlin.Function0) returnType:kotlin.Int [fake_override,operator] overridden: - public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0 + public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0 $this: VALUE_PARAMETER name: type:kotlin.Function0 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 kotlin.Function0 + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Function0 $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 kotlin.Function0 + public open fun hashCode (): kotlin.Int declared in kotlin.Function0 $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 kotlin.Function0 + public open fun toString (): kotlin.String declared in kotlin.Function0 $this: VALUE_PARAMETER name: type:kotlin.Any FUN name:id visibility:public modality:FINAL <> (foo:.Foo) returnType:kotlin.Any VALUE_PARAMETER name:foo index:0 type:.Foo diff --git a/compiler/testData/ir/irText/expressions/funInterface/functionSupertype.ir.txt b/compiler/testData/ir/irText/expressions/funInterface/functionSupertype.ir.txt index 40d60b55b0f..b4b9f1c46c9 100644 --- a/compiler/testData/ir/irText/expressions/funInterface/functionSupertype.ir.txt +++ b/compiler/testData/ir/irText/expressions/funInterface/functionSupertype.ir.txt @@ -3,20 +3,20 @@ FILE fqName: fileName:/functionSupertype.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Foo FUN FAKE_OVERRIDE name:invoke visibility:public modality:ABSTRACT <> ($this:kotlin.Function0) returnType:kotlin.Int [fake_override,operator] overridden: - public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0 + public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0 $this: VALUE_PARAMETER name: type:kotlin.Function0 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 kotlin.Function0 + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Function0 $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 kotlin.Function0 + public open fun hashCode (): kotlin.Int declared in kotlin.Function0 $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 kotlin.Function0 + public open fun toString (): kotlin.String declared in kotlin.Function0 $this: VALUE_PARAMETER name: type:kotlin.Any FUN name:id visibility:public modality:FINAL <> (foo:.Foo) returnType:kotlin.Any VALUE_PARAMETER name:foo index:0 type:.Foo diff --git a/compiler/testData/ir/irText/expressions/funInterface/partialSam.fir.ir.txt b/compiler/testData/ir/irText/expressions/funInterface/partialSam.fir.ir.txt index 89e3e46cdd9..3a2e4ee7da3 100644 --- a/compiler/testData/ir/irText/expressions/funInterface/partialSam.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/funInterface/partialSam.fir.ir.txt @@ -10,7 +10,7 @@ FILE fqName: fileName:/partialSam.kt VALUE_PARAMETER name:t index:2 type:T of .Fn 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -25,7 +25,7 @@ FILE fqName: fileName:/partialSam.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.J CONSTRUCTOR visibility:public <> () returnType:.J [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:J modality:FINAL visibility:public superTypes:[kotlin.Any]' FUN name:runConversion visibility:public modality:FINAL <> ($this:.J, f1:.Fn, f2:.Fn) returnType:kotlin.Int $this: VALUE_PARAMETER name: type:.J @@ -44,7 +44,7 @@ FILE fqName: fileName:/partialSam.kt t: CONST Int type=kotlin.Int value=239 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -63,7 +63,7 @@ FILE fqName: fileName:/partialSam.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.fsi. CONSTRUCTOR visibility:public <> () returnType:.fsi. [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name: modality:FINAL visibility:local superTypes:[.Fn]' FUN name:run visibility:public modality:OPEN <> ($this:.fsi., s:kotlin.String, i:kotlin.Int, t:kotlin.String) returnType:kotlin.Int overridden: @@ -77,18 +77,18 @@ FILE fqName: fileName:/partialSam.kt CONST Int type=kotlin.Int value=1 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 .Fn + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Fn $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 .Fn + public open fun hashCode (): kotlin.Int declared in .Fn $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 .Fn + public open fun toString (): kotlin.String declared in .Fn $this: VALUE_PARAMETER name: type:kotlin.Any - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .fsi.' type=.fsi. origin=OBJECT_LITERAL + CONSTRUCTOR_CALL 'public constructor () declared in .fsi.' type=.fsi. origin=OBJECT_LITERAL FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:.Fn correspondingProperty: PROPERTY name:fsi visibility:public modality:FINAL [val] BLOCK_BODY @@ -102,7 +102,7 @@ FILE fqName: fileName:/partialSam.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.fis. CONSTRUCTOR visibility:public <> () returnType:.fis. [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name: modality:FINAL visibility:local superTypes:[.Fn]' FUN name:run visibility:public modality:OPEN <> ($this:.fis., s:kotlin.String, i:kotlin.Int, t:kotlin.Int) returnType:kotlin.String overridden: @@ -116,18 +116,18 @@ FILE fqName: fileName:/partialSam.kt CONST String type=kotlin.String value="" 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 .Fn + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Fn $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 .Fn + public open fun hashCode (): kotlin.Int declared in .Fn $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 .Fn + public open fun toString (): kotlin.String declared in .Fn $this: VALUE_PARAMETER name: type:kotlin.Any - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .fis.' type=.fis. origin=OBJECT_LITERAL + CONSTRUCTOR_CALL 'public constructor () declared in .fis.' type=.fis. origin=OBJECT_LITERAL FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:.Fn correspondingProperty: PROPERTY name:fis visibility:public modality:FINAL [val] BLOCK_BODY diff --git a/compiler/testData/ir/irText/expressions/funInterface/partialSam.ir.txt b/compiler/testData/ir/irText/expressions/funInterface/partialSam.ir.txt index 1c1f00a3f12..bb047108649 100644 --- a/compiler/testData/ir/irText/expressions/funInterface/partialSam.ir.txt +++ b/compiler/testData/ir/irText/expressions/funInterface/partialSam.ir.txt @@ -10,7 +10,7 @@ FILE fqName: fileName:/partialSam.kt VALUE_PARAMETER name:t index:2 type:T of .Fn 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -25,7 +25,7 @@ FILE fqName: fileName:/partialSam.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.J CONSTRUCTOR visibility:public <> () returnType:.J [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:J modality:FINAL visibility:public superTypes:[kotlin.Any]' FUN name:runConversion visibility:public modality:FINAL <> ($this:.J, f1:.Fn, f2:.Fn) returnType:kotlin.Int $this: VALUE_PARAMETER name: type:.J @@ -44,7 +44,7 @@ FILE fqName: fileName:/partialSam.kt t: CONST Int type=kotlin.Int value=239 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -63,7 +63,7 @@ FILE fqName: fileName:/partialSam.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.fsi. CONSTRUCTOR visibility:public <> () returnType:.fsi. [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name: modality:FINAL visibility:local superTypes:[.Fn]' FUN name:run visibility:public modality:OPEN <> ($this:.fsi., s:kotlin.String, i:kotlin.Int, t:kotlin.String) returnType:kotlin.Int overridden: @@ -77,18 +77,18 @@ FILE fqName: fileName:/partialSam.kt CONST Int type=kotlin.Int value=1 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 .Fn + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Fn $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 .Fn + public open fun hashCode (): kotlin.Int declared in .Fn $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 .Fn + public open fun toString (): kotlin.String declared in .Fn $this: VALUE_PARAMETER name: type:kotlin.Any - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .fsi.' type=.fsi. origin=OBJECT_LITERAL + CONSTRUCTOR_CALL 'public constructor () declared in .fsi.' type=.fsi. origin=OBJECT_LITERAL FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:.Fn correspondingProperty: PROPERTY name:fsi visibility:public modality:FINAL [val] BLOCK_BODY @@ -102,7 +102,7 @@ FILE fqName: fileName:/partialSam.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.fis. CONSTRUCTOR visibility:public <> () returnType:.fis. [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name: modality:FINAL visibility:local superTypes:[.Fn]' FUN name:run visibility:public modality:OPEN <> ($this:.fis., s:kotlin.String, i:kotlin.Int, t:kotlin.Int) returnType:kotlin.String overridden: @@ -116,18 +116,18 @@ FILE fqName: fileName:/partialSam.kt CONST String type=kotlin.String value="" 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 .Fn + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Fn $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 .Fn + public open fun hashCode (): kotlin.Int declared in .Fn $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 .Fn + public open fun toString (): kotlin.String declared in .Fn $this: VALUE_PARAMETER name: type:kotlin.Any - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .fis.' type=.fis. origin=OBJECT_LITERAL + CONSTRUCTOR_CALL 'public constructor () declared in .fis.' type=.fis. origin=OBJECT_LITERAL FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:.Fn correspondingProperty: PROPERTY name:fis visibility:public modality:FINAL [val] BLOCK_BODY diff --git a/compiler/testData/ir/irText/expressions/funInterface/samConversionInVarargs.fir.ir.txt b/compiler/testData/ir/irText/expressions/funInterface/samConversionInVarargs.fir.ir.txt index 632dab3c1e6..79bdac14294 100644 --- a/compiler/testData/ir/irText/expressions/funInterface/samConversionInVarargs.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/funInterface/samConversionInVarargs.fir.ir.txt @@ -6,7 +6,7 @@ FILE fqName: fileName:/samConversionInVarargs.kt VALUE_PARAMETER name:i index:0 type:kotlin.Int 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/expressions/funInterface/samConversionInVarargs.ir.txt b/compiler/testData/ir/irText/expressions/funInterface/samConversionInVarargs.ir.txt index 9cee19349ad..8973ab1565e 100644 --- a/compiler/testData/ir/irText/expressions/funInterface/samConversionInVarargs.ir.txt +++ b/compiler/testData/ir/irText/expressions/funInterface/samConversionInVarargs.ir.txt @@ -6,7 +6,7 @@ FILE fqName: fileName:/samConversionInVarargs.kt VALUE_PARAMETER name:i index:0 type:kotlin.Int 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/expressions/funInterface/samConversionInVarargsMixed.fir.ir.txt b/compiler/testData/ir/irText/expressions/funInterface/samConversionInVarargsMixed.fir.ir.txt index 8c9e4438ad6..612d7d0b2d0 100644 --- a/compiler/testData/ir/irText/expressions/funInterface/samConversionInVarargsMixed.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/funInterface/samConversionInVarargsMixed.fir.ir.txt @@ -5,7 +5,7 @@ FILE fqName: fileName:/samConversionInVarargsMixed.kt $this: VALUE_PARAMETER name: type:.MyRunnable 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/expressions/funInterface/samConversionInVarargsMixed.ir.txt b/compiler/testData/ir/irText/expressions/funInterface/samConversionInVarargsMixed.ir.txt index 7fef096d089..659a769ba5b 100644 --- a/compiler/testData/ir/irText/expressions/funInterface/samConversionInVarargsMixed.ir.txt +++ b/compiler/testData/ir/irText/expressions/funInterface/samConversionInVarargsMixed.ir.txt @@ -5,7 +5,7 @@ FILE fqName: fileName:/samConversionInVarargsMixed.kt $this: VALUE_PARAMETER name: type:.MyRunnable 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/expressions/funInterface/samConversionOnCallableReference.fir.ir.txt b/compiler/testData/ir/irText/expressions/funInterface/samConversionOnCallableReference.fir.ir.txt index 1a2d9efe7a6..2b20f9c1531 100644 --- a/compiler/testData/ir/irText/expressions/funInterface/samConversionOnCallableReference.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/funInterface/samConversionOnCallableReference.fir.ir.txt @@ -5,7 +5,7 @@ FILE fqName: fileName:/samConversionOnCallableReference.kt $this: VALUE_PARAMETER name: type:.KRunnable 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/expressions/funInterface/samConversionOnCallableReference.ir.txt b/compiler/testData/ir/irText/expressions/funInterface/samConversionOnCallableReference.ir.txt index 342cfd4b50a..6c9f8626a12 100644 --- a/compiler/testData/ir/irText/expressions/funInterface/samConversionOnCallableReference.ir.txt +++ b/compiler/testData/ir/irText/expressions/funInterface/samConversionOnCallableReference.ir.txt @@ -5,7 +5,7 @@ FILE fqName: fileName:/samConversionOnCallableReference.kt $this: VALUE_PARAMETER name: type:.KRunnable 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/expressions/funInterface/samConversionsWithSmartCasts.fir.ir.txt b/compiler/testData/ir/irText/expressions/funInterface/samConversionsWithSmartCasts.fir.ir.txt index 1bfbbd848e9..25d6bb1249e 100644 --- a/compiler/testData/ir/irText/expressions/funInterface/samConversionsWithSmartCasts.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/funInterface/samConversionsWithSmartCasts.fir.ir.txt @@ -5,7 +5,7 @@ FILE fqName: fileName:/samConversionsWithSmartCasts.kt $this: VALUE_PARAMETER name: type:.KRunnable 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -146,7 +146,7 @@ FILE fqName: fileName:/samConversionsWithSmartCasts.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Unrelated 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/expressions/funInterface/samConversionsWithSmartCasts.ir.txt b/compiler/testData/ir/irText/expressions/funInterface/samConversionsWithSmartCasts.ir.txt index 54a9e55be30..67d646c021a 100644 --- a/compiler/testData/ir/irText/expressions/funInterface/samConversionsWithSmartCasts.ir.txt +++ b/compiler/testData/ir/irText/expressions/funInterface/samConversionsWithSmartCasts.ir.txt @@ -5,7 +5,7 @@ FILE fqName: fileName:/samConversionsWithSmartCasts.kt $this: VALUE_PARAMETER name: type:.KRunnable 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -148,7 +148,7 @@ FILE fqName: fileName:/samConversionsWithSmartCasts.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Unrelated 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/expressions/funInterfaceConstructorReference.fir.ir.txt b/compiler/testData/ir/irText/expressions/funInterfaceConstructorReference.fir.ir.txt index f3a28a790a6..6904b0e25b7 100644 --- a/compiler/testData/ir/irText/expressions/funInterfaceConstructorReference.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/funInterfaceConstructorReference.fir.ir.txt @@ -8,7 +8,7 @@ FILE fqName: fileName:/funInterfaceConstructorReference.kt $this: VALUE_PARAMETER name: type:.KRunnable 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -26,7 +26,7 @@ FILE fqName: fileName:/funInterfaceConstructorReference.kt $this: VALUE_PARAMETER name: type:.KSupplier.KSupplier> 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -45,7 +45,7 @@ FILE fqName: fileName:/funInterfaceConstructorReference.kt VALUE_PARAMETER name:x index:0 type:T of .KConsumer 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/expressions/funInterfaceConstructorReference.ir.txt b/compiler/testData/ir/irText/expressions/funInterfaceConstructorReference.ir.txt index 8ac84e96b09..1121a79d1d4 100644 --- a/compiler/testData/ir/irText/expressions/funInterfaceConstructorReference.ir.txt +++ b/compiler/testData/ir/irText/expressions/funInterfaceConstructorReference.ir.txt @@ -5,7 +5,7 @@ FILE fqName: fileName:/funInterfaceConstructorReference.kt $this: VALUE_PARAMETER name: type:.KRunnable 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -24,7 +24,7 @@ FILE fqName: fileName:/funInterfaceConstructorReference.kt $this: VALUE_PARAMETER name: type:.KSupplier.KSupplier> 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -44,7 +44,7 @@ FILE fqName: fileName:/funInterfaceConstructorReference.kt VALUE_PARAMETER name:x index:0 type:T of .KConsumer 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/expressions/genericConstructorCallWithTypeArguments.fir.ir.txt b/compiler/testData/ir/irText/expressions/genericConstructorCallWithTypeArguments.fir.ir.txt index 117bb069259..55a99918de0 100644 --- a/compiler/testData/ir/irText/expressions/genericConstructorCallWithTypeArguments.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/genericConstructorCallWithTypeArguments.fir.ir.txt @@ -2,7 +2,7 @@ FILE fqName: fileName:/genericConstructorCallWithTypeArguments.kt FUN name:testSimple visibility:public modality:FINAL <> () returnType:.Box BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun testSimple (): .Box declared in ' - CONSTRUCTOR_CALL 'public constructor (value: T of .Box) [primary] declared in .Box' type=.Box origin=null + CONSTRUCTOR_CALL 'public constructor (value: T of .Box) declared in .Box' type=.Box origin=null : kotlin.Long value: CONST Long type=kotlin.Long value=6 FUN name:testArray visibility:public modality:FINAL (n:kotlin.Int, block:kotlin.Function0.testArray>) returnType:kotlin.Array.testArray> [inline] @@ -10,7 +10,7 @@ FILE fqName: fileName:/genericConstructorCallWithTypeArguments.kt VALUE_PARAMETER name:n index:0 type:kotlin.Int VALUE_PARAMETER name:block index:1 type:kotlin.Function0.testArray> [crossinline] BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun testArray (n: kotlin.Int, block: kotlin.Function0.testArray>): kotlin.Array.testArray> [inline] declared in ' + RETURN type=kotlin.Nothing from='public final fun testArray (n: kotlin.Int, block: kotlin.Function0.testArray>): kotlin.Array.testArray> declared in ' CONSTRUCTOR_CALL 'public constructor (size: kotlin.Int, init: kotlin.Function1) declared in kotlin.Array' type=kotlin.Array.testArray> origin=null : T of .testArray size: GET_VAR 'n: kotlin.Int declared in .testArray' type=kotlin.Int origin=null @@ -19,15 +19,15 @@ FILE fqName: fileName:/genericConstructorCallWithTypeArguments.kt VALUE_PARAMETER name:it index:0 type:kotlin.Int BLOCK_BODY RETURN type=kotlin.Nothing from='local final fun (it: kotlin.Int): T of .testArray declared in .testArray' - CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=T of .testArray origin=INVOKE - $this: GET_VAR 'block: kotlin.Function0.testArray> [crossinline] declared in .testArray' type=kotlin.Function0.testArray> origin=VARIABLE_AS_FUNCTION + CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=T of .testArray origin=INVOKE + $this: GET_VAR 'block: kotlin.Function0.testArray> declared in .testArray' type=kotlin.Function0.testArray> origin=VARIABLE_AS_FUNCTION CLASS CLASS name:Box modality:FINAL visibility:public superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Box.Box> TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false CONSTRUCTOR visibility:public <> (value:T of .Box) returnType:.Box.Box> [primary] VALUE_PARAMETER name:value index:0 type:T of .Box BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Box modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:value visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:value type:T of .Box visibility:private [final] @@ -42,7 +42,7 @@ FILE fqName: fileName:/genericConstructorCallWithTypeArguments.kt receiver: GET_VAR ': .Box.Box> declared in .Box.' type=.Box.Box> 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/expressions/genericConstructorCallWithTypeArguments.ir.txt b/compiler/testData/ir/irText/expressions/genericConstructorCallWithTypeArguments.ir.txt index 3159a9ed171..a0f82355476 100644 --- a/compiler/testData/ir/irText/expressions/genericConstructorCallWithTypeArguments.ir.txt +++ b/compiler/testData/ir/irText/expressions/genericConstructorCallWithTypeArguments.ir.txt @@ -2,9 +2,9 @@ FILE fqName: fileName:/genericConstructorCallWithTypeArguments.kt FUN name:testSimple visibility:public modality:FINAL <> () returnType:.Box BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun testSimple (): .Box declared in ' - CONSTRUCTOR_CALL 'public constructor (value: T of .Box) [primary] declared in .Box' type=.Box origin=null + CONSTRUCTOR_CALL 'public constructor (value: T of .Box) declared in .Box' type=.Box origin=null : kotlin.Long - value: CALL 'public final fun times (other: kotlin.Int): kotlin.Long [operator] declared in kotlin.Long' type=kotlin.Long origin=MUL + value: CALL 'public final fun times (other: kotlin.Int): kotlin.Long declared in kotlin.Long' type=kotlin.Long origin=MUL $this: CONST Long type=kotlin.Long value=2 other: CONST Int type=kotlin.Int value=3 FUN name:testArray visibility:public modality:FINAL (n:kotlin.Int, block:kotlin.Function0.testArray>) returnType:kotlin.Array.testArray> [inline] @@ -12,7 +12,7 @@ FILE fqName: fileName:/genericConstructorCallWithTypeArguments.kt VALUE_PARAMETER name:n index:0 type:kotlin.Int VALUE_PARAMETER name:block index:1 type:kotlin.Function0.testArray> [crossinline] BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun testArray (n: kotlin.Int, block: kotlin.Function0.testArray>): kotlin.Array.testArray> [inline] declared in ' + RETURN type=kotlin.Nothing from='public final fun testArray (n: kotlin.Int, block: kotlin.Function0.testArray>): kotlin.Array.testArray> declared in ' CONSTRUCTOR_CALL 'public constructor (size: kotlin.Int, init: kotlin.Function1) declared in kotlin.Array' type=kotlin.Array.testArray> origin=null : T of .testArray size: GET_VAR 'n: kotlin.Int declared in .testArray' type=kotlin.Int origin=null @@ -21,15 +21,15 @@ FILE fqName: fileName:/genericConstructorCallWithTypeArguments.kt VALUE_PARAMETER name:it index:0 type:kotlin.Int BLOCK_BODY RETURN type=kotlin.Nothing from='local final fun (it: kotlin.Int): T of .testArray declared in .testArray' - CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=T of .testArray origin=INVOKE - $this: GET_VAR 'block: kotlin.Function0.testArray> [crossinline] declared in .testArray' type=kotlin.Function0.testArray> origin=VARIABLE_AS_FUNCTION + CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=T of .testArray origin=INVOKE + $this: GET_VAR 'block: kotlin.Function0.testArray> declared in .testArray' type=kotlin.Function0.testArray> origin=VARIABLE_AS_FUNCTION CLASS CLASS name:Box modality:FINAL visibility:public superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Box.Box> TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false CONSTRUCTOR visibility:public <> (value:T of .Box) returnType:.Box.Box> [primary] VALUE_PARAMETER name:value index:0 type:T of .Box BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Box modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:value visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:value type:T of .Box visibility:private [final] @@ -44,7 +44,7 @@ FILE fqName: fileName:/genericConstructorCallWithTypeArguments.kt receiver: GET_VAR ': .Box.Box> declared in .Box.' type=.Box.Box> 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/expressions/genericConstructorCallWithTypeArguments.kt b/compiler/testData/ir/irText/expressions/genericConstructorCallWithTypeArguments.kt index 4112b7a03c1..b3b9512e5db 100644 --- a/compiler/testData/ir/irText/expressions/genericConstructorCallWithTypeArguments.kt +++ b/compiler/testData/ir/irText/expressions/genericConstructorCallWithTypeArguments.kt @@ -1,6 +1,3 @@ -// IGNORE_BACKEND_K1: JS_IR -// IGNORE_BACKEND_K1: JS_IR_ES6 - // MUTE_SIGNATURE_COMPARISON_K2: JVM_IR // ^ KT-57429 diff --git a/compiler/testData/ir/irText/expressions/genericPropertyRef.fir.ir.txt b/compiler/testData/ir/irText/expressions/genericPropertyRef.fir.ir.txt index 1a4520ff01d..e6399e7af3e 100644 --- a/compiler/testData/ir/irText/expressions/genericPropertyRef.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/genericPropertyRef.fir.ir.txt @@ -11,7 +11,7 @@ FILE fqName: fileName:/genericPropertyRef.kt EXPRESSION_BODY CONST Null type=kotlin.Nothing? value=null BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Value modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:value visibility:public modality:FINAL [var] FIELD PROPERTY_BACKING_FIELD name:value type:T of .Value visibility:private @@ -53,7 +53,7 @@ FILE fqName: fileName:/genericPropertyRef.kt value: GET_VAR ': kotlin.String? declared in .Value.' type=kotlin.String? 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -67,41 +67,41 @@ FILE fqName: fileName:/genericPropertyRef.kt PROPERTY name:additionalText visibility:public modality:FINAL [delegated,val] FIELD PROPERTY_DELEGATE name:additionalText$delegate type:.DVal visibility:private [final,static] EXPRESSION_BODY - CONSTRUCTOR_CALL 'public constructor (kmember: kotlin.Any) [primary] declared in .DVal' type=.DVal origin=null - kmember: PROPERTY_REFERENCE 'public final text: kotlin.String? [var]' field=null getter='public final fun (): kotlin.String? declared in .Value' setter='public final fun (: kotlin.String?): kotlin.Unit declared in .Value' type=kotlin.reflect.KMutableProperty1<.Value.>, kotlin.String?> origin=null + CONSTRUCTOR_CALL 'public constructor (kmember: kotlin.Any) declared in .DVal' type=.DVal origin=null + kmember: PROPERTY_REFERENCE 'public final text: kotlin.String?' field=null getter='public final fun (): kotlin.String? declared in .Value' setter='public final fun (: kotlin.String?): kotlin.Unit declared in .Value' type=kotlin.reflect.KMutableProperty1<.Value.>, kotlin.String?> origin=null FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:public modality:FINAL ($receiver:.Value.>) returnType:kotlin.Int correspondingProperty: PROPERTY name:additionalText visibility:public modality:FINAL [delegated,val] TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false $receiver: VALUE_PARAMETER name: type:.Value.> BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun (): kotlin.Int declared in ' - CALL 'public final fun getValue (t: kotlin.Any?, p: kotlin.Any): kotlin.Int [operator] declared in .DVal' type=kotlin.Int origin=null + CALL 'public final fun getValue (t: kotlin.Any?, p: kotlin.Any): kotlin.Int declared in .DVal' type=kotlin.Int origin=null $this: GET_FIELD 'FIELD PROPERTY_DELEGATE name:additionalText$delegate type:.DVal visibility:private [final,static]' type=.DVal origin=null t: GET_VAR ': .Value.> declared in .' type=.Value.> origin=null - p: PROPERTY_REFERENCE 'public final additionalText: kotlin.Int [delegated,val]' field=null getter='public final fun (): kotlin.Int declared in ' setter=null type=kotlin.reflect.KProperty1<.Value.>, kotlin.Int> origin=PROPERTY_REFERENCE_FOR_DELEGATE + p: PROPERTY_REFERENCE 'public final additionalText: kotlin.Int' field=null getter='public final fun (): kotlin.Int declared in ' setter=null type=kotlin.reflect.KProperty1<.Value.>, kotlin.Int> origin=PROPERTY_REFERENCE_FOR_DELEGATE <1>: T of . PROPERTY name:additionalValue visibility:public modality:FINAL [delegated,val] FIELD PROPERTY_DELEGATE name:additionalValue$delegate type:.DVal visibility:private [final,static] EXPRESSION_BODY - CONSTRUCTOR_CALL 'public constructor (kmember: kotlin.Any) [primary] declared in .DVal' type=.DVal origin=null - kmember: PROPERTY_REFERENCE 'public final value: T of .Value [var]' field=null getter='public final fun (): T of .Value declared in .Value' setter='public final fun (: T of .Value): kotlin.Unit declared in .Value' type=kotlin.reflect.KMutableProperty1<.Value.>, T of .> origin=null + CONSTRUCTOR_CALL 'public constructor (kmember: kotlin.Any) declared in .DVal' type=.DVal origin=null + kmember: PROPERTY_REFERENCE 'public final value: T of .Value' field=null getter='public final fun (): T of .Value declared in .Value' setter='public final fun (: T of .Value): kotlin.Unit declared in .Value' type=kotlin.reflect.KMutableProperty1<.Value.>, T of .> origin=null FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:public modality:FINAL ($receiver:.Value.>) returnType:kotlin.Int correspondingProperty: PROPERTY name:additionalValue visibility:public modality:FINAL [delegated,val] TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false $receiver: VALUE_PARAMETER name: type:.Value.> BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun (): kotlin.Int declared in ' - CALL 'public final fun getValue (t: kotlin.Any?, p: kotlin.Any): kotlin.Int [operator] declared in .DVal' type=kotlin.Int origin=null + CALL 'public final fun getValue (t: kotlin.Any?, p: kotlin.Any): kotlin.Int declared in .DVal' type=kotlin.Int origin=null $this: GET_FIELD 'FIELD PROPERTY_DELEGATE name:additionalValue$delegate type:.DVal visibility:private [final,static]' type=.DVal origin=null t: GET_VAR ': .Value.> declared in .' type=.Value.> origin=null - p: PROPERTY_REFERENCE 'public final additionalValue: kotlin.Int [delegated,val]' field=null getter='public final fun (): kotlin.Int declared in ' setter=null type=kotlin.reflect.KProperty1<.Value.>, kotlin.Int> origin=PROPERTY_REFERENCE_FOR_DELEGATE + p: PROPERTY_REFERENCE 'public final additionalValue: kotlin.Int' field=null getter='public final fun (): kotlin.Int declared in ' setter=null type=kotlin.reflect.KProperty1<.Value.>, kotlin.Int> origin=PROPERTY_REFERENCE_FOR_DELEGATE <1>: T of . CLASS CLASS name:DVal modality:FINAL visibility:public superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.DVal CONSTRUCTOR visibility:public <> (kmember:kotlin.Any) returnType:.DVal [primary] VALUE_PARAMETER name:kmember index:0 type:kotlin.Any BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:DVal modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:kmember visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:kmember type:kotlin.Any visibility:private [final] @@ -119,11 +119,11 @@ FILE fqName: fileName:/genericPropertyRef.kt VALUE_PARAMETER name:t index:0 type:kotlin.Any? VALUE_PARAMETER name:p index:1 type:kotlin.Any BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun getValue (t: kotlin.Any?, p: kotlin.Any): kotlin.Int [operator] declared in .DVal' + RETURN type=kotlin.Nothing from='public final fun getValue (t: kotlin.Any?, p: kotlin.Any): kotlin.Int declared in .DVal' CONST Int type=kotlin.Int value=42 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -185,7 +185,7 @@ FILE fqName: fileName:/genericPropertyRef.kt PROPERTY name:barRef visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:barRef type:kotlin.reflect.KMutableProperty1 visibility:private [final,static] EXPRESSION_BODY - PROPERTY_REFERENCE 'public final bar: T of . [var]' field=null getter='public final fun (): T of . declared in ' setter='public final fun (value: T of .): kotlin.Unit declared in ' type=kotlin.reflect.KMutableProperty1 origin=null + PROPERTY_REFERENCE 'public final bar: T of .' field=null getter='public final fun (): T of . declared in ' setter='public final fun (value: T of .): kotlin.Unit declared in ' type=kotlin.reflect.KMutableProperty1 origin=null <1>: kotlin.String? FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:kotlin.reflect.KMutableProperty1 correspondingProperty: PROPERTY name:barRef visibility:public modality:FINAL [val] diff --git a/compiler/testData/ir/irText/expressions/genericPropertyRef.ir.txt b/compiler/testData/ir/irText/expressions/genericPropertyRef.ir.txt index b761d938202..08224fe3e34 100644 --- a/compiler/testData/ir/irText/expressions/genericPropertyRef.ir.txt +++ b/compiler/testData/ir/irText/expressions/genericPropertyRef.ir.txt @@ -11,7 +11,7 @@ FILE fqName: fileName:/genericPropertyRef.kt EXPRESSION_BODY CONST Null type=kotlin.Nothing? value=null BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Value modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:value visibility:public modality:FINAL [var] FIELD PROPERTY_BACKING_FIELD name:value type:T of .Value visibility:private @@ -53,7 +53,7 @@ FILE fqName: fileName:/genericPropertyRef.kt value: GET_VAR ': kotlin.String? declared in .Value.' type=kotlin.String? 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -67,41 +67,41 @@ FILE fqName: fileName:/genericPropertyRef.kt PROPERTY name:additionalText visibility:public modality:FINAL [delegated,val] FIELD PROPERTY_DELEGATE name:additionalText$delegate type:.DVal visibility:private [final,static] EXPRESSION_BODY - CONSTRUCTOR_CALL 'public constructor (kmember: kotlin.Any) [primary] declared in .DVal' type=.DVal origin=null - kmember: PROPERTY_REFERENCE 'public final text: kotlin.String? [var]' field=null getter='public final fun (): kotlin.String? declared in .Value' setter='public final fun (: kotlin.String?): kotlin.Unit declared in .Value' type=kotlin.reflect.KMutableProperty1<.Value, kotlin.String?> origin=null + CONSTRUCTOR_CALL 'public constructor (kmember: kotlin.Any) declared in .DVal' type=.DVal origin=null + kmember: PROPERTY_REFERENCE 'public final text: kotlin.String?' field=null getter='public final fun (): kotlin.String? declared in .Value' setter='public final fun (: kotlin.String?): kotlin.Unit declared in .Value' type=kotlin.reflect.KMutableProperty1<.Value, kotlin.String?> origin=null FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:public modality:FINAL ($receiver:.Value.>) returnType:kotlin.Int correspondingProperty: PROPERTY name:additionalText visibility:public modality:FINAL [delegated,val] TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false $receiver: VALUE_PARAMETER name: type:.Value.> BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun (): kotlin.Int declared in ' - CALL 'public final fun getValue (t: kotlin.Any?, p: kotlin.Any): kotlin.Int [operator] declared in .DVal' type=kotlin.Int origin=null + CALL 'public final fun getValue (t: kotlin.Any?, p: kotlin.Any): kotlin.Int declared in .DVal' type=kotlin.Int origin=null $this: GET_FIELD 'FIELD PROPERTY_DELEGATE name:additionalText$delegate type:.DVal visibility:private [final,static]' type=.DVal origin=null t: GET_VAR ': .Value.> declared in .' type=.Value.> origin=null - p: PROPERTY_REFERENCE 'public final additionalText: kotlin.Int [delegated,val]' field=null getter='public final fun (): kotlin.Int declared in ' setter=null type=kotlin.reflect.KProperty1<.Value.>, kotlin.Int> origin=PROPERTY_REFERENCE_FOR_DELEGATE + p: PROPERTY_REFERENCE 'public final additionalText: kotlin.Int' field=null getter='public final fun (): kotlin.Int declared in ' setter=null type=kotlin.reflect.KProperty1<.Value.>, kotlin.Int> origin=PROPERTY_REFERENCE_FOR_DELEGATE <1>: T of . PROPERTY name:additionalValue visibility:public modality:FINAL [delegated,val] FIELD PROPERTY_DELEGATE name:additionalValue$delegate type:.DVal visibility:private [final,static] EXPRESSION_BODY - CONSTRUCTOR_CALL 'public constructor (kmember: kotlin.Any) [primary] declared in .DVal' type=.DVal origin=null - kmember: PROPERTY_REFERENCE 'public final value: T of .Value [var]' field=null getter='public final fun (): T of .Value declared in .Value' setter='public final fun (: T of .Value): kotlin.Unit declared in .Value' type=kotlin.reflect.KMutableProperty1<.Value, kotlin.Any?> origin=null + CONSTRUCTOR_CALL 'public constructor (kmember: kotlin.Any) declared in .DVal' type=.DVal origin=null + kmember: PROPERTY_REFERENCE 'public final value: T of .Value' field=null getter='public final fun (): T of .Value declared in .Value' setter='public final fun (: T of .Value): kotlin.Unit declared in .Value' type=kotlin.reflect.KMutableProperty1<.Value, kotlin.Any?> origin=null FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:public modality:FINAL ($receiver:.Value.>) returnType:kotlin.Int correspondingProperty: PROPERTY name:additionalValue visibility:public modality:FINAL [delegated,val] TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false $receiver: VALUE_PARAMETER name: type:.Value.> BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun (): kotlin.Int declared in ' - CALL 'public final fun getValue (t: kotlin.Any?, p: kotlin.Any): kotlin.Int [operator] declared in .DVal' type=kotlin.Int origin=null + CALL 'public final fun getValue (t: kotlin.Any?, p: kotlin.Any): kotlin.Int declared in .DVal' type=kotlin.Int origin=null $this: GET_FIELD 'FIELD PROPERTY_DELEGATE name:additionalValue$delegate type:.DVal visibility:private [final,static]' type=.DVal origin=null t: GET_VAR ': .Value.> declared in .' type=.Value.> origin=null - p: PROPERTY_REFERENCE 'public final additionalValue: kotlin.Int [delegated,val]' field=null getter='public final fun (): kotlin.Int declared in ' setter=null type=kotlin.reflect.KProperty1<.Value.>, kotlin.Int> origin=PROPERTY_REFERENCE_FOR_DELEGATE + p: PROPERTY_REFERENCE 'public final additionalValue: kotlin.Int' field=null getter='public final fun (): kotlin.Int declared in ' setter=null type=kotlin.reflect.KProperty1<.Value.>, kotlin.Int> origin=PROPERTY_REFERENCE_FOR_DELEGATE <1>: T of . CLASS CLASS name:DVal modality:FINAL visibility:public superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.DVal CONSTRUCTOR visibility:public <> (kmember:kotlin.Any) returnType:.DVal [primary] VALUE_PARAMETER name:kmember index:0 type:kotlin.Any BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:DVal modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:kmember visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:kmember type:kotlin.Any visibility:private [final] @@ -119,11 +119,11 @@ FILE fqName: fileName:/genericPropertyRef.kt VALUE_PARAMETER name:t index:0 type:kotlin.Any? VALUE_PARAMETER name:p index:1 type:kotlin.Any BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun getValue (t: kotlin.Any?, p: kotlin.Any): kotlin.Int [operator] declared in .DVal' + RETURN type=kotlin.Nothing from='public final fun getValue (t: kotlin.Any?, p: kotlin.Any): kotlin.Int declared in .DVal' CONST Int type=kotlin.Int value=42 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -185,7 +185,7 @@ FILE fqName: fileName:/genericPropertyRef.kt PROPERTY name:barRef visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:barRef type:kotlin.reflect.KMutableProperty1 visibility:private [final,static] EXPRESSION_BODY - PROPERTY_REFERENCE 'public final bar: T of . [var]' field=null getter='public final fun (): T of . declared in ' setter='public final fun (value: T of .): kotlin.Unit declared in ' type=kotlin.reflect.KMutableProperty1 origin=null + PROPERTY_REFERENCE 'public final bar: T of .' field=null getter='public final fun (): T of . declared in ' setter='public final fun (value: T of .): kotlin.Unit declared in ' type=kotlin.reflect.KMutableProperty1 origin=null <1>: kotlin.String? FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:kotlin.reflect.KMutableProperty1 correspondingProperty: PROPERTY name:barRef visibility:public modality:FINAL [val] diff --git a/compiler/testData/ir/irText/expressions/identity.ir.txt b/compiler/testData/ir/irText/expressions/identity.ir.txt index dd348d4e0a0..cd09063bd04 100644 --- a/compiler/testData/ir/irText/expressions/identity.ir.txt +++ b/compiler/testData/ir/irText/expressions/identity.ir.txt @@ -12,7 +12,7 @@ FILE fqName: fileName:/identity.kt VALUE_PARAMETER name:b index:1 type:kotlin.Int BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test2 (a: kotlin.Int, b: kotlin.Int): kotlin.Boolean declared in ' - CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQEQ + CALL 'public final fun not (): kotlin.Boolean declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQEQ $this: CALL 'public final fun EQEQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EXCLEQEQ arg0: GET_VAR 'a: kotlin.Int declared in .test2' type=kotlin.Int origin=null arg1: GET_VAR 'b: kotlin.Int declared in .test2' type=kotlin.Int origin=null diff --git a/compiler/testData/ir/irText/expressions/implicitCastInReturnFromConstructor.fir.ir.txt b/compiler/testData/ir/irText/expressions/implicitCastInReturnFromConstructor.fir.ir.txt index a72a9443df0..5ed03f96061 100644 --- a/compiler/testData/ir/irText/expressions/implicitCastInReturnFromConstructor.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/implicitCastInReturnFromConstructor.fir.ir.txt @@ -3,12 +3,12 @@ FILE fqName: fileName:/implicitCastInReturnFromConstructor.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.C CONSTRUCTOR visibility:public <> () returnType:.C [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C modality:FINAL visibility:public superTypes:[kotlin.Any]' CONSTRUCTOR visibility:public <> (x:kotlin.Any?) returnType:.C VALUE_PARAMETER name:x index:0 type:kotlin.Any? BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .C' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .C' WHEN type=kotlin.Unit origin=IF BRANCH if: TYPE_OP type=kotlin.Boolean origin=INSTANCEOF typeOperand=kotlin.Unit @@ -18,7 +18,7 @@ FILE fqName: fileName:/implicitCastInReturnFromConstructor.kt GET_VAR 'x: kotlin.Any? declared in .C.' type=kotlin.Any? 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/expressions/implicitCastInReturnFromConstructor.ir.txt b/compiler/testData/ir/irText/expressions/implicitCastInReturnFromConstructor.ir.txt index 654ecec53c8..7da235acb0b 100644 --- a/compiler/testData/ir/irText/expressions/implicitCastInReturnFromConstructor.ir.txt +++ b/compiler/testData/ir/irText/expressions/implicitCastInReturnFromConstructor.ir.txt @@ -3,12 +3,12 @@ FILE fqName: fileName:/implicitCastInReturnFromConstructor.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.C CONSTRUCTOR visibility:public <> () returnType:.C [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C modality:FINAL visibility:public superTypes:[kotlin.Any]' CONSTRUCTOR visibility:public <> (x:kotlin.Any?) returnType:.C VALUE_PARAMETER name:x index:0 type:kotlin.Any? BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .C' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .C' WHEN type=kotlin.Unit origin=IF BRANCH if: TYPE_OP type=kotlin.Boolean origin=INSTANCEOF typeOperand=kotlin.Unit @@ -18,7 +18,7 @@ FILE fqName: fileName:/implicitCastInReturnFromConstructor.kt GET_VAR 'x: kotlin.Any? declared in .C.' type=kotlin.Any? 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/expressions/implicitCastToNonNull.ir.txt b/compiler/testData/ir/irText/expressions/implicitCastToNonNull.ir.txt index 234b6a65e2d..3f3f0270a12 100644 --- a/compiler/testData/ir/irText/expressions/implicitCastToNonNull.ir.txt +++ b/compiler/testData/ir/irText/expressions/implicitCastToNonNull.ir.txt @@ -32,7 +32,7 @@ FILE fqName: fileName:/implicitCastToNonNull.kt TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.CharSequence?] reified:true VALUE_PARAMETER name:x index:0 type:kotlin.Any BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun test3 (x: kotlin.Any): kotlin.Int [inline] declared in ' + RETURN type=kotlin.Nothing from='public final fun test3 (x: kotlin.Any): kotlin.Int declared in ' WHEN type=kotlin.Int origin=IF BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=T of .test3 @@ -47,7 +47,7 @@ FILE fqName: fileName:/implicitCastToNonNull.kt TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.CharSequence] reified:true VALUE_PARAMETER name:x index:0 type:kotlin.Any? BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun test4 (x: kotlin.Any?): kotlin.Int [inline] declared in ' + RETURN type=kotlin.Nothing from='public final fun test4 (x: kotlin.Any?): kotlin.Int declared in ' WHEN type=kotlin.Int origin=IF BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=T of .test4 @@ -66,10 +66,10 @@ FILE fqName: fileName:/implicitCastToNonNull.kt BLOCK_BODY WHEN type=kotlin.Unit origin=IF BRANCH - if: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ + if: CALL 'public final fun not (): kotlin.Boolean 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_VAR 'x: T of .test5 declared in .test5' type=T of .test5 origin=null arg1: CONST Null type=kotlin.Nothing? value=null - then: CALL 'public abstract fun invoke (p1: P1 of kotlin.Function1): R of kotlin.Function1 [operator] declared in kotlin.Function1' type=kotlin.Unit origin=INVOKE + then: CALL 'public abstract fun invoke (p1: P1 of kotlin.Function1): R of kotlin.Function1 declared in kotlin.Function1' type=kotlin.Unit origin=INVOKE $this: GET_VAR 'fn: kotlin.Function1.test5, kotlin.Unit> declared in .test5' type=kotlin.Function1.test5, kotlin.Unit> origin=VARIABLE_AS_FUNCTION p1: GET_VAR 'x: T of .test5 declared in .test5' type=T of .test5 origin=null diff --git a/compiler/testData/ir/irText/expressions/implicitCastToTypeParameter.fir.ir.txt b/compiler/testData/ir/irText/expressions/implicitCastToTypeParameter.fir.ir.txt index cdc84050a6a..cbaad963ae4 100644 --- a/compiler/testData/ir/irText/expressions/implicitCastToTypeParameter.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/implicitCastToTypeParameter.fir.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/implicitCastToTypeParameter.kt TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any] reified:true $receiver: VALUE_PARAMETER name: type:kotlin.Any BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun test1 (): T of .test1? [inline] declared in ' + RETURN type=kotlin.Nothing from='public final fun test1 (): T of .test1? declared in ' WHEN type=T of .test1? origin=IF BRANCH if: TYPE_OP type=kotlin.Boolean origin=INSTANCEOF typeOperand=T of .test1 @@ -18,7 +18,7 @@ FILE fqName: fileName:/implicitCastToTypeParameter.kt TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -35,7 +35,7 @@ FILE fqName: fileName:/implicitCastToTypeParameter.kt TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any] reified:true $receiver: VALUE_PARAMETER name: type:.Foo.> BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun (): T of .? [inline] declared in ' + RETURN type=kotlin.Nothing from='public final fun (): T of .? declared in ' WHEN type=T of .? origin=IF BRANCH if: TYPE_OP type=kotlin.Boolean origin=INSTANCEOF typeOperand=T of . @@ -50,7 +50,7 @@ FILE fqName: fileName:/implicitCastToTypeParameter.kt TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false CONSTRUCTOR visibility:public <> () returnType:.Bar.Bar> [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Bar modality:FINAL visibility:public superTypes:[kotlin.Any]' FUN name:test visibility:public modality:FINAL <> ($this:.Bar.Bar>, arg:kotlin.Any) returnType:kotlin.Unit $this: VALUE_PARAMETER name: type:.Bar.Bar> @@ -69,7 +69,7 @@ FILE fqName: fileName:/implicitCastToTypeParameter.kt 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/expressions/implicitCastToTypeParameter.ir.txt b/compiler/testData/ir/irText/expressions/implicitCastToTypeParameter.ir.txt index c40d9f72680..15f9699fa1e 100644 --- a/compiler/testData/ir/irText/expressions/implicitCastToTypeParameter.ir.txt +++ b/compiler/testData/ir/irText/expressions/implicitCastToTypeParameter.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/implicitCastToTypeParameter.kt TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any] reified:true $receiver: VALUE_PARAMETER name: type:kotlin.Any BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun test1 (): T of .test1? [inline] declared in ' + RETURN type=kotlin.Nothing from='public final fun test1 (): T of .test1? declared in ' WHEN type=T of .test1? origin=IF BRANCH if: TYPE_OP type=kotlin.Boolean origin=INSTANCEOF typeOperand=T of .test1 @@ -18,7 +18,7 @@ FILE fqName: fileName:/implicitCastToTypeParameter.kt TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -35,7 +35,7 @@ FILE fqName: fileName:/implicitCastToTypeParameter.kt TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any] reified:true $receiver: VALUE_PARAMETER name: type:.Foo.> BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun (): T of .? [inline] declared in ' + RETURN type=kotlin.Nothing from='public final fun (): T of .? declared in ' WHEN type=T of .? origin=IF BRANCH if: TYPE_OP type=kotlin.Boolean origin=INSTANCEOF typeOperand=T of . @@ -50,7 +50,7 @@ FILE fqName: fileName:/implicitCastToTypeParameter.kt TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false CONSTRUCTOR visibility:public <> () returnType:.Bar.Bar> [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Bar modality:FINAL visibility:public superTypes:[kotlin.Any]' FUN name:test visibility:public modality:FINAL <> ($this:.Bar.Bar>, arg:kotlin.Any) returnType:kotlin.Unit $this: VALUE_PARAMETER name: type:.Bar.Bar> @@ -69,7 +69,7 @@ FILE fqName: fileName:/implicitCastToTypeParameter.kt 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/expressions/implicitNotNullInDestructuringAssignment.fir.ir.txt b/compiler/testData/ir/irText/expressions/implicitNotNullInDestructuringAssignment.fir.ir.txt index 9663f05cd8c..70d21a7cd6e 100644 --- a/compiler/testData/ir/irText/expressions/implicitNotNullInDestructuringAssignment.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/implicitNotNullInDestructuringAssignment.fir.ir.txt @@ -2,21 +2,21 @@ FILE fqName: fileName:/implicitNotNullInDestructuringAssignment.kt FUN name:component1 visibility:public modality:FINAL <> ($receiver:.J?) returnType:kotlin.Int [operator] $receiver: VALUE_PARAMETER name: type:.J? BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Int [operator] declared in ' + RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Int declared in ' CONST Int type=kotlin.Int value=1 FUN name:component2 visibility:private modality:FINAL <> ($receiver:.J) returnType:kotlin.Int [operator] $receiver: VALUE_PARAMETER name: type:.J BLOCK_BODY - RETURN type=kotlin.Nothing from='private final fun component2 (): kotlin.Int [operator] declared in ' + RETURN type=kotlin.Nothing from='private final fun component2 (): kotlin.Int declared in ' CONST Int type=kotlin.Int value=2 FUN name:test visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:@[FlexibleNullability] .J? [val] CALL 'public open fun j (): @[FlexibleNullability] .J? declared in .J' type=@[FlexibleNullability] .J? origin=null VAR name:a type:kotlin.Int [val] - CALL 'public final fun component1 (): kotlin.Int [operator] declared in ' type=kotlin.Int origin=COMPONENT_N(index=1) - $receiver: GET_VAR 'val tmp_0: @[FlexibleNullability] .J? [val] declared in .test' type=@[FlexibleNullability] .J? origin=null + CALL 'public final fun component1 (): kotlin.Int declared in ' type=kotlin.Int origin=COMPONENT_N(index=1) + $receiver: GET_VAR 'val tmp_0: @[FlexibleNullability] .J? declared in .test' type=@[FlexibleNullability] .J? origin=null VAR name:b type:kotlin.Int [val] - CALL 'private final fun component2 (): kotlin.Int [operator] declared in ' type=kotlin.Int origin=COMPONENT_N(index=2) + CALL 'private final fun component2 (): kotlin.Int declared in ' type=kotlin.Int origin=COMPONENT_N(index=2) $receiver: TYPE_OP type=.J origin=IMPLICIT_NOTNULL typeOperand=.J - GET_VAR 'val tmp_0: @[FlexibleNullability] .J? [val] declared in .test' type=@[FlexibleNullability] .J? origin=null + GET_VAR 'val tmp_0: @[FlexibleNullability] .J? declared in .test' type=@[FlexibleNullability] .J? origin=null diff --git a/compiler/testData/ir/irText/expressions/implicitNotNullInDestructuringAssignment.ir.txt b/compiler/testData/ir/irText/expressions/implicitNotNullInDestructuringAssignment.ir.txt index f3761d10b8c..a994d7d3341 100644 --- a/compiler/testData/ir/irText/expressions/implicitNotNullInDestructuringAssignment.ir.txt +++ b/compiler/testData/ir/irText/expressions/implicitNotNullInDestructuringAssignment.ir.txt @@ -2,12 +2,12 @@ FILE fqName: fileName:/implicitNotNullInDestructuringAssignment.kt FUN name:component1 visibility:public modality:FINAL <> ($receiver:.J?) returnType:kotlin.Int [operator] $receiver: VALUE_PARAMETER name: type:.J? BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Int [operator] declared in ' + RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Int declared in ' CONST Int type=kotlin.Int value=1 FUN name:component2 visibility:private modality:FINAL <> ($receiver:.J) returnType:kotlin.Int [operator] $receiver: VALUE_PARAMETER name: type:.J BLOCK_BODY - RETURN type=kotlin.Nothing from='private final fun component2 (): kotlin.Int [operator] declared in ' + RETURN type=kotlin.Nothing from='private final fun component2 (): kotlin.Int declared in ' CONST Int type=kotlin.Int value=2 FUN name:test visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY @@ -15,9 +15,9 @@ FILE fqName: fileName:/implicitNotNullInDestructuringAssignment.kt VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:@[FlexibleNullability] .J? [val] CALL 'public open fun j (): @[FlexibleNullability] .J? declared in .J' type=@[FlexibleNullability] .J? origin=null VAR name:a type:kotlin.Int [val] - CALL 'public final fun component1 (): kotlin.Int [operator] declared in ' type=kotlin.Int origin=COMPONENT_N(index=1) - $receiver: GET_VAR 'val tmp_0: @[FlexibleNullability] .J? [val] declared in .test' type=@[FlexibleNullability] .J? origin=null + CALL 'public final fun component1 (): kotlin.Int declared in ' type=kotlin.Int origin=COMPONENT_N(index=1) + $receiver: GET_VAR 'val tmp_0: @[FlexibleNullability] .J? declared in .test' type=@[FlexibleNullability] .J? origin=null VAR name:b type:kotlin.Int [val] - CALL 'private final fun component2 (): kotlin.Int [operator] declared in ' type=kotlin.Int origin=COMPONENT_N(index=2) + CALL 'private final fun component2 (): kotlin.Int declared in ' type=kotlin.Int origin=COMPONENT_N(index=2) $receiver: TYPE_OP type=.J origin=IMPLICIT_NOTNULL typeOperand=.J - GET_VAR 'val tmp_0: @[FlexibleNullability] .J? [val] declared in .test' type=@[FlexibleNullability] .J? origin=null + GET_VAR 'val tmp_0: @[FlexibleNullability] .J? declared in .test' type=@[FlexibleNullability] .J? origin=null diff --git a/compiler/testData/ir/irText/expressions/in.fir.ir.txt b/compiler/testData/ir/irText/expressions/in.fir.ir.txt index 2b0b84f1a3b..7d14c7e39db 100644 --- a/compiler/testData/ir/irText/expressions/in.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/in.fir.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/in.kt VALUE_PARAMETER name:x index:1 type:kotlin.collections.Collection BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test1 (a: kotlin.Any, x: kotlin.collections.Collection): kotlin.Boolean declared in ' - CALL 'public abstract fun contains (element: E of kotlin.collections.Collection): kotlin.Boolean [operator] declared in kotlin.collections.Collection' type=kotlin.Boolean origin=IN + CALL 'public abstract fun contains (element: E of kotlin.collections.Collection): kotlin.Boolean declared in kotlin.collections.Collection' type=kotlin.Boolean origin=IN $this: GET_VAR 'x: kotlin.collections.Collection declared in .test1' type=kotlin.collections.Collection origin=null element: GET_VAR 'a: kotlin.Any declared in .test1' type=kotlin.Any origin=null FUN name:test2 visibility:public modality:FINAL <> (a:kotlin.Any, x:kotlin.collections.Collection) returnType:kotlin.Boolean @@ -12,8 +12,8 @@ FILE fqName: fileName:/in.kt VALUE_PARAMETER name:x index:1 type:kotlin.collections.Collection BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test2 (a: kotlin.Any, x: kotlin.collections.Collection): kotlin.Boolean declared in ' - CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=null - $this: CALL 'public abstract fun contains (element: E of kotlin.collections.Collection): kotlin.Boolean [operator] declared in kotlin.collections.Collection' type=kotlin.Boolean origin=IN + CALL 'public final fun not (): kotlin.Boolean declared in kotlin.Boolean' type=kotlin.Boolean origin=null + $this: CALL 'public abstract fun contains (element: E of kotlin.collections.Collection): kotlin.Boolean declared in kotlin.collections.Collection' type=kotlin.Boolean origin=IN $this: GET_VAR 'x: kotlin.collections.Collection declared in .test2' type=kotlin.collections.Collection origin=null element: GET_VAR 'a: kotlin.Any declared in .test2' type=kotlin.Any origin=null FUN name:test3 visibility:public modality:FINAL (a:T of .test3, x:kotlin.collections.Collection.test3>) returnType:kotlin.Boolean @@ -22,7 +22,7 @@ FILE fqName: fileName:/in.kt VALUE_PARAMETER name:x index:1 type:kotlin.collections.Collection.test3> BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test3 (a: T of .test3, x: kotlin.collections.Collection.test3>): kotlin.Boolean declared in ' - CALL 'public abstract fun contains (element: E of kotlin.collections.Collection): kotlin.Boolean [operator] declared in kotlin.collections.Collection' type=kotlin.Boolean origin=IN + CALL 'public abstract fun contains (element: E of kotlin.collections.Collection): kotlin.Boolean declared in kotlin.collections.Collection' type=kotlin.Boolean origin=IN $this: GET_VAR 'x: kotlin.collections.Collection.test3> declared in .test3' type=kotlin.collections.Collection.test3> origin=null element: GET_VAR 'a: T of .test3 declared in .test3' type=T of .test3 origin=null FUN name:test4 visibility:public modality:FINAL (a:T of .test4, x:kotlin.collections.Collection.test4>) returnType:kotlin.Boolean @@ -31,7 +31,7 @@ FILE fqName: fileName:/in.kt VALUE_PARAMETER name:x index:1 type:kotlin.collections.Collection.test4> BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test4 (a: T of .test4, x: kotlin.collections.Collection.test4>): kotlin.Boolean declared in ' - CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=null - $this: CALL 'public abstract fun contains (element: E of kotlin.collections.Collection): kotlin.Boolean [operator] declared in kotlin.collections.Collection' type=kotlin.Boolean origin=IN + CALL 'public final fun not (): kotlin.Boolean declared in kotlin.Boolean' type=kotlin.Boolean origin=null + $this: CALL 'public abstract fun contains (element: E of kotlin.collections.Collection): kotlin.Boolean declared in kotlin.collections.Collection' type=kotlin.Boolean origin=IN $this: GET_VAR 'x: kotlin.collections.Collection.test4> declared in .test4' type=kotlin.collections.Collection.test4> origin=null element: GET_VAR 'a: T of .test4 declared in .test4' type=T of .test4 origin=null diff --git a/compiler/testData/ir/irText/expressions/in.ir.txt b/compiler/testData/ir/irText/expressions/in.ir.txt index bd74e3be6f0..65975e4ae3f 100644 --- a/compiler/testData/ir/irText/expressions/in.ir.txt +++ b/compiler/testData/ir/irText/expressions/in.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/in.kt VALUE_PARAMETER name:x index:1 type:kotlin.collections.Collection BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test1 (a: kotlin.Any, x: kotlin.collections.Collection): kotlin.Boolean declared in ' - CALL 'public abstract fun contains (element: E of kotlin.collections.Collection): kotlin.Boolean [operator] declared in kotlin.collections.Collection' type=kotlin.Boolean origin=IN + CALL 'public abstract fun contains (element: E of kotlin.collections.Collection): kotlin.Boolean declared in kotlin.collections.Collection' type=kotlin.Boolean origin=IN $this: GET_VAR 'x: kotlin.collections.Collection declared in .test1' type=kotlin.collections.Collection origin=null element: GET_VAR 'a: kotlin.Any declared in .test1' type=kotlin.Any origin=null FUN name:test2 visibility:public modality:FINAL <> (a:kotlin.Any, x:kotlin.collections.Collection) returnType:kotlin.Boolean @@ -12,8 +12,8 @@ FILE fqName: fileName:/in.kt VALUE_PARAMETER name:x index:1 type:kotlin.collections.Collection BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test2 (a: kotlin.Any, x: kotlin.collections.Collection): kotlin.Boolean declared in ' - CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=NOT_IN - $this: CALL 'public abstract fun contains (element: E of kotlin.collections.Collection): kotlin.Boolean [operator] declared in kotlin.collections.Collection' type=kotlin.Boolean origin=NOT_IN + CALL 'public final fun not (): kotlin.Boolean declared in kotlin.Boolean' type=kotlin.Boolean origin=NOT_IN + $this: CALL 'public abstract fun contains (element: E of kotlin.collections.Collection): kotlin.Boolean declared in kotlin.collections.Collection' type=kotlin.Boolean origin=NOT_IN $this: GET_VAR 'x: kotlin.collections.Collection declared in .test2' type=kotlin.collections.Collection origin=null element: GET_VAR 'a: kotlin.Any declared in .test2' type=kotlin.Any origin=null FUN name:test3 visibility:public modality:FINAL (a:T of .test3, x:kotlin.collections.Collection.test3>) returnType:kotlin.Boolean @@ -22,7 +22,7 @@ FILE fqName: fileName:/in.kt VALUE_PARAMETER name:x index:1 type:kotlin.collections.Collection.test3> BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test3 (a: T of .test3, x: kotlin.collections.Collection.test3>): kotlin.Boolean declared in ' - CALL 'public abstract fun contains (element: E of kotlin.collections.Collection): kotlin.Boolean [operator] declared in kotlin.collections.Collection' type=kotlin.Boolean origin=IN + CALL 'public abstract fun contains (element: E of kotlin.collections.Collection): kotlin.Boolean declared in kotlin.collections.Collection' type=kotlin.Boolean origin=IN $this: GET_VAR 'x: kotlin.collections.Collection.test3> declared in .test3' type=kotlin.collections.Collection.test3> origin=null element: GET_VAR 'a: T of .test3 declared in .test3' type=T of .test3 origin=null FUN name:test4 visibility:public modality:FINAL (a:T of .test4, x:kotlin.collections.Collection.test4>) returnType:kotlin.Boolean @@ -31,7 +31,7 @@ FILE fqName: fileName:/in.kt VALUE_PARAMETER name:x index:1 type:kotlin.collections.Collection.test4> BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test4 (a: T of .test4, x: kotlin.collections.Collection.test4>): kotlin.Boolean declared in ' - CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=NOT_IN - $this: CALL 'public abstract fun contains (element: E of kotlin.collections.Collection): kotlin.Boolean [operator] declared in kotlin.collections.Collection' type=kotlin.Boolean origin=NOT_IN + CALL 'public final fun not (): kotlin.Boolean declared in kotlin.Boolean' type=kotlin.Boolean origin=NOT_IN + $this: CALL 'public abstract fun contains (element: E of kotlin.collections.Collection): kotlin.Boolean declared in kotlin.collections.Collection' type=kotlin.Boolean origin=NOT_IN $this: GET_VAR 'x: kotlin.collections.Collection.test4> declared in .test4' type=kotlin.collections.Collection.test4> origin=null element: GET_VAR 'a: T of .test4 declared in .test4' type=T of .test4 origin=null diff --git a/compiler/testData/ir/irText/expressions/incrementDecrement.fir.ir.txt b/compiler/testData/ir/irText/expressions/incrementDecrement.fir.ir.txt index 9ba44ace8dd..7ff531885e6 100644 --- a/compiler/testData/ir/irText/expressions/incrementDecrement.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/incrementDecrement.fir.ir.txt @@ -31,7 +31,7 @@ FILE fqName: fileName:/incrementDecrement.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.C CONSTRUCTOR visibility:public <> () returnType:.C [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:p visibility:public modality:FINAL [var] FIELD PROPERTY_BACKING_FIELD name:p type:kotlin.Int visibility:private @@ -56,7 +56,7 @@ FILE fqName: fileName:/incrementDecrement.kt $this: VALUE_PARAMETER name: type:.C VALUE_PARAMETER name:i index:0 type:kotlin.Int BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun get (i: kotlin.Int): kotlin.Int [operator] declared in .C' + RETURN type=kotlin.Nothing from='public final fun get (i: kotlin.Int): kotlin.Int declared in .C' GET_VAR 'i: kotlin.Int declared in .C.get' type=kotlin.Int origin=null FUN name:set visibility:public modality:FINAL <> ($this:.C, i:kotlin.Int, value:kotlin.Int) returnType:kotlin.Unit [operator] $this: VALUE_PARAMETER name: type:.C @@ -65,7 +65,7 @@ FILE fqName: fileName:/incrementDecrement.kt 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -80,7 +80,7 @@ FILE fqName: fileName:/incrementDecrement.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.O CONSTRUCTOR visibility:private <> () returnType:.O [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:O modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:p visibility:public modality:FINAL [var] FIELD PROPERTY_BACKING_FIELD name:p type:kotlin.Int visibility:private @@ -105,7 +105,7 @@ FILE fqName: fileName:/incrementDecrement.kt $this: VALUE_PARAMETER name: type:.O VALUE_PARAMETER name:i index:0 type:kotlin.Int BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun get (i: kotlin.Int): kotlin.Int [operator] declared in .O' + RETURN type=kotlin.Nothing from='public final fun get (i: kotlin.Int): kotlin.Int declared in .O' GET_VAR 'i: kotlin.Int declared in .O.get' type=kotlin.Int origin=null FUN name:set visibility:public modality:FINAL <> ($this:.O, i:kotlin.Int, value:kotlin.Int) returnType:kotlin.Unit [operator] $this: VALUE_PARAMETER name: type:.O @@ -114,7 +114,7 @@ FILE fqName: fileName:/incrementDecrement.kt 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -131,16 +131,16 @@ FILE fqName: fileName:/incrementDecrement.kt CONST Int type=kotlin.Int value=0 VAR name:x1 type:kotlin.Int [val] BLOCK type=kotlin.Int origin=null - SET_VAR 'var x: kotlin.Int [var] declared in .testVarPrefix' type=kotlin.Unit origin=PREFIX_INCR - CALL 'public final fun inc (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'var x: kotlin.Int [var] declared in .testVarPrefix' type=kotlin.Int origin=null - GET_VAR 'var x: kotlin.Int [var] declared in .testVarPrefix' type=kotlin.Int origin=null + SET_VAR 'var x: kotlin.Int declared in .testVarPrefix' type=kotlin.Unit origin=PREFIX_INCR + CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'var x: kotlin.Int declared in .testVarPrefix' type=kotlin.Int origin=null + GET_VAR 'var x: kotlin.Int declared in .testVarPrefix' type=kotlin.Int origin=null VAR name:x2 type:kotlin.Int [val] BLOCK type=kotlin.Int origin=null - SET_VAR 'var x: kotlin.Int [var] declared in .testVarPrefix' type=kotlin.Unit origin=PREFIX_DECR - CALL 'public final fun dec (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'var x: kotlin.Int [var] declared in .testVarPrefix' type=kotlin.Int origin=null - GET_VAR 'var x: kotlin.Int [var] declared in .testVarPrefix' type=kotlin.Int origin=null + SET_VAR 'var x: kotlin.Int declared in .testVarPrefix' type=kotlin.Unit origin=PREFIX_DECR + CALL 'public final fun dec (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'var x: kotlin.Int declared in .testVarPrefix' type=kotlin.Int origin=null + GET_VAR 'var x: kotlin.Int declared in .testVarPrefix' type=kotlin.Int origin=null FUN name:testVarPostfix visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY VAR name:x type:kotlin.Int [var] @@ -148,31 +148,31 @@ FILE fqName: fileName:/incrementDecrement.kt VAR name:x1 type:kotlin.Int [val] BLOCK type=kotlin.Int origin=POSTFIX_INCR VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:kotlin.Int [val] - GET_VAR 'var x: kotlin.Int [var] declared in .testVarPostfix' type=kotlin.Int origin=null - SET_VAR 'var x: kotlin.Int [var] declared in .testVarPostfix' type=kotlin.Unit origin=POSTFIX_INCR - CALL 'public final fun inc (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp_0: kotlin.Int [val] declared in .testVarPostfix' type=kotlin.Int origin=null - GET_VAR 'val tmp_0: kotlin.Int [val] declared in .testVarPostfix' type=kotlin.Int origin=null + GET_VAR 'var x: kotlin.Int declared in .testVarPostfix' type=kotlin.Int origin=null + SET_VAR 'var x: kotlin.Int declared in .testVarPostfix' type=kotlin.Unit origin=POSTFIX_INCR + CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_0: kotlin.Int declared in .testVarPostfix' type=kotlin.Int origin=null + GET_VAR 'val tmp_0: kotlin.Int declared in .testVarPostfix' type=kotlin.Int origin=null VAR name:x2 type:kotlin.Int [val] BLOCK type=kotlin.Int origin=POSTFIX_DECR VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:kotlin.Int [val] - GET_VAR 'var x: kotlin.Int [var] declared in .testVarPostfix' type=kotlin.Int origin=null - SET_VAR 'var x: kotlin.Int [var] declared in .testVarPostfix' type=kotlin.Unit origin=POSTFIX_DECR - CALL 'public final fun dec (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp_1: kotlin.Int [val] declared in .testVarPostfix' type=kotlin.Int origin=null - GET_VAR 'val tmp_1: kotlin.Int [val] declared in .testVarPostfix' type=kotlin.Int origin=null + GET_VAR 'var x: kotlin.Int declared in .testVarPostfix' type=kotlin.Int origin=null + SET_VAR 'var x: kotlin.Int declared in .testVarPostfix' type=kotlin.Unit origin=POSTFIX_DECR + CALL 'public final fun dec (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_1: kotlin.Int declared in .testVarPostfix' type=kotlin.Int origin=null + GET_VAR 'val tmp_1: kotlin.Int declared in .testVarPostfix' type=kotlin.Int origin=null FUN name:testPropPrefix visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY VAR name:p1 type:kotlin.Int [val] BLOCK type=kotlin.Int origin=null CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=EQ - : CALL 'public final fun inc (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null + : CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: CALL 'public final fun (): kotlin.Int declared in ' type=kotlin.Int origin=GET_PROPERTY CALL 'public final fun (): kotlin.Int declared in ' type=kotlin.Int origin=GET_PROPERTY VAR name:p2 type:kotlin.Int [val] BLOCK type=kotlin.Int origin=null CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=EQ - : CALL 'public final fun dec (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null + : CALL 'public final fun dec (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: CALL 'public final fun (): kotlin.Int declared in ' type=kotlin.Int origin=GET_PROPERTY CALL 'public final fun (): kotlin.Int declared in ' type=kotlin.Int origin=GET_PROPERTY FUN name:testPropPostfix visibility:public modality:FINAL <> () returnType:kotlin.Unit @@ -182,17 +182,17 @@ FILE fqName: fileName:/incrementDecrement.kt VAR IR_TEMPORARY_VARIABLE name:tmp_2 type:kotlin.Int [val] CALL 'public final fun (): kotlin.Int declared in ' type=kotlin.Int origin=GET_PROPERTY CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=EQ - : CALL 'public final fun inc (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp_2: kotlin.Int [val] declared in .testPropPostfix' type=kotlin.Int origin=null - GET_VAR 'val tmp_2: kotlin.Int [val] declared in .testPropPostfix' type=kotlin.Int origin=null + : CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_2: kotlin.Int declared in .testPropPostfix' type=kotlin.Int origin=null + GET_VAR 'val tmp_2: kotlin.Int declared in .testPropPostfix' type=kotlin.Int origin=null VAR name:p2 type:kotlin.Int [val] BLOCK type=kotlin.Int origin=null VAR IR_TEMPORARY_VARIABLE name:tmp_3 type:kotlin.Int [val] CALL 'public final fun (): kotlin.Int declared in ' type=kotlin.Int origin=GET_PROPERTY CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=EQ - : CALL 'public final fun dec (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp_3: kotlin.Int [val] declared in .testPropPostfix' type=kotlin.Int origin=null - GET_VAR 'val tmp_3: kotlin.Int [val] declared in .testPropPostfix' type=kotlin.Int origin=null + : CALL 'public final fun dec (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_3: kotlin.Int declared in .testPropPostfix' type=kotlin.Int origin=null + GET_VAR 'val tmp_3: kotlin.Int declared in .testPropPostfix' type=kotlin.Int origin=null FUN name:testArrayPrefix visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY VAR name:a1 type:kotlin.Int [val] @@ -201,32 +201,32 @@ FILE fqName: fileName:/incrementDecrement.kt CALL 'public final fun (): kotlin.IntArray declared in ' type=kotlin.IntArray origin=GET_PROPERTY VAR IR_TEMPORARY_VARIABLE name:tmp_5 type:kotlin.Int [val] CONST Int type=kotlin.Int value=0 - CALL 'public final fun set (index: kotlin.Int, value: kotlin.Int): kotlin.Unit [operator] declared in kotlin.IntArray' type=kotlin.Unit origin=null - $this: GET_VAR 'val tmp_4: kotlin.IntArray [val] declared in .testArrayPrefix' type=kotlin.IntArray origin=null - index: GET_VAR 'val tmp_5: kotlin.Int [val] declared in .testArrayPrefix' type=kotlin.Int origin=null - value: CALL 'public final fun inc (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: CALL 'public final fun get (index: kotlin.Int): kotlin.Int [operator] declared in kotlin.IntArray' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp_4: kotlin.IntArray [val] declared in .testArrayPrefix' type=kotlin.IntArray origin=null - index: GET_VAR 'val tmp_5: kotlin.Int [val] declared in .testArrayPrefix' type=kotlin.Int origin=null - CALL 'public final fun get (index: kotlin.Int): kotlin.Int [operator] declared in kotlin.IntArray' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp_4: kotlin.IntArray [val] declared in .testArrayPrefix' type=kotlin.IntArray origin=null - index: GET_VAR 'val tmp_5: kotlin.Int [val] declared in .testArrayPrefix' type=kotlin.Int origin=null + CALL 'public final fun set (index: kotlin.Int, value: kotlin.Int): kotlin.Unit declared in kotlin.IntArray' type=kotlin.Unit origin=null + $this: GET_VAR 'val tmp_4: kotlin.IntArray declared in .testArrayPrefix' type=kotlin.IntArray origin=null + index: GET_VAR 'val tmp_5: kotlin.Int declared in .testArrayPrefix' type=kotlin.Int origin=null + value: CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: CALL 'public final fun get (index: kotlin.Int): kotlin.Int declared in kotlin.IntArray' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_4: kotlin.IntArray declared in .testArrayPrefix' type=kotlin.IntArray origin=null + index: GET_VAR 'val tmp_5: kotlin.Int declared in .testArrayPrefix' type=kotlin.Int origin=null + CALL 'public final fun get (index: kotlin.Int): kotlin.Int declared in kotlin.IntArray' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_4: kotlin.IntArray declared in .testArrayPrefix' type=kotlin.IntArray origin=null + index: GET_VAR 'val tmp_5: kotlin.Int declared in .testArrayPrefix' type=kotlin.Int origin=null VAR name:a2 type:kotlin.Int [val] BLOCK type=kotlin.Int origin=null VAR IR_TEMPORARY_VARIABLE name:tmp_6 type:kotlin.IntArray [val] CALL 'public final fun (): kotlin.IntArray declared in ' type=kotlin.IntArray origin=GET_PROPERTY VAR IR_TEMPORARY_VARIABLE name:tmp_7 type:kotlin.Int [val] CONST Int type=kotlin.Int value=0 - CALL 'public final fun set (index: kotlin.Int, value: kotlin.Int): kotlin.Unit [operator] declared in kotlin.IntArray' type=kotlin.Unit origin=null - $this: GET_VAR 'val tmp_6: kotlin.IntArray [val] declared in .testArrayPrefix' type=kotlin.IntArray origin=null - index: GET_VAR 'val tmp_7: kotlin.Int [val] declared in .testArrayPrefix' type=kotlin.Int origin=null - value: CALL 'public final fun dec (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: CALL 'public final fun get (index: kotlin.Int): kotlin.Int [operator] declared in kotlin.IntArray' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp_6: kotlin.IntArray [val] declared in .testArrayPrefix' type=kotlin.IntArray origin=null - index: GET_VAR 'val tmp_7: kotlin.Int [val] declared in .testArrayPrefix' type=kotlin.Int origin=null - CALL 'public final fun get (index: kotlin.Int): kotlin.Int [operator] declared in kotlin.IntArray' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp_6: kotlin.IntArray [val] declared in .testArrayPrefix' type=kotlin.IntArray origin=null - index: GET_VAR 'val tmp_7: kotlin.Int [val] declared in .testArrayPrefix' type=kotlin.Int origin=null + CALL 'public final fun set (index: kotlin.Int, value: kotlin.Int): kotlin.Unit declared in kotlin.IntArray' type=kotlin.Unit origin=null + $this: GET_VAR 'val tmp_6: kotlin.IntArray declared in .testArrayPrefix' type=kotlin.IntArray origin=null + index: GET_VAR 'val tmp_7: kotlin.Int declared in .testArrayPrefix' type=kotlin.Int origin=null + value: CALL 'public final fun dec (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: CALL 'public final fun get (index: kotlin.Int): kotlin.Int declared in kotlin.IntArray' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_6: kotlin.IntArray declared in .testArrayPrefix' type=kotlin.IntArray origin=null + index: GET_VAR 'val tmp_7: kotlin.Int declared in .testArrayPrefix' type=kotlin.Int origin=null + CALL 'public final fun get (index: kotlin.Int): kotlin.Int declared in kotlin.IntArray' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_6: kotlin.IntArray declared in .testArrayPrefix' type=kotlin.IntArray origin=null + index: GET_VAR 'val tmp_7: kotlin.Int declared in .testArrayPrefix' type=kotlin.Int origin=null FUN name:testArrayPostfix visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY VAR name:a1 type:kotlin.Int [val] @@ -236,15 +236,15 @@ FILE fqName: fileName:/incrementDecrement.kt VAR IR_TEMPORARY_VARIABLE name:tmp_9 type:kotlin.Int [val] CONST Int type=kotlin.Int value=0 VAR IR_TEMPORARY_VARIABLE name:tmp_10 type:kotlin.Int [val] - CALL 'public final fun get (index: kotlin.Int): kotlin.Int [operator] declared in kotlin.IntArray' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp_8: kotlin.IntArray [val] declared in .testArrayPostfix' type=kotlin.IntArray origin=null - index: GET_VAR 'val tmp_9: kotlin.Int [val] declared in .testArrayPostfix' type=kotlin.Int origin=null - CALL 'public final fun set (index: kotlin.Int, value: kotlin.Int): kotlin.Unit [operator] declared in kotlin.IntArray' type=kotlin.Unit origin=null - $this: GET_VAR 'val tmp_8: kotlin.IntArray [val] declared in .testArrayPostfix' type=kotlin.IntArray origin=null - index: GET_VAR 'val tmp_9: kotlin.Int [val] declared in .testArrayPostfix' type=kotlin.Int origin=null - value: CALL 'public final fun inc (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp_10: kotlin.Int [val] declared in .testArrayPostfix' type=kotlin.Int origin=null - GET_VAR 'val tmp_10: kotlin.Int [val] declared in .testArrayPostfix' type=kotlin.Int origin=null + CALL 'public final fun get (index: kotlin.Int): kotlin.Int declared in kotlin.IntArray' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_8: kotlin.IntArray declared in .testArrayPostfix' type=kotlin.IntArray origin=null + index: GET_VAR 'val tmp_9: kotlin.Int declared in .testArrayPostfix' type=kotlin.Int origin=null + CALL 'public final fun set (index: kotlin.Int, value: kotlin.Int): kotlin.Unit declared in kotlin.IntArray' type=kotlin.Unit origin=null + $this: GET_VAR 'val tmp_8: kotlin.IntArray declared in .testArrayPostfix' type=kotlin.IntArray origin=null + index: GET_VAR 'val tmp_9: kotlin.Int declared in .testArrayPostfix' type=kotlin.Int origin=null + value: CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_10: kotlin.Int declared in .testArrayPostfix' type=kotlin.Int origin=null + GET_VAR 'val tmp_10: kotlin.Int declared in .testArrayPostfix' type=kotlin.Int origin=null VAR name:a2 type:kotlin.Int [val] BLOCK type=kotlin.Int origin=null VAR IR_TEMPORARY_VARIABLE name:tmp_11 type:kotlin.IntArray [val] @@ -252,140 +252,140 @@ FILE fqName: fileName:/incrementDecrement.kt VAR IR_TEMPORARY_VARIABLE name:tmp_12 type:kotlin.Int [val] CONST Int type=kotlin.Int value=0 VAR IR_TEMPORARY_VARIABLE name:tmp_13 type:kotlin.Int [val] - CALL 'public final fun get (index: kotlin.Int): kotlin.Int [operator] declared in kotlin.IntArray' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp_11: kotlin.IntArray [val] declared in .testArrayPostfix' type=kotlin.IntArray origin=null - index: GET_VAR 'val tmp_12: kotlin.Int [val] declared in .testArrayPostfix' type=kotlin.Int origin=null - CALL 'public final fun set (index: kotlin.Int, value: kotlin.Int): kotlin.Unit [operator] declared in kotlin.IntArray' type=kotlin.Unit origin=null - $this: GET_VAR 'val tmp_11: kotlin.IntArray [val] declared in .testArrayPostfix' type=kotlin.IntArray origin=null - index: GET_VAR 'val tmp_12: kotlin.Int [val] declared in .testArrayPostfix' type=kotlin.Int origin=null - value: CALL 'public final fun dec (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp_13: kotlin.Int [val] declared in .testArrayPostfix' type=kotlin.Int origin=null - GET_VAR 'val tmp_13: kotlin.Int [val] declared in .testArrayPostfix' type=kotlin.Int origin=null + CALL 'public final fun get (index: kotlin.Int): kotlin.Int declared in kotlin.IntArray' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_11: kotlin.IntArray declared in .testArrayPostfix' type=kotlin.IntArray origin=null + index: GET_VAR 'val tmp_12: kotlin.Int declared in .testArrayPostfix' type=kotlin.Int origin=null + CALL 'public final fun set (index: kotlin.Int, value: kotlin.Int): kotlin.Unit declared in kotlin.IntArray' type=kotlin.Unit origin=null + $this: GET_VAR 'val tmp_11: kotlin.IntArray declared in .testArrayPostfix' type=kotlin.IntArray origin=null + index: GET_VAR 'val tmp_12: kotlin.Int declared in .testArrayPostfix' type=kotlin.Int origin=null + value: CALL 'public final fun dec (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_13: kotlin.Int declared in .testArrayPostfix' type=kotlin.Int origin=null + GET_VAR 'val tmp_13: kotlin.Int declared in .testArrayPostfix' type=kotlin.Int origin=null FUN name:testClassPropPrefix visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY VAR name:p1 type:kotlin.Int [val] BLOCK type=kotlin.Int origin=null VAR IR_TEMPORARY_VARIABLE name:tmp_14 type:.C [val] - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .C' type=.C origin=null + CONSTRUCTOR_CALL 'public constructor () declared in .C' type=.C origin=null CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in .C' type=kotlin.Unit origin=EQ - $this: GET_VAR 'val tmp_14: .C [val] declared in .testClassPropPrefix' type=.C origin=null - : CALL 'public final fun inc (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_14: .C declared in .testClassPropPrefix' type=.C origin=null + : CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: CALL 'public final fun (): kotlin.Int declared in .C' type=kotlin.Int origin=GET_PROPERTY - $this: GET_VAR 'val tmp_14: .C [val] declared in .testClassPropPrefix' type=.C origin=null + $this: GET_VAR 'val tmp_14: .C declared in .testClassPropPrefix' type=.C origin=null CALL 'public final fun (): kotlin.Int declared in .C' type=kotlin.Int origin=GET_PROPERTY - $this: GET_VAR 'val tmp_14: .C [val] declared in .testClassPropPrefix' type=.C origin=null + $this: GET_VAR 'val tmp_14: .C declared in .testClassPropPrefix' type=.C origin=null VAR name:p2 type:kotlin.Int [val] BLOCK type=kotlin.Int origin=null VAR IR_TEMPORARY_VARIABLE name:tmp_15 type:.C [val] - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .C' type=.C origin=null + CONSTRUCTOR_CALL 'public constructor () declared in .C' type=.C origin=null CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in .C' type=kotlin.Unit origin=EQ - $this: GET_VAR 'val tmp_15: .C [val] declared in .testClassPropPrefix' type=.C origin=null - : CALL 'public final fun dec (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_15: .C declared in .testClassPropPrefix' type=.C origin=null + : CALL 'public final fun dec (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: CALL 'public final fun (): kotlin.Int declared in .C' type=kotlin.Int origin=GET_PROPERTY - $this: GET_VAR 'val tmp_15: .C [val] declared in .testClassPropPrefix' type=.C origin=null + $this: GET_VAR 'val tmp_15: .C declared in .testClassPropPrefix' type=.C origin=null CALL 'public final fun (): kotlin.Int declared in .C' type=kotlin.Int origin=GET_PROPERTY - $this: GET_VAR 'val tmp_15: .C [val] declared in .testClassPropPrefix' type=.C origin=null + $this: GET_VAR 'val tmp_15: .C declared in .testClassPropPrefix' type=.C origin=null FUN name:testClassPropPostfix visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY VAR name:p1 type:kotlin.Int [val] BLOCK type=kotlin.Int origin=null VAR IR_TEMPORARY_VARIABLE name:tmp_16 type:.C [val] - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .C' type=.C origin=null + CONSTRUCTOR_CALL 'public constructor () declared in .C' type=.C origin=null VAR IR_TEMPORARY_VARIABLE name:tmp_17 type:kotlin.Int [val] CALL 'public final fun (): kotlin.Int declared in .C' type=kotlin.Int origin=GET_PROPERTY - $this: GET_VAR 'val tmp_16: .C [val] declared in .testClassPropPostfix' type=.C origin=null + $this: GET_VAR 'val tmp_16: .C declared in .testClassPropPostfix' type=.C origin=null CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in .C' type=kotlin.Unit origin=EQ - $this: GET_VAR 'val tmp_16: .C [val] declared in .testClassPropPostfix' type=.C origin=null - : CALL 'public final fun inc (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp_17: kotlin.Int [val] declared in .testClassPropPostfix' type=kotlin.Int origin=null - GET_VAR 'val tmp_17: kotlin.Int [val] declared in .testClassPropPostfix' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_16: .C declared in .testClassPropPostfix' type=.C origin=null + : CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_17: kotlin.Int declared in .testClassPropPostfix' type=kotlin.Int origin=null + GET_VAR 'val tmp_17: kotlin.Int declared in .testClassPropPostfix' type=kotlin.Int origin=null VAR name:p2 type:kotlin.Int [val] BLOCK type=kotlin.Int origin=null VAR IR_TEMPORARY_VARIABLE name:tmp_18 type:.C [val] - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .C' type=.C origin=null + CONSTRUCTOR_CALL 'public constructor () declared in .C' type=.C origin=null VAR IR_TEMPORARY_VARIABLE name:tmp_19 type:kotlin.Int [val] CALL 'public final fun (): kotlin.Int declared in .C' type=kotlin.Int origin=GET_PROPERTY - $this: GET_VAR 'val tmp_18: .C [val] declared in .testClassPropPostfix' type=.C origin=null + $this: GET_VAR 'val tmp_18: .C declared in .testClassPropPostfix' type=.C origin=null CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in .C' type=kotlin.Unit origin=EQ - $this: GET_VAR 'val tmp_18: .C [val] declared in .testClassPropPostfix' type=.C origin=null - : CALL 'public final fun dec (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp_19: kotlin.Int [val] declared in .testClassPropPostfix' type=kotlin.Int origin=null - GET_VAR 'val tmp_19: kotlin.Int [val] declared in .testClassPropPostfix' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_18: .C declared in .testClassPropPostfix' type=.C origin=null + : CALL 'public final fun dec (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_19: kotlin.Int declared in .testClassPropPostfix' type=kotlin.Int origin=null + GET_VAR 'val tmp_19: kotlin.Int declared in .testClassPropPostfix' type=kotlin.Int origin=null FUN name:testClassOperatorPrefix visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY VAR name:a1 type:kotlin.Int [val] BLOCK type=kotlin.Int origin=null VAR IR_TEMPORARY_VARIABLE name:tmp_20 type:.C [val] - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .C' type=.C origin=null + CONSTRUCTOR_CALL 'public constructor () declared in .C' type=.C origin=null VAR IR_TEMPORARY_VARIABLE name:tmp_21 type:kotlin.Int [val] CONST Int type=kotlin.Int value=0 - CALL 'public final fun set (i: kotlin.Int, value: kotlin.Int): kotlin.Unit [operator] declared in .C' type=kotlin.Unit origin=null - $this: GET_VAR 'val tmp_20: .C [val] declared in .testClassOperatorPrefix' type=.C origin=null - i: GET_VAR 'val tmp_21: kotlin.Int [val] declared in .testClassOperatorPrefix' type=kotlin.Int origin=null - value: CALL 'public final fun inc (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: CALL 'public final fun get (i: kotlin.Int): kotlin.Int [operator] declared in .C' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp_20: .C [val] declared in .testClassOperatorPrefix' type=.C origin=null - i: GET_VAR 'val tmp_21: kotlin.Int [val] declared in .testClassOperatorPrefix' type=kotlin.Int origin=null - CALL 'public final fun get (i: kotlin.Int): kotlin.Int [operator] declared in .C' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp_20: .C [val] declared in .testClassOperatorPrefix' type=.C origin=null - i: GET_VAR 'val tmp_21: kotlin.Int [val] declared in .testClassOperatorPrefix' type=kotlin.Int origin=null + CALL 'public final fun set (i: kotlin.Int, value: kotlin.Int): kotlin.Unit declared in .C' type=kotlin.Unit origin=null + $this: GET_VAR 'val tmp_20: .C declared in .testClassOperatorPrefix' type=.C origin=null + i: GET_VAR 'val tmp_21: kotlin.Int declared in .testClassOperatorPrefix' type=kotlin.Int origin=null + value: CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: CALL 'public final fun get (i: kotlin.Int): kotlin.Int declared in .C' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_20: .C declared in .testClassOperatorPrefix' type=.C origin=null + i: GET_VAR 'val tmp_21: kotlin.Int declared in .testClassOperatorPrefix' type=kotlin.Int origin=null + CALL 'public final fun get (i: kotlin.Int): kotlin.Int declared in .C' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_20: .C declared in .testClassOperatorPrefix' type=.C origin=null + i: GET_VAR 'val tmp_21: kotlin.Int declared in .testClassOperatorPrefix' type=kotlin.Int origin=null VAR name:a2 type:kotlin.Int [val] BLOCK type=kotlin.Int origin=null VAR IR_TEMPORARY_VARIABLE name:tmp_22 type:.C [val] - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .C' type=.C origin=null + CONSTRUCTOR_CALL 'public constructor () declared in .C' type=.C origin=null VAR IR_TEMPORARY_VARIABLE name:tmp_23 type:kotlin.Int [val] CONST Int type=kotlin.Int value=0 - CALL 'public final fun set (i: kotlin.Int, value: kotlin.Int): kotlin.Unit [operator] declared in .C' type=kotlin.Unit origin=null - $this: GET_VAR 'val tmp_22: .C [val] declared in .testClassOperatorPrefix' type=.C origin=null - i: GET_VAR 'val tmp_23: kotlin.Int [val] declared in .testClassOperatorPrefix' type=kotlin.Int origin=null - value: CALL 'public final fun dec (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: CALL 'public final fun get (i: kotlin.Int): kotlin.Int [operator] declared in .C' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp_22: .C [val] declared in .testClassOperatorPrefix' type=.C origin=null - i: GET_VAR 'val tmp_23: kotlin.Int [val] declared in .testClassOperatorPrefix' type=kotlin.Int origin=null - CALL 'public final fun get (i: kotlin.Int): kotlin.Int [operator] declared in .C' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp_22: .C [val] declared in .testClassOperatorPrefix' type=.C origin=null - i: GET_VAR 'val tmp_23: kotlin.Int [val] declared in .testClassOperatorPrefix' type=kotlin.Int origin=null + CALL 'public final fun set (i: kotlin.Int, value: kotlin.Int): kotlin.Unit declared in .C' type=kotlin.Unit origin=null + $this: GET_VAR 'val tmp_22: .C declared in .testClassOperatorPrefix' type=.C origin=null + i: GET_VAR 'val tmp_23: kotlin.Int declared in .testClassOperatorPrefix' type=kotlin.Int origin=null + value: CALL 'public final fun dec (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: CALL 'public final fun get (i: kotlin.Int): kotlin.Int declared in .C' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_22: .C declared in .testClassOperatorPrefix' type=.C origin=null + i: GET_VAR 'val tmp_23: kotlin.Int declared in .testClassOperatorPrefix' type=kotlin.Int origin=null + CALL 'public final fun get (i: kotlin.Int): kotlin.Int declared in .C' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_22: .C declared in .testClassOperatorPrefix' type=.C origin=null + i: GET_VAR 'val tmp_23: kotlin.Int declared in .testClassOperatorPrefix' type=kotlin.Int origin=null FUN name:testClassOperatorPostfix visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY VAR name:a1 type:kotlin.Int [val] BLOCK type=kotlin.Int origin=null VAR IR_TEMPORARY_VARIABLE name:tmp_24 type:.C [val] - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .C' type=.C origin=null + CONSTRUCTOR_CALL 'public constructor () declared in .C' type=.C origin=null VAR IR_TEMPORARY_VARIABLE name:tmp_25 type:kotlin.Int [val] CONST Int type=kotlin.Int value=0 VAR IR_TEMPORARY_VARIABLE name:tmp_26 type:kotlin.Int [val] - CALL 'public final fun get (i: kotlin.Int): kotlin.Int [operator] declared in .C' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp_24: .C [val] declared in .testClassOperatorPostfix' type=.C origin=null - i: GET_VAR 'val tmp_25: kotlin.Int [val] declared in .testClassOperatorPostfix' type=kotlin.Int origin=null - CALL 'public final fun set (i: kotlin.Int, value: kotlin.Int): kotlin.Unit [operator] declared in .C' type=kotlin.Unit origin=null - $this: GET_VAR 'val tmp_24: .C [val] declared in .testClassOperatorPostfix' type=.C origin=null - i: GET_VAR 'val tmp_25: kotlin.Int [val] declared in .testClassOperatorPostfix' type=kotlin.Int origin=null - value: CALL 'public final fun inc (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp_26: kotlin.Int [val] declared in .testClassOperatorPostfix' type=kotlin.Int origin=null - GET_VAR 'val tmp_26: kotlin.Int [val] declared in .testClassOperatorPostfix' type=kotlin.Int origin=null + CALL 'public final fun get (i: kotlin.Int): kotlin.Int declared in .C' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_24: .C declared in .testClassOperatorPostfix' type=.C origin=null + i: GET_VAR 'val tmp_25: kotlin.Int declared in .testClassOperatorPostfix' type=kotlin.Int origin=null + CALL 'public final fun set (i: kotlin.Int, value: kotlin.Int): kotlin.Unit declared in .C' type=kotlin.Unit origin=null + $this: GET_VAR 'val tmp_24: .C declared in .testClassOperatorPostfix' type=.C origin=null + i: GET_VAR 'val tmp_25: kotlin.Int declared in .testClassOperatorPostfix' type=kotlin.Int origin=null + value: CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_26: kotlin.Int declared in .testClassOperatorPostfix' type=kotlin.Int origin=null + GET_VAR 'val tmp_26: kotlin.Int declared in .testClassOperatorPostfix' type=kotlin.Int origin=null VAR name:a2 type:kotlin.Int [val] BLOCK type=kotlin.Int origin=null VAR IR_TEMPORARY_VARIABLE name:tmp_27 type:.C [val] - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .C' type=.C origin=null + CONSTRUCTOR_CALL 'public constructor () declared in .C' type=.C origin=null VAR IR_TEMPORARY_VARIABLE name:tmp_28 type:kotlin.Int [val] CONST Int type=kotlin.Int value=0 VAR IR_TEMPORARY_VARIABLE name:tmp_29 type:kotlin.Int [val] - CALL 'public final fun get (i: kotlin.Int): kotlin.Int [operator] declared in .C' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp_27: .C [val] declared in .testClassOperatorPostfix' type=.C origin=null - i: GET_VAR 'val tmp_28: kotlin.Int [val] declared in .testClassOperatorPostfix' type=kotlin.Int origin=null - CALL 'public final fun set (i: kotlin.Int, value: kotlin.Int): kotlin.Unit [operator] declared in .C' type=kotlin.Unit origin=null - $this: GET_VAR 'val tmp_27: .C [val] declared in .testClassOperatorPostfix' type=.C origin=null - i: GET_VAR 'val tmp_28: kotlin.Int [val] declared in .testClassOperatorPostfix' type=kotlin.Int origin=null - value: CALL 'public final fun dec (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp_29: kotlin.Int [val] declared in .testClassOperatorPostfix' type=kotlin.Int origin=null - GET_VAR 'val tmp_29: kotlin.Int [val] declared in .testClassOperatorPostfix' type=kotlin.Int origin=null + CALL 'public final fun get (i: kotlin.Int): kotlin.Int declared in .C' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_27: .C declared in .testClassOperatorPostfix' type=.C origin=null + i: GET_VAR 'val tmp_28: kotlin.Int declared in .testClassOperatorPostfix' type=kotlin.Int origin=null + CALL 'public final fun set (i: kotlin.Int, value: kotlin.Int): kotlin.Unit declared in .C' type=kotlin.Unit origin=null + $this: GET_VAR 'val tmp_27: .C declared in .testClassOperatorPostfix' type=.C origin=null + i: GET_VAR 'val tmp_28: kotlin.Int declared in .testClassOperatorPostfix' type=kotlin.Int origin=null + value: CALL 'public final fun dec (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_29: kotlin.Int declared in .testClassOperatorPostfix' type=kotlin.Int origin=null + GET_VAR 'val tmp_29: kotlin.Int declared in .testClassOperatorPostfix' type=kotlin.Int origin=null FUN name:testObjectPropPrefix visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY VAR name:p1 type:kotlin.Int [val] BLOCK type=kotlin.Int origin=null CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in .O' type=kotlin.Unit origin=EQ $this: GET_OBJECT 'CLASS OBJECT name:O modality:FINAL visibility:public superTypes:[kotlin.Any]' type=.O - : CALL 'public final fun inc (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null + : CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: CALL 'public final fun (): kotlin.Int declared in .O' type=kotlin.Int origin=GET_PROPERTY $this: GET_OBJECT 'CLASS OBJECT name:O modality:FINAL visibility:public superTypes:[kotlin.Any]' type=.O CALL 'public final fun (): kotlin.Int declared in .O' type=kotlin.Int origin=GET_PROPERTY @@ -394,7 +394,7 @@ FILE fqName: fileName:/incrementDecrement.kt BLOCK type=kotlin.Int origin=null CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in .O' type=kotlin.Unit origin=EQ $this: GET_OBJECT 'CLASS OBJECT name:O modality:FINAL visibility:public superTypes:[kotlin.Any]' type=.O - : CALL 'public final fun dec (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null + : CALL 'public final fun dec (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: CALL 'public final fun (): kotlin.Int declared in .O' type=kotlin.Int origin=GET_PROPERTY $this: GET_OBJECT 'CLASS OBJECT name:O modality:FINAL visibility:public superTypes:[kotlin.Any]' type=.O CALL 'public final fun (): kotlin.Int declared in .O' type=kotlin.Int origin=GET_PROPERTY @@ -408,9 +408,9 @@ FILE fqName: fileName:/incrementDecrement.kt $this: GET_OBJECT 'CLASS OBJECT name:O modality:FINAL visibility:public superTypes:[kotlin.Any]' type=.O CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in .O' type=kotlin.Unit origin=EQ $this: GET_OBJECT 'CLASS OBJECT name:O modality:FINAL visibility:public superTypes:[kotlin.Any]' type=.O - : CALL 'public final fun inc (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp_30: kotlin.Int [val] declared in .testObjectPropPostfix' type=kotlin.Int origin=null - GET_VAR 'val tmp_30: kotlin.Int [val] declared in .testObjectPropPostfix' type=kotlin.Int origin=null + : CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_30: kotlin.Int declared in .testObjectPropPostfix' type=kotlin.Int origin=null + GET_VAR 'val tmp_30: kotlin.Int declared in .testObjectPropPostfix' type=kotlin.Int origin=null VAR name:p2 type:kotlin.Int [val] BLOCK type=kotlin.Int origin=null VAR IR_TEMPORARY_VARIABLE name:tmp_31 type:kotlin.Int [val] @@ -418,9 +418,9 @@ FILE fqName: fileName:/incrementDecrement.kt $this: GET_OBJECT 'CLASS OBJECT name:O modality:FINAL visibility:public superTypes:[kotlin.Any]' type=.O CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in .O' type=kotlin.Unit origin=EQ $this: GET_OBJECT 'CLASS OBJECT name:O modality:FINAL visibility:public superTypes:[kotlin.Any]' type=.O - : CALL 'public final fun dec (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp_31: kotlin.Int [val] declared in .testObjectPropPostfix' type=kotlin.Int origin=null - GET_VAR 'val tmp_31: kotlin.Int [val] declared in .testObjectPropPostfix' type=kotlin.Int origin=null + : CALL 'public final fun dec (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_31: kotlin.Int declared in .testObjectPropPostfix' type=kotlin.Int origin=null + GET_VAR 'val tmp_31: kotlin.Int declared in .testObjectPropPostfix' type=kotlin.Int origin=null FUN name:testObjectOperatorPrefix visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY VAR name:a1 type:kotlin.Int [val] @@ -429,32 +429,32 @@ FILE fqName: fileName:/incrementDecrement.kt GET_OBJECT 'CLASS OBJECT name:O modality:FINAL visibility:public superTypes:[kotlin.Any]' type=.O VAR IR_TEMPORARY_VARIABLE name:tmp_33 type:kotlin.Int [val] CONST Int type=kotlin.Int value=0 - CALL 'public final fun set (i: kotlin.Int, value: kotlin.Int): kotlin.Unit [operator] declared in .O' type=kotlin.Unit origin=null - $this: GET_VAR 'val tmp_32: .O [val] declared in .testObjectOperatorPrefix' type=.O origin=null - i: GET_VAR 'val tmp_33: kotlin.Int [val] declared in .testObjectOperatorPrefix' type=kotlin.Int origin=null - value: CALL 'public final fun inc (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: CALL 'public final fun get (i: kotlin.Int): kotlin.Int [operator] declared in .O' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp_32: .O [val] declared in .testObjectOperatorPrefix' type=.O origin=null - i: GET_VAR 'val tmp_33: kotlin.Int [val] declared in .testObjectOperatorPrefix' type=kotlin.Int origin=null - CALL 'public final fun get (i: kotlin.Int): kotlin.Int [operator] declared in .O' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp_32: .O [val] declared in .testObjectOperatorPrefix' type=.O origin=null - i: GET_VAR 'val tmp_33: kotlin.Int [val] declared in .testObjectOperatorPrefix' type=kotlin.Int origin=null + CALL 'public final fun set (i: kotlin.Int, value: kotlin.Int): kotlin.Unit declared in .O' type=kotlin.Unit origin=null + $this: GET_VAR 'val tmp_32: .O declared in .testObjectOperatorPrefix' type=.O origin=null + i: GET_VAR 'val tmp_33: kotlin.Int declared in .testObjectOperatorPrefix' type=kotlin.Int origin=null + value: CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: CALL 'public final fun get (i: kotlin.Int): kotlin.Int declared in .O' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_32: .O declared in .testObjectOperatorPrefix' type=.O origin=null + i: GET_VAR 'val tmp_33: kotlin.Int declared in .testObjectOperatorPrefix' type=kotlin.Int origin=null + CALL 'public final fun get (i: kotlin.Int): kotlin.Int declared in .O' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_32: .O declared in .testObjectOperatorPrefix' type=.O origin=null + i: GET_VAR 'val tmp_33: kotlin.Int declared in .testObjectOperatorPrefix' type=kotlin.Int origin=null VAR name:a2 type:kotlin.Int [val] BLOCK type=kotlin.Int origin=null VAR IR_TEMPORARY_VARIABLE name:tmp_34 type:.O [val] GET_OBJECT 'CLASS OBJECT name:O modality:FINAL visibility:public superTypes:[kotlin.Any]' type=.O VAR IR_TEMPORARY_VARIABLE name:tmp_35 type:kotlin.Int [val] CONST Int type=kotlin.Int value=0 - CALL 'public final fun set (i: kotlin.Int, value: kotlin.Int): kotlin.Unit [operator] declared in .O' type=kotlin.Unit origin=null - $this: GET_VAR 'val tmp_34: .O [val] declared in .testObjectOperatorPrefix' type=.O origin=null - i: GET_VAR 'val tmp_35: kotlin.Int [val] declared in .testObjectOperatorPrefix' type=kotlin.Int origin=null - value: CALL 'public final fun dec (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: CALL 'public final fun get (i: kotlin.Int): kotlin.Int [operator] declared in .O' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp_34: .O [val] declared in .testObjectOperatorPrefix' type=.O origin=null - i: GET_VAR 'val tmp_35: kotlin.Int [val] declared in .testObjectOperatorPrefix' type=kotlin.Int origin=null - CALL 'public final fun get (i: kotlin.Int): kotlin.Int [operator] declared in .O' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp_34: .O [val] declared in .testObjectOperatorPrefix' type=.O origin=null - i: GET_VAR 'val tmp_35: kotlin.Int [val] declared in .testObjectOperatorPrefix' type=kotlin.Int origin=null + CALL 'public final fun set (i: kotlin.Int, value: kotlin.Int): kotlin.Unit declared in .O' type=kotlin.Unit origin=null + $this: GET_VAR 'val tmp_34: .O declared in .testObjectOperatorPrefix' type=.O origin=null + i: GET_VAR 'val tmp_35: kotlin.Int declared in .testObjectOperatorPrefix' type=kotlin.Int origin=null + value: CALL 'public final fun dec (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: CALL 'public final fun get (i: kotlin.Int): kotlin.Int declared in .O' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_34: .O declared in .testObjectOperatorPrefix' type=.O origin=null + i: GET_VAR 'val tmp_35: kotlin.Int declared in .testObjectOperatorPrefix' type=kotlin.Int origin=null + CALL 'public final fun get (i: kotlin.Int): kotlin.Int declared in .O' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_34: .O declared in .testObjectOperatorPrefix' type=.O origin=null + i: GET_VAR 'val tmp_35: kotlin.Int declared in .testObjectOperatorPrefix' type=kotlin.Int origin=null FUN name:testObjectOperatorPostfix visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY VAR name:a1 type:kotlin.Int [val] @@ -464,15 +464,15 @@ FILE fqName: fileName:/incrementDecrement.kt VAR IR_TEMPORARY_VARIABLE name:tmp_37 type:kotlin.Int [val] CONST Int type=kotlin.Int value=0 VAR IR_TEMPORARY_VARIABLE name:tmp_38 type:kotlin.Int [val] - CALL 'public final fun get (i: kotlin.Int): kotlin.Int [operator] declared in .O' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp_36: .O [val] declared in .testObjectOperatorPostfix' type=.O origin=null - i: GET_VAR 'val tmp_37: kotlin.Int [val] declared in .testObjectOperatorPostfix' type=kotlin.Int origin=null - CALL 'public final fun set (i: kotlin.Int, value: kotlin.Int): kotlin.Unit [operator] declared in .O' type=kotlin.Unit origin=null - $this: GET_VAR 'val tmp_36: .O [val] declared in .testObjectOperatorPostfix' type=.O origin=null - i: GET_VAR 'val tmp_37: kotlin.Int [val] declared in .testObjectOperatorPostfix' type=kotlin.Int origin=null - value: CALL 'public final fun inc (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp_38: kotlin.Int [val] declared in .testObjectOperatorPostfix' type=kotlin.Int origin=null - GET_VAR 'val tmp_38: kotlin.Int [val] declared in .testObjectOperatorPostfix' type=kotlin.Int origin=null + CALL 'public final fun get (i: kotlin.Int): kotlin.Int declared in .O' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_36: .O declared in .testObjectOperatorPostfix' type=.O origin=null + i: GET_VAR 'val tmp_37: kotlin.Int declared in .testObjectOperatorPostfix' type=kotlin.Int origin=null + CALL 'public final fun set (i: kotlin.Int, value: kotlin.Int): kotlin.Unit declared in .O' type=kotlin.Unit origin=null + $this: GET_VAR 'val tmp_36: .O declared in .testObjectOperatorPostfix' type=.O origin=null + i: GET_VAR 'val tmp_37: kotlin.Int declared in .testObjectOperatorPostfix' type=kotlin.Int origin=null + value: CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_38: kotlin.Int declared in .testObjectOperatorPostfix' type=kotlin.Int origin=null + GET_VAR 'val tmp_38: kotlin.Int declared in .testObjectOperatorPostfix' type=kotlin.Int origin=null VAR name:a2 type:kotlin.Int [val] BLOCK type=kotlin.Int origin=null VAR IR_TEMPORARY_VARIABLE name:tmp_39 type:.O [val] @@ -480,12 +480,12 @@ FILE fqName: fileName:/incrementDecrement.kt VAR IR_TEMPORARY_VARIABLE name:tmp_40 type:kotlin.Int [val] CONST Int type=kotlin.Int value=0 VAR IR_TEMPORARY_VARIABLE name:tmp_41 type:kotlin.Int [val] - CALL 'public final fun get (i: kotlin.Int): kotlin.Int [operator] declared in .O' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp_39: .O [val] declared in .testObjectOperatorPostfix' type=.O origin=null - i: GET_VAR 'val tmp_40: kotlin.Int [val] declared in .testObjectOperatorPostfix' type=kotlin.Int origin=null - CALL 'public final fun set (i: kotlin.Int, value: kotlin.Int): kotlin.Unit [operator] declared in .O' type=kotlin.Unit origin=null - $this: GET_VAR 'val tmp_39: .O [val] declared in .testObjectOperatorPostfix' type=.O origin=null - i: GET_VAR 'val tmp_40: kotlin.Int [val] declared in .testObjectOperatorPostfix' type=kotlin.Int origin=null - value: CALL 'public final fun dec (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp_41: kotlin.Int [val] declared in .testObjectOperatorPostfix' type=kotlin.Int origin=null - GET_VAR 'val tmp_41: kotlin.Int [val] declared in .testObjectOperatorPostfix' type=kotlin.Int origin=null + CALL 'public final fun get (i: kotlin.Int): kotlin.Int declared in .O' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_39: .O declared in .testObjectOperatorPostfix' type=.O origin=null + i: GET_VAR 'val tmp_40: kotlin.Int declared in .testObjectOperatorPostfix' type=kotlin.Int origin=null + CALL 'public final fun set (i: kotlin.Int, value: kotlin.Int): kotlin.Unit declared in .O' type=kotlin.Unit origin=null + $this: GET_VAR 'val tmp_39: .O declared in .testObjectOperatorPostfix' type=.O origin=null + i: GET_VAR 'val tmp_40: kotlin.Int declared in .testObjectOperatorPostfix' type=kotlin.Int origin=null + value: CALL 'public final fun dec (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_41: kotlin.Int declared in .testObjectOperatorPostfix' type=kotlin.Int origin=null + GET_VAR 'val tmp_41: kotlin.Int declared in .testObjectOperatorPostfix' type=kotlin.Int origin=null diff --git a/compiler/testData/ir/irText/expressions/incrementDecrement.ir.txt b/compiler/testData/ir/irText/expressions/incrementDecrement.ir.txt index e4cd54498e5..50c6136d107 100644 --- a/compiler/testData/ir/irText/expressions/incrementDecrement.ir.txt +++ b/compiler/testData/ir/irText/expressions/incrementDecrement.ir.txt @@ -31,7 +31,7 @@ FILE fqName: fileName:/incrementDecrement.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.C CONSTRUCTOR visibility:public <> () returnType:.C [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:p visibility:public modality:FINAL [var] FIELD PROPERTY_BACKING_FIELD name:p type:kotlin.Int visibility:private @@ -56,7 +56,7 @@ FILE fqName: fileName:/incrementDecrement.kt $this: VALUE_PARAMETER name: type:.C VALUE_PARAMETER name:i index:0 type:kotlin.Int BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun get (i: kotlin.Int): kotlin.Int [operator] declared in .C' + RETURN type=kotlin.Nothing from='public final fun get (i: kotlin.Int): kotlin.Int declared in .C' GET_VAR 'i: kotlin.Int declared in .C.get' type=kotlin.Int origin=null FUN name:set visibility:public modality:FINAL <> ($this:.C, i:kotlin.Int, value:kotlin.Int) returnType:kotlin.Unit [operator] $this: VALUE_PARAMETER name: type:.C @@ -65,7 +65,7 @@ FILE fqName: fileName:/incrementDecrement.kt 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -80,7 +80,7 @@ FILE fqName: fileName:/incrementDecrement.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.O CONSTRUCTOR visibility:private <> () returnType:.O [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:O modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:p visibility:public modality:FINAL [var] FIELD PROPERTY_BACKING_FIELD name:p type:kotlin.Int visibility:private @@ -105,7 +105,7 @@ FILE fqName: fileName:/incrementDecrement.kt $this: VALUE_PARAMETER name: type:.O VALUE_PARAMETER name:i index:0 type:kotlin.Int BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun get (i: kotlin.Int): kotlin.Int [operator] declared in .O' + RETURN type=kotlin.Nothing from='public final fun get (i: kotlin.Int): kotlin.Int declared in .O' GET_VAR 'i: kotlin.Int declared in .O.get' type=kotlin.Int origin=null FUN name:set visibility:public modality:FINAL <> ($this:.O, i:kotlin.Int, value:kotlin.Int) returnType:kotlin.Unit [operator] $this: VALUE_PARAMETER name: type:.O @@ -114,7 +114,7 @@ FILE fqName: fileName:/incrementDecrement.kt 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -131,16 +131,16 @@ FILE fqName: fileName:/incrementDecrement.kt CONST Int type=kotlin.Int value=0 VAR name:x1 type:kotlin.Int [val] BLOCK type=kotlin.Int origin=PREFIX_INCR - SET_VAR 'var x: kotlin.Int [var] declared in .testVarPrefix' type=kotlin.Unit origin=PREFIX_INCR - CALL 'public final fun inc (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PREFIX_INCR - $this: GET_VAR 'var x: kotlin.Int [var] declared in .testVarPrefix' type=kotlin.Int origin=PREFIX_INCR - GET_VAR 'var x: kotlin.Int [var] declared in .testVarPrefix' type=kotlin.Int origin=PREFIX_INCR + SET_VAR 'var x: kotlin.Int declared in .testVarPrefix' type=kotlin.Unit origin=PREFIX_INCR + CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PREFIX_INCR + $this: GET_VAR 'var x: kotlin.Int declared in .testVarPrefix' type=kotlin.Int origin=PREFIX_INCR + GET_VAR 'var x: kotlin.Int declared in .testVarPrefix' type=kotlin.Int origin=PREFIX_INCR VAR name:x2 type:kotlin.Int [val] BLOCK type=kotlin.Int origin=PREFIX_DECR - SET_VAR 'var x: kotlin.Int [var] declared in .testVarPrefix' type=kotlin.Unit origin=PREFIX_DECR - CALL 'public final fun dec (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PREFIX_DECR - $this: GET_VAR 'var x: kotlin.Int [var] declared in .testVarPrefix' type=kotlin.Int origin=PREFIX_DECR - GET_VAR 'var x: kotlin.Int [var] declared in .testVarPrefix' type=kotlin.Int origin=PREFIX_DECR + SET_VAR 'var x: kotlin.Int declared in .testVarPrefix' type=kotlin.Unit origin=PREFIX_DECR + CALL 'public final fun dec (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PREFIX_DECR + $this: GET_VAR 'var x: kotlin.Int declared in .testVarPrefix' type=kotlin.Int origin=PREFIX_DECR + GET_VAR 'var x: kotlin.Int declared in .testVarPrefix' type=kotlin.Int origin=PREFIX_DECR FUN name:testVarPostfix visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY VAR name:x type:kotlin.Int [var] @@ -148,33 +148,33 @@ FILE fqName: fileName:/incrementDecrement.kt VAR name:x1 type:kotlin.Int [val] BLOCK type=kotlin.Int origin=POSTFIX_INCR VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:kotlin.Int [val] - GET_VAR 'var x: kotlin.Int [var] declared in .testVarPostfix' type=kotlin.Int origin=POSTFIX_INCR - SET_VAR 'var x: kotlin.Int [var] declared in .testVarPostfix' type=kotlin.Unit origin=POSTFIX_INCR - CALL 'public final fun inc (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_INCR - $this: GET_VAR 'val tmp_0: kotlin.Int [val] declared in .testVarPostfix' type=kotlin.Int origin=null - GET_VAR 'val tmp_0: kotlin.Int [val] declared in .testVarPostfix' type=kotlin.Int origin=null + GET_VAR 'var x: kotlin.Int declared in .testVarPostfix' type=kotlin.Int origin=POSTFIX_INCR + SET_VAR 'var x: kotlin.Int declared in .testVarPostfix' type=kotlin.Unit origin=POSTFIX_INCR + CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_INCR + $this: GET_VAR 'val tmp_0: kotlin.Int declared in .testVarPostfix' type=kotlin.Int origin=null + GET_VAR 'val tmp_0: kotlin.Int declared in .testVarPostfix' type=kotlin.Int origin=null VAR name:x2 type:kotlin.Int [val] BLOCK type=kotlin.Int origin=POSTFIX_DECR VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:kotlin.Int [val] - GET_VAR 'var x: kotlin.Int [var] declared in .testVarPostfix' type=kotlin.Int origin=POSTFIX_DECR - SET_VAR 'var x: kotlin.Int [var] declared in .testVarPostfix' type=kotlin.Unit origin=POSTFIX_DECR - CALL 'public final fun dec (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_DECR - $this: GET_VAR 'val tmp_1: kotlin.Int [val] declared in .testVarPostfix' type=kotlin.Int origin=null - GET_VAR 'val tmp_1: kotlin.Int [val] declared in .testVarPostfix' type=kotlin.Int origin=null + GET_VAR 'var x: kotlin.Int declared in .testVarPostfix' type=kotlin.Int origin=POSTFIX_DECR + SET_VAR 'var x: kotlin.Int declared in .testVarPostfix' type=kotlin.Unit origin=POSTFIX_DECR + CALL 'public final fun dec (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_DECR + $this: GET_VAR 'val tmp_1: kotlin.Int declared in .testVarPostfix' type=kotlin.Int origin=null + GET_VAR 'val tmp_1: kotlin.Int declared in .testVarPostfix' type=kotlin.Int origin=null FUN name:testPropPrefix visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY VAR name:p1 type:kotlin.Int [val] BLOCK type=kotlin.Int origin=PREFIX_INCR BLOCK type=kotlin.Int origin=PREFIX_INCR CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=PREFIX_INCR - : CALL 'public final fun inc (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PREFIX_INCR + : CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PREFIX_INCR $this: CALL 'public final fun (): kotlin.Int declared in ' type=kotlin.Int origin=PREFIX_INCR CALL 'public final fun (): kotlin.Int declared in ' type=kotlin.Int origin=PREFIX_INCR VAR name:p2 type:kotlin.Int [val] BLOCK type=kotlin.Int origin=PREFIX_DECR BLOCK type=kotlin.Int origin=PREFIX_DECR CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=PREFIX_DECR - : CALL 'public final fun dec (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PREFIX_DECR + : CALL 'public final fun dec (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PREFIX_DECR $this: CALL 'public final fun (): kotlin.Int declared in ' type=kotlin.Int origin=PREFIX_DECR CALL 'public final fun (): kotlin.Int declared in ' type=kotlin.Int origin=PREFIX_DECR FUN name:testPropPostfix visibility:public modality:FINAL <> () returnType:kotlin.Unit @@ -185,18 +185,18 @@ FILE fqName: fileName:/incrementDecrement.kt VAR IR_TEMPORARY_VARIABLE name:tmp_2 type:kotlin.Int [val] CALL 'public final fun (): kotlin.Int declared in ' type=kotlin.Int origin=POSTFIX_INCR CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=POSTFIX_INCR - : CALL 'public final fun inc (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_INCR - $this: GET_VAR 'val tmp_2: kotlin.Int [val] declared in .testPropPostfix' type=kotlin.Int origin=null - GET_VAR 'val tmp_2: kotlin.Int [val] declared in .testPropPostfix' type=kotlin.Int origin=null + : CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_INCR + $this: GET_VAR 'val tmp_2: kotlin.Int declared in .testPropPostfix' type=kotlin.Int origin=null + GET_VAR 'val tmp_2: kotlin.Int declared in .testPropPostfix' type=kotlin.Int origin=null VAR name:p2 type:kotlin.Int [val] BLOCK type=kotlin.Int origin=POSTFIX_DECR BLOCK type=kotlin.Int origin=POSTFIX_DECR VAR IR_TEMPORARY_VARIABLE name:tmp_3 type:kotlin.Int [val] CALL 'public final fun (): kotlin.Int declared in ' type=kotlin.Int origin=POSTFIX_DECR CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=POSTFIX_DECR - : CALL 'public final fun dec (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_DECR - $this: GET_VAR 'val tmp_3: kotlin.Int [val] declared in .testPropPostfix' type=kotlin.Int origin=null - GET_VAR 'val tmp_3: kotlin.Int [val] declared in .testPropPostfix' type=kotlin.Int origin=null + : CALL 'public final fun dec (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_DECR + $this: GET_VAR 'val tmp_3: kotlin.Int declared in .testPropPostfix' type=kotlin.Int origin=null + GET_VAR 'val tmp_3: kotlin.Int declared in .testPropPostfix' type=kotlin.Int origin=null FUN name:testArrayPrefix visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY VAR name:a1 type:kotlin.Int [val] @@ -205,32 +205,32 @@ FILE fqName: fileName:/incrementDecrement.kt CALL 'public final fun (): kotlin.IntArray declared in ' type=kotlin.IntArray origin=GET_PROPERTY VAR IR_TEMPORARY_VARIABLE name:tmp_5 type:kotlin.Int [val] CONST Int type=kotlin.Int value=0 - CALL 'public final fun set (index: kotlin.Int, value: kotlin.Int): kotlin.Unit [operator] declared in kotlin.IntArray' type=kotlin.Unit origin=PREFIX_INCR - $this: GET_VAR 'val tmp_4: kotlin.IntArray [val] declared in .testArrayPrefix' type=kotlin.IntArray origin=null - index: GET_VAR 'val tmp_5: kotlin.Int [val] declared in .testArrayPrefix' type=kotlin.Int origin=null - value: CALL 'public final fun inc (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PREFIX_INCR - $this: CALL 'public final fun get (index: kotlin.Int): kotlin.Int [operator] declared in kotlin.IntArray' type=kotlin.Int origin=PREFIX_INCR - $this: GET_VAR 'val tmp_4: kotlin.IntArray [val] declared in .testArrayPrefix' type=kotlin.IntArray origin=null - index: GET_VAR 'val tmp_5: kotlin.Int [val] declared in .testArrayPrefix' type=kotlin.Int origin=null - CALL 'public final fun get (index: kotlin.Int): kotlin.Int [operator] declared in kotlin.IntArray' type=kotlin.Int origin=PREFIX_INCR - $this: GET_VAR 'val tmp_4: kotlin.IntArray [val] declared in .testArrayPrefix' type=kotlin.IntArray origin=null - index: GET_VAR 'val tmp_5: kotlin.Int [val] declared in .testArrayPrefix' type=kotlin.Int origin=null + CALL 'public final fun set (index: kotlin.Int, value: kotlin.Int): kotlin.Unit declared in kotlin.IntArray' type=kotlin.Unit origin=PREFIX_INCR + $this: GET_VAR 'val tmp_4: kotlin.IntArray declared in .testArrayPrefix' type=kotlin.IntArray origin=null + index: GET_VAR 'val tmp_5: kotlin.Int declared in .testArrayPrefix' type=kotlin.Int origin=null + value: CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PREFIX_INCR + $this: CALL 'public final fun get (index: kotlin.Int): kotlin.Int declared in kotlin.IntArray' type=kotlin.Int origin=PREFIX_INCR + $this: GET_VAR 'val tmp_4: kotlin.IntArray declared in .testArrayPrefix' type=kotlin.IntArray origin=null + index: GET_VAR 'val tmp_5: kotlin.Int declared in .testArrayPrefix' type=kotlin.Int origin=null + CALL 'public final fun get (index: kotlin.Int): kotlin.Int declared in kotlin.IntArray' type=kotlin.Int origin=PREFIX_INCR + $this: GET_VAR 'val tmp_4: kotlin.IntArray declared in .testArrayPrefix' type=kotlin.IntArray origin=null + index: GET_VAR 'val tmp_5: kotlin.Int declared in .testArrayPrefix' type=kotlin.Int origin=null VAR name:a2 type:kotlin.Int [val] BLOCK type=kotlin.Int origin=PREFIX_DECR VAR IR_TEMPORARY_VARIABLE name:tmp_6 type:kotlin.IntArray [val] CALL 'public final fun (): kotlin.IntArray declared in ' type=kotlin.IntArray origin=GET_PROPERTY VAR IR_TEMPORARY_VARIABLE name:tmp_7 type:kotlin.Int [val] CONST Int type=kotlin.Int value=0 - CALL 'public final fun set (index: kotlin.Int, value: kotlin.Int): kotlin.Unit [operator] declared in kotlin.IntArray' type=kotlin.Unit origin=PREFIX_DECR - $this: GET_VAR 'val tmp_6: kotlin.IntArray [val] declared in .testArrayPrefix' type=kotlin.IntArray origin=null - index: GET_VAR 'val tmp_7: kotlin.Int [val] declared in .testArrayPrefix' type=kotlin.Int origin=null - value: CALL 'public final fun dec (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PREFIX_DECR - $this: CALL 'public final fun get (index: kotlin.Int): kotlin.Int [operator] declared in kotlin.IntArray' type=kotlin.Int origin=PREFIX_DECR - $this: GET_VAR 'val tmp_6: kotlin.IntArray [val] declared in .testArrayPrefix' type=kotlin.IntArray origin=null - index: GET_VAR 'val tmp_7: kotlin.Int [val] declared in .testArrayPrefix' type=kotlin.Int origin=null - CALL 'public final fun get (index: kotlin.Int): kotlin.Int [operator] declared in kotlin.IntArray' type=kotlin.Int origin=PREFIX_DECR - $this: GET_VAR 'val tmp_6: kotlin.IntArray [val] declared in .testArrayPrefix' type=kotlin.IntArray origin=null - index: GET_VAR 'val tmp_7: kotlin.Int [val] declared in .testArrayPrefix' type=kotlin.Int origin=null + CALL 'public final fun set (index: kotlin.Int, value: kotlin.Int): kotlin.Unit declared in kotlin.IntArray' type=kotlin.Unit origin=PREFIX_DECR + $this: GET_VAR 'val tmp_6: kotlin.IntArray declared in .testArrayPrefix' type=kotlin.IntArray origin=null + index: GET_VAR 'val tmp_7: kotlin.Int declared in .testArrayPrefix' type=kotlin.Int origin=null + value: CALL 'public final fun dec (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PREFIX_DECR + $this: CALL 'public final fun get (index: kotlin.Int): kotlin.Int declared in kotlin.IntArray' type=kotlin.Int origin=PREFIX_DECR + $this: GET_VAR 'val tmp_6: kotlin.IntArray declared in .testArrayPrefix' type=kotlin.IntArray origin=null + index: GET_VAR 'val tmp_7: kotlin.Int declared in .testArrayPrefix' type=kotlin.Int origin=null + CALL 'public final fun get (index: kotlin.Int): kotlin.Int declared in kotlin.IntArray' type=kotlin.Int origin=PREFIX_DECR + $this: GET_VAR 'val tmp_6: kotlin.IntArray declared in .testArrayPrefix' type=kotlin.IntArray origin=null + index: GET_VAR 'val tmp_7: kotlin.Int declared in .testArrayPrefix' type=kotlin.Int origin=null FUN name:testArrayPostfix visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY VAR name:a1 type:kotlin.Int [val] @@ -240,15 +240,15 @@ FILE fqName: fileName:/incrementDecrement.kt VAR IR_TEMPORARY_VARIABLE name:tmp_9 type:kotlin.Int [val] CONST Int type=kotlin.Int value=0 VAR IR_TEMPORARY_VARIABLE name:tmp_10 type:kotlin.Int [val] - CALL 'public final fun get (index: kotlin.Int): kotlin.Int [operator] declared in kotlin.IntArray' type=kotlin.Int origin=POSTFIX_INCR - $this: GET_VAR 'val tmp_8: kotlin.IntArray [val] declared in .testArrayPostfix' type=kotlin.IntArray origin=null - index: GET_VAR 'val tmp_9: kotlin.Int [val] declared in .testArrayPostfix' type=kotlin.Int origin=null - CALL 'public final fun set (index: kotlin.Int, value: kotlin.Int): kotlin.Unit [operator] declared in kotlin.IntArray' type=kotlin.Unit origin=POSTFIX_INCR - $this: GET_VAR 'val tmp_8: kotlin.IntArray [val] declared in .testArrayPostfix' type=kotlin.IntArray origin=null - index: GET_VAR 'val tmp_9: kotlin.Int [val] declared in .testArrayPostfix' type=kotlin.Int origin=null - value: CALL 'public final fun inc (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_INCR - $this: GET_VAR 'val tmp_10: kotlin.Int [val] declared in .testArrayPostfix' type=kotlin.Int origin=null - GET_VAR 'val tmp_10: kotlin.Int [val] declared in .testArrayPostfix' type=kotlin.Int origin=null + CALL 'public final fun get (index: kotlin.Int): kotlin.Int declared in kotlin.IntArray' type=kotlin.Int origin=POSTFIX_INCR + $this: GET_VAR 'val tmp_8: kotlin.IntArray declared in .testArrayPostfix' type=kotlin.IntArray origin=null + index: GET_VAR 'val tmp_9: kotlin.Int declared in .testArrayPostfix' type=kotlin.Int origin=null + CALL 'public final fun set (index: kotlin.Int, value: kotlin.Int): kotlin.Unit declared in kotlin.IntArray' type=kotlin.Unit origin=POSTFIX_INCR + $this: GET_VAR 'val tmp_8: kotlin.IntArray declared in .testArrayPostfix' type=kotlin.IntArray origin=null + index: GET_VAR 'val tmp_9: kotlin.Int declared in .testArrayPostfix' type=kotlin.Int origin=null + value: CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_INCR + $this: GET_VAR 'val tmp_10: kotlin.Int declared in .testArrayPostfix' type=kotlin.Int origin=null + GET_VAR 'val tmp_10: kotlin.Int declared in .testArrayPostfix' type=kotlin.Int origin=null VAR name:a2 type:kotlin.Int [val] BLOCK type=kotlin.Int origin=POSTFIX_DECR VAR IR_TEMPORARY_VARIABLE name:tmp_11 type:kotlin.IntArray [val] @@ -256,137 +256,137 @@ FILE fqName: fileName:/incrementDecrement.kt VAR IR_TEMPORARY_VARIABLE name:tmp_12 type:kotlin.Int [val] CONST Int type=kotlin.Int value=0 VAR IR_TEMPORARY_VARIABLE name:tmp_13 type:kotlin.Int [val] - CALL 'public final fun get (index: kotlin.Int): kotlin.Int [operator] declared in kotlin.IntArray' type=kotlin.Int origin=POSTFIX_DECR - $this: GET_VAR 'val tmp_11: kotlin.IntArray [val] declared in .testArrayPostfix' type=kotlin.IntArray origin=null - index: GET_VAR 'val tmp_12: kotlin.Int [val] declared in .testArrayPostfix' type=kotlin.Int origin=null - CALL 'public final fun set (index: kotlin.Int, value: kotlin.Int): kotlin.Unit [operator] declared in kotlin.IntArray' type=kotlin.Unit origin=POSTFIX_DECR - $this: GET_VAR 'val tmp_11: kotlin.IntArray [val] declared in .testArrayPostfix' type=kotlin.IntArray origin=null - index: GET_VAR 'val tmp_12: kotlin.Int [val] declared in .testArrayPostfix' type=kotlin.Int origin=null - value: CALL 'public final fun dec (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_DECR - $this: GET_VAR 'val tmp_13: kotlin.Int [val] declared in .testArrayPostfix' type=kotlin.Int origin=null - GET_VAR 'val tmp_13: kotlin.Int [val] declared in .testArrayPostfix' type=kotlin.Int origin=null + CALL 'public final fun get (index: kotlin.Int): kotlin.Int declared in kotlin.IntArray' type=kotlin.Int origin=POSTFIX_DECR + $this: GET_VAR 'val tmp_11: kotlin.IntArray declared in .testArrayPostfix' type=kotlin.IntArray origin=null + index: GET_VAR 'val tmp_12: kotlin.Int declared in .testArrayPostfix' type=kotlin.Int origin=null + CALL 'public final fun set (index: kotlin.Int, value: kotlin.Int): kotlin.Unit declared in kotlin.IntArray' type=kotlin.Unit origin=POSTFIX_DECR + $this: GET_VAR 'val tmp_11: kotlin.IntArray declared in .testArrayPostfix' type=kotlin.IntArray origin=null + index: GET_VAR 'val tmp_12: kotlin.Int declared in .testArrayPostfix' type=kotlin.Int origin=null + value: CALL 'public final fun dec (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_DECR + $this: GET_VAR 'val tmp_13: kotlin.Int declared in .testArrayPostfix' type=kotlin.Int origin=null + GET_VAR 'val tmp_13: kotlin.Int declared in .testArrayPostfix' type=kotlin.Int origin=null FUN name:testClassPropPrefix visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY VAR name:p1 type:kotlin.Int [val] BLOCK type=kotlin.Int origin=PREFIX_INCR VAR IR_TEMPORARY_VARIABLE name:tmp_14 type:.C [val] - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .C' type=.C origin=null + CONSTRUCTOR_CALL 'public constructor () declared in .C' type=.C origin=null BLOCK type=kotlin.Int origin=PREFIX_INCR CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in .C' type=kotlin.Unit origin=PREFIX_INCR - $this: GET_VAR 'val tmp_14: .C [val] declared in .testClassPropPrefix' type=.C origin=null - : CALL 'public final fun inc (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PREFIX_INCR + $this: GET_VAR 'val tmp_14: .C declared in .testClassPropPrefix' type=.C origin=null + : CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PREFIX_INCR $this: CALL 'public final fun (): kotlin.Int declared in .C' type=kotlin.Int origin=PREFIX_INCR - $this: GET_VAR 'val tmp_14: .C [val] declared in .testClassPropPrefix' type=.C origin=null + $this: GET_VAR 'val tmp_14: .C declared in .testClassPropPrefix' type=.C origin=null CALL 'public final fun (): kotlin.Int declared in .C' type=kotlin.Int origin=PREFIX_INCR - $this: GET_VAR 'val tmp_14: .C [val] declared in .testClassPropPrefix' type=.C origin=null + $this: GET_VAR 'val tmp_14: .C declared in .testClassPropPrefix' type=.C origin=null VAR name:p2 type:kotlin.Int [val] BLOCK type=kotlin.Int origin=PREFIX_DECR VAR IR_TEMPORARY_VARIABLE name:tmp_15 type:.C [val] - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .C' type=.C origin=null + CONSTRUCTOR_CALL 'public constructor () declared in .C' type=.C origin=null BLOCK type=kotlin.Int origin=PREFIX_DECR CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in .C' type=kotlin.Unit origin=PREFIX_DECR - $this: GET_VAR 'val tmp_15: .C [val] declared in .testClassPropPrefix' type=.C origin=null - : CALL 'public final fun dec (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PREFIX_DECR + $this: GET_VAR 'val tmp_15: .C declared in .testClassPropPrefix' type=.C origin=null + : CALL 'public final fun dec (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PREFIX_DECR $this: CALL 'public final fun (): kotlin.Int declared in .C' type=kotlin.Int origin=PREFIX_DECR - $this: GET_VAR 'val tmp_15: .C [val] declared in .testClassPropPrefix' type=.C origin=null + $this: GET_VAR 'val tmp_15: .C declared in .testClassPropPrefix' type=.C origin=null CALL 'public final fun (): kotlin.Int declared in .C' type=kotlin.Int origin=PREFIX_DECR - $this: GET_VAR 'val tmp_15: .C [val] declared in .testClassPropPrefix' type=.C origin=null + $this: GET_VAR 'val tmp_15: .C declared in .testClassPropPrefix' type=.C origin=null FUN name:testClassPropPostfix visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY VAR name:p1 type:kotlin.Int [val] BLOCK type=kotlin.Int origin=POSTFIX_INCR VAR IR_TEMPORARY_VARIABLE name:tmp_16 type:.C [val] - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .C' type=.C origin=null + CONSTRUCTOR_CALL 'public constructor () declared in .C' type=.C origin=null BLOCK type=kotlin.Int origin=POSTFIX_INCR VAR IR_TEMPORARY_VARIABLE name:tmp_17 type:kotlin.Int [val] CALL 'public final fun (): kotlin.Int declared in .C' type=kotlin.Int origin=POSTFIX_INCR - $this: GET_VAR 'val tmp_16: .C [val] declared in .testClassPropPostfix' type=.C origin=null + $this: GET_VAR 'val tmp_16: .C declared in .testClassPropPostfix' type=.C origin=null CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in .C' type=kotlin.Unit origin=POSTFIX_INCR - $this: GET_VAR 'val tmp_16: .C [val] declared in .testClassPropPostfix' type=.C origin=null - : CALL 'public final fun inc (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_INCR - $this: GET_VAR 'val tmp_17: kotlin.Int [val] declared in .testClassPropPostfix' type=kotlin.Int origin=null - GET_VAR 'val tmp_17: kotlin.Int [val] declared in .testClassPropPostfix' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_16: .C declared in .testClassPropPostfix' type=.C origin=null + : CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_INCR + $this: GET_VAR 'val tmp_17: kotlin.Int declared in .testClassPropPostfix' type=kotlin.Int origin=null + GET_VAR 'val tmp_17: kotlin.Int declared in .testClassPropPostfix' type=kotlin.Int origin=null VAR name:p2 type:kotlin.Int [val] BLOCK type=kotlin.Int origin=POSTFIX_DECR VAR IR_TEMPORARY_VARIABLE name:tmp_18 type:.C [val] - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .C' type=.C origin=null + CONSTRUCTOR_CALL 'public constructor () declared in .C' type=.C origin=null BLOCK type=kotlin.Int origin=POSTFIX_DECR VAR IR_TEMPORARY_VARIABLE name:tmp_19 type:kotlin.Int [val] CALL 'public final fun (): kotlin.Int declared in .C' type=kotlin.Int origin=POSTFIX_DECR - $this: GET_VAR 'val tmp_18: .C [val] declared in .testClassPropPostfix' type=.C origin=null + $this: GET_VAR 'val tmp_18: .C declared in .testClassPropPostfix' type=.C origin=null CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in .C' type=kotlin.Unit origin=POSTFIX_DECR - $this: GET_VAR 'val tmp_18: .C [val] declared in .testClassPropPostfix' type=.C origin=null - : CALL 'public final fun dec (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_DECR - $this: GET_VAR 'val tmp_19: kotlin.Int [val] declared in .testClassPropPostfix' type=kotlin.Int origin=null - GET_VAR 'val tmp_19: kotlin.Int [val] declared in .testClassPropPostfix' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_18: .C declared in .testClassPropPostfix' type=.C origin=null + : CALL 'public final fun dec (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_DECR + $this: GET_VAR 'val tmp_19: kotlin.Int declared in .testClassPropPostfix' type=kotlin.Int origin=null + GET_VAR 'val tmp_19: kotlin.Int declared in .testClassPropPostfix' type=kotlin.Int origin=null FUN name:testClassOperatorPrefix visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY VAR name:a1 type:kotlin.Int [val] BLOCK type=kotlin.Int origin=PREFIX_INCR VAR IR_TEMPORARY_VARIABLE name:tmp_20 type:.C [val] - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .C' type=.C origin=null + CONSTRUCTOR_CALL 'public constructor () declared in .C' type=.C origin=null VAR IR_TEMPORARY_VARIABLE name:tmp_21 type:kotlin.Int [val] CONST Int type=kotlin.Int value=0 - CALL 'public final fun set (i: kotlin.Int, value: kotlin.Int): kotlin.Unit [operator] declared in .C' type=kotlin.Unit origin=PREFIX_INCR - $this: GET_VAR 'val tmp_20: .C [val] declared in .testClassOperatorPrefix' type=.C origin=null - i: GET_VAR 'val tmp_21: kotlin.Int [val] declared in .testClassOperatorPrefix' type=kotlin.Int origin=null - value: CALL 'public final fun inc (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PREFIX_INCR - $this: CALL 'public final fun get (i: kotlin.Int): kotlin.Int [operator] declared in .C' type=kotlin.Int origin=PREFIX_INCR - $this: GET_VAR 'val tmp_20: .C [val] declared in .testClassOperatorPrefix' type=.C origin=null - i: GET_VAR 'val tmp_21: kotlin.Int [val] declared in .testClassOperatorPrefix' type=kotlin.Int origin=null - CALL 'public final fun get (i: kotlin.Int): kotlin.Int [operator] declared in .C' type=kotlin.Int origin=PREFIX_INCR - $this: GET_VAR 'val tmp_20: .C [val] declared in .testClassOperatorPrefix' type=.C origin=null - i: GET_VAR 'val tmp_21: kotlin.Int [val] declared in .testClassOperatorPrefix' type=kotlin.Int origin=null + CALL 'public final fun set (i: kotlin.Int, value: kotlin.Int): kotlin.Unit declared in .C' type=kotlin.Unit origin=PREFIX_INCR + $this: GET_VAR 'val tmp_20: .C declared in .testClassOperatorPrefix' type=.C origin=null + i: GET_VAR 'val tmp_21: kotlin.Int declared in .testClassOperatorPrefix' type=kotlin.Int origin=null + value: CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PREFIX_INCR + $this: CALL 'public final fun get (i: kotlin.Int): kotlin.Int declared in .C' type=kotlin.Int origin=PREFIX_INCR + $this: GET_VAR 'val tmp_20: .C declared in .testClassOperatorPrefix' type=.C origin=null + i: GET_VAR 'val tmp_21: kotlin.Int declared in .testClassOperatorPrefix' type=kotlin.Int origin=null + CALL 'public final fun get (i: kotlin.Int): kotlin.Int declared in .C' type=kotlin.Int origin=PREFIX_INCR + $this: GET_VAR 'val tmp_20: .C declared in .testClassOperatorPrefix' type=.C origin=null + i: GET_VAR 'val tmp_21: kotlin.Int declared in .testClassOperatorPrefix' type=kotlin.Int origin=null VAR name:a2 type:kotlin.Int [val] BLOCK type=kotlin.Int origin=PREFIX_DECR VAR IR_TEMPORARY_VARIABLE name:tmp_22 type:.C [val] - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .C' type=.C origin=null + CONSTRUCTOR_CALL 'public constructor () declared in .C' type=.C origin=null VAR IR_TEMPORARY_VARIABLE name:tmp_23 type:kotlin.Int [val] CONST Int type=kotlin.Int value=0 - CALL 'public final fun set (i: kotlin.Int, value: kotlin.Int): kotlin.Unit [operator] declared in .C' type=kotlin.Unit origin=PREFIX_DECR - $this: GET_VAR 'val tmp_22: .C [val] declared in .testClassOperatorPrefix' type=.C origin=null - i: GET_VAR 'val tmp_23: kotlin.Int [val] declared in .testClassOperatorPrefix' type=kotlin.Int origin=null - value: CALL 'public final fun dec (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PREFIX_DECR - $this: CALL 'public final fun get (i: kotlin.Int): kotlin.Int [operator] declared in .C' type=kotlin.Int origin=PREFIX_DECR - $this: GET_VAR 'val tmp_22: .C [val] declared in .testClassOperatorPrefix' type=.C origin=null - i: GET_VAR 'val tmp_23: kotlin.Int [val] declared in .testClassOperatorPrefix' type=kotlin.Int origin=null - CALL 'public final fun get (i: kotlin.Int): kotlin.Int [operator] declared in .C' type=kotlin.Int origin=PREFIX_DECR - $this: GET_VAR 'val tmp_22: .C [val] declared in .testClassOperatorPrefix' type=.C origin=null - i: GET_VAR 'val tmp_23: kotlin.Int [val] declared in .testClassOperatorPrefix' type=kotlin.Int origin=null + CALL 'public final fun set (i: kotlin.Int, value: kotlin.Int): kotlin.Unit declared in .C' type=kotlin.Unit origin=PREFIX_DECR + $this: GET_VAR 'val tmp_22: .C declared in .testClassOperatorPrefix' type=.C origin=null + i: GET_VAR 'val tmp_23: kotlin.Int declared in .testClassOperatorPrefix' type=kotlin.Int origin=null + value: CALL 'public final fun dec (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PREFIX_DECR + $this: CALL 'public final fun get (i: kotlin.Int): kotlin.Int declared in .C' type=kotlin.Int origin=PREFIX_DECR + $this: GET_VAR 'val tmp_22: .C declared in .testClassOperatorPrefix' type=.C origin=null + i: GET_VAR 'val tmp_23: kotlin.Int declared in .testClassOperatorPrefix' type=kotlin.Int origin=null + CALL 'public final fun get (i: kotlin.Int): kotlin.Int declared in .C' type=kotlin.Int origin=PREFIX_DECR + $this: GET_VAR 'val tmp_22: .C declared in .testClassOperatorPrefix' type=.C origin=null + i: GET_VAR 'val tmp_23: kotlin.Int declared in .testClassOperatorPrefix' type=kotlin.Int origin=null FUN name:testClassOperatorPostfix visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY VAR name:a1 type:kotlin.Int [val] BLOCK type=kotlin.Int origin=POSTFIX_INCR VAR IR_TEMPORARY_VARIABLE name:tmp_24 type:.C [val] - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .C' type=.C origin=null + CONSTRUCTOR_CALL 'public constructor () declared in .C' type=.C origin=null VAR IR_TEMPORARY_VARIABLE name:tmp_25 type:kotlin.Int [val] CONST Int type=kotlin.Int value=0 VAR IR_TEMPORARY_VARIABLE name:tmp_26 type:kotlin.Int [val] - CALL 'public final fun get (i: kotlin.Int): kotlin.Int [operator] declared in .C' type=kotlin.Int origin=POSTFIX_INCR - $this: GET_VAR 'val tmp_24: .C [val] declared in .testClassOperatorPostfix' type=.C origin=null - i: GET_VAR 'val tmp_25: kotlin.Int [val] declared in .testClassOperatorPostfix' type=kotlin.Int origin=null - CALL 'public final fun set (i: kotlin.Int, value: kotlin.Int): kotlin.Unit [operator] declared in .C' type=kotlin.Unit origin=POSTFIX_INCR - $this: GET_VAR 'val tmp_24: .C [val] declared in .testClassOperatorPostfix' type=.C origin=null - i: GET_VAR 'val tmp_25: kotlin.Int [val] declared in .testClassOperatorPostfix' type=kotlin.Int origin=null - value: CALL 'public final fun inc (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_INCR - $this: GET_VAR 'val tmp_26: kotlin.Int [val] declared in .testClassOperatorPostfix' type=kotlin.Int origin=null - GET_VAR 'val tmp_26: kotlin.Int [val] declared in .testClassOperatorPostfix' type=kotlin.Int origin=null + CALL 'public final fun get (i: kotlin.Int): kotlin.Int declared in .C' type=kotlin.Int origin=POSTFIX_INCR + $this: GET_VAR 'val tmp_24: .C declared in .testClassOperatorPostfix' type=.C origin=null + i: GET_VAR 'val tmp_25: kotlin.Int declared in .testClassOperatorPostfix' type=kotlin.Int origin=null + CALL 'public final fun set (i: kotlin.Int, value: kotlin.Int): kotlin.Unit declared in .C' type=kotlin.Unit origin=POSTFIX_INCR + $this: GET_VAR 'val tmp_24: .C declared in .testClassOperatorPostfix' type=.C origin=null + i: GET_VAR 'val tmp_25: kotlin.Int declared in .testClassOperatorPostfix' type=kotlin.Int origin=null + value: CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_INCR + $this: GET_VAR 'val tmp_26: kotlin.Int declared in .testClassOperatorPostfix' type=kotlin.Int origin=null + GET_VAR 'val tmp_26: kotlin.Int declared in .testClassOperatorPostfix' type=kotlin.Int origin=null VAR name:a2 type:kotlin.Int [val] BLOCK type=kotlin.Int origin=POSTFIX_DECR VAR IR_TEMPORARY_VARIABLE name:tmp_27 type:.C [val] - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .C' type=.C origin=null + CONSTRUCTOR_CALL 'public constructor () declared in .C' type=.C origin=null VAR IR_TEMPORARY_VARIABLE name:tmp_28 type:kotlin.Int [val] CONST Int type=kotlin.Int value=0 VAR IR_TEMPORARY_VARIABLE name:tmp_29 type:kotlin.Int [val] - CALL 'public final fun get (i: kotlin.Int): kotlin.Int [operator] declared in .C' type=kotlin.Int origin=POSTFIX_DECR - $this: GET_VAR 'val tmp_27: .C [val] declared in .testClassOperatorPostfix' type=.C origin=null - i: GET_VAR 'val tmp_28: kotlin.Int [val] declared in .testClassOperatorPostfix' type=kotlin.Int origin=null - CALL 'public final fun set (i: kotlin.Int, value: kotlin.Int): kotlin.Unit [operator] declared in .C' type=kotlin.Unit origin=POSTFIX_DECR - $this: GET_VAR 'val tmp_27: .C [val] declared in .testClassOperatorPostfix' type=.C origin=null - i: GET_VAR 'val tmp_28: kotlin.Int [val] declared in .testClassOperatorPostfix' type=kotlin.Int origin=null - value: CALL 'public final fun dec (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_DECR - $this: GET_VAR 'val tmp_29: kotlin.Int [val] declared in .testClassOperatorPostfix' type=kotlin.Int origin=null - GET_VAR 'val tmp_29: kotlin.Int [val] declared in .testClassOperatorPostfix' type=kotlin.Int origin=null + CALL 'public final fun get (i: kotlin.Int): kotlin.Int declared in .C' type=kotlin.Int origin=POSTFIX_DECR + $this: GET_VAR 'val tmp_27: .C declared in .testClassOperatorPostfix' type=.C origin=null + i: GET_VAR 'val tmp_28: kotlin.Int declared in .testClassOperatorPostfix' type=kotlin.Int origin=null + CALL 'public final fun set (i: kotlin.Int, value: kotlin.Int): kotlin.Unit declared in .C' type=kotlin.Unit origin=POSTFIX_DECR + $this: GET_VAR 'val tmp_27: .C declared in .testClassOperatorPostfix' type=.C origin=null + i: GET_VAR 'val tmp_28: kotlin.Int declared in .testClassOperatorPostfix' type=kotlin.Int origin=null + value: CALL 'public final fun dec (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_DECR + $this: GET_VAR 'val tmp_29: kotlin.Int declared in .testClassOperatorPostfix' type=kotlin.Int origin=null + GET_VAR 'val tmp_29: kotlin.Int declared in .testClassOperatorPostfix' type=kotlin.Int origin=null FUN name:testObjectPropPrefix visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY VAR name:p1 type:kotlin.Int [val] @@ -395,24 +395,24 @@ FILE fqName: fileName:/incrementDecrement.kt GET_OBJECT 'CLASS OBJECT name:O modality:FINAL visibility:public superTypes:[kotlin.Any]' type=.O BLOCK type=kotlin.Int origin=PREFIX_INCR CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in .O' type=kotlin.Unit origin=PREFIX_INCR - $this: GET_VAR 'val tmp_30: .O [val] declared in .testObjectPropPrefix' type=.O origin=null - : CALL 'public final fun inc (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PREFIX_INCR + $this: GET_VAR 'val tmp_30: .O declared in .testObjectPropPrefix' type=.O origin=null + : CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PREFIX_INCR $this: CALL 'public final fun (): kotlin.Int declared in .O' type=kotlin.Int origin=PREFIX_INCR - $this: GET_VAR 'val tmp_30: .O [val] declared in .testObjectPropPrefix' type=.O origin=null + $this: GET_VAR 'val tmp_30: .O declared in .testObjectPropPrefix' type=.O origin=null CALL 'public final fun (): kotlin.Int declared in .O' type=kotlin.Int origin=PREFIX_INCR - $this: GET_VAR 'val tmp_30: .O [val] declared in .testObjectPropPrefix' type=.O origin=null + $this: GET_VAR 'val tmp_30: .O declared in .testObjectPropPrefix' type=.O origin=null VAR name:p2 type:kotlin.Int [val] BLOCK type=kotlin.Int origin=PREFIX_DECR VAR IR_TEMPORARY_VARIABLE name:tmp_31 type:.O [val] GET_OBJECT 'CLASS OBJECT name:O modality:FINAL visibility:public superTypes:[kotlin.Any]' type=.O BLOCK type=kotlin.Int origin=PREFIX_DECR CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in .O' type=kotlin.Unit origin=PREFIX_DECR - $this: GET_VAR 'val tmp_31: .O [val] declared in .testObjectPropPrefix' type=.O origin=null - : CALL 'public final fun dec (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PREFIX_DECR + $this: GET_VAR 'val tmp_31: .O declared in .testObjectPropPrefix' type=.O origin=null + : CALL 'public final fun dec (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PREFIX_DECR $this: CALL 'public final fun (): kotlin.Int declared in .O' type=kotlin.Int origin=PREFIX_DECR - $this: GET_VAR 'val tmp_31: .O [val] declared in .testObjectPropPrefix' type=.O origin=null + $this: GET_VAR 'val tmp_31: .O declared in .testObjectPropPrefix' type=.O origin=null CALL 'public final fun (): kotlin.Int declared in .O' type=kotlin.Int origin=PREFIX_DECR - $this: GET_VAR 'val tmp_31: .O [val] declared in .testObjectPropPrefix' type=.O origin=null + $this: GET_VAR 'val tmp_31: .O declared in .testObjectPropPrefix' type=.O origin=null FUN name:testObjectPropPostfix visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY VAR name:p1 type:kotlin.Int [val] @@ -422,12 +422,12 @@ FILE fqName: fileName:/incrementDecrement.kt BLOCK type=kotlin.Int origin=POSTFIX_INCR VAR IR_TEMPORARY_VARIABLE name:tmp_33 type:kotlin.Int [val] CALL 'public final fun (): kotlin.Int declared in .O' type=kotlin.Int origin=POSTFIX_INCR - $this: GET_VAR 'val tmp_32: .O [val] declared in .testObjectPropPostfix' type=.O origin=null + $this: GET_VAR 'val tmp_32: .O declared in .testObjectPropPostfix' type=.O origin=null CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in .O' type=kotlin.Unit origin=POSTFIX_INCR - $this: GET_VAR 'val tmp_32: .O [val] declared in .testObjectPropPostfix' type=.O origin=null - : CALL 'public final fun inc (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_INCR - $this: GET_VAR 'val tmp_33: kotlin.Int [val] declared in .testObjectPropPostfix' type=kotlin.Int origin=null - GET_VAR 'val tmp_33: kotlin.Int [val] declared in .testObjectPropPostfix' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_32: .O declared in .testObjectPropPostfix' type=.O origin=null + : CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_INCR + $this: GET_VAR 'val tmp_33: kotlin.Int declared in .testObjectPropPostfix' type=kotlin.Int origin=null + GET_VAR 'val tmp_33: kotlin.Int declared in .testObjectPropPostfix' type=kotlin.Int origin=null VAR name:p2 type:kotlin.Int [val] BLOCK type=kotlin.Int origin=POSTFIX_DECR VAR IR_TEMPORARY_VARIABLE name:tmp_34 type:.O [val] @@ -435,12 +435,12 @@ FILE fqName: fileName:/incrementDecrement.kt BLOCK type=kotlin.Int origin=POSTFIX_DECR VAR IR_TEMPORARY_VARIABLE name:tmp_35 type:kotlin.Int [val] CALL 'public final fun (): kotlin.Int declared in .O' type=kotlin.Int origin=POSTFIX_DECR - $this: GET_VAR 'val tmp_34: .O [val] declared in .testObjectPropPostfix' type=.O origin=null + $this: GET_VAR 'val tmp_34: .O declared in .testObjectPropPostfix' type=.O origin=null CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in .O' type=kotlin.Unit origin=POSTFIX_DECR - $this: GET_VAR 'val tmp_34: .O [val] declared in .testObjectPropPostfix' type=.O origin=null - : CALL 'public final fun dec (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_DECR - $this: GET_VAR 'val tmp_35: kotlin.Int [val] declared in .testObjectPropPostfix' type=kotlin.Int origin=null - GET_VAR 'val tmp_35: kotlin.Int [val] declared in .testObjectPropPostfix' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_34: .O declared in .testObjectPropPostfix' type=.O origin=null + : CALL 'public final fun dec (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_DECR + $this: GET_VAR 'val tmp_35: kotlin.Int declared in .testObjectPropPostfix' type=kotlin.Int origin=null + GET_VAR 'val tmp_35: kotlin.Int declared in .testObjectPropPostfix' type=kotlin.Int origin=null FUN name:testObjectOperatorPrefix visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY VAR name:a1 type:kotlin.Int [val] @@ -449,32 +449,32 @@ FILE fqName: fileName:/incrementDecrement.kt GET_OBJECT 'CLASS OBJECT name:O modality:FINAL visibility:public superTypes:[kotlin.Any]' type=.O VAR IR_TEMPORARY_VARIABLE name:tmp_37 type:kotlin.Int [val] CONST Int type=kotlin.Int value=0 - CALL 'public final fun set (i: kotlin.Int, value: kotlin.Int): kotlin.Unit [operator] declared in .O' type=kotlin.Unit origin=PREFIX_INCR - $this: GET_VAR 'val tmp_36: .O [val] declared in .testObjectOperatorPrefix' type=.O origin=null - i: GET_VAR 'val tmp_37: kotlin.Int [val] declared in .testObjectOperatorPrefix' type=kotlin.Int origin=null - value: CALL 'public final fun inc (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PREFIX_INCR - $this: CALL 'public final fun get (i: kotlin.Int): kotlin.Int [operator] declared in .O' type=kotlin.Int origin=PREFIX_INCR - $this: GET_VAR 'val tmp_36: .O [val] declared in .testObjectOperatorPrefix' type=.O origin=null - i: GET_VAR 'val tmp_37: kotlin.Int [val] declared in .testObjectOperatorPrefix' type=kotlin.Int origin=null - CALL 'public final fun get (i: kotlin.Int): kotlin.Int [operator] declared in .O' type=kotlin.Int origin=PREFIX_INCR - $this: GET_VAR 'val tmp_36: .O [val] declared in .testObjectOperatorPrefix' type=.O origin=null - i: GET_VAR 'val tmp_37: kotlin.Int [val] declared in .testObjectOperatorPrefix' type=kotlin.Int origin=null + CALL 'public final fun set (i: kotlin.Int, value: kotlin.Int): kotlin.Unit declared in .O' type=kotlin.Unit origin=PREFIX_INCR + $this: GET_VAR 'val tmp_36: .O declared in .testObjectOperatorPrefix' type=.O origin=null + i: GET_VAR 'val tmp_37: kotlin.Int declared in .testObjectOperatorPrefix' type=kotlin.Int origin=null + value: CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PREFIX_INCR + $this: CALL 'public final fun get (i: kotlin.Int): kotlin.Int declared in .O' type=kotlin.Int origin=PREFIX_INCR + $this: GET_VAR 'val tmp_36: .O declared in .testObjectOperatorPrefix' type=.O origin=null + i: GET_VAR 'val tmp_37: kotlin.Int declared in .testObjectOperatorPrefix' type=kotlin.Int origin=null + CALL 'public final fun get (i: kotlin.Int): kotlin.Int declared in .O' type=kotlin.Int origin=PREFIX_INCR + $this: GET_VAR 'val tmp_36: .O declared in .testObjectOperatorPrefix' type=.O origin=null + i: GET_VAR 'val tmp_37: kotlin.Int declared in .testObjectOperatorPrefix' type=kotlin.Int origin=null VAR name:a2 type:kotlin.Int [val] BLOCK type=kotlin.Int origin=PREFIX_DECR VAR IR_TEMPORARY_VARIABLE name:tmp_38 type:.O [val] GET_OBJECT 'CLASS OBJECT name:O modality:FINAL visibility:public superTypes:[kotlin.Any]' type=.O VAR IR_TEMPORARY_VARIABLE name:tmp_39 type:kotlin.Int [val] CONST Int type=kotlin.Int value=0 - CALL 'public final fun set (i: kotlin.Int, value: kotlin.Int): kotlin.Unit [operator] declared in .O' type=kotlin.Unit origin=PREFIX_DECR - $this: GET_VAR 'val tmp_38: .O [val] declared in .testObjectOperatorPrefix' type=.O origin=null - i: GET_VAR 'val tmp_39: kotlin.Int [val] declared in .testObjectOperatorPrefix' type=kotlin.Int origin=null - value: CALL 'public final fun dec (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PREFIX_DECR - $this: CALL 'public final fun get (i: kotlin.Int): kotlin.Int [operator] declared in .O' type=kotlin.Int origin=PREFIX_DECR - $this: GET_VAR 'val tmp_38: .O [val] declared in .testObjectOperatorPrefix' type=.O origin=null - i: GET_VAR 'val tmp_39: kotlin.Int [val] declared in .testObjectOperatorPrefix' type=kotlin.Int origin=null - CALL 'public final fun get (i: kotlin.Int): kotlin.Int [operator] declared in .O' type=kotlin.Int origin=PREFIX_DECR - $this: GET_VAR 'val tmp_38: .O [val] declared in .testObjectOperatorPrefix' type=.O origin=null - i: GET_VAR 'val tmp_39: kotlin.Int [val] declared in .testObjectOperatorPrefix' type=kotlin.Int origin=null + CALL 'public final fun set (i: kotlin.Int, value: kotlin.Int): kotlin.Unit declared in .O' type=kotlin.Unit origin=PREFIX_DECR + $this: GET_VAR 'val tmp_38: .O declared in .testObjectOperatorPrefix' type=.O origin=null + i: GET_VAR 'val tmp_39: kotlin.Int declared in .testObjectOperatorPrefix' type=kotlin.Int origin=null + value: CALL 'public final fun dec (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PREFIX_DECR + $this: CALL 'public final fun get (i: kotlin.Int): kotlin.Int declared in .O' type=kotlin.Int origin=PREFIX_DECR + $this: GET_VAR 'val tmp_38: .O declared in .testObjectOperatorPrefix' type=.O origin=null + i: GET_VAR 'val tmp_39: kotlin.Int declared in .testObjectOperatorPrefix' type=kotlin.Int origin=null + CALL 'public final fun get (i: kotlin.Int): kotlin.Int declared in .O' type=kotlin.Int origin=PREFIX_DECR + $this: GET_VAR 'val tmp_38: .O declared in .testObjectOperatorPrefix' type=.O origin=null + i: GET_VAR 'val tmp_39: kotlin.Int declared in .testObjectOperatorPrefix' type=kotlin.Int origin=null FUN name:testObjectOperatorPostfix visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY VAR name:a1 type:kotlin.Int [val] @@ -484,15 +484,15 @@ FILE fqName: fileName:/incrementDecrement.kt VAR IR_TEMPORARY_VARIABLE name:tmp_41 type:kotlin.Int [val] CONST Int type=kotlin.Int value=0 VAR IR_TEMPORARY_VARIABLE name:tmp_42 type:kotlin.Int [val] - CALL 'public final fun get (i: kotlin.Int): kotlin.Int [operator] declared in .O' type=kotlin.Int origin=POSTFIX_INCR - $this: GET_VAR 'val tmp_40: .O [val] declared in .testObjectOperatorPostfix' type=.O origin=null - i: GET_VAR 'val tmp_41: kotlin.Int [val] declared in .testObjectOperatorPostfix' type=kotlin.Int origin=null - CALL 'public final fun set (i: kotlin.Int, value: kotlin.Int): kotlin.Unit [operator] declared in .O' type=kotlin.Unit origin=POSTFIX_INCR - $this: GET_VAR 'val tmp_40: .O [val] declared in .testObjectOperatorPostfix' type=.O origin=null - i: GET_VAR 'val tmp_41: kotlin.Int [val] declared in .testObjectOperatorPostfix' type=kotlin.Int origin=null - value: CALL 'public final fun inc (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_INCR - $this: GET_VAR 'val tmp_42: kotlin.Int [val] declared in .testObjectOperatorPostfix' type=kotlin.Int origin=null - GET_VAR 'val tmp_42: kotlin.Int [val] declared in .testObjectOperatorPostfix' type=kotlin.Int origin=null + CALL 'public final fun get (i: kotlin.Int): kotlin.Int declared in .O' type=kotlin.Int origin=POSTFIX_INCR + $this: GET_VAR 'val tmp_40: .O declared in .testObjectOperatorPostfix' type=.O origin=null + i: GET_VAR 'val tmp_41: kotlin.Int declared in .testObjectOperatorPostfix' type=kotlin.Int origin=null + CALL 'public final fun set (i: kotlin.Int, value: kotlin.Int): kotlin.Unit declared in .O' type=kotlin.Unit origin=POSTFIX_INCR + $this: GET_VAR 'val tmp_40: .O declared in .testObjectOperatorPostfix' type=.O origin=null + i: GET_VAR 'val tmp_41: kotlin.Int declared in .testObjectOperatorPostfix' type=kotlin.Int origin=null + value: CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_INCR + $this: GET_VAR 'val tmp_42: kotlin.Int declared in .testObjectOperatorPostfix' type=kotlin.Int origin=null + GET_VAR 'val tmp_42: kotlin.Int declared in .testObjectOperatorPostfix' type=kotlin.Int origin=null VAR name:a2 type:kotlin.Int [val] BLOCK type=kotlin.Int origin=POSTFIX_DECR VAR IR_TEMPORARY_VARIABLE name:tmp_43 type:.O [val] @@ -500,12 +500,12 @@ FILE fqName: fileName:/incrementDecrement.kt VAR IR_TEMPORARY_VARIABLE name:tmp_44 type:kotlin.Int [val] CONST Int type=kotlin.Int value=0 VAR IR_TEMPORARY_VARIABLE name:tmp_45 type:kotlin.Int [val] - CALL 'public final fun get (i: kotlin.Int): kotlin.Int [operator] declared in .O' type=kotlin.Int origin=POSTFIX_DECR - $this: GET_VAR 'val tmp_43: .O [val] declared in .testObjectOperatorPostfix' type=.O origin=null - i: GET_VAR 'val tmp_44: kotlin.Int [val] declared in .testObjectOperatorPostfix' type=kotlin.Int origin=null - CALL 'public final fun set (i: kotlin.Int, value: kotlin.Int): kotlin.Unit [operator] declared in .O' type=kotlin.Unit origin=POSTFIX_DECR - $this: GET_VAR 'val tmp_43: .O [val] declared in .testObjectOperatorPostfix' type=.O origin=null - i: GET_VAR 'val tmp_44: kotlin.Int [val] declared in .testObjectOperatorPostfix' type=kotlin.Int origin=null - value: CALL 'public final fun dec (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_DECR - $this: GET_VAR 'val tmp_45: kotlin.Int [val] declared in .testObjectOperatorPostfix' type=kotlin.Int origin=null - GET_VAR 'val tmp_45: kotlin.Int [val] declared in .testObjectOperatorPostfix' type=kotlin.Int origin=null + CALL 'public final fun get (i: kotlin.Int): kotlin.Int declared in .O' type=kotlin.Int origin=POSTFIX_DECR + $this: GET_VAR 'val tmp_43: .O declared in .testObjectOperatorPostfix' type=.O origin=null + i: GET_VAR 'val tmp_44: kotlin.Int declared in .testObjectOperatorPostfix' type=kotlin.Int origin=null + CALL 'public final fun set (i: kotlin.Int, value: kotlin.Int): kotlin.Unit declared in .O' type=kotlin.Unit origin=POSTFIX_DECR + $this: GET_VAR 'val tmp_43: .O declared in .testObjectOperatorPostfix' type=.O origin=null + i: GET_VAR 'val tmp_44: kotlin.Int declared in .testObjectOperatorPostfix' type=kotlin.Int origin=null + value: CALL 'public final fun dec (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_DECR + $this: GET_VAR 'val tmp_45: kotlin.Int declared in .testObjectOperatorPostfix' type=kotlin.Int origin=null + GET_VAR 'val tmp_45: kotlin.Int declared in .testObjectOperatorPostfix' type=kotlin.Int origin=null diff --git a/compiler/testData/ir/irText/expressions/incrementDecrement.kt b/compiler/testData/ir/irText/expressions/incrementDecrement.kt index 3b6a8a33ec7..e082d8609d0 100644 --- a/compiler/testData/ir/irText/expressions/incrementDecrement.kt +++ b/compiler/testData/ir/irText/expressions/incrementDecrement.kt @@ -1,6 +1,3 @@ -// IGNORE_BACKEND: JS_IR -// IGNORE_BACKEND: JS_IR_ES6 - var p: Int = 0 val arr = intArrayOf(1, 2, 3) diff --git a/compiler/testData/ir/irText/expressions/inlinedBreakContinue.ir.txt b/compiler/testData/ir/irText/expressions/inlinedBreakContinue.ir.txt index e56793bcc45..8ab672b9cf5 100644 --- a/compiler/testData/ir/irText/expressions/inlinedBreakContinue.ir.txt +++ b/compiler/testData/ir/irText/expressions/inlinedBreakContinue.ir.txt @@ -2,37 +2,37 @@ FILE fqName: fileName:/inlinedBreakContinue.kt FUN name:foo visibility:public modality:FINAL <> (block:kotlin.Function0) returnType:kotlin.Unit [inline] VALUE_PARAMETER name:block index:0 type:kotlin.Function0 BLOCK_BODY - CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=kotlin.Unit origin=INVOKE + CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=kotlin.Unit origin=INVOKE $this: GET_VAR 'block: kotlin.Function0 declared in .foo' type=kotlin.Function0 origin=VARIABLE_AS_FUNCTION FUN name:bar visibility:public modality:FINAL <> (block1:kotlin.Function0, block2:kotlin.Function0) returnType:kotlin.Unit [inline] VALUE_PARAMETER name:block1 index:0 type:kotlin.Function0 VALUE_PARAMETER name:block2 index:1 type:kotlin.Function0 [noinline] BLOCK_BODY - CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=kotlin.Unit origin=INVOKE + CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=kotlin.Unit origin=INVOKE $this: GET_VAR 'block1: kotlin.Function0 declared in .bar' type=kotlin.Function0 origin=VARIABLE_AS_FUNCTION - CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=kotlin.Unit origin=INVOKE - $this: GET_VAR 'block2: kotlin.Function0 [noinline] declared in .bar' type=kotlin.Function0 origin=VARIABLE_AS_FUNCTION + CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=kotlin.Unit origin=INVOKE + $this: GET_VAR 'block2: kotlin.Function0 declared in .bar' type=kotlin.Function0 origin=VARIABLE_AS_FUNCTION FUN name:test1 visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY WHILE label=null origin=WHILE_LOOP condition: CONST Boolean type=kotlin.Boolean value=true body: BLOCK type=kotlin.Unit origin=null - CALL 'public final fun foo (block: kotlin.Function0): kotlin.Unit [inline] declared in ' type=kotlin.Unit origin=null + CALL 'public final fun foo (block: kotlin.Function0): kotlin.Unit declared in ' type=kotlin.Unit origin=null block: FUN_EXPR type=kotlin.Function0 origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY BREAK label=null loop.label=null - CALL 'public final fun foo (block: kotlin.Function0): kotlin.Unit [inline] declared in ' type=kotlin.Unit origin=null + CALL 'public final fun foo (block: kotlin.Function0): kotlin.Unit declared in ' type=kotlin.Unit origin=null block: FUN_EXPR type=kotlin.Function0 origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY CONTINUE label=null loop.label=null - CALL 'public final fun foo (block: kotlin.Function0): kotlin.Unit [inline] declared in ' type=kotlin.Unit origin=null + CALL 'public final fun foo (block: kotlin.Function0): kotlin.Unit declared in ' type=kotlin.Unit origin=null block: FUN_EXPR type=kotlin.Function0 origin=ANONYMOUS_FUNCTION FUN LOCAL_FUNCTION name: visibility:local modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY BREAK label=null loop.label=null - CALL 'public final fun foo (block: kotlin.Function0): kotlin.Unit [inline] declared in ' type=kotlin.Unit origin=null + CALL 'public final fun foo (block: kotlin.Function0): kotlin.Unit declared in ' type=kotlin.Unit origin=null block: FUN_EXPR type=kotlin.Function0 origin=ANONYMOUS_FUNCTION FUN LOCAL_FUNCTION name: visibility:local modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY @@ -42,7 +42,7 @@ FILE fqName: fileName:/inlinedBreakContinue.kt WHILE label=null origin=WHILE_LOOP condition: CONST Boolean type=kotlin.Boolean value=true body: BLOCK type=kotlin.Unit origin=null - CALL 'public final fun bar (block1: kotlin.Function0, block2: kotlin.Function0): kotlin.Unit [inline] declared in ' type=kotlin.Unit origin=null + CALL 'public final fun bar (block1: kotlin.Function0, block2: kotlin.Function0): kotlin.Unit declared in ' type=kotlin.Unit origin=null block1: FUN_EXPR type=kotlin.Function0 origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY @@ -52,7 +52,7 @@ FILE fqName: fileName:/inlinedBreakContinue.kt BLOCK_BODY RETURN type=kotlin.Nothing from='local final fun (): kotlin.Unit declared in .test2' GET_OBJECT 'CLASS IR_EXTERNAL_DECLARATION_STUB OBJECT name:Unit modality:FINAL visibility:public superTypes:[kotlin.Any]' type=kotlin.Unit - CALL 'public final fun bar (block1: kotlin.Function0, block2: kotlin.Function0): kotlin.Unit [inline] declared in ' type=kotlin.Unit origin=null + CALL 'public final fun bar (block1: kotlin.Function0, block2: kotlin.Function0): kotlin.Unit declared in ' type=kotlin.Unit origin=null block1: FUN_EXPR type=kotlin.Function0 origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY @@ -62,7 +62,7 @@ FILE fqName: fileName:/inlinedBreakContinue.kt BLOCK_BODY RETURN type=kotlin.Nothing from='local final fun (): kotlin.Unit declared in .test2' GET_OBJECT 'CLASS IR_EXTERNAL_DECLARATION_STUB OBJECT name:Unit modality:FINAL visibility:public superTypes:[kotlin.Any]' type=kotlin.Unit - CALL 'public final fun bar (block1: kotlin.Function0, block2: kotlin.Function0): kotlin.Unit [inline] declared in ' type=kotlin.Unit origin=null + CALL 'public final fun bar (block1: kotlin.Function0, block2: kotlin.Function0): kotlin.Unit declared in ' type=kotlin.Unit origin=null block1: FUN_EXPR type=kotlin.Function0 origin=ANONYMOUS_FUNCTION FUN LOCAL_FUNCTION name: visibility:local modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY @@ -70,7 +70,7 @@ FILE fqName: fileName:/inlinedBreakContinue.kt block2: FUN_EXPR type=kotlin.Function0 origin=ANONYMOUS_FUNCTION FUN LOCAL_FUNCTION name: visibility:local modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY - CALL 'public final fun bar (block1: kotlin.Function0, block2: kotlin.Function0): kotlin.Unit [inline] declared in ' type=kotlin.Unit origin=null + CALL 'public final fun bar (block1: kotlin.Function0, block2: kotlin.Function0): kotlin.Unit declared in ' type=kotlin.Unit origin=null block1: FUN_EXPR type=kotlin.Function0 origin=ANONYMOUS_FUNCTION FUN LOCAL_FUNCTION name: visibility:local modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY diff --git a/compiler/testData/ir/irText/expressions/interfaceThisRef.ir.txt b/compiler/testData/ir/irText/expressions/interfaceThisRef.ir.txt index 2df616825ed..2284b7311ab 100644 --- a/compiler/testData/ir/irText/expressions/interfaceThisRef.ir.txt +++ b/compiler/testData/ir/irText/expressions/interfaceThisRef.ir.txt @@ -10,7 +10,7 @@ FILE fqName: fileName:/interfaceThisRef.kt $this: GET_VAR ': .IFoo declared in .IFoo.bar' type=.IFoo 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/expressions/javaSyntheticGenericPropretyAccess.fir.ir.txt b/compiler/testData/ir/irText/expressions/javaSyntheticGenericPropretyAccess.fir.ir.txt index 0782fdd2a66..961184bbaa0 100644 --- a/compiler/testData/ir/irText/expressions/javaSyntheticGenericPropretyAccess.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/javaSyntheticGenericPropretyAccess.fir.ir.txt @@ -15,15 +15,15 @@ FILE fqName: fileName:/javaSyntheticGenericPropertyAccess.kt GET_VAR 'j: .J.test> declared in .test' type=.J.test> origin=null VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:kotlin.Int [val] CALL 'public open fun getFoo (): kotlin.Int declared in .J' type=kotlin.Int origin=GET_PROPERTY - $this: GET_VAR 'val tmp_0: .J.test> [val] declared in .test' type=.J.test> origin=null + $this: GET_VAR 'val tmp_0: .J.test> declared in .test' type=.J.test> origin=null CALL 'public open fun setFoo (x: kotlin.Int): kotlin.Unit declared in .J' type=kotlin.Unit origin=EQ - $this: GET_VAR 'val tmp_0: .J.test> [val] declared in .test' type=.J.test> origin=null - x: CALL 'public final fun inc (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp_1: kotlin.Int [val] declared in .test' type=kotlin.Int origin=null - GET_VAR 'val tmp_1: kotlin.Int [val] declared in .test' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_0: .J.test> declared in .test' type=.J.test> origin=null + x: CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_1: kotlin.Int declared in .test' type=kotlin.Int origin=null + GET_VAR 'val tmp_1: kotlin.Int declared in .test' type=kotlin.Int origin=null CALL 'public open fun setFoo (x: kotlin.Int): kotlin.Unit declared in .J' type=kotlin.Unit origin=EQ $this: GET_VAR 'j: .J.test> declared in .test' type=.J.test> origin=null - x: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null + x: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: CALL 'public open fun getFoo (): kotlin.Int declared in .J' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR 'j: .J.test> declared in .test' type=.J.test> origin=null other: CONST Int type=kotlin.Int value=1 diff --git a/compiler/testData/ir/irText/expressions/javaSyntheticGenericPropretyAccess.ir.txt b/compiler/testData/ir/irText/expressions/javaSyntheticGenericPropretyAccess.ir.txt index cac1486291c..934d20e3569 100644 --- a/compiler/testData/ir/irText/expressions/javaSyntheticGenericPropretyAccess.ir.txt +++ b/compiler/testData/ir/irText/expressions/javaSyntheticGenericPropretyAccess.ir.txt @@ -19,21 +19,21 @@ FILE fqName: fileName:/javaSyntheticGenericPropertyAccess.kt VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:kotlin.Int [val] CALL 'public open fun getFoo (): kotlin.Int declared in .J' type=kotlin.Int origin=POSTFIX_INCR <1>: F of .test - $this: GET_VAR 'val tmp_0: .J.test> [val] declared in .test' type=.J.test> origin=null + $this: GET_VAR 'val tmp_0: .J.test> declared in .test' type=.J.test> origin=null CALL 'public open fun setFoo (x: kotlin.Int): kotlin.Unit declared in .J' type=kotlin.Unit origin=POSTFIX_INCR <1>: F of .test - $this: GET_VAR 'val tmp_0: .J.test> [val] declared in .test' type=.J.test> origin=null - x: CALL 'public final fun inc (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_INCR - $this: GET_VAR 'val tmp_1: kotlin.Int [val] declared in .test' type=kotlin.Int origin=null - GET_VAR 'val tmp_1: kotlin.Int [val] declared in .test' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_0: .J.test> declared in .test' type=.J.test> origin=null + x: CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_INCR + $this: GET_VAR 'val tmp_1: kotlin.Int declared in .test' type=kotlin.Int origin=null + GET_VAR 'val tmp_1: kotlin.Int declared in .test' type=kotlin.Int origin=null BLOCK type=kotlin.Unit origin=PLUSEQ VAR IR_TEMPORARY_VARIABLE name:tmp_2 type:.J.test> [val] GET_VAR 'j: .J.test> declared in .test' type=.J.test> origin=null CALL 'public open fun setFoo (x: kotlin.Int): kotlin.Unit declared in .J' type=kotlin.Unit origin=PLUSEQ <1>: F of .test - $this: GET_VAR 'val tmp_2: .J.test> [val] declared in .test' type=.J.test> origin=null - x: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ + $this: GET_VAR 'val tmp_2: .J.test> declared in .test' type=.J.test> origin=null + x: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ $this: CALL 'public open fun getFoo (): kotlin.Int declared in .J' type=kotlin.Int origin=PLUSEQ <1>: F of .test - $this: GET_VAR 'val tmp_2: .J.test> [val] declared in .test' type=.J.test> origin=null + $this: GET_VAR 'val tmp_2: .J.test> declared in .test' type=.J.test> origin=null other: CONST Int type=kotlin.Int value=1 diff --git a/compiler/testData/ir/irText/expressions/javaSyntheticPropertyAccess.fir.ir.txt b/compiler/testData/ir/irText/expressions/javaSyntheticPropertyAccess.fir.ir.txt index d4fe8f4ac6d..b39012018ab 100644 --- a/compiler/testData/ir/irText/expressions/javaSyntheticPropertyAccess.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/javaSyntheticPropertyAccess.fir.ir.txt @@ -14,15 +14,15 @@ FILE fqName: fileName:/javaSyntheticPropertyAccess.kt GET_VAR 'j: .J declared in .test' type=.J origin=null VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:kotlin.Int [val] CALL 'public open fun getFoo (): kotlin.Int declared in .J' type=kotlin.Int origin=GET_PROPERTY - $this: GET_VAR 'val tmp_0: .J [val] declared in .test' type=.J origin=null + $this: GET_VAR 'val tmp_0: .J declared in .test' type=.J origin=null CALL 'public open fun setFoo (x: kotlin.Int): kotlin.Unit declared in .J' type=kotlin.Unit origin=EQ - $this: GET_VAR 'val tmp_0: .J [val] declared in .test' type=.J origin=null - x: CALL 'public final fun inc (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp_1: kotlin.Int [val] declared in .test' type=kotlin.Int origin=null - GET_VAR 'val tmp_1: kotlin.Int [val] declared in .test' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_0: .J declared in .test' type=.J origin=null + x: CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_1: kotlin.Int declared in .test' type=kotlin.Int origin=null + GET_VAR 'val tmp_1: kotlin.Int declared in .test' type=kotlin.Int origin=null CALL 'public open fun setFoo (x: kotlin.Int): kotlin.Unit declared in .J' type=kotlin.Unit origin=EQ $this: GET_VAR 'j: .J declared in .test' type=.J origin=null - x: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null + x: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: CALL 'public open fun getFoo (): kotlin.Int declared in .J' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR 'j: .J declared in .test' type=.J origin=null other: CONST Int type=kotlin.Int value=1 diff --git a/compiler/testData/ir/irText/expressions/javaSyntheticPropertyAccess.ir.txt b/compiler/testData/ir/irText/expressions/javaSyntheticPropertyAccess.ir.txt index 424ae63f43d..362a6b689f8 100644 --- a/compiler/testData/ir/irText/expressions/javaSyntheticPropertyAccess.ir.txt +++ b/compiler/testData/ir/irText/expressions/javaSyntheticPropertyAccess.ir.txt @@ -15,18 +15,18 @@ FILE fqName: fileName:/javaSyntheticPropertyAccess.kt BLOCK type=kotlin.Int origin=POSTFIX_INCR VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:kotlin.Int [val] CALL 'public open fun getFoo (): kotlin.Int declared in .J' type=kotlin.Int origin=POSTFIX_INCR - $this: GET_VAR 'val tmp_0: .J [val] declared in .test' type=.J origin=null + $this: GET_VAR 'val tmp_0: .J declared in .test' type=.J origin=null CALL 'public open fun setFoo (x: kotlin.Int): kotlin.Unit declared in .J' type=kotlin.Unit origin=POSTFIX_INCR - $this: GET_VAR 'val tmp_0: .J [val] declared in .test' type=.J origin=null - x: CALL 'public final fun inc (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_INCR - $this: GET_VAR 'val tmp_1: kotlin.Int [val] declared in .test' type=kotlin.Int origin=null - GET_VAR 'val tmp_1: kotlin.Int [val] declared in .test' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_0: .J declared in .test' type=.J origin=null + x: CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_INCR + $this: GET_VAR 'val tmp_1: kotlin.Int declared in .test' type=kotlin.Int origin=null + GET_VAR 'val tmp_1: kotlin.Int declared in .test' type=kotlin.Int origin=null BLOCK type=kotlin.Unit origin=PLUSEQ VAR IR_TEMPORARY_VARIABLE name:tmp_2 type:.J [val] GET_VAR 'j: .J declared in .test' type=.J origin=null CALL 'public open fun setFoo (x: kotlin.Int): kotlin.Unit declared in .J' type=kotlin.Unit origin=PLUSEQ - $this: GET_VAR 'val tmp_2: .J [val] declared in .test' type=.J origin=null - x: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ + $this: GET_VAR 'val tmp_2: .J declared in .test' type=.J origin=null + x: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ $this: CALL 'public open fun getFoo (): kotlin.Int declared in .J' type=kotlin.Int origin=PLUSEQ - $this: GET_VAR 'val tmp_2: .J [val] declared in .test' type=.J origin=null + $this: GET_VAR 'val tmp_2: .J declared in .test' type=.J origin=null other: CONST Int type=kotlin.Int value=1 diff --git a/compiler/testData/ir/irText/expressions/jvmFieldReferenceWithIntersectionTypes.fir.ir.txt b/compiler/testData/ir/irText/expressions/jvmFieldReferenceWithIntersectionTypes.fir.ir.txt index cc6144dec77..0f3cd0004a1 100644 --- a/compiler/testData/ir/irText/expressions/jvmFieldReferenceWithIntersectionTypes.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/jvmFieldReferenceWithIntersectionTypes.fir.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/jvmFieldWithIntersectionTypes.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.IFoo 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -18,145 +18,145 @@ FILE fqName: fileName:/jvmFieldWithIntersectionTypes.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Derived1 CONSTRUCTOR visibility:public <> () returnType:.Derived1 [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .JFieldOwner' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .JFieldOwner' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Derived1 modality:FINAL visibility:public superTypes:[.JFieldOwner; .IFoo]' 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 .JFieldOwner - public open fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .IFoo + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .JFieldOwner + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IFoo $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 .JFieldOwner - public open fun hashCode (): kotlin.Int [fake_override] declared in .IFoo + public open fun hashCode (): kotlin.Int declared in .JFieldOwner + public open fun hashCode (): kotlin.Int declared in .IFoo $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 .JFieldOwner - public open fun toString (): kotlin.String [fake_override] declared in .IFoo + public open fun toString (): kotlin.String declared in .JFieldOwner + public open fun toString (): kotlin.String declared in .IFoo $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:Derived2 modality:FINAL visibility:public superTypes:[.JFieldOwner; .IFoo] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Derived2 CONSTRUCTOR visibility:public <> () returnType:.Derived2 [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .JFieldOwner' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .JFieldOwner' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Derived2 modality:FINAL visibility:public superTypes:[.JFieldOwner; .IFoo]' 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 .JFieldOwner - public open fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .IFoo + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .JFieldOwner + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IFoo $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 .JFieldOwner - public open fun hashCode (): kotlin.Int [fake_override] declared in .IFoo + public open fun hashCode (): kotlin.Int declared in .JFieldOwner + public open fun hashCode (): kotlin.Int declared in .IFoo $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 .JFieldOwner - public open fun toString (): kotlin.String [fake_override] declared in .IFoo + public open fun toString (): kotlin.String declared in .JFieldOwner + public open fun toString (): kotlin.String declared in .IFoo $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:Mid modality:OPEN visibility:public superTypes:[.JFieldOwner] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Mid CONSTRUCTOR visibility:public <> () returnType:.Mid [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .JFieldOwner' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .JFieldOwner' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Mid modality:OPEN visibility:public superTypes:[.JFieldOwner]' 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 .JFieldOwner + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .JFieldOwner $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 .JFieldOwner + public open fun hashCode (): kotlin.Int declared in .JFieldOwner $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 .JFieldOwner + public open fun toString (): kotlin.String declared in .JFieldOwner $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:DerivedThroughMid1 modality:FINAL visibility:public superTypes:[.Mid; .IFoo] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.DerivedThroughMid1 CONSTRUCTOR visibility:public <> () returnType:.DerivedThroughMid1 [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .Mid' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .Mid' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:DerivedThroughMid1 modality:FINAL visibility:public superTypes:[.Mid; .IFoo]' 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 .Mid - public open fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .IFoo + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Mid + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IFoo $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 .Mid - public open fun hashCode (): kotlin.Int [fake_override] declared in .IFoo + public open fun hashCode (): kotlin.Int declared in .Mid + public open fun hashCode (): kotlin.Int declared in .IFoo $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 .Mid - public open fun toString (): kotlin.String [fake_override] declared in .IFoo + public open fun toString (): kotlin.String declared in .Mid + public open fun toString (): kotlin.String declared in .IFoo $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:DerivedThroughMid2 modality:FINAL visibility:public superTypes:[.Mid; .IFoo] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.DerivedThroughMid2 CONSTRUCTOR visibility:public <> () returnType:.DerivedThroughMid2 [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .Mid' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .Mid' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:DerivedThroughMid2 modality:FINAL visibility:public superTypes:[.Mid; .IFoo]' 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 .Mid - public open fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .IFoo + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Mid + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IFoo $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 .Mid - public open fun hashCode (): kotlin.Int [fake_override] declared in .IFoo + public open fun hashCode (): kotlin.Int declared in .Mid + public open fun hashCode (): kotlin.Int declared in .IFoo $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 .Mid - public open fun toString (): kotlin.String [fake_override] declared in .IFoo + public open fun toString (): kotlin.String declared in .Mid + public open fun toString (): kotlin.String declared in .IFoo $this: VALUE_PARAMETER name: type:kotlin.Any FUN name:test visibility:public modality:FINAL <> (b:kotlin.Boolean) returnType:kotlin.Unit VALUE_PARAMETER name:b index:0 type:kotlin.Boolean BLOCK_BODY VAR name:d1 type:.Derived1 [val] - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .Derived1' type=.Derived1 origin=null + CONSTRUCTOR_CALL 'public constructor () declared in .Derived1' type=.Derived1 origin=null VAR name:d2 type:.Derived2 [val] - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .Derived2' type=.Derived2 origin=null + CONSTRUCTOR_CALL 'public constructor () declared in .Derived2' type=.Derived2 origin=null VAR name:k type:.JFieldOwner [val] WHEN type=.JFieldOwner origin=IF BRANCH if: GET_VAR 'b: kotlin.Boolean declared in .test' type=kotlin.Boolean origin=null - then: GET_VAR 'val d1: .Derived1 [val] declared in .test' type=.Derived1 origin=null + then: GET_VAR 'val d1: .Derived1 declared in .test' type=.Derived1 origin=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val d2: .Derived2 [val] declared in .test' type=.Derived2 origin=null + then: GET_VAR 'val d2: .Derived2 declared in .test' type=.Derived2 origin=null SET_FIELD 'FIELD IR_EXTERNAL_JAVA_DECLARATION_STUB name:f type:kotlin.Int visibility:public' type=kotlin.Unit origin=EQ - receiver: GET_VAR 'val k: .JFieldOwner [val] declared in .test' type=.JFieldOwner origin=null + receiver: GET_VAR 'val k: .JFieldOwner declared in .test' type=.JFieldOwner origin=null value: CONST Int type=kotlin.Int value=42 TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit GET_FIELD 'FIELD IR_EXTERNAL_JAVA_DECLARATION_STUB name:f type:kotlin.Int visibility:public' type=kotlin.Int origin=GET_PROPERTY - receiver: GET_VAR 'val k: .JFieldOwner [val] declared in .test' type=.JFieldOwner origin=null + receiver: GET_VAR 'val k: .JFieldOwner declared in .test' type=.JFieldOwner origin=null VAR name:md1 type:.DerivedThroughMid1 [val] - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .DerivedThroughMid1' type=.DerivedThroughMid1 origin=null + CONSTRUCTOR_CALL 'public constructor () declared in .DerivedThroughMid1' type=.DerivedThroughMid1 origin=null VAR name:md2 type:.DerivedThroughMid2 [val] - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .DerivedThroughMid2' type=.DerivedThroughMid2 origin=null + CONSTRUCTOR_CALL 'public constructor () declared in .DerivedThroughMid2' type=.DerivedThroughMid2 origin=null VAR name:mk type:.Mid [val] WHEN type=.Mid origin=IF BRANCH if: GET_VAR 'b: kotlin.Boolean declared in .test' type=kotlin.Boolean origin=null - then: GET_VAR 'val md1: .DerivedThroughMid1 [val] declared in .test' type=.DerivedThroughMid1 origin=null + then: GET_VAR 'val md1: .DerivedThroughMid1 declared in .test' type=.DerivedThroughMid1 origin=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val md2: .DerivedThroughMid2 [val] declared in .test' type=.DerivedThroughMid2 origin=null + then: GET_VAR 'val md2: .DerivedThroughMid2 declared in .test' type=.DerivedThroughMid2 origin=null SET_FIELD 'FIELD IR_EXTERNAL_JAVA_DECLARATION_STUB name:f type:kotlin.Int visibility:public' type=kotlin.Unit origin=EQ - receiver: GET_VAR 'val mk: .Mid [val] declared in .test' type=.Mid origin=null + receiver: GET_VAR 'val mk: .Mid declared in .test' type=.Mid origin=null value: CONST Int type=kotlin.Int value=44 TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit GET_FIELD 'FIELD IR_EXTERNAL_JAVA_DECLARATION_STUB name:f type:kotlin.Int visibility:public' type=kotlin.Int origin=GET_PROPERTY - receiver: GET_VAR 'val mk: .Mid [val] declared in .test' type=.Mid origin=null + receiver: GET_VAR 'val mk: .Mid declared in .test' type=.Mid origin=null diff --git a/compiler/testData/ir/irText/expressions/jvmFieldReferenceWithIntersectionTypes.ir.txt b/compiler/testData/ir/irText/expressions/jvmFieldReferenceWithIntersectionTypes.ir.txt index de484528961..b3e20e4a851 100644 --- a/compiler/testData/ir/irText/expressions/jvmFieldReferenceWithIntersectionTypes.ir.txt +++ b/compiler/testData/ir/irText/expressions/jvmFieldReferenceWithIntersectionTypes.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/jvmFieldWithIntersectionTypes.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.IFoo 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -18,164 +18,164 @@ FILE fqName: fileName:/jvmFieldWithIntersectionTypes.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Derived1 CONSTRUCTOR visibility:public <> () returnType:.Derived1 [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .JFieldOwner' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .JFieldOwner' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Derived1 modality:FINAL visibility:public superTypes:[.JFieldOwner; .IFoo]' 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 .JFieldOwner - public open fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .IFoo + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .JFieldOwner + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IFoo $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 .JFieldOwner - public open fun hashCode (): kotlin.Int [fake_override] declared in .IFoo + public open fun hashCode (): kotlin.Int declared in .JFieldOwner + public open fun hashCode (): kotlin.Int declared in .IFoo $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 .JFieldOwner - public open fun toString (): kotlin.String [fake_override] declared in .IFoo + public open fun toString (): kotlin.String declared in .JFieldOwner + public open fun toString (): kotlin.String declared in .IFoo $this: VALUE_PARAMETER name: type:kotlin.Any PROPERTY FAKE_OVERRIDE name:f visibility:public modality:FINAL [fake_override,var] overridden: - public final f: kotlin.Int [var] + public final f: kotlin.Int CLASS CLASS name:Derived2 modality:FINAL visibility:public superTypes:[.JFieldOwner; .IFoo] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Derived2 CONSTRUCTOR visibility:public <> () returnType:.Derived2 [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .JFieldOwner' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .JFieldOwner' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Derived2 modality:FINAL visibility:public superTypes:[.JFieldOwner; .IFoo]' 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 .JFieldOwner - public open fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .IFoo + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .JFieldOwner + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IFoo $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 .JFieldOwner - public open fun hashCode (): kotlin.Int [fake_override] declared in .IFoo + public open fun hashCode (): kotlin.Int declared in .JFieldOwner + public open fun hashCode (): kotlin.Int declared in .IFoo $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 .JFieldOwner - public open fun toString (): kotlin.String [fake_override] declared in .IFoo + public open fun toString (): kotlin.String declared in .JFieldOwner + public open fun toString (): kotlin.String declared in .IFoo $this: VALUE_PARAMETER name: type:kotlin.Any PROPERTY FAKE_OVERRIDE name:f visibility:public modality:FINAL [fake_override,var] overridden: - public final f: kotlin.Int [var] + public final f: kotlin.Int CLASS CLASS name:Mid modality:OPEN visibility:public superTypes:[.JFieldOwner] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Mid CONSTRUCTOR visibility:public <> () returnType:.Mid [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .JFieldOwner' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .JFieldOwner' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Mid modality:OPEN visibility:public superTypes:[.JFieldOwner]' 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 .JFieldOwner + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .JFieldOwner $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 .JFieldOwner + public open fun hashCode (): kotlin.Int declared in .JFieldOwner $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 .JFieldOwner + public open fun toString (): kotlin.String declared in .JFieldOwner $this: VALUE_PARAMETER name: type:kotlin.Any PROPERTY FAKE_OVERRIDE name:f visibility:public modality:FINAL [fake_override,var] overridden: - public final f: kotlin.Int [var] + public final f: kotlin.Int CLASS CLASS name:DerivedThroughMid1 modality:FINAL visibility:public superTypes:[.Mid; .IFoo] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.DerivedThroughMid1 CONSTRUCTOR visibility:public <> () returnType:.DerivedThroughMid1 [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .Mid' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .Mid' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:DerivedThroughMid1 modality:FINAL visibility:public superTypes:[.Mid; .IFoo]' 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 .Mid - public open fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .IFoo + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Mid + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IFoo $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 .Mid - public open fun hashCode (): kotlin.Int [fake_override] declared in .IFoo + public open fun hashCode (): kotlin.Int declared in .Mid + public open fun hashCode (): kotlin.Int declared in .IFoo $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 .Mid - public open fun toString (): kotlin.String [fake_override] declared in .IFoo + public open fun toString (): kotlin.String declared in .Mid + public open fun toString (): kotlin.String declared in .IFoo $this: VALUE_PARAMETER name: type:kotlin.Any PROPERTY FAKE_OVERRIDE name:f visibility:public modality:FINAL [fake_override,var] overridden: - public final f [fake_override,var] + public final f CLASS CLASS name:DerivedThroughMid2 modality:FINAL visibility:public superTypes:[.Mid; .IFoo] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.DerivedThroughMid2 CONSTRUCTOR visibility:public <> () returnType:.DerivedThroughMid2 [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .Mid' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .Mid' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:DerivedThroughMid2 modality:FINAL visibility:public superTypes:[.Mid; .IFoo]' 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 .Mid - public open fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .IFoo + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Mid + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IFoo $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 .Mid - public open fun hashCode (): kotlin.Int [fake_override] declared in .IFoo + public open fun hashCode (): kotlin.Int declared in .Mid + public open fun hashCode (): kotlin.Int declared in .IFoo $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 .Mid - public open fun toString (): kotlin.String [fake_override] declared in .IFoo + public open fun toString (): kotlin.String declared in .Mid + public open fun toString (): kotlin.String declared in .IFoo $this: VALUE_PARAMETER name: type:kotlin.Any PROPERTY FAKE_OVERRIDE name:f visibility:public modality:FINAL [fake_override,var] overridden: - public final f [fake_override,var] + public final f FUN name:test visibility:public modality:FINAL <> (b:kotlin.Boolean) returnType:kotlin.Unit VALUE_PARAMETER name:b index:0 type:kotlin.Boolean BLOCK_BODY VAR name:d1 type:.Derived1 [val] - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .Derived1' type=.Derived1 origin=null + CONSTRUCTOR_CALL 'public constructor () declared in .Derived1' type=.Derived1 origin=null VAR name:d2 type:.Derived2 [val] - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .Derived2' type=.Derived2 origin=null + CONSTRUCTOR_CALL 'public constructor () declared in .Derived2' type=.Derived2 origin=null VAR name:k type:kotlin.Any [val] WHEN type=kotlin.Any origin=IF BRANCH if: GET_VAR 'b: kotlin.Boolean declared in .test' type=kotlin.Boolean origin=null - then: GET_VAR 'val d1: .Derived1 [val] declared in .test' type=.Derived1 origin=null + then: GET_VAR 'val d1: .Derived1 declared in .test' type=.Derived1 origin=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val d2: .Derived2 [val] declared in .test' type=.Derived2 origin=null + then: GET_VAR 'val d2: .Derived2 declared in .test' type=.Derived2 origin=null SET_FIELD 'FIELD IR_EXTERNAL_JAVA_DECLARATION_STUB name:f type:kotlin.Int visibility:public' type=kotlin.Unit origin=EQ receiver: TYPE_OP type=.JFieldOwner origin=IMPLICIT_CAST typeOperand=.JFieldOwner - GET_VAR 'val k: kotlin.Any [val] declared in .test' type=kotlin.Any origin=null + GET_VAR 'val k: kotlin.Any declared in .test' type=kotlin.Any origin=null value: CONST Int type=kotlin.Int value=42 TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit GET_FIELD 'FIELD IR_EXTERNAL_JAVA_DECLARATION_STUB name:f type:kotlin.Int visibility:public' type=kotlin.Int origin=GET_PROPERTY receiver: TYPE_OP type=.JFieldOwner origin=IMPLICIT_CAST typeOperand=.JFieldOwner - GET_VAR 'val k: kotlin.Any [val] declared in .test' type=kotlin.Any origin=null + GET_VAR 'val k: kotlin.Any declared in .test' type=kotlin.Any origin=null VAR name:md1 type:.DerivedThroughMid1 [val] - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .DerivedThroughMid1' type=.DerivedThroughMid1 origin=null + CONSTRUCTOR_CALL 'public constructor () declared in .DerivedThroughMid1' type=.DerivedThroughMid1 origin=null VAR name:md2 type:.DerivedThroughMid2 [val] - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .DerivedThroughMid2' type=.DerivedThroughMid2 origin=null + CONSTRUCTOR_CALL 'public constructor () declared in .DerivedThroughMid2' type=.DerivedThroughMid2 origin=null VAR name:mk type:kotlin.Any [val] WHEN type=kotlin.Any origin=IF BRANCH if: GET_VAR 'b: kotlin.Boolean declared in .test' type=kotlin.Boolean origin=null - then: GET_VAR 'val md1: .DerivedThroughMid1 [val] declared in .test' type=.DerivedThroughMid1 origin=null + then: GET_VAR 'val md1: .DerivedThroughMid1 declared in .test' type=.DerivedThroughMid1 origin=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val md2: .DerivedThroughMid2 [val] declared in .test' type=.DerivedThroughMid2 origin=null + then: GET_VAR 'val md2: .DerivedThroughMid2 declared in .test' type=.DerivedThroughMid2 origin=null SET_FIELD 'FIELD IR_EXTERNAL_JAVA_DECLARATION_STUB name:f type:kotlin.Int visibility:public' type=kotlin.Unit origin=EQ receiver: TYPE_OP type=.Mid origin=IMPLICIT_CAST typeOperand=.Mid - GET_VAR 'val mk: kotlin.Any [val] declared in .test' type=kotlin.Any origin=null + GET_VAR 'val mk: kotlin.Any declared in .test' type=kotlin.Any origin=null value: CONST Int type=kotlin.Int value=44 TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit GET_FIELD 'FIELD IR_EXTERNAL_JAVA_DECLARATION_STUB name:f type:kotlin.Int visibility:public' type=kotlin.Int origin=GET_PROPERTY receiver: TYPE_OP type=.Mid origin=IMPLICIT_CAST typeOperand=.Mid - GET_VAR 'val mk: kotlin.Any [val] declared in .test' type=kotlin.Any origin=null + GET_VAR 'val mk: kotlin.Any declared in .test' type=kotlin.Any origin=null diff --git a/compiler/testData/ir/irText/expressions/jvmInstanceFieldReference.fir.ir.txt b/compiler/testData/ir/irText/expressions/jvmInstanceFieldReference.fir.ir.txt index 184df7e7665..4d95f78376d 100644 --- a/compiler/testData/ir/irText/expressions/jvmInstanceFieldReference.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/jvmInstanceFieldReference.fir.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/Derived.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Derived CONSTRUCTOR visibility:public <> () returnType:.Derived [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .Base' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .Base' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Derived modality:FINAL visibility:public superTypes:[.Base]' ANONYMOUS_INITIALIZER isStatic=false BLOCK_BODY @@ -25,14 +25,14 @@ FILE fqName: fileName:/Derived.kt value: GET_VAR 'value: kotlin.Int declared in .Derived.setValue' type=kotlin.Int 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 [fake_override,operator] declared in .Base + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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 + public open fun hashCode (): kotlin.Int 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 + public open fun toString (): kotlin.String declared in .Base $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/expressions/jvmInstanceFieldReference.ir.txt b/compiler/testData/ir/irText/expressions/jvmInstanceFieldReference.ir.txt index 7e2356f756d..a9d44e75d0c 100644 --- a/compiler/testData/ir/irText/expressions/jvmInstanceFieldReference.ir.txt +++ b/compiler/testData/ir/irText/expressions/jvmInstanceFieldReference.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/Derived.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Derived CONSTRUCTOR visibility:public <> () returnType:.Derived [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .Base' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .Base' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Derived modality:FINAL visibility:public superTypes:[.Base]' ANONYMOUS_INITIALIZER isStatic=false BLOCK_BODY @@ -25,17 +25,17 @@ FILE fqName: fileName:/Derived.kt value: GET_VAR 'value: kotlin.Int declared in .Derived.setValue' type=kotlin.Int 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 [fake_override,operator] declared in .Base + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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 + public open fun hashCode (): kotlin.Int 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 + public open fun toString (): kotlin.String declared in .Base $this: VALUE_PARAMETER name: type:kotlin.Any PROPERTY FAKE_OVERRIDE name:value visibility:public modality:FINAL [fake_override,var] overridden: - public final value: kotlin.Int [var] + public final value: kotlin.Int diff --git a/compiler/testData/ir/irText/expressions/jvmStaticFieldReference.fir.ir.txt b/compiler/testData/ir/irText/expressions/jvmStaticFieldReference.fir.ir.txt index b1342296799..b102b5c5265 100644 --- a/compiler/testData/ir/irText/expressions/jvmStaticFieldReference.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/jvmStaticFieldReference.fir.ir.txt @@ -24,7 +24,7 @@ FILE fqName: fileName:/jvmStaticFieldReference.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.TestClass CONSTRUCTOR visibility:public <> () returnType:.TestClass [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:TestClass modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:test visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:test type:kotlin.Int visibility:private [final] @@ -51,7 +51,7 @@ FILE fqName: fileName:/jvmStaticFieldReference.kt p0: CONST String type=kotlin.String value="TestClass/init" 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/expressions/jvmStaticFieldReference.ir.txt b/compiler/testData/ir/irText/expressions/jvmStaticFieldReference.ir.txt index 24fb55c9ceb..6e6592cc307 100644 --- a/compiler/testData/ir/irText/expressions/jvmStaticFieldReference.ir.txt +++ b/compiler/testData/ir/irText/expressions/jvmStaticFieldReference.ir.txt @@ -27,7 +27,7 @@ FILE fqName: fileName:/jvmStaticFieldReference.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.TestClass CONSTRUCTOR visibility:public <> () returnType:.TestClass [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:TestClass modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:test visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:test type:kotlin.Int visibility:private [final] @@ -56,7 +56,7 @@ FILE fqName: fileName:/jvmStaticFieldReference.kt p0: CONST String type=kotlin.String value="TestClass/init" 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/expressions/kt16904.fir.ir.txt b/compiler/testData/ir/irText/expressions/kt16904.fir.ir.txt index 1cbc2e7fb9d..786549e9653 100644 --- a/compiler/testData/ir/irText/expressions/kt16904.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/kt16904.fir.ir.txt @@ -3,12 +3,12 @@ FILE fqName: fileName:/kt16904.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.A CONSTRUCTOR visibility:public <> () returnType:.A [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:A modality:ABSTRACT visibility:public superTypes:[kotlin.Any]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:.B visibility:private [final] EXPRESSION_BODY - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .B' type=.B origin=null + CONSTRUCTOR_CALL 'public constructor () declared in .B' type=.B origin=null FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:.A) returnType:.B correspondingProperty: PROPERTY name:x visibility:public modality:FINAL [val] $this: VALUE_PARAMETER name: type:.A @@ -37,7 +37,7 @@ FILE fqName: fileName:/kt16904.kt value: GET_VAR ': kotlin.Int declared in .A.' type=kotlin.Int 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -52,7 +52,7 @@ FILE fqName: fileName:/kt16904.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.B CONSTRUCTOR visibility:public <> () returnType:.B [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:B modality:FINAL visibility:public superTypes:[kotlin.Any]' FUN name:plusAssign visibility:public modality:FINAL <> ($this:.B, x:kotlin.Int) returnType:kotlin.Unit [operator] $this: VALUE_PARAMETER name: type:.B @@ -60,7 +60,7 @@ FILE fqName: fileName:/kt16904.kt 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -75,21 +75,21 @@ FILE fqName: fileName:/kt16904.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Test1 CONSTRUCTOR visibility:public <> () returnType:.Test1 BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .A' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .A' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test1 modality:FINAL visibility:public superTypes:[.A]' - CALL 'public final fun plusAssign (x: kotlin.Int): kotlin.Unit [operator] declared in .B' type=kotlin.Unit origin=null - $this: CALL 'public final fun (): .B [fake_override] declared in .Test1' type=.B origin=GET_PROPERTY + CALL 'public final fun plusAssign (x: kotlin.Int): kotlin.Unit declared in .B' type=kotlin.Unit origin=null + $this: CALL 'public final fun (): .B declared in .Test1' type=.B origin=GET_PROPERTY $this: GET_VAR ': .Test1 declared in .Test1' type=.Test1 origin=null x: CONST Int type=kotlin.Int value=42 - CALL 'public final fun (: kotlin.Int): kotlin.Unit [fake_override] declared in .Test1' type=kotlin.Unit origin=EQ + CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in .Test1' type=kotlin.Unit origin=EQ $this: GET_VAR ': .Test1 declared in .Test1' type=.Test1 origin=null - : CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: CALL 'public final fun (): kotlin.Int [fake_override] declared in .Test1' type=kotlin.Int origin=GET_PROPERTY + : CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: CALL 'public final fun (): kotlin.Int declared in .Test1' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR ': .Test1 declared in .Test1' type=.Test1 origin=null other: CONST Int type=kotlin.Int value=42 PROPERTY FAKE_OVERRIDE name:x visibility:public modality:FINAL [fake_override,val] overridden: - public final x: .B [val] + public final x: .B FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.A) returnType:.B [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:x visibility:public modality:FINAL [fake_override,val] overridden: @@ -97,7 +97,7 @@ FILE fqName: fileName:/kt16904.kt $this: VALUE_PARAMETER name: type:.A PROPERTY FAKE_OVERRIDE name:y visibility:public modality:FINAL [fake_override,var] overridden: - public final y: kotlin.Int [var] + public final y: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.A) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:y visibility:public modality:FINAL [fake_override,var] overridden: @@ -111,22 +111,22 @@ FILE fqName: fileName:/kt16904.kt VALUE_PARAMETER name: index:0 type:kotlin.Int 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 .A + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .A $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 .A + public open fun hashCode (): kotlin.Int declared in .A $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 .A + public open fun toString (): kotlin.String declared in .A $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:Test2 modality:FINAL visibility:public superTypes:[.J] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Test2 CONSTRUCTOR visibility:public <> () returnType:.Test2 [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .J' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .J' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test2 modality:FINAL visibility:public superTypes:[.J]' ANONYMOUS_INITIALIZER isStatic=false BLOCK_BODY @@ -135,14 +135,14 @@ FILE fqName: fileName:/kt16904.kt value: CONST Int type=kotlin.Int value=42 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 .J + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .J $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 .J + public open fun hashCode (): kotlin.Int declared in .J $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 .J + public open fun toString (): kotlin.String declared in .J $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/expressions/kt16904.ir.txt b/compiler/testData/ir/irText/expressions/kt16904.ir.txt index 1795ef202b4..4ac306d6129 100644 --- a/compiler/testData/ir/irText/expressions/kt16904.ir.txt +++ b/compiler/testData/ir/irText/expressions/kt16904.ir.txt @@ -3,12 +3,12 @@ FILE fqName: fileName:/kt16904.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.A CONSTRUCTOR visibility:public <> () returnType:.A [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:A modality:ABSTRACT visibility:public superTypes:[kotlin.Any]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:.B visibility:private [final] EXPRESSION_BODY - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .B' type=.B origin=null + CONSTRUCTOR_CALL 'public constructor () declared in .B' type=.B origin=null FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:.A) returnType:.B correspondingProperty: PROPERTY name:x visibility:public modality:FINAL [val] $this: VALUE_PARAMETER name: type:.A @@ -37,7 +37,7 @@ FILE fqName: fileName:/kt16904.kt value: GET_VAR ': kotlin.Int declared in .A.' type=kotlin.Int 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -52,7 +52,7 @@ FILE fqName: fileName:/kt16904.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.B CONSTRUCTOR visibility:public <> () returnType:.B [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:B modality:FINAL visibility:public superTypes:[kotlin.Any]' FUN name:plusAssign visibility:public modality:FINAL <> ($this:.B, x:kotlin.Int) returnType:kotlin.Unit [operator] $this: VALUE_PARAMETER name: type:.B @@ -60,7 +60,7 @@ FILE fqName: fileName:/kt16904.kt 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -75,27 +75,27 @@ FILE fqName: fileName:/kt16904.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Test1 CONSTRUCTOR visibility:public <> () returnType:.Test1 BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .A' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .A' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test1 modality:FINAL visibility:public superTypes:[.A]' BLOCK type=kotlin.Unit origin=PLUSEQ VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:.Test1 [val] GET_VAR ': .Test1 declared in .Test1' type=.Test1 origin=null - CALL 'public final fun plusAssign (x: kotlin.Int): kotlin.Unit [operator] declared in .B' type=kotlin.Unit origin=PLUSEQ - $this: CALL 'public final fun (): .B [fake_override] declared in .Test1' type=.B origin=PLUSEQ - $this: GET_VAR 'val tmp_0: .Test1 [val] declared in .Test1.' type=.Test1 origin=null + CALL 'public final fun plusAssign (x: kotlin.Int): kotlin.Unit declared in .B' type=kotlin.Unit origin=PLUSEQ + $this: CALL 'public final fun (): .B declared in .Test1' type=.B origin=PLUSEQ + $this: GET_VAR 'val tmp_0: .Test1 declared in .Test1.' type=.Test1 origin=null x: CONST Int type=kotlin.Int value=42 BLOCK type=kotlin.Unit origin=PLUSEQ VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:.Test1 [val] GET_VAR ': .Test1 declared in .Test1' type=.Test1 origin=null - CALL 'public final fun (: kotlin.Int): kotlin.Unit [fake_override] declared in .Test1' type=kotlin.Unit origin=PLUSEQ - $this: GET_VAR 'val tmp_1: .Test1 [val] declared in .Test1.' type=.Test1 origin=null - : CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ - $this: CALL 'public final fun (): kotlin.Int [fake_override] declared in .Test1' type=kotlin.Int origin=PLUSEQ - $this: GET_VAR 'val tmp_1: .Test1 [val] declared in .Test1.' type=.Test1 origin=null + CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in .Test1' type=kotlin.Unit origin=PLUSEQ + $this: GET_VAR 'val tmp_1: .Test1 declared in .Test1.' type=.Test1 origin=null + : CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ + $this: CALL 'public final fun (): kotlin.Int declared in .Test1' type=kotlin.Int origin=PLUSEQ + $this: GET_VAR 'val tmp_1: .Test1 declared in .Test1.' type=.Test1 origin=null other: CONST Int type=kotlin.Int value=42 PROPERTY FAKE_OVERRIDE name:x visibility:public modality:FINAL [fake_override,val] overridden: - public final x: .B [val] + public final x: .B FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.A) returnType:.B [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:x visibility:public modality:FINAL [fake_override,val] overridden: @@ -103,7 +103,7 @@ FILE fqName: fileName:/kt16904.kt $this: VALUE_PARAMETER name: type:.A PROPERTY FAKE_OVERRIDE name:y visibility:public modality:FINAL [fake_override,var] overridden: - public final y: kotlin.Int [var] + public final y: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.A) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:y visibility:public modality:FINAL [fake_override,var] overridden: @@ -117,22 +117,22 @@ FILE fqName: fileName:/kt16904.kt VALUE_PARAMETER name: index:0 type:kotlin.Int 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 .A + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .A $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 .A + public open fun hashCode (): kotlin.Int declared in .A $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 .A + public open fun toString (): kotlin.String declared in .A $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:Test2 modality:FINAL visibility:public superTypes:[.J] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Test2 CONSTRUCTOR visibility:public <> () returnType:.Test2 [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .J' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .J' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test2 modality:FINAL visibility:public superTypes:[.J]' ANONYMOUS_INITIALIZER isStatic=false BLOCK_BODY @@ -141,17 +141,17 @@ FILE fqName: fileName:/kt16904.kt value: CONST Int type=kotlin.Int value=42 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 .J + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .J $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 .J + public open fun hashCode (): kotlin.Int declared in .J $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 .J + public open fun toString (): kotlin.String declared in .J $this: VALUE_PARAMETER name: type:kotlin.Any PROPERTY FAKE_OVERRIDE name:field visibility:public modality:FINAL [fake_override,var] overridden: - public final field: kotlin.Int [var] + public final field: kotlin.Int diff --git a/compiler/testData/ir/irText/expressions/kt16905.fir.ir.txt b/compiler/testData/ir/irText/expressions/kt16905.fir.ir.txt index 041a3f6d943..59f481411a2 100644 --- a/compiler/testData/ir/irText/expressions/kt16905.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/kt16905.fir.ir.txt @@ -4,18 +4,18 @@ FILE fqName: fileName:/kt16905.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Outer CONSTRUCTOR visibility:public <> () returnType:.Outer [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Outer modality:FINAL visibility:public superTypes:[kotlin.Any]' CLASS CLASS name:Inner modality:OPEN visibility:public [inner] superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Outer.Inner CONSTRUCTOR visibility:public <> ($this:.Outer) returnType:.Outer.Inner [primary] $outer: VALUE_PARAMETER name: type:.Outer BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Inner modality:OPEN visibility:public [inner] 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -31,46 +31,46 @@ FILE fqName: fileName:/kt16905.kt CONSTRUCTOR visibility:public <> ($this:.Outer) returnType:.Outer.InnerDerived0 [primary] $outer: VALUE_PARAMETER name: type:.Outer BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .Outer.Inner' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .Outer.Inner' $this: GET_VAR ': .Outer declared in .Outer' type=.Outer origin=null INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:InnerDerived0 modality:FINAL visibility:public [inner] superTypes:[.Outer.Inner]' 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 .Outer.Inner + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Outer.Inner $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 .Outer.Inner + public open fun hashCode (): kotlin.Int declared in .Outer.Inner $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 .Outer.Inner + public open fun toString (): kotlin.String declared in .Outer.Inner $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:InnerDerived1 modality:FINAL visibility:public [inner] superTypes:[.Outer.Inner] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Outer.InnerDerived1 CONSTRUCTOR visibility:public <> ($this:.Outer) returnType:.Outer.InnerDerived1 [primary] $outer: VALUE_PARAMETER name: type:.Outer BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .Outer.Inner' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .Outer.Inner' $this: GET_VAR ': .Outer declared in .Outer' type=.Outer origin=null INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:InnerDerived1 modality:FINAL visibility:public [inner] superTypes:[.Outer.Inner]' 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 .Outer.Inner + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Outer.Inner $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 .Outer.Inner + public open fun hashCode (): kotlin.Int declared in .Outer.Inner $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 .Outer.Inner + public open fun toString (): kotlin.String declared in .Outer.Inner $this: VALUE_PARAMETER name: type: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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -84,5 +84,5 @@ FILE fqName: fileName:/kt16905.kt FUN name:test visibility:public modality:FINAL <> () returnType:.Outer.Inner BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test (): .Outer.Inner declared in ' - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .Outer.Inner' type=.Outer.Inner origin=null - $outer: CONSTRUCTOR_CALL 'public constructor () [primary] declared in .Outer' type=.Outer origin=null + CONSTRUCTOR_CALL 'public constructor () declared in .Outer.Inner' type=.Outer.Inner origin=null + $outer: CONSTRUCTOR_CALL 'public constructor () declared in .Outer' type=.Outer origin=null diff --git a/compiler/testData/ir/irText/expressions/kt16905.ir.txt b/compiler/testData/ir/irText/expressions/kt16905.ir.txt index 7b43a9e972c..336d7978db2 100644 --- a/compiler/testData/ir/irText/expressions/kt16905.ir.txt +++ b/compiler/testData/ir/irText/expressions/kt16905.ir.txt @@ -3,18 +3,18 @@ FILE fqName: fileName:/kt16905.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Outer CONSTRUCTOR visibility:public <> () returnType:.Outer [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Outer modality:FINAL visibility:public superTypes:[kotlin.Any]' CLASS CLASS name:Inner modality:OPEN visibility:public [inner] superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Outer.Inner CONSTRUCTOR visibility:public <> ($this:.Outer) returnType:.Outer.Inner [primary] $outer: VALUE_PARAMETER name: type:.Outer BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Inner modality:OPEN visibility:public [inner] 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -30,46 +30,46 @@ FILE fqName: fileName:/kt16905.kt CONSTRUCTOR visibility:public <> ($this:.Outer) returnType:.Outer.InnerDerived0 [primary] $outer: VALUE_PARAMETER name: type:.Outer BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .Outer.Inner' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .Outer.Inner' $this: GET_VAR ': .Outer declared in .Outer.InnerDerived0.' type=.Outer origin=null INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:InnerDerived0 modality:FINAL visibility:public [inner] superTypes:[.Outer.Inner]' 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 .Outer.Inner + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Outer.Inner $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 .Outer.Inner + public open fun hashCode (): kotlin.Int declared in .Outer.Inner $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 .Outer.Inner + public open fun toString (): kotlin.String declared in .Outer.Inner $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:InnerDerived1 modality:FINAL visibility:public [inner] superTypes:[.Outer.Inner{ .OI }] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Outer.InnerDerived1 CONSTRUCTOR visibility:public <> ($this:.Outer) returnType:.Outer.InnerDerived1 [primary] $outer: VALUE_PARAMETER name: type:.Outer BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .Outer.Inner' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .Outer.Inner' $this: GET_VAR ': .Outer declared in .Outer.InnerDerived1.' type=.Outer origin=null INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:InnerDerived1 modality:FINAL visibility:public [inner] superTypes:[.Outer.Inner{ .OI }]' 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 .Outer.Inner + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Outer.Inner $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 .Outer.Inner + public open fun hashCode (): kotlin.Int declared in .Outer.Inner $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 .Outer.Inner + public open fun toString (): kotlin.String declared in .Outer.Inner $this: VALUE_PARAMETER name: type: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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -84,5 +84,5 @@ FILE fqName: fileName:/kt16905.kt FUN name:test visibility:public modality:FINAL <> () returnType:.Outer.Inner{ .OI } BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test (): .Outer.Inner{ .OI } declared in ' - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .Outer.Inner' type=.Outer.Inner origin=null - $outer: CONSTRUCTOR_CALL 'public constructor () [primary] declared in .Outer' type=.Outer origin=null + CONSTRUCTOR_CALL 'public constructor () declared in .Outer.Inner' type=.Outer.Inner origin=null + $outer: CONSTRUCTOR_CALL 'public constructor () declared in .Outer' type=.Outer origin=null diff --git a/compiler/testData/ir/irText/expressions/kt23030.fir.ir.txt b/compiler/testData/ir/irText/expressions/kt23030.fir.ir.txt index 8b600c48b48..bc6d45dd8a1 100644 --- a/compiler/testData/ir/irText/expressions/kt23030.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/kt23030.fir.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/kt23030.kt $receiver: VALUE_PARAMETER name: type:kotlin.Int VALUE_PARAMETER name:c index:0 type:kotlin.Char BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun compareTo (c: kotlin.Char): kotlin.Int [operator] declared in ' + RETURN type=kotlin.Nothing from='public final fun compareTo (c: kotlin.Char): kotlin.Int declared in ' CONST Int type=kotlin.Int value=0 FUN name:testOverloadedCompareToCall visibility:public modality:FINAL <> (x:kotlin.Int, y:kotlin.Char) returnType:kotlin.Boolean VALUE_PARAMETER name:x index:0 type:kotlin.Int @@ -11,7 +11,7 @@ FILE fqName: fileName:/kt23030.kt BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun testOverloadedCompareToCall (x: kotlin.Int, y: kotlin.Char): kotlin.Boolean declared in ' CALL 'public final fun less (arg0: kotlin.Int, arg1: kotlin.Int): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=LT - arg0: CALL 'public final fun compareTo (c: kotlin.Char): kotlin.Int [operator] declared in ' type=kotlin.Int origin=null + arg0: CALL 'public final fun compareTo (c: kotlin.Char): kotlin.Int declared in ' type=kotlin.Int origin=null $receiver: GET_VAR 'x: kotlin.Int declared in .testOverloadedCompareToCall' type=kotlin.Int origin=null c: GET_VAR 'y: kotlin.Char declared in .testOverloadedCompareToCall' type=kotlin.Char origin=null arg1: CONST Int type=kotlin.Int value=0 @@ -32,7 +32,7 @@ FILE fqName: fileName:/kt23030.kt if: CONST Boolean type=kotlin.Boolean value=true then: CONST Boolean type=kotlin.Boolean value=false then: CALL 'public final fun less (arg0: kotlin.Int, arg1: kotlin.Int): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=LT - arg0: CALL 'public final fun compareTo (c: kotlin.Char): kotlin.Int [operator] declared in ' type=kotlin.Int origin=null + arg0: CALL 'public final fun compareTo (c: kotlin.Char): kotlin.Int declared in ' type=kotlin.Int origin=null $receiver: TYPE_OP type=kotlin.Int origin=IMPLICIT_CAST typeOperand=kotlin.Int GET_VAR 'x: kotlin.Any declared in .testOverloadedCompareToCallWithSmartCast' type=kotlin.Any origin=null c: TYPE_OP type=kotlin.Char origin=IMPLICIT_CAST typeOperand=kotlin.Char @@ -67,14 +67,14 @@ FILE fqName: fileName:/kt23030.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.C CONSTRUCTOR visibility:public <> () returnType:.C [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C modality:FINAL visibility:public superTypes:[kotlin.Any]' FUN name:compareTo visibility:public modality:FINAL <> ($this:.C, $receiver:kotlin.Int, c:kotlin.Char) returnType:kotlin.Int [operator] $this: VALUE_PARAMETER name: type:.C $receiver: VALUE_PARAMETER name: type:kotlin.Int VALUE_PARAMETER name:c index:0 type:kotlin.Char BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun compareTo (c: kotlin.Char): kotlin.Int [operator] declared in .C' + RETURN type=kotlin.Nothing from='public final fun compareTo (c: kotlin.Char): kotlin.Int declared in .C' CONST Int type=kotlin.Int value=0 FUN name:testMemberExtensionCompareToCall visibility:public modality:FINAL <> ($this:.C, x:kotlin.Int, y:kotlin.Char) returnType:kotlin.Boolean $this: VALUE_PARAMETER name: type:.C @@ -83,7 +83,7 @@ FILE fqName: fileName:/kt23030.kt BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun testMemberExtensionCompareToCall (x: kotlin.Int, y: kotlin.Char): kotlin.Boolean declared in .C' CALL 'public final fun less (arg0: kotlin.Int, arg1: kotlin.Int): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=LT - arg0: CALL 'public final fun compareTo (c: kotlin.Char): kotlin.Int [operator] declared in .C' type=kotlin.Int origin=null + arg0: CALL 'public final fun compareTo (c: kotlin.Char): kotlin.Int declared in .C' type=kotlin.Int origin=null $this: GET_VAR ': .C declared in .C.testMemberExtensionCompareToCall' type=.C origin=null $receiver: GET_VAR 'x: kotlin.Int declared in .C.testMemberExtensionCompareToCall' type=kotlin.Int origin=null c: GET_VAR 'y: kotlin.Char declared in .C.testMemberExtensionCompareToCall' type=kotlin.Char origin=null @@ -106,7 +106,7 @@ FILE fqName: fileName:/kt23030.kt if: CONST Boolean type=kotlin.Boolean value=true then: CONST Boolean type=kotlin.Boolean value=false then: CALL 'public final fun less (arg0: kotlin.Int, arg1: kotlin.Int): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=LT - arg0: CALL 'public final fun compareTo (c: kotlin.Char): kotlin.Int [operator] declared in .C' type=kotlin.Int origin=null + arg0: CALL 'public final fun compareTo (c: kotlin.Char): kotlin.Int declared in .C' type=kotlin.Int origin=null $this: GET_VAR ': .C declared in .C.testMemberExtensionCompareToCallWithSmartCast' type=.C origin=null $receiver: TYPE_OP type=kotlin.Int origin=IMPLICIT_CAST typeOperand=kotlin.Int GET_VAR 'x: kotlin.Any declared in .C.testMemberExtensionCompareToCallWithSmartCast' type=kotlin.Any origin=null @@ -118,7 +118,7 @@ FILE fqName: fileName:/kt23030.kt then: CONST Boolean type=kotlin.Boolean value=false 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/expressions/kt23030.ir.txt b/compiler/testData/ir/irText/expressions/kt23030.ir.txt index 7ce6237a311..ee2cb0c5d81 100644 --- a/compiler/testData/ir/irText/expressions/kt23030.ir.txt +++ b/compiler/testData/ir/irText/expressions/kt23030.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/kt23030.kt $receiver: VALUE_PARAMETER name: type:kotlin.Int VALUE_PARAMETER name:c index:0 type:kotlin.Char BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun compareTo (c: kotlin.Char): kotlin.Int [operator] declared in ' + RETURN type=kotlin.Nothing from='public final fun compareTo (c: kotlin.Char): kotlin.Int declared in ' CONST Int type=kotlin.Int value=0 FUN name:testOverloadedCompareToCall visibility:public modality:FINAL <> (x:kotlin.Int, y:kotlin.Char) returnType:kotlin.Boolean VALUE_PARAMETER name:x index:0 type:kotlin.Int @@ -11,7 +11,7 @@ FILE fqName: fileName:/kt23030.kt BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun testOverloadedCompareToCall (x: kotlin.Int, y: kotlin.Char): kotlin.Boolean declared in ' CALL 'public final fun less (arg0: kotlin.Int, arg1: kotlin.Int): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=LT - arg0: CALL 'public final fun compareTo (c: kotlin.Char): kotlin.Int [operator] declared in ' type=kotlin.Int origin=LT + arg0: CALL 'public final fun compareTo (c: kotlin.Char): kotlin.Int declared in ' type=kotlin.Int origin=LT $receiver: GET_VAR 'x: kotlin.Int declared in .testOverloadedCompareToCall' type=kotlin.Int origin=null c: GET_VAR 'y: kotlin.Char declared in .testOverloadedCompareToCall' type=kotlin.Char origin=null arg1: CONST Int type=kotlin.Int value=0 @@ -32,7 +32,7 @@ FILE fqName: fileName:/kt23030.kt if: CONST Boolean type=kotlin.Boolean value=true then: CONST Boolean type=kotlin.Boolean value=false then: CALL 'public final fun less (arg0: kotlin.Int, arg1: kotlin.Int): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=LT - arg0: CALL 'public final fun compareTo (c: kotlin.Char): kotlin.Int [operator] declared in ' type=kotlin.Int origin=LT + arg0: CALL 'public final fun compareTo (c: kotlin.Char): kotlin.Int declared in ' type=kotlin.Int origin=LT $receiver: TYPE_OP type=kotlin.Int origin=IMPLICIT_CAST typeOperand=kotlin.Int GET_VAR 'x: kotlin.Any declared in .testOverloadedCompareToCallWithSmartCast' type=kotlin.Any origin=null c: TYPE_OP type=kotlin.Char origin=IMPLICIT_CAST typeOperand=kotlin.Char @@ -67,14 +67,14 @@ FILE fqName: fileName:/kt23030.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.C CONSTRUCTOR visibility:public <> () returnType:.C [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C modality:FINAL visibility:public superTypes:[kotlin.Any]' FUN name:compareTo visibility:public modality:FINAL <> ($this:.C, $receiver:kotlin.Int, c:kotlin.Char) returnType:kotlin.Int [operator] $this: VALUE_PARAMETER name: type:.C $receiver: VALUE_PARAMETER name: type:kotlin.Int VALUE_PARAMETER name:c index:0 type:kotlin.Char BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun compareTo (c: kotlin.Char): kotlin.Int [operator] declared in .C' + RETURN type=kotlin.Nothing from='public final fun compareTo (c: kotlin.Char): kotlin.Int declared in .C' CONST Int type=kotlin.Int value=0 FUN name:testMemberExtensionCompareToCall visibility:public modality:FINAL <> ($this:.C, x:kotlin.Int, y:kotlin.Char) returnType:kotlin.Boolean $this: VALUE_PARAMETER name: type:.C @@ -83,7 +83,7 @@ FILE fqName: fileName:/kt23030.kt BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun testMemberExtensionCompareToCall (x: kotlin.Int, y: kotlin.Char): kotlin.Boolean declared in .C' CALL 'public final fun less (arg0: kotlin.Int, arg1: kotlin.Int): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=LT - arg0: CALL 'public final fun compareTo (c: kotlin.Char): kotlin.Int [operator] declared in .C' type=kotlin.Int origin=LT + arg0: CALL 'public final fun compareTo (c: kotlin.Char): kotlin.Int declared in .C' type=kotlin.Int origin=LT $this: GET_VAR ': .C declared in .C.testMemberExtensionCompareToCall' type=.C origin=null $receiver: GET_VAR 'x: kotlin.Int declared in .C.testMemberExtensionCompareToCall' type=kotlin.Int origin=null c: GET_VAR 'y: kotlin.Char declared in .C.testMemberExtensionCompareToCall' type=kotlin.Char origin=null @@ -106,7 +106,7 @@ FILE fqName: fileName:/kt23030.kt if: CONST Boolean type=kotlin.Boolean value=true then: CONST Boolean type=kotlin.Boolean value=false then: CALL 'public final fun less (arg0: kotlin.Int, arg1: kotlin.Int): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=LT - arg0: CALL 'public final fun compareTo (c: kotlin.Char): kotlin.Int [operator] declared in .C' type=kotlin.Int origin=LT + arg0: CALL 'public final fun compareTo (c: kotlin.Char): kotlin.Int declared in .C' type=kotlin.Int origin=LT $this: GET_VAR ': .C declared in .C.testMemberExtensionCompareToCallWithSmartCast' type=.C origin=null $receiver: TYPE_OP type=kotlin.Int origin=IMPLICIT_CAST typeOperand=kotlin.Int GET_VAR 'x: kotlin.Any declared in .C.testMemberExtensionCompareToCallWithSmartCast' type=kotlin.Any origin=null @@ -118,7 +118,7 @@ FILE fqName: fileName:/kt23030.kt then: CONST Boolean type=kotlin.Boolean value=false 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/expressions/kt24804.ir.txt b/compiler/testData/ir/irText/expressions/kt24804.ir.txt index caec3ec50e4..6eda24a82fc 100644 --- a/compiler/testData/ir/irText/expressions/kt24804.ir.txt +++ b/compiler/testData/ir/irText/expressions/kt24804.ir.txt @@ -1,7 +1,7 @@ FILE fqName: fileName:/kt24804.kt FUN name:foo visibility:public modality:FINAL <> () returnType:kotlin.Boolean [inline] BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun foo (): kotlin.Boolean [inline] declared in ' + RETURN type=kotlin.Nothing from='public final fun foo (): kotlin.Boolean declared in ' CONST Boolean type=kotlin.Boolean value=false FUN name:run visibility:public modality:FINAL <> (x:kotlin.Boolean, y:kotlin.Boolean) returnType:kotlin.String VALUE_PARAMETER name:x index:0 type:kotlin.Boolean @@ -12,14 +12,14 @@ FILE fqName: fileName:/kt24804.kt BLOCK type=kotlin.Unit origin=null DO_WHILE label=l2 origin=DO_WHILE_LOOP body: COMPOSITE type=kotlin.Unit origin=null - SET_VAR 'var z: kotlin.Int [var] declared in .run' type=kotlin.Unit origin=PLUSEQ - CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ - $this: GET_VAR 'var z: kotlin.Int [var] declared in .run' type=kotlin.Int origin=PLUSEQ + SET_VAR 'var z: kotlin.Int declared in .run' type=kotlin.Unit origin=PLUSEQ + CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ + $this: GET_VAR 'var z: kotlin.Int declared in .run' type=kotlin.Int origin=PLUSEQ other: CONST Int type=kotlin.Int value=1 WHEN type=kotlin.Unit origin=IF BRANCH if: CALL 'public final fun greater (arg0: kotlin.Int, arg1: kotlin.Int): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=GT - arg0: GET_VAR 'var z: kotlin.Int [var] declared in .run' type=kotlin.Int origin=null + arg0: GET_VAR 'var z: kotlin.Int declared in .run' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=100 then: RETURN type=kotlin.Nothing from='public final fun run (x: kotlin.Boolean, y: kotlin.Boolean): kotlin.String declared in ' CONST String type=kotlin.String value="NOT_OK" @@ -31,7 +31,7 @@ FILE fqName: fileName:/kt24804.kt BRANCH if: GET_VAR 'y: kotlin.Boolean declared in .run' type=kotlin.Boolean origin=null then: CONTINUE label=l2 loop.label=l2 - condition: CALL 'public final fun foo (): kotlin.Boolean [inline] declared in ' type=kotlin.Boolean origin=null + condition: CALL 'public final fun foo (): kotlin.Boolean declared in ' type=kotlin.Boolean origin=null RETURN type=kotlin.Nothing from='public final fun run (x: kotlin.Boolean, y: kotlin.Boolean): kotlin.String declared in ' CONST String type=kotlin.String value="OK" FUN name:box visibility:public modality:FINAL <> () returnType:kotlin.String diff --git a/compiler/testData/ir/irText/expressions/kt27933.fir.ir.txt b/compiler/testData/ir/irText/expressions/kt27933.fir.ir.txt index 7c1ded1618c..92613d9d1db 100644 --- a/compiler/testData/ir/irText/expressions/kt27933.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/kt27933.fir.ir.txt @@ -5,27 +5,27 @@ FILE fqName: fileName:/kt27933.kt CONST String type=kotlin.String value="" WHEN type=kotlin.Unit origin=IF BRANCH - if: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ + if: CALL 'public final fun not (): kotlin.Boolean 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_VAR 'var r: kotlin.String [var] declared in .box' type=kotlin.String origin=null + arg0: GET_VAR 'var r: kotlin.String declared in .box' type=kotlin.String origin=null arg1: CONST String type=kotlin.String value="" then: BLOCK type=kotlin.Unit origin=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: BLOCK type=kotlin.Unit origin=null - SET_VAR 'var r: kotlin.String [var] declared in .box' type=kotlin.Unit origin=EQ - CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=null - $this: GET_VAR 'var r: kotlin.String [var] declared in .box' type=kotlin.String origin=null + SET_VAR 'var r: kotlin.String declared in .box' type=kotlin.Unit origin=EQ + CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=null + $this: GET_VAR 'var r: kotlin.String declared in .box' type=kotlin.String origin=null other: CONST String type=kotlin.String value="O" WHEN type=kotlin.Unit origin=IF BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'var r: kotlin.String [var] declared in .box' type=kotlin.String origin=null + arg0: GET_VAR 'var r: kotlin.String declared in .box' type=kotlin.String origin=null arg1: CONST String type=kotlin.String value="O" then: BLOCK type=kotlin.Unit origin=null - SET_VAR 'var r: kotlin.String [var] declared in .box' type=kotlin.Unit origin=EQ - CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=null - $this: GET_VAR 'var r: kotlin.String [var] declared in .box' type=kotlin.String origin=null + SET_VAR 'var r: kotlin.String declared in .box' type=kotlin.Unit origin=EQ + CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=null + $this: GET_VAR 'var r: kotlin.String declared in .box' type=kotlin.String origin=null other: CONST String type=kotlin.String value="K" RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' - GET_VAR 'var r: kotlin.String [var] declared in .box' type=kotlin.String origin=null + GET_VAR 'var r: kotlin.String declared in .box' type=kotlin.String origin=null diff --git a/compiler/testData/ir/irText/expressions/kt27933.ir.txt b/compiler/testData/ir/irText/expressions/kt27933.ir.txt index 2ad38797b4f..297c0d3f763 100644 --- a/compiler/testData/ir/irText/expressions/kt27933.ir.txt +++ b/compiler/testData/ir/irText/expressions/kt27933.ir.txt @@ -5,25 +5,25 @@ FILE fqName: fileName:/kt27933.kt CONST String type=kotlin.String value="" WHEN type=kotlin.Unit origin=IF BRANCH - if: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ + if: CALL 'public final fun not (): kotlin.Boolean 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_VAR 'var r: kotlin.String [var] declared in .box' type=kotlin.String origin=null + arg0: GET_VAR 'var r: kotlin.String declared in .box' type=kotlin.String origin=null arg1: CONST String type=kotlin.String value="" then: BLOCK type=kotlin.Unit origin=IF BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: SET_VAR 'var r: kotlin.String [var] declared in .box' type=kotlin.Unit origin=PLUSEQ - CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUSEQ - $this: GET_VAR 'var r: kotlin.String [var] declared in .box' type=kotlin.String origin=PLUSEQ + then: SET_VAR 'var r: kotlin.String declared in .box' type=kotlin.Unit origin=PLUSEQ + CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUSEQ + $this: GET_VAR 'var r: kotlin.String declared in .box' type=kotlin.String origin=PLUSEQ other: CONST String type=kotlin.String value="O" WHEN type=kotlin.Unit origin=IF BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'var r: kotlin.String [var] declared in .box' type=kotlin.String origin=null + arg0: GET_VAR 'var r: kotlin.String declared in .box' type=kotlin.String origin=null arg1: CONST String type=kotlin.String value="O" - then: SET_VAR 'var r: kotlin.String [var] declared in .box' type=kotlin.Unit origin=PLUSEQ - CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUSEQ - $this: GET_VAR 'var r: kotlin.String [var] declared in .box' type=kotlin.String origin=PLUSEQ + then: SET_VAR 'var r: kotlin.String declared in .box' type=kotlin.Unit origin=PLUSEQ + CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUSEQ + $this: GET_VAR 'var r: kotlin.String declared in .box' type=kotlin.String origin=PLUSEQ other: CONST String type=kotlin.String value="K" RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' - GET_VAR 'var r: kotlin.String [var] declared in .box' type=kotlin.String origin=null + GET_VAR 'var r: kotlin.String declared in .box' type=kotlin.String origin=null diff --git a/compiler/testData/ir/irText/expressions/kt28456.fir.ir.txt b/compiler/testData/ir/irText/expressions/kt28456.fir.ir.txt index a80278e7e80..ffb83a6b331 100644 --- a/compiler/testData/ir/irText/expressions/kt28456.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/kt28456.fir.ir.txt @@ -3,11 +3,11 @@ FILE fqName: fileName:/kt28456.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.A CONSTRUCTOR visibility:public <> () returnType:.A [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:A modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -22,7 +22,7 @@ FILE fqName: fileName:/kt28456.kt $receiver: VALUE_PARAMETER name: type:.A VALUE_PARAMETER name:xs index:0 type:kotlin.IntArray varargElementType:kotlin.Int [vararg] BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun get (vararg xs: kotlin.Int): kotlin.Int [operator] declared in ' + RETURN type=kotlin.Nothing from='public final fun get (vararg xs: kotlin.Int): kotlin.Int declared in ' CONST Int type=kotlin.Int value=0 FUN name:set visibility:public modality:FINAL <> ($receiver:.A, i:kotlin.Int, j:kotlin.Int, v:kotlin.Int) returnType:kotlin.Unit [operator] $receiver: VALUE_PARAMETER name: type:.A @@ -33,7 +33,7 @@ FILE fqName: fileName:/kt28456.kt FUN name:testSimpleAssignment visibility:public modality:FINAL <> (a:.A) returnType:kotlin.Unit VALUE_PARAMETER name:a index:0 type:.A BLOCK_BODY - CALL 'public final fun set (i: kotlin.Int, j: kotlin.Int, v: kotlin.Int): kotlin.Unit [operator] declared in ' type=kotlin.Unit origin=null + CALL 'public final fun set (i: kotlin.Int, j: kotlin.Int, v: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=null $receiver: GET_VAR 'a: .A declared in .testSimpleAssignment' type=.A origin=null i: CONST Int type=kotlin.Int value=1 j: CONST Int type=kotlin.Int value=2 @@ -50,18 +50,18 @@ FILE fqName: fileName:/kt28456.kt VAR IR_TEMPORARY_VARIABLE name:tmp_2 type:kotlin.Int [val] CONST Int type=kotlin.Int value=2 VAR IR_TEMPORARY_VARIABLE name:tmp_3 type:kotlin.Int [val] - CALL 'public final fun get (vararg xs: kotlin.Int): kotlin.Int [operator] declared in ' type=kotlin.Int origin=null - $receiver: GET_VAR 'val tmp_0: .A [val] declared in .testPostfixIncrement' type=.A origin=null + CALL 'public final fun get (vararg xs: kotlin.Int): kotlin.Int declared in ' type=kotlin.Int origin=null + $receiver: GET_VAR 'val tmp_0: .A declared in .testPostfixIncrement' type=.A origin=null xs: VARARG type=kotlin.IntArray varargElementType=kotlin.Int - GET_VAR 'val tmp_1: kotlin.Int [val] declared in .testPostfixIncrement' type=kotlin.Int origin=null - GET_VAR 'val tmp_2: kotlin.Int [val] declared in .testPostfixIncrement' type=kotlin.Int origin=null - CALL 'public final fun set (i: kotlin.Int, j: kotlin.Int, v: kotlin.Int): kotlin.Unit [operator] declared in ' type=kotlin.Unit origin=null - $receiver: GET_VAR 'val tmp_0: .A [val] declared in .testPostfixIncrement' type=.A origin=null - i: GET_VAR 'val tmp_1: kotlin.Int [val] declared in .testPostfixIncrement' type=kotlin.Int origin=null - j: GET_VAR 'val tmp_2: kotlin.Int [val] declared in .testPostfixIncrement' type=kotlin.Int origin=null - v: CALL 'public final fun inc (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp_3: kotlin.Int [val] declared in .testPostfixIncrement' type=kotlin.Int origin=null - GET_VAR 'val tmp_3: kotlin.Int [val] declared in .testPostfixIncrement' type=kotlin.Int origin=null + GET_VAR 'val tmp_1: kotlin.Int declared in .testPostfixIncrement' type=kotlin.Int origin=null + GET_VAR 'val tmp_2: kotlin.Int declared in .testPostfixIncrement' type=kotlin.Int origin=null + CALL 'public final fun set (i: kotlin.Int, j: kotlin.Int, v: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=null + $receiver: GET_VAR 'val tmp_0: .A declared in .testPostfixIncrement' type=.A origin=null + i: GET_VAR 'val tmp_1: kotlin.Int declared in .testPostfixIncrement' type=kotlin.Int origin=null + j: GET_VAR 'val tmp_2: kotlin.Int declared in .testPostfixIncrement' type=kotlin.Int origin=null + v: CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_3: kotlin.Int declared in .testPostfixIncrement' type=kotlin.Int origin=null + GET_VAR 'val tmp_3: kotlin.Int declared in .testPostfixIncrement' type=kotlin.Int origin=null FUN name:testCompoundAssignment visibility:public modality:FINAL <> (a:.A) returnType:kotlin.Unit VALUE_PARAMETER name:a index:0 type:.A BLOCK_BODY @@ -72,14 +72,14 @@ FILE fqName: fileName:/kt28456.kt CONST Int type=kotlin.Int value=1 VAR IR_TEMPORARY_VARIABLE name:tmp_6 type:kotlin.Int [val] CONST Int type=kotlin.Int value=2 - CALL 'public final fun set (i: kotlin.Int, j: kotlin.Int, v: kotlin.Int): kotlin.Unit [operator] declared in ' type=kotlin.Unit origin=null - $receiver: GET_VAR 'val tmp_4: .A [val] declared in .testCompoundAssignment' type=.A origin=null - i: GET_VAR 'val tmp_5: kotlin.Int [val] declared in .testCompoundAssignment' type=kotlin.Int origin=null - j: GET_VAR 'val tmp_6: kotlin.Int [val] declared in .testCompoundAssignment' type=kotlin.Int origin=null - v: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: CALL 'public final fun get (vararg xs: kotlin.Int): kotlin.Int [operator] declared in ' type=kotlin.Int origin=null - $receiver: GET_VAR 'val tmp_4: .A [val] declared in .testCompoundAssignment' type=.A origin=null + CALL 'public final fun set (i: kotlin.Int, j: kotlin.Int, v: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=null + $receiver: GET_VAR 'val tmp_4: .A declared in .testCompoundAssignment' type=.A origin=null + i: GET_VAR 'val tmp_5: kotlin.Int declared in .testCompoundAssignment' type=kotlin.Int origin=null + j: GET_VAR 'val tmp_6: kotlin.Int declared in .testCompoundAssignment' type=kotlin.Int origin=null + v: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: CALL 'public final fun get (vararg xs: kotlin.Int): kotlin.Int declared in ' type=kotlin.Int origin=null + $receiver: GET_VAR 'val tmp_4: .A declared in .testCompoundAssignment' type=.A origin=null xs: VARARG type=kotlin.IntArray varargElementType=kotlin.Int - GET_VAR 'val tmp_5: kotlin.Int [val] declared in .testCompoundAssignment' type=kotlin.Int origin=null - GET_VAR 'val tmp_6: kotlin.Int [val] declared in .testCompoundAssignment' type=kotlin.Int origin=null + GET_VAR 'val tmp_5: kotlin.Int declared in .testCompoundAssignment' type=kotlin.Int origin=null + GET_VAR 'val tmp_6: kotlin.Int declared in .testCompoundAssignment' type=kotlin.Int origin=null other: CONST Int type=kotlin.Int value=10 diff --git a/compiler/testData/ir/irText/expressions/kt28456.ir.txt b/compiler/testData/ir/irText/expressions/kt28456.ir.txt index 08af39e2552..250c2333d6f 100644 --- a/compiler/testData/ir/irText/expressions/kt28456.ir.txt +++ b/compiler/testData/ir/irText/expressions/kt28456.ir.txt @@ -3,11 +3,11 @@ FILE fqName: fileName:/kt28456.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.A CONSTRUCTOR visibility:public <> () returnType:.A [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:A modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -22,7 +22,7 @@ FILE fqName: fileName:/kt28456.kt $receiver: VALUE_PARAMETER name: type:.A VALUE_PARAMETER name:xs index:0 type:kotlin.IntArray varargElementType:kotlin.Int [vararg] BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun get (vararg xs: kotlin.Int): kotlin.Int [operator] declared in ' + RETURN type=kotlin.Nothing from='public final fun get (vararg xs: kotlin.Int): kotlin.Int declared in ' CONST Int type=kotlin.Int value=0 FUN name:set visibility:public modality:FINAL <> ($receiver:.A, i:kotlin.Int, j:kotlin.Int, v:kotlin.Int) returnType:kotlin.Unit [operator] $receiver: VALUE_PARAMETER name: type:.A @@ -33,7 +33,7 @@ FILE fqName: fileName:/kt28456.kt FUN name:testSimpleAssignment visibility:public modality:FINAL <> (a:.A) returnType:kotlin.Unit VALUE_PARAMETER name:a index:0 type:.A BLOCK_BODY - CALL 'public final fun set (i: kotlin.Int, j: kotlin.Int, v: kotlin.Int): kotlin.Unit [operator] declared in ' type=kotlin.Unit origin=EQ + CALL 'public final fun set (i: kotlin.Int, j: kotlin.Int, v: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=EQ $receiver: GET_VAR 'a: .A declared in .testSimpleAssignment' type=.A origin=null i: CONST Int type=kotlin.Int value=1 j: CONST Int type=kotlin.Int value=2 @@ -50,18 +50,18 @@ FILE fqName: fileName:/kt28456.kt VAR IR_TEMPORARY_VARIABLE name:tmp_2 type:kotlin.Int [val] CONST Int type=kotlin.Int value=2 VAR IR_TEMPORARY_VARIABLE name:tmp_3 type:kotlin.Int [val] - CALL 'public final fun get (vararg xs: kotlin.Int): kotlin.Int [operator] declared in ' type=kotlin.Int origin=POSTFIX_INCR - $receiver: GET_VAR 'val tmp_0: .A [val] declared in .testPostfixIncrement' type=.A origin=null + CALL 'public final fun get (vararg xs: kotlin.Int): kotlin.Int declared in ' type=kotlin.Int origin=POSTFIX_INCR + $receiver: GET_VAR 'val tmp_0: .A declared in .testPostfixIncrement' type=.A origin=null xs: VARARG type=kotlin.IntArray varargElementType=kotlin.Int - GET_VAR 'val tmp_1: kotlin.Int [val] declared in .testPostfixIncrement' type=kotlin.Int origin=null - GET_VAR 'val tmp_2: kotlin.Int [val] declared in .testPostfixIncrement' type=kotlin.Int origin=null - CALL 'public final fun set (i: kotlin.Int, j: kotlin.Int, v: kotlin.Int): kotlin.Unit [operator] declared in ' type=kotlin.Unit origin=POSTFIX_INCR - $receiver: GET_VAR 'val tmp_0: .A [val] declared in .testPostfixIncrement' type=.A origin=null - i: GET_VAR 'val tmp_1: kotlin.Int [val] declared in .testPostfixIncrement' type=kotlin.Int origin=null - j: GET_VAR 'val tmp_2: kotlin.Int [val] declared in .testPostfixIncrement' type=kotlin.Int origin=null - v: CALL 'public final fun inc (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_INCR - $this: GET_VAR 'val tmp_3: kotlin.Int [val] declared in .testPostfixIncrement' type=kotlin.Int origin=null - GET_VAR 'val tmp_3: kotlin.Int [val] declared in .testPostfixIncrement' type=kotlin.Int origin=null + GET_VAR 'val tmp_1: kotlin.Int declared in .testPostfixIncrement' type=kotlin.Int origin=null + GET_VAR 'val tmp_2: kotlin.Int declared in .testPostfixIncrement' type=kotlin.Int origin=null + CALL 'public final fun set (i: kotlin.Int, j: kotlin.Int, v: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=POSTFIX_INCR + $receiver: GET_VAR 'val tmp_0: .A declared in .testPostfixIncrement' type=.A origin=null + i: GET_VAR 'val tmp_1: kotlin.Int declared in .testPostfixIncrement' type=kotlin.Int origin=null + j: GET_VAR 'val tmp_2: kotlin.Int declared in .testPostfixIncrement' type=kotlin.Int origin=null + v: CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_INCR + $this: GET_VAR 'val tmp_3: kotlin.Int declared in .testPostfixIncrement' type=kotlin.Int origin=null + GET_VAR 'val tmp_3: kotlin.Int declared in .testPostfixIncrement' type=kotlin.Int origin=null FUN name:testCompoundAssignment visibility:public modality:FINAL <> (a:.A) returnType:kotlin.Unit VALUE_PARAMETER name:a index:0 type:.A BLOCK_BODY @@ -72,14 +72,14 @@ FILE fqName: fileName:/kt28456.kt CONST Int type=kotlin.Int value=1 VAR IR_TEMPORARY_VARIABLE name:tmp_6 type:kotlin.Int [val] CONST Int type=kotlin.Int value=2 - CALL 'public final fun set (i: kotlin.Int, j: kotlin.Int, v: kotlin.Int): kotlin.Unit [operator] declared in ' type=kotlin.Unit origin=PLUSEQ - $receiver: GET_VAR 'val tmp_4: .A [val] declared in .testCompoundAssignment' type=.A origin=null - i: GET_VAR 'val tmp_5: kotlin.Int [val] declared in .testCompoundAssignment' type=kotlin.Int origin=null - j: GET_VAR 'val tmp_6: kotlin.Int [val] declared in .testCompoundAssignment' type=kotlin.Int origin=null - v: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ - $this: CALL 'public final fun get (vararg xs: kotlin.Int): kotlin.Int [operator] declared in ' type=kotlin.Int origin=PLUSEQ - $receiver: GET_VAR 'val tmp_4: .A [val] declared in .testCompoundAssignment' type=.A origin=null + CALL 'public final fun set (i: kotlin.Int, j: kotlin.Int, v: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=PLUSEQ + $receiver: GET_VAR 'val tmp_4: .A declared in .testCompoundAssignment' type=.A origin=null + i: GET_VAR 'val tmp_5: kotlin.Int declared in .testCompoundAssignment' type=kotlin.Int origin=null + j: GET_VAR 'val tmp_6: kotlin.Int declared in .testCompoundAssignment' type=kotlin.Int origin=null + v: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ + $this: CALL 'public final fun get (vararg xs: kotlin.Int): kotlin.Int declared in ' type=kotlin.Int origin=PLUSEQ + $receiver: GET_VAR 'val tmp_4: .A declared in .testCompoundAssignment' type=.A origin=null xs: VARARG type=kotlin.IntArray varargElementType=kotlin.Int - GET_VAR 'val tmp_5: kotlin.Int [val] declared in .testCompoundAssignment' type=kotlin.Int origin=null - GET_VAR 'val tmp_6: kotlin.Int [val] declared in .testCompoundAssignment' type=kotlin.Int origin=null + GET_VAR 'val tmp_5: kotlin.Int declared in .testCompoundAssignment' type=kotlin.Int origin=null + GET_VAR 'val tmp_6: kotlin.Int declared in .testCompoundAssignment' type=kotlin.Int origin=null other: CONST Int type=kotlin.Int value=10 diff --git a/compiler/testData/ir/irText/expressions/kt28456a.fir.ir.txt b/compiler/testData/ir/irText/expressions/kt28456a.fir.ir.txt index 6f095a6ea18..d9b31ad1f87 100644 --- a/compiler/testData/ir/irText/expressions/kt28456a.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/kt28456a.fir.ir.txt @@ -3,11 +3,11 @@ FILE fqName: fileName:/kt28456a.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.A CONSTRUCTOR visibility:public <> () returnType:.A [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:A modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -26,7 +26,7 @@ FILE fqName: fileName:/kt28456a.kt FUN name:testSimpleAssignment visibility:public modality:FINAL <> (a:.A) returnType:kotlin.Unit VALUE_PARAMETER name:a index:0 type:.A BLOCK_BODY - CALL 'public final fun set (vararg i: kotlin.Int, v: kotlin.Int): kotlin.Unit [operator] declared in ' type=kotlin.Unit origin=null + CALL 'public final fun set (vararg i: kotlin.Int, v: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=null $receiver: GET_VAR 'a: .A declared in .testSimpleAssignment' type=.A origin=null i: VARARG type=kotlin.IntArray varargElementType=kotlin.Int CONST Int type=kotlin.Int value=1 diff --git a/compiler/testData/ir/irText/expressions/kt28456a.ir.txt b/compiler/testData/ir/irText/expressions/kt28456a.ir.txt index 49278a96c07..e29227c690a 100644 --- a/compiler/testData/ir/irText/expressions/kt28456a.ir.txt +++ b/compiler/testData/ir/irText/expressions/kt28456a.ir.txt @@ -3,11 +3,11 @@ FILE fqName: fileName:/kt28456a.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.A CONSTRUCTOR visibility:public <> () returnType:.A [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:A modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -26,7 +26,7 @@ FILE fqName: fileName:/kt28456a.kt FUN name:testSimpleAssignment visibility:public modality:FINAL <> (a:.A) returnType:kotlin.Unit VALUE_PARAMETER name:a index:0 type:.A BLOCK_BODY - CALL 'public final fun set (vararg i: kotlin.Int, v: kotlin.Int): kotlin.Unit [operator] declared in ' type=kotlin.Unit origin=EQ + CALL 'public final fun set (vararg i: kotlin.Int, v: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=EQ $receiver: GET_VAR 'a: .A declared in .testSimpleAssignment' type=.A origin=null i: VARARG type=kotlin.IntArray varargElementType=kotlin.Int CONST Int type=kotlin.Int value=1 diff --git a/compiler/testData/ir/irText/expressions/kt28456b.fir.ir.txt b/compiler/testData/ir/irText/expressions/kt28456b.fir.ir.txt index 7a4782dd25a..cd90c82862a 100644 --- a/compiler/testData/ir/irText/expressions/kt28456b.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/kt28456b.fir.ir.txt @@ -3,11 +3,11 @@ FILE fqName: fileName:/kt28456b.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.A CONSTRUCTOR visibility:public <> () returnType:.A [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:A modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -34,7 +34,7 @@ FILE fqName: fileName:/kt28456b.kt EXPRESSION_BODY CONST Int type=kotlin.Int value=4 BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun get (i: kotlin.Int, a: kotlin.Int, b: kotlin.Int, c: kotlin.Int, d: kotlin.Int): kotlin.Int [operator] declared in ' + RETURN type=kotlin.Nothing from='public final fun get (i: kotlin.Int, a: kotlin.Int, b: kotlin.Int, c: kotlin.Int, d: kotlin.Int): kotlin.Int declared in ' CONST Int type=kotlin.Int value=0 FUN name:set visibility:public modality:FINAL <> ($receiver:.A, i:kotlin.Int, j:kotlin.Int, v:kotlin.Int) returnType:kotlin.Unit [operator] $receiver: VALUE_PARAMETER name: type:.A @@ -47,7 +47,7 @@ FILE fqName: fileName:/kt28456b.kt FUN name:testSimpleAssignment visibility:public modality:FINAL <> (a:.A) returnType:kotlin.Unit VALUE_PARAMETER name:a index:0 type:.A BLOCK_BODY - CALL 'public final fun set (i: kotlin.Int, j: kotlin.Int, v: kotlin.Int): kotlin.Unit [operator] declared in ' type=kotlin.Unit origin=null + CALL 'public final fun set (i: kotlin.Int, j: kotlin.Int, v: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=null $receiver: GET_VAR 'a: .A declared in .testSimpleAssignment' type=.A origin=null i: CONST Int type=kotlin.Int value=1 v: CONST Int type=kotlin.Int value=0 @@ -61,15 +61,15 @@ FILE fqName: fileName:/kt28456b.kt VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:kotlin.Int [val] CONST Int type=kotlin.Int value=1 VAR IR_TEMPORARY_VARIABLE name:tmp_2 type:kotlin.Int [val] - CALL 'public final fun get (i: kotlin.Int, a: kotlin.Int, b: kotlin.Int, c: kotlin.Int, d: kotlin.Int): kotlin.Int [operator] declared in ' type=kotlin.Int origin=null - $receiver: GET_VAR 'val tmp_0: .A [val] declared in .testPostfixIncrement' type=.A origin=null - i: GET_VAR 'val tmp_1: kotlin.Int [val] declared in .testPostfixIncrement' type=kotlin.Int origin=null - CALL 'public final fun set (i: kotlin.Int, j: kotlin.Int, v: kotlin.Int): kotlin.Unit [operator] declared in ' type=kotlin.Unit origin=null - $receiver: GET_VAR 'val tmp_0: .A [val] declared in .testPostfixIncrement' type=.A origin=null - i: GET_VAR 'val tmp_1: kotlin.Int [val] declared in .testPostfixIncrement' type=kotlin.Int origin=null - v: CALL 'public final fun inc (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp_2: kotlin.Int [val] declared in .testPostfixIncrement' type=kotlin.Int origin=null - GET_VAR 'val tmp_2: kotlin.Int [val] declared in .testPostfixIncrement' type=kotlin.Int origin=null + CALL 'public final fun get (i: kotlin.Int, a: kotlin.Int, b: kotlin.Int, c: kotlin.Int, d: kotlin.Int): kotlin.Int declared in ' type=kotlin.Int origin=null + $receiver: GET_VAR 'val tmp_0: .A declared in .testPostfixIncrement' type=.A origin=null + i: GET_VAR 'val tmp_1: kotlin.Int declared in .testPostfixIncrement' type=kotlin.Int origin=null + CALL 'public final fun set (i: kotlin.Int, j: kotlin.Int, v: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=null + $receiver: GET_VAR 'val tmp_0: .A declared in .testPostfixIncrement' type=.A origin=null + i: GET_VAR 'val tmp_1: kotlin.Int declared in .testPostfixIncrement' type=kotlin.Int origin=null + v: CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_2: kotlin.Int declared in .testPostfixIncrement' type=kotlin.Int origin=null + GET_VAR 'val tmp_2: kotlin.Int declared in .testPostfixIncrement' type=kotlin.Int origin=null FUN name:testCompoundAssignment visibility:public modality:FINAL <> (a:.A) returnType:kotlin.Unit VALUE_PARAMETER name:a index:0 type:.A BLOCK_BODY @@ -78,11 +78,11 @@ FILE fqName: fileName:/kt28456b.kt GET_VAR 'a: .A declared in .testCompoundAssignment' type=.A origin=null VAR IR_TEMPORARY_VARIABLE name:tmp_4 type:kotlin.Int [val] CONST Int type=kotlin.Int value=1 - CALL 'public final fun set (i: kotlin.Int, j: kotlin.Int, v: kotlin.Int): kotlin.Unit [operator] declared in ' type=kotlin.Unit origin=null - $receiver: GET_VAR 'val tmp_3: .A [val] declared in .testCompoundAssignment' type=.A origin=null - i: GET_VAR 'val tmp_4: kotlin.Int [val] declared in .testCompoundAssignment' type=kotlin.Int origin=null - v: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: CALL 'public final fun get (i: kotlin.Int, a: kotlin.Int, b: kotlin.Int, c: kotlin.Int, d: kotlin.Int): kotlin.Int [operator] declared in ' type=kotlin.Int origin=null - $receiver: GET_VAR 'val tmp_3: .A [val] declared in .testCompoundAssignment' type=.A origin=null - i: GET_VAR 'val tmp_4: kotlin.Int [val] declared in .testCompoundAssignment' type=kotlin.Int origin=null + CALL 'public final fun set (i: kotlin.Int, j: kotlin.Int, v: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=null + $receiver: GET_VAR 'val tmp_3: .A declared in .testCompoundAssignment' type=.A origin=null + i: GET_VAR 'val tmp_4: kotlin.Int declared in .testCompoundAssignment' type=kotlin.Int origin=null + v: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: CALL 'public final fun get (i: kotlin.Int, a: kotlin.Int, b: kotlin.Int, c: kotlin.Int, d: kotlin.Int): kotlin.Int declared in ' type=kotlin.Int origin=null + $receiver: GET_VAR 'val tmp_3: .A declared in .testCompoundAssignment' type=.A origin=null + i: GET_VAR 'val tmp_4: kotlin.Int declared in .testCompoundAssignment' type=kotlin.Int origin=null other: CONST Int type=kotlin.Int value=10 diff --git a/compiler/testData/ir/irText/expressions/kt28456b.ir.txt b/compiler/testData/ir/irText/expressions/kt28456b.ir.txt index 20558950f89..047a00ac94d 100644 --- a/compiler/testData/ir/irText/expressions/kt28456b.ir.txt +++ b/compiler/testData/ir/irText/expressions/kt28456b.ir.txt @@ -3,11 +3,11 @@ FILE fqName: fileName:/kt28456b.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.A CONSTRUCTOR visibility:public <> () returnType:.A [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:A modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -34,7 +34,7 @@ FILE fqName: fileName:/kt28456b.kt EXPRESSION_BODY CONST Int type=kotlin.Int value=4 BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun get (i: kotlin.Int, a: kotlin.Int, b: kotlin.Int, c: kotlin.Int, d: kotlin.Int): kotlin.Int [operator] declared in ' + RETURN type=kotlin.Nothing from='public final fun get (i: kotlin.Int, a: kotlin.Int, b: kotlin.Int, c: kotlin.Int, d: kotlin.Int): kotlin.Int declared in ' CONST Int type=kotlin.Int value=0 FUN name:set visibility:public modality:FINAL <> ($receiver:.A, i:kotlin.Int, j:kotlin.Int, v:kotlin.Int) returnType:kotlin.Unit [operator] $receiver: VALUE_PARAMETER name: type:.A @@ -47,7 +47,7 @@ FILE fqName: fileName:/kt28456b.kt FUN name:testSimpleAssignment visibility:public modality:FINAL <> (a:.A) returnType:kotlin.Unit VALUE_PARAMETER name:a index:0 type:.A BLOCK_BODY - CALL 'public final fun set (i: kotlin.Int, j: kotlin.Int, v: kotlin.Int): kotlin.Unit [operator] declared in ' type=kotlin.Unit origin=EQ + CALL 'public final fun set (i: kotlin.Int, j: kotlin.Int, v: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=EQ $receiver: GET_VAR 'a: .A declared in .testSimpleAssignment' type=.A origin=null i: CONST Int type=kotlin.Int value=1 v: CONST Int type=kotlin.Int value=0 @@ -61,15 +61,15 @@ FILE fqName: fileName:/kt28456b.kt VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:kotlin.Int [val] CONST Int type=kotlin.Int value=1 VAR IR_TEMPORARY_VARIABLE name:tmp_2 type:kotlin.Int [val] - CALL 'public final fun get (i: kotlin.Int, a: kotlin.Int, b: kotlin.Int, c: kotlin.Int, d: kotlin.Int): kotlin.Int [operator] declared in ' type=kotlin.Int origin=POSTFIX_INCR - $receiver: GET_VAR 'val tmp_0: .A [val] declared in .testPostfixIncrement' type=.A origin=null - i: GET_VAR 'val tmp_1: kotlin.Int [val] declared in .testPostfixIncrement' type=kotlin.Int origin=null - CALL 'public final fun set (i: kotlin.Int, j: kotlin.Int, v: kotlin.Int): kotlin.Unit [operator] declared in ' type=kotlin.Unit origin=POSTFIX_INCR - $receiver: GET_VAR 'val tmp_0: .A [val] declared in .testPostfixIncrement' type=.A origin=null - i: GET_VAR 'val tmp_1: kotlin.Int [val] declared in .testPostfixIncrement' type=kotlin.Int origin=null - v: CALL 'public final fun inc (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_INCR - $this: GET_VAR 'val tmp_2: kotlin.Int [val] declared in .testPostfixIncrement' type=kotlin.Int origin=null - GET_VAR 'val tmp_2: kotlin.Int [val] declared in .testPostfixIncrement' type=kotlin.Int origin=null + CALL 'public final fun get (i: kotlin.Int, a: kotlin.Int, b: kotlin.Int, c: kotlin.Int, d: kotlin.Int): kotlin.Int declared in ' type=kotlin.Int origin=POSTFIX_INCR + $receiver: GET_VAR 'val tmp_0: .A declared in .testPostfixIncrement' type=.A origin=null + i: GET_VAR 'val tmp_1: kotlin.Int declared in .testPostfixIncrement' type=kotlin.Int origin=null + CALL 'public final fun set (i: kotlin.Int, j: kotlin.Int, v: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=POSTFIX_INCR + $receiver: GET_VAR 'val tmp_0: .A declared in .testPostfixIncrement' type=.A origin=null + i: GET_VAR 'val tmp_1: kotlin.Int declared in .testPostfixIncrement' type=kotlin.Int origin=null + v: CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_INCR + $this: GET_VAR 'val tmp_2: kotlin.Int declared in .testPostfixIncrement' type=kotlin.Int origin=null + GET_VAR 'val tmp_2: kotlin.Int declared in .testPostfixIncrement' type=kotlin.Int origin=null FUN name:testCompoundAssignment visibility:public modality:FINAL <> (a:.A) returnType:kotlin.Unit VALUE_PARAMETER name:a index:0 type:.A BLOCK_BODY @@ -78,11 +78,11 @@ FILE fqName: fileName:/kt28456b.kt GET_VAR 'a: .A declared in .testCompoundAssignment' type=.A origin=null VAR IR_TEMPORARY_VARIABLE name:tmp_4 type:kotlin.Int [val] CONST Int type=kotlin.Int value=1 - CALL 'public final fun set (i: kotlin.Int, j: kotlin.Int, v: kotlin.Int): kotlin.Unit [operator] declared in ' type=kotlin.Unit origin=PLUSEQ - $receiver: GET_VAR 'val tmp_3: .A [val] declared in .testCompoundAssignment' type=.A origin=null - i: GET_VAR 'val tmp_4: kotlin.Int [val] declared in .testCompoundAssignment' type=kotlin.Int origin=null - v: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ - $this: CALL 'public final fun get (i: kotlin.Int, a: kotlin.Int, b: kotlin.Int, c: kotlin.Int, d: kotlin.Int): kotlin.Int [operator] declared in ' type=kotlin.Int origin=PLUSEQ - $receiver: GET_VAR 'val tmp_3: .A [val] declared in .testCompoundAssignment' type=.A origin=null - i: GET_VAR 'val tmp_4: kotlin.Int [val] declared in .testCompoundAssignment' type=kotlin.Int origin=null + CALL 'public final fun set (i: kotlin.Int, j: kotlin.Int, v: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=PLUSEQ + $receiver: GET_VAR 'val tmp_3: .A declared in .testCompoundAssignment' type=.A origin=null + i: GET_VAR 'val tmp_4: kotlin.Int declared in .testCompoundAssignment' type=kotlin.Int origin=null + v: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ + $this: CALL 'public final fun get (i: kotlin.Int, a: kotlin.Int, b: kotlin.Int, c: kotlin.Int, d: kotlin.Int): kotlin.Int declared in ' type=kotlin.Int origin=PLUSEQ + $receiver: GET_VAR 'val tmp_3: .A declared in .testCompoundAssignment' type=.A origin=null + i: GET_VAR 'val tmp_4: kotlin.Int declared in .testCompoundAssignment' type=kotlin.Int origin=null other: CONST Int type=kotlin.Int value=10 diff --git a/compiler/testData/ir/irText/expressions/kt30020.fir.ir.txt b/compiler/testData/ir/irText/expressions/kt30020.fir.ir.txt index 751c96a7f57..37320a32890 100644 --- a/compiler/testData/ir/irText/expressions/kt30020.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/kt30020.fir.ir.txt @@ -9,7 +9,7 @@ FILE fqName: fileName:/kt30020.kt $this: VALUE_PARAMETER name: type:.X 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -24,29 +24,29 @@ FILE fqName: fileName:/kt30020.kt VALUE_PARAMETER name:x index:0 type:.X VALUE_PARAMETER name:nx index:1 type:.X? BLOCK_BODY - CALL 'public final fun plusAssign (element: T of kotlin.collections.CollectionsKt.plusAssign): kotlin.Unit [inline,operator] declared in kotlin.collections.CollectionsKt' type=kotlin.Unit origin=null + CALL 'public final fun plusAssign (element: T of kotlin.collections.CollectionsKt.plusAssign): kotlin.Unit declared in kotlin.collections.CollectionsKt' type=kotlin.Unit origin=null : kotlin.Int $receiver: CALL 'public abstract fun (): kotlin.collections.MutableList declared in .X' type=kotlin.collections.MutableList origin=GET_PROPERTY $this: GET_VAR 'x: .X declared in .test' type=.X origin=null element: CONST Int type=kotlin.Int value=1 - CALL 'public final fun plusAssign (element: T of kotlin.collections.CollectionsKt.plusAssign): kotlin.Unit [inline,operator] declared in kotlin.collections.CollectionsKt' type=kotlin.Unit origin=null + CALL 'public final fun plusAssign (element: T of kotlin.collections.CollectionsKt.plusAssign): kotlin.Unit declared in kotlin.collections.CollectionsKt' type=kotlin.Unit origin=null : kotlin.Int $receiver: CALL 'public abstract fun f (): kotlin.collections.MutableList declared in .X' type=kotlin.collections.MutableList origin=null $this: GET_VAR 'x: .X declared in .test' type=.X origin=null element: CONST Int type=kotlin.Int value=2 - CALL 'public final fun plusAssign (element: T of kotlin.collections.CollectionsKt.plusAssign): kotlin.Unit [inline,operator] declared in kotlin.collections.CollectionsKt' type=kotlin.Unit origin=null + CALL 'public final fun plusAssign (element: T of kotlin.collections.CollectionsKt.plusAssign): kotlin.Unit declared in kotlin.collections.CollectionsKt' type=kotlin.Unit origin=null : kotlin.Int $receiver: TYPE_OP type=kotlin.collections.MutableList origin=CAST typeOperand=kotlin.collections.MutableList CALL 'public abstract fun (): kotlin.collections.MutableList declared in .X' type=kotlin.collections.MutableList origin=GET_PROPERTY $this: GET_VAR 'x: .X declared in .test' type=.X origin=null element: CONST Int type=kotlin.Int value=3 - CALL 'public final fun plusAssign (element: T of kotlin.collections.CollectionsKt.plusAssign): kotlin.Unit [inline,operator] declared in kotlin.collections.CollectionsKt' type=kotlin.Unit origin=null + CALL 'public final fun plusAssign (element: T of kotlin.collections.CollectionsKt.plusAssign): kotlin.Unit declared in kotlin.collections.CollectionsKt' type=kotlin.Unit origin=null : kotlin.Int $receiver: TYPE_OP type=kotlin.collections.MutableList origin=CAST typeOperand=kotlin.collections.MutableList CALL 'public abstract fun f (): kotlin.collections.MutableList declared in .X' type=kotlin.collections.MutableList origin=null $this: GET_VAR 'x: .X declared in .test' type=.X origin=null element: CONST Int type=kotlin.Int value=4 - CALL 'public final fun plusAssign (element: T of kotlin.collections.CollectionsKt.plusAssign): kotlin.Unit [inline,operator] declared in kotlin.collections.CollectionsKt' type=kotlin.Unit origin=null + CALL 'public final fun plusAssign (element: T of kotlin.collections.CollectionsKt.plusAssign): kotlin.Unit declared in kotlin.collections.CollectionsKt' type=kotlin.Unit origin=null : kotlin.Int $receiver: CALL 'public final fun CHECK_NOT_NULL (arg0: T0 of kotlin.internal.ir.CHECK_NOT_NULL?): {T0 of kotlin.internal.ir.CHECK_NOT_NULL & Any} declared in kotlin.internal.ir' type=kotlin.collections.MutableList origin=EXCLEXCL : kotlin.collections.MutableList @@ -56,15 +56,15 @@ FILE fqName: fileName:/kt30020.kt WHEN type=kotlin.collections.MutableList? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_0: .X? [val] declared in .test' type=.X? origin=null + arg0: GET_VAR 'val tmp_0: .X? declared in .test' type=.X? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public abstract fun (): kotlin.collections.MutableList declared in .X' type=kotlin.collections.MutableList origin=GET_PROPERTY - $this: GET_VAR 'val tmp_0: .X? [val] declared in .test' type=.X? origin=null + $this: GET_VAR 'val tmp_0: .X? declared in .test' type=.X? origin=null element: CONST Int type=kotlin.Int value=5 - CALL 'public final fun plusAssign (element: T of kotlin.collections.CollectionsKt.plusAssign): kotlin.Unit [inline,operator] declared in kotlin.collections.CollectionsKt' type=kotlin.Unit origin=null + CALL 'public final fun plusAssign (element: T of kotlin.collections.CollectionsKt.plusAssign): kotlin.Unit declared in kotlin.collections.CollectionsKt' type=kotlin.Unit origin=null : kotlin.Int $receiver: CALL 'public final fun CHECK_NOT_NULL (arg0: T0 of kotlin.internal.ir.CHECK_NOT_NULL?): {T0 of kotlin.internal.ir.CHECK_NOT_NULL & Any} declared in kotlin.internal.ir' type=kotlin.collections.MutableList origin=EXCLEXCL : kotlin.collections.MutableList @@ -74,18 +74,18 @@ FILE fqName: fileName:/kt30020.kt WHEN type=kotlin.collections.MutableList? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_1: .X? [val] declared in .test' type=.X? origin=null + arg0: GET_VAR 'val tmp_1: .X? declared in .test' type=.X? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public abstract fun f (): kotlin.collections.MutableList declared in .X' type=kotlin.collections.MutableList origin=null - $this: GET_VAR 'val tmp_1: .X? [val] declared in .test' type=.X? origin=null + $this: GET_VAR 'val tmp_1: .X? declared in .test' type=.X? origin=null element: CONST Int type=kotlin.Int value=6 FUN name:testExtensionReceiver visibility:public modality:FINAL <> ($receiver:kotlin.collections.MutableList) returnType:kotlin.Unit $receiver: VALUE_PARAMETER name: type:kotlin.collections.MutableList BLOCK_BODY - CALL 'public final fun plusAssign (element: T of kotlin.collections.CollectionsKt.plusAssign): kotlin.Unit [inline,operator] declared in kotlin.collections.CollectionsKt' type=kotlin.Unit origin=null + CALL 'public final fun plusAssign (element: T of kotlin.collections.CollectionsKt.plusAssign): kotlin.Unit declared in kotlin.collections.CollectionsKt' type=kotlin.Unit origin=null : kotlin.Int $receiver: GET_VAR ': kotlin.collections.MutableList declared in .testExtensionReceiver' type=kotlin.collections.MutableList origin=null element: CONST Int type=kotlin.Int value=100 @@ -93,12 +93,12 @@ FILE fqName: fileName:/kt30020.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.AML CONSTRUCTOR visibility:public <> () returnType:.AML [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:AML modality:ABSTRACT visibility:public superTypes:[kotlin.collections.MutableList]' FUN name:testExplicitThis visibility:public modality:FINAL <> ($this:.AML) returnType:kotlin.Unit $this: VALUE_PARAMETER name: type:.AML BLOCK_BODY - CALL 'public final fun plusAssign (element: T of kotlin.collections.CollectionsKt.plusAssign): kotlin.Unit [inline,operator] declared in kotlin.collections.CollectionsKt' type=kotlin.Unit origin=null + CALL 'public final fun plusAssign (element: T of kotlin.collections.CollectionsKt.plusAssign): kotlin.Unit declared in kotlin.collections.CollectionsKt' type=kotlin.Unit origin=null : kotlin.Int $receiver: GET_VAR ': .AML declared in .AML.testExplicitThis' type=.AML origin=null element: CONST Int type=kotlin.Int value=200 @@ -107,18 +107,18 @@ FILE fqName: fileName:/kt30020.kt CONSTRUCTOR visibility:public <> ($this:.AML) returnType:.AML.Inner [primary] $outer: VALUE_PARAMETER name: type:.AML BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Inner modality:FINAL visibility:public [inner] superTypes:[kotlin.Any]' FUN name:testOuterThis visibility:public modality:FINAL <> ($this:.AML.Inner) returnType:kotlin.Unit $this: VALUE_PARAMETER name: type:.AML.Inner BLOCK_BODY - CALL 'public final fun plusAssign (element: T of kotlin.collections.CollectionsKt.plusAssign): kotlin.Unit [inline,operator] declared in kotlin.collections.CollectionsKt' type=kotlin.Unit origin=null + CALL 'public final fun plusAssign (element: T of kotlin.collections.CollectionsKt.plusAssign): kotlin.Unit declared in kotlin.collections.CollectionsKt' type=kotlin.Unit origin=null : kotlin.Int $receiver: GET_VAR ': .AML declared in .AML' type=.AML origin=null element: CONST Int type=kotlin.Int value=300 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -186,7 +186,7 @@ FILE fqName: fileName:/kt30020.kt VALUE_PARAMETER name:elements index:0 type:kotlin.collections.Collection FUN FAKE_OVERRIDE name:set visibility:public modality:ABSTRACT <> ($this:kotlin.collections.MutableList, index:kotlin.Int, element:kotlin.Int) returnType:kotlin.Int [fake_override,operator] overridden: - public abstract fun set (index: kotlin.Int, element: E of kotlin.collections.MutableList): E of kotlin.collections.MutableList [operator] declared in kotlin.collections.MutableList + public abstract fun set (index: kotlin.Int, element: E of kotlin.collections.MutableList): E of kotlin.collections.MutableList declared in kotlin.collections.MutableList $this: VALUE_PARAMETER name: type:kotlin.collections.MutableList VALUE_PARAMETER name:index index:0 type:kotlin.Int VALUE_PARAMETER name:element index:1 type:kotlin.Int @@ -198,55 +198,55 @@ FILE fqName: fileName:/kt30020.kt VALUE_PARAMETER name:toIndex index:1 type:kotlin.Int PROPERTY FAKE_OVERRIDE name:size visibility:public modality:ABSTRACT [fake_override,val] overridden: - public abstract size: kotlin.Int [fake_override,val] + public abstract size: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:ABSTRACT <> ($this:kotlin.collections.List) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:size visibility:public modality:ABSTRACT [fake_override,val] overridden: - public abstract fun (): kotlin.Int [fake_override] declared in kotlin.collections.MutableList + public abstract fun (): kotlin.Int declared in kotlin.collections.MutableList $this: VALUE_PARAMETER name: type:kotlin.collections.List FUN FAKE_OVERRIDE name:isEmpty visibility:public modality:ABSTRACT <> ($this:kotlin.collections.List) returnType:kotlin.Boolean [fake_override] overridden: - public abstract fun isEmpty (): kotlin.Boolean [fake_override] declared in kotlin.collections.MutableList + public abstract fun isEmpty (): kotlin.Boolean declared in kotlin.collections.MutableList $this: VALUE_PARAMETER name: type:kotlin.collections.List FUN FAKE_OVERRIDE name:contains visibility:public modality:ABSTRACT <> ($this:kotlin.collections.List, element:kotlin.Int) returnType:kotlin.Boolean [fake_override,operator] overridden: - public abstract fun contains (element: E of kotlin.collections.MutableList): kotlin.Boolean [fake_override,operator] declared in kotlin.collections.MutableList + public abstract fun contains (element: E of kotlin.collections.MutableList): kotlin.Boolean declared in kotlin.collections.MutableList $this: VALUE_PARAMETER name: type:kotlin.collections.List VALUE_PARAMETER name:element index:0 type:kotlin.Int FUN FAKE_OVERRIDE name:iterator visibility:public modality:ABSTRACT <> ($this:kotlin.collections.MutableCollection) returnType:kotlin.collections.MutableIterator [fake_override,operator] overridden: - public abstract fun iterator (): kotlin.collections.MutableIterator [fake_override,operator] declared in kotlin.collections.MutableList + public abstract fun iterator (): kotlin.collections.MutableIterator declared in kotlin.collections.MutableList $this: VALUE_PARAMETER name: type:kotlin.collections.MutableCollection FUN FAKE_OVERRIDE name:containsAll visibility:public modality:ABSTRACT <> ($this:kotlin.collections.List, elements:kotlin.collections.Collection) returnType:kotlin.Boolean [fake_override] overridden: - public abstract fun containsAll (elements: kotlin.collections.Collection): kotlin.Boolean [fake_override] declared in kotlin.collections.MutableList + public abstract fun containsAll (elements: kotlin.collections.Collection): kotlin.Boolean declared in kotlin.collections.MutableList $this: VALUE_PARAMETER name: type:kotlin.collections.List VALUE_PARAMETER name:elements index:0 type:kotlin.collections.Collection FUN FAKE_OVERRIDE name:get visibility:public modality:ABSTRACT <> ($this:kotlin.collections.List, index:kotlin.Int) returnType:kotlin.Int [fake_override,operator] overridden: - public abstract fun get (index: kotlin.Int): E of kotlin.collections.MutableList [fake_override,operator] declared in kotlin.collections.MutableList + public abstract fun get (index: kotlin.Int): E of kotlin.collections.MutableList declared in kotlin.collections.MutableList $this: VALUE_PARAMETER name: type:kotlin.collections.List VALUE_PARAMETER name:index index:0 type:kotlin.Int FUN FAKE_OVERRIDE name:indexOf visibility:public modality:ABSTRACT <> ($this:kotlin.collections.List, element:kotlin.Int) returnType:kotlin.Int [fake_override] overridden: - public abstract fun indexOf (element: E of kotlin.collections.MutableList): kotlin.Int [fake_override] declared in kotlin.collections.MutableList + public abstract fun indexOf (element: E of kotlin.collections.MutableList): kotlin.Int declared in kotlin.collections.MutableList $this: VALUE_PARAMETER name: type:kotlin.collections.List VALUE_PARAMETER name:element index:0 type:kotlin.Int FUN FAKE_OVERRIDE name:lastIndexOf visibility:public modality:ABSTRACT <> ($this:kotlin.collections.List, element:kotlin.Int) returnType:kotlin.Int [fake_override] overridden: - public abstract fun lastIndexOf (element: E of kotlin.collections.MutableList): kotlin.Int [fake_override] declared in kotlin.collections.MutableList + public abstract fun lastIndexOf (element: E of kotlin.collections.MutableList): kotlin.Int declared in kotlin.collections.MutableList $this: VALUE_PARAMETER name: type:kotlin.collections.List VALUE_PARAMETER name:element index:0 type:kotlin.Int 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 kotlin.collections.MutableList + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.collections.MutableList $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 kotlin.collections.MutableList + public open fun hashCode (): kotlin.Int declared in kotlin.collections.MutableList $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 kotlin.collections.MutableList + public open fun toString (): kotlin.String declared in kotlin.collections.MutableList $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/expressions/kt30020.ir.txt b/compiler/testData/ir/irText/expressions/kt30020.ir.txt index 50755ddf5c3..421a9122455 100644 --- a/compiler/testData/ir/irText/expressions/kt30020.ir.txt +++ b/compiler/testData/ir/irText/expressions/kt30020.ir.txt @@ -9,7 +9,7 @@ FILE fqName: fileName:/kt30020.kt $this: VALUE_PARAMETER name: type:.X 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -27,29 +27,29 @@ FILE fqName: fileName:/kt30020.kt BLOCK type=kotlin.Unit origin=PLUSEQ VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:.X [val] GET_VAR 'x: .X declared in .test' type=.X origin=null - CALL 'public final fun plusAssign (element: T of kotlin.collections.CollectionsKt.plusAssign): kotlin.Unit [inline,operator] declared in kotlin.collections.CollectionsKt' type=kotlin.Unit origin=PLUSEQ + CALL 'public final fun plusAssign (element: T of kotlin.collections.CollectionsKt.plusAssign): kotlin.Unit declared in kotlin.collections.CollectionsKt' type=kotlin.Unit origin=PLUSEQ : kotlin.Int $receiver: CALL 'public abstract fun (): kotlin.collections.MutableList declared in .X' type=kotlin.collections.MutableList origin=PLUSEQ - $this: GET_VAR 'val tmp_0: .X [val] declared in .test' type=.X origin=null + $this: GET_VAR 'val tmp_0: .X declared in .test' type=.X origin=null element: CONST Int type=kotlin.Int value=1 - CALL 'public final fun plusAssign (element: T of kotlin.collections.CollectionsKt.plusAssign): kotlin.Unit [inline,operator] declared in kotlin.collections.CollectionsKt' type=kotlin.Unit origin=PLUSEQ + CALL 'public final fun plusAssign (element: T of kotlin.collections.CollectionsKt.plusAssign): kotlin.Unit declared in kotlin.collections.CollectionsKt' type=kotlin.Unit origin=PLUSEQ : kotlin.Int $receiver: CALL 'public abstract fun f (): kotlin.collections.MutableList declared in .X' type=kotlin.collections.MutableList origin=null $this: GET_VAR 'x: .X declared in .test' type=.X origin=null element: CONST Int type=kotlin.Int value=2 - CALL 'public final fun plusAssign (element: T of kotlin.collections.CollectionsKt.plusAssign): kotlin.Unit [inline,operator] declared in kotlin.collections.CollectionsKt' type=kotlin.Unit origin=PLUSEQ + CALL 'public final fun plusAssign (element: T of kotlin.collections.CollectionsKt.plusAssign): kotlin.Unit declared in kotlin.collections.CollectionsKt' type=kotlin.Unit origin=PLUSEQ : kotlin.Int $receiver: TYPE_OP type=kotlin.collections.MutableList origin=CAST typeOperand=kotlin.collections.MutableList CALL 'public abstract fun (): kotlin.collections.MutableList declared in .X' type=kotlin.collections.MutableList origin=GET_PROPERTY $this: GET_VAR 'x: .X declared in .test' type=.X origin=null element: CONST Int type=kotlin.Int value=3 - CALL 'public final fun plusAssign (element: T of kotlin.collections.CollectionsKt.plusAssign): kotlin.Unit [inline,operator] declared in kotlin.collections.CollectionsKt' type=kotlin.Unit origin=PLUSEQ + CALL 'public final fun plusAssign (element: T of kotlin.collections.CollectionsKt.plusAssign): kotlin.Unit declared in kotlin.collections.CollectionsKt' type=kotlin.Unit origin=PLUSEQ : kotlin.Int $receiver: TYPE_OP type=kotlin.collections.MutableList origin=CAST typeOperand=kotlin.collections.MutableList CALL 'public abstract fun f (): kotlin.collections.MutableList declared in .X' type=kotlin.collections.MutableList origin=null $this: GET_VAR 'x: .X declared in .test' type=.X origin=null element: CONST Int type=kotlin.Int value=4 - CALL 'public final fun plusAssign (element: T of kotlin.collections.CollectionsKt.plusAssign): kotlin.Unit [inline,operator] declared in kotlin.collections.CollectionsKt' type=kotlin.Unit origin=PLUSEQ + CALL 'public final fun plusAssign (element: T of kotlin.collections.CollectionsKt.plusAssign): kotlin.Unit declared in kotlin.collections.CollectionsKt' type=kotlin.Unit origin=PLUSEQ : kotlin.Int $receiver: CALL 'public final fun CHECK_NOT_NULL (arg0: T0 of kotlin.internal.ir.CHECK_NOT_NULL?): {T0 of kotlin.internal.ir.CHECK_NOT_NULL & Any} declared in kotlin.internal.ir' type=kotlin.collections.MutableList origin=EXCLEXCL : kotlin.collections.MutableList @@ -59,15 +59,15 @@ FILE fqName: fileName:/kt30020.kt WHEN type=kotlin.collections.MutableList? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_1: .X? [val] declared in .test' type=.X? origin=null + arg0: GET_VAR 'val tmp_1: .X? declared in .test' type=.X? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public abstract fun (): kotlin.collections.MutableList declared in .X' type=kotlin.collections.MutableList origin=GET_PROPERTY - $this: GET_VAR 'val tmp_1: .X? [val] declared in .test' type=.X? origin=null + $this: GET_VAR 'val tmp_1: .X? declared in .test' type=.X? origin=null element: CONST Int type=kotlin.Int value=5 - CALL 'public final fun plusAssign (element: T of kotlin.collections.CollectionsKt.plusAssign): kotlin.Unit [inline,operator] declared in kotlin.collections.CollectionsKt' type=kotlin.Unit origin=PLUSEQ + CALL 'public final fun plusAssign (element: T of kotlin.collections.CollectionsKt.plusAssign): kotlin.Unit declared in kotlin.collections.CollectionsKt' type=kotlin.Unit origin=PLUSEQ : kotlin.Int $receiver: CALL 'public final fun CHECK_NOT_NULL (arg0: T0 of kotlin.internal.ir.CHECK_NOT_NULL?): {T0 of kotlin.internal.ir.CHECK_NOT_NULL & Any} declared in kotlin.internal.ir' type=kotlin.collections.MutableList origin=EXCLEXCL : kotlin.collections.MutableList @@ -77,18 +77,18 @@ FILE fqName: fileName:/kt30020.kt WHEN type=kotlin.collections.MutableList? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_2: .X? [val] declared in .test' type=.X? origin=null + arg0: GET_VAR 'val tmp_2: .X? declared in .test' type=.X? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public abstract fun f (): kotlin.collections.MutableList declared in .X' type=kotlin.collections.MutableList origin=null - $this: GET_VAR 'val tmp_2: .X? [val] declared in .test' type=.X? origin=null + $this: GET_VAR 'val tmp_2: .X? declared in .test' type=.X? origin=null element: CONST Int type=kotlin.Int value=6 FUN name:testExtensionReceiver visibility:public modality:FINAL <> ($receiver:kotlin.collections.MutableList) returnType:kotlin.Unit $receiver: VALUE_PARAMETER name: type:kotlin.collections.MutableList BLOCK_BODY - CALL 'public final fun plusAssign (element: T of kotlin.collections.CollectionsKt.plusAssign): kotlin.Unit [inline,operator] declared in kotlin.collections.CollectionsKt' type=kotlin.Unit origin=PLUSEQ + CALL 'public final fun plusAssign (element: T of kotlin.collections.CollectionsKt.plusAssign): kotlin.Unit declared in kotlin.collections.CollectionsKt' type=kotlin.Unit origin=PLUSEQ : kotlin.Int $receiver: GET_VAR ': kotlin.collections.MutableList declared in .testExtensionReceiver' type=kotlin.collections.MutableList origin=PLUSEQ element: CONST Int type=kotlin.Int value=100 @@ -96,12 +96,12 @@ FILE fqName: fileName:/kt30020.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.AML CONSTRUCTOR visibility:public <> () returnType:.AML [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:AML modality:ABSTRACT visibility:public superTypes:[kotlin.collections.MutableList]' FUN name:testExplicitThis visibility:public modality:FINAL <> ($this:.AML) returnType:kotlin.Unit $this: VALUE_PARAMETER name: type:.AML BLOCK_BODY - CALL 'public final fun plusAssign (element: T of kotlin.collections.CollectionsKt.plusAssign): kotlin.Unit [inline,operator] declared in kotlin.collections.CollectionsKt' type=kotlin.Unit origin=PLUSEQ + CALL 'public final fun plusAssign (element: T of kotlin.collections.CollectionsKt.plusAssign): kotlin.Unit declared in kotlin.collections.CollectionsKt' type=kotlin.Unit origin=PLUSEQ : kotlin.Int $receiver: GET_VAR ': .AML declared in .AML.testExplicitThis' type=.AML origin=PLUSEQ element: CONST Int type=kotlin.Int value=200 @@ -110,18 +110,18 @@ FILE fqName: fileName:/kt30020.kt CONSTRUCTOR visibility:public <> ($this:.AML) returnType:.AML.Inner [primary] $outer: VALUE_PARAMETER name: type:.AML BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Inner modality:FINAL visibility:public [inner] superTypes:[kotlin.Any]' FUN name:testOuterThis visibility:public modality:FINAL <> ($this:.AML.Inner) returnType:kotlin.Unit $this: VALUE_PARAMETER name: type:.AML.Inner BLOCK_BODY - CALL 'public final fun plusAssign (element: T of kotlin.collections.CollectionsKt.plusAssign): kotlin.Unit [inline,operator] declared in kotlin.collections.CollectionsKt' type=kotlin.Unit origin=PLUSEQ + CALL 'public final fun plusAssign (element: T of kotlin.collections.CollectionsKt.plusAssign): kotlin.Unit declared in kotlin.collections.CollectionsKt' type=kotlin.Unit origin=PLUSEQ : kotlin.Int $receiver: GET_VAR ': .AML declared in .AML' type=.AML origin=PLUSEQ element: CONST Int type=kotlin.Int value=300 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -134,11 +134,11 @@ FILE fqName: fileName:/kt30020.kt $this: VALUE_PARAMETER name: type:kotlin.Any PROPERTY FAKE_OVERRIDE name:size visibility:public modality:ABSTRACT [fake_override,val] overridden: - public abstract size: kotlin.Int [fake_override,val] + public abstract size: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:ABSTRACT <> ($this:kotlin.collections.List) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:size visibility:public modality:ABSTRACT [fake_override,val] overridden: - public abstract fun (): kotlin.Int [fake_override] declared in kotlin.collections.MutableList + public abstract fun (): kotlin.Int declared in kotlin.collections.MutableList $this: VALUE_PARAMETER name: type:kotlin.collections.List FUN FAKE_OVERRIDE name:add visibility:public modality:ABSTRACT <> ($this:kotlin.collections.MutableList, element:kotlin.Int) returnType:kotlin.Boolean [fake_override] overridden: @@ -168,44 +168,44 @@ FILE fqName: fileName:/kt30020.kt $this: VALUE_PARAMETER name: type:kotlin.collections.MutableList FUN FAKE_OVERRIDE name:contains visibility:public modality:ABSTRACT <> ($this:kotlin.collections.List, element:kotlin.Int) returnType:kotlin.Boolean [fake_override,operator] overridden: - public abstract fun contains (element: E of kotlin.collections.MutableList): kotlin.Boolean [fake_override,operator] declared in kotlin.collections.MutableList + public abstract fun contains (element: E of kotlin.collections.MutableList): kotlin.Boolean declared in kotlin.collections.MutableList $this: VALUE_PARAMETER name: type:kotlin.collections.List VALUE_PARAMETER name:element index:0 type:kotlin.Int FUN FAKE_OVERRIDE name:containsAll visibility:public modality:ABSTRACT <> ($this:kotlin.collections.List, elements:kotlin.collections.Collection) returnType:kotlin.Boolean [fake_override] overridden: - public abstract fun containsAll (elements: kotlin.collections.Collection): kotlin.Boolean [fake_override] declared in kotlin.collections.MutableList + public abstract fun containsAll (elements: kotlin.collections.Collection): kotlin.Boolean declared in kotlin.collections.MutableList $this: VALUE_PARAMETER name: type:kotlin.collections.List VALUE_PARAMETER name:elements index:0 type:kotlin.collections.Collection 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 kotlin.collections.MutableList + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.collections.MutableList $this: VALUE_PARAMETER name: type:kotlin.Any VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:get visibility:public modality:ABSTRACT <> ($this:kotlin.collections.List, index:kotlin.Int) returnType:kotlin.Int [fake_override,operator] overridden: - public abstract fun get (index: kotlin.Int): E of kotlin.collections.MutableList [fake_override,operator] declared in kotlin.collections.MutableList + public abstract fun get (index: kotlin.Int): E of kotlin.collections.MutableList declared in kotlin.collections.MutableList $this: VALUE_PARAMETER name: type:kotlin.collections.List VALUE_PARAMETER name:index index:0 type:kotlin.Int 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 kotlin.collections.MutableList + public open fun hashCode (): kotlin.Int declared in kotlin.collections.MutableList $this: VALUE_PARAMETER name: type:kotlin.Any FUN FAKE_OVERRIDE name:indexOf visibility:public modality:ABSTRACT <> ($this:kotlin.collections.List, element:kotlin.Int) returnType:kotlin.Int [fake_override] overridden: - public abstract fun indexOf (element: E of kotlin.collections.MutableList): kotlin.Int [fake_override] declared in kotlin.collections.MutableList + public abstract fun indexOf (element: E of kotlin.collections.MutableList): kotlin.Int declared in kotlin.collections.MutableList $this: VALUE_PARAMETER name: type:kotlin.collections.List VALUE_PARAMETER name:element index:0 type:kotlin.Int FUN FAKE_OVERRIDE name:isEmpty visibility:public modality:ABSTRACT <> ($this:kotlin.collections.List) returnType:kotlin.Boolean [fake_override] overridden: - public abstract fun isEmpty (): kotlin.Boolean [fake_override] declared in kotlin.collections.MutableList + public abstract fun isEmpty (): kotlin.Boolean declared in kotlin.collections.MutableList $this: VALUE_PARAMETER name: type:kotlin.collections.List FUN FAKE_OVERRIDE name:iterator visibility:public modality:ABSTRACT <> ($this:kotlin.collections.MutableCollection) returnType:kotlin.collections.MutableIterator [fake_override,operator] overridden: - public abstract fun iterator (): kotlin.collections.MutableIterator [fake_override,operator] declared in kotlin.collections.MutableList + public abstract fun iterator (): kotlin.collections.MutableIterator declared in kotlin.collections.MutableList $this: VALUE_PARAMETER name: type:kotlin.collections.MutableCollection FUN FAKE_OVERRIDE name:lastIndexOf visibility:public modality:ABSTRACT <> ($this:kotlin.collections.List, element:kotlin.Int) returnType:kotlin.Int [fake_override] overridden: - public abstract fun lastIndexOf (element: E of kotlin.collections.MutableList): kotlin.Int [fake_override] declared in kotlin.collections.MutableList + public abstract fun lastIndexOf (element: E of kotlin.collections.MutableList): kotlin.Int declared in kotlin.collections.MutableList $this: VALUE_PARAMETER name: type:kotlin.collections.List VALUE_PARAMETER name:element index:0 type:kotlin.Int FUN FAKE_OVERRIDE name:listIterator visibility:public modality:ABSTRACT <> ($this:kotlin.collections.MutableList) returnType:kotlin.collections.MutableListIterator [fake_override] @@ -239,7 +239,7 @@ FILE fqName: fileName:/kt30020.kt VALUE_PARAMETER name:elements index:0 type:kotlin.collections.Collection FUN FAKE_OVERRIDE name:set visibility:public modality:ABSTRACT <> ($this:kotlin.collections.MutableList, index:kotlin.Int, element:kotlin.Int) returnType:kotlin.Int [fake_override,operator] overridden: - public abstract fun set (index: kotlin.Int, element: E of kotlin.collections.MutableList): E of kotlin.collections.MutableList [operator] declared in kotlin.collections.MutableList + public abstract fun set (index: kotlin.Int, element: E of kotlin.collections.MutableList): E of kotlin.collections.MutableList declared in kotlin.collections.MutableList $this: VALUE_PARAMETER name: type:kotlin.collections.MutableList VALUE_PARAMETER name:index index:0 type:kotlin.Int VALUE_PARAMETER name:element index:1 type:kotlin.Int @@ -251,5 +251,5 @@ FILE fqName: fileName:/kt30020.kt VALUE_PARAMETER name:toIndex index:1 type:kotlin.Int 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 kotlin.collections.MutableList + public open fun toString (): kotlin.String declared in kotlin.collections.MutableList $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/expressions/kt30796.fir.ir.txt b/compiler/testData/ir/irText/expressions/kt30796.fir.ir.txt index 4efd170221b..90ad1df9efc 100644 --- a/compiler/testData/ir/irText/expressions/kt30796.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/kt30796.fir.ir.txt @@ -17,12 +17,12 @@ FILE fqName: fileName:/kt30796.kt WHEN type=kotlin.Any origin=ELVIS BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_0: T of .test [val] declared in .test' type=T of .test origin=null + arg0: GET_VAR 'val tmp_0: T of .test declared in .test' type=T of .test origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Int type=kotlin.Int value=42 BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val tmp_0: T of .test [val] declared in .test' type=T of .test origin=null + then: GET_VAR 'val tmp_0: T of .test declared in .test' type=T of .test origin=null VAR name:x2 type:kotlin.Any [val] BLOCK type=kotlin.Any origin=ELVIS VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:T of .test [val] @@ -30,7 +30,7 @@ FILE fqName: fileName:/kt30796.kt WHEN type=kotlin.Any origin=ELVIS BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_1: T of .test [val] declared in .test' type=T of .test origin=null + arg0: GET_VAR 'val tmp_1: T of .test declared in .test' type=T of .test origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: BLOCK type=kotlin.Any origin=ELVIS VAR IR_TEMPORARY_VARIABLE name:tmp_2 type:T of .test [val] @@ -38,15 +38,15 @@ FILE fqName: fileName:/kt30796.kt WHEN type=kotlin.Any origin=ELVIS BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_2: T of .test [val] declared in .test' type=T of .test origin=null + arg0: GET_VAR 'val tmp_2: T of .test declared in .test' type=T of .test origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Int type=kotlin.Int value=42 BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val tmp_2: T of .test [val] declared in .test' type=T of .test origin=null + then: GET_VAR 'val tmp_2: T of .test declared in .test' type=T of .test origin=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val tmp_1: T of .test [val] declared in .test' type=T of .test origin=null + then: GET_VAR 'val tmp_1: T of .test declared in .test' type=T of .test origin=null VAR name:x3 type:kotlin.Any [val] BLOCK type=kotlin.Any origin=ELVIS VAR IR_TEMPORARY_VARIABLE name:tmp_3 type:kotlin.Any? [val] @@ -56,21 +56,21 @@ FILE fqName: fileName:/kt30796.kt WHEN type=kotlin.Any? origin=ELVIS BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_4: T of .test [val] declared in .test' type=T of .test origin=null + arg0: GET_VAR 'val tmp_4: T of .test declared in .test' type=T of .test origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: GET_VAR 'value2: T of .test declared in .test' type=T of .test origin=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val tmp_4: T of .test [val] declared in .test' type=T of .test origin=null + then: GET_VAR 'val tmp_4: T of .test declared in .test' type=T of .test origin=null WHEN type=kotlin.Any origin=ELVIS BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_3: kotlin.Any? [val] declared in .test' type=kotlin.Any? origin=null + arg0: GET_VAR 'val tmp_3: kotlin.Any? declared in .test' type=kotlin.Any? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Int type=kotlin.Int value=42 BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val tmp_3: kotlin.Any? [val] declared in .test' type=kotlin.Any? origin=null + then: GET_VAR 'val tmp_3: kotlin.Any? declared in .test' type=kotlin.Any? origin=null VAR name:x4 type:kotlin.Any [val] BLOCK type=kotlin.Any origin=ELVIS VAR IR_TEMPORARY_VARIABLE name:tmp_5 type:kotlin.Any? [val] @@ -80,21 +80,21 @@ FILE fqName: fileName:/kt30796.kt WHEN type=kotlin.Any? origin=ELVIS BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_6: T of .test [val] declared in .test' type=T of .test origin=null + arg0: GET_VAR 'val tmp_6: T of .test declared in .test' type=T of .test origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: GET_VAR 'value2: T of .test declared in .test' type=T of .test origin=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val tmp_6: T of .test [val] declared in .test' type=T of .test origin=null + then: GET_VAR 'val tmp_6: T of .test declared in .test' type=T of .test origin=null WHEN type=kotlin.Any origin=ELVIS BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_5: kotlin.Any? [val] declared in .test' type=kotlin.Any? origin=null + arg0: GET_VAR 'val tmp_5: kotlin.Any? declared in .test' type=kotlin.Any? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Int type=kotlin.Int value=42 BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val tmp_5: kotlin.Any? [val] declared in .test' type=kotlin.Any? origin=null + then: GET_VAR 'val tmp_5: kotlin.Any? declared in .test' type=kotlin.Any? origin=null VAR name:x5 type:kotlin.Any [val] BLOCK type=kotlin.Any origin=ELVIS VAR IR_TEMPORARY_VARIABLE name:tmp_7 type:kotlin.Any? [val] @@ -103,12 +103,12 @@ FILE fqName: fileName:/kt30796.kt WHEN type=kotlin.Any origin=ELVIS BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_7: kotlin.Any? [val] declared in .test' type=kotlin.Any? origin=null + arg0: GET_VAR 'val tmp_7: kotlin.Any? declared in .test' type=kotlin.Any? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Int type=kotlin.Int value=42 BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val tmp_7: kotlin.Any? [val] declared in .test' type=kotlin.Any? origin=null + then: GET_VAR 'val tmp_7: kotlin.Any? declared in .test' type=kotlin.Any? origin=null VAR name:x6 type:kotlin.Any [val] BLOCK type=kotlin.Any origin=ELVIS VAR IR_TEMPORARY_VARIABLE name:tmp_8 type:kotlin.Any? [val] @@ -118,22 +118,22 @@ FILE fqName: fileName:/kt30796.kt WHEN type=kotlin.Any? origin=ELVIS BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_9: T of .test [val] declared in .test' type=T of .test origin=null + arg0: GET_VAR 'val tmp_9: T of .test declared in .test' type=T of .test origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CALL 'public final fun magic (): T of .magic declared in ' type=kotlin.Any? origin=null : kotlin.Any? BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val tmp_9: T of .test [val] declared in .test' type=T of .test origin=null + then: GET_VAR 'val tmp_9: T of .test declared in .test' type=T of .test origin=null WHEN type=kotlin.Any origin=ELVIS BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_8: kotlin.Any? [val] declared in .test' type=kotlin.Any? origin=null + arg0: GET_VAR 'val tmp_8: kotlin.Any? declared in .test' type=kotlin.Any? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Int type=kotlin.Int value=42 BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val tmp_8: kotlin.Any? [val] declared in .test' type=kotlin.Any? origin=null + then: GET_VAR 'val tmp_8: kotlin.Any? declared in .test' type=kotlin.Any? origin=null VAR name:x7 type:kotlin.Any [val] BLOCK type=kotlin.Any origin=ELVIS VAR IR_TEMPORARY_VARIABLE name:tmp_10 type:kotlin.Any? [val] @@ -144,18 +144,18 @@ FILE fqName: fileName:/kt30796.kt WHEN type=kotlin.Any? origin=ELVIS BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_11: kotlin.Any? [val] declared in .test' type=kotlin.Any? origin=null + arg0: GET_VAR 'val tmp_11: kotlin.Any? declared in .test' type=kotlin.Any? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: GET_VAR 'value: T of .test declared in .test' type=T of .test origin=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val tmp_11: kotlin.Any? [val] declared in .test' type=kotlin.Any? origin=null + then: GET_VAR 'val tmp_11: kotlin.Any? declared in .test' type=kotlin.Any? origin=null WHEN type=kotlin.Any origin=ELVIS BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_10: kotlin.Any? [val] declared in .test' type=kotlin.Any? origin=null + arg0: GET_VAR 'val tmp_10: kotlin.Any? declared in .test' type=kotlin.Any? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Int type=kotlin.Int value=42 BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val tmp_10: kotlin.Any? [val] declared in .test' type=kotlin.Any? origin=null + then: GET_VAR 'val tmp_10: kotlin.Any? declared in .test' type=kotlin.Any? origin=null diff --git a/compiler/testData/ir/irText/expressions/kt30796.ir.txt b/compiler/testData/ir/irText/expressions/kt30796.ir.txt index a76108323d2..c4f558a1bc7 100644 --- a/compiler/testData/ir/irText/expressions/kt30796.ir.txt +++ b/compiler/testData/ir/irText/expressions/kt30796.ir.txt @@ -16,12 +16,12 @@ FILE fqName: fileName:/kt30796.kt WHEN type=kotlin.Any origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_0: T of .test [val] declared in .test' type=T of .test origin=null + arg0: GET_VAR 'val tmp_0: T of .test declared in .test' type=T of .test origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Int type=kotlin.Int value=42 BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val tmp_0: T of .test [val] declared in .test' type=T of .test origin=null + then: GET_VAR 'val tmp_0: T of .test declared in .test' type=T of .test origin=null VAR name:x2 type:kotlin.Any [val] BLOCK type=kotlin.Any origin=ELVIS VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:T of .test [val] @@ -29,7 +29,7 @@ FILE fqName: fileName:/kt30796.kt WHEN type=kotlin.Any origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_1: T of .test [val] declared in .test' type=T of .test origin=null + arg0: GET_VAR 'val tmp_1: T of .test declared in .test' type=T of .test origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: BLOCK type=kotlin.Any origin=ELVIS VAR IR_TEMPORARY_VARIABLE name:tmp_2 type:T of .test [val] @@ -37,15 +37,15 @@ FILE fqName: fileName:/kt30796.kt WHEN type=kotlin.Any origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_2: T of .test [val] declared in .test' type=T of .test origin=null + arg0: GET_VAR 'val tmp_2: T of .test declared in .test' type=T of .test origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Int type=kotlin.Int value=42 BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val tmp_2: T of .test [val] declared in .test' type=T of .test origin=null + then: GET_VAR 'val tmp_2: T of .test declared in .test' type=T of .test origin=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val tmp_1: T of .test [val] declared in .test' type=T of .test origin=null + then: GET_VAR 'val tmp_1: T of .test declared in .test' type=T of .test origin=null VAR name:x3 type:kotlin.Any [val] BLOCK type=kotlin.Any origin=ELVIS VAR IR_TEMPORARY_VARIABLE name:tmp_3 type:T of .test [val] @@ -55,21 +55,21 @@ FILE fqName: fileName:/kt30796.kt WHEN type=T of .test origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_4: T of .test [val] declared in .test' type=T of .test origin=null + arg0: GET_VAR 'val tmp_4: T of .test declared in .test' type=T of .test origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: GET_VAR 'value2: T of .test declared in .test' type=T of .test origin=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val tmp_4: T of .test [val] declared in .test' type=T of .test origin=null + then: GET_VAR 'val tmp_4: T of .test declared in .test' type=T of .test origin=null WHEN type=kotlin.Any origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_3: T of .test [val] declared in .test' type=T of .test origin=null + arg0: GET_VAR 'val tmp_3: T of .test declared in .test' type=T of .test origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Int type=kotlin.Int value=42 BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val tmp_3: T of .test [val] declared in .test' type=T of .test origin=null + then: GET_VAR 'val tmp_3: T of .test declared in .test' type=T of .test origin=null VAR name:x4 type:kotlin.Any [val] BLOCK type=kotlin.Any origin=ELVIS VAR IR_TEMPORARY_VARIABLE name:tmp_5 type:T of .test [val] @@ -79,21 +79,21 @@ FILE fqName: fileName:/kt30796.kt WHEN type=T of .test origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_6: T of .test [val] declared in .test' type=T of .test origin=null + arg0: GET_VAR 'val tmp_6: T of .test declared in .test' type=T of .test origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: GET_VAR 'value2: T of .test declared in .test' type=T of .test origin=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val tmp_6: T of .test [val] declared in .test' type=T of .test origin=null + then: GET_VAR 'val tmp_6: T of .test declared in .test' type=T of .test origin=null WHEN type=kotlin.Any origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_5: T of .test [val] declared in .test' type=T of .test origin=null + arg0: GET_VAR 'val tmp_5: T of .test declared in .test' type=T of .test origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Int type=kotlin.Int value=42 BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val tmp_5: T of .test [val] declared in .test' type=T of .test origin=null + then: GET_VAR 'val tmp_5: T of .test declared in .test' type=T of .test origin=null VAR name:x5 type:kotlin.Any [val] BLOCK type=kotlin.Any origin=ELVIS VAR IR_TEMPORARY_VARIABLE name:tmp_7 type:kotlin.Any? [val] @@ -102,12 +102,12 @@ FILE fqName: fileName:/kt30796.kt WHEN type=kotlin.Any origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_7: kotlin.Any? [val] declared in .test' type=kotlin.Any? origin=null + arg0: GET_VAR 'val tmp_7: kotlin.Any? declared in .test' type=kotlin.Any? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Int type=kotlin.Int value=42 BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val tmp_7: kotlin.Any? [val] declared in .test' type=kotlin.Any? origin=null + then: GET_VAR 'val tmp_7: kotlin.Any? declared in .test' type=kotlin.Any? origin=null VAR name:x6 type:kotlin.Any [val] BLOCK type=kotlin.Any origin=ELVIS VAR IR_TEMPORARY_VARIABLE name:tmp_8 type:kotlin.Any? [val] @@ -117,22 +117,22 @@ FILE fqName: fileName:/kt30796.kt WHEN type=kotlin.Any? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_9: T of .test [val] declared in .test' type=T of .test origin=null + arg0: GET_VAR 'val tmp_9: T of .test declared in .test' type=T of .test origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CALL 'public final fun magic (): T of .magic declared in ' type=kotlin.Any? origin=null : kotlin.Any? BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val tmp_9: T of .test [val] declared in .test' type=T of .test origin=null + then: GET_VAR 'val tmp_9: T of .test declared in .test' type=T of .test origin=null WHEN type=kotlin.Any origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_8: kotlin.Any? [val] declared in .test' type=kotlin.Any? origin=null + arg0: GET_VAR 'val tmp_8: kotlin.Any? declared in .test' type=kotlin.Any? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Int type=kotlin.Int value=42 BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val tmp_8: kotlin.Any? [val] declared in .test' type=kotlin.Any? origin=null + then: GET_VAR 'val tmp_8: kotlin.Any? declared in .test' type=kotlin.Any? origin=null VAR name:x7 type:kotlin.Any [val] BLOCK type=kotlin.Any origin=ELVIS VAR IR_TEMPORARY_VARIABLE name:tmp_10 type:kotlin.Any? [val] @@ -143,18 +143,18 @@ FILE fqName: fileName:/kt30796.kt WHEN type=kotlin.Any? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_11: kotlin.Any? [val] declared in .test' type=kotlin.Any? origin=null + arg0: GET_VAR 'val tmp_11: kotlin.Any? declared in .test' type=kotlin.Any? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: GET_VAR 'value: T of .test declared in .test' type=T of .test origin=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val tmp_11: kotlin.Any? [val] declared in .test' type=kotlin.Any? origin=null + then: GET_VAR 'val tmp_11: kotlin.Any? declared in .test' type=kotlin.Any? origin=null WHEN type=kotlin.Any origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_10: kotlin.Any? [val] declared in .test' type=kotlin.Any? origin=null + arg0: GET_VAR 'val tmp_10: kotlin.Any? declared in .test' type=kotlin.Any? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Int type=kotlin.Int value=42 BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val tmp_10: kotlin.Any? [val] declared in .test' type=kotlin.Any? origin=null + then: GET_VAR 'val tmp_10: kotlin.Any? declared in .test' type=kotlin.Any? origin=null diff --git a/compiler/testData/ir/irText/expressions/kt35730.ir.txt b/compiler/testData/ir/irText/expressions/kt35730.ir.txt index 882d5b1107a..f2910309c46 100644 --- a/compiler/testData/ir/irText/expressions/kt35730.ir.txt +++ b/compiler/testData/ir/irText/expressions/kt35730.ir.txt @@ -6,7 +6,7 @@ FILE fqName: fileName:/kt35730.kt 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -21,7 +21,7 @@ FILE fqName: fileName:/kt35730.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Derived CONSTRUCTOR visibility:private <> () returnType:.Derived [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:Derived modality:FINAL visibility:public superTypes:[.Base]' FUN FAKE_OVERRIDE name:foo visibility:public modality:OPEN <> ($this:.Base) returnType:kotlin.Unit [fake_override] overridden: @@ -29,20 +29,20 @@ FILE fqName: fileName:/kt35730.kt $this: VALUE_PARAMETER 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 [fake_override,operator] declared in .Base + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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 + public open fun hashCode (): kotlin.Int 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 + public open fun toString (): kotlin.String declared in .Base $this: VALUE_PARAMETER name: type:kotlin.Any FUN name:test visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY - CALL 'public open fun foo (): kotlin.Unit [fake_override] declared in .Derived' type=kotlin.Unit origin=null + CALL 'public open fun foo (): kotlin.Unit declared in .Derived' type=kotlin.Unit origin=null $this: GET_OBJECT 'CLASS OBJECT name:Derived modality:FINAL visibility:public superTypes:[.Base]' type=.Derived - CALL 'public open fun foo (): kotlin.Unit [fake_override] declared in .Derived' type=kotlin.Unit origin=null + CALL 'public open fun foo (): kotlin.Unit declared in .Derived' type=kotlin.Unit origin=null $this: GET_OBJECT 'CLASS OBJECT name:Derived modality:FINAL visibility:public superTypes:[.Base]' type=.Derived diff --git a/compiler/testData/ir/irText/expressions/kt36956.fir.ir.txt b/compiler/testData/ir/irText/expressions/kt36956.fir.ir.txt index 2441339ae99..c5e06920e1a 100644 --- a/compiler/testData/ir/irText/expressions/kt36956.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/kt36956.fir.ir.txt @@ -5,7 +5,7 @@ FILE fqName: fileName:/kt36956.kt CONSTRUCTOR visibility:public <> (value:T of .A) returnType:.A.A> [primary] VALUE_PARAMETER name:value index:0 type:T of .A BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:A modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:value visibility:private modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:value type:T of .A visibility:private [final] @@ -22,7 +22,7 @@ FILE fqName: fileName:/kt36956.kt $this: VALUE_PARAMETER name: type:.A.A> VALUE_PARAMETER name:i index:0 type:kotlin.Int BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun get (i: kotlin.Int): T of .A [operator] declared in .A' + RETURN type=kotlin.Nothing from='public final fun get (i: kotlin.Int): T of .A declared in .A' CALL 'private final fun (): T of .A declared in .A' type=T of .A origin=GET_PROPERTY $this: GET_VAR ': .A.A> declared in .A.get' type=.A.A> origin=null FUN name:set visibility:public modality:FINAL <> ($this:.A.A>, i:kotlin.Int, v:T of .A) returnType:kotlin.Unit [operator] @@ -32,7 +32,7 @@ FILE fqName: fileName:/kt36956.kt 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -46,7 +46,7 @@ FILE fqName: fileName:/kt36956.kt PROPERTY name:aFloat visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:aFloat type:.A visibility:private [final,static] EXPRESSION_BODY - CONSTRUCTOR_CALL 'public constructor (value: T of .A) [primary] declared in .A' type=.A origin=null + CONSTRUCTOR_CALL 'public constructor (value: T of .A) declared in .A' type=.A origin=null : kotlin.Float value: CONST Float type=kotlin.Float value=0.0 FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:.A @@ -63,15 +63,15 @@ FILE fqName: fileName:/kt36956.kt VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:kotlin.Int [val] CONST Int type=kotlin.Int value=1 VAR IR_TEMPORARY_VARIABLE name:tmp_2 type:kotlin.Float [val] - CALL 'public final fun get (i: kotlin.Int): T of .A [operator] declared in .A' type=kotlin.Float origin=null - $this: GET_VAR 'val tmp_0: .A [val] declared in .aInt' type=.A origin=null - i: GET_VAR 'val tmp_1: kotlin.Int [val] declared in .aInt' type=kotlin.Int origin=null - CALL 'public final fun set (i: kotlin.Int, v: T of .A): kotlin.Unit [operator] declared in .A' type=kotlin.Unit origin=null - $this: GET_VAR 'val tmp_0: .A [val] declared in .aInt' type=.A origin=null - i: GET_VAR 'val tmp_1: kotlin.Int [val] declared in .aInt' type=kotlin.Int origin=null - v: CALL 'public final fun dec (): kotlin.Float [operator] declared in kotlin.Float' type=kotlin.Float origin=null - $this: GET_VAR 'val tmp_2: kotlin.Float [val] declared in .aInt' type=kotlin.Float origin=null - GET_VAR 'val tmp_2: kotlin.Float [val] declared in .aInt' type=kotlin.Float origin=null + CALL 'public final fun get (i: kotlin.Int): T of .A declared in .A' type=kotlin.Float origin=null + $this: GET_VAR 'val tmp_0: .A declared in .aInt' type=.A origin=null + i: GET_VAR 'val tmp_1: kotlin.Int declared in .aInt' type=kotlin.Int origin=null + CALL 'public final fun set (i: kotlin.Int, v: T of .A): kotlin.Unit declared in .A' type=kotlin.Unit origin=null + $this: GET_VAR 'val tmp_0: .A declared in .aInt' type=.A origin=null + i: GET_VAR 'val tmp_1: kotlin.Int declared in .aInt' type=kotlin.Int origin=null + v: CALL 'public final fun dec (): kotlin.Float declared in kotlin.Float' type=kotlin.Float origin=null + $this: GET_VAR 'val tmp_2: kotlin.Float declared in .aInt' type=kotlin.Float origin=null + GET_VAR 'val tmp_2: kotlin.Float declared in .aInt' type=kotlin.Float origin=null FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:kotlin.Float correspondingProperty: PROPERTY name:aInt visibility:public modality:FINAL [val] BLOCK_BODY diff --git a/compiler/testData/ir/irText/expressions/kt36956.ir.txt b/compiler/testData/ir/irText/expressions/kt36956.ir.txt index d4065426d6a..d71e9783c1f 100644 --- a/compiler/testData/ir/irText/expressions/kt36956.ir.txt +++ b/compiler/testData/ir/irText/expressions/kt36956.ir.txt @@ -5,7 +5,7 @@ FILE fqName: fileName:/kt36956.kt CONSTRUCTOR visibility:public <> (value:T of .A) returnType:.A.A> [primary] VALUE_PARAMETER name:value index:0 type:T of .A BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:A modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:value visibility:private modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:value type:T of .A visibility:private [final] @@ -22,7 +22,7 @@ FILE fqName: fileName:/kt36956.kt $this: VALUE_PARAMETER name: type:.A.A> VALUE_PARAMETER name:i index:0 type:kotlin.Int BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun get (i: kotlin.Int): T of .A [operator] declared in .A' + RETURN type=kotlin.Nothing from='public final fun get (i: kotlin.Int): T of .A declared in .A' CALL 'private final fun (): T of .A declared in .A' type=T of .A origin=GET_PROPERTY $this: GET_VAR ': .A.A> declared in .A.get' type=.A.A> origin=null FUN name:set visibility:public modality:FINAL <> ($this:.A.A>, i:kotlin.Int, v:T of .A) returnType:kotlin.Unit [operator] @@ -32,7 +32,7 @@ FILE fqName: fileName:/kt36956.kt 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -46,7 +46,7 @@ FILE fqName: fileName:/kt36956.kt PROPERTY name:aFloat visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:aFloat type:.A visibility:private [final,static] EXPRESSION_BODY - CONSTRUCTOR_CALL 'public constructor (value: T of .A) [primary] declared in .A' type=.A origin=null + CONSTRUCTOR_CALL 'public constructor (value: T of .A) declared in .A' type=.A origin=null : kotlin.Float value: CONST Float type=kotlin.Float value=0.0 FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:.A @@ -63,15 +63,15 @@ FILE fqName: fileName:/kt36956.kt VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:kotlin.Int [val] CONST Int type=kotlin.Int value=1 VAR IR_TEMPORARY_VARIABLE name:tmp_2 type:kotlin.Float [val] - CALL 'public final fun get (i: kotlin.Int): T of .A [operator] declared in .A' type=kotlin.Float origin=POSTFIX_DECR - $this: GET_VAR 'val tmp_0: .A [val] declared in .aInt' type=.A origin=null - i: GET_VAR 'val tmp_1: kotlin.Int [val] declared in .aInt' type=kotlin.Int origin=null - CALL 'public final fun set (i: kotlin.Int, v: T of .A): kotlin.Unit [operator] declared in .A' type=kotlin.Unit origin=POSTFIX_DECR - $this: GET_VAR 'val tmp_0: .A [val] declared in .aInt' type=.A origin=null - i: GET_VAR 'val tmp_1: kotlin.Int [val] declared in .aInt' type=kotlin.Int origin=null - v: CALL 'public final fun dec (): kotlin.Float [operator] declared in kotlin.Float' type=kotlin.Float origin=POSTFIX_DECR - $this: GET_VAR 'val tmp_2: kotlin.Float [val] declared in .aInt' type=kotlin.Float origin=null - GET_VAR 'val tmp_2: kotlin.Float [val] declared in .aInt' type=kotlin.Float origin=null + CALL 'public final fun get (i: kotlin.Int): T of .A declared in .A' type=kotlin.Float origin=POSTFIX_DECR + $this: GET_VAR 'val tmp_0: .A declared in .aInt' type=.A origin=null + i: GET_VAR 'val tmp_1: kotlin.Int declared in .aInt' type=kotlin.Int origin=null + CALL 'public final fun set (i: kotlin.Int, v: T of .A): kotlin.Unit declared in .A' type=kotlin.Unit origin=POSTFIX_DECR + $this: GET_VAR 'val tmp_0: .A declared in .aInt' type=.A origin=null + i: GET_VAR 'val tmp_1: kotlin.Int declared in .aInt' type=kotlin.Int origin=null + v: CALL 'public final fun dec (): kotlin.Float declared in kotlin.Float' type=kotlin.Float origin=POSTFIX_DECR + $this: GET_VAR 'val tmp_2: kotlin.Float declared in .aInt' type=kotlin.Float origin=null + GET_VAR 'val tmp_2: kotlin.Float declared in .aInt' type=kotlin.Float origin=null FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:kotlin.Float correspondingProperty: PROPERTY name:aInt visibility:public modality:FINAL [val] BLOCK_BODY diff --git a/compiler/testData/ir/irText/expressions/kt37570.ir.txt b/compiler/testData/ir/irText/expressions/kt37570.ir.txt index 27725d6b40d..1337d44cf5d 100644 --- a/compiler/testData/ir/irText/expressions/kt37570.ir.txt +++ b/compiler/testData/ir/irText/expressions/kt37570.ir.txt @@ -7,7 +7,7 @@ FILE fqName: fileName:/kt37570.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.A CONSTRUCTOR visibility:public <> () returnType:.A [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:A modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:b visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:b type:kotlin.String visibility:private [final] @@ -21,7 +21,7 @@ FILE fqName: fileName:/kt37570.kt ANONYMOUS_INITIALIZER isStatic=false BLOCK_BODY TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit - CALL 'public final fun apply (block: @[ExtensionFunctionType] kotlin.Function1): T of kotlin.StandardKt.apply [inline] declared in kotlin.StandardKt' type=kotlin.String origin=null + CALL 'public final fun apply (block: @[ExtensionFunctionType] kotlin.Function1): T of kotlin.StandardKt.apply declared in kotlin.StandardKt' type=kotlin.String origin=null : kotlin.String $receiver: CALL 'public final fun a (): kotlin.String declared in ' type=kotlin.String origin=null block: FUN_EXPR type=@[ExtensionFunctionType] kotlin.Function1 origin=LAMBDA @@ -33,7 +33,7 @@ FILE fqName: fileName:/kt37570.kt value: GET_VAR '$this$apply: kotlin.String declared in .A.' type=kotlin.String 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/expressions/kt37779.ir.txt b/compiler/testData/ir/irText/expressions/kt37779.ir.txt index 9e6ed63477b..6c06af4fafe 100644 --- a/compiler/testData/ir/irText/expressions/kt37779.ir.txt +++ b/compiler/testData/ir/irText/expressions/kt37779.ir.txt @@ -7,7 +7,7 @@ FILE fqName: fileName:/kt37779.kt CALL 'public final fun foo (vararg s: kotlin.String): kotlin.Unit declared in ' type=kotlin.Unit origin=null s: VARARG type=kotlin.Array varargElementType=kotlin.String SPREAD_ELEMENT - CALL 'public final fun arrayOf (vararg elements: T of kotlin.arrayOf): kotlin.Array [inline] declared in kotlin' type=kotlin.Array origin=null + CALL 'public final fun arrayOf (vararg elements: T of kotlin.arrayOf): kotlin.Array declared in kotlin' type=kotlin.Array origin=null : kotlin.String elements: VARARG type=kotlin.Array varargElementType=kotlin.String CONST String type=kotlin.String value="" diff --git a/compiler/testData/ir/irText/expressions/kt42321.ir.txt b/compiler/testData/ir/irText/expressions/kt42321.ir.txt index 09c5845e6cf..d221f68a2c5 100644 --- a/compiler/testData/ir/irText/expressions/kt42321.ir.txt +++ b/compiler/testData/ir/irText/expressions/kt42321.ir.txt @@ -4,14 +4,14 @@ FILE fqName: fileName:/kt42321.kt TYPE_PARAMETER name:L index:0 variance: superTypes:[kotlin.Any?] reified:false CONSTRUCTOR visibility:public <> () returnType:.C.C> [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C modality:ABSTRACT visibility:public superTypes:[kotlin.Any]' FUN name:takeT visibility:public modality:ABSTRACT <> ($this:.C.C>, x:L of .C) returnType:kotlin.Unit $this: VALUE_PARAMETER name: type:.C.C> VALUE_PARAMETER name:x index:0 type:L of .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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -27,65 +27,65 @@ FILE fqName: fileName:/kt42321.kt BLOCK_BODY CALL 'public abstract fun takeT (x: L of .C): kotlin.Unit declared in .C' type=kotlin.Unit origin=null $this: GET_VAR 'c1: .C declared in .testLongDotCall' type=.C origin=null - x: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null + x: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: CONST Int type=kotlin.Int value=1 other: CONST Int type=kotlin.Int value=2 CALL 'public abstract fun takeT (x: L of .C): kotlin.Unit declared in .C' type=kotlin.Unit origin=null $this: GET_VAR 'c1: .C declared in .testLongDotCall' type=.C origin=null - x: CALL 'public final fun minus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null + x: CALL 'public final fun minus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: CONST Int type=kotlin.Int value=1 other: CONST Int type=kotlin.Int value=2 CALL 'public abstract fun takeT (x: L of .C): kotlin.Unit declared in .C' type=kotlin.Unit origin=null $this: GET_VAR 'c1: .C declared in .testLongDotCall' type=.C origin=null - x: CALL 'public final fun times (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null + x: CALL 'public final fun times (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: CONST Int type=kotlin.Int value=1 other: CONST Int type=kotlin.Int value=2 CALL 'public abstract fun takeT (x: L of .C): kotlin.Unit declared in .C' type=kotlin.Unit origin=null $this: GET_VAR 'c1: .C declared in .testLongDotCall' type=.C origin=null - x: CALL 'public final fun div (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null + x: CALL 'public final fun div (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: CONST Int type=kotlin.Int value=1 other: CONST Int type=kotlin.Int value=2 CALL 'public abstract fun takeT (x: L of .C): kotlin.Unit declared in .C' type=kotlin.Unit origin=null $this: GET_VAR 'c1: .C declared in .testLongDotCall' type=.C origin=null - x: CALL 'public final fun rem (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null + x: CALL 'public final fun rem (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: CONST Int type=kotlin.Int value=1 other: CONST Int type=kotlin.Int value=2 CALL 'public abstract fun takeT (x: L of .C): kotlin.Unit declared in .C' type=kotlin.Unit origin=null $this: GET_VAR 'c1: .C declared in .testLongDotCall' type=.C origin=null - x: CALL 'public final fun unaryPlus (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null + x: CALL 'public final fun unaryPlus (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: CONST Int type=kotlin.Int value=1 CALL 'public abstract fun takeT (x: L of .C): kotlin.Unit declared in .C' type=kotlin.Unit origin=null $this: GET_VAR 'c1: .C declared in .testLongDotCall' type=.C origin=null - x: CALL 'public final fun unaryMinus (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null + x: CALL 'public final fun unaryMinus (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: CONST Int type=kotlin.Int value=1 CALL 'public abstract fun takeT (x: L of .C): kotlin.Unit declared in .C' type=kotlin.Unit origin=null $this: GET_VAR 'c1: .C declared in .testLongDotCall' type=.C origin=null - x: CALL 'public final fun shl (bitCount: kotlin.Int): kotlin.Int [infix] declared in kotlin.Int' type=kotlin.Int origin=null + x: CALL 'public final fun shl (bitCount: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: CONST Int type=kotlin.Int value=1 bitCount: CONST Int type=kotlin.Int value=2 CALL 'public abstract fun takeT (x: L of .C): kotlin.Unit declared in .C' type=kotlin.Unit origin=null $this: GET_VAR 'c1: .C declared in .testLongDotCall' type=.C origin=null - x: CALL 'public final fun shr (bitCount: kotlin.Int): kotlin.Int [infix] declared in kotlin.Int' type=kotlin.Int origin=null + x: CALL 'public final fun shr (bitCount: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: CONST Int type=kotlin.Int value=1 bitCount: CONST Int type=kotlin.Int value=2 CALL 'public abstract fun takeT (x: L of .C): kotlin.Unit declared in .C' type=kotlin.Unit origin=null $this: GET_VAR 'c1: .C declared in .testLongDotCall' type=.C origin=null - x: CALL 'public final fun ushr (bitCount: kotlin.Int): kotlin.Int [infix] declared in kotlin.Int' type=kotlin.Int origin=null + x: CALL 'public final fun ushr (bitCount: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: CONST Int type=kotlin.Int value=1 bitCount: CONST Int type=kotlin.Int value=2 CALL 'public abstract fun takeT (x: L of .C): kotlin.Unit declared in .C' type=kotlin.Unit origin=null $this: GET_VAR 'c1: .C declared in .testLongDotCall' type=.C origin=null - x: CALL 'public final fun and (other: kotlin.Int): kotlin.Int [infix] declared in kotlin.Int' type=kotlin.Int origin=null + x: CALL 'public final fun and (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: CONST Int type=kotlin.Int value=1 other: CONST Int type=kotlin.Int value=2 CALL 'public abstract fun takeT (x: L of .C): kotlin.Unit declared in .C' type=kotlin.Unit origin=null $this: GET_VAR 'c1: .C declared in .testLongDotCall' type=.C origin=null - x: CALL 'public final fun or (other: kotlin.Int): kotlin.Int [infix] declared in kotlin.Int' type=kotlin.Int origin=null + x: CALL 'public final fun or (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: CONST Int type=kotlin.Int value=1 other: CONST Int type=kotlin.Int value=2 CALL 'public abstract fun takeT (x: L of .C): kotlin.Unit declared in .C' type=kotlin.Unit origin=null $this: GET_VAR 'c1: .C declared in .testLongDotCall' type=.C origin=null - x: CALL 'public final fun xor (other: kotlin.Int): kotlin.Int [infix] declared in kotlin.Int' type=kotlin.Int origin=null + x: CALL 'public final fun xor (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: CONST Int type=kotlin.Int value=1 other: CONST Int type=kotlin.Int value=2 CALL 'public abstract fun takeT (x: L of .C): kotlin.Unit declared in .C' type=kotlin.Unit origin=null @@ -97,12 +97,12 @@ FILE fqName: fileName:/kt42321.kt BLOCK_BODY CALL 'public abstract fun takeT (x: L of .C): kotlin.Unit declared in .C' type=kotlin.Unit origin=null $this: GET_VAR 'c2: .C declared in .testShortDotCall' type=.C origin=null - x: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null + x: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: CONST Int type=kotlin.Int value=1 other: CONST Int type=kotlin.Int value=2 CALL 'public abstract fun takeT (x: L of .C): kotlin.Unit declared in .C' type=kotlin.Unit origin=null $this: GET_VAR 'c2: .C declared in .testShortDotCall' type=.C origin=null - x: CALL 'public final fun shr (bitCount: kotlin.Int): kotlin.Int [infix] declared in kotlin.Int' type=kotlin.Int origin=null + x: CALL 'public final fun shr (bitCount: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: CONST Int type=kotlin.Int value=1 bitCount: CONST Int type=kotlin.Int value=2 CALL 'public abstract fun takeT (x: L of .C): kotlin.Unit declared in .C' type=kotlin.Unit origin=null @@ -114,12 +114,12 @@ FILE fqName: fileName:/kt42321.kt BLOCK_BODY CALL 'public abstract fun takeT (x: L of .C): kotlin.Unit declared in .C' type=kotlin.Unit origin=null $this: GET_VAR 'c3: .C declared in .testByteDotCall' type=.C origin=null - x: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null + x: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: CONST Int type=kotlin.Int value=1 other: CONST Int type=kotlin.Int value=2 CALL 'public abstract fun takeT (x: L of .C): kotlin.Unit declared in .C' type=kotlin.Unit origin=null $this: GET_VAR 'c3: .C declared in .testByteDotCall' type=.C origin=null - x: CALL 'public final fun shr (bitCount: kotlin.Int): kotlin.Int [infix] declared in kotlin.Int' type=kotlin.Int origin=null + x: CALL 'public final fun shr (bitCount: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: CONST Int type=kotlin.Int value=1 bitCount: CONST Int type=kotlin.Int value=2 CALL 'public abstract fun takeT (x: L of .C): kotlin.Unit declared in .C' type=kotlin.Unit origin=null @@ -132,31 +132,31 @@ FILE fqName: fileName:/kt42321.kt CALL 'public abstract fun takeT (x: L of .C): kotlin.Unit declared in .C' type=kotlin.Unit origin=null $this: GET_VAR 'c4: .C declared in .testLongOperatorInfixCall' type=.C origin=null x: CALL 'public open fun toLong (): kotlin.Long declared in kotlin.Int' type=kotlin.Long origin=null - $this: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUS $this: CONST Int type=kotlin.Int value=1 other: CONST Int type=kotlin.Int value=2 CALL 'public abstract fun takeT (x: L of .C): kotlin.Unit declared in .C' type=kotlin.Unit origin=null $this: GET_VAR 'c4: .C declared in .testLongOperatorInfixCall' type=.C origin=null x: CALL 'public open fun toLong (): kotlin.Long declared in kotlin.Int' type=kotlin.Long origin=null - $this: CALL 'public final fun minus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=MINUS + $this: CALL 'public final fun minus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=MINUS $this: CONST Int type=kotlin.Int value=1 other: CONST Int type=kotlin.Int value=2 CALL 'public abstract fun takeT (x: L of .C): kotlin.Unit declared in .C' type=kotlin.Unit origin=null $this: GET_VAR 'c4: .C declared in .testLongOperatorInfixCall' type=.C origin=null x: CALL 'public open fun toLong (): kotlin.Long declared in kotlin.Int' type=kotlin.Long origin=null - $this: CALL 'public final fun times (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=MUL + $this: CALL 'public final fun times (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=MUL $this: CONST Int type=kotlin.Int value=1 other: CONST Int type=kotlin.Int value=2 CALL 'public abstract fun takeT (x: L of .C): kotlin.Unit declared in .C' type=kotlin.Unit origin=null $this: GET_VAR 'c4: .C declared in .testLongOperatorInfixCall' type=.C origin=null x: CALL 'public open fun toLong (): kotlin.Long declared in kotlin.Int' type=kotlin.Long origin=null - $this: CALL 'public final fun div (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=DIV + $this: CALL 'public final fun div (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=DIV $this: CONST Int type=kotlin.Int value=1 other: CONST Int type=kotlin.Int value=2 CALL 'public abstract fun takeT (x: L of .C): kotlin.Unit declared in .C' type=kotlin.Unit origin=null $this: GET_VAR 'c4: .C declared in .testLongOperatorInfixCall' type=.C origin=null x: CALL 'public open fun toLong (): kotlin.Long declared in kotlin.Int' type=kotlin.Long origin=null - $this: CALL 'public final fun rem (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PERC + $this: CALL 'public final fun rem (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PERC $this: CONST Int type=kotlin.Int value=1 other: CONST Int type=kotlin.Int value=2 CALL 'public abstract fun takeT (x: L of .C): kotlin.Unit declared in .C' type=kotlin.Unit origin=null @@ -168,37 +168,37 @@ FILE fqName: fileName:/kt42321.kt CALL 'public abstract fun takeT (x: L of .C): kotlin.Unit declared in .C' type=kotlin.Unit origin=null $this: GET_VAR 'c4: .C declared in .testLongOperatorInfixCall' type=.C origin=null x: CALL 'public open fun toLong (): kotlin.Long declared in kotlin.Int' type=kotlin.Long origin=null - $this: CALL 'public final fun shl (bitCount: kotlin.Int): kotlin.Int [infix] declared in kotlin.Int' type=kotlin.Int origin=null + $this: CALL 'public final fun shl (bitCount: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: CONST Int type=kotlin.Int value=1 bitCount: CONST Int type=kotlin.Int value=2 CALL 'public abstract fun takeT (x: L of .C): kotlin.Unit declared in .C' type=kotlin.Unit origin=null $this: GET_VAR 'c4: .C declared in .testLongOperatorInfixCall' type=.C origin=null x: CALL 'public open fun toLong (): kotlin.Long declared in kotlin.Int' type=kotlin.Long origin=null - $this: CALL 'public final fun shr (bitCount: kotlin.Int): kotlin.Int [infix] declared in kotlin.Int' type=kotlin.Int origin=null + $this: CALL 'public final fun shr (bitCount: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: CONST Int type=kotlin.Int value=1 bitCount: CONST Int type=kotlin.Int value=2 CALL 'public abstract fun takeT (x: L of .C): kotlin.Unit declared in .C' type=kotlin.Unit origin=null $this: GET_VAR 'c4: .C declared in .testLongOperatorInfixCall' type=.C origin=null x: CALL 'public open fun toLong (): kotlin.Long declared in kotlin.Int' type=kotlin.Long origin=null - $this: CALL 'public final fun ushr (bitCount: kotlin.Int): kotlin.Int [infix] declared in kotlin.Int' type=kotlin.Int origin=null + $this: CALL 'public final fun ushr (bitCount: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: CONST Int type=kotlin.Int value=1 bitCount: CONST Int type=kotlin.Int value=2 CALL 'public abstract fun takeT (x: L of .C): kotlin.Unit declared in .C' type=kotlin.Unit origin=null $this: GET_VAR 'c4: .C declared in .testLongOperatorInfixCall' type=.C origin=null x: CALL 'public open fun toLong (): kotlin.Long declared in kotlin.Int' type=kotlin.Long origin=null - $this: CALL 'public final fun and (other: kotlin.Int): kotlin.Int [infix] declared in kotlin.Int' type=kotlin.Int origin=null + $this: CALL 'public final fun and (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: CONST Int type=kotlin.Int value=1 other: CONST Int type=kotlin.Int value=2 CALL 'public abstract fun takeT (x: L of .C): kotlin.Unit declared in .C' type=kotlin.Unit origin=null $this: GET_VAR 'c4: .C declared in .testLongOperatorInfixCall' type=.C origin=null x: CALL 'public open fun toLong (): kotlin.Long declared in kotlin.Int' type=kotlin.Long origin=null - $this: CALL 'public final fun or (other: kotlin.Int): kotlin.Int [infix] declared in kotlin.Int' type=kotlin.Int origin=null + $this: CALL 'public final fun or (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: CONST Int type=kotlin.Int value=1 other: CONST Int type=kotlin.Int value=2 CALL 'public abstract fun takeT (x: L of .C): kotlin.Unit declared in .C' type=kotlin.Unit origin=null $this: GET_VAR 'c4: .C declared in .testLongOperatorInfixCall' type=.C origin=null x: CALL 'public open fun toLong (): kotlin.Long declared in kotlin.Int' type=kotlin.Long origin=null - $this: CALL 'public final fun xor (other: kotlin.Int): kotlin.Int [infix] declared in kotlin.Int' type=kotlin.Int origin=null + $this: CALL 'public final fun xor (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: CONST Int type=kotlin.Int value=1 other: CONST Int type=kotlin.Int value=2 FUN name:testShortOperatorInfixCall visibility:public modality:FINAL <> (c5:.C) returnType:kotlin.Unit @@ -207,13 +207,13 @@ FILE fqName: fileName:/kt42321.kt CALL 'public abstract fun takeT (x: L of .C): kotlin.Unit declared in .C' type=kotlin.Unit origin=null $this: GET_VAR 'c5: .C declared in .testShortOperatorInfixCall' type=.C origin=null x: CALL 'public open fun toShort (): kotlin.Short declared in kotlin.Int' type=kotlin.Short origin=null - $this: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUS $this: CONST Int type=kotlin.Int value=1 other: CONST Int type=kotlin.Int value=2 CALL 'public abstract fun takeT (x: L of .C): kotlin.Unit declared in .C' type=kotlin.Unit origin=null $this: GET_VAR 'c5: .C declared in .testShortOperatorInfixCall' type=.C origin=null x: CALL 'public open fun toShort (): kotlin.Short declared in kotlin.Int' type=kotlin.Short origin=null - $this: CALL 'public final fun shr (bitCount: kotlin.Int): kotlin.Int [infix] declared in kotlin.Int' type=kotlin.Int origin=null + $this: CALL 'public final fun shr (bitCount: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: CONST Int type=kotlin.Int value=1 bitCount: CONST Int type=kotlin.Int value=2 FUN name:testByteOperatorInfixCall visibility:public modality:FINAL <> (c6:.C) returnType:kotlin.Unit @@ -222,12 +222,12 @@ FILE fqName: fileName:/kt42321.kt CALL 'public abstract fun takeT (x: L of .C): kotlin.Unit declared in .C' type=kotlin.Unit origin=null $this: GET_VAR 'c6: .C declared in .testByteOperatorInfixCall' type=.C origin=null x: CALL 'public open fun toByte (): kotlin.Byte declared in kotlin.Int' type=kotlin.Byte origin=null - $this: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUS $this: CONST Int type=kotlin.Int value=1 other: CONST Int type=kotlin.Int value=2 CALL 'public abstract fun takeT (x: L of .C): kotlin.Unit declared in .C' type=kotlin.Unit origin=null $this: GET_VAR 'c6: .C declared in .testByteOperatorInfixCall' type=.C origin=null x: CALL 'public open fun toByte (): kotlin.Byte declared in kotlin.Int' type=kotlin.Byte origin=null - $this: CALL 'public final fun shr (bitCount: kotlin.Int): kotlin.Int [infix] declared in kotlin.Int' type=kotlin.Int origin=null + $this: CALL 'public final fun shr (bitCount: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: CONST Int type=kotlin.Int value=1 bitCount: CONST Int type=kotlin.Int value=2 diff --git a/compiler/testData/ir/irText/expressions/kt44993.ir.txt b/compiler/testData/ir/irText/expressions/kt44993.ir.txt index 641b36bb545..d55b7c876de 100644 --- a/compiler/testData/ir/irText/expressions/kt44993.ir.txt +++ b/compiler/testData/ir/irText/expressions/kt44993.ir.txt @@ -13,30 +13,30 @@ FILE fqName: fileName:/kt44993.kt WHEN type=.JavaBox? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_1: .KotlinBox<.JavaBox> [val] declared in .f' type=.KotlinBox<.JavaBox> origin=null + arg0: GET_VAR 'val tmp_1: .KotlinBox<.JavaBox> declared in .f' type=.KotlinBox<.JavaBox> origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public final fun (): T of .KotlinBox? declared in .KotlinBox' type=.JavaBox? origin=GET_PROPERTY - $this: GET_VAR 'val tmp_1: .KotlinBox<.JavaBox> [val] declared in .f' type=.KotlinBox<.JavaBox> origin=null + $this: GET_VAR 'val tmp_1: .KotlinBox<.JavaBox> declared in .f' type=.KotlinBox<.JavaBox> origin=null WHEN type=@[FlexibleNullability] kotlin.String? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_0: .JavaBox? [val] declared in .f' type=.JavaBox? origin=null + arg0: GET_VAR 'val tmp_0: .JavaBox? declared in .f' type=.JavaBox? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: GET_FIELD 'FIELD IR_EXTERNAL_JAVA_DECLARATION_STUB name:element type:@[FlexibleNullability] kotlin.String? visibility:public [final]' type=@[FlexibleNullability] kotlin.String? origin=GET_PROPERTY - receiver: GET_VAR 'val tmp_0: .JavaBox? [val] declared in .f' type=.JavaBox? origin=null + receiver: GET_VAR 'val tmp_0: .JavaBox? declared in .f' type=.JavaBox? origin=null CLASS CLASS name:KotlinBox modality:FINAL visibility:public superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.KotlinBox.KotlinBox> TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false CONSTRUCTOR visibility:public <> (data:T of .KotlinBox?) returnType:.KotlinBox.KotlinBox> [primary] VALUE_PARAMETER name:data index:0 type:T of .KotlinBox? BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:KotlinBox modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:data visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:data type:T of .KotlinBox? visibility:public [final] @@ -53,7 +53,7 @@ FILE fqName: fileName:/kt44993.kt receiver: GET_VAR ': .KotlinBox.KotlinBox> declared in .KotlinBox.' type=.KotlinBox.KotlinBox> 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/expressions/kt45022.fir.ir.txt b/compiler/testData/ir/irText/expressions/kt45022.fir.ir.txt index da052287a6f..417dfce921c 100644 --- a/compiler/testData/ir/irText/expressions/kt45022.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/kt45022.fir.ir.txt @@ -2,27 +2,27 @@ FILE fqName: fileName:/kt45022.kt TYPEALIAS name:AX visibility:public expandedType:.X FUN name:test visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY - CALL 'public final fun plusAssign (any: kotlin.Any): kotlin.Unit [operator] declared in .X' type=kotlin.Unit origin=null + CALL 'public final fun plusAssign (any: kotlin.Any): kotlin.Unit declared in .X' type=kotlin.Unit origin=null $this: GET_OBJECT 'CLASS OBJECT name:X modality:FINAL visibility:public superTypes:[kotlin.Any]' type=.X any: CONST Int type=kotlin.Int value=1 - CALL 'public final fun plusAssign (any: kotlin.Any): kotlin.Unit [operator] declared in .X' type=kotlin.Unit origin=null + CALL 'public final fun plusAssign (any: kotlin.Any): kotlin.Unit declared in .X' type=kotlin.Unit origin=null $this: GET_OBJECT 'CLASS OBJECT name:X modality:FINAL visibility:public superTypes:[kotlin.Any]' type=.X any: CONST Int type=kotlin.Int value=1 CLASS OBJECT name:X modality:FINAL visibility:public superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.X CONSTRUCTOR visibility:private <> () returnType:.X [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:X modality:FINAL visibility:public superTypes:[kotlin.Any]' FUN name:plusAssign visibility:public modality:FINAL <> ($this:.X, any:kotlin.Any) returnType:kotlin.Unit [operator] $this: VALUE_PARAMETER name: type:.X VALUE_PARAMETER name:any index:0 type:kotlin.Any BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun plusAssign (any: kotlin.Any): kotlin.Unit [operator] declared in .X' + RETURN type=kotlin.Nothing from='public final fun plusAssign (any: kotlin.Any): kotlin.Unit declared in .X' GET_OBJECT 'CLASS IR_EXTERNAL_DECLARATION_STUB OBJECT name:Unit modality:FINAL visibility:public superTypes:[kotlin.Any]' type=kotlin.Unit 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/expressions/kt45022.ir.txt b/compiler/testData/ir/irText/expressions/kt45022.ir.txt index 7809e75f226..fe6400a5ea0 100644 --- a/compiler/testData/ir/irText/expressions/kt45022.ir.txt +++ b/compiler/testData/ir/irText/expressions/kt45022.ir.txt @@ -2,27 +2,27 @@ FILE fqName: fileName:/kt45022.kt TYPEALIAS name:AX visibility:public expandedType:.X FUN name:test visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY - CALL 'public final fun plusAssign (any: kotlin.Any): kotlin.Unit [operator] declared in .X' type=kotlin.Unit origin=PLUSEQ + CALL 'public final fun plusAssign (any: kotlin.Any): kotlin.Unit declared in .X' type=kotlin.Unit origin=PLUSEQ $this: GET_OBJECT 'CLASS OBJECT name:X modality:FINAL visibility:public superTypes:[kotlin.Any]' type=.X any: CONST Int type=kotlin.Int value=1 - CALL 'public final fun plusAssign (any: kotlin.Any): kotlin.Unit [operator] declared in .X' type=kotlin.Unit origin=PLUSEQ + CALL 'public final fun plusAssign (any: kotlin.Any): kotlin.Unit declared in .X' type=kotlin.Unit origin=PLUSEQ $this: GET_OBJECT 'CLASS OBJECT name:X modality:FINAL visibility:public superTypes:[kotlin.Any]' type=.X any: CONST Int type=kotlin.Int value=1 CLASS OBJECT name:X modality:FINAL visibility:public superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.X CONSTRUCTOR visibility:private <> () returnType:.X [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:X modality:FINAL visibility:public superTypes:[kotlin.Any]' FUN name:plusAssign visibility:public modality:FINAL <> ($this:.X, any:kotlin.Any) returnType:kotlin.Unit [operator] $this: VALUE_PARAMETER name: type:.X VALUE_PARAMETER name:any index:0 type:kotlin.Any BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun plusAssign (any: kotlin.Any): kotlin.Unit [operator] declared in .X' + RETURN type=kotlin.Nothing from='public final fun plusAssign (any: kotlin.Any): kotlin.Unit declared in .X' GET_OBJECT 'CLASS IR_EXTERNAL_DECLARATION_STUB OBJECT name:Unit modality:FINAL visibility:public superTypes:[kotlin.Any]' type=kotlin.Unit 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/expressions/kt47082.ir.txt b/compiler/testData/ir/irText/expressions/kt47082.ir.txt index 91eb84ddab3..d9417289698 100644 --- a/compiler/testData/ir/irText/expressions/kt47082.ir.txt +++ b/compiler/testData/ir/irText/expressions/kt47082.ir.txt @@ -11,23 +11,23 @@ FILE fqName: fileName:/kt47082.kt TYPE_PARAMETER name:E index:0 variance:in superTypes:[kotlin.Any?] reified:false 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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 + public open fun hashCode (): kotlin.Int 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 + public open fun toString (): kotlin.String declared in .Base $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.Base> TYPE_PARAMETER name:E index:0 variance:in superTypes:[kotlin.Any?] reified:false 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -43,7 +43,7 @@ FILE fqName: fileName:/kt47082.kt TYPE_PARAMETER name:E index:0 variance:out superTypes:[kotlin.Any?] reified:false 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/expressions/kt47245.ir.txt b/compiler/testData/ir/irText/expressions/kt47245.ir.txt index db328d49ec0..4c29f5fda81 100644 --- a/compiler/testData/ir/irText/expressions/kt47245.ir.txt +++ b/compiler/testData/ir/irText/expressions/kt47245.ir.txt @@ -3,17 +3,17 @@ FILE fqName: fileName:/kt47245.kt BLOCK_BODY BLOCK type=kotlin.Unit origin=FOR_LOOP VAR FOR_LOOP_ITERATOR name:tmp_0 type:kotlin.collections.IntIterator [val] - CALL 'public open fun iterator (): kotlin.collections.IntIterator [fake_override,operator] declared in kotlin.ranges.IntRange' type=kotlin.collections.IntIterator origin=FOR_LOOP_ITERATOR - $this: CALL 'public final fun rangeTo (other: kotlin.Int): kotlin.ranges.IntRange [operator] declared in kotlin.Int' type=kotlin.ranges.IntRange origin=RANGE + CALL 'public open fun iterator (): kotlin.collections.IntIterator declared in kotlin.ranges.IntRange' type=kotlin.collections.IntIterator origin=FOR_LOOP_ITERATOR + $this: CALL 'public final fun rangeTo (other: kotlin.Int): kotlin.ranges.IntRange declared in kotlin.Int' type=kotlin.ranges.IntRange origin=RANGE $this: CONST Int type=kotlin.Int value=0 other: CONST Int type=kotlin.Int value=0 WHILE label=null origin=FOR_LOOP_INNER_WHILE - condition: CALL 'public abstract fun hasNext (): kotlin.Boolean [fake_override,operator] declared in kotlin.collections.IntIterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT - $this: GET_VAR 'val tmp_0: kotlin.collections.IntIterator [val] declared in .test' type=kotlin.collections.IntIterator origin=null + condition: CALL 'public abstract fun hasNext (): kotlin.Boolean declared in kotlin.collections.IntIterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT + $this: GET_VAR 'val tmp_0: kotlin.collections.IntIterator declared in .test' type=kotlin.collections.IntIterator origin=null body: BLOCK type=kotlin.Unit origin=FOR_LOOP_INNER_WHILE VAR FOR_LOOP_VARIABLE name:i type:kotlin.Int [val] - CALL 'public final fun next (): kotlin.Int [operator] declared in kotlin.collections.IntIterator' type=kotlin.Int origin=FOR_LOOP_NEXT - $this: GET_VAR 'val tmp_0: kotlin.collections.IntIterator [val] declared in .test' type=kotlin.collections.IntIterator origin=null + CALL 'public final fun next (): kotlin.Int declared in kotlin.collections.IntIterator' type=kotlin.Int origin=FOR_LOOP_NEXT + $this: GET_VAR 'val tmp_0: kotlin.collections.IntIterator declared in .test' type=kotlin.collections.IntIterator origin=null BLOCK type=kotlin.Unit origin=null FUN LOCAL_FUNCTION name:x visibility:local modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY diff --git a/compiler/testData/ir/irText/expressions/kt47328.ir.txt b/compiler/testData/ir/irText/expressions/kt47328.ir.txt index cef5552c979..390abda2151 100644 --- a/compiler/testData/ir/irText/expressions/kt47328.ir.txt +++ b/compiler/testData/ir/irText/expressions/kt47328.ir.txt @@ -7,7 +7,7 @@ FILE fqName: fileName:/kt47328.kt $this: VALUE_PARAMETER name: type:.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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -23,11 +23,11 @@ FILE fqName: fileName:/kt47328.kt CONSTRUCTOR visibility:public <> (x:kotlin.Int) returnType:.B [primary] VALUE_PARAMETER name:x index:0 type:kotlin.Int BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:B modality:FINAL visibility:public superTypes:[.A]' PROPERTY name:x visibility:public modality:OPEN [val] overridden: - public abstract x: kotlin.Int [val] + public abstract x: kotlin.Int FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:public [final] annotations: JvmField @@ -44,16 +44,16 @@ FILE fqName: fileName:/kt47328.kt receiver: GET_VAR ': .B declared in .B.' type=.B 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 [fake_override,operator] declared in .A + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .A $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 .A + public open fun hashCode (): kotlin.Int declared in .A $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 .A + public open fun toString (): kotlin.String declared in .A $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:C modality:FINAL visibility:public superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.C.C> @@ -61,7 +61,7 @@ FILE fqName: fileName:/kt47328.kt CONSTRUCTOR visibility:public <> (d:D of .C) returnType:.C.C> [primary] VALUE_PARAMETER name:d index:0 type:D of .C BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:d visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:d type:D of .C visibility:public [final] @@ -78,7 +78,7 @@ FILE fqName: fileName:/kt47328.kt receiver: GET_VAR ': .C.C> declared in .C.' type=.C.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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -94,7 +94,7 @@ FILE fqName: fileName:/kt47328.kt CONSTRUCTOR visibility:public <> (c:.C<.B>) returnType:.E [primary] VALUE_PARAMETER name:c index:0 type:.C<.B> BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:E modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:ax visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:ax type:kotlin.Int visibility:private [final] @@ -111,7 +111,7 @@ FILE fqName: fileName:/kt47328.kt receiver: GET_VAR ': .E declared in .E.' type=.E 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/expressions/kt47450.ir.txt b/compiler/testData/ir/irText/expressions/kt47450.ir.txt index 6ea82e99650..cb5f312be64 100644 --- a/compiler/testData/ir/irText/expressions/kt47450.ir.txt +++ b/compiler/testData/ir/irText/expressions/kt47450.ir.txt @@ -3,279 +3,279 @@ FILE fqName: fileName:/kt47450.kt VALUE_PARAMETER name:z index:0 type:kotlin.Int BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test (z: kotlin.Int): kotlin.String declared in ' - CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS + CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS $this: CONST String type=kotlin.String value="" other: GET_VAR 'z: kotlin.Int declared in .test' type=kotlin.Int origin=null other: CONST String type=kotlin.String value="1" diff --git a/compiler/testData/ir/irText/expressions/kt48708.fir.ir.txt b/compiler/testData/ir/irText/expressions/kt48708.fir.ir.txt index d743bf64dfa..6eb5ee4b6a6 100644 --- a/compiler/testData/ir/irText/expressions/kt48708.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/kt48708.fir.ir.txt @@ -14,7 +14,7 @@ FILE fqName: fileName:/kt48708.kt CONSTRUCTOR_CALL 'public constructor () declared in java.lang.Exception' type=java.lang.Exception origin=null CONST Int type=kotlin.Int value=0 CALL 'public final fun takeInt (x: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=null - x: GET_VAR 'val x: kotlin.Int [val] declared in .test' type=kotlin.Int origin=null + x: GET_VAR 'val x: kotlin.Int declared in .test' type=kotlin.Int origin=null FUN name:takeInt visibility:public modality:FINAL <> (x:kotlin.Int) returnType:kotlin.Unit VALUE_PARAMETER name:x index:0 type:kotlin.Int BLOCK_BODY diff --git a/compiler/testData/ir/irText/expressions/kt48708.ir.txt b/compiler/testData/ir/irText/expressions/kt48708.ir.txt index 85a887c41a6..efdc621cb8a 100644 --- a/compiler/testData/ir/irText/expressions/kt48708.ir.txt +++ b/compiler/testData/ir/irText/expressions/kt48708.ir.txt @@ -15,7 +15,7 @@ FILE fqName: fileName:/kt48708.kt CONSTRUCTOR_CALL 'public constructor () declared in java.lang.Exception' type=java.lang.Exception origin=null CONST Int type=kotlin.Int value=0 CALL 'public final fun takeInt (x: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=null - x: GET_VAR 'val x: kotlin.Int [val] declared in .test' type=kotlin.Int origin=null + x: GET_VAR 'val x: kotlin.Int declared in .test' type=kotlin.Int origin=null FUN name:takeInt visibility:public modality:FINAL <> (x:kotlin.Int) returnType:kotlin.Unit VALUE_PARAMETER name:x index:0 type:kotlin.Int BLOCK_BODY diff --git a/compiler/testData/ir/irText/expressions/kt48806.fir.ir.txt b/compiler/testData/ir/irText/expressions/kt48806.fir.ir.txt index daf49c89170..24d52667edb 100644 --- a/compiler/testData/ir/irText/expressions/kt48806.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/kt48806.fir.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/kt48806.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.A CONSTRUCTOR visibility:public <> () returnType:.A [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:A modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:test_1 visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:test_1 type:kotlin.Int visibility:private [final] @@ -12,7 +12,7 @@ FILE fqName: fileName:/kt48806.kt try: BLOCK type=kotlin.Nothing origin=null THROW type=kotlin.Nothing CONSTRUCTOR_CALL 'public constructor () declared in java.lang.RuntimeException' type=java.lang.RuntimeException origin=null - CATCH parameter=val e: java.lang.Exception [val] declared in .A.test_1 + CATCH parameter=val e: java.lang.Exception declared in .A.test_1 VAR CATCH_PARAMETER name:e type:java.lang.Exception [val] BLOCK type=kotlin.Int origin=null CONST Int type=kotlin.Int value=1 @@ -29,7 +29,7 @@ FILE fqName: fileName:/kt48806.kt TRY type=kotlin.Int try: BLOCK type=kotlin.Int origin=null CONST Int type=kotlin.Int value=1 - CATCH parameter=val e: java.lang.Exception [val] declared in .A.test_2 + CATCH parameter=val e: java.lang.Exception declared in .A.test_2 VAR CATCH_PARAMETER name:e type:java.lang.Exception [val] BLOCK type=kotlin.Nothing origin=null THROW type=kotlin.Nothing @@ -43,7 +43,7 @@ FILE fqName: fileName:/kt48806.kt receiver: GET_VAR ': .A declared in .A.' type=.A 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/expressions/kt48806.ir.txt b/compiler/testData/ir/irText/expressions/kt48806.ir.txt index 35c78aae4e2..40edd6b442f 100644 --- a/compiler/testData/ir/irText/expressions/kt48806.ir.txt +++ b/compiler/testData/ir/irText/expressions/kt48806.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/kt48806.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.A CONSTRUCTOR visibility:public <> () returnType:.A [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:A modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:test_1 visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:test_1 type:kotlin.Int visibility:private [final] @@ -12,7 +12,7 @@ FILE fqName: fileName:/kt48806.kt try: BLOCK type=kotlin.Nothing origin=null THROW type=kotlin.Nothing CONSTRUCTOR_CALL 'public constructor () declared in java.lang.RuntimeException' type=java.lang.RuntimeException origin=null - CATCH parameter=val e: java.lang.Exception{ kotlin.Exception } [val] declared in .A.test_1 + CATCH parameter=val e: java.lang.Exception{ kotlin.Exception } declared in .A.test_1 VAR CATCH_PARAMETER name:e type:java.lang.Exception{ kotlin.Exception } [val] BLOCK type=kotlin.Int origin=null CONST Int type=kotlin.Int value=1 @@ -29,7 +29,7 @@ FILE fqName: fileName:/kt48806.kt TRY type=kotlin.Int try: BLOCK type=kotlin.Int origin=null CONST Int type=kotlin.Int value=1 - CATCH parameter=val e: java.lang.Exception{ kotlin.Exception } [val] declared in .A.test_2 + CATCH parameter=val e: java.lang.Exception{ kotlin.Exception } declared in .A.test_2 VAR CATCH_PARAMETER name:e type:java.lang.Exception{ kotlin.Exception } [val] BLOCK type=kotlin.Nothing origin=null THROW type=kotlin.Nothing @@ -43,7 +43,7 @@ FILE fqName: fileName:/kt48806.kt receiver: GET_VAR ': .A declared in .A.' type=.A 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/expressions/kt49203.fir.ir.txt b/compiler/testData/ir/irText/expressions/kt49203.fir.ir.txt index d98d365f14a..dd406913fed 100644 --- a/compiler/testData/ir/irText/expressions/kt49203.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/kt49203.fir.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/kt49203.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.X CONSTRUCTOR visibility:public <> () returnType:.X [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:X modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:value visibility:public modality:FINAL [var] FIELD PROPERTY_BACKING_FIELD name:value type:kotlin.String visibility:private @@ -30,13 +30,13 @@ FILE fqName: fileName:/kt49203.kt BLOCK_BODY CALL 'public final fun (: kotlin.String): kotlin.Unit declared in .X' type=kotlin.Unit origin=EQ $this: GET_VAR ': .X declared in .X.plusAssign' type=.X origin=null - : CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=null + : CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=null $this: CALL 'public final fun (): kotlin.String declared in .X' type=kotlin.String origin=GET_PROPERTY $this: GET_VAR ': .X declared in .X.plusAssign' type=.X origin=null other: GET_VAR 'data: kotlin.String declared in .X.plusAssign' type=kotlin.String 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -51,7 +51,7 @@ FILE fqName: fileName:/kt49203.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.A CONSTRUCTOR visibility:public <> () returnType:.A [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:A modality:ABSTRACT visibility:public superTypes:[kotlin.Any]' PROPERTY name:x visibility:public modality:FINAL [lateinit,var] FIELD PROPERTY_BACKING_FIELD name:x type:.X visibility:private @@ -73,7 +73,7 @@ FILE fqName: fileName:/kt49203.kt PROPERTY name:y visibility:public modality:FINAL [var] FIELD PROPERTY_BACKING_FIELD name:y type:.X visibility:private EXPRESSION_BODY - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .X' type=.X origin=null + CONSTRUCTOR_CALL 'public constructor () declared in .X' type=.X origin=null FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:.A) returnType:.X correspondingProperty: PROPERTY name:y visibility:public modality:FINAL [var] $this: VALUE_PARAMETER name: type:.A @@ -91,7 +91,7 @@ FILE fqName: fileName:/kt49203.kt value: GET_VAR ': .X declared in .A.' type=.X 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -106,11 +106,11 @@ FILE fqName: fileName:/kt49203.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.B CONSTRUCTOR visibility:public <> () returnType:.B [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .A' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .A' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:B modality:FINAL visibility:public superTypes:[.A]' PROPERTY FAKE_OVERRIDE name:x visibility:public modality:FINAL [lateinit,fake_override,var] overridden: - public final x: .X [lateinit,var] + public final x: .X FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.A) returnType:.X [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:x visibility:public modality:FINAL [lateinit,fake_override,var] overridden: @@ -118,7 +118,7 @@ FILE fqName: fileName:/kt49203.kt $this: VALUE_PARAMETER name: type:.A PROPERTY FAKE_OVERRIDE name:y visibility:public modality:FINAL [fake_override,var] overridden: - public final y: .X [var] + public final y: .X FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.A) returnType:.X [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:y visibility:public modality:FINAL [fake_override,var] overridden: @@ -126,25 +126,25 @@ FILE fqName: fileName:/kt49203.kt $this: VALUE_PARAMETER name: type:.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 [fake_override,operator] declared in .A + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .A $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 .A + public open fun hashCode (): kotlin.Int declared in .A $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 .A + public open fun toString (): kotlin.String declared in .A $this: VALUE_PARAMETER name: type:kotlin.Any FUN name:test visibility:public modality:FINAL <> (b:.B) returnType:kotlin.Unit VALUE_PARAMETER name:b index:0 type:.B BLOCK_BODY - CALL 'public final fun plusAssign (data: kotlin.String): kotlin.Unit [operator] declared in .X' type=kotlin.Unit origin=null - $this: CALL 'public final fun (): .X [fake_override] declared in .B' type=.X origin=GET_PROPERTY + CALL 'public final fun plusAssign (data: kotlin.String): kotlin.Unit declared in .X' type=kotlin.Unit origin=null + $this: CALL 'public final fun (): .X declared in .B' type=.X origin=GET_PROPERTY $this: GET_VAR 'b: .B declared in .test' type=.B origin=null data: CONST String type=kotlin.String value="x" - CALL 'public final fun plusAssign (data: kotlin.String): kotlin.Unit [operator] declared in .X' type=kotlin.Unit origin=null - $this: CALL 'public final fun (): .X [fake_override] declared in .B' type=.X origin=GET_PROPERTY + CALL 'public final fun plusAssign (data: kotlin.String): kotlin.Unit declared in .X' type=kotlin.Unit origin=null + $this: CALL 'public final fun (): .X declared in .B' type=.X origin=GET_PROPERTY $this: GET_VAR 'b: .B declared in .test' type=.B origin=null data: CONST String type=kotlin.String value="y" diff --git a/compiler/testData/ir/irText/expressions/kt49203.ir.txt b/compiler/testData/ir/irText/expressions/kt49203.ir.txt index 1de17cee30d..ea52ffb08f7 100644 --- a/compiler/testData/ir/irText/expressions/kt49203.ir.txt +++ b/compiler/testData/ir/irText/expressions/kt49203.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/kt49203.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.X CONSTRUCTOR visibility:public <> () returnType:.X [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:X modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:value visibility:public modality:FINAL [var] FIELD PROPERTY_BACKING_FIELD name:value type:kotlin.String visibility:private @@ -32,14 +32,14 @@ FILE fqName: fileName:/kt49203.kt VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:.X [val] GET_VAR ': .X declared in .X.plusAssign' type=.X origin=null CALL 'public final fun (: kotlin.String): kotlin.Unit declared in .X' type=kotlin.Unit origin=PLUSEQ - $this: GET_VAR 'val tmp_0: .X [val] declared in .X.plusAssign' type=.X origin=null - : CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUSEQ + $this: GET_VAR 'val tmp_0: .X declared in .X.plusAssign' type=.X origin=null + : CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUSEQ $this: CALL 'public final fun (): kotlin.String declared in .X' type=kotlin.String origin=PLUSEQ - $this: GET_VAR 'val tmp_0: .X [val] declared in .X.plusAssign' type=.X origin=null + $this: GET_VAR 'val tmp_0: .X declared in .X.plusAssign' type=.X origin=null other: GET_VAR 'data: kotlin.String declared in .X.plusAssign' type=kotlin.String 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -54,7 +54,7 @@ FILE fqName: fileName:/kt49203.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.A CONSTRUCTOR visibility:public <> () returnType:.A [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:A modality:ABSTRACT visibility:public superTypes:[kotlin.Any]' PROPERTY name:x visibility:public modality:FINAL [lateinit,var] FIELD PROPERTY_BACKING_FIELD name:x type:.X visibility:private @@ -76,7 +76,7 @@ FILE fqName: fileName:/kt49203.kt PROPERTY name:y visibility:public modality:FINAL [var] FIELD PROPERTY_BACKING_FIELD name:y type:.X visibility:private EXPRESSION_BODY - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .X' type=.X origin=null + CONSTRUCTOR_CALL 'public constructor () declared in .X' type=.X origin=null FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:.A) returnType:.X correspondingProperty: PROPERTY name:y visibility:public modality:FINAL [var] $this: VALUE_PARAMETER name: type:.A @@ -94,7 +94,7 @@ FILE fqName: fileName:/kt49203.kt value: GET_VAR ': .X declared in .A.' type=.X 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -109,11 +109,11 @@ FILE fqName: fileName:/kt49203.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.B CONSTRUCTOR visibility:public <> () returnType:.B [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .A' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .A' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:B modality:FINAL visibility:public superTypes:[.A]' PROPERTY FAKE_OVERRIDE name:x visibility:public modality:FINAL [lateinit,fake_override,var] overridden: - public final x: .X [lateinit,var] + public final x: .X FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.A) returnType:.X [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:x visibility:public modality:FINAL [lateinit,fake_override,var] overridden: @@ -121,7 +121,7 @@ FILE fqName: fileName:/kt49203.kt $this: VALUE_PARAMETER name: type:.A PROPERTY FAKE_OVERRIDE name:y visibility:public modality:FINAL [fake_override,var] overridden: - public final y: .X [var] + public final y: .X FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.A) returnType:.X [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:y visibility:public modality:FINAL [fake_override,var] overridden: @@ -129,16 +129,16 @@ FILE fqName: fileName:/kt49203.kt $this: VALUE_PARAMETER name: type:.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 [fake_override,operator] declared in .A + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .A $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 .A + public open fun hashCode (): kotlin.Int declared in .A $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 .A + public open fun toString (): kotlin.String declared in .A $this: VALUE_PARAMETER name: type:kotlin.Any FUN name:test visibility:public modality:FINAL <> (b:.B) returnType:kotlin.Unit VALUE_PARAMETER name:b index:0 type:.B @@ -146,14 +146,14 @@ FILE fqName: fileName:/kt49203.kt BLOCK type=kotlin.Unit origin=PLUSEQ VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:.B [val] GET_VAR 'b: .B declared in .test' type=.B origin=null - CALL 'public final fun plusAssign (data: kotlin.String): kotlin.Unit [operator] declared in .X' type=kotlin.Unit origin=PLUSEQ - $this: CALL 'public final fun (): .X [fake_override] declared in .B' type=.X origin=PLUSEQ - $this: GET_VAR 'val tmp_1: .B [val] declared in .test' type=.B origin=null + CALL 'public final fun plusAssign (data: kotlin.String): kotlin.Unit declared in .X' type=kotlin.Unit origin=PLUSEQ + $this: CALL 'public final fun (): .X declared in .B' type=.X origin=PLUSEQ + $this: GET_VAR 'val tmp_1: .B declared in .test' type=.B origin=null data: CONST String type=kotlin.String value="x" BLOCK type=kotlin.Unit origin=PLUSEQ VAR IR_TEMPORARY_VARIABLE name:tmp_2 type:.B [val] GET_VAR 'b: .B declared in .test' type=.B origin=null - CALL 'public final fun plusAssign (data: kotlin.String): kotlin.Unit [operator] declared in .X' type=kotlin.Unit origin=PLUSEQ - $this: CALL 'public final fun (): .X [fake_override] declared in .B' type=.X origin=PLUSEQ - $this: GET_VAR 'val tmp_2: .B [val] declared in .test' type=.B origin=null + CALL 'public final fun plusAssign (data: kotlin.String): kotlin.Unit declared in .X' type=kotlin.Unit origin=PLUSEQ + $this: CALL 'public final fun (): .X declared in .B' type=.X origin=PLUSEQ + $this: GET_VAR 'val tmp_2: .B declared in .test' type=.B origin=null data: CONST String type=kotlin.String value="y" diff --git a/compiler/testData/ir/irText/expressions/kt50028.fir.ir.txt b/compiler/testData/ir/irText/expressions/kt50028.fir.ir.txt index 90b8cf23539..16efe35cd31 100644 --- a/compiler/testData/ir/irText/expressions/kt50028.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/kt50028.fir.ir.txt @@ -18,4 +18,4 @@ FILE fqName: fileName:/kt50028.kt BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: THROW type=kotlin.Nothing - CONSTRUCTOR_CALL 'public constructor (message: kotlin.String) [primary] declared in kotlin.NotImplementedError' type=kotlin.NotImplementedError origin=null + CONSTRUCTOR_CALL 'public constructor (message: kotlin.String) declared in kotlin.NotImplementedError' type=kotlin.NotImplementedError origin=null diff --git a/compiler/testData/ir/irText/expressions/kt50028.ir.txt b/compiler/testData/ir/irText/expressions/kt50028.ir.txt index 1f443f40fbe..a28b836a3d1 100644 --- a/compiler/testData/ir/irText/expressions/kt50028.ir.txt +++ b/compiler/testData/ir/irText/expressions/kt50028.ir.txt @@ -21,4 +21,4 @@ FILE fqName: fileName:/kt50028.kt if: CONST Boolean type=kotlin.Boolean value=true then: BLOCK type=kotlin.Nothing origin=null THROW type=kotlin.Nothing - CONSTRUCTOR_CALL 'public constructor (message: kotlin.String) [primary] declared in kotlin.NotImplementedError' type=kotlin.NotImplementedError origin=null + CONSTRUCTOR_CALL 'public constructor (message: kotlin.String) declared in kotlin.NotImplementedError' type=kotlin.NotImplementedError origin=null diff --git a/compiler/testData/ir/irText/expressions/kt51036.ir.txt b/compiler/testData/ir/irText/expressions/kt51036.ir.txt index de270fd20bb..23a43cd9888 100644 --- a/compiler/testData/ir/irText/expressions/kt51036.ir.txt +++ b/compiler/testData/ir/irText/expressions/kt51036.ir.txt @@ -3,17 +3,17 @@ FILE fqName: fileName:/kt51036.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.A CONSTRUCTOR visibility:public <> () returnType:.A [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:A modality:FINAL visibility:public superTypes:[kotlin.Any]' CLASS OBJECT name:Companion modality:FINAL visibility:public [companion] superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.A.Companion CONSTRUCTOR visibility:private <> () returnType:.A.Companion [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:Companion modality:FINAL visibility:public [companion] 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -28,15 +28,15 @@ FILE fqName: fileName:/kt51036.kt $this: VALUE_PARAMETER name: type:.A $receiver: VALUE_PARAMETER name: type:kotlin.String BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun invoke (): kotlin.Unit [operator] declared in .A' + RETURN type=kotlin.Nothing from='public final fun invoke (): kotlin.Unit declared in .A' GET_OBJECT 'CLASS IR_EXTERNAL_DECLARATION_STUB OBJECT name:Unit modality:FINAL visibility:public superTypes:[kotlin.Any]' type=kotlin.Unit FUN name:close visibility:public modality:FINAL <> ($this:.A) returnType:kotlin.Unit $this: VALUE_PARAMETER name: type:.A BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun close (): kotlin.Unit declared in .A' - CALL 'public final fun invoke (): kotlin.Unit [operator] declared in .A' type=kotlin.Unit origin=null + CALL 'public final fun invoke (): kotlin.Unit declared in .A' type=kotlin.Unit origin=null $this: GET_VAR ': .A declared in .A.close' type=.A origin=null - $receiver: CALL 'public final fun run (block: kotlin.Function0): R of kotlin.StandardKt.run [inline] declared in kotlin.StandardKt' type=kotlin.String origin=null + $receiver: CALL 'public final fun run (block: kotlin.Function0): R of kotlin.StandardKt.run declared in kotlin.StandardKt' type=kotlin.String origin=null : kotlin.String block: FUN_EXPR type=kotlin.Function0 origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:kotlin.String @@ -45,7 +45,7 @@ FILE fqName: fileName:/kt51036.kt CONST String type=kotlin.String value="Abc" 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/expressions/lambdaInCAO.fir.ir.txt b/compiler/testData/ir/irText/expressions/lambdaInCAO.fir.ir.txt index 7da6a4444d9..c7695b3f103 100644 --- a/compiler/testData/ir/irText/expressions/lambdaInCAO.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/lambdaInCAO.fir.ir.txt @@ -7,7 +7,7 @@ FILE fqName: fileName:/lambdaInCAO.kt $receiver: VALUE_PARAMETER name: type:kotlin.Any VALUE_PARAMETER name:index index:0 type:kotlin.Function0 BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun get (index: kotlin.Function0): kotlin.Int [operator] declared in ' + RETURN type=kotlin.Nothing from='public final fun get (index: kotlin.Function0): kotlin.Int declared in ' CONST Int type=kotlin.Int value=42 FUN name:set visibility:public modality:FINAL <> ($receiver:kotlin.Any, index:kotlin.Function0, value:kotlin.Int) returnType:kotlin.Unit [operator] $receiver: VALUE_PARAMETER name: type:kotlin.Any @@ -17,7 +17,7 @@ FILE fqName: fileName:/lambdaInCAO.kt FUN name:test1 visibility:public modality:FINAL <> (a:kotlin.Any) returnType:kotlin.Unit VALUE_PARAMETER name:a index:0 type:kotlin.Any BLOCK_BODY - CALL 'public final fun plusAssign (lambda: kotlin.Function0): kotlin.Unit [operator] declared in ' type=kotlin.Unit origin=null + CALL 'public final fun plusAssign (lambda: kotlin.Function0): kotlin.Unit declared in ' type=kotlin.Unit origin=null $receiver: GET_VAR 'a: kotlin.Any declared in .test1' type=kotlin.Any origin=null lambda: FUN_EXPR type=kotlin.Function0 origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:kotlin.Unit @@ -36,13 +36,13 @@ FILE fqName: fileName:/lambdaInCAO.kt BLOCK_BODY RETURN type=kotlin.Nothing from='local final fun (): kotlin.Unit declared in .test2' GET_OBJECT 'CLASS IR_EXTERNAL_DECLARATION_STUB OBJECT name:Unit modality:FINAL visibility:public superTypes:[kotlin.Any]' type=kotlin.Unit - CALL 'public final fun set (index: kotlin.Function0, value: kotlin.Int): kotlin.Unit [operator] declared in ' type=kotlin.Unit origin=null - $receiver: GET_VAR 'val tmp_0: kotlin.Any [val] declared in .test2' type=kotlin.Any origin=null - index: GET_VAR 'val tmp_1: kotlin.Function0 [val] declared in .test2' type=kotlin.Function0 origin=null - value: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: CALL 'public final fun get (index: kotlin.Function0): kotlin.Int [operator] declared in ' type=kotlin.Int origin=null - $receiver: GET_VAR 'val tmp_0: kotlin.Any [val] declared in .test2' type=kotlin.Any origin=null - index: GET_VAR 'val tmp_1: kotlin.Function0 [val] declared in .test2' type=kotlin.Function0 origin=null + CALL 'public final fun set (index: kotlin.Function0, value: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=null + $receiver: GET_VAR 'val tmp_0: kotlin.Any declared in .test2' type=kotlin.Any origin=null + index: GET_VAR 'val tmp_1: kotlin.Function0 declared in .test2' type=kotlin.Function0 origin=null + value: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: CALL 'public final fun get (index: kotlin.Function0): kotlin.Int declared in ' type=kotlin.Int origin=null + $receiver: GET_VAR 'val tmp_0: kotlin.Any declared in .test2' type=kotlin.Any origin=null + index: GET_VAR 'val tmp_1: kotlin.Function0 declared in .test2' type=kotlin.Function0 origin=null other: CONST Int type=kotlin.Int value=42 FUN name:test3 visibility:public modality:FINAL <> (a:kotlin.Any) returnType:kotlin.Unit VALUE_PARAMETER name:a index:0 type:kotlin.Any @@ -56,13 +56,13 @@ FILE fqName: fileName:/lambdaInCAO.kt RETURN type=kotlin.Nothing from='local final fun (): kotlin.Unit declared in .test3' GET_OBJECT 'CLASS IR_EXTERNAL_DECLARATION_STUB OBJECT name:Unit modality:FINAL visibility:public superTypes:[kotlin.Any]' type=kotlin.Unit VAR IR_TEMPORARY_VARIABLE name:tmp_4 type:kotlin.Int [val] - CALL 'public final fun get (index: kotlin.Function0): kotlin.Int [operator] declared in ' type=kotlin.Int origin=null - $receiver: GET_VAR 'val tmp_2: kotlin.Any [val] declared in .test3' type=kotlin.Any origin=null - index: GET_VAR 'val tmp_3: kotlin.Function0 [val] declared in .test3' type=kotlin.Function0 origin=null - CALL 'public final fun set (index: kotlin.Function0, value: kotlin.Int): kotlin.Unit [operator] declared in ' type=kotlin.Unit origin=null - $receiver: GET_VAR 'val tmp_2: kotlin.Any [val] declared in .test3' type=kotlin.Any origin=null - index: GET_VAR 'val tmp_3: kotlin.Function0 [val] declared in .test3' type=kotlin.Function0 origin=null - value: CALL 'public final fun inc (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp_4: kotlin.Int [val] declared in .test3' type=kotlin.Int origin=null + CALL 'public final fun get (index: kotlin.Function0): kotlin.Int declared in ' type=kotlin.Int origin=null + $receiver: GET_VAR 'val tmp_2: kotlin.Any declared in .test3' type=kotlin.Any origin=null + index: GET_VAR 'val tmp_3: kotlin.Function0 declared in .test3' type=kotlin.Function0 origin=null + CALL 'public final fun set (index: kotlin.Function0, value: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=null + $receiver: GET_VAR 'val tmp_2: kotlin.Any declared in .test3' type=kotlin.Any origin=null + index: GET_VAR 'val tmp_3: kotlin.Function0 declared in .test3' type=kotlin.Function0 origin=null + value: CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_4: kotlin.Int declared in .test3' type=kotlin.Int origin=null TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit - GET_VAR 'val tmp_4: kotlin.Int [val] declared in .test3' type=kotlin.Int origin=null + GET_VAR 'val tmp_4: kotlin.Int declared in .test3' type=kotlin.Int origin=null diff --git a/compiler/testData/ir/irText/expressions/lambdaInCAO.ir.txt b/compiler/testData/ir/irText/expressions/lambdaInCAO.ir.txt index 18615517ce3..c3ba4cc5b22 100644 --- a/compiler/testData/ir/irText/expressions/lambdaInCAO.ir.txt +++ b/compiler/testData/ir/irText/expressions/lambdaInCAO.ir.txt @@ -7,7 +7,7 @@ FILE fqName: fileName:/lambdaInCAO.kt $receiver: VALUE_PARAMETER name: type:kotlin.Any VALUE_PARAMETER name:index index:0 type:kotlin.Function0 BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun get (index: kotlin.Function0): kotlin.Int [operator] declared in ' + RETURN type=kotlin.Nothing from='public final fun get (index: kotlin.Function0): kotlin.Int declared in ' CONST Int type=kotlin.Int value=42 FUN name:set visibility:public modality:FINAL <> ($receiver:kotlin.Any, index:kotlin.Function0, value:kotlin.Int) returnType:kotlin.Unit [operator] $receiver: VALUE_PARAMETER name: type:kotlin.Any @@ -17,7 +17,7 @@ FILE fqName: fileName:/lambdaInCAO.kt FUN name:test1 visibility:public modality:FINAL <> (a:kotlin.Any) returnType:kotlin.Unit VALUE_PARAMETER name:a index:0 type:kotlin.Any BLOCK_BODY - CALL 'public final fun plusAssign (lambda: kotlin.Function0): kotlin.Unit [operator] declared in ' type=kotlin.Unit origin=PLUSEQ + CALL 'public final fun plusAssign (lambda: kotlin.Function0): kotlin.Unit declared in ' type=kotlin.Unit origin=PLUSEQ $receiver: GET_VAR 'a: kotlin.Any declared in .test1' type=kotlin.Any origin=PLUSEQ lambda: FUN_EXPR type=kotlin.Function0 origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:kotlin.Unit @@ -36,13 +36,13 @@ FILE fqName: fileName:/lambdaInCAO.kt BLOCK_BODY RETURN type=kotlin.Nothing from='local final fun (): kotlin.Unit declared in .test2' GET_OBJECT 'CLASS IR_EXTERNAL_DECLARATION_STUB OBJECT name:Unit modality:FINAL visibility:public superTypes:[kotlin.Any]' type=kotlin.Unit - CALL 'public final fun set (index: kotlin.Function0, value: kotlin.Int): kotlin.Unit [operator] declared in ' type=kotlin.Unit origin=PLUSEQ - $receiver: GET_VAR 'val tmp_0: kotlin.Any [val] declared in .test2' type=kotlin.Any origin=null - index: GET_VAR 'val tmp_1: kotlin.Function0 [val] declared in .test2' type=kotlin.Function0 origin=null - value: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ - $this: CALL 'public final fun get (index: kotlin.Function0): kotlin.Int [operator] declared in ' type=kotlin.Int origin=PLUSEQ - $receiver: GET_VAR 'val tmp_0: kotlin.Any [val] declared in .test2' type=kotlin.Any origin=null - index: GET_VAR 'val tmp_1: kotlin.Function0 [val] declared in .test2' type=kotlin.Function0 origin=null + CALL 'public final fun set (index: kotlin.Function0, value: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=PLUSEQ + $receiver: GET_VAR 'val tmp_0: kotlin.Any declared in .test2' type=kotlin.Any origin=null + index: GET_VAR 'val tmp_1: kotlin.Function0 declared in .test2' type=kotlin.Function0 origin=null + value: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUSEQ + $this: CALL 'public final fun get (index: kotlin.Function0): kotlin.Int declared in ' type=kotlin.Int origin=PLUSEQ + $receiver: GET_VAR 'val tmp_0: kotlin.Any declared in .test2' type=kotlin.Any origin=null + index: GET_VAR 'val tmp_1: kotlin.Function0 declared in .test2' type=kotlin.Function0 origin=null other: CONST Int type=kotlin.Int value=42 FUN name:test3 visibility:public modality:FINAL <> (a:kotlin.Any) returnType:kotlin.Unit VALUE_PARAMETER name:a index:0 type:kotlin.Any @@ -58,12 +58,12 @@ FILE fqName: fileName:/lambdaInCAO.kt RETURN type=kotlin.Nothing from='local final fun (): kotlin.Unit declared in .test3' GET_OBJECT 'CLASS IR_EXTERNAL_DECLARATION_STUB OBJECT name:Unit modality:FINAL visibility:public superTypes:[kotlin.Any]' type=kotlin.Unit VAR IR_TEMPORARY_VARIABLE name:tmp_4 type:kotlin.Int [val] - CALL 'public final fun get (index: kotlin.Function0): kotlin.Int [operator] declared in ' type=kotlin.Int origin=POSTFIX_INCR - $receiver: GET_VAR 'val tmp_2: kotlin.Any [val] declared in .test3' type=kotlin.Any origin=null - index: GET_VAR 'val tmp_3: kotlin.Function0 [val] declared in .test3' type=kotlin.Function0 origin=null - CALL 'public final fun set (index: kotlin.Function0, value: kotlin.Int): kotlin.Unit [operator] declared in ' type=kotlin.Unit origin=POSTFIX_INCR - $receiver: GET_VAR 'val tmp_2: kotlin.Any [val] declared in .test3' type=kotlin.Any origin=null - index: GET_VAR 'val tmp_3: kotlin.Function0 [val] declared in .test3' type=kotlin.Function0 origin=null - value: CALL 'public final fun inc (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_INCR - $this: GET_VAR 'val tmp_4: kotlin.Int [val] declared in .test3' type=kotlin.Int origin=null - GET_VAR 'val tmp_4: kotlin.Int [val] declared in .test3' type=kotlin.Int origin=null + CALL 'public final fun get (index: kotlin.Function0): kotlin.Int declared in ' type=kotlin.Int origin=POSTFIX_INCR + $receiver: GET_VAR 'val tmp_2: kotlin.Any declared in .test3' type=kotlin.Any origin=null + index: GET_VAR 'val tmp_3: kotlin.Function0 declared in .test3' type=kotlin.Function0 origin=null + CALL 'public final fun set (index: kotlin.Function0, value: kotlin.Int): kotlin.Unit declared in ' type=kotlin.Unit origin=POSTFIX_INCR + $receiver: GET_VAR 'val tmp_2: kotlin.Any declared in .test3' type=kotlin.Any origin=null + index: GET_VAR 'val tmp_3: kotlin.Function0 declared in .test3' type=kotlin.Function0 origin=null + value: CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_INCR + $this: GET_VAR 'val tmp_4: kotlin.Int declared in .test3' type=kotlin.Int origin=null + GET_VAR 'val tmp_4: kotlin.Int declared in .test3' type=kotlin.Int origin=null diff --git a/compiler/testData/ir/irText/expressions/memberTypeArguments.ir.txt b/compiler/testData/ir/irText/expressions/memberTypeArguments.ir.txt index f0143b6767f..5725bbb89c2 100644 --- a/compiler/testData/ir/irText/expressions/memberTypeArguments.ir.txt +++ b/compiler/testData/ir/irText/expressions/memberTypeArguments.ir.txt @@ -5,7 +5,7 @@ FILE fqName: fileName:/memberTypeArguments.kt CONSTRUCTOR visibility:public <> (value:T of .GenericClass) returnType:.GenericClass.GenericClass> [primary] VALUE_PARAMETER name:value index:0 type:T of .GenericClass BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:GenericClass modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:value visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:value type:T of .GenericClass visibility:private [final] @@ -23,12 +23,12 @@ FILE fqName: fileName:/memberTypeArguments.kt VALUE_PARAMETER name:newValue index:0 type:T of .GenericClass BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun withNewValue (newValue: T of .GenericClass): .GenericClass.GenericClass> declared in .GenericClass' - CONSTRUCTOR_CALL 'public constructor (value: T of .GenericClass) [primary] declared in .GenericClass' type=.GenericClass.GenericClass> origin=null + CONSTRUCTOR_CALL 'public constructor (value: T of .GenericClass) declared in .GenericClass' type=.GenericClass.GenericClass> origin=null : T of .GenericClass value: GET_VAR 'newValue: T of .GenericClass declared in .GenericClass.withNewValue' type=T of .GenericClass 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/expressions/membersImportedFromObject.ir.txt b/compiler/testData/ir/irText/expressions/membersImportedFromObject.ir.txt index 6785343c95e..f5cdb1b09f2 100644 --- a/compiler/testData/ir/irText/expressions/membersImportedFromObject.ir.txt +++ b/compiler/testData/ir/irText/expressions/membersImportedFromObject.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/membersImportedFromObject.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.A CONSTRUCTOR visibility:private <> () returnType:.A [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:A modality:FINAL visibility:public superTypes:[kotlin.Any]' FUN name:foo visibility:public modality:FINAL <> ($this:.A) returnType:kotlin.Int $this: VALUE_PARAMETER name: type:.A @@ -37,7 +37,7 @@ FILE fqName: fileName:/membersImportedFromObject.kt CONST Int type=kotlin.Int value=43 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/expressions/multipleSmartCasts.fir.ir.txt b/compiler/testData/ir/irText/expressions/multipleSmartCasts.fir.ir.txt index 22df0bef974..c88d43ada3a 100644 --- a/compiler/testData/ir/irText/expressions/multipleSmartCasts.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/multipleSmartCasts.fir.ir.txt @@ -5,7 +5,7 @@ FILE fqName: fileName:/multipleSmartCasts.kt $this: VALUE_PARAMETER name: type:.IC1 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -22,7 +22,7 @@ FILE fqName: fileName:/multipleSmartCasts.kt $this: VALUE_PARAMETER name: type:.IC2 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -53,11 +53,11 @@ FILE fqName: fileName:/multipleSmartCasts.kt TYPE_OP type=.IC1 origin=IMPLICIT_CAST typeOperand=.IC1 GET_VAR 'x: kotlin.Any declared in .test' type=kotlin.Any origin=null VAR name:x1 type:kotlin.Int [val] - CALL 'public abstract fun component1 (): kotlin.Int [operator] declared in .IC1' type=kotlin.Int origin=COMPONENT_N(index=1) + CALL 'public abstract fun component1 (): kotlin.Int declared in .IC1' type=kotlin.Int origin=COMPONENT_N(index=1) $this: TYPE_OP type=.IC1 origin=IMPLICIT_CAST typeOperand=.IC1 - GET_VAR 'val tmp_0: kotlin.Any [val] declared in .test' type=kotlin.Any origin=null + GET_VAR 'val tmp_0: kotlin.Any declared in .test' type=kotlin.Any origin=null VAR name:x2 type:kotlin.String [val] - CALL 'public abstract fun component2 (): kotlin.String [operator] declared in .IC2' type=kotlin.String origin=COMPONENT_N(index=2) + CALL 'public abstract fun component2 (): kotlin.String declared in .IC2' type=kotlin.String origin=COMPONENT_N(index=2) $this: TYPE_OP type=.IC2 origin=IMPLICIT_CAST typeOperand=.IC2 TYPE_OP type=.IC1 origin=IMPLICIT_CAST typeOperand=.IC1 - GET_VAR 'val tmp_0: kotlin.Any [val] declared in .test' type=kotlin.Any origin=null + GET_VAR 'val tmp_0: kotlin.Any declared in .test' type=kotlin.Any origin=null diff --git a/compiler/testData/ir/irText/expressions/multipleSmartCasts.ir.txt b/compiler/testData/ir/irText/expressions/multipleSmartCasts.ir.txt index 3279f283ead..e508530efb7 100644 --- a/compiler/testData/ir/irText/expressions/multipleSmartCasts.ir.txt +++ b/compiler/testData/ir/irText/expressions/multipleSmartCasts.ir.txt @@ -5,7 +5,7 @@ FILE fqName: fileName:/multipleSmartCasts.kt $this: VALUE_PARAMETER name: type:.IC1 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -22,7 +22,7 @@ FILE fqName: fileName:/multipleSmartCasts.kt $this: VALUE_PARAMETER name: type:.IC2 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -52,10 +52,10 @@ FILE fqName: fileName:/multipleSmartCasts.kt VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:kotlin.Any [val] GET_VAR 'x: kotlin.Any declared in .test' type=kotlin.Any origin=null VAR name:x1 type:kotlin.Int [val] - CALL 'public abstract fun component1 (): kotlin.Int [operator] declared in .IC1' type=kotlin.Int origin=COMPONENT_N(index=1) + CALL 'public abstract fun component1 (): kotlin.Int declared in .IC1' type=kotlin.Int origin=COMPONENT_N(index=1) $this: TYPE_OP type=.IC1 origin=IMPLICIT_CAST typeOperand=.IC1 - GET_VAR 'val tmp_0: kotlin.Any [val] declared in .test' type=kotlin.Any origin=null + GET_VAR 'val tmp_0: kotlin.Any declared in .test' type=kotlin.Any origin=null VAR name:x2 type:kotlin.String [val] - CALL 'public abstract fun component2 (): kotlin.String [operator] declared in .IC2' type=kotlin.String origin=COMPONENT_N(index=2) + CALL 'public abstract fun component2 (): kotlin.String declared in .IC2' type=kotlin.String origin=COMPONENT_N(index=2) $this: TYPE_OP type=.IC2 origin=IMPLICIT_CAST typeOperand=.IC2 - GET_VAR 'val tmp_0: kotlin.Any [val] declared in .test' type=kotlin.Any origin=null + GET_VAR 'val tmp_0: kotlin.Any declared in .test' type=kotlin.Any origin=null diff --git a/compiler/testData/ir/irText/expressions/multipleThisReferences.ir.txt b/compiler/testData/ir/irText/expressions/multipleThisReferences.ir.txt index aa5cacc55cf..bd93e2c0965 100644 --- a/compiler/testData/ir/irText/expressions/multipleThisReferences.ir.txt +++ b/compiler/testData/ir/irText/expressions/multipleThisReferences.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/multipleThisReferences.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Outer CONSTRUCTOR visibility:public <> () returnType:.Outer [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Outer modality:FINAL visibility:public superTypes:[kotlin.Any]' CLASS CLASS name:Inner modality:OPEN visibility:public [inner] superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Outer.Inner @@ -11,7 +11,7 @@ FILE fqName: fileName:/multipleThisReferences.kt $outer: VALUE_PARAMETER name: type:.Outer VALUE_PARAMETER name:x index:0 type:kotlin.Int BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Inner modality:OPEN visibility:public [inner] superTypes:[kotlin.Any]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private [final] @@ -26,7 +26,7 @@ FILE fqName: fileName:/multipleThisReferences.kt receiver: GET_VAR ': .Outer.Inner declared in .Outer.Inner.' type=.Outer.Inner 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -39,7 +39,7 @@ FILE fqName: fileName:/multipleThisReferences.kt $this: VALUE_PARAMETER name: type: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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -55,7 +55,7 @@ FILE fqName: fileName:/multipleThisReferences.kt CONSTRUCTOR visibility:public <> (y:kotlin.Int) returnType:.Host [primary] VALUE_PARAMETER name:y index:0 type:kotlin.Int BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Host modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:y visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:y type:kotlin.Int visibility:private [final] @@ -78,15 +78,15 @@ FILE fqName: fileName:/multipleThisReferences.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Host.test. CONSTRUCTOR visibility:public <> () returnType:.Host.test. [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor (x: kotlin.Int) [primary] declared in .Outer.Inner' + DELEGATING_CONSTRUCTOR_CALL 'public constructor (x: kotlin.Int) declared in .Outer.Inner' $this: GET_VAR ': .Outer declared in .Host.test' type=.Outer origin=null x: CONST Int type=kotlin.Int value=42 INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name: modality:FINAL visibility:local superTypes:[.Outer.Inner]' PROPERTY name:xx visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:xx type:kotlin.Int visibility:private [final] EXPRESSION_BODY - CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUS - $this: CALL 'public final fun (): kotlin.Int [fake_override] declared in .Host.test.' type=kotlin.Int origin=GET_PROPERTY + CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUS + $this: CALL 'public final fun (): kotlin.Int declared in .Host.test.' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR ': .Host.test. declared in .Host.test.' type=.Host.test. origin=null other: CALL 'public final fun (): kotlin.Int declared in .Host' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR ': .Host declared in .Host.test' type=.Host origin=null @@ -99,7 +99,7 @@ FILE fqName: fileName:/multipleThisReferences.kt receiver: GET_VAR ': .Host.test. declared in .Host.test..' type=.Host.test. origin=null PROPERTY FAKE_OVERRIDE name:x visibility:public modality:FINAL [fake_override,val] overridden: - public final x: kotlin.Int [val] + public final x: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.Outer.Inner) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:x visibility:public modality:FINAL [fake_override,val] overridden: @@ -107,21 +107,21 @@ FILE fqName: fileName:/multipleThisReferences.kt $this: VALUE_PARAMETER name: type:.Outer.Inner 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 .Outer.Inner + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Outer.Inner $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 .Outer.Inner + public open fun hashCode (): kotlin.Int declared in .Outer.Inner $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 .Outer.Inner + public open fun toString (): kotlin.String declared in .Outer.Inner $this: VALUE_PARAMETER name: type:kotlin.Any - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .Host.test.' type=.Host.test. origin=OBJECT_LITERAL + CONSTRUCTOR_CALL 'public constructor () declared in .Host.test.' type=.Host.test. origin=OBJECT_LITERAL 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/expressions/nullCheckOnGenericLambdaReturn.ir.txt b/compiler/testData/ir/irText/expressions/nullCheckOnGenericLambdaReturn.ir.txt index 6fb883dd3da..e88a14f3dbc 100644 --- a/compiler/testData/ir/irText/expressions/nullCheckOnGenericLambdaReturn.ir.txt +++ b/compiler/testData/ir/irText/expressions/nullCheckOnGenericLambdaReturn.ir.txt @@ -3,27 +3,27 @@ FILE fqName: fileName:/nullCheckOnGenericLambdaReturn.kt VALUE_PARAMETER name:fn index:0 type:kotlin.Function0 BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun checkAny (fn: kotlin.Function0): kotlin.Any declared in ' - CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=kotlin.Any origin=INVOKE + CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=kotlin.Any origin=INVOKE $this: GET_VAR 'fn: kotlin.Function0 declared in .checkAny' type=kotlin.Function0 origin=VARIABLE_AS_FUNCTION FUN name:checkAnyN visibility:public modality:FINAL <> (fn:kotlin.Function0) returnType:kotlin.Any? VALUE_PARAMETER name:fn index:0 type:kotlin.Function0 BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun checkAnyN (fn: kotlin.Function0): kotlin.Any? declared in ' - CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=kotlin.Any? origin=INVOKE + CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=kotlin.Any? origin=INVOKE $this: GET_VAR 'fn: kotlin.Function0 declared in .checkAnyN' type=kotlin.Function0 origin=VARIABLE_AS_FUNCTION FUN name:checkT visibility:public modality:FINAL (fn:kotlin.Function0.checkT>) returnType:T of .checkT TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false VALUE_PARAMETER name:fn index:0 type:kotlin.Function0.checkT> BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun checkT (fn: kotlin.Function0.checkT>): T of .checkT declared in ' - CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=T of .checkT origin=INVOKE + CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=T of .checkT origin=INVOKE $this: GET_VAR 'fn: kotlin.Function0.checkT> declared in .checkT' type=kotlin.Function0.checkT> origin=VARIABLE_AS_FUNCTION FUN name:checkTAny visibility:public modality:FINAL (fn:kotlin.Function0.checkTAny>) returnType:T of .checkTAny TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any] reified:false VALUE_PARAMETER name:fn index:0 type:kotlin.Function0.checkTAny> BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun checkTAny (fn: kotlin.Function0.checkTAny>): T of .checkTAny declared in ' - CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=T of .checkTAny origin=INVOKE + CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=T of .checkTAny origin=INVOKE $this: GET_VAR 'fn: kotlin.Function0.checkTAny> declared in .checkTAny' type=kotlin.Function0.checkTAny> origin=VARIABLE_AS_FUNCTION FUN name:id visibility:public modality:FINAL (x:T of .id) returnType:T of .id TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false diff --git a/compiler/testData/ir/irText/expressions/nullCheckOnLambdaReturn.fir.ir.txt b/compiler/testData/ir/irText/expressions/nullCheckOnLambdaReturn.fir.ir.txt index 46260146f91..16250775eaa 100644 --- a/compiler/testData/ir/irText/expressions/nullCheckOnLambdaReturn.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/nullCheckOnLambdaReturn.fir.ir.txt @@ -3,13 +3,13 @@ FILE fqName: fileName:/nullCheckOnLambdaReturn.kt VALUE_PARAMETER name:fn index:0 type:kotlin.Function0 BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun checkAny (fn: kotlin.Function0): kotlin.Any declared in ' - CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=kotlin.Any origin=INVOKE + CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=kotlin.Any origin=INVOKE $this: GET_VAR 'fn: kotlin.Function0 declared in .checkAny' type=kotlin.Function0 origin=VARIABLE_AS_FUNCTION FUN name:checkAnyN visibility:public modality:FINAL <> (fn:kotlin.Function0) returnType:kotlin.Any? VALUE_PARAMETER name:fn index:0 type:kotlin.Function0 BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun checkAnyN (fn: kotlin.Function0): kotlin.Any? declared in ' - CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=kotlin.Any? origin=INVOKE + CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=kotlin.Any? origin=INVOKE $this: GET_VAR 'fn: kotlin.Function0 declared in .checkAnyN' type=kotlin.Function0 origin=VARIABLE_AS_FUNCTION FUN name:id visibility:public modality:FINAL (x:T of .id) returnType:T of .id TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false diff --git a/compiler/testData/ir/irText/expressions/nullCheckOnLambdaReturn.ir.txt b/compiler/testData/ir/irText/expressions/nullCheckOnLambdaReturn.ir.txt index 0e4b3e36ad3..a4e565be28e 100644 --- a/compiler/testData/ir/irText/expressions/nullCheckOnLambdaReturn.ir.txt +++ b/compiler/testData/ir/irText/expressions/nullCheckOnLambdaReturn.ir.txt @@ -3,13 +3,13 @@ FILE fqName: fileName:/nullCheckOnLambdaReturn.kt VALUE_PARAMETER name:fn index:0 type:kotlin.Function0 BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun checkAny (fn: kotlin.Function0): kotlin.Any declared in ' - CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=kotlin.Any origin=INVOKE + CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=kotlin.Any origin=INVOKE $this: GET_VAR 'fn: kotlin.Function0 declared in .checkAny' type=kotlin.Function0 origin=VARIABLE_AS_FUNCTION FUN name:checkAnyN visibility:public modality:FINAL <> (fn:kotlin.Function0) returnType:kotlin.Any? VALUE_PARAMETER name:fn index:0 type:kotlin.Function0 BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun checkAnyN (fn: kotlin.Function0): kotlin.Any? declared in ' - CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=kotlin.Any? origin=INVOKE + CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=kotlin.Any? origin=INVOKE $this: GET_VAR 'fn: kotlin.Function0 declared in .checkAnyN' type=kotlin.Function0 origin=VARIABLE_AS_FUNCTION FUN name:id visibility:public modality:FINAL (x:T of .id) returnType:T of .id TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false diff --git a/compiler/testData/ir/irText/expressions/objectAsCallable.fir.ir.txt b/compiler/testData/ir/irText/expressions/objectAsCallable.fir.ir.txt index 5181e0be9e4..dc73ab2e867 100644 --- a/compiler/testData/ir/irText/expressions/objectAsCallable.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/objectAsCallable.fir.ir.txt @@ -3,11 +3,11 @@ FILE fqName: fileName:/objectAsCallable.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.A CONSTRUCTOR visibility:private <> () returnType:.A [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:A modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -22,12 +22,12 @@ FILE fqName: fileName:/objectAsCallable.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.En CONSTRUCTOR visibility:private <> () returnType:.En [primary] BLOCK_BODY - ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) [primary] declared in kotlin.Enum' + ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) declared in kotlin.Enum' : .En INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_CLASS name:En modality:FINAL visibility:public superTypes:[kotlin.Enum<.En>]' ENUM_ENTRY name:X init: EXPRESSION_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor () [primary] declared in .En' + ENUM_CONSTRUCTOR_CALL 'private constructor () declared in .En' FUN ENUM_CLASS_SPECIAL_MEMBER name:values visibility:public modality:FINAL <> () returnType:kotlin.Array<.En> SYNTHETIC_BODY kind=ENUM_VALUES FUN ENUM_CLASS_SPECIAL_MEMBER name:valueOf visibility:public modality:FINAL <> (value:kotlin.String) returnType:.En @@ -43,12 +43,12 @@ FILE fqName: fileName:/objectAsCallable.kt $this: VALUE_PARAMETER name: type:kotlin.Enum FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum, other:.En) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: E of kotlin.Enum): kotlin.Int [operator] declared in kotlin.Enum + public final fun compareTo (other: E of kotlin.Enum): kotlin.Int declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:.En FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Enum + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:hashCode visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] @@ -63,7 +63,7 @@ FILE fqName: fileName:/objectAsCallable.kt annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: @@ -71,7 +71,7 @@ FILE fqName: fileName:/objectAsCallable.kt $this: VALUE_PARAMETER name: type:kotlin.Enum PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: @@ -89,18 +89,18 @@ FILE fqName: fileName:/objectAsCallable.kt $receiver: VALUE_PARAMETER name: type:.A VALUE_PARAMETER name:i index:0 type:kotlin.Int BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun invoke (i: kotlin.Int): kotlin.Int [operator] declared in ' + RETURN type=kotlin.Nothing from='public final fun invoke (i: kotlin.Int): kotlin.Int declared in ' GET_VAR 'i: kotlin.Int declared in .invoke' type=kotlin.Int origin=null FUN name:invoke visibility:public modality:FINAL <> ($receiver:.En, i:kotlin.Int) returnType:kotlin.Int [operator] $receiver: VALUE_PARAMETER name: type:.En VALUE_PARAMETER name:i index:0 type:kotlin.Int BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun invoke (i: kotlin.Int): kotlin.Int [operator] declared in ' + RETURN type=kotlin.Nothing from='public final fun invoke (i: kotlin.Int): kotlin.Int declared in ' GET_VAR 'i: kotlin.Int declared in .invoke' type=kotlin.Int origin=null PROPERTY name:test1 visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:test1 type:kotlin.Int visibility:private [final,static] EXPRESSION_BODY - CALL 'public final fun invoke (i: kotlin.Int): kotlin.Int [operator] declared in ' type=kotlin.Int origin=null + CALL 'public final fun invoke (i: kotlin.Int): kotlin.Int declared in ' type=kotlin.Int origin=null $receiver: GET_OBJECT 'CLASS OBJECT name:A modality:FINAL visibility:public superTypes:[kotlin.Any]' type=.A i: CONST Int type=kotlin.Int value=42 FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:kotlin.Int @@ -111,7 +111,7 @@ FILE fqName: fileName:/objectAsCallable.kt PROPERTY name:test2 visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:test2 type:kotlin.Int visibility:private [final,static] EXPRESSION_BODY - CALL 'public final fun invoke (i: kotlin.Int): kotlin.Int [operator] declared in ' type=kotlin.Int origin=null + CALL 'public final fun invoke (i: kotlin.Int): kotlin.Int declared in ' type=kotlin.Int origin=null $receiver: GET_ENUM 'ENUM_ENTRY name:X' type=.En i: CONST Int type=kotlin.Int value=42 FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:kotlin.Int diff --git a/compiler/testData/ir/irText/expressions/objectAsCallable.ir.txt b/compiler/testData/ir/irText/expressions/objectAsCallable.ir.txt index 82f1c023e62..f07c3ca00a2 100644 --- a/compiler/testData/ir/irText/expressions/objectAsCallable.ir.txt +++ b/compiler/testData/ir/irText/expressions/objectAsCallable.ir.txt @@ -3,11 +3,11 @@ FILE fqName: fileName:/objectAsCallable.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.A CONSTRUCTOR visibility:private <> () returnType:.A [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:A modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -22,17 +22,17 @@ FILE fqName: fileName:/objectAsCallable.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.En CONSTRUCTOR visibility:private <> () returnType:.En [primary] BLOCK_BODY - ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) [primary] declared in kotlin.Enum' + ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) declared in kotlin.Enum' : .En INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_CLASS name:En modality:FINAL visibility:public superTypes:[kotlin.Enum<.En>]' ENUM_ENTRY name:X init: EXPRESSION_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor () [primary] declared in .En' + ENUM_CONSTRUCTOR_CALL 'private constructor () declared in .En' PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.En>) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: @@ -40,7 +40,7 @@ FILE fqName: fileName:/objectAsCallable.kt $this: VALUE_PARAMETER name: type:kotlin.Enum<.En> PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.En>) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: @@ -52,12 +52,12 @@ FILE fqName: fileName:/objectAsCallable.kt $this: VALUE_PARAMETER name: type:kotlin.Enum<.En> FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum<.En>, other:.En) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: E of kotlin.Enum): kotlin.Int [operator] declared in kotlin.Enum + public final fun compareTo (other: E of kotlin.Enum): kotlin.Int declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum<.En> VALUE_PARAMETER name:other index:0 type:.En FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum<.En>, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Enum + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum<.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<.En>) returnType:kotlin.Unit [fake_override] @@ -89,18 +89,18 @@ FILE fqName: fileName:/objectAsCallable.kt $receiver: VALUE_PARAMETER name: type:.A VALUE_PARAMETER name:i index:0 type:kotlin.Int BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun invoke (i: kotlin.Int): kotlin.Int [operator] declared in ' + RETURN type=kotlin.Nothing from='public final fun invoke (i: kotlin.Int): kotlin.Int declared in ' GET_VAR 'i: kotlin.Int declared in .invoke' type=kotlin.Int origin=null FUN name:invoke visibility:public modality:FINAL <> ($receiver:.En, i:kotlin.Int) returnType:kotlin.Int [operator] $receiver: VALUE_PARAMETER name: type:.En VALUE_PARAMETER name:i index:0 type:kotlin.Int BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun invoke (i: kotlin.Int): kotlin.Int [operator] declared in ' + RETURN type=kotlin.Nothing from='public final fun invoke (i: kotlin.Int): kotlin.Int declared in ' GET_VAR 'i: kotlin.Int declared in .invoke' type=kotlin.Int origin=null PROPERTY name:test1 visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:test1 type:kotlin.Int visibility:private [final,static] EXPRESSION_BODY - CALL 'public final fun invoke (i: kotlin.Int): kotlin.Int [operator] declared in ' type=kotlin.Int origin=INVOKE + CALL 'public final fun invoke (i: kotlin.Int): kotlin.Int declared in ' type=kotlin.Int origin=INVOKE $receiver: GET_OBJECT 'CLASS OBJECT name:A modality:FINAL visibility:public superTypes:[kotlin.Any]' type=.A i: CONST Int type=kotlin.Int value=42 FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:kotlin.Int @@ -111,7 +111,7 @@ FILE fqName: fileName:/objectAsCallable.kt PROPERTY name:test2 visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:test2 type:kotlin.Int visibility:private [final,static] EXPRESSION_BODY - CALL 'public final fun invoke (i: kotlin.Int): kotlin.Int [operator] declared in ' type=kotlin.Int origin=INVOKE + CALL 'public final fun invoke (i: kotlin.Int): kotlin.Int declared in ' type=kotlin.Int origin=INVOKE $receiver: GET_ENUM 'ENUM_ENTRY name:X' type=.En i: CONST Int type=kotlin.Int value=42 FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:kotlin.Int diff --git a/compiler/testData/ir/irText/expressions/objectByNameInsideObject.ir.txt b/compiler/testData/ir/irText/expressions/objectByNameInsideObject.ir.txt index f2b9c986545..fd515f05051 100644 --- a/compiler/testData/ir/irText/expressions/objectByNameInsideObject.ir.txt +++ b/compiler/testData/ir/irText/expressions/objectByNameInsideObject.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/objectByNameInsideObject.kt CONSTRUCTOR visibility:public <> (f1:kotlin.Function0) returnType:.Base [primary] VALUE_PARAMETER name:f1 index:0 type:kotlin.Function0 BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Base modality:OPEN visibility:public superTypes:[kotlin.Any]' PROPERTY name:f1 visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:f1 type:kotlin.Function0 visibility:private [final] @@ -19,7 +19,7 @@ FILE fqName: fileName:/objectByNameInsideObject.kt receiver: GET_VAR ': .Base declared in .Base.' type=.Base 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -34,7 +34,7 @@ FILE fqName: fileName:/objectByNameInsideObject.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Thing CONSTRUCTOR visibility:private <> () returnType:.Thing [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor (f1: kotlin.Function0) [primary] declared in .Base' + DELEGATING_CONSTRUCTOR_CALL 'public constructor (f1: kotlin.Function0) declared in .Base' f1: FUN_EXPR type=kotlin.Function0 origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:kotlin.Any BLOCK_BODY @@ -53,7 +53,7 @@ FILE fqName: fileName:/objectByNameInsideObject.kt GET_VAR ': .Thing declared in .Thing.test2' type=.Thing origin=null PROPERTY FAKE_OVERRIDE name:f1 visibility:public modality:FINAL [fake_override,val] overridden: - public final f1: kotlin.Function0 [val] + public final f1: kotlin.Function0 FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.Base) returnType:kotlin.Function0 [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:f1 visibility:public modality:FINAL [fake_override,val] overridden: @@ -61,14 +61,14 @@ FILE fqName: fileName:/objectByNameInsideObject.kt $this: VALUE_PARAMETER 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 [fake_override,operator] declared in .Base + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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 + public open fun hashCode (): kotlin.Int 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 + public open fun toString (): kotlin.String declared in .Base $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/expressions/objectClassReference.ir.txt b/compiler/testData/ir/irText/expressions/objectClassReference.ir.txt index 82a6c36104c..913f4270d15 100644 --- a/compiler/testData/ir/irText/expressions/objectClassReference.ir.txt +++ b/compiler/testData/ir/irText/expressions/objectClassReference.ir.txt @@ -3,11 +3,11 @@ FILE fqName: fileName:/objectClassReference.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.A CONSTRUCTOR visibility:private <> () returnType:.A [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:A modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/expressions/objectReference.fir.ir.txt b/compiler/testData/ir/irText/expressions/objectReference.fir.ir.txt index 909ebe3ff27..91907aae119 100644 --- a/compiler/testData/ir/irText/expressions/objectReference.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/objectReference.fir.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/objectReference.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Z CONSTRUCTOR visibility:private <> () returnType:.Z [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:Z modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:counter visibility:public modality:FINAL [var] FIELD PROPERTY_BACKING_FIELD name:counter type:kotlin.Int visibility:private @@ -44,7 +44,7 @@ FILE fqName: fileName:/objectReference.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Z.Nested CONSTRUCTOR visibility:public <> () returnType:.Z.Nested [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Nested modality:FINAL visibility:public superTypes:[kotlin.Any]' ANONYMOUS_INITIALIZER isStatic=false BLOCK_BODY @@ -73,7 +73,7 @@ FILE fqName: fileName:/objectReference.kt $this: GET_OBJECT 'CLASS OBJECT name:Z modality:FINAL visibility:public superTypes:[kotlin.Any]' type=.Z 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -115,7 +115,7 @@ FILE fqName: fileName:/objectReference.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Z.anObject. CONSTRUCTOR visibility:public <> () returnType:.Z.anObject. [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name: modality:FINAL visibility:local superTypes:[kotlin.Any]' ANONYMOUS_INITIALIZER isStatic=false BLOCK_BODY @@ -144,7 +144,7 @@ FILE fqName: fileName:/objectReference.kt $this: GET_OBJECT 'CLASS OBJECT name:Z modality:FINAL visibility:public superTypes:[kotlin.Any]' type=.Z 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -155,7 +155,7 @@ FILE fqName: fileName:/objectReference.kt overridden: public open fun toString (): kotlin.String declared in kotlin.Any $this: VALUE_PARAMETER name: type:kotlin.Any - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .Z.anObject.' type=.Z.anObject. origin=OBJECT_LITERAL + CONSTRUCTOR_CALL 'public constructor () declared in .Z.anObject.' type=.Z.anObject. origin=OBJECT_LITERAL FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:.Z) returnType:kotlin.Any correspondingProperty: PROPERTY name:anObject visibility:public modality:FINAL [val] $this: VALUE_PARAMETER name: type:.Z @@ -165,7 +165,7 @@ FILE fqName: fileName:/objectReference.kt receiver: GET_VAR ': .Z declared in .Z.' type=.Z 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/expressions/objectReference.ir.txt b/compiler/testData/ir/irText/expressions/objectReference.ir.txt index 092b20669f0..9617ab78140 100644 --- a/compiler/testData/ir/irText/expressions/objectReference.ir.txt +++ b/compiler/testData/ir/irText/expressions/objectReference.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/objectReference.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Z CONSTRUCTOR visibility:private <> () returnType:.Z [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:Z modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:counter visibility:public modality:FINAL [var] FIELD PROPERTY_BACKING_FIELD name:counter type:kotlin.Int visibility:private @@ -44,7 +44,7 @@ FILE fqName: fileName:/objectReference.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Z.Nested CONSTRUCTOR visibility:public <> () returnType:.Z.Nested [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Nested modality:FINAL visibility:public superTypes:[kotlin.Any]' ANONYMOUS_INITIALIZER isStatic=false BLOCK_BODY @@ -73,7 +73,7 @@ FILE fqName: fileName:/objectReference.kt $this: GET_OBJECT 'CLASS OBJECT name:Z modality:FINAL visibility:public superTypes:[kotlin.Any]' type=.Z 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -115,7 +115,7 @@ FILE fqName: fileName:/objectReference.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Z.anObject. CONSTRUCTOR visibility:public <> () returnType:.Z.anObject. [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name: modality:FINAL visibility:local superTypes:[kotlin.Any]' ANONYMOUS_INITIALIZER isStatic=false BLOCK_BODY @@ -144,7 +144,7 @@ FILE fqName: fileName:/objectReference.kt $this: GET_OBJECT 'CLASS OBJECT name:Z modality:FINAL visibility:public superTypes:[kotlin.Any]' type=.Z 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -155,7 +155,7 @@ FILE fqName: fileName:/objectReference.kt overridden: public open fun toString (): kotlin.String declared in kotlin.Any $this: VALUE_PARAMETER name: type:kotlin.Any - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .Z.anObject.' type=.Z.anObject. origin=OBJECT_LITERAL + CONSTRUCTOR_CALL 'public constructor () declared in .Z.anObject.' type=.Z.anObject. origin=OBJECT_LITERAL FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:.Z) returnType:kotlin.Any correspondingProperty: PROPERTY name:anObject visibility:public modality:FINAL [val] $this: VALUE_PARAMETER name: type:.Z @@ -165,7 +165,7 @@ FILE fqName: fileName:/objectReference.kt receiver: GET_VAR ': .Z declared in .Z.' type=.Z 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/expressions/objectReferenceInClosureInSuperConstructorCall.ir.txt b/compiler/testData/ir/irText/expressions/objectReferenceInClosureInSuperConstructorCall.ir.txt index 6325866e292..e9d24e063cb 100644 --- a/compiler/testData/ir/irText/expressions/objectReferenceInClosureInSuperConstructorCall.ir.txt +++ b/compiler/testData/ir/irText/expressions/objectReferenceInClosureInSuperConstructorCall.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/objectReferenceInClosureInSuperConstructorCall.kt CONSTRUCTOR visibility:public <> (lambda:kotlin.Function0) returnType:.Base [primary] VALUE_PARAMETER name:lambda index:0 type:kotlin.Function0 BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Base modality:ABSTRACT visibility:public superTypes:[kotlin.Any]' PROPERTY name:lambda visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:lambda type:kotlin.Function0 visibility:private [final] @@ -19,7 +19,7 @@ FILE fqName: fileName:/objectReferenceInClosureInSuperConstructorCall.kt receiver: GET_VAR ': .Base declared in .Base.' type=.Base 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -34,7 +34,7 @@ FILE fqName: fileName:/objectReferenceInClosureInSuperConstructorCall.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Test CONSTRUCTOR visibility:private <> () returnType:.Test [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor (lambda: kotlin.Function0) [primary] declared in .Base' + DELEGATING_CONSTRUCTOR_CALL 'public constructor (lambda: kotlin.Function0) declared in .Base' lambda: FUN_EXPR type=kotlin.Function0 origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:kotlin.Any BLOCK_BODY @@ -43,7 +43,7 @@ FILE fqName: fileName:/objectReferenceInClosureInSuperConstructorCall.kt INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:Test modality:FINAL visibility:public superTypes:[.Base]' PROPERTY FAKE_OVERRIDE name:lambda visibility:public modality:FINAL [fake_override,val] overridden: - public final lambda: kotlin.Function0 [val] + public final lambda: kotlin.Function0 FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.Base) returnType:kotlin.Function0 [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:lambda visibility:public modality:FINAL [fake_override,val] overridden: @@ -51,14 +51,14 @@ FILE fqName: fileName:/objectReferenceInClosureInSuperConstructorCall.kt $this: VALUE_PARAMETER 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 [fake_override,operator] declared in .Base + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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 + public open fun hashCode (): kotlin.Int 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 + public open fun toString (): kotlin.String declared in .Base $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/expressions/objectReferenceInFieldInitializer.ir.txt b/compiler/testData/ir/irText/expressions/objectReferenceInFieldInitializer.ir.txt index f2ea429eadd..b64e5fdd5f5 100644 --- a/compiler/testData/ir/irText/expressions/objectReferenceInFieldInitializer.ir.txt +++ b/compiler/testData/ir/irText/expressions/objectReferenceInFieldInitializer.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/objectReferenceInFieldInitializer.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.A CONSTRUCTOR visibility:private <> () returnType:.A [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:A modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:a visibility:private modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:a type:kotlin.String visibility:private [final] @@ -43,7 +43,7 @@ FILE fqName: fileName:/objectReferenceInFieldInitializer.kt receiver: GET_VAR ': .A declared in .A.' type=.A 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/expressions/outerClassInstanceReference.ir.txt b/compiler/testData/ir/irText/expressions/outerClassInstanceReference.ir.txt index 3e8722f61ad..4cc0e27a257 100644 --- a/compiler/testData/ir/irText/expressions/outerClassInstanceReference.ir.txt +++ b/compiler/testData/ir/irText/expressions/outerClassInstanceReference.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/outerClassInstanceReference.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Outer CONSTRUCTOR visibility:public <> () returnType:.Outer [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Outer modality:FINAL visibility:public superTypes:[kotlin.Any]' FUN name:outer visibility:public modality:FINAL <> ($this:.Outer) returnType:kotlin.Unit $this: VALUE_PARAMETER name: type:.Outer @@ -13,7 +13,7 @@ FILE fqName: fileName:/outerClassInstanceReference.kt CONSTRUCTOR visibility:public <> ($this:.Outer) returnType:.Outer.Inner [primary] $outer: VALUE_PARAMETER name: type:.Outer BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Inner modality:FINAL visibility:public [inner] superTypes:[kotlin.Any]' FUN name:inner visibility:public modality:FINAL <> ($this:.Outer.Inner) returnType:kotlin.Unit $this: VALUE_PARAMETER name: type:.Outer.Inner @@ -23,7 +23,7 @@ FILE fqName: fileName:/outerClassInstanceReference.kt $this: GET_VAR ': .Outer declared in .Outer' type=.Outer 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -36,7 +36,7 @@ FILE fqName: fileName:/outerClassInstanceReference.kt $this: VALUE_PARAMETER name: type: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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/expressions/primitivesImplicitConversions.ir.txt b/compiler/testData/ir/irText/expressions/primitivesImplicitConversions.ir.txt index 35b5e73055c..d9484b7689c 100644 --- a/compiler/testData/ir/irText/expressions/primitivesImplicitConversions.ir.txt +++ b/compiler/testData/ir/irText/expressions/primitivesImplicitConversions.ir.txt @@ -64,18 +64,18 @@ FILE fqName: fileName:/primitivesImplicitConversions.kt VAR name:test4 type:kotlin.Long? [val] CONST Long type=kotlin.Long value=-1 VAR name:test5 type:kotlin.Long? [val] - CALL 'public final fun unaryMinus (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null + CALL 'public final fun unaryMinus (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: CONST Int type=kotlin.Int value=1 VAR name:test6 type:kotlin.Short? [val] - CALL 'public final fun unaryMinus (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null + CALL 'public final fun unaryMinus (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: CONST Int type=kotlin.Int value=1 VAR name:test7 type:kotlin.Byte? [val] - CALL 'public final fun unaryMinus (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null + CALL 'public final fun unaryMinus (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: CONST Int type=kotlin.Int value=1 FUN name:testImplicitArguments visibility:public modality:FINAL <> (x:kotlin.Long) returnType:kotlin.Unit VALUE_PARAMETER name:x index:0 type:kotlin.Long EXPRESSION_BODY - CALL 'public final fun unaryMinus (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null + CALL 'public final fun unaryMinus (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: CONST Int type=kotlin.Int value=1 BLOCK_BODY CLASS CLASS name:TestImplicitArguments modality:FINAL visibility:public superTypes:[kotlin.Any] @@ -83,10 +83,10 @@ FILE fqName: fileName:/primitivesImplicitConversions.kt CONSTRUCTOR visibility:public <> (x:kotlin.Long) returnType:.TestImplicitArguments [primary] VALUE_PARAMETER name:x index:0 type:kotlin.Long EXPRESSION_BODY - CALL 'public final fun unaryMinus (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null + CALL 'public final fun unaryMinus (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: CONST Int type=kotlin.Int value=1 BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:TestImplicitArguments modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Long visibility:private [final] @@ -101,7 +101,7 @@ FILE fqName: fileName:/primitivesImplicitConversions.kt receiver: GET_VAR ': .TestImplicitArguments declared in .TestImplicitArguments.' type=.TestImplicitArguments 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/expressions/propertyReferences.fir.ir.txt b/compiler/testData/ir/irText/expressions/propertyReferences.fir.ir.txt index 03377753661..ffe710879c7 100644 --- a/compiler/testData/ir/irText/expressions/propertyReferences.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/propertyReferences.fir.ir.txt @@ -3,14 +3,14 @@ FILE fqName: fileName:/propertyReferences.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Delegate CONSTRUCTOR visibility:private <> () returnType:.Delegate [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:Delegate modality:FINAL visibility:public superTypes:[kotlin.Any]' FUN name:getValue visibility:public modality:FINAL <> ($this:.Delegate, thisRef:kotlin.Any?, kProp:kotlin.Any) returnType:kotlin.Int [operator] $this: VALUE_PARAMETER name: type:.Delegate VALUE_PARAMETER name:thisRef index:0 type:kotlin.Any? VALUE_PARAMETER name:kProp index:1 type:kotlin.Any BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun getValue (thisRef: kotlin.Any?, kProp: kotlin.Any): kotlin.Int [operator] declared in .Delegate' + RETURN type=kotlin.Nothing from='public final fun getValue (thisRef: kotlin.Any?, kProp: kotlin.Any): kotlin.Int declared in .Delegate' CONST Int type=kotlin.Int value=1 FUN name:setValue visibility:public modality:FINAL <> ($this:.Delegate, thisRef:kotlin.Any?, kProp:kotlin.Any, value:kotlin.Int) returnType:kotlin.Unit [operator] $this: VALUE_PARAMETER name: type:.Delegate @@ -20,7 +20,7 @@ FILE fqName: fileName:/propertyReferences.kt 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -35,7 +35,7 @@ FILE fqName: fileName:/propertyReferences.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.C CONSTRUCTOR visibility:public <> () returnType:.C [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C modality:OPEN visibility:public superTypes:[kotlin.Any]' PROPERTY name:varWithPrivateSet visibility:public modality:FINAL [var] FIELD PROPERTY_BACKING_FIELD name:varWithPrivateSet type:kotlin.Int visibility:private @@ -77,7 +77,7 @@ FILE fqName: fileName:/propertyReferences.kt value: GET_VAR ': kotlin.Int declared in .C.' type=kotlin.Int 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -100,7 +100,7 @@ FILE fqName: fileName:/propertyReferences.kt PROPERTY name:test_valWithBackingField visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:test_valWithBackingField type:kotlin.reflect.KProperty0 visibility:private [final,static] EXPRESSION_BODY - PROPERTY_REFERENCE 'public final valWithBackingField: kotlin.Int [val]' field=null getter='public final fun (): kotlin.Int declared in ' setter=null type=kotlin.reflect.KProperty0 origin=null + PROPERTY_REFERENCE 'public final valWithBackingField: kotlin.Int' field=null getter='public final fun (): kotlin.Int declared in ' setter=null type=kotlin.reflect.KProperty0 origin=null FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:kotlin.reflect.KProperty0 correspondingProperty: PROPERTY name:test_valWithBackingField visibility:public modality:FINAL [val] BLOCK_BODY @@ -124,7 +124,7 @@ FILE fqName: fileName:/propertyReferences.kt PROPERTY name:test_varWithBackingField visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:test_varWithBackingField type:kotlin.reflect.KMutableProperty0 visibility:private [final,static] EXPRESSION_BODY - PROPERTY_REFERENCE 'public final varWithBackingField: kotlin.Int [var]' field=null getter='public final fun (): kotlin.Int declared in ' setter='public final fun (: kotlin.Int): kotlin.Unit declared in ' type=kotlin.reflect.KMutableProperty0 origin=null + PROPERTY_REFERENCE 'public final varWithBackingField: kotlin.Int' field=null getter='public final fun (): kotlin.Int declared in ' setter='public final fun (: kotlin.Int): kotlin.Unit declared in ' type=kotlin.reflect.KMutableProperty0 origin=null FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:kotlin.reflect.KMutableProperty0 correspondingProperty: PROPERTY name:test_varWithBackingField visibility:public modality:FINAL [val] BLOCK_BODY @@ -148,7 +148,7 @@ FILE fqName: fileName:/propertyReferences.kt PROPERTY name:test_varWithBackingFieldAndAccessors visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:test_varWithBackingFieldAndAccessors type:kotlin.reflect.KMutableProperty0 visibility:private [final,static] EXPRESSION_BODY - PROPERTY_REFERENCE 'public final varWithBackingFieldAndAccessors: kotlin.Int [var]' field=null getter='public final fun (): kotlin.Int declared in ' setter='public final fun (value: kotlin.Int): kotlin.Unit declared in ' type=kotlin.reflect.KMutableProperty0 origin=null + PROPERTY_REFERENCE 'public final varWithBackingFieldAndAccessors: kotlin.Int' field=null getter='public final fun (): kotlin.Int declared in ' setter='public final fun (value: kotlin.Int): kotlin.Unit declared in ' type=kotlin.reflect.KMutableProperty0 origin=null FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:kotlin.reflect.KMutableProperty0 correspondingProperty: PROPERTY name:test_varWithBackingFieldAndAccessors visibility:public modality:FINAL [val] BLOCK_BODY @@ -163,7 +163,7 @@ FILE fqName: fileName:/propertyReferences.kt PROPERTY name:test_valWithAccessors visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:test_valWithAccessors type:kotlin.reflect.KProperty0 visibility:private [final,static] EXPRESSION_BODY - PROPERTY_REFERENCE 'public final valWithAccessors: kotlin.Int [val]' field=null getter='public final fun (): kotlin.Int declared in ' setter=null type=kotlin.reflect.KProperty0 origin=null + PROPERTY_REFERENCE 'public final valWithAccessors: kotlin.Int' field=null getter='public final fun (): kotlin.Int declared in ' setter=null type=kotlin.reflect.KProperty0 origin=null FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:kotlin.reflect.KProperty0 correspondingProperty: PROPERTY name:test_valWithAccessors visibility:public modality:FINAL [val] BLOCK_BODY @@ -182,7 +182,7 @@ FILE fqName: fileName:/propertyReferences.kt PROPERTY name:test_varWithAccessors visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:test_varWithAccessors type:kotlin.reflect.KMutableProperty0 visibility:private [final,static] EXPRESSION_BODY - PROPERTY_REFERENCE 'public final varWithAccessors: kotlin.Int [var]' field=null getter='public final fun (): kotlin.Int declared in ' setter='public final fun (value: kotlin.Int): kotlin.Unit declared in ' type=kotlin.reflect.KMutableProperty0 origin=null + PROPERTY_REFERENCE 'public final varWithAccessors: kotlin.Int' field=null getter='public final fun (): kotlin.Int declared in ' setter='public final fun (value: kotlin.Int): kotlin.Unit declared in ' type=kotlin.reflect.KMutableProperty0 origin=null FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:kotlin.reflect.KMutableProperty0 correspondingProperty: PROPERTY name:test_varWithAccessors visibility:public modality:FINAL [val] BLOCK_BODY @@ -196,14 +196,14 @@ FILE fqName: fileName:/propertyReferences.kt correspondingProperty: PROPERTY name:delegatedVal visibility:public modality:FINAL [delegated,val] BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun (): kotlin.Int declared in ' - CALL 'public final fun getValue (thisRef: kotlin.Any?, kProp: kotlin.Any): kotlin.Int [operator] declared in .Delegate' type=kotlin.Int origin=null + CALL 'public final fun getValue (thisRef: kotlin.Any?, kProp: kotlin.Any): kotlin.Int declared in .Delegate' type=kotlin.Int origin=null $this: GET_FIELD 'FIELD PROPERTY_DELEGATE name:delegatedVal$delegate type:.Delegate visibility:private [final,static]' type=.Delegate origin=null thisRef: CONST Null type=kotlin.Nothing? value=null - kProp: PROPERTY_REFERENCE 'public final delegatedVal: kotlin.Int [delegated,val]' field=null getter='public final fun (): kotlin.Int declared in ' setter=null type=kotlin.reflect.KProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE + kProp: PROPERTY_REFERENCE 'public final delegatedVal: kotlin.Int' field=null getter='public final fun (): kotlin.Int declared in ' setter=null type=kotlin.reflect.KProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE PROPERTY name:test_delegatedVal visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:test_delegatedVal type:kotlin.reflect.KProperty0 visibility:private [final,static] EXPRESSION_BODY - PROPERTY_REFERENCE 'public final delegatedVal: kotlin.Int [delegated,val]' field=null getter='public final fun (): kotlin.Int declared in ' setter=null type=kotlin.reflect.KProperty0 origin=null + PROPERTY_REFERENCE 'public final delegatedVal: kotlin.Int' field=null getter='public final fun (): kotlin.Int declared in ' setter=null type=kotlin.reflect.KProperty0 origin=null FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:kotlin.reflect.KProperty0 correspondingProperty: PROPERTY name:test_delegatedVal visibility:public modality:FINAL [val] BLOCK_BODY @@ -217,23 +217,23 @@ FILE fqName: fileName:/propertyReferences.kt correspondingProperty: PROPERTY name:delegatedVar visibility:public modality:FINAL [delegated,var] BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun (): kotlin.Int declared in ' - CALL 'public final fun getValue (thisRef: kotlin.Any?, kProp: kotlin.Any): kotlin.Int [operator] declared in .Delegate' type=kotlin.Int origin=null + CALL 'public final fun getValue (thisRef: kotlin.Any?, kProp: kotlin.Any): kotlin.Int declared in .Delegate' type=kotlin.Int origin=null $this: GET_FIELD 'FIELD PROPERTY_DELEGATE name:delegatedVar$delegate type:.Delegate visibility:private [final,static]' type=.Delegate origin=null thisRef: CONST Null type=kotlin.Nothing? value=null - kProp: PROPERTY_REFERENCE 'public final delegatedVar: kotlin.Int [delegated,var]' field=null getter='public final fun (): kotlin.Int declared in ' setter='public final fun (: kotlin.Int): kotlin.Unit declared in ' type=kotlin.reflect.KMutableProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE + kProp: PROPERTY_REFERENCE 'public final delegatedVar: kotlin.Int' field=null getter='public final fun (): kotlin.Int declared in ' setter='public final fun (: kotlin.Int): kotlin.Unit declared in ' type=kotlin.reflect.KMutableProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> (:kotlin.Int) returnType:kotlin.Unit correspondingProperty: PROPERTY name:delegatedVar visibility:public modality:FINAL [delegated,var] VALUE_PARAMETER name: index:0 type:kotlin.Int BLOCK_BODY - CALL 'public final fun setValue (thisRef: kotlin.Any?, kProp: kotlin.Any, value: kotlin.Int): kotlin.Unit [operator] declared in .Delegate' type=kotlin.Unit origin=null + CALL 'public final fun setValue (thisRef: kotlin.Any?, kProp: kotlin.Any, value: kotlin.Int): kotlin.Unit declared in .Delegate' type=kotlin.Unit origin=null $this: GET_FIELD 'FIELD PROPERTY_DELEGATE name:delegatedVar$delegate type:.Delegate visibility:private [final,static]' type=.Delegate origin=null thisRef: CONST Null type=kotlin.Nothing? value=null - kProp: PROPERTY_REFERENCE 'public final delegatedVar: kotlin.Int [delegated,var]' field=null getter='public final fun (): kotlin.Int declared in ' setter='public final fun (: kotlin.Int): kotlin.Unit declared in ' type=kotlin.reflect.KMutableProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE + kProp: PROPERTY_REFERENCE 'public final delegatedVar: kotlin.Int' field=null getter='public final fun (): kotlin.Int declared in ' setter='public final fun (: kotlin.Int): kotlin.Unit declared in ' type=kotlin.reflect.KMutableProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE value: GET_VAR ': kotlin.Int declared in .' type=kotlin.Int origin=null PROPERTY name:test_delegatedVar visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:test_delegatedVar type:kotlin.reflect.KMutableProperty0 visibility:private [final,static] EXPRESSION_BODY - PROPERTY_REFERENCE 'public final delegatedVar: kotlin.Int [delegated,var]' field=null getter='public final fun (): kotlin.Int declared in ' setter='public final fun (: kotlin.Int): kotlin.Unit declared in ' type=kotlin.reflect.KMutableProperty0 origin=null + PROPERTY_REFERENCE 'public final delegatedVar: kotlin.Int' field=null getter='public final fun (): kotlin.Int declared in ' setter='public final fun (: kotlin.Int): kotlin.Unit declared in ' type=kotlin.reflect.KMutableProperty0 origin=null FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:kotlin.reflect.KMutableProperty0 correspondingProperty: PROPERTY name:test_delegatedVar visibility:public modality:FINAL [val] BLOCK_BODY @@ -251,7 +251,7 @@ FILE fqName: fileName:/propertyReferences.kt PROPERTY name:test_constVal visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:test_constVal type:kotlin.reflect.KProperty0 visibility:private [final,static] EXPRESSION_BODY - PROPERTY_REFERENCE 'public final constVal: kotlin.Int [val]' field=null getter='public final fun (): kotlin.Int declared in ' setter=null type=kotlin.reflect.KProperty0 origin=null + PROPERTY_REFERENCE 'public final constVal: kotlin.Int' field=null getter='public final fun (): kotlin.Int declared in ' setter=null type=kotlin.reflect.KProperty0 origin=null FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:kotlin.reflect.KProperty0 correspondingProperty: PROPERTY name:test_constVal visibility:public modality:FINAL [val] BLOCK_BODY @@ -260,7 +260,7 @@ FILE fqName: fileName:/propertyReferences.kt PROPERTY name:test_J_CONST visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:test_J_CONST type:kotlin.reflect.KProperty0 visibility:private [final,static] EXPRESSION_BODY - PROPERTY_REFERENCE 'public final CONST: kotlin.Int [val]' field='FIELD IR_EXTERNAL_JAVA_DECLARATION_STUB name:CONST type:kotlin.Int visibility:public [final,static]' getter=null setter=null type=kotlin.reflect.KProperty0 origin=null + PROPERTY_REFERENCE 'public final CONST: kotlin.Int' field='FIELD IR_EXTERNAL_JAVA_DECLARATION_STUB name:CONST type:kotlin.Int visibility:public [final,static]' getter=null setter=null type=kotlin.reflect.KProperty0 origin=null <1>: FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:kotlin.reflect.KProperty0 correspondingProperty: PROPERTY name:test_J_CONST visibility:public modality:FINAL [val] @@ -270,7 +270,7 @@ FILE fqName: fileName:/propertyReferences.kt PROPERTY name:test_J_nonConst visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:test_J_nonConst type:kotlin.reflect.KMutableProperty0 visibility:private [final,static] EXPRESSION_BODY - PROPERTY_REFERENCE 'public open nonConst: kotlin.Int [var]' field='FIELD IR_EXTERNAL_JAVA_DECLARATION_STUB name:nonConst type:kotlin.Int visibility:public [static]' getter=null setter=null type=kotlin.reflect.KMutableProperty0 origin=null + PROPERTY_REFERENCE 'public open nonConst: kotlin.Int' field='FIELD IR_EXTERNAL_JAVA_DECLARATION_STUB name:nonConst type:kotlin.Int visibility:public [static]' getter=null setter=null type=kotlin.reflect.KMutableProperty0 origin=null <1>: FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:kotlin.reflect.KMutableProperty0 correspondingProperty: PROPERTY name:test_J_nonConst visibility:public modality:FINAL [val] @@ -280,7 +280,7 @@ FILE fqName: fileName:/propertyReferences.kt PROPERTY name:test_varWithPrivateSet visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:test_varWithPrivateSet type:kotlin.reflect.KProperty1<.C, kotlin.Int> visibility:private [final,static] EXPRESSION_BODY - PROPERTY_REFERENCE 'public final varWithPrivateSet: kotlin.Int [var]' field=null getter='public final fun (): kotlin.Int declared in .C' setter=null type=kotlin.reflect.KProperty1<.C, kotlin.Int> origin=null + PROPERTY_REFERENCE 'public final varWithPrivateSet: kotlin.Int' field=null getter='public final fun (): kotlin.Int declared in .C' setter=null type=kotlin.reflect.KProperty1<.C, kotlin.Int> origin=null FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:kotlin.reflect.KProperty1<.C, kotlin.Int> correspondingProperty: PROPERTY name:test_varWithPrivateSet visibility:public modality:FINAL [val] BLOCK_BODY @@ -289,7 +289,7 @@ FILE fqName: fileName:/propertyReferences.kt PROPERTY name:test_varWithProtectedSet visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:test_varWithProtectedSet type:kotlin.reflect.KProperty1<.C, kotlin.Int> visibility:private [final,static] EXPRESSION_BODY - PROPERTY_REFERENCE 'public final varWithProtectedSet: kotlin.Int [var]' field=null getter='public final fun (): kotlin.Int declared in .C' setter=null type=kotlin.reflect.KProperty1<.C, kotlin.Int> origin=null + PROPERTY_REFERENCE 'public final varWithProtectedSet: kotlin.Int' field=null getter='public final fun (): kotlin.Int declared in .C' setter=null type=kotlin.reflect.KProperty1<.C, kotlin.Int> origin=null FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:kotlin.reflect.KProperty1<.C, kotlin.Int> correspondingProperty: PROPERTY name:test_varWithProtectedSet visibility:public modality:FINAL [val] BLOCK_BODY diff --git a/compiler/testData/ir/irText/expressions/propertyReferences.ir.txt b/compiler/testData/ir/irText/expressions/propertyReferences.ir.txt index 88938f937dc..34c3dc9fb65 100644 --- a/compiler/testData/ir/irText/expressions/propertyReferences.ir.txt +++ b/compiler/testData/ir/irText/expressions/propertyReferences.ir.txt @@ -3,14 +3,14 @@ FILE fqName: fileName:/propertyReferences.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Delegate CONSTRUCTOR visibility:private <> () returnType:.Delegate [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:Delegate modality:FINAL visibility:public superTypes:[kotlin.Any]' FUN name:getValue visibility:public modality:FINAL <> ($this:.Delegate, thisRef:kotlin.Any?, kProp:kotlin.Any) returnType:kotlin.Int [operator] $this: VALUE_PARAMETER name: type:.Delegate VALUE_PARAMETER name:thisRef index:0 type:kotlin.Any? VALUE_PARAMETER name:kProp index:1 type:kotlin.Any BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun getValue (thisRef: kotlin.Any?, kProp: kotlin.Any): kotlin.Int [operator] declared in .Delegate' + RETURN type=kotlin.Nothing from='public final fun getValue (thisRef: kotlin.Any?, kProp: kotlin.Any): kotlin.Int declared in .Delegate' CONST Int type=kotlin.Int value=1 FUN name:setValue visibility:public modality:FINAL <> ($this:.Delegate, thisRef:kotlin.Any?, kProp:kotlin.Any, value:kotlin.Int) returnType:kotlin.Unit [operator] $this: VALUE_PARAMETER name: type:.Delegate @@ -20,7 +20,7 @@ FILE fqName: fileName:/propertyReferences.kt 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -35,7 +35,7 @@ FILE fqName: fileName:/propertyReferences.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.C CONSTRUCTOR visibility:public <> () returnType:.C [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C modality:OPEN visibility:public superTypes:[kotlin.Any]' PROPERTY name:varWithPrivateSet visibility:public modality:FINAL [var] FIELD PROPERTY_BACKING_FIELD name:varWithPrivateSet type:kotlin.Int visibility:private @@ -77,7 +77,7 @@ FILE fqName: fileName:/propertyReferences.kt value: GET_VAR ': kotlin.Int declared in .C.' type=kotlin.Int 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -100,7 +100,7 @@ FILE fqName: fileName:/propertyReferences.kt PROPERTY name:test_valWithBackingField visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:test_valWithBackingField type:kotlin.reflect.KProperty0 visibility:private [final,static] EXPRESSION_BODY - PROPERTY_REFERENCE 'public final valWithBackingField: kotlin.Int [val]' field=null getter='public final fun (): kotlin.Int declared in ' setter=null type=kotlin.reflect.KProperty0 origin=null + PROPERTY_REFERENCE 'public final valWithBackingField: kotlin.Int' field=null getter='public final fun (): kotlin.Int declared in ' setter=null type=kotlin.reflect.KProperty0 origin=null FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:kotlin.reflect.KProperty0 correspondingProperty: PROPERTY name:test_valWithBackingField visibility:public modality:FINAL [val] BLOCK_BODY @@ -124,7 +124,7 @@ FILE fqName: fileName:/propertyReferences.kt PROPERTY name:test_varWithBackingField visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:test_varWithBackingField type:kotlin.reflect.KMutableProperty0 visibility:private [final,static] EXPRESSION_BODY - PROPERTY_REFERENCE 'public final varWithBackingField: kotlin.Int [var]' field=null getter='public final fun (): kotlin.Int declared in ' setter='public final fun (: kotlin.Int): kotlin.Unit declared in ' type=kotlin.reflect.KMutableProperty0 origin=null + PROPERTY_REFERENCE 'public final varWithBackingField: kotlin.Int' field=null getter='public final fun (): kotlin.Int declared in ' setter='public final fun (: kotlin.Int): kotlin.Unit declared in ' type=kotlin.reflect.KMutableProperty0 origin=null FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:kotlin.reflect.KMutableProperty0 correspondingProperty: PROPERTY name:test_varWithBackingField visibility:public modality:FINAL [val] BLOCK_BODY @@ -148,7 +148,7 @@ FILE fqName: fileName:/propertyReferences.kt PROPERTY name:test_varWithBackingFieldAndAccessors visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:test_varWithBackingFieldAndAccessors type:kotlin.reflect.KMutableProperty0 visibility:private [final,static] EXPRESSION_BODY - PROPERTY_REFERENCE 'public final varWithBackingFieldAndAccessors: kotlin.Int [var]' field=null getter='public final fun (): kotlin.Int declared in ' setter='public final fun (value: kotlin.Int): kotlin.Unit declared in ' type=kotlin.reflect.KMutableProperty0 origin=null + PROPERTY_REFERENCE 'public final varWithBackingFieldAndAccessors: kotlin.Int' field=null getter='public final fun (): kotlin.Int declared in ' setter='public final fun (value: kotlin.Int): kotlin.Unit declared in ' type=kotlin.reflect.KMutableProperty0 origin=null FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:kotlin.reflect.KMutableProperty0 correspondingProperty: PROPERTY name:test_varWithBackingFieldAndAccessors visibility:public modality:FINAL [val] BLOCK_BODY @@ -163,7 +163,7 @@ FILE fqName: fileName:/propertyReferences.kt PROPERTY name:test_valWithAccessors visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:test_valWithAccessors type:kotlin.reflect.KProperty0 visibility:private [final,static] EXPRESSION_BODY - PROPERTY_REFERENCE 'public final valWithAccessors: kotlin.Int [val]' field=null getter='public final fun (): kotlin.Int declared in ' setter=null type=kotlin.reflect.KProperty0 origin=null + PROPERTY_REFERENCE 'public final valWithAccessors: kotlin.Int' field=null getter='public final fun (): kotlin.Int declared in ' setter=null type=kotlin.reflect.KProperty0 origin=null FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:kotlin.reflect.KProperty0 correspondingProperty: PROPERTY name:test_valWithAccessors visibility:public modality:FINAL [val] BLOCK_BODY @@ -182,7 +182,7 @@ FILE fqName: fileName:/propertyReferences.kt PROPERTY name:test_varWithAccessors visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:test_varWithAccessors type:kotlin.reflect.KMutableProperty0 visibility:private [final,static] EXPRESSION_BODY - PROPERTY_REFERENCE 'public final varWithAccessors: kotlin.Int [var]' field=null getter='public final fun (): kotlin.Int declared in ' setter='public final fun (value: kotlin.Int): kotlin.Unit declared in ' type=kotlin.reflect.KMutableProperty0 origin=null + PROPERTY_REFERENCE 'public final varWithAccessors: kotlin.Int' field=null getter='public final fun (): kotlin.Int declared in ' setter='public final fun (value: kotlin.Int): kotlin.Unit declared in ' type=kotlin.reflect.KMutableProperty0 origin=null FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:kotlin.reflect.KMutableProperty0 correspondingProperty: PROPERTY name:test_varWithAccessors visibility:public modality:FINAL [val] BLOCK_BODY @@ -196,14 +196,14 @@ FILE fqName: fileName:/propertyReferences.kt correspondingProperty: PROPERTY name:delegatedVal visibility:public modality:FINAL [delegated,val] BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun (): kotlin.Int declared in ' - CALL 'public final fun getValue (thisRef: kotlin.Any?, kProp: kotlin.Any): kotlin.Int [operator] declared in .Delegate' type=kotlin.Int origin=null + CALL 'public final fun getValue (thisRef: kotlin.Any?, kProp: kotlin.Any): kotlin.Int declared in .Delegate' type=kotlin.Int origin=null $this: GET_FIELD 'FIELD PROPERTY_DELEGATE name:delegatedVal$delegate type:.Delegate visibility:private [final,static]' type=.Delegate origin=null thisRef: CONST Null type=kotlin.Nothing? value=null - kProp: PROPERTY_REFERENCE 'public final delegatedVal: kotlin.Int [delegated,val]' field=null getter='public final fun (): kotlin.Int declared in ' setter=null type=kotlin.reflect.KProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE + kProp: PROPERTY_REFERENCE 'public final delegatedVal: kotlin.Int' field=null getter='public final fun (): kotlin.Int declared in ' setter=null type=kotlin.reflect.KProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE PROPERTY name:test_delegatedVal visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:test_delegatedVal type:kotlin.reflect.KProperty0 visibility:private [final,static] EXPRESSION_BODY - PROPERTY_REFERENCE 'public final delegatedVal: kotlin.Int [delegated,val]' field=null getter='public final fun (): kotlin.Int declared in ' setter=null type=kotlin.reflect.KProperty0 origin=null + PROPERTY_REFERENCE 'public final delegatedVal: kotlin.Int' field=null getter='public final fun (): kotlin.Int declared in ' setter=null type=kotlin.reflect.KProperty0 origin=null FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:kotlin.reflect.KProperty0 correspondingProperty: PROPERTY name:test_delegatedVal visibility:public modality:FINAL [val] BLOCK_BODY @@ -217,24 +217,24 @@ FILE fqName: fileName:/propertyReferences.kt correspondingProperty: PROPERTY name:delegatedVar visibility:public modality:FINAL [delegated,var] BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun (): kotlin.Int declared in ' - CALL 'public final fun getValue (thisRef: kotlin.Any?, kProp: kotlin.Any): kotlin.Int [operator] declared in .Delegate' type=kotlin.Int origin=null + CALL 'public final fun getValue (thisRef: kotlin.Any?, kProp: kotlin.Any): kotlin.Int declared in .Delegate' type=kotlin.Int origin=null $this: GET_FIELD 'FIELD PROPERTY_DELEGATE name:delegatedVar$delegate type:.Delegate visibility:private [final,static]' type=.Delegate origin=null thisRef: CONST Null type=kotlin.Nothing? value=null - kProp: PROPERTY_REFERENCE 'public final delegatedVar: kotlin.Int [delegated,var]' field=null getter='public final fun (): kotlin.Int declared in ' setter='public final fun (: kotlin.Int): kotlin.Unit declared in ' type=kotlin.reflect.KMutableProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE + kProp: PROPERTY_REFERENCE 'public final delegatedVar: kotlin.Int' field=null getter='public final fun (): kotlin.Int declared in ' setter='public final fun (: kotlin.Int): kotlin.Unit declared in ' type=kotlin.reflect.KMutableProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> (:kotlin.Int) returnType:kotlin.Unit correspondingProperty: PROPERTY name:delegatedVar visibility:public modality:FINAL [delegated,var] VALUE_PARAMETER name: index:0 type:kotlin.Int BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun (: kotlin.Int): kotlin.Unit declared in ' - CALL 'public final fun setValue (thisRef: kotlin.Any?, kProp: kotlin.Any, value: kotlin.Int): kotlin.Unit [operator] declared in .Delegate' type=kotlin.Unit origin=null + CALL 'public final fun setValue (thisRef: kotlin.Any?, kProp: kotlin.Any, value: kotlin.Int): kotlin.Unit declared in .Delegate' type=kotlin.Unit origin=null $this: GET_FIELD 'FIELD PROPERTY_DELEGATE name:delegatedVar$delegate type:.Delegate visibility:private [final,static]' type=.Delegate origin=null thisRef: CONST Null type=kotlin.Nothing? value=null - kProp: PROPERTY_REFERENCE 'public final delegatedVar: kotlin.Int [delegated,var]' field=null getter='public final fun (): kotlin.Int declared in ' setter='public final fun (: kotlin.Int): kotlin.Unit declared in ' type=kotlin.reflect.KMutableProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE + kProp: PROPERTY_REFERENCE 'public final delegatedVar: kotlin.Int' field=null getter='public final fun (): kotlin.Int declared in ' setter='public final fun (: kotlin.Int): kotlin.Unit declared in ' type=kotlin.reflect.KMutableProperty0 origin=PROPERTY_REFERENCE_FOR_DELEGATE value: GET_VAR ': kotlin.Int declared in .' type=kotlin.Int origin=null PROPERTY name:test_delegatedVar visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:test_delegatedVar type:kotlin.reflect.KMutableProperty0 visibility:private [final,static] EXPRESSION_BODY - PROPERTY_REFERENCE 'public final delegatedVar: kotlin.Int [delegated,var]' field=null getter='public final fun (): kotlin.Int declared in ' setter='public final fun (: kotlin.Int): kotlin.Unit declared in ' type=kotlin.reflect.KMutableProperty0 origin=null + PROPERTY_REFERENCE 'public final delegatedVar: kotlin.Int' field=null getter='public final fun (): kotlin.Int declared in ' setter='public final fun (: kotlin.Int): kotlin.Unit declared in ' type=kotlin.reflect.KMutableProperty0 origin=null FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:kotlin.reflect.KMutableProperty0 correspondingProperty: PROPERTY name:test_delegatedVar visibility:public modality:FINAL [val] BLOCK_BODY @@ -252,7 +252,7 @@ FILE fqName: fileName:/propertyReferences.kt PROPERTY name:test_constVal visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:test_constVal type:kotlin.reflect.KProperty0 visibility:private [final,static] EXPRESSION_BODY - PROPERTY_REFERENCE 'public final constVal: kotlin.Int [val]' field=null getter='public final fun (): kotlin.Int declared in ' setter=null type=kotlin.reflect.KProperty0 origin=null + PROPERTY_REFERENCE 'public final constVal: kotlin.Int' field=null getter='public final fun (): kotlin.Int declared in ' setter=null type=kotlin.reflect.KProperty0 origin=null FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:kotlin.reflect.KProperty0 correspondingProperty: PROPERTY name:test_constVal visibility:public modality:FINAL [val] BLOCK_BODY @@ -261,7 +261,7 @@ FILE fqName: fileName:/propertyReferences.kt PROPERTY name:test_J_CONST visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:test_J_CONST type:kotlin.reflect.KProperty0 visibility:private [final,static] EXPRESSION_BODY - PROPERTY_REFERENCE 'public final CONST: kotlin.Int [const,val]' field='FIELD IR_EXTERNAL_JAVA_DECLARATION_STUB name:CONST type:kotlin.Int visibility:public [final,static]' getter=null setter=null type=kotlin.reflect.KProperty0 origin=null + PROPERTY_REFERENCE 'public final CONST: kotlin.Int' field='FIELD IR_EXTERNAL_JAVA_DECLARATION_STUB name:CONST type:kotlin.Int visibility:public [final,static]' getter=null setter=null type=kotlin.reflect.KProperty0 origin=null FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:kotlin.reflect.KProperty0 correspondingProperty: PROPERTY name:test_J_CONST visibility:public modality:FINAL [val] BLOCK_BODY @@ -270,7 +270,7 @@ FILE fqName: fileName:/propertyReferences.kt PROPERTY name:test_J_nonConst visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:test_J_nonConst type:kotlin.reflect.KMutableProperty0 visibility:private [final,static] EXPRESSION_BODY - PROPERTY_REFERENCE 'public final nonConst: kotlin.Int [var]' field='FIELD IR_EXTERNAL_JAVA_DECLARATION_STUB name:nonConst type:kotlin.Int visibility:public [static]' getter=null setter=null type=kotlin.reflect.KMutableProperty0 origin=null + PROPERTY_REFERENCE 'public final nonConst: kotlin.Int' field='FIELD IR_EXTERNAL_JAVA_DECLARATION_STUB name:nonConst type:kotlin.Int visibility:public [static]' getter=null setter=null type=kotlin.reflect.KMutableProperty0 origin=null FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:kotlin.reflect.KMutableProperty0 correspondingProperty: PROPERTY name:test_J_nonConst visibility:public modality:FINAL [val] BLOCK_BODY @@ -279,7 +279,7 @@ FILE fqName: fileName:/propertyReferences.kt PROPERTY name:test_varWithPrivateSet visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:test_varWithPrivateSet type:kotlin.reflect.KProperty1<.C, kotlin.Int> visibility:private [final,static] EXPRESSION_BODY - PROPERTY_REFERENCE 'public final varWithPrivateSet: kotlin.Int [var]' field=null getter='public final fun (): kotlin.Int declared in .C' setter=null type=kotlin.reflect.KProperty1<.C, kotlin.Int> origin=null + PROPERTY_REFERENCE 'public final varWithPrivateSet: kotlin.Int' field=null getter='public final fun (): kotlin.Int declared in .C' setter=null type=kotlin.reflect.KProperty1<.C, kotlin.Int> origin=null FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:kotlin.reflect.KProperty1<.C, kotlin.Int> correspondingProperty: PROPERTY name:test_varWithPrivateSet visibility:public modality:FINAL [val] BLOCK_BODY @@ -288,7 +288,7 @@ FILE fqName: fileName:/propertyReferences.kt PROPERTY name:test_varWithProtectedSet visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:test_varWithProtectedSet type:kotlin.reflect.KProperty1<.C, kotlin.Int> visibility:private [final,static] EXPRESSION_BODY - PROPERTY_REFERENCE 'public final varWithProtectedSet: kotlin.Int [var]' field=null getter='public final fun (): kotlin.Int declared in .C' setter=null type=kotlin.reflect.KProperty1<.C, kotlin.Int> origin=null + PROPERTY_REFERENCE 'public final varWithProtectedSet: kotlin.Int' field=null getter='public final fun (): kotlin.Int declared in .C' setter=null type=kotlin.reflect.KProperty1<.C, kotlin.Int> origin=null FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:kotlin.reflect.KProperty1<.C, kotlin.Int> correspondingProperty: PROPERTY name:test_varWithProtectedSet visibility:public modality:FINAL [val] BLOCK_BODY diff --git a/compiler/testData/ir/irText/expressions/protectedJavaFieldRef.fir.ir.txt b/compiler/testData/ir/irText/expressions/protectedJavaFieldRef.fir.ir.txt index 140d91d79c2..675647941ba 100644 --- a/compiler/testData/ir/irText/expressions/protectedJavaFieldRef.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/protectedJavaFieldRef.fir.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/protectedJavaFieldRef.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Derived CONSTRUCTOR visibility:public <> () returnType:.Derived [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in p.Base' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in p.Base' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Derived modality:FINAL visibility:public superTypes:[p.Base]' ANONYMOUS_INITIALIZER isStatic=false BLOCK_BODY @@ -19,7 +19,7 @@ FILE fqName: fileName:/protectedJavaFieldRef.kt PROPERTY name:ref visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:ref type:kotlin.reflect.KMutableProperty0<@[FlexibleNullability] kotlin.String?> visibility:private [final] EXPRESSION_BODY - PROPERTY_REFERENCE 'protected/*protected and package*/ open j: @[FlexibleNullability] kotlin.String? [var]' field='FIELD IR_EXTERNAL_JAVA_DECLARATION_STUB name:j type:@[FlexibleNullability] kotlin.String? visibility:protected/*protected and package*/' getter='protected/*protected and package*/ open fun (): @[FlexibleNullability] kotlin.String? declared in p.Base' setter='protected/*protected and package*/ open fun (: @[FlexibleNullability] kotlin.String?): kotlin.Unit declared in p.Base' type=kotlin.reflect.KMutableProperty0<@[FlexibleNullability] kotlin.String?> origin=null + PROPERTY_REFERENCE 'protected/*protected and package*/ open j: @[FlexibleNullability] kotlin.String?' field='FIELD IR_EXTERNAL_JAVA_DECLARATION_STUB name:j type:@[FlexibleNullability] kotlin.String? visibility:protected/*protected and package*/' getter='protected/*protected and package*/ open fun (): @[FlexibleNullability] kotlin.String? declared in p.Base' setter='protected/*protected and package*/ open fun (: @[FlexibleNullability] kotlin.String?): kotlin.Unit declared in p.Base' type=kotlin.reflect.KMutableProperty0<@[FlexibleNullability] kotlin.String?> origin=null <1>: $this: GET_VAR ': .Derived declared in .Derived' type=.Derived origin=null FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:.Derived) returnType:kotlin.reflect.KMutableProperty0<@[FlexibleNullability] kotlin.String?> @@ -31,14 +31,14 @@ FILE fqName: fileName:/protectedJavaFieldRef.kt receiver: GET_VAR ': .Derived declared in .Derived.' type=.Derived 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 [fake_override,operator] declared in p.Base + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in p.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 p.Base + public open fun hashCode (): kotlin.Int declared in p.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 p.Base + public open fun toString (): kotlin.String declared in p.Base $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/expressions/protectedJavaFieldRef.ir.txt b/compiler/testData/ir/irText/expressions/protectedJavaFieldRef.ir.txt index 6d9794b3ce0..fd7b8965e21 100644 --- a/compiler/testData/ir/irText/expressions/protectedJavaFieldRef.ir.txt +++ b/compiler/testData/ir/irText/expressions/protectedJavaFieldRef.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/protectedJavaFieldRef.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Derived CONSTRUCTOR visibility:public <> () returnType:.Derived [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in p.Base' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in p.Base' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Derived modality:FINAL visibility:public superTypes:[p.Base]' ANONYMOUS_INITIALIZER isStatic=false BLOCK_BODY @@ -19,7 +19,7 @@ FILE fqName: fileName:/protectedJavaFieldRef.kt PROPERTY name:ref visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:ref type:kotlin.reflect.KMutableProperty0<@[FlexibleNullability] kotlin.String?> visibility:private [final] EXPRESSION_BODY - PROPERTY_REFERENCE 'protected/*protected and package*/ final j [fake_override,var]' field='FIELD IR_EXTERNAL_JAVA_DECLARATION_STUB name:j type:@[FlexibleNullability] kotlin.String? visibility:protected/*protected and package*/' getter=null setter=null type=kotlin.reflect.KMutableProperty0<@[FlexibleNullability] kotlin.String?> origin=null + PROPERTY_REFERENCE 'protected/*protected and package*/ final j' field='FIELD IR_EXTERNAL_JAVA_DECLARATION_STUB name:j type:@[FlexibleNullability] kotlin.String? visibility:protected/*protected and package*/' getter=null setter=null type=kotlin.reflect.KMutableProperty0<@[FlexibleNullability] kotlin.String?> origin=null $this: GET_VAR ': .Derived declared in .Derived' type=.Derived origin=null FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:.Derived) returnType:kotlin.reflect.KMutableProperty0<@[FlexibleNullability] kotlin.String?> correspondingProperty: PROPERTY name:ref visibility:public modality:FINAL [val] @@ -30,17 +30,17 @@ FILE fqName: fileName:/protectedJavaFieldRef.kt receiver: GET_VAR ': .Derived declared in .Derived.' type=.Derived 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 [fake_override,operator] declared in p.Base + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in p.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 p.Base + public open fun hashCode (): kotlin.Int declared in p.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 p.Base + public open fun toString (): kotlin.String declared in p.Base $this: VALUE_PARAMETER name: type:kotlin.Any PROPERTY FAKE_OVERRIDE name:j visibility:protected/*protected and package*/ modality:FINAL [fake_override,var] overridden: - protected/*protected and package*/ final j: @[FlexibleNullability] kotlin.String? [var] + protected/*protected and package*/ final j: @[FlexibleNullability] kotlin.String? diff --git a/compiler/testData/ir/irText/expressions/references.ir.txt b/compiler/testData/ir/irText/expressions/references.ir.txt index adfc2aada4c..093b9a8963c 100644 --- a/compiler/testData/ir/irText/expressions/references.ir.txt +++ b/compiler/testData/ir/irText/expressions/references.ir.txt @@ -37,7 +37,7 @@ FILE fqName: fileName:/references.kt VAR name:x type:kotlin.String [val] CONST String type=kotlin.String value="OK" RETURN type=kotlin.Nothing from='public final fun test3 (): kotlin.String declared in ' - GET_VAR 'val x: kotlin.String [val] declared in .test3' type=kotlin.String origin=null + GET_VAR 'val x: kotlin.String declared in .test3' type=kotlin.String origin=null FUN name:test4 visibility:public modality:FINAL <> () returnType:kotlin.String BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test4 (): kotlin.String declared in ' diff --git a/compiler/testData/ir/irText/expressions/reflectionLiterals.ir.txt b/compiler/testData/ir/irText/expressions/reflectionLiterals.ir.txt index 193abd412cb..e8059d40a6a 100644 --- a/compiler/testData/ir/irText/expressions/reflectionLiterals.ir.txt +++ b/compiler/testData/ir/irText/expressions/reflectionLiterals.ir.txt @@ -3,14 +3,14 @@ FILE fqName: fileName:/reflectionLiterals.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.A CONSTRUCTOR visibility:public <> () returnType:.A [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:A modality:FINAL visibility:public superTypes:[kotlin.Any]' FUN name:foo visibility:public modality:FINAL <> ($this:.A) returnType:kotlin.Unit $this: VALUE_PARAMETER name: type:.A 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -63,7 +63,7 @@ FILE fqName: fileName:/reflectionLiterals.kt PROPERTY name:test4 visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:test4 type:kotlin.reflect.KFunction0<.A> visibility:private [final,static] EXPRESSION_BODY - FUNCTION_REFERENCE 'public constructor () [primary] declared in .A' type=kotlin.reflect.KFunction0<.A> origin=null reflectionTarget= + FUNCTION_REFERENCE 'public constructor () declared in .A' type=kotlin.reflect.KFunction0<.A> origin=null reflectionTarget= FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:kotlin.reflect.KFunction0<.A> correspondingProperty: PROPERTY name:test4 visibility:public modality:FINAL [val] BLOCK_BODY @@ -73,7 +73,7 @@ FILE fqName: fileName:/reflectionLiterals.kt FIELD PROPERTY_BACKING_FIELD name:test5 type:kotlin.reflect.KFunction0 visibility:private [final,static] EXPRESSION_BODY FUNCTION_REFERENCE 'public final fun foo (): kotlin.Unit declared in .A' type=kotlin.reflect.KFunction0 origin=null reflectionTarget= - $this: CONSTRUCTOR_CALL 'public constructor () [primary] declared in .A' type=.A origin=null + $this: CONSTRUCTOR_CALL 'public constructor () declared in .A' type=.A origin=null FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:kotlin.reflect.KFunction0 correspondingProperty: PROPERTY name:test5 visibility:public modality:FINAL [val] BLOCK_BODY diff --git a/compiler/testData/ir/irText/expressions/safeAssignment.fir.ir.txt b/compiler/testData/ir/irText/expressions/safeAssignment.fir.ir.txt index 4491357a6c7..4165ff4065a 100644 --- a/compiler/testData/ir/irText/expressions/safeAssignment.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/safeAssignment.fir.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/safeAssignment.kt CONSTRUCTOR visibility:public <> (x:kotlin.Int) returnType:.C [primary] VALUE_PARAMETER name:x index:0 type:kotlin.Int BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:x visibility:public modality:FINAL [var] FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private @@ -27,7 +27,7 @@ FILE fqName: fileName:/safeAssignment.kt value: GET_VAR ': kotlin.Int declared in .C.' type=kotlin.Int 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -48,11 +48,11 @@ FILE fqName: fileName:/safeAssignment.kt WHEN type=kotlin.Unit? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_0: .C? [val] declared in .test' type=.C? origin=null + arg0: GET_VAR 'val tmp_0: .C? declared in .test' type=.C? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in .C' type=kotlin.Unit origin=EQ - $this: GET_VAR 'val tmp_0: .C? [val] declared in .test' type=.C? origin=null + $this: GET_VAR 'val tmp_0: .C? declared in .test' type=.C? origin=null : CONST Int type=kotlin.Int value=42 diff --git a/compiler/testData/ir/irText/expressions/safeAssignment.ir.txt b/compiler/testData/ir/irText/expressions/safeAssignment.ir.txt index 2382eca9abf..862edbe48ab 100644 --- a/compiler/testData/ir/irText/expressions/safeAssignment.ir.txt +++ b/compiler/testData/ir/irText/expressions/safeAssignment.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/safeAssignment.kt CONSTRUCTOR visibility:public <> (x:kotlin.Int) returnType:.C [primary] VALUE_PARAMETER name:x index:0 type:kotlin.Int BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:x visibility:public modality:FINAL [var] FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private @@ -27,7 +27,7 @@ FILE fqName: fileName:/safeAssignment.kt value: GET_VAR ': kotlin.Int declared in .C.' type=kotlin.Int 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -47,12 +47,12 @@ FILE fqName: fileName:/safeAssignment.kt WHEN type=kotlin.Unit origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_0: .C? [val] declared in .test' type=.C? origin=null + arg0: GET_VAR 'val tmp_0: .C? declared in .test' type=.C? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in .C' type=kotlin.Unit origin=EQ - $this: GET_VAR 'val tmp_0: .C? [val] declared in .test' type=.C? origin=null + $this: GET_VAR 'val tmp_0: .C? declared in .test' type=.C? origin=null : CONST Int type=kotlin.Int value=42 diff --git a/compiler/testData/ir/irText/expressions/safeCallWithIncrementDecrement.fir.ir.txt b/compiler/testData/ir/irText/expressions/safeCallWithIncrementDecrement.fir.ir.txt index 8290d8300a5..d76c7ba9b1e 100644 --- a/compiler/testData/ir/irText/expressions/safeCallWithIncrementDecrement.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/safeCallWithIncrementDecrement.fir.ir.txt @@ -3,11 +3,11 @@ FILE fqName:test fileName:/safeCallWithIncrementDecrement.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:test.C CONSTRUCTOR visibility:public <> () returnType:test.C [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -33,25 +33,25 @@ FILE fqName:test fileName:/safeCallWithIncrementDecrement.kt FUN name:inc visibility:public modality:FINAL <> ($receiver:kotlin.Int?) returnType:kotlin.Int? [operator] $receiver: VALUE_PARAMETER name: type:kotlin.Int? BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun inc (): kotlin.Int? [operator] declared in test' + RETURN type=kotlin.Nothing from='public final fun inc (): kotlin.Int? declared in test' BLOCK type=kotlin.Int? origin=SAFE_CALL VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:kotlin.Int? [val] GET_VAR ': kotlin.Int? declared in test.inc' type=kotlin.Int? origin=null WHEN type=kotlin.Int? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_0: kotlin.Int? [val] declared in test.inc' type=kotlin.Int? origin=null + arg0: GET_VAR 'val tmp_0: kotlin.Int? declared in test.inc' type=kotlin.Int? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: CALL 'public final fun inc (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp_0: kotlin.Int? [val] declared in test.inc' type=kotlin.Int? origin=null + then: CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_0: kotlin.Int? declared in test.inc' type=kotlin.Int? origin=null FUN name:get visibility:public modality:FINAL <> ($receiver:kotlin.Int?, index:kotlin.Int) returnType:kotlin.Int [operator] $receiver: VALUE_PARAMETER name: type:kotlin.Int? VALUE_PARAMETER name:index index:0 type:kotlin.Int BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun get (index: kotlin.Int): kotlin.Int [operator] declared in test' + RETURN type=kotlin.Nothing from='public final fun get (index: kotlin.Int): kotlin.Int declared in test' CONST Int type=kotlin.Int value=42 FUN name:set visibility:public modality:FINAL <> ($receiver:kotlin.Int?, index:kotlin.Int, value:kotlin.Int) returnType:kotlin.Unit [operator] $receiver: VALUE_PARAMETER name: type:kotlin.Int? @@ -68,7 +68,7 @@ FILE fqName:test fileName:/safeCallWithIncrementDecrement.kt WHEN type=kotlin.Int? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_1: test.C? [val] declared in test.testProperty' type=test.C? origin=null + arg0: GET_VAR 'val tmp_1: test.C? declared in test.testProperty' type=test.C? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH @@ -76,12 +76,12 @@ FILE fqName:test fileName:/safeCallWithIncrementDecrement.kt then: BLOCK type=kotlin.Int origin=null VAR IR_TEMPORARY_VARIABLE name:tmp_2 type:kotlin.Int [val] CALL 'public final fun (): kotlin.Int declared in test' type=kotlin.Int origin=GET_PROPERTY - $receiver: GET_VAR 'val tmp_1: test.C? [val] declared in test.testProperty' type=test.C? origin=null + $receiver: GET_VAR 'val tmp_1: test.C? declared in test.testProperty' type=test.C? origin=null CALL 'public final fun (value: kotlin.Int): kotlin.Unit declared in test' type=kotlin.Unit origin=EQ - $receiver: GET_VAR 'val tmp_1: test.C? [val] declared in test.testProperty' type=test.C? origin=null - value: CALL 'public final fun inc (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp_2: kotlin.Int [val] declared in test.testProperty' type=kotlin.Int origin=null - GET_VAR 'val tmp_2: kotlin.Int [val] declared in test.testProperty' type=kotlin.Int origin=null + $receiver: GET_VAR 'val tmp_1: test.C? declared in test.testProperty' type=test.C? origin=null + value: CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_2: kotlin.Int declared in test.testProperty' type=kotlin.Int origin=null + GET_VAR 'val tmp_2: kotlin.Int declared in test.testProperty' type=kotlin.Int origin=null FUN name:testArrayAccess visibility:public modality:FINAL <> (nc:test.C?) returnType:kotlin.Unit VALUE_PARAMETER name:nc index:0 type:test.C? BLOCK_BODY @@ -92,7 +92,7 @@ FILE fqName:test fileName:/safeCallWithIncrementDecrement.kt WHEN type=kotlin.Int? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_3: test.C? [val] declared in test.testArrayAccess' type=test.C? origin=null + arg0: GET_VAR 'val tmp_3: test.C? declared in test.testArrayAccess' type=test.C? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH @@ -100,16 +100,16 @@ FILE fqName:test fileName:/safeCallWithIncrementDecrement.kt then: BLOCK type=kotlin.Int origin=null VAR IR_TEMPORARY_VARIABLE name:tmp_4 type:kotlin.Int [val] CALL 'public final fun (): kotlin.Int declared in test' type=kotlin.Int origin=GET_PROPERTY - $receiver: GET_VAR 'val tmp_3: test.C? [val] declared in test.testArrayAccess' type=test.C? origin=null + $receiver: GET_VAR 'val tmp_3: test.C? declared in test.testArrayAccess' type=test.C? origin=null VAR IR_TEMPORARY_VARIABLE name:tmp_5 type:kotlin.Int [val] CONST Int type=kotlin.Int value=0 VAR IR_TEMPORARY_VARIABLE name:tmp_6 type:kotlin.Int [val] - CALL 'public final fun get (index: kotlin.Int): kotlin.Int [operator] declared in test' type=kotlin.Int origin=null - $receiver: GET_VAR 'val tmp_4: kotlin.Int [val] declared in test.testArrayAccess' type=kotlin.Int origin=null - index: GET_VAR 'val tmp_5: kotlin.Int [val] declared in test.testArrayAccess' type=kotlin.Int origin=null - CALL 'public final fun set (index: kotlin.Int, value: kotlin.Int): kotlin.Unit [operator] declared in test' type=kotlin.Unit origin=null - $receiver: GET_VAR 'val tmp_4: kotlin.Int [val] declared in test.testArrayAccess' type=kotlin.Int origin=null - index: GET_VAR 'val tmp_5: kotlin.Int [val] declared in test.testArrayAccess' type=kotlin.Int origin=null - value: CALL 'public final fun inc (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp_6: kotlin.Int [val] declared in test.testArrayAccess' type=kotlin.Int origin=null - GET_VAR 'val tmp_6: kotlin.Int [val] declared in test.testArrayAccess' type=kotlin.Int origin=null + CALL 'public final fun get (index: kotlin.Int): kotlin.Int declared in test' type=kotlin.Int origin=null + $receiver: GET_VAR 'val tmp_4: kotlin.Int declared in test.testArrayAccess' type=kotlin.Int origin=null + index: GET_VAR 'val tmp_5: kotlin.Int declared in test.testArrayAccess' type=kotlin.Int origin=null + CALL 'public final fun set (index: kotlin.Int, value: kotlin.Int): kotlin.Unit declared in test' type=kotlin.Unit origin=null + $receiver: GET_VAR 'val tmp_4: kotlin.Int declared in test.testArrayAccess' type=kotlin.Int origin=null + index: GET_VAR 'val tmp_5: kotlin.Int declared in test.testArrayAccess' type=kotlin.Int origin=null + value: CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_6: kotlin.Int declared in test.testArrayAccess' type=kotlin.Int origin=null + GET_VAR 'val tmp_6: kotlin.Int declared in test.testArrayAccess' type=kotlin.Int origin=null diff --git a/compiler/testData/ir/irText/expressions/safeCallWithIncrementDecrement.ir.txt b/compiler/testData/ir/irText/expressions/safeCallWithIncrementDecrement.ir.txt index 7ae8a9d83df..7049ea2e275 100644 --- a/compiler/testData/ir/irText/expressions/safeCallWithIncrementDecrement.ir.txt +++ b/compiler/testData/ir/irText/expressions/safeCallWithIncrementDecrement.ir.txt @@ -3,11 +3,11 @@ FILE fqName:test fileName:/safeCallWithIncrementDecrement.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:test.C CONSTRUCTOR visibility:public <> () returnType:test.C [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -33,25 +33,25 @@ FILE fqName:test fileName:/safeCallWithIncrementDecrement.kt FUN name:inc visibility:public modality:FINAL <> ($receiver:kotlin.Int?) returnType:kotlin.Int? [operator] $receiver: VALUE_PARAMETER name: type:kotlin.Int? BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun inc (): kotlin.Int? [operator] declared in test' + RETURN type=kotlin.Nothing from='public final fun inc (): kotlin.Int? declared in test' BLOCK type=kotlin.Int? origin=SAFE_CALL VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:kotlin.Int? [val] GET_VAR ': kotlin.Int? declared in test.inc' type=kotlin.Int? origin=null WHEN type=kotlin.Int? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_0: kotlin.Int? [val] declared in test.inc' type=kotlin.Int? origin=null + arg0: GET_VAR 'val tmp_0: kotlin.Int? declared in test.inc' type=kotlin.Int? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: CALL 'public final fun inc (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp_0: kotlin.Int? [val] declared in test.inc' type=kotlin.Int? origin=null + then: CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_0: kotlin.Int? declared in test.inc' type=kotlin.Int? origin=null FUN name:get visibility:public modality:FINAL <> ($receiver:kotlin.Int?, index:kotlin.Int) returnType:kotlin.Int [operator] $receiver: VALUE_PARAMETER name: type:kotlin.Int? VALUE_PARAMETER name:index index:0 type:kotlin.Int BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun get (index: kotlin.Int): kotlin.Int [operator] declared in test' + RETURN type=kotlin.Nothing from='public final fun get (index: kotlin.Int): kotlin.Int declared in test' CONST Int type=kotlin.Int value=42 FUN name:set visibility:public modality:FINAL <> ($receiver:kotlin.Int?, index:kotlin.Int, value:kotlin.Int) returnType:kotlin.Unit [operator] $receiver: VALUE_PARAMETER name: type:kotlin.Int? @@ -68,23 +68,23 @@ FILE fqName:test fileName:/safeCallWithIncrementDecrement.kt WHEN type=kotlin.Int? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_1: test.C? [val] declared in test.testProperty' type=test.C? origin=null + arg0: GET_VAR 'val tmp_1: test.C? declared in test.testProperty' type=test.C? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: BLOCK type=kotlin.Int origin=POSTFIX_INCR VAR IR_TEMPORARY_VARIABLE name:tmp_2 type:test.C? [val] - GET_VAR 'val tmp_1: test.C? [val] declared in test.testProperty' type=test.C? origin=null + GET_VAR 'val tmp_1: test.C? declared in test.testProperty' type=test.C? origin=null BLOCK type=kotlin.Int origin=POSTFIX_INCR VAR IR_TEMPORARY_VARIABLE name:tmp_3 type:kotlin.Int [val] CALL 'public final fun (): kotlin.Int declared in test' type=kotlin.Int origin=POSTFIX_INCR - $receiver: GET_VAR 'val tmp_2: test.C? [val] declared in test.testProperty' type=test.C? origin=null + $receiver: GET_VAR 'val tmp_2: test.C? declared in test.testProperty' type=test.C? origin=null CALL 'public final fun (value: kotlin.Int): kotlin.Unit declared in test' type=kotlin.Unit origin=POSTFIX_INCR - $receiver: GET_VAR 'val tmp_2: test.C? [val] declared in test.testProperty' type=test.C? origin=null - value: CALL 'public final fun inc (): kotlin.Int? [operator] declared in test' type=kotlin.Int? origin=POSTFIX_INCR - $receiver: GET_VAR 'val tmp_3: kotlin.Int [val] declared in test.testProperty' type=kotlin.Int origin=null - GET_VAR 'val tmp_3: kotlin.Int [val] declared in test.testProperty' type=kotlin.Int origin=null + $receiver: GET_VAR 'val tmp_2: test.C? declared in test.testProperty' type=test.C? origin=null + value: CALL 'public final fun inc (): kotlin.Int? declared in test' type=kotlin.Int? origin=POSTFIX_INCR + $receiver: GET_VAR 'val tmp_3: kotlin.Int declared in test.testProperty' type=kotlin.Int origin=null + GET_VAR 'val tmp_3: kotlin.Int declared in test.testProperty' type=kotlin.Int origin=null FUN name:testArrayAccess visibility:public modality:FINAL <> (nc:test.C?) returnType:kotlin.Unit VALUE_PARAMETER name:nc index:0 type:test.C? BLOCK_BODY @@ -97,22 +97,22 @@ FILE fqName:test fileName:/safeCallWithIncrementDecrement.kt WHEN type=kotlin.Int? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_5: test.C? [val] declared in test.testArrayAccess' type=test.C? origin=null + arg0: GET_VAR 'val tmp_5: test.C? declared in test.testArrayAccess' type=test.C? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public final fun (): kotlin.Int declared in test' type=kotlin.Int origin=GET_PROPERTY - $receiver: GET_VAR 'val tmp_5: test.C? [val] declared in test.testArrayAccess' type=test.C? origin=null + $receiver: GET_VAR 'val tmp_5: test.C? declared in test.testArrayAccess' type=test.C? origin=null VAR IR_TEMPORARY_VARIABLE name:tmp_6 type:kotlin.Int [val] CONST Int type=kotlin.Int value=0 VAR IR_TEMPORARY_VARIABLE name:tmp_7 type:kotlin.Int [val] - CALL 'public final fun get (index: kotlin.Int): kotlin.Int [operator] declared in test' type=kotlin.Int origin=POSTFIX_INCR - $receiver: GET_VAR 'val tmp_4: kotlin.Int? [val] declared in test.testArrayAccess' type=kotlin.Int? origin=null - index: GET_VAR 'val tmp_6: kotlin.Int [val] declared in test.testArrayAccess' type=kotlin.Int origin=null - CALL 'public final fun set (index: kotlin.Int, value: kotlin.Int): kotlin.Unit [operator] declared in test' type=kotlin.Unit origin=POSTFIX_INCR - $receiver: GET_VAR 'val tmp_4: kotlin.Int? [val] declared in test.testArrayAccess' type=kotlin.Int? origin=null - index: GET_VAR 'val tmp_6: kotlin.Int [val] declared in test.testArrayAccess' type=kotlin.Int origin=null - value: CALL 'public final fun inc (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_INCR - $this: GET_VAR 'val tmp_7: kotlin.Int [val] declared in test.testArrayAccess' type=kotlin.Int origin=null - GET_VAR 'val tmp_7: kotlin.Int [val] declared in test.testArrayAccess' type=kotlin.Int origin=null + CALL 'public final fun get (index: kotlin.Int): kotlin.Int declared in test' type=kotlin.Int origin=POSTFIX_INCR + $receiver: GET_VAR 'val tmp_4: kotlin.Int? declared in test.testArrayAccess' type=kotlin.Int? origin=null + index: GET_VAR 'val tmp_6: kotlin.Int declared in test.testArrayAccess' type=kotlin.Int origin=null + CALL 'public final fun set (index: kotlin.Int, value: kotlin.Int): kotlin.Unit declared in test' type=kotlin.Unit origin=POSTFIX_INCR + $receiver: GET_VAR 'val tmp_4: kotlin.Int? declared in test.testArrayAccess' type=kotlin.Int? origin=null + index: GET_VAR 'val tmp_6: kotlin.Int declared in test.testArrayAccess' type=kotlin.Int origin=null + value: CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_INCR + $this: GET_VAR 'val tmp_7: kotlin.Int declared in test.testArrayAccess' type=kotlin.Int origin=null + GET_VAR 'val tmp_7: kotlin.Int declared in test.testArrayAccess' type=kotlin.Int origin=null diff --git a/compiler/testData/ir/irText/expressions/safeCalls.fir.ir.txt b/compiler/testData/ir/irText/expressions/safeCalls.fir.ir.txt index 255771929cc..27d3f17eec2 100644 --- a/compiler/testData/ir/irText/expressions/safeCalls.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/safeCalls.fir.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/safeCalls.kt CONSTRUCTOR visibility:public <> (value:kotlin.Int) returnType:.Ref [primary] VALUE_PARAMETER name:value index:0 type:kotlin.Int BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Ref modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:value visibility:public modality:FINAL [var] FIELD PROPERTY_BACKING_FIELD name:value type:kotlin.Int visibility:private @@ -27,7 +27,7 @@ FILE fqName: fileName:/safeCalls.kt value: GET_VAR ': kotlin.Int declared in .Ref.' type=kotlin.Int 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -49,7 +49,7 @@ FILE fqName: fileName:/safeCalls.kt $this: GET_VAR ': kotlin.String declared in .IHost.extLength' type=kotlin.String 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -70,13 +70,13 @@ FILE fqName: fileName:/safeCalls.kt WHEN type=kotlin.Int? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_0: kotlin.String? [val] declared in .test1' type=kotlin.String? origin=null + arg0: GET_VAR 'val tmp_0: kotlin.String? declared in .test1' type=kotlin.String? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public open fun (): kotlin.Int declared in kotlin.String' type=kotlin.Int origin=GET_PROPERTY - $this: GET_VAR 'val tmp_0: kotlin.String? [val] declared in .test1' type=kotlin.String? origin=null + $this: GET_VAR 'val tmp_0: kotlin.String? declared in .test1' type=kotlin.String? origin=null FUN name:test2 visibility:public modality:FINAL <> (x:kotlin.String?) returnType:kotlin.Int? VALUE_PARAMETER name:x index:0 type:kotlin.String? BLOCK_BODY @@ -87,13 +87,13 @@ FILE fqName: fileName:/safeCalls.kt WHEN type=kotlin.Int? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_1: kotlin.String? [val] declared in .test2' type=kotlin.String? origin=null + arg0: GET_VAR 'val tmp_1: kotlin.String? declared in .test2' type=kotlin.String? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: CALL 'public open fun hashCode (): kotlin.Int [fake_override] declared in kotlin.String' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp_1: kotlin.String? [val] declared in .test2' type=kotlin.String? origin=null + then: CALL 'public open fun hashCode (): kotlin.Int declared in kotlin.String' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_1: kotlin.String? declared in .test2' type=kotlin.String? origin=null FUN name:test3 visibility:public modality:FINAL <> (x:kotlin.String?, y:kotlin.Any?) returnType:kotlin.Boolean? VALUE_PARAMETER name:x index:0 type:kotlin.String? VALUE_PARAMETER name:y index:1 type:kotlin.Any? @@ -105,13 +105,13 @@ FILE fqName: fileName:/safeCalls.kt WHEN type=kotlin.Boolean? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_2: kotlin.String? [val] declared in .test3' type=kotlin.String? origin=null + arg0: GET_VAR 'val tmp_2: kotlin.String? declared in .test3' type=kotlin.String? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.String' type=kotlin.Boolean origin=null - $this: GET_VAR 'val tmp_2: kotlin.String? [val] declared in .test3' type=kotlin.String? origin=null + then: CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.String' type=kotlin.Boolean origin=null + $this: GET_VAR 'val tmp_2: kotlin.String? declared in .test3' type=kotlin.String? origin=null other: GET_VAR 'y: kotlin.Any? declared in .test3' type=kotlin.Any? origin=null FUN name:test4 visibility:public modality:FINAL <> (x:.Ref?) returnType:kotlin.Unit VALUE_PARAMETER name:x index:0 type:.Ref? @@ -123,13 +123,13 @@ FILE fqName: fileName:/safeCalls.kt WHEN type=kotlin.Unit? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_3: .Ref? [val] declared in .test4' type=.Ref? origin=null + arg0: GET_VAR 'val tmp_3: .Ref? declared in .test4' type=.Ref? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in .Ref' type=kotlin.Unit origin=EQ - $this: GET_VAR 'val tmp_3: .Ref? [val] declared in .test4' type=.Ref? origin=null + $this: GET_VAR 'val tmp_3: .Ref? declared in .test4' type=.Ref? origin=null : CONST Int type=kotlin.Int value=0 FUN name:test5 visibility:public modality:FINAL <> ($receiver:.IHost, s:kotlin.String?) returnType:kotlin.Int? $receiver: VALUE_PARAMETER name: type:.IHost @@ -142,14 +142,14 @@ FILE fqName: fileName:/safeCalls.kt WHEN type=kotlin.Int? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_4: kotlin.String? [val] declared in .test5' type=kotlin.String? origin=null + arg0: GET_VAR 'val tmp_4: kotlin.String? declared in .test5' type=kotlin.String? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public open fun extLength (): kotlin.Int declared in .IHost' type=kotlin.Int origin=null $this: GET_VAR ': .IHost declared in .test5' type=.IHost origin=null - $receiver: GET_VAR 'val tmp_4: kotlin.String? [val] declared in .test5' type=kotlin.String? origin=null + $receiver: GET_VAR 'val tmp_4: kotlin.String? declared in .test5' type=kotlin.String? origin=null FUN name:foo visibility:public modality:FINAL <> ($receiver:kotlin.Int) returnType:kotlin.Int $receiver: VALUE_PARAMETER name: type:kotlin.Int BLOCK_BODY @@ -164,10 +164,10 @@ FILE fqName: fileName:/safeCalls.kt WHEN type=kotlin.Int? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_5: kotlin.Int [val] declared in .box' type=kotlin.Int origin=null + arg0: GET_VAR 'val tmp_5: kotlin.Int declared in .box' type=kotlin.Int origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public final fun foo (): kotlin.Int declared in ' type=kotlin.Int origin=null - $receiver: GET_VAR 'val tmp_5: kotlin.Int [val] declared in .box' type=kotlin.Int origin=null + $receiver: GET_VAR 'val tmp_5: kotlin.Int declared in .box' type=kotlin.Int origin=null diff --git a/compiler/testData/ir/irText/expressions/safeCalls.ir.txt b/compiler/testData/ir/irText/expressions/safeCalls.ir.txt index 3573865a663..68aa03e51ca 100644 --- a/compiler/testData/ir/irText/expressions/safeCalls.ir.txt +++ b/compiler/testData/ir/irText/expressions/safeCalls.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/safeCalls.kt CONSTRUCTOR visibility:public <> (value:kotlin.Int) returnType:.Ref [primary] VALUE_PARAMETER name:value index:0 type:kotlin.Int BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Ref modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:value visibility:public modality:FINAL [var] FIELD PROPERTY_BACKING_FIELD name:value type:kotlin.Int visibility:private @@ -27,7 +27,7 @@ FILE fqName: fileName:/safeCalls.kt value: GET_VAR ': kotlin.Int declared in .Ref.' type=kotlin.Int 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -49,7 +49,7 @@ FILE fqName: fileName:/safeCalls.kt $this: GET_VAR ': kotlin.String declared in .IHost.extLength' type=kotlin.String 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -70,13 +70,13 @@ FILE fqName: fileName:/safeCalls.kt WHEN type=kotlin.Int? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_0: kotlin.String? [val] declared in .test1' type=kotlin.String? origin=null + arg0: GET_VAR 'val tmp_0: kotlin.String? declared in .test1' type=kotlin.String? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public open fun (): kotlin.Int declared in kotlin.String' type=kotlin.Int origin=GET_PROPERTY - $this: GET_VAR 'val tmp_0: kotlin.String? [val] declared in .test1' type=kotlin.String? origin=null + $this: GET_VAR 'val tmp_0: kotlin.String? declared in .test1' type=kotlin.String? origin=null FUN name:test2 visibility:public modality:FINAL <> (x:kotlin.String?) returnType:kotlin.Int? VALUE_PARAMETER name:x index:0 type:kotlin.String? BLOCK_BODY @@ -87,13 +87,13 @@ FILE fqName: fileName:/safeCalls.kt WHEN type=kotlin.Int? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_1: kotlin.String? [val] declared in .test2' type=kotlin.String? origin=null + arg0: GET_VAR 'val tmp_1: kotlin.String? declared in .test2' type=kotlin.String? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: CALL 'public open fun hashCode (): kotlin.Int [fake_override] declared in kotlin.String' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp_1: kotlin.String? [val] declared in .test2' type=kotlin.String? origin=null + then: CALL 'public open fun hashCode (): kotlin.Int declared in kotlin.String' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_1: kotlin.String? declared in .test2' type=kotlin.String? origin=null FUN name:test3 visibility:public modality:FINAL <> (x:kotlin.String?, y:kotlin.Any?) returnType:kotlin.Boolean? VALUE_PARAMETER name:x index:0 type:kotlin.String? VALUE_PARAMETER name:y index:1 type:kotlin.Any? @@ -105,13 +105,13 @@ FILE fqName: fileName:/safeCalls.kt WHEN type=kotlin.Boolean? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_2: kotlin.String? [val] declared in .test3' type=kotlin.String? origin=null + arg0: GET_VAR 'val tmp_2: kotlin.String? declared in .test3' type=kotlin.String? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.String' type=kotlin.Boolean origin=null - $this: GET_VAR 'val tmp_2: kotlin.String? [val] declared in .test3' type=kotlin.String? origin=null + then: CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.String' type=kotlin.Boolean origin=null + $this: GET_VAR 'val tmp_2: kotlin.String? declared in .test3' type=kotlin.String? origin=null other: GET_VAR 'y: kotlin.Any? declared in .test3' type=kotlin.Any? origin=null FUN name:test4 visibility:public modality:FINAL <> (x:.Ref?) returnType:kotlin.Unit VALUE_PARAMETER name:x index:0 type:.Ref? @@ -122,14 +122,14 @@ FILE fqName: fileName:/safeCalls.kt WHEN type=kotlin.Unit origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_3: .Ref? [val] declared in .test4' type=.Ref? origin=null + arg0: GET_VAR 'val tmp_3: .Ref? declared in .test4' type=.Ref? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public final fun (: kotlin.Int): kotlin.Unit declared in .Ref' type=kotlin.Unit origin=EQ - $this: GET_VAR 'val tmp_3: .Ref? [val] declared in .test4' type=.Ref? origin=null + $this: GET_VAR 'val tmp_3: .Ref? declared in .test4' type=.Ref? origin=null : CONST Int type=kotlin.Int value=0 FUN name:test5 visibility:public modality:FINAL <> ($receiver:.IHost, s:kotlin.String?) returnType:kotlin.Int? $receiver: VALUE_PARAMETER name: type:.IHost @@ -142,14 +142,14 @@ FILE fqName: fileName:/safeCalls.kt WHEN type=kotlin.Int? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_4: kotlin.String? [val] declared in .test5' type=kotlin.String? origin=null + arg0: GET_VAR 'val tmp_4: kotlin.String? declared in .test5' type=kotlin.String? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public open fun extLength (): kotlin.Int declared in .IHost' type=kotlin.Int origin=null $this: GET_VAR ': .IHost declared in .test5' type=.IHost origin=null - $receiver: GET_VAR 'val tmp_4: kotlin.String? [val] declared in .test5' type=kotlin.String? origin=null + $receiver: GET_VAR 'val tmp_4: kotlin.String? declared in .test5' type=kotlin.String? origin=null FUN name:foo visibility:public modality:FINAL <> ($receiver:kotlin.Int) returnType:kotlin.Int $receiver: VALUE_PARAMETER name: type:kotlin.Int BLOCK_BODY @@ -164,10 +164,10 @@ FILE fqName: fileName:/safeCalls.kt WHEN type=kotlin.Int? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_5: kotlin.Int [val] declared in .box' type=kotlin.Int origin=null + arg0: GET_VAR 'val tmp_5: kotlin.Int declared in .box' type=kotlin.Int origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public final fun foo (): kotlin.Int declared in ' type=kotlin.Int origin=null - $receiver: GET_VAR 'val tmp_5: kotlin.Int [val] declared in .box' type=kotlin.Int origin=null + $receiver: GET_VAR 'val tmp_5: kotlin.Int declared in .box' type=kotlin.Int origin=null diff --git a/compiler/testData/ir/irText/expressions/safeCalls.kt b/compiler/testData/ir/irText/expressions/safeCalls.kt index ce43d348b38..82943638a94 100644 --- a/compiler/testData/ir/irText/expressions/safeCalls.kt +++ b/compiler/testData/ir/irText/expressions/safeCalls.kt @@ -1,6 +1,3 @@ -// IGNORE_BACKEND: JS_IR -// IGNORE_BACKEND: JS_IR_ES6 - class Ref(var value: Int) interface IHost { diff --git a/compiler/testData/ir/irText/expressions/sam/arrayAsVarargAfterSamArgument.ir.txt b/compiler/testData/ir/irText/expressions/sam/arrayAsVarargAfterSamArgument.ir.txt index 77efa116946..b79ce67164a 100644 --- a/compiler/testData/ir/irText/expressions/sam/arrayAsVarargAfterSamArgument.ir.txt +++ b/compiler/testData/ir/irText/expressions/sam/arrayAsVarargAfterSamArgument.ir.txt @@ -136,7 +136,7 @@ FILE fqName: fileName:/arrayAsVarargAfterSamArgument.kt GET_VAR 'arr: kotlin.Array declared in .test' type=kotlin.Array origin=null TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit CALL 'public open fun foo2 (r1: @[FlexibleNullability] java.lang.Runnable?, r2: @[FlexibleNullability] java.lang.Runnable?, vararg strs: @[FlexibleNullability] kotlin.String?): @[FlexibleNullability] kotlin.String? declared in .Test' type=@[FlexibleNullability] kotlin.String? origin=null - $this: GET_VAR 'val i1: .Test [val] declared in .test' type=.Test origin=null + $this: GET_VAR 'val i1: .Test declared in .test' type=.Test origin=null r1: TYPE_OP type=@[FlexibleNullability] java.lang.Runnable? origin=SAM_CONVERSION typeOperand=@[FlexibleNullability] java.lang.Runnable? FUN_EXPR type=kotlin.Function0 origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:kotlin.Unit @@ -152,7 +152,7 @@ FILE fqName: fileName:/arrayAsVarargAfterSamArgument.kt strs: GET_VAR 'arr: kotlin.Array declared in .test' type=kotlin.Array origin=null TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit CALL 'public open fun foo2 (r1: @[FlexibleNullability] java.lang.Runnable?, r2: @[FlexibleNullability] java.lang.Runnable?, vararg strs: @[FlexibleNullability] kotlin.String?): @[FlexibleNullability] kotlin.String? declared in .Test' type=@[FlexibleNullability] kotlin.String? origin=null - $this: GET_VAR 'val i1: .Test [val] declared in .test' type=.Test origin=null + $this: GET_VAR 'val i1: .Test declared in .test' type=.Test origin=null r1: GET_VAR 'r: java.lang.Runnable declared in .test' type=java.lang.Runnable origin=null r2: TYPE_OP type=@[FlexibleNullability] java.lang.Runnable? origin=SAM_CONVERSION typeOperand=@[FlexibleNullability] java.lang.Runnable? FUN_EXPR type=kotlin.Function0 origin=LAMBDA @@ -164,7 +164,7 @@ FILE fqName: fileName:/arrayAsVarargAfterSamArgument.kt CONST String type=kotlin.String value="" TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit CALL 'public open fun foo2 (r1: @[FlexibleNullability] java.lang.Runnable?, r2: @[FlexibleNullability] java.lang.Runnable?, vararg strs: @[FlexibleNullability] kotlin.String?): @[FlexibleNullability] kotlin.String? declared in .Test' type=@[FlexibleNullability] kotlin.String? origin=null - $this: GET_VAR 'val i1: .Test [val] declared in .test' type=.Test origin=null + $this: GET_VAR 'val i1: .Test declared in .test' type=.Test origin=null r1: TYPE_OP type=@[FlexibleNullability] java.lang.Runnable? origin=SAM_CONVERSION typeOperand=@[FlexibleNullability] java.lang.Runnable? FUN_EXPR type=kotlin.Function0 origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:kotlin.Unit @@ -182,7 +182,7 @@ FILE fqName: fileName:/arrayAsVarargAfterSamArgument.kt GET_VAR 'arr: kotlin.Array declared in .test' type=kotlin.Array origin=null TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit CALL 'public open fun foo2 (r1: @[FlexibleNullability] java.lang.Runnable?, r2: @[FlexibleNullability] java.lang.Runnable?, vararg strs: @[FlexibleNullability] kotlin.String?): @[FlexibleNullability] kotlin.String? declared in .Test' type=@[FlexibleNullability] kotlin.String? origin=null - $this: GET_VAR 'val i1: .Test [val] declared in .test' type=.Test origin=null + $this: GET_VAR 'val i1: .Test declared in .test' type=.Test origin=null r1: GET_VAR 'r: java.lang.Runnable declared in .test' type=java.lang.Runnable origin=null r2: TYPE_OP type=@[FlexibleNullability] java.lang.Runnable? origin=SAM_CONVERSION typeOperand=@[FlexibleNullability] java.lang.Runnable? FUN_EXPR type=kotlin.Function0 origin=LAMBDA diff --git a/compiler/testData/ir/irText/expressions/sam/genericSamProjectedOut.fir.ir.txt b/compiler/testData/ir/irText/expressions/sam/genericSamProjectedOut.fir.ir.txt index 7afdd789f2a..dd90a2d5460 100644 --- a/compiler/testData/ir/irText/expressions/sam/genericSamProjectedOut.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/sam/genericSamProjectedOut.fir.ir.txt @@ -2,10 +2,10 @@ FILE fqName: fileName:/genericSamProjectedOut.kt FUN name:test visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY VAR name:a type:example.SomeJavaClass [var] - CONSTRUCTOR_CALL 'public constructor () [primary] declared in example.SomeJavaClass' type=example.SomeJavaClass origin=null + CONSTRUCTOR_CALL 'public constructor () declared in example.SomeJavaClass' type=example.SomeJavaClass origin=null : kotlin.String CALL 'public open fun someFunction (hello: @[FlexibleNullability] example.Hello<@[FlexibleNullability] A of example.SomeJavaClass?>?): kotlin.Unit declared in example.SomeJavaClass' type=kotlin.Unit origin=null - $this: GET_VAR 'var a: example.SomeJavaClass [var] declared in .test' type=example.SomeJavaClass origin=null + $this: GET_VAR 'var a: example.SomeJavaClass declared in .test' type=example.SomeJavaClass origin=null hello: TYPE_OP type=@[FlexibleNullability] example.Hello? origin=SAM_CONVERSION typeOperand=@[FlexibleNullability] example.Hello? FUN_EXPR type=kotlin.Function1<@[FlexibleNullability] kotlin.String?, kotlin.Unit> origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> (it:@[FlexibleNullability] kotlin.String?) returnType:kotlin.Unit @@ -14,8 +14,8 @@ FILE fqName: fileName:/genericSamProjectedOut.kt RETURN type=kotlin.Nothing from='local final fun (it: @[FlexibleNullability] kotlin.String?): kotlin.Unit declared in .test' GET_OBJECT 'CLASS IR_EXTERNAL_DECLARATION_STUB OBJECT name:Unit modality:FINAL visibility:public superTypes:[kotlin.Any]' type=kotlin.Unit TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit - CALL 'public open fun plus (hello: @[FlexibleNullability] example.Hello<@[FlexibleNullability] A of example.SomeJavaClass?>?): @[FlexibleNullability] example.SomeJavaClass<@[FlexibleNullability] A of example.SomeJavaClass?>? [operator] declared in example.SomeJavaClass' type=@[FlexibleNullability] example.SomeJavaClass? origin=PLUS - $this: GET_VAR 'var a: example.SomeJavaClass [var] declared in .test' type=example.SomeJavaClass origin=null + CALL 'public open fun plus (hello: @[FlexibleNullability] example.Hello<@[FlexibleNullability] A of example.SomeJavaClass?>?): @[FlexibleNullability] example.SomeJavaClass<@[FlexibleNullability] A of example.SomeJavaClass?>? declared in example.SomeJavaClass' type=@[FlexibleNullability] example.SomeJavaClass? origin=PLUS + $this: GET_VAR 'var a: example.SomeJavaClass declared in .test' type=example.SomeJavaClass origin=null hello: TYPE_OP type=@[FlexibleNullability] example.Hello? origin=SAM_CONVERSION typeOperand=@[FlexibleNullability] example.Hello? FUN_EXPR type=kotlin.Function1<@[FlexibleNullability] kotlin.String?, kotlin.Unit> origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> (it:@[FlexibleNullability] kotlin.String?) returnType:kotlin.Unit @@ -23,8 +23,8 @@ FILE fqName: fileName:/genericSamProjectedOut.kt BLOCK_BODY RETURN type=kotlin.Nothing from='local final fun (it: @[FlexibleNullability] kotlin.String?): kotlin.Unit declared in .test' GET_OBJECT 'CLASS IR_EXTERNAL_DECLARATION_STUB OBJECT name:Unit modality:FINAL visibility:public superTypes:[kotlin.Any]' type=kotlin.Unit - CALL 'public open fun get (hello: @[FlexibleNullability] example.Hello<@[FlexibleNullability] A of example.SomeJavaClass?>?): kotlin.Unit [operator] declared in example.SomeJavaClass' type=kotlin.Unit origin=null - $this: GET_VAR 'var a: example.SomeJavaClass [var] declared in .test' type=example.SomeJavaClass origin=null + CALL 'public open fun get (hello: @[FlexibleNullability] example.Hello<@[FlexibleNullability] A of example.SomeJavaClass?>?): kotlin.Unit declared in example.SomeJavaClass' type=kotlin.Unit origin=null + $this: GET_VAR 'var a: example.SomeJavaClass declared in .test' type=example.SomeJavaClass origin=null hello: TYPE_OP type=@[FlexibleNullability] example.Hello? origin=SAM_CONVERSION typeOperand=@[FlexibleNullability] example.Hello? FUN_EXPR type=kotlin.Function1<@[FlexibleNullability] kotlin.String?, kotlin.Unit> origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> (it:@[FlexibleNullability] kotlin.String?) returnType:kotlin.Unit @@ -32,9 +32,9 @@ FILE fqName: fileName:/genericSamProjectedOut.kt BLOCK_BODY RETURN type=kotlin.Nothing from='local final fun (it: @[FlexibleNullability] kotlin.String?): kotlin.Unit declared in .test' GET_OBJECT 'CLASS IR_EXTERNAL_DECLARATION_STUB OBJECT name:Unit modality:FINAL visibility:public superTypes:[kotlin.Any]' type=kotlin.Unit - SET_VAR 'var a: example.SomeJavaClass [var] declared in .test' type=kotlin.Unit origin=EQ - CALL 'public open fun plus (hello: @[FlexibleNullability] example.Hello<@[FlexibleNullability] A of example.SomeJavaClass?>?): @[FlexibleNullability] example.SomeJavaClass<@[FlexibleNullability] A of example.SomeJavaClass?>? [operator] declared in example.SomeJavaClass' type=@[FlexibleNullability] example.SomeJavaClass? origin=null - $this: GET_VAR 'var a: example.SomeJavaClass [var] declared in .test' type=example.SomeJavaClass origin=null + SET_VAR 'var a: example.SomeJavaClass declared in .test' type=kotlin.Unit origin=EQ + CALL 'public open fun plus (hello: @[FlexibleNullability] example.Hello<@[FlexibleNullability] A of example.SomeJavaClass?>?): @[FlexibleNullability] example.SomeJavaClass<@[FlexibleNullability] A of example.SomeJavaClass?>? declared in example.SomeJavaClass' type=@[FlexibleNullability] example.SomeJavaClass? origin=null + $this: GET_VAR 'var a: example.SomeJavaClass declared in .test' type=example.SomeJavaClass origin=null hello: TYPE_OP type=@[FlexibleNullability] example.Hello? origin=SAM_CONVERSION typeOperand=@[FlexibleNullability] example.Hello? FUN_EXPR type=kotlin.Function1<@[FlexibleNullability] kotlin.String?, kotlin.Unit> origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> (it:@[FlexibleNullability] kotlin.String?) returnType:kotlin.Unit @@ -42,8 +42,8 @@ FILE fqName: fileName:/genericSamProjectedOut.kt BLOCK_BODY RETURN type=kotlin.Nothing from='local final fun (it: @[FlexibleNullability] kotlin.String?): kotlin.Unit declared in .test' GET_OBJECT 'CLASS IR_EXTERNAL_DECLARATION_STUB OBJECT name:Unit modality:FINAL visibility:public superTypes:[kotlin.Any]' type=kotlin.Unit - CALL 'public open fun set (i: kotlin.Int, hello: @[FlexibleNullability] example.Hello<@[FlexibleNullability] A of example.SomeJavaClass?>?): kotlin.Unit [operator] declared in example.SomeJavaClass' type=kotlin.Unit origin=null - $this: GET_VAR 'var a: example.SomeJavaClass [var] declared in .test' type=example.SomeJavaClass origin=null + CALL 'public open fun set (i: kotlin.Int, hello: @[FlexibleNullability] example.Hello<@[FlexibleNullability] A of example.SomeJavaClass?>?): kotlin.Unit declared in example.SomeJavaClass' type=kotlin.Unit origin=null + $this: GET_VAR 'var a: example.SomeJavaClass declared in .test' type=example.SomeJavaClass origin=null i: CONST Int type=kotlin.Int value=0 hello: TYPE_OP type=@[FlexibleNullability] example.Hello? origin=SAM_CONVERSION typeOperand=@[FlexibleNullability] example.Hello? FUN_EXPR type=kotlin.Function1<@[FlexibleNullability] kotlin.String?, kotlin.Unit> origin=LAMBDA diff --git a/compiler/testData/ir/irText/expressions/sam/genericSamProjectedOut.ir.txt b/compiler/testData/ir/irText/expressions/sam/genericSamProjectedOut.ir.txt index b9ca851e436..c8f123fb302 100644 --- a/compiler/testData/ir/irText/expressions/sam/genericSamProjectedOut.ir.txt +++ b/compiler/testData/ir/irText/expressions/sam/genericSamProjectedOut.ir.txt @@ -2,10 +2,10 @@ FILE fqName: fileName:/genericSamProjectedOut.kt FUN name:test visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY VAR name:a type:example.SomeJavaClass [var] - CONSTRUCTOR_CALL 'public constructor () [primary] declared in example.SomeJavaClass' type=example.SomeJavaClass origin=null + CONSTRUCTOR_CALL 'public constructor () declared in example.SomeJavaClass' type=example.SomeJavaClass origin=null : kotlin.String CALL 'public open fun someFunction (hello: @[FlexibleNullability] example.Hello<@[FlexibleNullability] A of example.SomeJavaClass?>?): kotlin.Unit declared in example.SomeJavaClass' type=kotlin.Unit origin=null - $this: GET_VAR 'var a: example.SomeJavaClass [var] declared in .test' type=example.SomeJavaClass origin=null + $this: GET_VAR 'var a: example.SomeJavaClass declared in .test' type=example.SomeJavaClass origin=null hello: TYPE_OP type=@[FlexibleNullability] example.Hello? origin=SAM_CONVERSION typeOperand=@[FlexibleNullability] example.Hello? FUN_EXPR type=kotlin.Function1<@[FlexibleNullability] kotlin.String?, kotlin.Unit> origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> (it:@[FlexibleNullability] kotlin.String?) returnType:kotlin.Unit @@ -14,8 +14,8 @@ FILE fqName: fileName:/genericSamProjectedOut.kt RETURN type=kotlin.Nothing from='local final fun (it: @[FlexibleNullability] kotlin.String?): kotlin.Unit declared in .test' GET_OBJECT 'CLASS IR_EXTERNAL_DECLARATION_STUB OBJECT name:Unit modality:FINAL visibility:public superTypes:[kotlin.Any]' type=kotlin.Unit TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit - CALL 'public open fun plus (hello: @[FlexibleNullability] example.Hello<@[FlexibleNullability] A of example.SomeJavaClass?>?): @[FlexibleNullability] example.SomeJavaClass<@[FlexibleNullability] A of example.SomeJavaClass?>? [operator] declared in example.SomeJavaClass' type=@[FlexibleNullability] example.SomeJavaClass? origin=PLUS - $this: GET_VAR 'var a: example.SomeJavaClass [var] declared in .test' type=example.SomeJavaClass origin=null + CALL 'public open fun plus (hello: @[FlexibleNullability] example.Hello<@[FlexibleNullability] A of example.SomeJavaClass?>?): @[FlexibleNullability] example.SomeJavaClass<@[FlexibleNullability] A of example.SomeJavaClass?>? declared in example.SomeJavaClass' type=@[FlexibleNullability] example.SomeJavaClass? origin=PLUS + $this: GET_VAR 'var a: example.SomeJavaClass declared in .test' type=example.SomeJavaClass origin=null hello: TYPE_OP type=@[FlexibleNullability] example.Hello? origin=SAM_CONVERSION typeOperand=@[FlexibleNullability] example.Hello? FUN_EXPR type=kotlin.Function1<@[FlexibleNullability] kotlin.String?, kotlin.Unit> origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> (it:@[FlexibleNullability] kotlin.String?) returnType:kotlin.Unit @@ -23,8 +23,8 @@ FILE fqName: fileName:/genericSamProjectedOut.kt BLOCK_BODY RETURN type=kotlin.Nothing from='local final fun (it: @[FlexibleNullability] kotlin.String?): kotlin.Unit declared in .test' GET_OBJECT 'CLASS IR_EXTERNAL_DECLARATION_STUB OBJECT name:Unit modality:FINAL visibility:public superTypes:[kotlin.Any]' type=kotlin.Unit - CALL 'public open fun get (hello: @[FlexibleNullability] example.Hello<@[FlexibleNullability] A of example.SomeJavaClass?>?): kotlin.Unit [operator] declared in example.SomeJavaClass' type=kotlin.Unit origin=GET_ARRAY_ELEMENT - $this: GET_VAR 'var a: example.SomeJavaClass [var] declared in .test' type=example.SomeJavaClass origin=null + CALL 'public open fun get (hello: @[FlexibleNullability] example.Hello<@[FlexibleNullability] A of example.SomeJavaClass?>?): kotlin.Unit declared in example.SomeJavaClass' type=kotlin.Unit origin=GET_ARRAY_ELEMENT + $this: GET_VAR 'var a: example.SomeJavaClass declared in .test' type=example.SomeJavaClass origin=null hello: TYPE_OP type=@[FlexibleNullability] example.Hello? origin=SAM_CONVERSION typeOperand=@[FlexibleNullability] example.Hello? FUN_EXPR type=kotlin.Function1<@[FlexibleNullability] kotlin.String?, kotlin.Unit> origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> (it:@[FlexibleNullability] kotlin.String?) returnType:kotlin.Unit @@ -32,10 +32,10 @@ FILE fqName: fileName:/genericSamProjectedOut.kt BLOCK_BODY RETURN type=kotlin.Nothing from='local final fun (it: @[FlexibleNullability] kotlin.String?): kotlin.Unit declared in .test' GET_OBJECT 'CLASS IR_EXTERNAL_DECLARATION_STUB OBJECT name:Unit modality:FINAL visibility:public superTypes:[kotlin.Any]' type=kotlin.Unit - SET_VAR 'var a: example.SomeJavaClass [var] declared in .test' type=kotlin.Unit origin=PLUSEQ + SET_VAR 'var a: example.SomeJavaClass declared in .test' type=kotlin.Unit origin=PLUSEQ TYPE_OP type=example.SomeJavaClass origin=IMPLICIT_NOTNULL typeOperand=example.SomeJavaClass - CALL 'public open fun plus (hello: @[FlexibleNullability] example.Hello<@[FlexibleNullability] A of example.SomeJavaClass?>?): @[FlexibleNullability] example.SomeJavaClass<@[FlexibleNullability] A of example.SomeJavaClass?>? [operator] declared in example.SomeJavaClass' type=@[FlexibleNullability] example.SomeJavaClass? origin=PLUSEQ - $this: GET_VAR 'var a: example.SomeJavaClass [var] declared in .test' type=example.SomeJavaClass origin=PLUSEQ + CALL 'public open fun plus (hello: @[FlexibleNullability] example.Hello<@[FlexibleNullability] A of example.SomeJavaClass?>?): @[FlexibleNullability] example.SomeJavaClass<@[FlexibleNullability] A of example.SomeJavaClass?>? declared in example.SomeJavaClass' type=@[FlexibleNullability] example.SomeJavaClass? origin=PLUSEQ + $this: GET_VAR 'var a: example.SomeJavaClass declared in .test' type=example.SomeJavaClass origin=PLUSEQ hello: TYPE_OP type=@[FlexibleNullability] example.Hello? origin=SAM_CONVERSION typeOperand=@[FlexibleNullability] example.Hello? FUN_EXPR type=kotlin.Function1<@[FlexibleNullability] kotlin.String?, kotlin.Unit> origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> (it:@[FlexibleNullability] kotlin.String?) returnType:kotlin.Unit @@ -43,8 +43,8 @@ FILE fqName: fileName:/genericSamProjectedOut.kt BLOCK_BODY RETURN type=kotlin.Nothing from='local final fun (it: @[FlexibleNullability] kotlin.String?): kotlin.Unit declared in .test' GET_OBJECT 'CLASS IR_EXTERNAL_DECLARATION_STUB OBJECT name:Unit modality:FINAL visibility:public superTypes:[kotlin.Any]' type=kotlin.Unit - CALL 'public open fun set (i: kotlin.Int, hello: @[FlexibleNullability] example.Hello<@[FlexibleNullability] A of example.SomeJavaClass?>?): kotlin.Unit [operator] declared in example.SomeJavaClass' type=kotlin.Unit origin=EQ - $this: GET_VAR 'var a: example.SomeJavaClass [var] declared in .test' type=example.SomeJavaClass origin=null + CALL 'public open fun set (i: kotlin.Int, hello: @[FlexibleNullability] example.Hello<@[FlexibleNullability] A of example.SomeJavaClass?>?): kotlin.Unit declared in example.SomeJavaClass' type=kotlin.Unit origin=EQ + $this: GET_VAR 'var a: example.SomeJavaClass declared in .test' type=example.SomeJavaClass origin=null i: CONST Int type=kotlin.Int value=0 hello: TYPE_OP type=@[FlexibleNullability] example.Hello? origin=SAM_CONVERSION typeOperand=@[FlexibleNullability] example.Hello? FUN_EXPR type=kotlin.Function1<@[FlexibleNullability] kotlin.String?, kotlin.Unit> origin=LAMBDA diff --git a/compiler/testData/ir/irText/expressions/sam/samConstructors.fir.ir.txt b/compiler/testData/ir/irText/expressions/sam/samConstructors.fir.ir.txt index d746e6a05e5..1d2cf9cb7a2 100644 --- a/compiler/testData/ir/irText/expressions/sam/samConstructors.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/sam/samConstructors.fir.ir.txt @@ -31,7 +31,7 @@ FILE fqName: fileName:/samConstructors.kt VALUE_PARAMETER name:b index:1 type:@[FlexibleNullability] kotlin.Int? BLOCK_BODY RETURN type=kotlin.Nothing from='local final fun (a: @[FlexibleNullability] kotlin.Int?, b: @[FlexibleNullability] kotlin.Int?): kotlin.Int declared in .test4' - CALL 'public final fun minus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=MINUS + CALL 'public final fun minus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=MINUS $this: GET_VAR 'a: @[FlexibleNullability] kotlin.Int? declared in .test4.' type=@[FlexibleNullability] kotlin.Int? origin=null other: TYPE_OP type=kotlin.Int origin=IMPLICIT_NOTNULL typeOperand=kotlin.Int GET_VAR 'b: @[FlexibleNullability] kotlin.Int? declared in .test4.' type=@[FlexibleNullability] kotlin.Int? origin=null diff --git a/compiler/testData/ir/irText/expressions/sam/samConstructors.ir.txt b/compiler/testData/ir/irText/expressions/sam/samConstructors.ir.txt index 7426c95c026..70760e3d878 100644 --- a/compiler/testData/ir/irText/expressions/sam/samConstructors.ir.txt +++ b/compiler/testData/ir/irText/expressions/sam/samConstructors.ir.txt @@ -31,7 +31,7 @@ FILE fqName: fileName:/samConstructors.kt VALUE_PARAMETER name:b index:1 type:@[FlexibleNullability] kotlin.Int? BLOCK_BODY RETURN type=kotlin.Nothing from='local final fun (a: @[FlexibleNullability] kotlin.Int?, b: @[FlexibleNullability] kotlin.Int?): kotlin.Int declared in .test4' - CALL 'public final fun minus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=MINUS + CALL 'public final fun minus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=MINUS $this: TYPE_OP type=kotlin.Int origin=IMPLICIT_NOTNULL typeOperand=kotlin.Int GET_VAR 'a: @[FlexibleNullability] kotlin.Int? declared in .test4.' type=@[FlexibleNullability] kotlin.Int? origin=null other: TYPE_OP type=kotlin.Int origin=IMPLICIT_NOTNULL typeOperand=kotlin.Int diff --git a/compiler/testData/ir/irText/expressions/sam/samConversionInGenericConstructorCall.ir.txt b/compiler/testData/ir/irText/expressions/sam/samConversionInGenericConstructorCall.ir.txt index 4c75d28bff8..4cf05cf77cf 100644 --- a/compiler/testData/ir/irText/expressions/sam/samConversionInGenericConstructorCall.ir.txt +++ b/compiler/testData/ir/irText/expressions/sam/samConversionInGenericConstructorCall.ir.txt @@ -18,7 +18,7 @@ FILE fqName: fileName:/samConversionInGenericConstructorCall.kt CONSTRUCTOR visibility:public <> (j11:.J.Outer, T1 of .Outer>) returnType:.Outer.Outer> [primary] VALUE_PARAMETER name:j11 index:0 type:.J.Outer, T1 of .Outer> BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Outer modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:j11 visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:j11 type:.J.Outer, T1 of .Outer> visibility:private [final] @@ -38,7 +38,7 @@ FILE fqName: fileName:/samConversionInGenericConstructorCall.kt $outer: VALUE_PARAMETER name: type:.Outer.Outer> VALUE_PARAMETER name:j12 index:0 type:.J.Outer, T2 of .Outer.Inner> BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Inner modality:FINAL visibility:public [inner] superTypes:[kotlin.Any]' PROPERTY name:j12 visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:j12 type:.J.Outer, T2 of .Outer.Inner> visibility:private [final] @@ -53,7 +53,7 @@ FILE fqName: fileName:/samConversionInGenericConstructorCall.kt receiver: GET_VAR ': .Outer.Inner.Outer.Inner, T1 of .Outer> declared in .Outer.Inner.' type=.Outer.Inner.Outer.Inner, T1 of .Outer> 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -66,7 +66,7 @@ FILE fqName: fileName:/samConversionInGenericConstructorCall.kt $this: VALUE_PARAMETER name: type: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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -82,9 +82,9 @@ FILE fqName: fileName:/samConversionInGenericConstructorCall.kt VALUE_PARAMETER name:g index:1 type:kotlin.Function1 BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test4 (f: kotlin.Function1, g: kotlin.Function1): .Outer.Inner<@[FlexibleNullability] kotlin.Any?, @[FlexibleNullability] kotlin.String?> declared in ' - CONSTRUCTOR_CALL 'public constructor (j12: .J.Outer, T2 of .Outer.Inner>) [primary] declared in .Outer.Inner' type=.Outer.Inner<@[FlexibleNullability] kotlin.Any?, @[FlexibleNullability] kotlin.String?> origin=null + CONSTRUCTOR_CALL 'public constructor (j12: .J.Outer, T2 of .Outer.Inner>) declared in .Outer.Inner' type=.Outer.Inner<@[FlexibleNullability] kotlin.Any?, @[FlexibleNullability] kotlin.String?> origin=null : @[FlexibleNullability] kotlin.Any? - $outer: CONSTRUCTOR_CALL 'public constructor (j11: .J.Outer, T1 of .Outer>) [primary] declared in .Outer' type=.Outer<@[FlexibleNullability] kotlin.String?> origin=null + $outer: CONSTRUCTOR_CALL 'public constructor (j11: .J.Outer, T1 of .Outer>) declared in .Outer' type=.Outer<@[FlexibleNullability] kotlin.String?> origin=null : @[FlexibleNullability] kotlin.String? j11: TYPE_OP type=.J<@[FlexibleNullability] kotlin.String?, @[FlexibleNullability] kotlin.String?> origin=SAM_CONVERSION typeOperand=.J<@[FlexibleNullability] kotlin.String?, @[FlexibleNullability] kotlin.String?> GET_VAR 'f: kotlin.Function1 declared in .test4' type=kotlin.Function1 origin=null diff --git a/compiler/testData/ir/irText/expressions/sam/samConversionsWithSmartCasts.fir.ir.txt b/compiler/testData/ir/irText/expressions/sam/samConversionsWithSmartCasts.fir.ir.txt index 096493a9c4a..0580ad9f7b4 100644 --- a/compiler/testData/ir/irText/expressions/sam/samConversionsWithSmartCasts.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/sam/samConversionsWithSmartCasts.fir.ir.txt @@ -17,7 +17,7 @@ FILE fqName: fileName:/samConversionsWithSmartCasts.kt if: TYPE_OP type=kotlin.Boolean origin=INSTANCEOF typeOperand=java.lang.Runnable GET_VAR 'a: kotlin.Function0 declared in .test2' type=kotlin.Function0 origin=null then: CALL 'public open fun run1 (r: @[FlexibleNullability] java.lang.Runnable?): kotlin.Unit declared in .J' type=kotlin.Unit origin=null - $this: CONSTRUCTOR_CALL 'public constructor () [primary] declared in .J' type=.J origin=null + $this: CONSTRUCTOR_CALL 'public constructor () declared in .J' type=.J origin=null r: TYPE_OP type=java.lang.Runnable origin=IMPLICIT_CAST typeOperand=java.lang.Runnable GET_VAR 'a: kotlin.Function0 declared in .test2' type=kotlin.Function0 origin=null FUN name:test3 visibility:public modality:FINAL <> (a:kotlin.Function0) returnType:kotlin.Unit @@ -28,7 +28,7 @@ FILE fqName: fileName:/samConversionsWithSmartCasts.kt if: TYPE_OP type=kotlin.Boolean origin=INSTANCEOF typeOperand=java.lang.Runnable GET_VAR 'a: kotlin.Function0 declared in .test3' type=kotlin.Function0 origin=null then: CALL 'public open fun run2 (r1: @[FlexibleNullability] java.lang.Runnable?, r2: @[FlexibleNullability] java.lang.Runnable?): kotlin.Unit declared in .J' type=kotlin.Unit origin=null - $this: CONSTRUCTOR_CALL 'public constructor () [primary] declared in .J' type=.J origin=null + $this: CONSTRUCTOR_CALL 'public constructor () declared in .J' type=.J origin=null r1: TYPE_OP type=java.lang.Runnable origin=IMPLICIT_CAST typeOperand=java.lang.Runnable GET_VAR 'a: kotlin.Function0 declared in .test3' type=kotlin.Function0 origin=null r2: TYPE_OP type=java.lang.Runnable origin=IMPLICIT_CAST typeOperand=java.lang.Runnable @@ -42,7 +42,7 @@ FILE fqName: fileName:/samConversionsWithSmartCasts.kt if: TYPE_OP type=kotlin.Boolean origin=INSTANCEOF typeOperand=java.lang.Runnable GET_VAR 'a: kotlin.Function0 declared in .test4' type=kotlin.Function0 origin=null then: CALL 'public open fun run2 (r1: @[FlexibleNullability] java.lang.Runnable?, r2: @[FlexibleNullability] java.lang.Runnable?): kotlin.Unit declared in .J' type=kotlin.Unit origin=null - $this: CONSTRUCTOR_CALL 'public constructor () [primary] declared in .J' type=.J origin=null + $this: CONSTRUCTOR_CALL 'public constructor () declared in .J' type=.J origin=null r1: TYPE_OP type=java.lang.Runnable origin=IMPLICIT_CAST typeOperand=java.lang.Runnable GET_VAR 'a: kotlin.Function0 declared in .test4' type=kotlin.Function0 origin=null r2: TYPE_OP type=@[FlexibleNullability] java.lang.Runnable? origin=SAM_CONVERSION typeOperand=@[FlexibleNullability] java.lang.Runnable? @@ -55,7 +55,7 @@ FILE fqName: fileName:/samConversionsWithSmartCasts.kt if: TYPE_OP type=kotlin.Boolean origin=INSTANCEOF typeOperand=java.lang.Runnable GET_VAR 'a: kotlin.Any declared in .test5' type=kotlin.Any origin=null then: CALL 'public open fun run1 (r: @[FlexibleNullability] java.lang.Runnable?): kotlin.Unit declared in .J' type=kotlin.Unit origin=null - $this: CONSTRUCTOR_CALL 'public constructor () [primary] declared in .J' type=.J origin=null + $this: CONSTRUCTOR_CALL 'public constructor () declared in .J' type=.J origin=null r: TYPE_OP type=java.lang.Runnable origin=IMPLICIT_CAST typeOperand=java.lang.Runnable GET_VAR 'a: kotlin.Any declared in .test5' type=kotlin.Any origin=null FUN name:test5x visibility:public modality:FINAL <> (a:kotlin.Any) returnType:kotlin.Unit @@ -71,7 +71,7 @@ FILE fqName: fileName:/samConversionsWithSmartCasts.kt TYPE_OP type=java.lang.Runnable origin=IMPLICIT_CAST typeOperand=java.lang.Runnable GET_VAR 'a: kotlin.Any declared in .test5x' type=kotlin.Any origin=null CALL 'public open fun run1 (r: @[FlexibleNullability] java.lang.Runnable?): kotlin.Unit declared in .J' type=kotlin.Unit origin=null - $this: CONSTRUCTOR_CALL 'public constructor () [primary] declared in .J' type=.J origin=null + $this: CONSTRUCTOR_CALL 'public constructor () declared in .J' type=.J origin=null r: TYPE_OP type=java.lang.Runnable origin=IMPLICIT_CAST typeOperand=java.lang.Runnable GET_VAR 'a: kotlin.Any declared in .test5x' type=kotlin.Any origin=null FUN name:test6 visibility:public modality:FINAL <> (a:kotlin.Any) returnType:kotlin.Unit @@ -81,7 +81,7 @@ FILE fqName: fileName:/samConversionsWithSmartCasts.kt TYPE_OP type=kotlin.Function0 origin=CAST typeOperand=kotlin.Function0 GET_VAR 'a: kotlin.Any declared in .test6' type=kotlin.Any origin=null CALL 'public open fun run1 (r: @[FlexibleNullability] java.lang.Runnable?): kotlin.Unit declared in .J' type=kotlin.Unit origin=null - $this: CONSTRUCTOR_CALL 'public constructor () [primary] declared in .J' type=.J origin=null + $this: CONSTRUCTOR_CALL 'public constructor () declared in .J' type=.J origin=null r: TYPE_OP type=@[FlexibleNullability] java.lang.Runnable? origin=SAM_CONVERSION typeOperand=@[FlexibleNullability] java.lang.Runnable? TYPE_OP type=kotlin.Function0 origin=IMPLICIT_CAST typeOperand=kotlin.Function0 GET_VAR 'a: kotlin.Any declared in .test6' type=kotlin.Any origin=null @@ -92,7 +92,7 @@ FILE fqName: fileName:/samConversionsWithSmartCasts.kt TYPE_OP type=kotlin.Function0 origin=CAST typeOperand=kotlin.Function0 GET_VAR 'a: kotlin.Function1 declared in .test7' type=kotlin.Function1 origin=null CALL 'public open fun run1 (r: @[FlexibleNullability] java.lang.Runnable?): kotlin.Unit declared in .J' type=kotlin.Unit origin=null - $this: CONSTRUCTOR_CALL 'public constructor () [primary] declared in .J' type=.J origin=null + $this: CONSTRUCTOR_CALL 'public constructor () declared in .J' type=.J origin=null r: TYPE_OP type=@[FlexibleNullability] java.lang.Runnable? origin=SAM_CONVERSION typeOperand=@[FlexibleNullability] java.lang.Runnable? TYPE_OP type=kotlin.Function0 origin=IMPLICIT_CAST typeOperand=kotlin.Function0 GET_VAR 'a: kotlin.Function1 declared in .test7' type=kotlin.Function1 origin=null @@ -100,7 +100,7 @@ FILE fqName: fileName:/samConversionsWithSmartCasts.kt VALUE_PARAMETER name:a index:0 type:kotlin.Function0 BLOCK_BODY CALL 'public open fun run1 (r: @[FlexibleNullability] java.lang.Runnable?): kotlin.Unit declared in .J' type=kotlin.Unit origin=null - $this: CONSTRUCTOR_CALL 'public constructor () [primary] declared in .J' type=.J origin=null + $this: CONSTRUCTOR_CALL 'public constructor () declared in .J' type=.J origin=null r: TYPE_OP type=@[FlexibleNullability] java.lang.Runnable? origin=SAM_CONVERSION typeOperand=@[FlexibleNullability] java.lang.Runnable? CALL 'public open fun id (x: @[FlexibleNullability] T of .J.id?): @[FlexibleNullability] T of .J.id? declared in .J' type=@[FlexibleNullability] kotlin.Function0? origin=null : @[FlexibleNullability] kotlin.Function0? @@ -109,6 +109,6 @@ FILE fqName: fileName:/samConversionsWithSmartCasts.kt FUN name:test9 visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY CALL 'public open fun run1 (r: @[FlexibleNullability] java.lang.Runnable?): kotlin.Unit declared in .J' type=kotlin.Unit origin=null - $this: CONSTRUCTOR_CALL 'public constructor () [primary] declared in .J' type=.J origin=null + $this: CONSTRUCTOR_CALL 'public constructor () declared in .J' type=.J origin=null r: TYPE_OP type=@[FlexibleNullability] java.lang.Runnable? origin=SAM_CONVERSION typeOperand=@[FlexibleNullability] java.lang.Runnable? FUNCTION_REFERENCE 'public final fun test9 (): kotlin.Unit declared in ' type=kotlin.reflect.KFunction0 origin=null reflectionTarget= diff --git a/compiler/testData/ir/irText/expressions/sam/samConversionsWithSmartCasts.ir.txt b/compiler/testData/ir/irText/expressions/sam/samConversionsWithSmartCasts.ir.txt index 21037d89b92..a56a111f75e 100644 --- a/compiler/testData/ir/irText/expressions/sam/samConversionsWithSmartCasts.ir.txt +++ b/compiler/testData/ir/irText/expressions/sam/samConversionsWithSmartCasts.ir.txt @@ -19,7 +19,7 @@ FILE fqName: fileName:/samConversionsWithSmartCasts.kt GET_VAR 'a: kotlin.Function0 declared in .test2' type=kotlin.Function0 origin=null then: BLOCK type=kotlin.Unit origin=null CALL 'public open fun run1 (r: @[FlexibleNullability] java.lang.Runnable?): kotlin.Unit declared in .J' type=kotlin.Unit origin=null - $this: CONSTRUCTOR_CALL 'public constructor () [primary] declared in .J' type=.J origin=null + $this: CONSTRUCTOR_CALL 'public constructor () declared in .J' type=.J origin=null r: TYPE_OP type=java.lang.Runnable origin=IMPLICIT_CAST typeOperand=java.lang.Runnable GET_VAR 'a: kotlin.Function0 declared in .test2' type=kotlin.Function0 origin=null FUN name:test3 visibility:public modality:FINAL <> (a:kotlin.Function0) returnType:kotlin.Unit @@ -31,7 +31,7 @@ FILE fqName: fileName:/samConversionsWithSmartCasts.kt GET_VAR 'a: kotlin.Function0 declared in .test3' type=kotlin.Function0 origin=null then: BLOCK type=kotlin.Unit origin=null CALL 'public open fun run2 (r1: @[FlexibleNullability] java.lang.Runnable?, r2: @[FlexibleNullability] java.lang.Runnable?): kotlin.Unit declared in .J' type=kotlin.Unit origin=null - $this: CONSTRUCTOR_CALL 'public constructor () [primary] declared in .J' type=.J origin=null + $this: CONSTRUCTOR_CALL 'public constructor () declared in .J' type=.J origin=null r1: TYPE_OP type=java.lang.Runnable origin=IMPLICIT_CAST typeOperand=java.lang.Runnable GET_VAR 'a: kotlin.Function0 declared in .test3' type=kotlin.Function0 origin=null r2: TYPE_OP type=java.lang.Runnable origin=IMPLICIT_CAST typeOperand=java.lang.Runnable @@ -46,7 +46,7 @@ FILE fqName: fileName:/samConversionsWithSmartCasts.kt GET_VAR 'a: kotlin.Function0 declared in .test4' type=kotlin.Function0 origin=null then: BLOCK type=kotlin.Unit origin=null CALL 'public open fun run2 (r1: @[FlexibleNullability] java.lang.Runnable?, r2: @[FlexibleNullability] java.lang.Runnable?): kotlin.Unit declared in .J' type=kotlin.Unit origin=null - $this: CONSTRUCTOR_CALL 'public constructor () [primary] declared in .J' type=.J origin=null + $this: CONSTRUCTOR_CALL 'public constructor () declared in .J' type=.J origin=null r1: TYPE_OP type=java.lang.Runnable origin=IMPLICIT_CAST typeOperand=java.lang.Runnable GET_VAR 'a: kotlin.Function0 declared in .test4' type=kotlin.Function0 origin=null r2: TYPE_OP type=@[FlexibleNullability] java.lang.Runnable? origin=SAM_CONVERSION typeOperand=@[FlexibleNullability] java.lang.Runnable? @@ -60,7 +60,7 @@ FILE fqName: fileName:/samConversionsWithSmartCasts.kt GET_VAR 'a: kotlin.Any declared in .test5' type=kotlin.Any origin=null then: BLOCK type=kotlin.Unit origin=null CALL 'public open fun run1 (r: @[FlexibleNullability] java.lang.Runnable?): kotlin.Unit declared in .J' type=kotlin.Unit origin=null - $this: CONSTRUCTOR_CALL 'public constructor () [primary] declared in .J' type=.J origin=null + $this: CONSTRUCTOR_CALL 'public constructor () declared in .J' type=.J origin=null r: TYPE_OP type=java.lang.Runnable origin=IMPLICIT_CAST typeOperand=java.lang.Runnable GET_VAR 'a: kotlin.Any declared in .test5' type=kotlin.Any origin=null FUN name:test5x visibility:public modality:FINAL <> (a:kotlin.Any) returnType:kotlin.Unit @@ -75,7 +75,7 @@ FILE fqName: fileName:/samConversionsWithSmartCasts.kt TYPE_OP type=kotlin.Function0 origin=CAST typeOperand=kotlin.Function0 GET_VAR 'a: kotlin.Any declared in .test5x' type=kotlin.Any origin=null CALL 'public open fun run1 (r: @[FlexibleNullability] java.lang.Runnable?): kotlin.Unit declared in .J' type=kotlin.Unit origin=null - $this: CONSTRUCTOR_CALL 'public constructor () [primary] declared in .J' type=.J origin=null + $this: CONSTRUCTOR_CALL 'public constructor () declared in .J' type=.J origin=null r: TYPE_OP type=java.lang.Runnable origin=IMPLICIT_CAST typeOperand=java.lang.Runnable GET_VAR 'a: kotlin.Any declared in .test5x' type=kotlin.Any origin=null FUN name:test6 visibility:public modality:FINAL <> (a:kotlin.Any) returnType:kotlin.Unit @@ -85,7 +85,7 @@ FILE fqName: fileName:/samConversionsWithSmartCasts.kt TYPE_OP type=kotlin.Function0 origin=CAST typeOperand=kotlin.Function0 GET_VAR 'a: kotlin.Any declared in .test6' type=kotlin.Any origin=null CALL 'public open fun run1 (r: @[FlexibleNullability] java.lang.Runnable?): kotlin.Unit declared in .J' type=kotlin.Unit origin=null - $this: CONSTRUCTOR_CALL 'public constructor () [primary] declared in .J' type=.J origin=null + $this: CONSTRUCTOR_CALL 'public constructor () declared in .J' type=.J origin=null r: TYPE_OP type=@[FlexibleNullability] java.lang.Runnable? origin=SAM_CONVERSION typeOperand=@[FlexibleNullability] java.lang.Runnable? TYPE_OP type=kotlin.Function0 origin=IMPLICIT_CAST typeOperand=kotlin.Function0 GET_VAR 'a: kotlin.Any declared in .test6' type=kotlin.Any origin=null @@ -96,7 +96,7 @@ FILE fqName: fileName:/samConversionsWithSmartCasts.kt TYPE_OP type=kotlin.Function0 origin=CAST typeOperand=kotlin.Function0 GET_VAR 'a: kotlin.Function1 declared in .test7' type=kotlin.Function1 origin=null CALL 'public open fun run1 (r: @[FlexibleNullability] java.lang.Runnable?): kotlin.Unit declared in .J' type=kotlin.Unit origin=null - $this: CONSTRUCTOR_CALL 'public constructor () [primary] declared in .J' type=.J origin=null + $this: CONSTRUCTOR_CALL 'public constructor () declared in .J' type=.J origin=null r: TYPE_OP type=@[FlexibleNullability] java.lang.Runnable? origin=SAM_CONVERSION typeOperand=@[FlexibleNullability] java.lang.Runnable? TYPE_OP type=kotlin.Function0 origin=IMPLICIT_CAST typeOperand=kotlin.Function0 GET_VAR 'a: kotlin.Function1 declared in .test7' type=kotlin.Function1 origin=null @@ -104,7 +104,7 @@ FILE fqName: fileName:/samConversionsWithSmartCasts.kt VALUE_PARAMETER name:a index:0 type:kotlin.Function0 BLOCK_BODY CALL 'public open fun run1 (r: @[FlexibleNullability] java.lang.Runnable?): kotlin.Unit declared in .J' type=kotlin.Unit origin=null - $this: CONSTRUCTOR_CALL 'public constructor () [primary] declared in .J' type=.J origin=null + $this: CONSTRUCTOR_CALL 'public constructor () declared in .J' type=.J origin=null r: TYPE_OP type=@[FlexibleNullability] java.lang.Runnable? origin=SAM_CONVERSION typeOperand=@[FlexibleNullability] java.lang.Runnable? CALL 'public open fun id (x: @[FlexibleNullability] T of .J.id?): @[FlexibleNullability] T of .J.id? declared in .J' type=@[FlexibleNullability] kotlin.Function0? origin=null : @[FlexibleNullability] kotlin.Function0? @@ -112,6 +112,6 @@ FILE fqName: fileName:/samConversionsWithSmartCasts.kt FUN name:test9 visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY CALL 'public open fun run1 (r: @[FlexibleNullability] java.lang.Runnable?): kotlin.Unit declared in .J' type=kotlin.Unit origin=null - $this: CONSTRUCTOR_CALL 'public constructor () [primary] declared in .J' type=.J origin=null + $this: CONSTRUCTOR_CALL 'public constructor () declared in .J' type=.J origin=null r: TYPE_OP type=@[FlexibleNullability] java.lang.Runnable? origin=SAM_CONVERSION typeOperand=@[FlexibleNullability] java.lang.Runnable? FUNCTION_REFERENCE 'public final fun test9 (): kotlin.Unit declared in ' type=kotlin.reflect.KFunction0 origin=null reflectionTarget= diff --git a/compiler/testData/ir/irText/expressions/sam/samOperators.fir.ir.txt b/compiler/testData/ir/irText/expressions/sam/samOperators.fir.ir.txt index b0e435a267a..9fae09d9221 100644 --- a/compiler/testData/ir/irText/expressions/sam/samOperators.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/sam/samOperators.fir.ir.txt @@ -4,11 +4,11 @@ FILE fqName: fileName:/samOperators.kt FUN name:test1 visibility:public modality:FINAL <> ($receiver:.J) returnType:kotlin.Unit $receiver: VALUE_PARAMETER name: type:.J BLOCK_BODY - CALL 'public open fun get (k: @[FlexibleNullability] java.lang.Runnable?): kotlin.Unit [operator] declared in .J' type=kotlin.Unit origin=null + CALL 'public open fun get (k: @[FlexibleNullability] java.lang.Runnable?): kotlin.Unit declared in .J' type=kotlin.Unit origin=null $this: GET_VAR ': .J declared in .test1' type=.J origin=null k: TYPE_OP type=@[FlexibleNullability] java.lang.Runnable? origin=SAM_CONVERSION typeOperand=@[FlexibleNullability] java.lang.Runnable? FUNCTION_REFERENCE 'public final fun f (): kotlin.Unit declared in ' type=kotlin.reflect.KFunction0 origin=null reflectionTarget= - CALL 'public open fun get (k: @[FlexibleNullability] java.lang.Runnable?, m: @[FlexibleNullability] java.lang.Runnable?): kotlin.Unit [operator] declared in .J' type=kotlin.Unit origin=null + CALL 'public open fun get (k: @[FlexibleNullability] java.lang.Runnable?, m: @[FlexibleNullability] java.lang.Runnable?): kotlin.Unit declared in .J' type=kotlin.Unit origin=null $this: GET_VAR ': .J declared in .test1' type=.J origin=null k: TYPE_OP type=@[FlexibleNullability] java.lang.Runnable? origin=SAM_CONVERSION typeOperand=@[FlexibleNullability] java.lang.Runnable? FUNCTION_REFERENCE 'public final fun f (): kotlin.Unit declared in ' type=kotlin.reflect.KFunction0 origin=null reflectionTarget= @@ -17,13 +17,13 @@ FILE fqName: fileName:/samOperators.kt FUN name:test2 visibility:public modality:FINAL <> ($receiver:.J) returnType:kotlin.Unit $receiver: VALUE_PARAMETER name: type:.J BLOCK_BODY - CALL 'public open fun set (k: @[FlexibleNullability] java.lang.Runnable?, v: @[FlexibleNullability] java.lang.Runnable?): kotlin.Unit [operator] declared in .J' type=kotlin.Unit origin=null + CALL 'public open fun set (k: @[FlexibleNullability] java.lang.Runnable?, v: @[FlexibleNullability] java.lang.Runnable?): kotlin.Unit declared in .J' type=kotlin.Unit origin=null $this: GET_VAR ': .J declared in .test2' type=.J origin=null k: TYPE_OP type=@[FlexibleNullability] java.lang.Runnable? origin=SAM_CONVERSION typeOperand=@[FlexibleNullability] java.lang.Runnable? FUNCTION_REFERENCE 'public final fun f (): kotlin.Unit declared in ' type=kotlin.reflect.KFunction0 origin=null reflectionTarget= v: TYPE_OP type=@[FlexibleNullability] java.lang.Runnable? origin=SAM_CONVERSION typeOperand=@[FlexibleNullability] java.lang.Runnable? FUNCTION_REFERENCE 'public final fun f (): kotlin.Unit declared in ' type=kotlin.reflect.KFunction0 origin=null reflectionTarget= - CALL 'public open fun set (k: @[FlexibleNullability] java.lang.Runnable?, m: @[FlexibleNullability] java.lang.Runnable?, v: @[FlexibleNullability] java.lang.Runnable?): kotlin.Unit [operator] declared in .J' type=kotlin.Unit origin=null + CALL 'public open fun set (k: @[FlexibleNullability] java.lang.Runnable?, m: @[FlexibleNullability] java.lang.Runnable?, v: @[FlexibleNullability] java.lang.Runnable?): kotlin.Unit declared in .J' type=kotlin.Unit origin=null $this: GET_VAR ': .J declared in .test2' type=.J origin=null k: TYPE_OP type=@[FlexibleNullability] java.lang.Runnable? origin=SAM_CONVERSION typeOperand=@[FlexibleNullability] java.lang.Runnable? FUNCTION_REFERENCE 'public final fun f (): kotlin.Unit declared in ' type=kotlin.reflect.KFunction0 origin=null reflectionTarget= @@ -34,11 +34,11 @@ FILE fqName: fileName:/samOperators.kt FUN name:test3 visibility:public modality:FINAL <> ($receiver:.J) returnType:kotlin.Unit $receiver: VALUE_PARAMETER name: type:.J BLOCK_BODY - CALL 'public open fun plusAssign (i: @[FlexibleNullability] java.lang.Runnable?): kotlin.Unit [operator] declared in .J' type=kotlin.Unit origin=null + CALL 'public open fun plusAssign (i: @[FlexibleNullability] java.lang.Runnable?): kotlin.Unit declared in .J' type=kotlin.Unit origin=null $this: GET_VAR ': .J declared in .test3' type=.J origin=null i: TYPE_OP type=@[FlexibleNullability] java.lang.Runnable? origin=SAM_CONVERSION typeOperand=@[FlexibleNullability] java.lang.Runnable? FUNCTION_REFERENCE 'public final fun f (): kotlin.Unit declared in ' type=kotlin.reflect.KFunction0 origin=null reflectionTarget= - CALL 'public open fun minusAssign (i: @[FlexibleNullability] java.lang.Runnable?): kotlin.Unit [operator] declared in .J' type=kotlin.Unit origin=null + CALL 'public open fun minusAssign (i: @[FlexibleNullability] java.lang.Runnable?): kotlin.Unit declared in .J' type=kotlin.Unit origin=null $this: GET_VAR ': .J declared in .test3' type=.J origin=null i: TYPE_OP type=@[FlexibleNullability] java.lang.Runnable? origin=SAM_CONVERSION typeOperand=@[FlexibleNullability] java.lang.Runnable? FUNCTION_REFERENCE 'public final fun f (): kotlin.Unit declared in ' type=kotlin.reflect.KFunction0 origin=null reflectionTarget= diff --git a/compiler/testData/ir/irText/expressions/sam/samOperators.ir.txt b/compiler/testData/ir/irText/expressions/sam/samOperators.ir.txt index 5c538757543..889e1fa240f 100644 --- a/compiler/testData/ir/irText/expressions/sam/samOperators.ir.txt +++ b/compiler/testData/ir/irText/expressions/sam/samOperators.ir.txt @@ -4,11 +4,11 @@ FILE fqName: fileName:/samOperators.kt FUN name:test1 visibility:public modality:FINAL <> ($receiver:.J) returnType:kotlin.Unit $receiver: VALUE_PARAMETER name: type:.J BLOCK_BODY - CALL 'public open fun get (k: @[FlexibleNullability] java.lang.Runnable?): kotlin.Unit [operator] declared in .J' type=kotlin.Unit origin=GET_ARRAY_ELEMENT + CALL 'public open fun get (k: @[FlexibleNullability] java.lang.Runnable?): kotlin.Unit declared in .J' type=kotlin.Unit origin=GET_ARRAY_ELEMENT $this: GET_VAR ': .J declared in .test1' type=.J origin=null k: TYPE_OP type=@[FlexibleNullability] java.lang.Runnable? origin=SAM_CONVERSION typeOperand=@[FlexibleNullability] java.lang.Runnable? FUNCTION_REFERENCE 'public final fun f (): kotlin.Unit declared in ' type=kotlin.reflect.KFunction0 origin=null reflectionTarget= - CALL 'public open fun get (k: @[FlexibleNullability] java.lang.Runnable?, m: @[FlexibleNullability] java.lang.Runnable?): kotlin.Unit [operator] declared in .J' type=kotlin.Unit origin=GET_ARRAY_ELEMENT + CALL 'public open fun get (k: @[FlexibleNullability] java.lang.Runnable?, m: @[FlexibleNullability] java.lang.Runnable?): kotlin.Unit declared in .J' type=kotlin.Unit origin=GET_ARRAY_ELEMENT $this: GET_VAR ': .J declared in .test1' type=.J origin=null k: TYPE_OP type=@[FlexibleNullability] java.lang.Runnable? origin=SAM_CONVERSION typeOperand=@[FlexibleNullability] java.lang.Runnable? FUNCTION_REFERENCE 'public final fun f (): kotlin.Unit declared in ' type=kotlin.reflect.KFunction0 origin=null reflectionTarget= @@ -17,13 +17,13 @@ FILE fqName: fileName:/samOperators.kt FUN name:test2 visibility:public modality:FINAL <> ($receiver:.J) returnType:kotlin.Unit $receiver: VALUE_PARAMETER name: type:.J BLOCK_BODY - CALL 'public open fun set (k: @[FlexibleNullability] java.lang.Runnable?, v: @[FlexibleNullability] java.lang.Runnable?): kotlin.Unit [operator] declared in .J' type=kotlin.Unit origin=EQ + CALL 'public open fun set (k: @[FlexibleNullability] java.lang.Runnable?, v: @[FlexibleNullability] java.lang.Runnable?): kotlin.Unit declared in .J' type=kotlin.Unit origin=EQ $this: GET_VAR ': .J declared in .test2' type=.J origin=null k: TYPE_OP type=@[FlexibleNullability] java.lang.Runnable? origin=SAM_CONVERSION typeOperand=@[FlexibleNullability] java.lang.Runnable? FUNCTION_REFERENCE 'public final fun f (): kotlin.Unit declared in ' type=kotlin.reflect.KFunction0 origin=null reflectionTarget= v: TYPE_OP type=@[FlexibleNullability] java.lang.Runnable? origin=SAM_CONVERSION typeOperand=@[FlexibleNullability] java.lang.Runnable? FUNCTION_REFERENCE 'public final fun f (): kotlin.Unit declared in ' type=kotlin.reflect.KFunction0 origin=null reflectionTarget= - CALL 'public open fun set (k: @[FlexibleNullability] java.lang.Runnable?, m: @[FlexibleNullability] java.lang.Runnable?, v: @[FlexibleNullability] java.lang.Runnable?): kotlin.Unit [operator] declared in .J' type=kotlin.Unit origin=EQ + CALL 'public open fun set (k: @[FlexibleNullability] java.lang.Runnable?, m: @[FlexibleNullability] java.lang.Runnable?, v: @[FlexibleNullability] java.lang.Runnable?): kotlin.Unit declared in .J' type=kotlin.Unit origin=EQ $this: GET_VAR ': .J declared in .test2' type=.J origin=null k: TYPE_OP type=@[FlexibleNullability] java.lang.Runnable? origin=SAM_CONVERSION typeOperand=@[FlexibleNullability] java.lang.Runnable? FUNCTION_REFERENCE 'public final fun f (): kotlin.Unit declared in ' type=kotlin.reflect.KFunction0 origin=null reflectionTarget= @@ -34,11 +34,11 @@ FILE fqName: fileName:/samOperators.kt FUN name:test3 visibility:public modality:FINAL <> ($receiver:.J) returnType:kotlin.Unit $receiver: VALUE_PARAMETER name: type:.J BLOCK_BODY - CALL 'public open fun plusAssign (i: @[FlexibleNullability] java.lang.Runnable?): kotlin.Unit [operator] declared in .J' type=kotlin.Unit origin=PLUSEQ + CALL 'public open fun plusAssign (i: @[FlexibleNullability] java.lang.Runnable?): kotlin.Unit declared in .J' type=kotlin.Unit origin=PLUSEQ $this: GET_VAR ': .J declared in .test3' type=.J origin=PLUSEQ i: TYPE_OP type=@[FlexibleNullability] java.lang.Runnable? origin=SAM_CONVERSION typeOperand=@[FlexibleNullability] java.lang.Runnable? FUNCTION_REFERENCE 'public final fun f (): kotlin.Unit declared in ' type=kotlin.reflect.KFunction0 origin=null reflectionTarget= - CALL 'public open fun minusAssign (i: @[FlexibleNullability] java.lang.Runnable?): kotlin.Unit [operator] declared in .J' type=kotlin.Unit origin=MINUSEQ + CALL 'public open fun minusAssign (i: @[FlexibleNullability] java.lang.Runnable?): kotlin.Unit declared in .J' type=kotlin.Unit origin=MINUSEQ $this: GET_VAR ': .J declared in .test3' type=.J origin=MINUSEQ i: TYPE_OP type=@[FlexibleNullability] java.lang.Runnable? origin=SAM_CONVERSION typeOperand=@[FlexibleNullability] java.lang.Runnable? FUNCTION_REFERENCE 'public final fun f (): kotlin.Unit declared in ' type=kotlin.reflect.KFunction0 origin=null reflectionTarget= diff --git a/compiler/testData/ir/irText/expressions/setFieldWithImplicitCast.fir.ir.txt b/compiler/testData/ir/irText/expressions/setFieldWithImplicitCast.fir.ir.txt index 00f216f2a4c..1e7343ac43f 100644 --- a/compiler/testData/ir/irText/expressions/setFieldWithImplicitCast.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/setFieldWithImplicitCast.fir.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/Derived.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Derived CONSTRUCTOR visibility:public <> () returnType:.Derived [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .Base' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .Base' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Derived modality:FINAL visibility:public superTypes:[.Base]' FUN name:setValue visibility:public modality:FINAL <> ($this:.Derived, v:kotlin.Any) returnType:kotlin.Unit $this: VALUE_PARAMETER name: type:.Derived @@ -20,14 +20,14 @@ FILE fqName: fileName:/Derived.kt GET_VAR 'v: kotlin.Any declared in .Derived.setValue' type=kotlin.Any 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 [fake_override,operator] declared in .Base + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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 + public open fun hashCode (): kotlin.Int 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 + public open fun toString (): kotlin.String declared in .Base $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/expressions/setFieldWithImplicitCast.ir.txt b/compiler/testData/ir/irText/expressions/setFieldWithImplicitCast.ir.txt index ca547b1342f..58cf56445aa 100644 --- a/compiler/testData/ir/irText/expressions/setFieldWithImplicitCast.ir.txt +++ b/compiler/testData/ir/irText/expressions/setFieldWithImplicitCast.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/Derived.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Derived CONSTRUCTOR visibility:public <> () returnType:.Derived [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .Base' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .Base' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Derived modality:FINAL visibility:public superTypes:[.Base]' FUN name:setValue visibility:public modality:FINAL <> ($this:.Derived, v:kotlin.Any) returnType:kotlin.Unit $this: VALUE_PARAMETER name: type:.Derived @@ -20,17 +20,17 @@ FILE fqName: fileName:/Derived.kt GET_VAR 'v: kotlin.Any declared in .Derived.setValue' type=kotlin.Any 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 [fake_override,operator] declared in .Base + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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 + public open fun hashCode (): kotlin.Int 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 + public open fun toString (): kotlin.String declared in .Base $this: VALUE_PARAMETER name: type:kotlin.Any PROPERTY FAKE_OVERRIDE name:value visibility:public modality:FINAL [fake_override,var] overridden: - public final value: @[FlexibleNullability] kotlin.String? [var] + public final value: @[FlexibleNullability] kotlin.String? diff --git a/compiler/testData/ir/irText/expressions/signedToUnsignedConversions.fir.ir.txt b/compiler/testData/ir/irText/expressions/signedToUnsignedConversions.fir.ir.txt index 4076e86d700..a677baa81bd 100644 --- a/compiler/testData/ir/irText/expressions/signedToUnsignedConversions.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/signedToUnsignedConversions.fir.ir.txt @@ -3,20 +3,20 @@ FILE fqName:kotlin.internal fileName:/signedToUnsignedConversions_annotation.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:kotlin.internal.ImplicitIntegerCoercion CONSTRUCTOR visibility:public <> () returnType:kotlin.internal.ImplicitIntegerCoercion [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:ImplicitIntegerCoercion modality:OPEN visibility:public superTypes:[kotlin.Annotation]' 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 kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any FILE fqName: fileName:/signedToUnsignedConversions_test.kt PROPERTY name:IMPLICIT_INT visibility:public modality:FINAL [const,val] @@ -118,27 +118,27 @@ FILE fqName: fileName:/signedToUnsignedConversions_test.kt FUN name:test visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY CALL 'public final fun takeUByte (u: kotlin.UByte): kotlin.Unit declared in ' type=kotlin.Unit origin=null - u: CALL 'public final fun toUByte (): kotlin.UByte [inline] declared in kotlin' type=kotlin.UByte origin=null + u: CALL 'public final fun toUByte (): kotlin.UByte declared in kotlin' type=kotlin.UByte origin=null $receiver: CONST Int type=kotlin.Int value=255 CALL 'public final fun takeUByte (u: kotlin.UByte): kotlin.Unit declared in ' type=kotlin.Unit origin=null - u: CALL 'public final fun toUByte (): kotlin.UByte [inline] declared in kotlin' type=kotlin.UByte origin=null + u: CALL 'public final fun toUByte (): kotlin.UByte declared in kotlin' type=kotlin.UByte origin=null $receiver: CONST Int type=kotlin.Int value=255 CALL 'public final fun takeUShort (u: kotlin.UShort): kotlin.Unit declared in ' type=kotlin.Unit origin=null - u: CALL 'public final fun toUShort (): kotlin.UShort [inline] declared in kotlin' type=kotlin.UShort origin=null + u: CALL 'public final fun toUShort (): kotlin.UShort declared in kotlin' type=kotlin.UShort origin=null $receiver: CONST Int type=kotlin.Int value=255 CALL 'public final fun takeUShort (u: kotlin.UShort): kotlin.Unit declared in ' type=kotlin.Unit origin=null - u: CALL 'public final fun toUShort (): kotlin.UShort [inline] declared in kotlin' type=kotlin.UShort origin=null + u: CALL 'public final fun toUShort (): kotlin.UShort declared in kotlin' type=kotlin.UShort origin=null $receiver: CONST Int type=kotlin.Int value=256 CALL 'public final fun takeUInt (u: kotlin.UInt): kotlin.Unit declared in ' type=kotlin.Unit origin=null - u: CALL 'public final fun toUInt (): kotlin.UInt [inline] declared in kotlin' type=kotlin.UInt origin=null + u: CALL 'public final fun toUInt (): kotlin.UInt declared in kotlin' type=kotlin.UInt origin=null $receiver: CONST Int type=kotlin.Int value=255 CALL 'public final fun takeULong (u: kotlin.ULong): kotlin.Unit declared in ' type=kotlin.Unit origin=null - u: CALL 'public final fun toULong (): kotlin.ULong [inline] declared in kotlin' type=kotlin.ULong origin=null + u: CALL 'public final fun toULong (): kotlin.ULong declared in kotlin' type=kotlin.ULong origin=null $receiver: CONST Int type=kotlin.Int value=255 CALL 'public final fun takeUBytes (vararg u: kotlin.UByte): kotlin.Unit declared in ' type=kotlin.Unit origin=null u: VARARG type=kotlin.UByteArray varargElementType=kotlin.UByte - CALL 'public final fun toUByte (): kotlin.UByte [inline] declared in kotlin' type=kotlin.UByte origin=null + CALL 'public final fun toUByte (): kotlin.UByte declared in kotlin' type=kotlin.UByte origin=null $receiver: CONST Int type=kotlin.Int value=255 - CALL 'public final fun toUByte (): kotlin.UByte [inline] declared in kotlin' type=kotlin.UByte origin=null + CALL 'public final fun toUByte (): kotlin.UByte declared in kotlin' type=kotlin.UByte origin=null $receiver: CONST Int type=kotlin.Int value=255 CONST Byte type=kotlin.UByte value=42 diff --git a/compiler/testData/ir/irText/expressions/signedToUnsignedConversions.ir.txt b/compiler/testData/ir/irText/expressions/signedToUnsignedConversions.ir.txt index f2578a03b18..77f0936b2d1 100644 --- a/compiler/testData/ir/irText/expressions/signedToUnsignedConversions.ir.txt +++ b/compiler/testData/ir/irText/expressions/signedToUnsignedConversions.ir.txt @@ -3,20 +3,20 @@ FILE fqName:kotlin.internal fileName:/signedToUnsignedConversions_annotation.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:kotlin.internal.ImplicitIntegerCoercion CONSTRUCTOR visibility:public <> () returnType:kotlin.internal.ImplicitIntegerCoercion [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:ImplicitIntegerCoercion modality:OPEN visibility:public superTypes:[kotlin.Annotation]' 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 kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any FILE fqName: fileName:/signedToUnsignedConversions_test.kt PROPERTY name:IMPLICIT_INT visibility:public modality:FINAL [const,val] @@ -118,27 +118,27 @@ FILE fqName: fileName:/signedToUnsignedConversions_test.kt FUN name:test visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY CALL 'public final fun takeUByte (u: kotlin.UByte): kotlin.Unit declared in ' type=kotlin.Unit origin=null - u: CALL 'public final fun toUByte (): kotlin.UByte [inline] declared in kotlin' type=kotlin.UByte origin=null + u: CALL 'public final fun toUByte (): kotlin.UByte declared in kotlin' type=kotlin.UByte origin=null $receiver: CALL 'public final fun (): kotlin.Int declared in ' type=kotlin.Int origin=GET_PROPERTY CALL 'public final fun takeUByte (u: kotlin.UByte): kotlin.Unit declared in ' type=kotlin.Unit origin=null - u: CALL 'public final fun toUByte (): kotlin.UByte [inline] declared in kotlin' type=kotlin.UByte origin=null + u: CALL 'public final fun toUByte (): kotlin.UByte declared in kotlin' type=kotlin.UByte origin=null $receiver: CALL 'public final fun (): kotlin.Int declared in ' type=kotlin.Int origin=GET_PROPERTY CALL 'public final fun takeUShort (u: kotlin.UShort): kotlin.Unit declared in ' type=kotlin.Unit origin=null - u: CALL 'public final fun toUShort (): kotlin.UShort [inline] declared in kotlin' type=kotlin.UShort origin=null + u: CALL 'public final fun toUShort (): kotlin.UShort declared in kotlin' type=kotlin.UShort origin=null $receiver: CALL 'public final fun (): kotlin.Int declared in ' type=kotlin.Int origin=GET_PROPERTY CALL 'public final fun takeUShort (u: kotlin.UShort): kotlin.Unit declared in ' type=kotlin.Unit origin=null - u: CALL 'public final fun toUShort (): kotlin.UShort [inline] declared in kotlin' type=kotlin.UShort origin=null + u: CALL 'public final fun toUShort (): kotlin.UShort declared in kotlin' type=kotlin.UShort origin=null $receiver: CALL 'public final fun (): kotlin.Int declared in ' type=kotlin.Int origin=GET_PROPERTY CALL 'public final fun takeUInt (u: kotlin.UInt): kotlin.Unit declared in ' type=kotlin.Unit origin=null - u: CALL 'public final fun toUInt (): kotlin.UInt [inline] declared in kotlin' type=kotlin.UInt origin=null + u: CALL 'public final fun toUInt (): kotlin.UInt declared in kotlin' type=kotlin.UInt origin=null $receiver: CALL 'public final fun (): kotlin.Int declared in ' type=kotlin.Int origin=GET_PROPERTY CALL 'public final fun takeULong (u: kotlin.ULong): kotlin.Unit declared in ' type=kotlin.Unit origin=null - u: CALL 'public final fun toULong (): kotlin.ULong [inline] declared in kotlin' type=kotlin.ULong origin=null + u: CALL 'public final fun toULong (): kotlin.ULong declared in kotlin' type=kotlin.ULong origin=null $receiver: CALL 'public final fun (): kotlin.Int declared in ' type=kotlin.Int origin=GET_PROPERTY CALL 'public final fun takeUBytes (vararg u: kotlin.UByte): kotlin.Unit declared in ' type=kotlin.Unit origin=null u: VARARG type=kotlin.UByteArray varargElementType=kotlin.UByte - CALL 'public final fun toUByte (): kotlin.UByte [inline] declared in kotlin' type=kotlin.UByte origin=null + CALL 'public final fun toUByte (): kotlin.UByte declared in kotlin' type=kotlin.UByte origin=null $receiver: CALL 'public final fun (): kotlin.Int declared in ' type=kotlin.Int origin=GET_PROPERTY - CALL 'public final fun toUByte (): kotlin.UByte [inline] declared in kotlin' type=kotlin.UByte origin=null + CALL 'public final fun toUByte (): kotlin.UByte declared in kotlin' type=kotlin.UByte origin=null $receiver: CALL 'public final fun (): kotlin.Int declared in ' type=kotlin.Int origin=GET_PROPERTY CONST Byte type=kotlin.UByte value=42 diff --git a/compiler/testData/ir/irText/expressions/simpleOperators.ir.txt b/compiler/testData/ir/irText/expressions/simpleOperators.ir.txt index 9817f860fdb..8a4f97bfa97 100644 --- a/compiler/testData/ir/irText/expressions/simpleOperators.ir.txt +++ b/compiler/testData/ir/irText/expressions/simpleOperators.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/simpleOperators.kt VALUE_PARAMETER name:b index:1 type:kotlin.Int BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test1 (a: kotlin.Int, b: kotlin.Int): kotlin.Int declared in ' - CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUS + CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUS $this: GET_VAR 'a: kotlin.Int declared in .test1' type=kotlin.Int origin=null other: GET_VAR 'b: kotlin.Int declared in .test1' type=kotlin.Int origin=null FUN name:test2 visibility:public modality:FINAL <> (a:kotlin.Int, b:kotlin.Int) returnType:kotlin.Int @@ -12,7 +12,7 @@ FILE fqName: fileName:/simpleOperators.kt VALUE_PARAMETER name:b index:1 type:kotlin.Int BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test2 (a: kotlin.Int, b: kotlin.Int): kotlin.Int declared in ' - CALL 'public final fun minus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=MINUS + CALL 'public final fun minus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=MINUS $this: GET_VAR 'a: kotlin.Int declared in .test2' type=kotlin.Int origin=null other: GET_VAR 'b: kotlin.Int declared in .test2' type=kotlin.Int origin=null FUN name:test3 visibility:public modality:FINAL <> (a:kotlin.Int, b:kotlin.Int) returnType:kotlin.Int @@ -20,7 +20,7 @@ FILE fqName: fileName:/simpleOperators.kt VALUE_PARAMETER name:b index:1 type:kotlin.Int BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test3 (a: kotlin.Int, b: kotlin.Int): kotlin.Int declared in ' - CALL 'public final fun times (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=MUL + CALL 'public final fun times (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=MUL $this: GET_VAR 'a: kotlin.Int declared in .test3' type=kotlin.Int origin=null other: GET_VAR 'b: kotlin.Int declared in .test3' type=kotlin.Int origin=null FUN name:test4 visibility:public modality:FINAL <> (a:kotlin.Int, b:kotlin.Int) returnType:kotlin.Int @@ -28,7 +28,7 @@ FILE fqName: fileName:/simpleOperators.kt VALUE_PARAMETER name:b index:1 type:kotlin.Int BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test4 (a: kotlin.Int, b: kotlin.Int): kotlin.Int declared in ' - CALL 'public final fun div (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=DIV + CALL 'public final fun div (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=DIV $this: GET_VAR 'a: kotlin.Int declared in .test4' type=kotlin.Int origin=null other: GET_VAR 'b: kotlin.Int declared in .test4' type=kotlin.Int origin=null FUN name:test5 visibility:public modality:FINAL <> (a:kotlin.Int, b:kotlin.Int) returnType:kotlin.Int @@ -36,7 +36,7 @@ FILE fqName: fileName:/simpleOperators.kt VALUE_PARAMETER name:b index:1 type:kotlin.Int BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test5 (a: kotlin.Int, b: kotlin.Int): kotlin.Int declared in ' - CALL 'public final fun rem (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PERC + CALL 'public final fun rem (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PERC $this: GET_VAR 'a: kotlin.Int declared in .test5' type=kotlin.Int origin=null other: GET_VAR 'b: kotlin.Int declared in .test5' type=kotlin.Int origin=null FUN name:test6 visibility:public modality:FINAL <> (a:kotlin.Int, b:kotlin.Int) returnType:kotlin.ranges.IntRange @@ -44,7 +44,7 @@ FILE fqName: fileName:/simpleOperators.kt VALUE_PARAMETER name:b index:1 type:kotlin.Int BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test6 (a: kotlin.Int, b: kotlin.Int): kotlin.ranges.IntRange declared in ' - CALL 'public final fun rangeTo (other: kotlin.Int): kotlin.ranges.IntRange [operator] declared in kotlin.Int' type=kotlin.ranges.IntRange origin=RANGE + CALL 'public final fun rangeTo (other: kotlin.Int): kotlin.ranges.IntRange declared in kotlin.Int' type=kotlin.ranges.IntRange origin=RANGE $this: GET_VAR 'a: kotlin.Int declared in .test6' type=kotlin.Int origin=null other: GET_VAR 'b: kotlin.Int declared in .test6' type=kotlin.Int origin=null FUN name:test1x visibility:public modality:FINAL <> (a:kotlin.Int, b:kotlin.Int) returnType:kotlin.Int @@ -52,7 +52,7 @@ FILE fqName: fileName:/simpleOperators.kt VALUE_PARAMETER name:b index:1 type:kotlin.Int BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test1x (a: kotlin.Int, b: kotlin.Int): kotlin.Int declared in ' - CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null + CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: GET_VAR 'a: kotlin.Int declared in .test1x' type=kotlin.Int origin=null other: GET_VAR 'b: kotlin.Int declared in .test1x' type=kotlin.Int origin=null FUN name:test2x visibility:public modality:FINAL <> (a:kotlin.Int, b:kotlin.Int) returnType:kotlin.Int @@ -60,7 +60,7 @@ FILE fqName: fileName:/simpleOperators.kt VALUE_PARAMETER name:b index:1 type:kotlin.Int BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test2x (a: kotlin.Int, b: kotlin.Int): kotlin.Int declared in ' - CALL 'public final fun minus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null + CALL 'public final fun minus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: GET_VAR 'a: kotlin.Int declared in .test2x' type=kotlin.Int origin=null other: GET_VAR 'b: kotlin.Int declared in .test2x' type=kotlin.Int origin=null FUN name:test3x visibility:public modality:FINAL <> (a:kotlin.Int, b:kotlin.Int) returnType:kotlin.Int @@ -68,7 +68,7 @@ FILE fqName: fileName:/simpleOperators.kt VALUE_PARAMETER name:b index:1 type:kotlin.Int BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test3x (a: kotlin.Int, b: kotlin.Int): kotlin.Int declared in ' - CALL 'public final fun times (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null + CALL 'public final fun times (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: GET_VAR 'a: kotlin.Int declared in .test3x' type=kotlin.Int origin=null other: GET_VAR 'b: kotlin.Int declared in .test3x' type=kotlin.Int origin=null FUN name:test4x visibility:public modality:FINAL <> (a:kotlin.Int, b:kotlin.Int) returnType:kotlin.Int @@ -76,7 +76,7 @@ FILE fqName: fileName:/simpleOperators.kt VALUE_PARAMETER name:b index:1 type:kotlin.Int BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test4x (a: kotlin.Int, b: kotlin.Int): kotlin.Int declared in ' - CALL 'public final fun div (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null + CALL 'public final fun div (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: GET_VAR 'a: kotlin.Int declared in .test4x' type=kotlin.Int origin=null other: GET_VAR 'b: kotlin.Int declared in .test4x' type=kotlin.Int origin=null FUN name:test5x visibility:public modality:FINAL <> (a:kotlin.Int, b:kotlin.Int) returnType:kotlin.Int @@ -84,6 +84,6 @@ FILE fqName: fileName:/simpleOperators.kt VALUE_PARAMETER name:b index:1 type:kotlin.Int BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test5x (a: kotlin.Int, b: kotlin.Int): kotlin.Int declared in ' - CALL 'public final fun rem (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null + CALL 'public final fun rem (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: GET_VAR 'a: kotlin.Int declared in .test5x' type=kotlin.Int origin=null other: GET_VAR 'b: kotlin.Int declared in .test5x' type=kotlin.Int origin=null diff --git a/compiler/testData/ir/irText/expressions/simpleUnaryOperators.fir.ir.txt b/compiler/testData/ir/irText/expressions/simpleUnaryOperators.fir.ir.txt index 8fcc54e4e44..332624890e3 100644 --- a/compiler/testData/ir/irText/expressions/simpleUnaryOperators.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/simpleUnaryOperators.fir.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/simpleUnaryOperators.kt VALUE_PARAMETER name:x index:0 type:kotlin.Int BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test1 (x: kotlin.Int): kotlin.Int declared in ' - CALL 'public final fun unaryMinus (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null + CALL 'public final fun unaryMinus (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: GET_VAR 'x: kotlin.Int declared in .test1' type=kotlin.Int origin=null FUN name:test2 visibility:public modality:FINAL <> () returnType:kotlin.Int BLOCK_BODY @@ -13,7 +13,7 @@ FILE fqName: fileName:/simpleUnaryOperators.kt VALUE_PARAMETER name:x index:0 type:kotlin.Int BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test3 (x: kotlin.Int): kotlin.Int declared in ' - CALL 'public final fun unaryPlus (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null + CALL 'public final fun unaryPlus (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: GET_VAR 'x: kotlin.Int declared in .test3' type=kotlin.Int origin=null FUN name:test4 visibility:public modality:FINAL <> () returnType:kotlin.Int BLOCK_BODY @@ -23,7 +23,7 @@ FILE fqName: fileName:/simpleUnaryOperators.kt VALUE_PARAMETER name:x index:0 type:kotlin.Boolean BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test5 (x: kotlin.Boolean): kotlin.Boolean declared in ' - CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=null + CALL 'public final fun not (): kotlin.Boolean declared in kotlin.Boolean' type=kotlin.Boolean origin=null $this: GET_VAR 'x: kotlin.Boolean declared in .test5' type=kotlin.Boolean origin=null FUN name:test6 visibility:public modality:FINAL <> () returnType:kotlin.Boolean BLOCK_BODY diff --git a/compiler/testData/ir/irText/expressions/simpleUnaryOperators.ir.txt b/compiler/testData/ir/irText/expressions/simpleUnaryOperators.ir.txt index c3113a636de..a26e943da0f 100644 --- a/compiler/testData/ir/irText/expressions/simpleUnaryOperators.ir.txt +++ b/compiler/testData/ir/irText/expressions/simpleUnaryOperators.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/simpleUnaryOperators.kt VALUE_PARAMETER name:x index:0 type:kotlin.Int BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test1 (x: kotlin.Int): kotlin.Int declared in ' - CALL 'public final fun unaryMinus (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=UMINUS + CALL 'public final fun unaryMinus (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=UMINUS $this: GET_VAR 'x: kotlin.Int declared in .test1' type=kotlin.Int origin=null FUN name:test2 visibility:public modality:FINAL <> () returnType:kotlin.Int BLOCK_BODY @@ -13,7 +13,7 @@ FILE fqName: fileName:/simpleUnaryOperators.kt VALUE_PARAMETER name:x index:0 type:kotlin.Int BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test3 (x: kotlin.Int): kotlin.Int declared in ' - CALL 'public final fun unaryPlus (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=UPLUS + CALL 'public final fun unaryPlus (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=UPLUS $this: GET_VAR 'x: kotlin.Int declared in .test3' type=kotlin.Int origin=null FUN name:test4 visibility:public modality:FINAL <> () returnType:kotlin.Int BLOCK_BODY @@ -23,10 +23,10 @@ FILE fqName: fileName:/simpleUnaryOperators.kt VALUE_PARAMETER name:x index:0 type:kotlin.Boolean BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test5 (x: kotlin.Boolean): kotlin.Boolean declared in ' - CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCL + CALL 'public final fun not (): kotlin.Boolean declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCL $this: GET_VAR 'x: kotlin.Boolean declared in .test5' type=kotlin.Boolean origin=null FUN name:test6 visibility:public modality:FINAL <> () returnType:kotlin.Boolean BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test6 (): kotlin.Boolean declared in ' - CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCL + CALL 'public final fun not (): kotlin.Boolean declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCL $this: CONST Boolean type=kotlin.Boolean value=true diff --git a/compiler/testData/ir/irText/expressions/smartCasts.ir.txt b/compiler/testData/ir/irText/expressions/smartCasts.ir.txt index 54a52534b88..bf00e1a0f21 100644 --- a/compiler/testData/ir/irText/expressions/smartCasts.ir.txt +++ b/compiler/testData/ir/irText/expressions/smartCasts.ir.txt @@ -24,7 +24,7 @@ FILE fqName: fileName:/smartCasts.kt GET_VAR 'x: kotlin.Any declared in .test1' type=kotlin.Any origin=null then: RETURN type=kotlin.Nothing from='public final fun test1 (x: kotlin.Any): kotlin.Unit declared in ' GET_OBJECT 'CLASS IR_EXTERNAL_DECLARATION_STUB OBJECT name:Unit modality:FINAL visibility:public superTypes:[kotlin.Any]' type=kotlin.Unit - CALL 'public final fun println (message: kotlin.Int): kotlin.Unit [inline] declared in kotlin.io' type=kotlin.Unit origin=null + CALL 'public final fun println (message: kotlin.Int): kotlin.Unit declared in kotlin.io' type=kotlin.Unit origin=null message: CALL 'public open fun (): kotlin.Int declared in kotlin.String' type=kotlin.Int origin=GET_PROPERTY $this: TYPE_OP type=kotlin.String origin=IMPLICIT_CAST typeOperand=kotlin.String GET_VAR 'x: kotlin.Any declared in .test1' type=kotlin.Any origin=null diff --git a/compiler/testData/ir/irText/expressions/smartCastsWithDestructuring.fir.ir.txt b/compiler/testData/ir/irText/expressions/smartCastsWithDestructuring.fir.ir.txt index a487304ede7..4c5b93d3950 100644 --- a/compiler/testData/ir/irText/expressions/smartCastsWithDestructuring.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/smartCastsWithDestructuring.fir.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/smartCastsWithDestructuring.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -18,7 +18,7 @@ FILE fqName: fileName:/smartCastsWithDestructuring.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -32,12 +32,12 @@ FILE fqName: fileName:/smartCastsWithDestructuring.kt FUN name:component1 visibility:public modality:FINAL <> ($receiver:.I1) returnType:kotlin.Int [operator] $receiver: VALUE_PARAMETER name: type:.I1 BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Int [operator] declared in ' + RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Int declared in ' CONST Int type=kotlin.Int value=1 FUN name:component2 visibility:public modality:FINAL <> ($receiver:.I2) returnType:kotlin.String [operator] $receiver: VALUE_PARAMETER name: type:.I2 BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component2 (): kotlin.String [operator] declared in ' + RETURN type=kotlin.Nothing from='public final fun component2 (): kotlin.String declared in ' CONST String type=kotlin.String value="" FUN name:test visibility:public modality:FINAL <> (x:.I1) returnType:kotlin.Unit VALUE_PARAMETER name:x index:0 type:.I1 @@ -52,10 +52,10 @@ FILE fqName: fileName:/smartCastsWithDestructuring.kt TYPE_OP type=.I2 origin=IMPLICIT_CAST typeOperand=.I2 GET_VAR 'x: .I1 declared in .test' type=.I1 origin=null VAR name:c1 type:kotlin.Int [val] - CALL 'public final fun component1 (): kotlin.Int [operator] declared in ' type=kotlin.Int origin=COMPONENT_N(index=1) + CALL 'public final fun component1 (): kotlin.Int declared in ' type=kotlin.Int origin=COMPONENT_N(index=1) $receiver: TYPE_OP type=.I2 origin=IMPLICIT_CAST typeOperand=.I2 - GET_VAR 'val tmp_0: .I1 [val] declared in .test' type=.I1 origin=null + GET_VAR 'val tmp_0: .I1 declared in .test' type=.I1 origin=null VAR name:c2 type:kotlin.String [val] - CALL 'public final fun component2 (): kotlin.String [operator] declared in ' type=kotlin.String origin=COMPONENT_N(index=2) + CALL 'public final fun component2 (): kotlin.String declared in ' type=kotlin.String origin=COMPONENT_N(index=2) $receiver: TYPE_OP type=.I2 origin=IMPLICIT_CAST typeOperand=.I2 - GET_VAR 'val tmp_0: .I1 [val] declared in .test' type=.I1 origin=null + GET_VAR 'val tmp_0: .I1 declared in .test' type=.I1 origin=null diff --git a/compiler/testData/ir/irText/expressions/smartCastsWithDestructuring.ir.txt b/compiler/testData/ir/irText/expressions/smartCastsWithDestructuring.ir.txt index 278e9257ecb..bf1d272a16a 100644 --- a/compiler/testData/ir/irText/expressions/smartCastsWithDestructuring.ir.txt +++ b/compiler/testData/ir/irText/expressions/smartCastsWithDestructuring.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/smartCastsWithDestructuring.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -18,7 +18,7 @@ FILE fqName: fileName:/smartCastsWithDestructuring.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -32,12 +32,12 @@ FILE fqName: fileName:/smartCastsWithDestructuring.kt FUN name:component1 visibility:public modality:FINAL <> ($receiver:.I1) returnType:kotlin.Int [operator] $receiver: VALUE_PARAMETER name: type:.I1 BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Int [operator] declared in ' + RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Int declared in ' CONST Int type=kotlin.Int value=1 FUN name:component2 visibility:public modality:FINAL <> ($receiver:.I2) returnType:kotlin.String [operator] $receiver: VALUE_PARAMETER name: type:.I2 BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component2 (): kotlin.String [operator] declared in ' + RETURN type=kotlin.Nothing from='public final fun component2 (): kotlin.String declared in ' CONST String type=kotlin.String value="" FUN name:test visibility:public modality:FINAL <> (x:.I1) returnType:kotlin.Unit VALUE_PARAMETER name:x index:0 type:.I1 @@ -53,9 +53,9 @@ FILE fqName: fileName:/smartCastsWithDestructuring.kt TYPE_OP type=.I2 origin=IMPLICIT_CAST typeOperand=.I2 GET_VAR 'x: .I1 declared in .test' type=.I1 origin=null VAR name:c1 type:kotlin.Int [val] - CALL 'public final fun component1 (): kotlin.Int [operator] declared in ' type=kotlin.Int origin=COMPONENT_N(index=1) + CALL 'public final fun component1 (): kotlin.Int declared in ' type=kotlin.Int origin=COMPONENT_N(index=1) $receiver: TYPE_OP type=.I1 origin=IMPLICIT_CAST typeOperand=.I1 - GET_VAR 'val tmp_0: .I2 [val] declared in .test' type=.I2 origin=null + GET_VAR 'val tmp_0: .I2 declared in .test' type=.I2 origin=null VAR name:c2 type:kotlin.String [val] - CALL 'public final fun component2 (): kotlin.String [operator] declared in ' type=kotlin.String origin=COMPONENT_N(index=2) - $receiver: GET_VAR 'val tmp_0: .I2 [val] declared in .test' type=.I2 origin=null + CALL 'public final fun component2 (): kotlin.String declared in ' type=kotlin.String origin=COMPONENT_N(index=2) + $receiver: GET_VAR 'val tmp_0: .I2 declared in .test' type=.I2 origin=null diff --git a/compiler/testData/ir/irText/expressions/specializedTypeAliasConstructorCall.fir.ir.txt b/compiler/testData/ir/irText/expressions/specializedTypeAliasConstructorCall.fir.ir.txt index 31721ffb797..d280e9c0431 100644 --- a/compiler/testData/ir/irText/expressions/specializedTypeAliasConstructorCall.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/specializedTypeAliasConstructorCall.fir.ir.txt @@ -6,7 +6,7 @@ FILE fqName: fileName:/specializedTypeAliasConstructorCall.kt CONSTRUCTOR visibility:public <> (value:T of .Cell) returnType:.Cell.Cell> [primary] VALUE_PARAMETER name:value index:0 type:T of .Cell BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Cell modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:value visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:value type:T of .Cell visibility:private [final] @@ -21,7 +21,7 @@ FILE fqName: fileName:/specializedTypeAliasConstructorCall.kt receiver: GET_VAR ': .Cell.Cell> declared in .Cell.' type=.Cell.Cell> 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -35,6 +35,6 @@ FILE fqName: fileName:/specializedTypeAliasConstructorCall.kt FUN name:test visibility:public modality:FINAL <> () returnType:.Cell BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test (): .Cell declared in ' - CONSTRUCTOR_CALL 'public constructor (value: T of .Cell) [primary] declared in .Cell' type=.Cell origin=null + CONSTRUCTOR_CALL 'public constructor (value: T of .Cell) declared in .Cell' type=.Cell origin=null : value: CONST Int type=kotlin.Int value=42 diff --git a/compiler/testData/ir/irText/expressions/specializedTypeAliasConstructorCall.ir.txt b/compiler/testData/ir/irText/expressions/specializedTypeAliasConstructorCall.ir.txt index bb5ff0a5cac..248d40b460e 100644 --- a/compiler/testData/ir/irText/expressions/specializedTypeAliasConstructorCall.ir.txt +++ b/compiler/testData/ir/irText/expressions/specializedTypeAliasConstructorCall.ir.txt @@ -5,7 +5,7 @@ FILE fqName: fileName:/specializedTypeAliasConstructorCall.kt CONSTRUCTOR visibility:public <> (value:T of .Cell) returnType:.Cell.Cell> [primary] VALUE_PARAMETER name:value index:0 type:T of .Cell BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Cell modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:value visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:value type:T of .Cell visibility:private [final] @@ -20,7 +20,7 @@ FILE fqName: fileName:/specializedTypeAliasConstructorCall.kt receiver: GET_VAR ': .Cell.Cell> declared in .Cell.' type=.Cell.Cell> 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -35,6 +35,6 @@ FILE fqName: fileName:/specializedTypeAliasConstructorCall.kt FUN name:test visibility:public modality:FINAL <> () returnType:.Cell{ .IntAlias } BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test (): .Cell{ .IntAlias } declared in ' - CONSTRUCTOR_CALL 'public constructor (value: T of .Cell) [primary] declared in .Cell' type=.Cell origin=null + CONSTRUCTOR_CALL 'public constructor (value: T of .Cell) declared in .Cell' type=.Cell origin=null : kotlin.Int value: CONST Int type=kotlin.Int value=42 diff --git a/compiler/testData/ir/irText/expressions/stringComparisons.fir.ir.txt b/compiler/testData/ir/irText/expressions/stringComparisons.fir.ir.txt index f09a8ea67a9..7fcdb9e3b2f 100644 --- a/compiler/testData/ir/irText/expressions/stringComparisons.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/stringComparisons.fir.ir.txt @@ -5,7 +5,7 @@ FILE fqName: fileName:/stringComparisons.kt BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test1 (a: kotlin.String, b: kotlin.String): kotlin.Boolean declared in ' CALL 'public final fun greater (arg0: kotlin.Int, arg1: kotlin.Int): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=GT - arg0: CALL 'public open fun compareTo (other: kotlin.String): kotlin.Int [operator] declared in kotlin.String' type=kotlin.Int origin=null + arg0: CALL 'public open fun compareTo (other: kotlin.String): kotlin.Int declared in kotlin.String' type=kotlin.Int origin=null $this: GET_VAR 'a: kotlin.String declared in .test1' type=kotlin.String origin=null other: GET_VAR 'b: kotlin.String declared in .test1' type=kotlin.String origin=null arg1: CONST Int type=kotlin.Int value=0 @@ -15,7 +15,7 @@ FILE fqName: fileName:/stringComparisons.kt BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test2 (a: kotlin.String, b: kotlin.String): kotlin.Boolean declared in ' CALL 'public final fun less (arg0: kotlin.Int, arg1: kotlin.Int): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=LT - arg0: CALL 'public open fun compareTo (other: kotlin.String): kotlin.Int [operator] declared in kotlin.String' type=kotlin.Int origin=null + arg0: CALL 'public open fun compareTo (other: kotlin.String): kotlin.Int declared in kotlin.String' type=kotlin.Int origin=null $this: GET_VAR 'a: kotlin.String declared in .test2' type=kotlin.String origin=null other: GET_VAR 'b: kotlin.String declared in .test2' type=kotlin.String origin=null arg1: CONST Int type=kotlin.Int value=0 @@ -25,7 +25,7 @@ FILE fqName: fileName:/stringComparisons.kt BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test3 (a: kotlin.String, b: kotlin.String): kotlin.Boolean declared in ' CALL 'public final fun greaterOrEqual (arg0: kotlin.Int, arg1: kotlin.Int): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=GTEQ - arg0: CALL 'public open fun compareTo (other: kotlin.String): kotlin.Int [operator] declared in kotlin.String' type=kotlin.Int origin=null + arg0: CALL 'public open fun compareTo (other: kotlin.String): kotlin.Int declared in kotlin.String' type=kotlin.Int origin=null $this: GET_VAR 'a: kotlin.String declared in .test3' type=kotlin.String origin=null other: GET_VAR 'b: kotlin.String declared in .test3' type=kotlin.String origin=null arg1: CONST Int type=kotlin.Int value=0 @@ -35,7 +35,7 @@ FILE fqName: fileName:/stringComparisons.kt BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test4 (a: kotlin.String, b: kotlin.String): kotlin.Boolean declared in ' CALL 'public final fun lessOrEqual (arg0: kotlin.Int, arg1: kotlin.Int): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=LTEQ - arg0: CALL 'public open fun compareTo (other: kotlin.String): kotlin.Int [operator] declared in kotlin.String' type=kotlin.Int origin=null + arg0: CALL 'public open fun compareTo (other: kotlin.String): kotlin.Int declared in kotlin.String' type=kotlin.Int origin=null $this: GET_VAR 'a: kotlin.String declared in .test4' type=kotlin.String origin=null other: GET_VAR 'b: kotlin.String declared in .test4' type=kotlin.String origin=null arg1: CONST Int type=kotlin.Int value=0 diff --git a/compiler/testData/ir/irText/expressions/stringComparisons.ir.txt b/compiler/testData/ir/irText/expressions/stringComparisons.ir.txt index 55083122ff8..4d658e9eac0 100644 --- a/compiler/testData/ir/irText/expressions/stringComparisons.ir.txt +++ b/compiler/testData/ir/irText/expressions/stringComparisons.ir.txt @@ -5,7 +5,7 @@ FILE fqName: fileName:/stringComparisons.kt BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test1 (a: kotlin.String, b: kotlin.String): kotlin.Boolean declared in ' CALL 'public final fun greater (arg0: kotlin.Int, arg1: kotlin.Int): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=GT - arg0: CALL 'public open fun compareTo (other: kotlin.String): kotlin.Int [operator] declared in kotlin.String' type=kotlin.Int origin=GT + arg0: CALL 'public open fun compareTo (other: kotlin.String): kotlin.Int declared in kotlin.String' type=kotlin.Int origin=GT $this: GET_VAR 'a: kotlin.String declared in .test1' type=kotlin.String origin=null other: GET_VAR 'b: kotlin.String declared in .test1' type=kotlin.String origin=null arg1: CONST Int type=kotlin.Int value=0 @@ -15,7 +15,7 @@ FILE fqName: fileName:/stringComparisons.kt BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test2 (a: kotlin.String, b: kotlin.String): kotlin.Boolean declared in ' CALL 'public final fun less (arg0: kotlin.Int, arg1: kotlin.Int): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=LT - arg0: CALL 'public open fun compareTo (other: kotlin.String): kotlin.Int [operator] declared in kotlin.String' type=kotlin.Int origin=LT + arg0: CALL 'public open fun compareTo (other: kotlin.String): kotlin.Int declared in kotlin.String' type=kotlin.Int origin=LT $this: GET_VAR 'a: kotlin.String declared in .test2' type=kotlin.String origin=null other: GET_VAR 'b: kotlin.String declared in .test2' type=kotlin.String origin=null arg1: CONST Int type=kotlin.Int value=0 @@ -25,7 +25,7 @@ FILE fqName: fileName:/stringComparisons.kt BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test3 (a: kotlin.String, b: kotlin.String): kotlin.Boolean declared in ' CALL 'public final fun greaterOrEqual (arg0: kotlin.Int, arg1: kotlin.Int): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=GTEQ - arg0: CALL 'public open fun compareTo (other: kotlin.String): kotlin.Int [operator] declared in kotlin.String' type=kotlin.Int origin=GTEQ + arg0: CALL 'public open fun compareTo (other: kotlin.String): kotlin.Int declared in kotlin.String' type=kotlin.Int origin=GTEQ $this: GET_VAR 'a: kotlin.String declared in .test3' type=kotlin.String origin=null other: GET_VAR 'b: kotlin.String declared in .test3' type=kotlin.String origin=null arg1: CONST Int type=kotlin.Int value=0 @@ -35,7 +35,7 @@ FILE fqName: fileName:/stringComparisons.kt BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test4 (a: kotlin.String, b: kotlin.String): kotlin.Boolean declared in ' CALL 'public final fun lessOrEqual (arg0: kotlin.Int, arg1: kotlin.Int): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=LTEQ - arg0: CALL 'public open fun compareTo (other: kotlin.String): kotlin.Int [operator] declared in kotlin.String' type=kotlin.Int origin=LTEQ + arg0: CALL 'public open fun compareTo (other: kotlin.String): kotlin.Int declared in kotlin.String' type=kotlin.Int origin=LTEQ $this: GET_VAR 'a: kotlin.String declared in .test4' type=kotlin.String origin=null other: GET_VAR 'b: kotlin.String declared in .test4' type=kotlin.String origin=null arg1: CONST Int type=kotlin.Int value=0 diff --git a/compiler/testData/ir/irText/expressions/stringPlus.ir.txt b/compiler/testData/ir/irText/expressions/stringPlus.ir.txt index 0d1c2e50e6f..53c928e465d 100644 --- a/compiler/testData/ir/irText/expressions/stringPlus.ir.txt +++ b/compiler/testData/ir/irText/expressions/stringPlus.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/stringPlus.kt VALUE_PARAMETER name:b index:1 type:kotlin.Any BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test1 (a: kotlin.String, b: kotlin.Any): kotlin.String declared in ' - CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS + CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS $this: GET_VAR 'a: kotlin.String declared in .test1' type=kotlin.String origin=null other: GET_VAR 'b: kotlin.Any declared in .test1' type=kotlin.Any origin=null FUN name:test2 visibility:public modality:FINAL <> (a:kotlin.String, b:kotlin.Int) returnType:kotlin.String @@ -12,8 +12,8 @@ FILE fqName: fileName:/stringPlus.kt VALUE_PARAMETER name:b index:1 type:kotlin.Int BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test2 (a: kotlin.String, b: kotlin.Int): kotlin.String declared in ' - CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS + CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS $this: GET_VAR 'a: kotlin.String declared in .test2' type=kotlin.String origin=null other: CONST String type=kotlin.String value="+" other: GET_VAR 'b: kotlin.Int declared in .test2' type=kotlin.Int origin=null @@ -22,12 +22,12 @@ FILE fqName: fileName:/stringPlus.kt VALUE_PARAMETER name:b index:1 type:kotlin.Int BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test3 (a: kotlin.String, b: kotlin.Int): kotlin.String declared in ' - CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS + CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS $this: GET_VAR 'a: kotlin.String declared in .test3' type=kotlin.String origin=null other: CONST String type=kotlin.String value="+" - other: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUS + other: CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUS $this: GET_VAR 'b: kotlin.Int declared in .test3' type=kotlin.Int origin=null other: CONST Int type=kotlin.Int value=1 other: GET_VAR 'a: kotlin.String declared in .test3' type=kotlin.String origin=null diff --git a/compiler/testData/ir/irText/expressions/suspendConversionForExtensionFunction.fir.ir.txt b/compiler/testData/ir/irText/expressions/suspendConversionForExtensionFunction.fir.ir.txt index e9c17f095ad..3fe260287e6 100644 --- a/compiler/testData/ir/irText/expressions/suspendConversionForExtensionFunction.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/suspendConversionForExtensionFunction.fir.ir.txt @@ -15,14 +15,14 @@ FILE fqName: fileName:/suspendConversionForExtensionFunction.kt BLOCK_BODY RETURN type=kotlin.Nothing from='local final fun (): kotlin.Unit declared in .main' GET_OBJECT 'CLASS IR_EXTERNAL_DECLARATION_STUB OBJECT name:Unit modality:FINAL visibility:public superTypes:[kotlin.Any]' type=kotlin.Unit - CALL 'public abstract fun invoke (p1: P1 of kotlin.Function2, p2: P2 of kotlin.Function2): R of kotlin.Function2 [operator] declared in kotlin.Function2' type=kotlin.Unit origin=INVOKE - $this: GET_VAR 'val foo: @[ExtensionFunctionType] kotlin.Function2, kotlin.Unit> [val] declared in .main' type=@[ExtensionFunctionType] kotlin.Function2, kotlin.Unit> origin=VARIABLE_AS_FUNCTION + CALL 'public abstract fun invoke (p1: P1 of kotlin.Function2, p2: P2 of kotlin.Function2): R of kotlin.Function2 declared in kotlin.Function2' type=kotlin.Unit origin=INVOKE + $this: GET_VAR 'val foo: @[ExtensionFunctionType] kotlin.Function2, kotlin.Unit> declared in .main' type=@[ExtensionFunctionType] kotlin.Function2, kotlin.Unit> origin=VARIABLE_AS_FUNCTION p1: CONST String type=kotlin.String value="" p2: BLOCK type=kotlin.coroutines.SuspendFunction0 origin=SUSPEND_CONVERSION FUN ADAPTER_FOR_SUSPEND_CONVERSION name:suspendConversion visibility:local modality:FINAL <> ($receiver:kotlin.Function0) returnType:kotlin.Unit [suspend] $receiver: VALUE_PARAMETER ADAPTER_PARAMETER_FOR_SUSPEND_CONVERSION name:callee type:kotlin.Function0 BLOCK_BODY - CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=kotlin.Unit origin=null + CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=kotlin.Unit origin=null $this: GET_VAR 'callee: kotlin.Function0 declared in .main.suspendConversion' type=kotlin.Function0 origin=null - FUNCTION_REFERENCE 'local final fun suspendConversion (): kotlin.Unit [suspend] declared in .main' type=kotlin.coroutines.SuspendFunction0 origin=SUSPEND_CONVERSION reflectionTarget=null - $receiver: GET_VAR 'val f: kotlin.Function0 [val] declared in .main' type=kotlin.Function0 origin=null + FUNCTION_REFERENCE 'local final fun suspendConversion (): kotlin.Unit declared in .main' type=kotlin.coroutines.SuspendFunction0 origin=SUSPEND_CONVERSION reflectionTarget=null + $receiver: GET_VAR 'val f: kotlin.Function0 declared in .main' type=kotlin.Function0 origin=null diff --git a/compiler/testData/ir/irText/expressions/suspendConversionForExtensionFunction.ir.txt b/compiler/testData/ir/irText/expressions/suspendConversionForExtensionFunction.ir.txt index 8c71c2ff2fd..f0868d78529 100644 --- a/compiler/testData/ir/irText/expressions/suspendConversionForExtensionFunction.ir.txt +++ b/compiler/testData/ir/irText/expressions/suspendConversionForExtensionFunction.ir.txt @@ -15,14 +15,14 @@ FILE fqName: fileName:/suspendConversionForExtensionFunction.kt BLOCK_BODY RETURN type=kotlin.Nothing from='local final fun (): kotlin.Unit declared in .main' GET_OBJECT 'CLASS IR_EXTERNAL_DECLARATION_STUB OBJECT name:Unit modality:FINAL visibility:public superTypes:[kotlin.Any]' type=kotlin.Unit - CALL 'public abstract fun invoke (p1: P1 of kotlin.Function2, p2: P2 of kotlin.Function2): R of kotlin.Function2 [operator] declared in kotlin.Function2' type=kotlin.Unit origin=INVOKE - $this: GET_VAR 'val foo: @[ExtensionFunctionType] kotlin.Function2, kotlin.Unit> [val] declared in .main' type=@[ExtensionFunctionType] kotlin.Function2, kotlin.Unit> origin=VARIABLE_AS_FUNCTION + CALL 'public abstract fun invoke (p1: P1 of kotlin.Function2, p2: P2 of kotlin.Function2): R of kotlin.Function2 declared in kotlin.Function2' type=kotlin.Unit origin=INVOKE + $this: GET_VAR 'val foo: @[ExtensionFunctionType] kotlin.Function2, kotlin.Unit> declared in .main' type=@[ExtensionFunctionType] kotlin.Function2, kotlin.Unit> origin=VARIABLE_AS_FUNCTION p1: CONST String type=kotlin.String value="" p2: BLOCK type=kotlin.coroutines.SuspendFunction0 origin=SUSPEND_CONVERSION FUN ADAPTER_FOR_SUSPEND_CONVERSION name:suspendConversion0 visibility:local modality:FINAL <> ($receiver:kotlin.Function0) returnType:kotlin.Unit [suspend] $receiver: VALUE_PARAMETER ADAPTER_PARAMETER_FOR_SUSPEND_CONVERSION name:callee type:kotlin.Function0 BLOCK_BODY - CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=kotlin.Unit origin=null + CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=kotlin.Unit origin=null $this: GET_VAR 'callee: kotlin.Function0 declared in .main.suspendConversion0' type=kotlin.Function0 origin=null - FUNCTION_REFERENCE 'local final fun suspendConversion0 (): kotlin.Unit [suspend] declared in .main' type=kotlin.coroutines.SuspendFunction0 origin=SUSPEND_CONVERSION reflectionTarget=null - $receiver: GET_VAR 'val f: kotlin.Function0 [val] declared in .main' type=kotlin.Function0 origin=null + FUNCTION_REFERENCE 'local final fun suspendConversion0 (): kotlin.Unit declared in .main' type=kotlin.coroutines.SuspendFunction0 origin=SUSPEND_CONVERSION reflectionTarget=null + $receiver: GET_VAR 'val f: kotlin.Function0 declared in .main' type=kotlin.Function0 origin=null diff --git a/compiler/testData/ir/irText/expressions/suspendConversionInVararg.fir.ir.txt b/compiler/testData/ir/irText/expressions/suspendConversionInVararg.fir.ir.txt index e42e979fc48..a837810c2a2 100644 --- a/compiler/testData/ir/irText/expressions/suspendConversionInVararg.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/suspendConversionInVararg.fir.ir.txt @@ -13,18 +13,18 @@ FILE fqName: fileName:/suspendConversionInVararg.kt FUN ADAPTER_FOR_SUSPEND_CONVERSION name:suspendConversion visibility:local modality:FINAL <> ($receiver:kotlin.Function0) returnType:kotlin.Unit [suspend] $receiver: VALUE_PARAMETER ADAPTER_PARAMETER_FOR_SUSPEND_CONVERSION name:callee type:kotlin.Function0 BLOCK_BODY - CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=kotlin.Unit origin=null + CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=kotlin.Unit origin=null $this: GET_VAR 'callee: kotlin.Function0 declared in .testSuspendConversionInVarargElementsSome.suspendConversion' type=kotlin.Function0 origin=null - FUNCTION_REFERENCE 'local final fun suspendConversion (): kotlin.Unit [suspend] declared in .testSuspendConversionInVarargElementsSome' type=kotlin.coroutines.SuspendFunction0 origin=SUSPEND_CONVERSION reflectionTarget=null + FUNCTION_REFERENCE 'local final fun suspendConversion (): kotlin.Unit declared in .testSuspendConversionInVarargElementsSome' type=kotlin.coroutines.SuspendFunction0 origin=SUSPEND_CONVERSION reflectionTarget=null $receiver: GET_VAR 'f1: kotlin.Function0 declared in .testSuspendConversionInVarargElementsSome' type=kotlin.Function0 origin=null GET_VAR 'sf2: kotlin.coroutines.SuspendFunction0 declared in .testSuspendConversionInVarargElementsSome' type=kotlin.coroutines.SuspendFunction0 origin=null BLOCK type=kotlin.coroutines.SuspendFunction0 origin=SUSPEND_CONVERSION FUN ADAPTER_FOR_SUSPEND_CONVERSION name:suspendConversion visibility:local modality:FINAL <> ($receiver:kotlin.Function0) returnType:kotlin.Unit [suspend] $receiver: VALUE_PARAMETER ADAPTER_PARAMETER_FOR_SUSPEND_CONVERSION name:callee type:kotlin.Function0 BLOCK_BODY - CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=kotlin.Unit origin=null + CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=kotlin.Unit origin=null $this: GET_VAR 'callee: kotlin.Function0 declared in .testSuspendConversionInVarargElementsSome.suspendConversion' type=kotlin.Function0 origin=null - FUNCTION_REFERENCE 'local final fun suspendConversion (): kotlin.Unit [suspend] declared in .testSuspendConversionInVarargElementsSome' type=kotlin.coroutines.SuspendFunction0 origin=SUSPEND_CONVERSION reflectionTarget=null + FUNCTION_REFERENCE 'local final fun suspendConversion (): kotlin.Unit declared in .testSuspendConversionInVarargElementsSome' type=kotlin.coroutines.SuspendFunction0 origin=SUSPEND_CONVERSION reflectionTarget=null $receiver: GET_VAR 'f3: kotlin.Function0 declared in .testSuspendConversionInVarargElementsSome' type=kotlin.Function0 origin=null FUN name:testSuspendConversionInVarargElementsAll visibility:public modality:FINAL <> (f1:kotlin.Function0, f2:kotlin.Function0, f3:kotlin.Function0) returnType:kotlin.Unit VALUE_PARAMETER name:f1 index:0 type:kotlin.Function0 @@ -37,23 +37,23 @@ FILE fqName: fileName:/suspendConversionInVararg.kt FUN ADAPTER_FOR_SUSPEND_CONVERSION name:suspendConversion visibility:local modality:FINAL <> ($receiver:kotlin.Function0) returnType:kotlin.Unit [suspend] $receiver: VALUE_PARAMETER ADAPTER_PARAMETER_FOR_SUSPEND_CONVERSION name:callee type:kotlin.Function0 BLOCK_BODY - CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=kotlin.Unit origin=null + CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=kotlin.Unit origin=null $this: GET_VAR 'callee: kotlin.Function0 declared in .testSuspendConversionInVarargElementsAll.suspendConversion' type=kotlin.Function0 origin=null - FUNCTION_REFERENCE 'local final fun suspendConversion (): kotlin.Unit [suspend] declared in .testSuspendConversionInVarargElementsAll' type=kotlin.coroutines.SuspendFunction0 origin=SUSPEND_CONVERSION reflectionTarget=null + FUNCTION_REFERENCE 'local final fun suspendConversion (): kotlin.Unit declared in .testSuspendConversionInVarargElementsAll' type=kotlin.coroutines.SuspendFunction0 origin=SUSPEND_CONVERSION reflectionTarget=null $receiver: GET_VAR 'f1: kotlin.Function0 declared in .testSuspendConversionInVarargElementsAll' type=kotlin.Function0 origin=null BLOCK type=kotlin.coroutines.SuspendFunction0 origin=SUSPEND_CONVERSION FUN ADAPTER_FOR_SUSPEND_CONVERSION name:suspendConversion visibility:local modality:FINAL <> ($receiver:kotlin.Function0) returnType:kotlin.Unit [suspend] $receiver: VALUE_PARAMETER ADAPTER_PARAMETER_FOR_SUSPEND_CONVERSION name:callee type:kotlin.Function0 BLOCK_BODY - CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=kotlin.Unit origin=null + CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=kotlin.Unit origin=null $this: GET_VAR 'callee: kotlin.Function0 declared in .testSuspendConversionInVarargElementsAll.suspendConversion' type=kotlin.Function0 origin=null - FUNCTION_REFERENCE 'local final fun suspendConversion (): kotlin.Unit [suspend] declared in .testSuspendConversionInVarargElementsAll' type=kotlin.coroutines.SuspendFunction0 origin=SUSPEND_CONVERSION reflectionTarget=null + FUNCTION_REFERENCE 'local final fun suspendConversion (): kotlin.Unit declared in .testSuspendConversionInVarargElementsAll' type=kotlin.coroutines.SuspendFunction0 origin=SUSPEND_CONVERSION reflectionTarget=null $receiver: GET_VAR 'f2: kotlin.Function0 declared in .testSuspendConversionInVarargElementsAll' type=kotlin.Function0 origin=null BLOCK type=kotlin.coroutines.SuspendFunction0 origin=SUSPEND_CONVERSION FUN ADAPTER_FOR_SUSPEND_CONVERSION name:suspendConversion visibility:local modality:FINAL <> ($receiver:kotlin.Function0) returnType:kotlin.Unit [suspend] $receiver: VALUE_PARAMETER ADAPTER_PARAMETER_FOR_SUSPEND_CONVERSION name:callee type:kotlin.Function0 BLOCK_BODY - CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=kotlin.Unit origin=null + CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=kotlin.Unit origin=null $this: GET_VAR 'callee: kotlin.Function0 declared in .testSuspendConversionInVarargElementsAll.suspendConversion' type=kotlin.Function0 origin=null - FUNCTION_REFERENCE 'local final fun suspendConversion (): kotlin.Unit [suspend] declared in .testSuspendConversionInVarargElementsAll' type=kotlin.coroutines.SuspendFunction0 origin=SUSPEND_CONVERSION reflectionTarget=null + FUNCTION_REFERENCE 'local final fun suspendConversion (): kotlin.Unit declared in .testSuspendConversionInVarargElementsAll' type=kotlin.coroutines.SuspendFunction0 origin=SUSPEND_CONVERSION reflectionTarget=null $receiver: GET_VAR 'f3: kotlin.Function0 declared in .testSuspendConversionInVarargElementsAll' type=kotlin.Function0 origin=null diff --git a/compiler/testData/ir/irText/expressions/suspendConversionInVararg.ir.txt b/compiler/testData/ir/irText/expressions/suspendConversionInVararg.ir.txt index 47fed15bdeb..04d0b4b1f87 100644 --- a/compiler/testData/ir/irText/expressions/suspendConversionInVararg.ir.txt +++ b/compiler/testData/ir/irText/expressions/suspendConversionInVararg.ir.txt @@ -13,18 +13,18 @@ FILE fqName: fileName:/suspendConversionInVararg.kt FUN ADAPTER_FOR_SUSPEND_CONVERSION name:suspendConversion0 visibility:local modality:FINAL <> ($receiver:kotlin.Function0) returnType:kotlin.Unit [suspend] $receiver: VALUE_PARAMETER ADAPTER_PARAMETER_FOR_SUSPEND_CONVERSION name:callee type:kotlin.Function0 BLOCK_BODY - CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=kotlin.Unit origin=null + CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=kotlin.Unit origin=null $this: GET_VAR 'callee: kotlin.Function0 declared in .testSuspendConversionInVarargElementsSome.suspendConversion0' type=kotlin.Function0 origin=null - FUNCTION_REFERENCE 'local final fun suspendConversion0 (): kotlin.Unit [suspend] declared in .testSuspendConversionInVarargElementsSome' type=kotlin.coroutines.SuspendFunction0 origin=SUSPEND_CONVERSION reflectionTarget=null + FUNCTION_REFERENCE 'local final fun suspendConversion0 (): kotlin.Unit declared in .testSuspendConversionInVarargElementsSome' type=kotlin.coroutines.SuspendFunction0 origin=SUSPEND_CONVERSION reflectionTarget=null $receiver: GET_VAR 'f1: kotlin.Function0 declared in .testSuspendConversionInVarargElementsSome' type=kotlin.Function0 origin=null GET_VAR 'sf2: kotlin.coroutines.SuspendFunction0 declared in .testSuspendConversionInVarargElementsSome' type=kotlin.coroutines.SuspendFunction0 origin=null BLOCK type=kotlin.coroutines.SuspendFunction0 origin=SUSPEND_CONVERSION FUN ADAPTER_FOR_SUSPEND_CONVERSION name:suspendConversion1 visibility:local modality:FINAL <> ($receiver:kotlin.Function0) returnType:kotlin.Unit [suspend] $receiver: VALUE_PARAMETER ADAPTER_PARAMETER_FOR_SUSPEND_CONVERSION name:callee type:kotlin.Function0 BLOCK_BODY - CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=kotlin.Unit origin=null + CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=kotlin.Unit origin=null $this: GET_VAR 'callee: kotlin.Function0 declared in .testSuspendConversionInVarargElementsSome.suspendConversion1' type=kotlin.Function0 origin=null - FUNCTION_REFERENCE 'local final fun suspendConversion1 (): kotlin.Unit [suspend] declared in .testSuspendConversionInVarargElementsSome' type=kotlin.coroutines.SuspendFunction0 origin=SUSPEND_CONVERSION reflectionTarget=null + FUNCTION_REFERENCE 'local final fun suspendConversion1 (): kotlin.Unit declared in .testSuspendConversionInVarargElementsSome' type=kotlin.coroutines.SuspendFunction0 origin=SUSPEND_CONVERSION reflectionTarget=null $receiver: GET_VAR 'f3: kotlin.Function0 declared in .testSuspendConversionInVarargElementsSome' type=kotlin.Function0 origin=null FUN name:testSuspendConversionInVarargElementsAll visibility:public modality:FINAL <> (f1:kotlin.Function0, f2:kotlin.Function0, f3:kotlin.Function0) returnType:kotlin.Unit VALUE_PARAMETER name:f1 index:0 type:kotlin.Function0 @@ -37,23 +37,23 @@ FILE fqName: fileName:/suspendConversionInVararg.kt FUN ADAPTER_FOR_SUSPEND_CONVERSION name:suspendConversion0 visibility:local modality:FINAL <> ($receiver:kotlin.Function0) returnType:kotlin.Unit [suspend] $receiver: VALUE_PARAMETER ADAPTER_PARAMETER_FOR_SUSPEND_CONVERSION name:callee type:kotlin.Function0 BLOCK_BODY - CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=kotlin.Unit origin=null + CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=kotlin.Unit origin=null $this: GET_VAR 'callee: kotlin.Function0 declared in .testSuspendConversionInVarargElementsAll.suspendConversion0' type=kotlin.Function0 origin=null - FUNCTION_REFERENCE 'local final fun suspendConversion0 (): kotlin.Unit [suspend] declared in .testSuspendConversionInVarargElementsAll' type=kotlin.coroutines.SuspendFunction0 origin=SUSPEND_CONVERSION reflectionTarget=null + FUNCTION_REFERENCE 'local final fun suspendConversion0 (): kotlin.Unit declared in .testSuspendConversionInVarargElementsAll' type=kotlin.coroutines.SuspendFunction0 origin=SUSPEND_CONVERSION reflectionTarget=null $receiver: GET_VAR 'f1: kotlin.Function0 declared in .testSuspendConversionInVarargElementsAll' type=kotlin.Function0 origin=null BLOCK type=kotlin.coroutines.SuspendFunction0 origin=SUSPEND_CONVERSION FUN ADAPTER_FOR_SUSPEND_CONVERSION name:suspendConversion1 visibility:local modality:FINAL <> ($receiver:kotlin.Function0) returnType:kotlin.Unit [suspend] $receiver: VALUE_PARAMETER ADAPTER_PARAMETER_FOR_SUSPEND_CONVERSION name:callee type:kotlin.Function0 BLOCK_BODY - CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=kotlin.Unit origin=null + CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=kotlin.Unit origin=null $this: GET_VAR 'callee: kotlin.Function0 declared in .testSuspendConversionInVarargElementsAll.suspendConversion1' type=kotlin.Function0 origin=null - FUNCTION_REFERENCE 'local final fun suspendConversion1 (): kotlin.Unit [suspend] declared in .testSuspendConversionInVarargElementsAll' type=kotlin.coroutines.SuspendFunction0 origin=SUSPEND_CONVERSION reflectionTarget=null + FUNCTION_REFERENCE 'local final fun suspendConversion1 (): kotlin.Unit declared in .testSuspendConversionInVarargElementsAll' type=kotlin.coroutines.SuspendFunction0 origin=SUSPEND_CONVERSION reflectionTarget=null $receiver: GET_VAR 'f2: kotlin.Function0 declared in .testSuspendConversionInVarargElementsAll' type=kotlin.Function0 origin=null BLOCK type=kotlin.coroutines.SuspendFunction0 origin=SUSPEND_CONVERSION FUN ADAPTER_FOR_SUSPEND_CONVERSION name:suspendConversion2 visibility:local modality:FINAL <> ($receiver:kotlin.Function0) returnType:kotlin.Unit [suspend] $receiver: VALUE_PARAMETER ADAPTER_PARAMETER_FOR_SUSPEND_CONVERSION name:callee type:kotlin.Function0 BLOCK_BODY - CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=kotlin.Unit origin=null + CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=kotlin.Unit origin=null $this: GET_VAR 'callee: kotlin.Function0 declared in .testSuspendConversionInVarargElementsAll.suspendConversion2' type=kotlin.Function0 origin=null - FUNCTION_REFERENCE 'local final fun suspendConversion2 (): kotlin.Unit [suspend] declared in .testSuspendConversionInVarargElementsAll' type=kotlin.coroutines.SuspendFunction0 origin=SUSPEND_CONVERSION reflectionTarget=null + FUNCTION_REFERENCE 'local final fun suspendConversion2 (): kotlin.Unit declared in .testSuspendConversionInVarargElementsAll' type=kotlin.coroutines.SuspendFunction0 origin=SUSPEND_CONVERSION reflectionTarget=null $receiver: GET_VAR 'f3: kotlin.Function0 declared in .testSuspendConversionInVarargElementsAll' type=kotlin.Function0 origin=null diff --git a/compiler/testData/ir/irText/expressions/suspendConversionOnArbitraryExpression.fir.ir.txt b/compiler/testData/ir/irText/expressions/suspendConversionOnArbitraryExpression.fir.ir.txt index 3d974c43b5d..1a83edb4f10 100644 --- a/compiler/testData/ir/irText/expressions/suspendConversionOnArbitraryExpression.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/suspendConversionOnArbitraryExpression.fir.ir.txt @@ -32,9 +32,9 @@ FILE fqName: fileName:/suspendConversionOnArbitraryExpression.kt FUN ADAPTER_FOR_SUSPEND_CONVERSION name:suspendConversion visibility:local modality:FINAL <> ($receiver:kotlin.Function0) returnType:kotlin.Unit [suspend] $receiver: VALUE_PARAMETER ADAPTER_PARAMETER_FOR_SUSPEND_CONVERSION name:callee type:kotlin.Function0 BLOCK_BODY - CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=kotlin.Unit origin=null + CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=kotlin.Unit origin=null $this: GET_VAR 'callee: kotlin.Function0 declared in .testSimple.suspendConversion' type=kotlin.Function0 origin=null - FUNCTION_REFERENCE 'local final fun suspendConversion (): kotlin.Unit [suspend] declared in .testSimple' type=kotlin.coroutines.SuspendFunction0 origin=SUSPEND_CONVERSION reflectionTarget=null + FUNCTION_REFERENCE 'local final fun suspendConversion (): kotlin.Unit declared in .testSimple' type=kotlin.coroutines.SuspendFunction0 origin=SUSPEND_CONVERSION reflectionTarget=null $receiver: GET_VAR 'fn: kotlin.Function0 declared in .testSimple' type=kotlin.Function0 origin=null FUN name:testSimpleNonVal visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY @@ -43,9 +43,9 @@ FILE fqName: fileName:/suspendConversionOnArbitraryExpression.kt FUN ADAPTER_FOR_SUSPEND_CONVERSION name:suspendConversion visibility:local modality:FINAL <> ($receiver:kotlin.Function0) returnType:kotlin.Unit [suspend] $receiver: VALUE_PARAMETER ADAPTER_PARAMETER_FOR_SUSPEND_CONVERSION name:callee type:kotlin.Function0 BLOCK_BODY - CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=kotlin.Unit origin=null + CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=kotlin.Unit origin=null $this: GET_VAR 'callee: kotlin.Function0 declared in .testSimpleNonVal.suspendConversion' type=kotlin.Function0 origin=null - FUNCTION_REFERENCE 'local final fun suspendConversion (): kotlin.Unit [suspend] declared in .testSimpleNonVal' type=kotlin.coroutines.SuspendFunction0 origin=SUSPEND_CONVERSION reflectionTarget=null + FUNCTION_REFERENCE 'local final fun suspendConversion (): kotlin.Unit declared in .testSimpleNonVal' type=kotlin.coroutines.SuspendFunction0 origin=SUSPEND_CONVERSION reflectionTarget=null $receiver: CALL 'public final fun produceFun (): kotlin.Function0 declared in ' type=kotlin.Function0 origin=null FUN name:testExtAsExt visibility:public modality:FINAL <> (fn:@[ExtensionFunctionType] kotlin.Function1) returnType:kotlin.Unit VALUE_PARAMETER name:fn index:0 type:@[ExtensionFunctionType] kotlin.Function1 @@ -56,10 +56,10 @@ FILE fqName: fileName:/suspendConversionOnArbitraryExpression.kt $receiver: VALUE_PARAMETER ADAPTER_PARAMETER_FOR_SUSPEND_CONVERSION name:callee type:@[ExtensionFunctionType] kotlin.Function1 VALUE_PARAMETER ADAPTER_PARAMETER_FOR_SUSPEND_CONVERSION name:p0 index:0 type:kotlin.Int BLOCK_BODY - CALL 'public abstract fun invoke (p1: P1 of kotlin.Function1): R of kotlin.Function1 [operator] declared in kotlin.Function1' type=kotlin.Unit origin=null + CALL 'public abstract fun invoke (p1: P1 of kotlin.Function1): R of kotlin.Function1 declared in kotlin.Function1' type=kotlin.Unit origin=null $this: GET_VAR 'callee: @[ExtensionFunctionType] kotlin.Function1 declared in .testExtAsExt.suspendConversion' type=@[ExtensionFunctionType] kotlin.Function1 origin=null p1: GET_VAR 'p0: kotlin.Int declared in .testExtAsExt.suspendConversion' type=kotlin.Int origin=null - FUNCTION_REFERENCE 'local final fun suspendConversion (p0: kotlin.Int): kotlin.Unit [suspend] declared in .testExtAsExt' type=@[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1 origin=SUSPEND_CONVERSION reflectionTarget=null + FUNCTION_REFERENCE 'local final fun suspendConversion (p0: kotlin.Int): kotlin.Unit declared in .testExtAsExt' type=@[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1 origin=SUSPEND_CONVERSION reflectionTarget=null $receiver: GET_VAR 'fn: @[ExtensionFunctionType] kotlin.Function1 declared in .testExtAsExt' type=@[ExtensionFunctionType] kotlin.Function1 origin=null FUN name:testExtAsSimple visibility:public modality:FINAL <> (fn:@[ExtensionFunctionType] kotlin.Function1) returnType:kotlin.Unit VALUE_PARAMETER name:fn index:0 type:@[ExtensionFunctionType] kotlin.Function1 @@ -70,10 +70,10 @@ FILE fqName: fileName:/suspendConversionOnArbitraryExpression.kt $receiver: VALUE_PARAMETER ADAPTER_PARAMETER_FOR_SUSPEND_CONVERSION name:callee type:@[ExtensionFunctionType] kotlin.Function1 VALUE_PARAMETER ADAPTER_PARAMETER_FOR_SUSPEND_CONVERSION name:p0 index:0 type:kotlin.Int BLOCK_BODY - CALL 'public abstract fun invoke (p1: P1 of kotlin.Function1): R of kotlin.Function1 [operator] declared in kotlin.Function1' type=kotlin.Unit origin=null + CALL 'public abstract fun invoke (p1: P1 of kotlin.Function1): R of kotlin.Function1 declared in kotlin.Function1' type=kotlin.Unit origin=null $this: GET_VAR 'callee: @[ExtensionFunctionType] kotlin.Function1 declared in .testExtAsSimple.suspendConversion' type=@[ExtensionFunctionType] kotlin.Function1 origin=null p1: GET_VAR 'p0: kotlin.Int declared in .testExtAsSimple.suspendConversion' type=kotlin.Int origin=null - FUNCTION_REFERENCE 'local final fun suspendConversion (p0: kotlin.Int): kotlin.Unit [suspend] declared in .testExtAsSimple' type=kotlin.coroutines.SuspendFunction1 origin=SUSPEND_CONVERSION reflectionTarget=null + FUNCTION_REFERENCE 'local final fun suspendConversion (p0: kotlin.Int): kotlin.Unit declared in .testExtAsSimple' type=kotlin.coroutines.SuspendFunction1 origin=SUSPEND_CONVERSION reflectionTarget=null $receiver: GET_VAR 'fn: @[ExtensionFunctionType] kotlin.Function1 declared in .testExtAsSimple' type=@[ExtensionFunctionType] kotlin.Function1 origin=null FUN name:testSimpleAsExt visibility:public modality:FINAL <> (fn:kotlin.Function1) returnType:kotlin.Unit VALUE_PARAMETER name:fn index:0 type:kotlin.Function1 @@ -84,10 +84,10 @@ FILE fqName: fileName:/suspendConversionOnArbitraryExpression.kt $receiver: VALUE_PARAMETER ADAPTER_PARAMETER_FOR_SUSPEND_CONVERSION name:callee type:kotlin.Function1 VALUE_PARAMETER ADAPTER_PARAMETER_FOR_SUSPEND_CONVERSION name:p0 index:0 type:kotlin.Int BLOCK_BODY - CALL 'public abstract fun invoke (p1: P1 of kotlin.Function1): R of kotlin.Function1 [operator] declared in kotlin.Function1' type=kotlin.Unit origin=null + CALL 'public abstract fun invoke (p1: P1 of kotlin.Function1): R of kotlin.Function1 declared in kotlin.Function1' type=kotlin.Unit origin=null $this: GET_VAR 'callee: kotlin.Function1 declared in .testSimpleAsExt.suspendConversion' type=kotlin.Function1 origin=null p1: GET_VAR 'p0: kotlin.Int declared in .testSimpleAsExt.suspendConversion' type=kotlin.Int origin=null - FUNCTION_REFERENCE 'local final fun suspendConversion (p0: kotlin.Int): kotlin.Unit [suspend] declared in .testSimpleAsExt' type=@[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1 origin=SUSPEND_CONVERSION reflectionTarget=null + FUNCTION_REFERENCE 'local final fun suspendConversion (p0: kotlin.Int): kotlin.Unit declared in .testSimpleAsExt' type=@[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1 origin=SUSPEND_CONVERSION reflectionTarget=null $receiver: GET_VAR 'fn: kotlin.Function1 declared in .testSimpleAsExt' type=kotlin.Function1 origin=null FUN name:testSimpleAsSimpleT visibility:public modality:FINAL <> (fn:kotlin.Function1) returnType:kotlin.Unit VALUE_PARAMETER name:fn index:0 type:kotlin.Function1 @@ -99,10 +99,10 @@ FILE fqName: fileName:/suspendConversionOnArbitraryExpression.kt $receiver: VALUE_PARAMETER ADAPTER_PARAMETER_FOR_SUSPEND_CONVERSION name:callee type:kotlin.Function1 VALUE_PARAMETER ADAPTER_PARAMETER_FOR_SUSPEND_CONVERSION name:p0 index:0 type:T of .useSuspendArgT BLOCK_BODY - CALL 'public abstract fun invoke (p1: P1 of kotlin.Function1): R of kotlin.Function1 [operator] declared in kotlin.Function1' type=kotlin.Unit origin=null + CALL 'public abstract fun invoke (p1: P1 of kotlin.Function1): R of kotlin.Function1 declared in kotlin.Function1' type=kotlin.Unit origin=null $this: GET_VAR 'callee: kotlin.Function1 declared in .testSimpleAsSimpleT.suspendConversion' type=kotlin.Function1 origin=null p1: GET_VAR 'p0: T of .useSuspendArgT declared in .testSimpleAsSimpleT.suspendConversion' type=T of .useSuspendArgT origin=null - FUNCTION_REFERENCE 'local final fun suspendConversion (p0: T of .useSuspendArgT): kotlin.Unit [suspend] declared in .testSimpleAsSimpleT' type=kotlin.coroutines.SuspendFunction1.useSuspendArgT, kotlin.Unit> origin=SUSPEND_CONVERSION reflectionTarget=null + FUNCTION_REFERENCE 'local final fun suspendConversion (p0: T of .useSuspendArgT): kotlin.Unit declared in .testSimpleAsSimpleT' type=kotlin.coroutines.SuspendFunction1.useSuspendArgT, kotlin.Unit> origin=SUSPEND_CONVERSION reflectionTarget=null $receiver: GET_VAR 'fn: kotlin.Function1 declared in .testSimpleAsSimpleT' type=kotlin.Function1 origin=null FUN name:testSimpleAsExtT visibility:public modality:FINAL <> (fn:kotlin.Function1) returnType:kotlin.Unit VALUE_PARAMETER name:fn index:0 type:kotlin.Function1 @@ -114,10 +114,10 @@ FILE fqName: fileName:/suspendConversionOnArbitraryExpression.kt $receiver: VALUE_PARAMETER ADAPTER_PARAMETER_FOR_SUSPEND_CONVERSION name:callee type:kotlin.Function1 VALUE_PARAMETER ADAPTER_PARAMETER_FOR_SUSPEND_CONVERSION name:p0 index:0 type:T of .useSuspendExtT BLOCK_BODY - CALL 'public abstract fun invoke (p1: P1 of kotlin.Function1): R of kotlin.Function1 [operator] declared in kotlin.Function1' type=kotlin.Unit origin=null + CALL 'public abstract fun invoke (p1: P1 of kotlin.Function1): R of kotlin.Function1 declared in kotlin.Function1' type=kotlin.Unit origin=null $this: GET_VAR 'callee: kotlin.Function1 declared in .testSimpleAsExtT.suspendConversion' type=kotlin.Function1 origin=null p1: GET_VAR 'p0: T of .useSuspendExtT declared in .testSimpleAsExtT.suspendConversion' type=T of .useSuspendExtT origin=null - FUNCTION_REFERENCE 'local final fun suspendConversion (p0: T of .useSuspendExtT): kotlin.Unit [suspend] declared in .testSimpleAsExtT' type=@[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1.useSuspendExtT, kotlin.Unit> origin=SUSPEND_CONVERSION reflectionTarget=null + FUNCTION_REFERENCE 'local final fun suspendConversion (p0: T of .useSuspendExtT): kotlin.Unit declared in .testSimpleAsExtT' type=@[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1.useSuspendExtT, kotlin.Unit> origin=SUSPEND_CONVERSION reflectionTarget=null $receiver: GET_VAR 'fn: kotlin.Function1 declared in .testSimpleAsExtT' type=kotlin.Function1 origin=null FUN name:testExtAsSimpleT visibility:public modality:FINAL <> (fn:@[ExtensionFunctionType] kotlin.Function1) returnType:kotlin.Unit VALUE_PARAMETER name:fn index:0 type:@[ExtensionFunctionType] kotlin.Function1 @@ -129,10 +129,10 @@ FILE fqName: fileName:/suspendConversionOnArbitraryExpression.kt $receiver: VALUE_PARAMETER ADAPTER_PARAMETER_FOR_SUSPEND_CONVERSION name:callee type:@[ExtensionFunctionType] kotlin.Function1 VALUE_PARAMETER ADAPTER_PARAMETER_FOR_SUSPEND_CONVERSION name:p0 index:0 type:T of .useSuspendArgT BLOCK_BODY - CALL 'public abstract fun invoke (p1: P1 of kotlin.Function1): R of kotlin.Function1 [operator] declared in kotlin.Function1' type=kotlin.Unit origin=null + CALL 'public abstract fun invoke (p1: P1 of kotlin.Function1): R of kotlin.Function1 declared in kotlin.Function1' type=kotlin.Unit origin=null $this: GET_VAR 'callee: @[ExtensionFunctionType] kotlin.Function1 declared in .testExtAsSimpleT.suspendConversion' type=@[ExtensionFunctionType] kotlin.Function1 origin=null p1: GET_VAR 'p0: T of .useSuspendArgT declared in .testExtAsSimpleT.suspendConversion' type=T of .useSuspendArgT origin=null - FUNCTION_REFERENCE 'local final fun suspendConversion (p0: T of .useSuspendArgT): kotlin.Unit [suspend] declared in .testExtAsSimpleT' type=kotlin.coroutines.SuspendFunction1.useSuspendArgT, kotlin.Unit> origin=SUSPEND_CONVERSION reflectionTarget=null + FUNCTION_REFERENCE 'local final fun suspendConversion (p0: T of .useSuspendArgT): kotlin.Unit declared in .testExtAsSimpleT' type=kotlin.coroutines.SuspendFunction1.useSuspendArgT, kotlin.Unit> origin=SUSPEND_CONVERSION reflectionTarget=null $receiver: GET_VAR 'fn: @[ExtensionFunctionType] kotlin.Function1 declared in .testExtAsSimpleT' type=@[ExtensionFunctionType] kotlin.Function1 origin=null FUN name:testExtAsExtT visibility:public modality:FINAL <> (fn:@[ExtensionFunctionType] kotlin.Function1) returnType:kotlin.Unit VALUE_PARAMETER name:fn index:0 type:@[ExtensionFunctionType] kotlin.Function1 @@ -144,10 +144,10 @@ FILE fqName: fileName:/suspendConversionOnArbitraryExpression.kt $receiver: VALUE_PARAMETER ADAPTER_PARAMETER_FOR_SUSPEND_CONVERSION name:callee type:@[ExtensionFunctionType] kotlin.Function1 VALUE_PARAMETER ADAPTER_PARAMETER_FOR_SUSPEND_CONVERSION name:p0 index:0 type:T of .useSuspendExtT BLOCK_BODY - CALL 'public abstract fun invoke (p1: P1 of kotlin.Function1): R of kotlin.Function1 [operator] declared in kotlin.Function1' type=kotlin.Unit origin=null + CALL 'public abstract fun invoke (p1: P1 of kotlin.Function1): R of kotlin.Function1 declared in kotlin.Function1' type=kotlin.Unit origin=null $this: GET_VAR 'callee: @[ExtensionFunctionType] kotlin.Function1 declared in .testExtAsExtT.suspendConversion' type=@[ExtensionFunctionType] kotlin.Function1 origin=null p1: GET_VAR 'p0: T of .useSuspendExtT declared in .testExtAsExtT.suspendConversion' type=T of .useSuspendExtT origin=null - FUNCTION_REFERENCE 'local final fun suspendConversion (p0: T of .useSuspendExtT): kotlin.Unit [suspend] declared in .testExtAsExtT' type=@[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1.useSuspendExtT, kotlin.Unit> origin=SUSPEND_CONVERSION reflectionTarget=null + FUNCTION_REFERENCE 'local final fun suspendConversion (p0: T of .useSuspendExtT): kotlin.Unit declared in .testExtAsExtT' type=@[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1.useSuspendExtT, kotlin.Unit> origin=SUSPEND_CONVERSION reflectionTarget=null $receiver: GET_VAR 'fn: @[ExtensionFunctionType] kotlin.Function1 declared in .testExtAsExtT' type=@[ExtensionFunctionType] kotlin.Function1 origin=null FUN name:testSimpleSAsSimpleT visibility:public modality:FINAL (fn:kotlin.Function1.testSimpleSAsSimpleT, kotlin.Unit>) returnType:kotlin.Unit TYPE_PARAMETER name:S index:0 variance: superTypes:[kotlin.Any?] reified:false @@ -160,10 +160,10 @@ FILE fqName: fileName:/suspendConversionOnArbitraryExpression.kt $receiver: VALUE_PARAMETER ADAPTER_PARAMETER_FOR_SUSPEND_CONVERSION name:callee type:kotlin.Function1.testSimpleSAsSimpleT, kotlin.Unit> VALUE_PARAMETER ADAPTER_PARAMETER_FOR_SUSPEND_CONVERSION name:p0 index:0 type:T of .useSuspendArgT BLOCK_BODY - CALL 'public abstract fun invoke (p1: P1 of kotlin.Function1): R of kotlin.Function1 [operator] declared in kotlin.Function1' type=kotlin.Unit origin=null + CALL 'public abstract fun invoke (p1: P1 of kotlin.Function1): R of kotlin.Function1 declared in kotlin.Function1' type=kotlin.Unit origin=null $this: GET_VAR 'callee: kotlin.Function1.testSimpleSAsSimpleT, kotlin.Unit> declared in .testSimpleSAsSimpleT.suspendConversion' type=kotlin.Function1.testSimpleSAsSimpleT, kotlin.Unit> origin=null p1: GET_VAR 'p0: T of .useSuspendArgT declared in .testSimpleSAsSimpleT.suspendConversion' type=T of .useSuspendArgT origin=null - FUNCTION_REFERENCE 'local final fun suspendConversion (p0: T of .useSuspendArgT): kotlin.Unit [suspend] declared in .testSimpleSAsSimpleT' type=kotlin.coroutines.SuspendFunction1.useSuspendArgT, kotlin.Unit> origin=SUSPEND_CONVERSION reflectionTarget=null + FUNCTION_REFERENCE 'local final fun suspendConversion (p0: T of .useSuspendArgT): kotlin.Unit declared in .testSimpleSAsSimpleT' type=kotlin.coroutines.SuspendFunction1.useSuspendArgT, kotlin.Unit> origin=SUSPEND_CONVERSION reflectionTarget=null $receiver: GET_VAR 'fn: kotlin.Function1.testSimpleSAsSimpleT, kotlin.Unit> declared in .testSimpleSAsSimpleT' type=kotlin.Function1.testSimpleSAsSimpleT, kotlin.Unit> origin=null FUN name:testSimpleSAsExtT visibility:public modality:FINAL (fn:kotlin.Function1.testSimpleSAsExtT, kotlin.Unit>) returnType:kotlin.Unit TYPE_PARAMETER name:S index:0 variance: superTypes:[kotlin.Any?] reified:false @@ -176,10 +176,10 @@ FILE fqName: fileName:/suspendConversionOnArbitraryExpression.kt $receiver: VALUE_PARAMETER ADAPTER_PARAMETER_FOR_SUSPEND_CONVERSION name:callee type:kotlin.Function1.testSimpleSAsExtT, kotlin.Unit> VALUE_PARAMETER ADAPTER_PARAMETER_FOR_SUSPEND_CONVERSION name:p0 index:0 type:T of .useSuspendExtT BLOCK_BODY - CALL 'public abstract fun invoke (p1: P1 of kotlin.Function1): R of kotlin.Function1 [operator] declared in kotlin.Function1' type=kotlin.Unit origin=null + CALL 'public abstract fun invoke (p1: P1 of kotlin.Function1): R of kotlin.Function1 declared in kotlin.Function1' type=kotlin.Unit origin=null $this: GET_VAR 'callee: kotlin.Function1.testSimpleSAsExtT, kotlin.Unit> declared in .testSimpleSAsExtT.suspendConversion' type=kotlin.Function1.testSimpleSAsExtT, kotlin.Unit> origin=null p1: GET_VAR 'p0: T of .useSuspendExtT declared in .testSimpleSAsExtT.suspendConversion' type=T of .useSuspendExtT origin=null - FUNCTION_REFERENCE 'local final fun suspendConversion (p0: T of .useSuspendExtT): kotlin.Unit [suspend] declared in .testSimpleSAsExtT' type=@[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1.useSuspendExtT, kotlin.Unit> origin=SUSPEND_CONVERSION reflectionTarget=null + FUNCTION_REFERENCE 'local final fun suspendConversion (p0: T of .useSuspendExtT): kotlin.Unit declared in .testSimpleSAsExtT' type=@[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1.useSuspendExtT, kotlin.Unit> origin=SUSPEND_CONVERSION reflectionTarget=null $receiver: GET_VAR 'fn: kotlin.Function1.testSimpleSAsExtT, kotlin.Unit> declared in .testSimpleSAsExtT' type=kotlin.Function1.testSimpleSAsExtT, kotlin.Unit> origin=null FUN name:testExtSAsSimpleT visibility:public modality:FINAL (fn:@[ExtensionFunctionType] kotlin.Function1.testExtSAsSimpleT, kotlin.Unit>) returnType:kotlin.Unit TYPE_PARAMETER name:S index:0 variance: superTypes:[kotlin.Any?] reified:false @@ -192,10 +192,10 @@ FILE fqName: fileName:/suspendConversionOnArbitraryExpression.kt $receiver: VALUE_PARAMETER ADAPTER_PARAMETER_FOR_SUSPEND_CONVERSION name:callee type:@[ExtensionFunctionType] kotlin.Function1.testExtSAsSimpleT, kotlin.Unit> VALUE_PARAMETER ADAPTER_PARAMETER_FOR_SUSPEND_CONVERSION name:p0 index:0 type:T of .useSuspendArgT BLOCK_BODY - CALL 'public abstract fun invoke (p1: P1 of kotlin.Function1): R of kotlin.Function1 [operator] declared in kotlin.Function1' type=kotlin.Unit origin=null + CALL 'public abstract fun invoke (p1: P1 of kotlin.Function1): R of kotlin.Function1 declared in kotlin.Function1' type=kotlin.Unit origin=null $this: GET_VAR 'callee: @[ExtensionFunctionType] kotlin.Function1.testExtSAsSimpleT, kotlin.Unit> declared in .testExtSAsSimpleT.suspendConversion' type=@[ExtensionFunctionType] kotlin.Function1.testExtSAsSimpleT, kotlin.Unit> origin=null p1: GET_VAR 'p0: T of .useSuspendArgT declared in .testExtSAsSimpleT.suspendConversion' type=T of .useSuspendArgT origin=null - FUNCTION_REFERENCE 'local final fun suspendConversion (p0: T of .useSuspendArgT): kotlin.Unit [suspend] declared in .testExtSAsSimpleT' type=kotlin.coroutines.SuspendFunction1.useSuspendArgT, kotlin.Unit> origin=SUSPEND_CONVERSION reflectionTarget=null + FUNCTION_REFERENCE 'local final fun suspendConversion (p0: T of .useSuspendArgT): kotlin.Unit declared in .testExtSAsSimpleT' type=kotlin.coroutines.SuspendFunction1.useSuspendArgT, kotlin.Unit> origin=SUSPEND_CONVERSION reflectionTarget=null $receiver: GET_VAR 'fn: @[ExtensionFunctionType] kotlin.Function1.testExtSAsSimpleT, kotlin.Unit> declared in .testExtSAsSimpleT' type=@[ExtensionFunctionType] kotlin.Function1.testExtSAsSimpleT, kotlin.Unit> origin=null FUN name:testExtSAsExtT visibility:public modality:FINAL (fn:@[ExtensionFunctionType] kotlin.Function1.testExtSAsExtT, kotlin.Unit>) returnType:kotlin.Unit TYPE_PARAMETER name:S index:0 variance: superTypes:[kotlin.Any?] reified:false @@ -208,10 +208,10 @@ FILE fqName: fileName:/suspendConversionOnArbitraryExpression.kt $receiver: VALUE_PARAMETER ADAPTER_PARAMETER_FOR_SUSPEND_CONVERSION name:callee type:@[ExtensionFunctionType] kotlin.Function1.testExtSAsExtT, kotlin.Unit> VALUE_PARAMETER ADAPTER_PARAMETER_FOR_SUSPEND_CONVERSION name:p0 index:0 type:T of .useSuspendExtT BLOCK_BODY - CALL 'public abstract fun invoke (p1: P1 of kotlin.Function1): R of kotlin.Function1 [operator] declared in kotlin.Function1' type=kotlin.Unit origin=null + CALL 'public abstract fun invoke (p1: P1 of kotlin.Function1): R of kotlin.Function1 declared in kotlin.Function1' type=kotlin.Unit origin=null $this: GET_VAR 'callee: @[ExtensionFunctionType] kotlin.Function1.testExtSAsExtT, kotlin.Unit> declared in .testExtSAsExtT.suspendConversion' type=@[ExtensionFunctionType] kotlin.Function1.testExtSAsExtT, kotlin.Unit> origin=null p1: GET_VAR 'p0: T of .useSuspendExtT declared in .testExtSAsExtT.suspendConversion' type=T of .useSuspendExtT origin=null - FUNCTION_REFERENCE 'local final fun suspendConversion (p0: T of .useSuspendExtT): kotlin.Unit [suspend] declared in .testExtSAsExtT' type=@[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1.useSuspendExtT, kotlin.Unit> origin=SUSPEND_CONVERSION reflectionTarget=null + FUNCTION_REFERENCE 'local final fun suspendConversion (p0: T of .useSuspendExtT): kotlin.Unit declared in .testExtSAsExtT' type=@[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1.useSuspendExtT, kotlin.Unit> origin=SUSPEND_CONVERSION reflectionTarget=null $receiver: GET_VAR 'fn: @[ExtensionFunctionType] kotlin.Function1.testExtSAsExtT, kotlin.Unit> declared in .testExtSAsExtT' type=@[ExtensionFunctionType] kotlin.Function1.testExtSAsExtT, kotlin.Unit> origin=null FUN name:testSmartCastWithSuspendConversion visibility:public modality:FINAL <> (a:kotlin.Any) returnType:kotlin.Unit VALUE_PARAMETER name:a index:0 type:kotlin.Any @@ -224,9 +224,9 @@ FILE fqName: fileName:/suspendConversionOnArbitraryExpression.kt FUN ADAPTER_FOR_SUSPEND_CONVERSION name:suspendConversion visibility:local modality:FINAL <> ($receiver:kotlin.Function0) returnType:kotlin.Unit [suspend] $receiver: VALUE_PARAMETER ADAPTER_PARAMETER_FOR_SUSPEND_CONVERSION name:callee type:kotlin.Function0 BLOCK_BODY - CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=kotlin.Unit origin=null + CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=kotlin.Unit origin=null $this: GET_VAR 'callee: kotlin.Function0 declared in .testSmartCastWithSuspendConversion.suspendConversion' type=kotlin.Function0 origin=null - FUNCTION_REFERENCE 'local final fun suspendConversion (): kotlin.Unit [suspend] declared in .testSmartCastWithSuspendConversion' type=kotlin.coroutines.SuspendFunction0 origin=SUSPEND_CONVERSION reflectionTarget=null + FUNCTION_REFERENCE 'local final fun suspendConversion (): kotlin.Unit declared in .testSmartCastWithSuspendConversion' type=kotlin.coroutines.SuspendFunction0 origin=SUSPEND_CONVERSION reflectionTarget=null $receiver: TYPE_OP type=kotlin.Function0 origin=IMPLICIT_CAST typeOperand=kotlin.Function0 GET_VAR 'a: kotlin.Any declared in .testSmartCastWithSuspendConversion' type=kotlin.Any origin=null FUN name:testSmartCastOnVarWithSuspendConversion visibility:public modality:FINAL <> (a:kotlin.Any) returnType:kotlin.Unit @@ -236,17 +236,17 @@ FILE fqName: fileName:/suspendConversionOnArbitraryExpression.kt GET_VAR 'a: kotlin.Any declared in .testSmartCastOnVarWithSuspendConversion' type=kotlin.Any origin=null TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit TYPE_OP type=kotlin.Function0 origin=CAST typeOperand=kotlin.Function0 - GET_VAR 'var b: kotlin.Any [var] declared in .testSmartCastOnVarWithSuspendConversion' type=kotlin.Any origin=null + GET_VAR 'var b: kotlin.Any declared in .testSmartCastOnVarWithSuspendConversion' type=kotlin.Any origin=null CALL 'public final fun useSuspend (sfn: kotlin.coroutines.SuspendFunction0): kotlin.Unit declared in ' type=kotlin.Unit origin=null sfn: BLOCK type=kotlin.coroutines.SuspendFunction0 origin=SUSPEND_CONVERSION FUN ADAPTER_FOR_SUSPEND_CONVERSION name:suspendConversion visibility:local modality:FINAL <> ($receiver:kotlin.Function0) returnType:kotlin.Unit [suspend] $receiver: VALUE_PARAMETER ADAPTER_PARAMETER_FOR_SUSPEND_CONVERSION name:callee type:kotlin.Function0 BLOCK_BODY - CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=kotlin.Unit origin=null + CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=kotlin.Unit origin=null $this: GET_VAR 'callee: kotlin.Function0 declared in .testSmartCastOnVarWithSuspendConversion.suspendConversion' type=kotlin.Function0 origin=null - FUNCTION_REFERENCE 'local final fun suspendConversion (): kotlin.Unit [suspend] declared in .testSmartCastOnVarWithSuspendConversion' type=kotlin.coroutines.SuspendFunction0 origin=SUSPEND_CONVERSION reflectionTarget=null + FUNCTION_REFERENCE 'local final fun suspendConversion (): kotlin.Unit declared in .testSmartCastOnVarWithSuspendConversion' type=kotlin.coroutines.SuspendFunction0 origin=SUSPEND_CONVERSION reflectionTarget=null $receiver: TYPE_OP type=kotlin.Function0 origin=IMPLICIT_CAST typeOperand=kotlin.Function0 - GET_VAR 'var b: kotlin.Any [var] declared in .testSmartCastOnVarWithSuspendConversion' type=kotlin.Any origin=null + GET_VAR 'var b: kotlin.Any declared in .testSmartCastOnVarWithSuspendConversion' type=kotlin.Any origin=null FUN name:testSmartCastVsSuspendConversion visibility:public modality:FINAL <> (a:kotlin.Function0) returnType:kotlin.Unit VALUE_PARAMETER name:a index:0 type:kotlin.Function0 BLOCK_BODY @@ -263,10 +263,10 @@ FILE fqName: fileName:/suspendConversionOnArbitraryExpression.kt GET_VAR 'a: kotlin.Function0 declared in .testSmartCastOnVarVsSuspendConversion' type=kotlin.Function0 origin=null TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit TYPE_OP type=kotlin.coroutines.SuspendFunction0 origin=CAST typeOperand=kotlin.coroutines.SuspendFunction0 - GET_VAR 'var b: kotlin.Function0 [var] declared in .testSmartCastOnVarVsSuspendConversion' type=kotlin.Function0 origin=null + GET_VAR 'var b: kotlin.Function0 declared in .testSmartCastOnVarVsSuspendConversion' type=kotlin.Function0 origin=null CALL 'public final fun useSuspend (sfn: kotlin.coroutines.SuspendFunction0): kotlin.Unit declared in ' type=kotlin.Unit origin=null sfn: TYPE_OP type=kotlin.coroutines.SuspendFunction0 origin=IMPLICIT_CAST typeOperand=kotlin.coroutines.SuspendFunction0 - GET_VAR 'var b: kotlin.Function0 [var] declared in .testSmartCastOnVarVsSuspendConversion' type=kotlin.Function0 origin=null + GET_VAR 'var b: kotlin.Function0 declared in .testSmartCastOnVarVsSuspendConversion' type=kotlin.Function0 origin=null FUN name:testIntersectionVsSuspendConversion visibility:public modality:FINAL (x:T of .testIntersectionVsSuspendConversion) returnType:kotlin.Unit TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Function0; kotlin.coroutines.SuspendFunction0] reified:false VALUE_PARAMETER name:x index:0 type:T of .testIntersectionVsSuspendConversion diff --git a/compiler/testData/ir/irText/expressions/suspendConversionOnArbitraryExpression.ir.txt b/compiler/testData/ir/irText/expressions/suspendConversionOnArbitraryExpression.ir.txt index a90c5c4810b..6a29a594200 100644 --- a/compiler/testData/ir/irText/expressions/suspendConversionOnArbitraryExpression.ir.txt +++ b/compiler/testData/ir/irText/expressions/suspendConversionOnArbitraryExpression.ir.txt @@ -32,9 +32,9 @@ FILE fqName: fileName:/suspendConversionOnArbitraryExpression.kt FUN ADAPTER_FOR_SUSPEND_CONVERSION name:suspendConversion0 visibility:local modality:FINAL <> ($receiver:kotlin.Function0) returnType:kotlin.Unit [suspend] $receiver: VALUE_PARAMETER ADAPTER_PARAMETER_FOR_SUSPEND_CONVERSION name:callee type:kotlin.Function0 BLOCK_BODY - CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=kotlin.Unit origin=null + CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=kotlin.Unit origin=null $this: GET_VAR 'callee: kotlin.Function0 declared in .testSimple.suspendConversion0' type=kotlin.Function0 origin=null - FUNCTION_REFERENCE 'local final fun suspendConversion0 (): kotlin.Unit [suspend] declared in .testSimple' type=kotlin.coroutines.SuspendFunction0 origin=SUSPEND_CONVERSION reflectionTarget=null + FUNCTION_REFERENCE 'local final fun suspendConversion0 (): kotlin.Unit declared in .testSimple' type=kotlin.coroutines.SuspendFunction0 origin=SUSPEND_CONVERSION reflectionTarget=null $receiver: GET_VAR 'fn: kotlin.Function0 declared in .testSimple' type=kotlin.Function0 origin=null FUN name:testSimpleNonVal visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY @@ -43,9 +43,9 @@ FILE fqName: fileName:/suspendConversionOnArbitraryExpression.kt FUN ADAPTER_FOR_SUSPEND_CONVERSION name:suspendConversion0 visibility:local modality:FINAL <> ($receiver:kotlin.Function0) returnType:kotlin.Unit [suspend] $receiver: VALUE_PARAMETER ADAPTER_PARAMETER_FOR_SUSPEND_CONVERSION name:callee type:kotlin.Function0 BLOCK_BODY - CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=kotlin.Unit origin=null + CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=kotlin.Unit origin=null $this: GET_VAR 'callee: kotlin.Function0 declared in .testSimpleNonVal.suspendConversion0' type=kotlin.Function0 origin=null - FUNCTION_REFERENCE 'local final fun suspendConversion0 (): kotlin.Unit [suspend] declared in .testSimpleNonVal' type=kotlin.coroutines.SuspendFunction0 origin=SUSPEND_CONVERSION reflectionTarget=null + FUNCTION_REFERENCE 'local final fun suspendConversion0 (): kotlin.Unit declared in .testSimpleNonVal' type=kotlin.coroutines.SuspendFunction0 origin=SUSPEND_CONVERSION reflectionTarget=null $receiver: CALL 'public final fun produceFun (): kotlin.Function0 declared in ' type=kotlin.Function0 origin=null FUN name:testExtAsExt visibility:public modality:FINAL <> (fn:@[ExtensionFunctionType] kotlin.Function1) returnType:kotlin.Unit VALUE_PARAMETER name:fn index:0 type:@[ExtensionFunctionType] kotlin.Function1 @@ -56,10 +56,10 @@ FILE fqName: fileName:/suspendConversionOnArbitraryExpression.kt $receiver: VALUE_PARAMETER ADAPTER_PARAMETER_FOR_SUSPEND_CONVERSION name:callee type:@[ExtensionFunctionType] kotlin.Function1 VALUE_PARAMETER ADAPTER_PARAMETER_FOR_SUSPEND_CONVERSION name:p0 index:0 type:kotlin.Int BLOCK_BODY - CALL 'public abstract fun invoke (p1: P1 of kotlin.Function1): R of kotlin.Function1 [operator] declared in kotlin.Function1' type=kotlin.Unit origin=null + CALL 'public abstract fun invoke (p1: P1 of kotlin.Function1): R of kotlin.Function1 declared in kotlin.Function1' type=kotlin.Unit origin=null $this: GET_VAR 'callee: @[ExtensionFunctionType] kotlin.Function1 declared in .testExtAsExt.suspendConversion0' type=@[ExtensionFunctionType] kotlin.Function1 origin=null p1: GET_VAR 'p0: kotlin.Int declared in .testExtAsExt.suspendConversion0' type=kotlin.Int origin=null - FUNCTION_REFERENCE 'local final fun suspendConversion0 (p0: kotlin.Int): kotlin.Unit [suspend] declared in .testExtAsExt' type=@[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1 origin=SUSPEND_CONVERSION reflectionTarget=null + FUNCTION_REFERENCE 'local final fun suspendConversion0 (p0: kotlin.Int): kotlin.Unit declared in .testExtAsExt' type=@[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1 origin=SUSPEND_CONVERSION reflectionTarget=null $receiver: GET_VAR 'fn: @[ExtensionFunctionType] kotlin.Function1 declared in .testExtAsExt' type=@[ExtensionFunctionType] kotlin.Function1 origin=null FUN name:testExtAsSimple visibility:public modality:FINAL <> (fn:@[ExtensionFunctionType] kotlin.Function1) returnType:kotlin.Unit VALUE_PARAMETER name:fn index:0 type:@[ExtensionFunctionType] kotlin.Function1 @@ -70,10 +70,10 @@ FILE fqName: fileName:/suspendConversionOnArbitraryExpression.kt $receiver: VALUE_PARAMETER ADAPTER_PARAMETER_FOR_SUSPEND_CONVERSION name:callee type:kotlin.Function1 VALUE_PARAMETER ADAPTER_PARAMETER_FOR_SUSPEND_CONVERSION name:p0 index:0 type:kotlin.Int BLOCK_BODY - CALL 'public abstract fun invoke (p1: P1 of kotlin.Function1): R of kotlin.Function1 [operator] declared in kotlin.Function1' type=kotlin.Unit origin=null + CALL 'public abstract fun invoke (p1: P1 of kotlin.Function1): R of kotlin.Function1 declared in kotlin.Function1' type=kotlin.Unit origin=null $this: GET_VAR 'callee: kotlin.Function1 declared in .testExtAsSimple.suspendConversion0' type=kotlin.Function1 origin=null p1: GET_VAR 'p0: kotlin.Int declared in .testExtAsSimple.suspendConversion0' type=kotlin.Int origin=null - FUNCTION_REFERENCE 'local final fun suspendConversion0 (p0: kotlin.Int): kotlin.Unit [suspend] declared in .testExtAsSimple' type=kotlin.coroutines.SuspendFunction1 origin=SUSPEND_CONVERSION reflectionTarget=null + FUNCTION_REFERENCE 'local final fun suspendConversion0 (p0: kotlin.Int): kotlin.Unit declared in .testExtAsSimple' type=kotlin.coroutines.SuspendFunction1 origin=SUSPEND_CONVERSION reflectionTarget=null $receiver: GET_VAR 'fn: @[ExtensionFunctionType] kotlin.Function1 declared in .testExtAsSimple' type=@[ExtensionFunctionType] kotlin.Function1 origin=null FUN name:testSimpleAsExt visibility:public modality:FINAL <> (fn:kotlin.Function1) returnType:kotlin.Unit VALUE_PARAMETER name:fn index:0 type:kotlin.Function1 @@ -84,10 +84,10 @@ FILE fqName: fileName:/suspendConversionOnArbitraryExpression.kt $receiver: VALUE_PARAMETER ADAPTER_PARAMETER_FOR_SUSPEND_CONVERSION name:callee type:@[ExtensionFunctionType] kotlin.Function1 VALUE_PARAMETER ADAPTER_PARAMETER_FOR_SUSPEND_CONVERSION name:p0 index:0 type:kotlin.Int BLOCK_BODY - CALL 'public abstract fun invoke (p1: P1 of kotlin.Function1): R of kotlin.Function1 [operator] declared in kotlin.Function1' type=kotlin.Unit origin=null + CALL 'public abstract fun invoke (p1: P1 of kotlin.Function1): R of kotlin.Function1 declared in kotlin.Function1' type=kotlin.Unit origin=null $this: GET_VAR 'callee: @[ExtensionFunctionType] kotlin.Function1 declared in .testSimpleAsExt.suspendConversion0' type=@[ExtensionFunctionType] kotlin.Function1 origin=null p1: GET_VAR 'p0: kotlin.Int declared in .testSimpleAsExt.suspendConversion0' type=kotlin.Int origin=null - FUNCTION_REFERENCE 'local final fun suspendConversion0 (p0: kotlin.Int): kotlin.Unit [suspend] declared in .testSimpleAsExt' type=@[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1 origin=SUSPEND_CONVERSION reflectionTarget=null + FUNCTION_REFERENCE 'local final fun suspendConversion0 (p0: kotlin.Int): kotlin.Unit declared in .testSimpleAsExt' type=@[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1 origin=SUSPEND_CONVERSION reflectionTarget=null $receiver: GET_VAR 'fn: kotlin.Function1 declared in .testSimpleAsExt' type=kotlin.Function1 origin=null FUN name:testSimpleAsSimpleT visibility:public modality:FINAL <> (fn:kotlin.Function1) returnType:kotlin.Unit VALUE_PARAMETER name:fn index:0 type:kotlin.Function1 @@ -99,10 +99,10 @@ FILE fqName: fileName:/suspendConversionOnArbitraryExpression.kt $receiver: VALUE_PARAMETER ADAPTER_PARAMETER_FOR_SUSPEND_CONVERSION name:callee type:kotlin.Function1 VALUE_PARAMETER ADAPTER_PARAMETER_FOR_SUSPEND_CONVERSION name:p0 index:0 type:kotlin.Int BLOCK_BODY - CALL 'public abstract fun invoke (p1: P1 of kotlin.Function1): R of kotlin.Function1 [operator] declared in kotlin.Function1' type=kotlin.Unit origin=null + CALL 'public abstract fun invoke (p1: P1 of kotlin.Function1): R of kotlin.Function1 declared in kotlin.Function1' type=kotlin.Unit origin=null $this: GET_VAR 'callee: kotlin.Function1 declared in .testSimpleAsSimpleT.suspendConversion0' type=kotlin.Function1 origin=null p1: GET_VAR 'p0: kotlin.Int declared in .testSimpleAsSimpleT.suspendConversion0' type=kotlin.Int origin=null - FUNCTION_REFERENCE 'local final fun suspendConversion0 (p0: kotlin.Int): kotlin.Unit [suspend] declared in .testSimpleAsSimpleT' type=kotlin.coroutines.SuspendFunction1 origin=SUSPEND_CONVERSION reflectionTarget=null + FUNCTION_REFERENCE 'local final fun suspendConversion0 (p0: kotlin.Int): kotlin.Unit declared in .testSimpleAsSimpleT' type=kotlin.coroutines.SuspendFunction1 origin=SUSPEND_CONVERSION reflectionTarget=null $receiver: GET_VAR 'fn: kotlin.Function1 declared in .testSimpleAsSimpleT' type=kotlin.Function1 origin=null FUN name:testSimpleAsExtT visibility:public modality:FINAL <> (fn:kotlin.Function1) returnType:kotlin.Unit VALUE_PARAMETER name:fn index:0 type:kotlin.Function1 @@ -114,10 +114,10 @@ FILE fqName: fileName:/suspendConversionOnArbitraryExpression.kt $receiver: VALUE_PARAMETER ADAPTER_PARAMETER_FOR_SUSPEND_CONVERSION name:callee type:@[ExtensionFunctionType] kotlin.Function1 VALUE_PARAMETER ADAPTER_PARAMETER_FOR_SUSPEND_CONVERSION name:p0 index:0 type:kotlin.Int BLOCK_BODY - CALL 'public abstract fun invoke (p1: P1 of kotlin.Function1): R of kotlin.Function1 [operator] declared in kotlin.Function1' type=kotlin.Unit origin=null + CALL 'public abstract fun invoke (p1: P1 of kotlin.Function1): R of kotlin.Function1 declared in kotlin.Function1' type=kotlin.Unit origin=null $this: GET_VAR 'callee: @[ExtensionFunctionType] kotlin.Function1 declared in .testSimpleAsExtT.suspendConversion0' type=@[ExtensionFunctionType] kotlin.Function1 origin=null p1: GET_VAR 'p0: kotlin.Int declared in .testSimpleAsExtT.suspendConversion0' type=kotlin.Int origin=null - FUNCTION_REFERENCE 'local final fun suspendConversion0 (p0: kotlin.Int): kotlin.Unit [suspend] declared in .testSimpleAsExtT' type=@[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1 origin=SUSPEND_CONVERSION reflectionTarget=null + FUNCTION_REFERENCE 'local final fun suspendConversion0 (p0: kotlin.Int): kotlin.Unit declared in .testSimpleAsExtT' type=@[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1 origin=SUSPEND_CONVERSION reflectionTarget=null $receiver: GET_VAR 'fn: kotlin.Function1 declared in .testSimpleAsExtT' type=kotlin.Function1 origin=null FUN name:testExtAsSimpleT visibility:public modality:FINAL <> (fn:@[ExtensionFunctionType] kotlin.Function1) returnType:kotlin.Unit VALUE_PARAMETER name:fn index:0 type:@[ExtensionFunctionType] kotlin.Function1 @@ -129,10 +129,10 @@ FILE fqName: fileName:/suspendConversionOnArbitraryExpression.kt $receiver: VALUE_PARAMETER ADAPTER_PARAMETER_FOR_SUSPEND_CONVERSION name:callee type:kotlin.Function1 VALUE_PARAMETER ADAPTER_PARAMETER_FOR_SUSPEND_CONVERSION name:p0 index:0 type:kotlin.Int BLOCK_BODY - CALL 'public abstract fun invoke (p1: P1 of kotlin.Function1): R of kotlin.Function1 [operator] declared in kotlin.Function1' type=kotlin.Unit origin=null + CALL 'public abstract fun invoke (p1: P1 of kotlin.Function1): R of kotlin.Function1 declared in kotlin.Function1' type=kotlin.Unit origin=null $this: GET_VAR 'callee: kotlin.Function1 declared in .testExtAsSimpleT.suspendConversion0' type=kotlin.Function1 origin=null p1: GET_VAR 'p0: kotlin.Int declared in .testExtAsSimpleT.suspendConversion0' type=kotlin.Int origin=null - FUNCTION_REFERENCE 'local final fun suspendConversion0 (p0: kotlin.Int): kotlin.Unit [suspend] declared in .testExtAsSimpleT' type=kotlin.coroutines.SuspendFunction1 origin=SUSPEND_CONVERSION reflectionTarget=null + FUNCTION_REFERENCE 'local final fun suspendConversion0 (p0: kotlin.Int): kotlin.Unit declared in .testExtAsSimpleT' type=kotlin.coroutines.SuspendFunction1 origin=SUSPEND_CONVERSION reflectionTarget=null $receiver: GET_VAR 'fn: @[ExtensionFunctionType] kotlin.Function1 declared in .testExtAsSimpleT' type=@[ExtensionFunctionType] kotlin.Function1 origin=null FUN name:testExtAsExtT visibility:public modality:FINAL <> (fn:@[ExtensionFunctionType] kotlin.Function1) returnType:kotlin.Unit VALUE_PARAMETER name:fn index:0 type:@[ExtensionFunctionType] kotlin.Function1 @@ -144,10 +144,10 @@ FILE fqName: fileName:/suspendConversionOnArbitraryExpression.kt $receiver: VALUE_PARAMETER ADAPTER_PARAMETER_FOR_SUSPEND_CONVERSION name:callee type:@[ExtensionFunctionType] kotlin.Function1 VALUE_PARAMETER ADAPTER_PARAMETER_FOR_SUSPEND_CONVERSION name:p0 index:0 type:kotlin.Int BLOCK_BODY - CALL 'public abstract fun invoke (p1: P1 of kotlin.Function1): R of kotlin.Function1 [operator] declared in kotlin.Function1' type=kotlin.Unit origin=null + CALL 'public abstract fun invoke (p1: P1 of kotlin.Function1): R of kotlin.Function1 declared in kotlin.Function1' type=kotlin.Unit origin=null $this: GET_VAR 'callee: @[ExtensionFunctionType] kotlin.Function1 declared in .testExtAsExtT.suspendConversion0' type=@[ExtensionFunctionType] kotlin.Function1 origin=null p1: GET_VAR 'p0: kotlin.Int declared in .testExtAsExtT.suspendConversion0' type=kotlin.Int origin=null - FUNCTION_REFERENCE 'local final fun suspendConversion0 (p0: kotlin.Int): kotlin.Unit [suspend] declared in .testExtAsExtT' type=@[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1 origin=SUSPEND_CONVERSION reflectionTarget=null + FUNCTION_REFERENCE 'local final fun suspendConversion0 (p0: kotlin.Int): kotlin.Unit declared in .testExtAsExtT' type=@[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1 origin=SUSPEND_CONVERSION reflectionTarget=null $receiver: GET_VAR 'fn: @[ExtensionFunctionType] kotlin.Function1 declared in .testExtAsExtT' type=@[ExtensionFunctionType] kotlin.Function1 origin=null FUN name:testSimpleSAsSimpleT visibility:public modality:FINAL (fn:kotlin.Function1.testSimpleSAsSimpleT, kotlin.Unit>) returnType:kotlin.Unit TYPE_PARAMETER name:S index:0 variance: superTypes:[kotlin.Any?] reified:false @@ -160,10 +160,10 @@ FILE fqName: fileName:/suspendConversionOnArbitraryExpression.kt $receiver: VALUE_PARAMETER ADAPTER_PARAMETER_FOR_SUSPEND_CONVERSION name:callee type:kotlin.Function1.testSimpleSAsSimpleT, kotlin.Unit> VALUE_PARAMETER ADAPTER_PARAMETER_FOR_SUSPEND_CONVERSION name:p0 index:0 type:S of .testSimpleSAsSimpleT BLOCK_BODY - CALL 'public abstract fun invoke (p1: P1 of kotlin.Function1): R of kotlin.Function1 [operator] declared in kotlin.Function1' type=kotlin.Unit origin=null + CALL 'public abstract fun invoke (p1: P1 of kotlin.Function1): R of kotlin.Function1 declared in kotlin.Function1' type=kotlin.Unit origin=null $this: GET_VAR 'callee: kotlin.Function1.testSimpleSAsSimpleT, kotlin.Unit> declared in .testSimpleSAsSimpleT.suspendConversion0' type=kotlin.Function1.testSimpleSAsSimpleT, kotlin.Unit> origin=null p1: GET_VAR 'p0: S of .testSimpleSAsSimpleT declared in .testSimpleSAsSimpleT.suspendConversion0' type=S of .testSimpleSAsSimpleT origin=null - FUNCTION_REFERENCE 'local final fun suspendConversion0 (p0: S of .testSimpleSAsSimpleT): kotlin.Unit [suspend] declared in .testSimpleSAsSimpleT' type=kotlin.coroutines.SuspendFunction1.testSimpleSAsSimpleT, kotlin.Unit> origin=SUSPEND_CONVERSION reflectionTarget=null + FUNCTION_REFERENCE 'local final fun suspendConversion0 (p0: S of .testSimpleSAsSimpleT): kotlin.Unit declared in .testSimpleSAsSimpleT' type=kotlin.coroutines.SuspendFunction1.testSimpleSAsSimpleT, kotlin.Unit> origin=SUSPEND_CONVERSION reflectionTarget=null $receiver: GET_VAR 'fn: kotlin.Function1.testSimpleSAsSimpleT, kotlin.Unit> declared in .testSimpleSAsSimpleT' type=kotlin.Function1.testSimpleSAsSimpleT, kotlin.Unit> origin=null FUN name:testSimpleSAsExtT visibility:public modality:FINAL (fn:kotlin.Function1.testSimpleSAsExtT, kotlin.Unit>) returnType:kotlin.Unit TYPE_PARAMETER name:S index:0 variance: superTypes:[kotlin.Any?] reified:false @@ -176,10 +176,10 @@ FILE fqName: fileName:/suspendConversionOnArbitraryExpression.kt $receiver: VALUE_PARAMETER ADAPTER_PARAMETER_FOR_SUSPEND_CONVERSION name:callee type:@[ExtensionFunctionType] kotlin.Function1.testSimpleSAsExtT, kotlin.Unit> VALUE_PARAMETER ADAPTER_PARAMETER_FOR_SUSPEND_CONVERSION name:p0 index:0 type:S of .testSimpleSAsExtT BLOCK_BODY - CALL 'public abstract fun invoke (p1: P1 of kotlin.Function1): R of kotlin.Function1 [operator] declared in kotlin.Function1' type=kotlin.Unit origin=null + CALL 'public abstract fun invoke (p1: P1 of kotlin.Function1): R of kotlin.Function1 declared in kotlin.Function1' type=kotlin.Unit origin=null $this: GET_VAR 'callee: @[ExtensionFunctionType] kotlin.Function1.testSimpleSAsExtT, kotlin.Unit> declared in .testSimpleSAsExtT.suspendConversion0' type=@[ExtensionFunctionType] kotlin.Function1.testSimpleSAsExtT, kotlin.Unit> origin=null p1: GET_VAR 'p0: S of .testSimpleSAsExtT declared in .testSimpleSAsExtT.suspendConversion0' type=S of .testSimpleSAsExtT origin=null - FUNCTION_REFERENCE 'local final fun suspendConversion0 (p0: S of .testSimpleSAsExtT): kotlin.Unit [suspend] declared in .testSimpleSAsExtT' type=@[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1.testSimpleSAsExtT, kotlin.Unit> origin=SUSPEND_CONVERSION reflectionTarget=null + FUNCTION_REFERENCE 'local final fun suspendConversion0 (p0: S of .testSimpleSAsExtT): kotlin.Unit declared in .testSimpleSAsExtT' type=@[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1.testSimpleSAsExtT, kotlin.Unit> origin=SUSPEND_CONVERSION reflectionTarget=null $receiver: GET_VAR 'fn: kotlin.Function1.testSimpleSAsExtT, kotlin.Unit> declared in .testSimpleSAsExtT' type=kotlin.Function1.testSimpleSAsExtT, kotlin.Unit> origin=null FUN name:testExtSAsSimpleT visibility:public modality:FINAL (fn:@[ExtensionFunctionType] kotlin.Function1.testExtSAsSimpleT, kotlin.Unit>) returnType:kotlin.Unit TYPE_PARAMETER name:S index:0 variance: superTypes:[kotlin.Any?] reified:false @@ -192,10 +192,10 @@ FILE fqName: fileName:/suspendConversionOnArbitraryExpression.kt $receiver: VALUE_PARAMETER ADAPTER_PARAMETER_FOR_SUSPEND_CONVERSION name:callee type:kotlin.Function1.testExtSAsSimpleT, kotlin.Unit> VALUE_PARAMETER ADAPTER_PARAMETER_FOR_SUSPEND_CONVERSION name:p0 index:0 type:S of .testExtSAsSimpleT BLOCK_BODY - CALL 'public abstract fun invoke (p1: P1 of kotlin.Function1): R of kotlin.Function1 [operator] declared in kotlin.Function1' type=kotlin.Unit origin=null + CALL 'public abstract fun invoke (p1: P1 of kotlin.Function1): R of kotlin.Function1 declared in kotlin.Function1' type=kotlin.Unit origin=null $this: GET_VAR 'callee: kotlin.Function1.testExtSAsSimpleT, kotlin.Unit> declared in .testExtSAsSimpleT.suspendConversion0' type=kotlin.Function1.testExtSAsSimpleT, kotlin.Unit> origin=null p1: GET_VAR 'p0: S of .testExtSAsSimpleT declared in .testExtSAsSimpleT.suspendConversion0' type=S of .testExtSAsSimpleT origin=null - FUNCTION_REFERENCE 'local final fun suspendConversion0 (p0: S of .testExtSAsSimpleT): kotlin.Unit [suspend] declared in .testExtSAsSimpleT' type=kotlin.coroutines.SuspendFunction1.testExtSAsSimpleT, kotlin.Unit> origin=SUSPEND_CONVERSION reflectionTarget=null + FUNCTION_REFERENCE 'local final fun suspendConversion0 (p0: S of .testExtSAsSimpleT): kotlin.Unit declared in .testExtSAsSimpleT' type=kotlin.coroutines.SuspendFunction1.testExtSAsSimpleT, kotlin.Unit> origin=SUSPEND_CONVERSION reflectionTarget=null $receiver: GET_VAR 'fn: @[ExtensionFunctionType] kotlin.Function1.testExtSAsSimpleT, kotlin.Unit> declared in .testExtSAsSimpleT' type=@[ExtensionFunctionType] kotlin.Function1.testExtSAsSimpleT, kotlin.Unit> origin=null FUN name:testExtSAsExtT visibility:public modality:FINAL (fn:@[ExtensionFunctionType] kotlin.Function1.testExtSAsExtT, kotlin.Unit>) returnType:kotlin.Unit TYPE_PARAMETER name:S index:0 variance: superTypes:[kotlin.Any?] reified:false @@ -208,10 +208,10 @@ FILE fqName: fileName:/suspendConversionOnArbitraryExpression.kt $receiver: VALUE_PARAMETER ADAPTER_PARAMETER_FOR_SUSPEND_CONVERSION name:callee type:@[ExtensionFunctionType] kotlin.Function1.testExtSAsExtT, kotlin.Unit> VALUE_PARAMETER ADAPTER_PARAMETER_FOR_SUSPEND_CONVERSION name:p0 index:0 type:S of .testExtSAsExtT BLOCK_BODY - CALL 'public abstract fun invoke (p1: P1 of kotlin.Function1): R of kotlin.Function1 [operator] declared in kotlin.Function1' type=kotlin.Unit origin=null + CALL 'public abstract fun invoke (p1: P1 of kotlin.Function1): R of kotlin.Function1 declared in kotlin.Function1' type=kotlin.Unit origin=null $this: GET_VAR 'callee: @[ExtensionFunctionType] kotlin.Function1.testExtSAsExtT, kotlin.Unit> declared in .testExtSAsExtT.suspendConversion0' type=@[ExtensionFunctionType] kotlin.Function1.testExtSAsExtT, kotlin.Unit> origin=null p1: GET_VAR 'p0: S of .testExtSAsExtT declared in .testExtSAsExtT.suspendConversion0' type=S of .testExtSAsExtT origin=null - FUNCTION_REFERENCE 'local final fun suspendConversion0 (p0: S of .testExtSAsExtT): kotlin.Unit [suspend] declared in .testExtSAsExtT' type=@[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1.testExtSAsExtT, kotlin.Unit> origin=SUSPEND_CONVERSION reflectionTarget=null + FUNCTION_REFERENCE 'local final fun suspendConversion0 (p0: S of .testExtSAsExtT): kotlin.Unit declared in .testExtSAsExtT' type=@[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1.testExtSAsExtT, kotlin.Unit> origin=SUSPEND_CONVERSION reflectionTarget=null $receiver: GET_VAR 'fn: @[ExtensionFunctionType] kotlin.Function1.testExtSAsExtT, kotlin.Unit> declared in .testExtSAsExtT' type=@[ExtensionFunctionType] kotlin.Function1.testExtSAsExtT, kotlin.Unit> origin=null FUN name:testSmartCastWithSuspendConversion visibility:public modality:FINAL <> (a:kotlin.Any) returnType:kotlin.Unit VALUE_PARAMETER name:a index:0 type:kotlin.Any @@ -224,9 +224,9 @@ FILE fqName: fileName:/suspendConversionOnArbitraryExpression.kt FUN ADAPTER_FOR_SUSPEND_CONVERSION name:suspendConversion0 visibility:local modality:FINAL <> ($receiver:kotlin.Function0) returnType:kotlin.Unit [suspend] $receiver: VALUE_PARAMETER ADAPTER_PARAMETER_FOR_SUSPEND_CONVERSION name:callee type:kotlin.Function0 BLOCK_BODY - CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=kotlin.Unit origin=null + CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=kotlin.Unit origin=null $this: GET_VAR 'callee: kotlin.Function0 declared in .testSmartCastWithSuspendConversion.suspendConversion0' type=kotlin.Function0 origin=null - FUNCTION_REFERENCE 'local final fun suspendConversion0 (): kotlin.Unit [suspend] declared in .testSmartCastWithSuspendConversion' type=kotlin.coroutines.SuspendFunction0 origin=SUSPEND_CONVERSION reflectionTarget=null + FUNCTION_REFERENCE 'local final fun suspendConversion0 (): kotlin.Unit declared in .testSmartCastWithSuspendConversion' type=kotlin.coroutines.SuspendFunction0 origin=SUSPEND_CONVERSION reflectionTarget=null $receiver: TYPE_OP type=kotlin.Function0 origin=IMPLICIT_CAST typeOperand=kotlin.Function0 GET_VAR 'a: kotlin.Any declared in .testSmartCastWithSuspendConversion' type=kotlin.Any origin=null FUN name:testSmartCastOnVarWithSuspendConversion visibility:public modality:FINAL <> (a:kotlin.Any) returnType:kotlin.Unit @@ -236,17 +236,17 @@ FILE fqName: fileName:/suspendConversionOnArbitraryExpression.kt GET_VAR 'a: kotlin.Any declared in .testSmartCastOnVarWithSuspendConversion' type=kotlin.Any origin=null TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit TYPE_OP type=kotlin.Function0 origin=CAST typeOperand=kotlin.Function0 - GET_VAR 'var b: kotlin.Any [var] declared in .testSmartCastOnVarWithSuspendConversion' type=kotlin.Any origin=null + GET_VAR 'var b: kotlin.Any declared in .testSmartCastOnVarWithSuspendConversion' type=kotlin.Any origin=null CALL 'public final fun useSuspend (sfn: kotlin.coroutines.SuspendFunction0): kotlin.Unit declared in ' type=kotlin.Unit origin=null sfn: BLOCK type=kotlin.coroutines.SuspendFunction0 origin=SUSPEND_CONVERSION FUN ADAPTER_FOR_SUSPEND_CONVERSION name:suspendConversion0 visibility:local modality:FINAL <> ($receiver:kotlin.Function0) returnType:kotlin.Unit [suspend] $receiver: VALUE_PARAMETER ADAPTER_PARAMETER_FOR_SUSPEND_CONVERSION name:callee type:kotlin.Function0 BLOCK_BODY - CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=kotlin.Unit origin=null + CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=kotlin.Unit origin=null $this: GET_VAR 'callee: kotlin.Function0 declared in .testSmartCastOnVarWithSuspendConversion.suspendConversion0' type=kotlin.Function0 origin=null - FUNCTION_REFERENCE 'local final fun suspendConversion0 (): kotlin.Unit [suspend] declared in .testSmartCastOnVarWithSuspendConversion' type=kotlin.coroutines.SuspendFunction0 origin=SUSPEND_CONVERSION reflectionTarget=null + FUNCTION_REFERENCE 'local final fun suspendConversion0 (): kotlin.Unit declared in .testSmartCastOnVarWithSuspendConversion' type=kotlin.coroutines.SuspendFunction0 origin=SUSPEND_CONVERSION reflectionTarget=null $receiver: TYPE_OP type=kotlin.Function0 origin=IMPLICIT_CAST typeOperand=kotlin.Function0 - GET_VAR 'var b: kotlin.Any [var] declared in .testSmartCastOnVarWithSuspendConversion' type=kotlin.Any origin=null + GET_VAR 'var b: kotlin.Any declared in .testSmartCastOnVarWithSuspendConversion' type=kotlin.Any origin=null FUN name:testSmartCastVsSuspendConversion visibility:public modality:FINAL <> (a:kotlin.Function0) returnType:kotlin.Unit VALUE_PARAMETER name:a index:0 type:kotlin.Function0 BLOCK_BODY @@ -263,10 +263,10 @@ FILE fqName: fileName:/suspendConversionOnArbitraryExpression.kt GET_VAR 'a: kotlin.Function0 declared in .testSmartCastOnVarVsSuspendConversion' type=kotlin.Function0 origin=null TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit TYPE_OP type=kotlin.coroutines.SuspendFunction0 origin=CAST typeOperand=kotlin.coroutines.SuspendFunction0 - GET_VAR 'var b: kotlin.Function0 [var] declared in .testSmartCastOnVarVsSuspendConversion' type=kotlin.Function0 origin=null + GET_VAR 'var b: kotlin.Function0 declared in .testSmartCastOnVarVsSuspendConversion' type=kotlin.Function0 origin=null CALL 'public final fun useSuspend (sfn: kotlin.coroutines.SuspendFunction0): kotlin.Unit declared in ' type=kotlin.Unit origin=null sfn: TYPE_OP type=kotlin.coroutines.SuspendFunction0 origin=IMPLICIT_CAST typeOperand=kotlin.coroutines.SuspendFunction0 - GET_VAR 'var b: kotlin.Function0 [var] declared in .testSmartCastOnVarVsSuspendConversion' type=kotlin.Function0 origin=null + GET_VAR 'var b: kotlin.Function0 declared in .testSmartCastOnVarVsSuspendConversion' type=kotlin.Function0 origin=null FUN name:testIntersectionVsSuspendConversion visibility:public modality:FINAL (x:T of .testIntersectionVsSuspendConversion) returnType:kotlin.Unit TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Function0; kotlin.coroutines.SuspendFunction0] reified:false VALUE_PARAMETER name:x index:0 type:T of .testIntersectionVsSuspendConversion diff --git a/compiler/testData/ir/irText/expressions/suspendConversionWithFunInterfaces.fir.ir.txt b/compiler/testData/ir/irText/expressions/suspendConversionWithFunInterfaces.fir.ir.txt index 24566e2974a..dd4d57fd4a2 100644 --- a/compiler/testData/ir/irText/expressions/suspendConversionWithFunInterfaces.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/suspendConversionWithFunInterfaces.fir.ir.txt @@ -5,7 +5,7 @@ FILE fqName: fileName:/suspendConversionWithFunInterfaces.kt $this: VALUE_PARAMETER name: type:.SuspendRunnable 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -35,7 +35,7 @@ FILE fqName: fileName:/suspendConversionWithFunInterfaces.kt EXPRESSION_BODY CONST String type=kotlin.String value="" BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun bar3 (s: kotlin.String): kotlin.Int [suspend] declared in ' + RETURN type=kotlin.Nothing from='public final fun bar3 (s: kotlin.String): kotlin.Int declared in ' CONST Int type=kotlin.Int value=0 FUN name:box visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY diff --git a/compiler/testData/ir/irText/expressions/suspendConversionWithFunInterfaces.ir.txt b/compiler/testData/ir/irText/expressions/suspendConversionWithFunInterfaces.ir.txt index bd7345d93e8..ef9f00c9f12 100644 --- a/compiler/testData/ir/irText/expressions/suspendConversionWithFunInterfaces.ir.txt +++ b/compiler/testData/ir/irText/expressions/suspendConversionWithFunInterfaces.ir.txt @@ -5,7 +5,7 @@ FILE fqName: fileName:/suspendConversionWithFunInterfaces.kt $this: VALUE_PARAMETER name: type:.SuspendRunnable 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -35,7 +35,7 @@ FILE fqName: fileName:/suspendConversionWithFunInterfaces.kt EXPRESSION_BODY CONST String type=kotlin.String value="" BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun bar3 (s: kotlin.String): kotlin.Int [suspend] declared in ' + RETURN type=kotlin.Nothing from='public final fun bar3 (s: kotlin.String): kotlin.Int declared in ' CONST Int type=kotlin.Int value=0 FUN name:box visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY @@ -45,7 +45,7 @@ FILE fqName: fileName:/suspendConversionWithFunInterfaces.kt BLOCK_BODY CALL 'public final fun bar1 (): kotlin.Unit declared in ' type=kotlin.Unit origin=null TYPE_OP type=.SuspendRunnable origin=SAM_CONVERSION typeOperand=.SuspendRunnable - FUNCTION_REFERENCE 'local final fun bar1 (): kotlin.Unit [suspend] declared in .box' type=kotlin.coroutines.SuspendFunction0 origin=ADAPTED_FUNCTION_REFERENCE reflectionTarget=public final fun bar1 (): kotlin.Unit declared in + FUNCTION_REFERENCE 'local final fun bar1 (): kotlin.Unit declared in .box' type=kotlin.coroutines.SuspendFunction0 origin=ADAPTED_FUNCTION_REFERENCE reflectionTarget=public final fun bar1 (): kotlin.Unit declared in CALL 'public final fun foo1 (s: .SuspendRunnable): kotlin.Unit declared in ' type=kotlin.Unit origin=null s: BLOCK type=.SuspendRunnable origin=ADAPTED_FUNCTION_REFERENCE FUN ADAPTER_FOR_CALLABLE_REFERENCE name:bar2 visibility:local modality:FINAL <> () returnType:kotlin.Unit [suspend] @@ -53,11 +53,11 @@ FILE fqName: fileName:/suspendConversionWithFunInterfaces.kt TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit CALL 'public final fun bar2 (s: kotlin.String): kotlin.Int declared in ' type=kotlin.Int origin=null TYPE_OP type=.SuspendRunnable origin=SAM_CONVERSION typeOperand=.SuspendRunnable - FUNCTION_REFERENCE 'local final fun bar2 (): kotlin.Unit [suspend] declared in .box' type=kotlin.coroutines.SuspendFunction0 origin=ADAPTED_FUNCTION_REFERENCE reflectionTarget=public final fun bar2 (s: kotlin.String): kotlin.Int declared in + FUNCTION_REFERENCE 'local final fun bar2 (): kotlin.Unit declared in .box' type=kotlin.coroutines.SuspendFunction0 origin=ADAPTED_FUNCTION_REFERENCE reflectionTarget=public final fun bar2 (s: kotlin.String): kotlin.Int declared in CALL 'public final fun foo1 (s: .SuspendRunnable): kotlin.Unit declared in ' type=kotlin.Unit origin=null s: BLOCK type=.SuspendRunnable origin=ADAPTED_FUNCTION_REFERENCE FUN ADAPTER_FOR_CALLABLE_REFERENCE name:bar3 visibility:local modality:FINAL <> () returnType:kotlin.Unit [suspend] BLOCK_BODY CALL 'public final fun bar3 (): kotlin.Unit declared in ' type=kotlin.Unit origin=null TYPE_OP type=.SuspendRunnable origin=SAM_CONVERSION typeOperand=.SuspendRunnable - FUNCTION_REFERENCE 'local final fun bar3 (): kotlin.Unit [suspend] declared in .box' type=kotlin.coroutines.SuspendFunction0 origin=ADAPTED_FUNCTION_REFERENCE reflectionTarget=public final fun bar3 (): kotlin.Unit declared in + FUNCTION_REFERENCE 'local final fun bar3 (): kotlin.Unit declared in .box' type=kotlin.coroutines.SuspendFunction0 origin=ADAPTED_FUNCTION_REFERENCE reflectionTarget=public final fun bar3 (): kotlin.Unit declared in diff --git a/compiler/testData/ir/irText/expressions/temporaryInEnumEntryInitializer.fir.ir.txt b/compiler/testData/ir/irText/expressions/temporaryInEnumEntryInitializer.fir.ir.txt index 850050bb5a5..8a0a9364718 100644 --- a/compiler/testData/ir/irText/expressions/temporaryInEnumEntryInitializer.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/temporaryInEnumEntryInitializer.fir.ir.txt @@ -13,7 +13,7 @@ FILE fqName: fileName:/temporaryInEnumEntryInitializer.kt CONSTRUCTOR visibility:private <> (x:kotlin.String?) returnType:.En [primary] VALUE_PARAMETER name:x index:0 type:kotlin.String? BLOCK_BODY - ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) [primary] declared in kotlin.Enum' + ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) declared in kotlin.Enum' : .En INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_CLASS name:En modality:FINAL visibility:public superTypes:[kotlin.Enum<.En>]' PROPERTY name:x visibility:public modality:FINAL [val] @@ -29,20 +29,20 @@ FILE fqName: fileName:/temporaryInEnumEntryInitializer.kt receiver: GET_VAR ': .En declared in .En.' type=.En origin=null ENUM_ENTRY name:ENTRY init: EXPRESSION_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor (x: kotlin.String?) [primary] declared in .En' + ENUM_CONSTRUCTOR_CALL 'private constructor (x: kotlin.String?) declared in .En' x: BLOCK type=kotlin.String? origin=SAFE_CALL VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:kotlin.Any? [val] CALL 'public final fun (): kotlin.Any? declared in ' type=kotlin.Any? origin=GET_PROPERTY WHEN type=kotlin.String? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_0: kotlin.Any? [val] declared in .En' type=kotlin.Any? origin=null + arg0: GET_VAR 'val tmp_0: kotlin.Any? declared in .En' type=kotlin.Any? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public open fun toString (): kotlin.String declared in kotlin.Any' type=kotlin.String origin=null - $this: GET_VAR 'val tmp_0: kotlin.Any? [val] declared in .En' type=kotlin.Any? origin=null + $this: GET_VAR 'val tmp_0: kotlin.Any? declared in .En' type=kotlin.Any? origin=null FUN ENUM_CLASS_SPECIAL_MEMBER name:values visibility:public modality:FINAL <> () returnType:kotlin.Array<.En> SYNTHETIC_BODY kind=ENUM_VALUES FUN ENUM_CLASS_SPECIAL_MEMBER name:valueOf visibility:public modality:FINAL <> (value:kotlin.String) returnType:.En @@ -58,12 +58,12 @@ FILE fqName: fileName:/temporaryInEnumEntryInitializer.kt $this: VALUE_PARAMETER name: type:kotlin.Enum FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum, other:.En) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: E of kotlin.Enum): kotlin.Int [operator] declared in kotlin.Enum + public final fun compareTo (other: E of kotlin.Enum): kotlin.Int declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:.En FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Enum + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:hashCode visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] @@ -78,7 +78,7 @@ FILE fqName: fileName:/temporaryInEnumEntryInitializer.kt annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: @@ -86,7 +86,7 @@ FILE fqName: fileName:/temporaryInEnumEntryInitializer.kt $this: VALUE_PARAMETER name: type:kotlin.Enum PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: diff --git a/compiler/testData/ir/irText/expressions/temporaryInEnumEntryInitializer.ir.txt b/compiler/testData/ir/irText/expressions/temporaryInEnumEntryInitializer.ir.txt index 5315a5f88a4..c665d0f12a3 100644 --- a/compiler/testData/ir/irText/expressions/temporaryInEnumEntryInitializer.ir.txt +++ b/compiler/testData/ir/irText/expressions/temporaryInEnumEntryInitializer.ir.txt @@ -13,7 +13,7 @@ FILE fqName: fileName:/temporaryInEnumEntryInitializer.kt CONSTRUCTOR visibility:private <> (x:kotlin.String?) returnType:.En [primary] VALUE_PARAMETER name:x index:0 type:kotlin.String? BLOCK_BODY - ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) [primary] declared in kotlin.Enum' + ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) declared in kotlin.Enum' : .En INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_CLASS name:En modality:FINAL visibility:public superTypes:[kotlin.Enum<.En>]' PROPERTY name:x visibility:public modality:FINAL [val] @@ -29,25 +29,25 @@ FILE fqName: fileName:/temporaryInEnumEntryInitializer.kt receiver: GET_VAR ': .En declared in .En.' type=.En origin=null ENUM_ENTRY name:ENTRY init: EXPRESSION_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor (x: kotlin.String?) [primary] declared in .En' + ENUM_CONSTRUCTOR_CALL 'private constructor (x: kotlin.String?) declared in .En' x: BLOCK type=kotlin.String? origin=SAFE_CALL VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:kotlin.Any? [val] CALL 'public final fun (): kotlin.Any? declared in ' type=kotlin.Any? origin=GET_PROPERTY WHEN type=kotlin.String? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_0: kotlin.Any? [val] declared in .En' type=kotlin.Any? origin=null + arg0: GET_VAR 'val tmp_0: kotlin.Any? declared in .En' type=kotlin.Any? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public open fun toString (): kotlin.String declared in kotlin.Any' type=kotlin.String origin=null - $this: GET_VAR 'val tmp_0: kotlin.Any? [val] declared in .En' type=kotlin.Any? origin=null + $this: GET_VAR 'val tmp_0: kotlin.Any? declared in .En' type=kotlin.Any? origin=null PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.En>) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: @@ -55,7 +55,7 @@ FILE fqName: fileName:/temporaryInEnumEntryInitializer.kt $this: VALUE_PARAMETER name: type:kotlin.Enum<.En> PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.En>) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: @@ -67,12 +67,12 @@ FILE fqName: fileName:/temporaryInEnumEntryInitializer.kt $this: VALUE_PARAMETER name: type:kotlin.Enum<.En> FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum<.En>, other:.En) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: E of kotlin.Enum): kotlin.Int [operator] declared in kotlin.Enum + public final fun compareTo (other: E of kotlin.Enum): kotlin.Int declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum<.En> VALUE_PARAMETER name:other index:0 type:.En FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum<.En>, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Enum + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum<.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<.En>) returnType:kotlin.Unit [fake_override] diff --git a/compiler/testData/ir/irText/expressions/temporaryInInitBlock.ir.txt b/compiler/testData/ir/irText/expressions/temporaryInInitBlock.ir.txt index 842752aa6d2..ac44f947bf4 100644 --- a/compiler/testData/ir/irText/expressions/temporaryInInitBlock.ir.txt +++ b/compiler/testData/ir/irText/expressions/temporaryInInitBlock.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/temporaryInInitBlock.kt CONSTRUCTOR visibility:public <> (x:kotlin.Any?) returnType:.C [primary] VALUE_PARAMETER name:x index:0 type:kotlin.Any? BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:s visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:s type:kotlin.String? visibility:private [final] @@ -25,16 +25,16 @@ FILE fqName: fileName:/temporaryInInitBlock.kt WHEN type=kotlin.String? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_0: kotlin.Any? [val] declared in .C' type=kotlin.Any? origin=null + arg0: GET_VAR 'val tmp_0: kotlin.Any? declared in .C' type=kotlin.Any? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public open fun toString (): kotlin.String declared in kotlin.Any' type=kotlin.String origin=null - $this: GET_VAR 'val tmp_0: kotlin.Any? [val] declared in .C' type=kotlin.Any? origin=null + $this: GET_VAR 'val tmp_0: kotlin.Any? declared in .C' type=kotlin.Any? 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/expressions/thisOfGenericOuterClass.fir.ir.txt b/compiler/testData/ir/irText/expressions/thisOfGenericOuterClass.fir.ir.txt index 9aa6d9d3dcf..113cd55a8a9 100644 --- a/compiler/testData/ir/irText/expressions/thisOfGenericOuterClass.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/thisOfGenericOuterClass.fir.ir.txt @@ -5,7 +5,7 @@ FILE fqName: fileName:/thisOfGenericOuterClass.kt CONSTRUCTOR visibility:public <> (x:T of .Outer) returnType:.Outer.Outer> [primary] VALUE_PARAMETER name:x index:0 type:T of .Outer BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Outer modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:T of .Outer visibility:private [final] @@ -24,7 +24,7 @@ FILE fqName: fileName:/thisOfGenericOuterClass.kt $outer: VALUE_PARAMETER name: type:.Outer.Outer> VALUE_PARAMETER name:y index:0 type:kotlin.Int BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Inner modality:OPEN visibility:public [inner] superTypes:[kotlin.Any]' PROPERTY name:y visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:y type:kotlin.Int visibility:private [final] @@ -39,7 +39,7 @@ FILE fqName: fileName:/thisOfGenericOuterClass.kt receiver: GET_VAR ': .Outer.Inner.Outer> declared in .Outer.Inner.' type=.Outer.Inner.Outer> 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -52,7 +52,7 @@ FILE fqName: fileName:/thisOfGenericOuterClass.kt $this: VALUE_PARAMETER name: type: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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -72,17 +72,17 @@ FILE fqName: fileName:/thisOfGenericOuterClass.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.test. CONSTRUCTOR visibility:public <> () returnType:.test. [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor (y: kotlin.Int) [primary] declared in .Outer.Inner' + DELEGATING_CONSTRUCTOR_CALL 'public constructor (y: kotlin.Int) declared in .Outer.Inner' $this: GET_VAR ': .Outer declared in .test' type=.Outer origin=null y: CONST Int type=kotlin.Int value=42 INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name: modality:FINAL visibility:local superTypes:[.Outer.Inner]' PROPERTY name:xx visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:xx type:kotlin.Int visibility:private [final] EXPRESSION_BODY - CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUS + CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUS $this: CALL 'public final fun (): T of .Outer declared in .Outer' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR ': .Outer declared in .test' type=.Outer origin=null - other: CALL 'public final fun (): kotlin.Int [fake_override] declared in .test.' type=kotlin.Int origin=GET_PROPERTY + other: CALL 'public final fun (): kotlin.Int declared in .test.' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR ': .test. declared in .test.' type=.test. origin=null FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:.test.) returnType:kotlin.Int correspondingProperty: PROPERTY name:xx visibility:public modality:FINAL [val] @@ -93,7 +93,7 @@ FILE fqName: fileName:/thisOfGenericOuterClass.kt receiver: GET_VAR ': .test. declared in .test..' type=.test. origin=null PROPERTY FAKE_OVERRIDE name:y visibility:public modality:FINAL [fake_override,val] overridden: - public final y: kotlin.Int [val] + public final y: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.Outer.Inner.Outer>) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:y visibility:public modality:FINAL [fake_override,val] overridden: @@ -101,15 +101,15 @@ FILE fqName: fileName:/thisOfGenericOuterClass.kt $this: VALUE_PARAMETER name: type:.Outer.Inner.Outer> 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 .Outer.Inner + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Outer.Inner $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 .Outer.Inner + public open fun hashCode (): kotlin.Int declared in .Outer.Inner $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 .Outer.Inner + public open fun toString (): kotlin.String declared in .Outer.Inner $this: VALUE_PARAMETER name: type:kotlin.Any - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .test.' type=.test. origin=OBJECT_LITERAL + CONSTRUCTOR_CALL 'public constructor () declared in .test.' type=.test. origin=OBJECT_LITERAL diff --git a/compiler/testData/ir/irText/expressions/thisOfGenericOuterClass.ir.txt b/compiler/testData/ir/irText/expressions/thisOfGenericOuterClass.ir.txt index 680686fa612..cb64f0a02a1 100644 --- a/compiler/testData/ir/irText/expressions/thisOfGenericOuterClass.ir.txt +++ b/compiler/testData/ir/irText/expressions/thisOfGenericOuterClass.ir.txt @@ -5,7 +5,7 @@ FILE fqName: fileName:/thisOfGenericOuterClass.kt CONSTRUCTOR visibility:public <> (x:T of .Outer) returnType:.Outer.Outer> [primary] VALUE_PARAMETER name:x index:0 type:T of .Outer BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Outer modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:T of .Outer visibility:private [final] @@ -24,7 +24,7 @@ FILE fqName: fileName:/thisOfGenericOuterClass.kt $outer: VALUE_PARAMETER name: type:.Outer.Outer> VALUE_PARAMETER name:y index:0 type:kotlin.Int BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Inner modality:OPEN visibility:public [inner] superTypes:[kotlin.Any]' PROPERTY name:y visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:y type:kotlin.Int visibility:private [final] @@ -39,7 +39,7 @@ FILE fqName: fileName:/thisOfGenericOuterClass.kt receiver: GET_VAR ': .Outer.Inner.Outer> declared in .Outer.Inner.' type=.Outer.Inner.Outer> 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -52,7 +52,7 @@ FILE fqName: fileName:/thisOfGenericOuterClass.kt $this: VALUE_PARAMETER name: type: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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -72,17 +72,17 @@ FILE fqName: fileName:/thisOfGenericOuterClass.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.test. CONSTRUCTOR visibility:public <> () returnType:.test. [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor (y: kotlin.Int) [primary] declared in .Outer.Inner' + DELEGATING_CONSTRUCTOR_CALL 'public constructor (y: kotlin.Int) declared in .Outer.Inner' $this: GET_VAR ': .Outer declared in .test' type=.Outer origin=null y: CONST Int type=kotlin.Int value=42 INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name: modality:FINAL visibility:local superTypes:[.Outer.Inner]' PROPERTY name:xx visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:xx type:kotlin.Int visibility:private [final] EXPRESSION_BODY - CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUS + CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUS $this: CALL 'public final fun (): T of .Outer declared in .Outer' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR ': .Outer declared in .test' type=.Outer origin=null - other: CALL 'public final fun (): kotlin.Int [fake_override] declared in .test.' type=kotlin.Int origin=GET_PROPERTY + other: CALL 'public final fun (): kotlin.Int declared in .test.' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR ': .test. declared in .test.' type=.test. origin=null FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:.test.) returnType:kotlin.Int correspondingProperty: PROPERTY name:xx visibility:public modality:FINAL [val] @@ -93,7 +93,7 @@ FILE fqName: fileName:/thisOfGenericOuterClass.kt receiver: GET_VAR ': .test. declared in .test..' type=.test. origin=null PROPERTY FAKE_OVERRIDE name:y visibility:public modality:FINAL [fake_override,val] overridden: - public final y: kotlin.Int [val] + public final y: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.Outer.Inner) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:y visibility:public modality:FINAL [fake_override,val] overridden: @@ -101,15 +101,15 @@ FILE fqName: fileName:/thisOfGenericOuterClass.kt $this: VALUE_PARAMETER name: type:.Outer.Inner 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 .Outer.Inner + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Outer.Inner $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 .Outer.Inner + public open fun hashCode (): kotlin.Int declared in .Outer.Inner $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 .Outer.Inner + public open fun toString (): kotlin.String declared in .Outer.Inner $this: VALUE_PARAMETER name: type:kotlin.Any - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .test.' type=.test. origin=OBJECT_LITERAL + CONSTRUCTOR_CALL 'public constructor () declared in .test.' type=.test. origin=OBJECT_LITERAL diff --git a/compiler/testData/ir/irText/expressions/thisRefToObjectInNestedClassConstructorCall.ir.txt b/compiler/testData/ir/irText/expressions/thisRefToObjectInNestedClassConstructorCall.ir.txt index 41ecfdad1b1..5e7e2b96d1a 100644 --- a/compiler/testData/ir/irText/expressions/thisRefToObjectInNestedClassConstructorCall.ir.txt +++ b/compiler/testData/ir/irText/expressions/thisRefToObjectInNestedClassConstructorCall.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/thisRefToObjectInNestedClassConstructorCall.kt CONSTRUCTOR visibility:public <> (x:kotlin.Any) returnType:.Base [primary] VALUE_PARAMETER name:x index:0 type:kotlin.Any BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Base modality:OPEN visibility:public superTypes:[kotlin.Any]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Any visibility:private [final] @@ -19,7 +19,7 @@ FILE fqName: fileName:/thisRefToObjectInNestedClassConstructorCall.kt receiver: GET_VAR ': .Base declared in .Base.' type=.Base 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -34,18 +34,18 @@ FILE fqName: fileName:/thisRefToObjectInNestedClassConstructorCall.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Host CONSTRUCTOR visibility:private <> () returnType:.Host [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:Host modality:FINAL visibility:public superTypes:[kotlin.Any]' CLASS CLASS name:Derived1 modality:FINAL visibility:public superTypes:[.Base] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Host.Derived1 CONSTRUCTOR visibility:public <> () returnType:.Host.Derived1 [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor (x: kotlin.Any) [primary] declared in .Base' + DELEGATING_CONSTRUCTOR_CALL 'public constructor (x: kotlin.Any) declared in .Base' x: GET_OBJECT 'CLASS OBJECT name:Host modality:FINAL visibility:public superTypes:[kotlin.Any]' type=.Host INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Derived1 modality:FINAL visibility:public superTypes:[.Base]' PROPERTY FAKE_OVERRIDE name:x visibility:public modality:FINAL [fake_override,val] overridden: - public final x: kotlin.Any [val] + public final x: kotlin.Any FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.Base) returnType:kotlin.Any [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:x visibility:public modality:FINAL [fake_override,val] overridden: @@ -53,27 +53,27 @@ FILE fqName: fileName:/thisRefToObjectInNestedClassConstructorCall.kt $this: VALUE_PARAMETER 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 [fake_override,operator] declared in .Base + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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 + public open fun hashCode (): kotlin.Int 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 + public open fun toString (): kotlin.String declared in .Base $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:Derived2 modality:FINAL visibility:public superTypes:[.Base] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Host.Derived2 CONSTRUCTOR visibility:public <> () returnType:.Host.Derived2 [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor (x: kotlin.Any) [primary] declared in .Base' + DELEGATING_CONSTRUCTOR_CALL 'public constructor (x: kotlin.Any) declared in .Base' x: GET_OBJECT 'CLASS OBJECT name:Host modality:FINAL visibility:public superTypes:[kotlin.Any]' type=.Host INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Derived2 modality:FINAL visibility:public superTypes:[.Base]' PROPERTY FAKE_OVERRIDE name:x visibility:public modality:FINAL [fake_override,val] overridden: - public final x: kotlin.Any [val] + public final x: kotlin.Any FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.Base) returnType:kotlin.Any [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:x visibility:public modality:FINAL [fake_override,val] overridden: @@ -81,20 +81,20 @@ FILE fqName: fileName:/thisRefToObjectInNestedClassConstructorCall.kt $this: VALUE_PARAMETER 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 [fake_override,operator] declared in .Base + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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 + public open fun hashCode (): kotlin.Int 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 + public open fun toString (): kotlin.String declared in .Base $this: VALUE_PARAMETER name: type: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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/expressions/thisReferenceBeforeClassDeclared.ir.txt b/compiler/testData/ir/irText/expressions/thisReferenceBeforeClassDeclared.ir.txt index d39a8c7c56c..a7f4e68c345 100644 --- a/compiler/testData/ir/irText/expressions/thisReferenceBeforeClassDeclared.ir.txt +++ b/compiler/testData/ir/irText/expressions/thisReferenceBeforeClassDeclared.ir.txt @@ -8,59 +8,59 @@ FILE fqName: fileName:/thisReferenceBeforeClassDeclared.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.test. CONSTRUCTOR visibility:public <> () returnType:.test. [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor (a: .WithCompanion.Companion) [primary] declared in .WithCompanion' + DELEGATING_CONSTRUCTOR_CALL 'public constructor (a: .WithCompanion.Companion) declared in .WithCompanion' a: GET_OBJECT 'CLASS OBJECT name:Companion modality:FINAL visibility:public [companion] superTypes:[kotlin.Any]' type=.WithCompanion.Companion INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name: modality:FINAL visibility:local superTypes:[.WithCompanion]' 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 .WithCompanion + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .WithCompanion $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 .WithCompanion + public open fun hashCode (): kotlin.Int declared in .WithCompanion $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 .WithCompanion + public open fun toString (): kotlin.String declared in .WithCompanion $this: VALUE_PARAMETER name: type:kotlin.Any - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .test.' type=.test. origin=OBJECT_LITERAL + CONSTRUCTOR_CALL 'public constructor () declared in .test.' type=.test. origin=OBJECT_LITERAL VAR name:test2 type:.test. [val] BLOCK type=.test. origin=OBJECT_LITERAL CLASS CLASS name: modality:FINAL visibility:local superTypes:[.WithCompanion] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.test. CONSTRUCTOR visibility:public <> () returnType:.test. [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor (a: .WithCompanion.Companion) [primary] declared in .WithCompanion' + DELEGATING_CONSTRUCTOR_CALL 'public constructor (a: .WithCompanion.Companion) declared in .WithCompanion' a: CALL 'public final fun foo (): .WithCompanion.Companion declared in .WithCompanion.Companion' type=.WithCompanion.Companion origin=null $this: GET_OBJECT 'CLASS OBJECT name:Companion modality:FINAL visibility:public [companion] superTypes:[kotlin.Any]' type=.WithCompanion.Companion INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name: modality:FINAL visibility:local superTypes:[.WithCompanion]' 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 .WithCompanion + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .WithCompanion $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 .WithCompanion + public open fun hashCode (): kotlin.Int declared in .WithCompanion $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 .WithCompanion + public open fun toString (): kotlin.String declared in .WithCompanion $this: VALUE_PARAMETER name: type:kotlin.Any - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .test.' type=.test. origin=OBJECT_LITERAL + CONSTRUCTOR_CALL 'public constructor () declared in .test.' type=.test. origin=OBJECT_LITERAL CLASS CLASS name:WithCompanion modality:OPEN visibility:public superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.WithCompanion CONSTRUCTOR visibility:public <> (a:.WithCompanion.Companion) returnType:.WithCompanion [primary] VALUE_PARAMETER name:a index:0 type:.WithCompanion.Companion BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:WithCompanion modality:OPEN visibility:public superTypes:[kotlin.Any]' CLASS OBJECT name:Companion modality:FINAL visibility:public [companion] superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.WithCompanion.Companion CONSTRUCTOR visibility:private <> () returnType:.WithCompanion.Companion [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:Companion modality:FINAL visibility:public [companion] superTypes:[kotlin.Any]' FUN name:foo visibility:public modality:FINAL <> ($this:.WithCompanion.Companion) returnType:.WithCompanion.Companion $this: VALUE_PARAMETER name: type:.WithCompanion.Companion @@ -69,7 +69,7 @@ FILE fqName: fileName:/thisReferenceBeforeClassDeclared.kt GET_VAR ': .WithCompanion.Companion declared in .WithCompanion.Companion.foo' type=.WithCompanion.Companion 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -82,7 +82,7 @@ FILE fqName: fileName:/thisReferenceBeforeClassDeclared.kt $this: VALUE_PARAMETER name: type: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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/expressions/throw.kt b/compiler/testData/ir/irText/expressions/throw.kt index 24d56d135b5..91011f81990 100644 --- a/compiler/testData/ir/irText/expressions/throw.kt +++ b/compiler/testData/ir/irText/expressions/throw.kt @@ -1,6 +1,3 @@ -// IGNORE_BACKEND_K1: JS_IR -// IGNORE_BACKEND_K1: JS_IR_ES6 - fun test1() { throw Throwable() } diff --git a/compiler/testData/ir/irText/expressions/tryCatch.fir.ir.txt b/compiler/testData/ir/irText/expressions/tryCatch.fir.ir.txt index 6c352a04f01..3536fe2c18f 100644 --- a/compiler/testData/ir/irText/expressions/tryCatch.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/tryCatch.fir.ir.txt @@ -3,25 +3,25 @@ FILE fqName: fileName:/tryCatch.kt BLOCK_BODY TRY type=kotlin.Unit try: BLOCK type=kotlin.Unit origin=null - CALL 'public final fun println (): kotlin.Unit [inline] declared in kotlin.io' type=kotlin.Unit origin=null - CATCH parameter=val e: kotlin.Throwable [val] declared in .test1 + CALL 'public final fun println (): kotlin.Unit declared in kotlin.io' type=kotlin.Unit origin=null + CATCH parameter=val e: kotlin.Throwable declared in .test1 VAR CATCH_PARAMETER name:e type:kotlin.Throwable [val] BLOCK type=kotlin.Unit origin=null - CALL 'public final fun println (): kotlin.Unit [inline] declared in kotlin.io' type=kotlin.Unit origin=null + CALL 'public final fun println (): kotlin.Unit declared in kotlin.io' type=kotlin.Unit origin=null finally: BLOCK type=kotlin.Unit origin=null - CALL 'public final fun println (): kotlin.Unit [inline] declared in kotlin.io' type=kotlin.Unit origin=null + CALL 'public final fun println (): kotlin.Unit declared in kotlin.io' type=kotlin.Unit origin=null FUN name:test2 visibility:public modality:FINAL <> () returnType:kotlin.Int BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test2 (): kotlin.Int declared in ' TRY type=kotlin.Int try: BLOCK type=kotlin.Int origin=null - CALL 'public final fun println (): kotlin.Unit [inline] declared in kotlin.io' type=kotlin.Unit origin=null + CALL 'public final fun println (): kotlin.Unit declared in kotlin.io' type=kotlin.Unit origin=null CONST Int type=kotlin.Int value=42 - CATCH parameter=val e: kotlin.Throwable [val] declared in .test2 + CATCH parameter=val e: kotlin.Throwable declared in .test2 VAR CATCH_PARAMETER name:e type:kotlin.Throwable [val] BLOCK type=kotlin.Int origin=null - CALL 'public final fun println (): kotlin.Unit [inline] declared in kotlin.io' type=kotlin.Unit origin=null + CALL 'public final fun println (): kotlin.Unit declared in kotlin.io' type=kotlin.Unit origin=null CONST Int type=kotlin.Int value=24 finally: BLOCK type=kotlin.Int origin=null - CALL 'public final fun println (): kotlin.Unit [inline] declared in kotlin.io' type=kotlin.Unit origin=null + CALL 'public final fun println (): kotlin.Unit declared in kotlin.io' type=kotlin.Unit origin=null CONST Int type=kotlin.Int value=555 diff --git a/compiler/testData/ir/irText/expressions/tryCatch.ir.txt b/compiler/testData/ir/irText/expressions/tryCatch.ir.txt index 241dc83315b..5de5ffd5c2b 100644 --- a/compiler/testData/ir/irText/expressions/tryCatch.ir.txt +++ b/compiler/testData/ir/irText/expressions/tryCatch.ir.txt @@ -3,26 +3,26 @@ FILE fqName: fileName:/tryCatch.kt BLOCK_BODY TRY type=kotlin.Unit try: BLOCK type=kotlin.Unit origin=null - CALL 'public final fun println (): kotlin.Unit [inline] declared in kotlin.io' type=kotlin.Unit origin=null - CATCH parameter=val e: kotlin.Throwable [val] declared in .test1 + CALL 'public final fun println (): kotlin.Unit declared in kotlin.io' type=kotlin.Unit origin=null + CATCH parameter=val e: kotlin.Throwable declared in .test1 VAR CATCH_PARAMETER name:e type:kotlin.Throwable [val] BLOCK type=kotlin.Unit origin=null - CALL 'public final fun println (): kotlin.Unit [inline] declared in kotlin.io' type=kotlin.Unit origin=null + CALL 'public final fun println (): kotlin.Unit declared in kotlin.io' type=kotlin.Unit origin=null finally: BLOCK type=kotlin.Unit origin=null - CALL 'public final fun println (): kotlin.Unit [inline] declared in kotlin.io' type=kotlin.Unit origin=null + CALL 'public final fun println (): kotlin.Unit declared in kotlin.io' type=kotlin.Unit origin=null FUN name:test2 visibility:public modality:FINAL <> () returnType:kotlin.Int BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test2 (): kotlin.Int declared in ' TRY type=kotlin.Int try: BLOCK type=kotlin.Int origin=null - CALL 'public final fun println (): kotlin.Unit [inline] declared in kotlin.io' type=kotlin.Unit origin=null + CALL 'public final fun println (): kotlin.Unit declared in kotlin.io' type=kotlin.Unit origin=null CONST Int type=kotlin.Int value=42 - CATCH parameter=val e: kotlin.Throwable [val] declared in .test2 + CATCH parameter=val e: kotlin.Throwable declared in .test2 VAR CATCH_PARAMETER name:e type:kotlin.Throwable [val] BLOCK type=kotlin.Int origin=null - CALL 'public final fun println (): kotlin.Unit [inline] declared in kotlin.io' type=kotlin.Unit origin=null + CALL 'public final fun println (): kotlin.Unit declared in kotlin.io' type=kotlin.Unit origin=null CONST Int type=kotlin.Int value=24 finally: BLOCK type=kotlin.Unit origin=null - CALL 'public final fun println (): kotlin.Unit [inline] declared in kotlin.io' type=kotlin.Unit origin=null + CALL 'public final fun println (): kotlin.Unit declared in kotlin.io' type=kotlin.Unit origin=null TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit CONST Int type=kotlin.Int value=555 diff --git a/compiler/testData/ir/irText/expressions/tryCatch.kt b/compiler/testData/ir/irText/expressions/tryCatch.kt index 6b3edd9b9af..310e1be6e50 100644 --- a/compiler/testData/ir/irText/expressions/tryCatch.kt +++ b/compiler/testData/ir/irText/expressions/tryCatch.kt @@ -1,6 +1,4 @@ // WITH_STDLIB -// IGNORE_BACKEND: JS_IR -// IGNORE_BACKEND: JS_IR_ES6 fun test1() { try { diff --git a/compiler/testData/ir/irText/expressions/tryCatchWithImplicitCast.fir.ir.txt b/compiler/testData/ir/irText/expressions/tryCatchWithImplicitCast.fir.ir.txt index 8fb638dd2f3..7d13767ddce 100644 --- a/compiler/testData/ir/irText/expressions/tryCatchWithImplicitCast.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/tryCatchWithImplicitCast.fir.ir.txt @@ -13,7 +13,7 @@ FILE fqName: fileName:/tryCatchWithImplicitCast.kt try: BLOCK type=kotlin.String origin=null TYPE_OP type=kotlin.String origin=IMPLICIT_CAST typeOperand=kotlin.String GET_VAR 'a: kotlin.Any declared in .testImplicitCast' type=kotlin.Any origin=null - CATCH parameter=val e: kotlin.Throwable [val] declared in .testImplicitCast + CATCH parameter=val e: kotlin.Throwable declared in .testImplicitCast VAR CATCH_PARAMETER name:e type:kotlin.Throwable [val] BLOCK type=kotlin.String origin=null CONST String type=kotlin.String value="" diff --git a/compiler/testData/ir/irText/expressions/tryCatchWithImplicitCast.ir.txt b/compiler/testData/ir/irText/expressions/tryCatchWithImplicitCast.ir.txt index 5ec8a38dbf3..e06afd08daf 100644 --- a/compiler/testData/ir/irText/expressions/tryCatchWithImplicitCast.ir.txt +++ b/compiler/testData/ir/irText/expressions/tryCatchWithImplicitCast.ir.txt @@ -13,7 +13,7 @@ FILE fqName: fileName:/tryCatchWithImplicitCast.kt try: TYPE_OP type=kotlin.String origin=IMPLICIT_CAST typeOperand=kotlin.String BLOCK type=kotlin.Any origin=null GET_VAR 'a: kotlin.Any declared in .testImplicitCast' type=kotlin.Any origin=null - CATCH parameter=val e: kotlin.Throwable [val] declared in .testImplicitCast + CATCH parameter=val e: kotlin.Throwable declared in .testImplicitCast VAR CATCH_PARAMETER name:e type:kotlin.Throwable [val] BLOCK type=kotlin.String origin=null CONST String type=kotlin.String value="" diff --git a/compiler/testData/ir/irText/expressions/typeAliasConstructorReference.fir.ir.txt b/compiler/testData/ir/irText/expressions/typeAliasConstructorReference.fir.ir.txt index b1ea75aea86..01b477f4ea3 100644 --- a/compiler/testData/ir/irText/expressions/typeAliasConstructorReference.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/typeAliasConstructorReference.fir.ir.txt @@ -6,11 +6,11 @@ FILE fqName: fileName:/typeAliasConstructorReference.kt CONSTRUCTOR visibility:public <> (x:kotlin.Int) returnType:.C [primary] VALUE_PARAMETER name:x index:0 type:kotlin.Int BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -25,18 +25,18 @@ FILE fqName: fileName:/typeAliasConstructorReference.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Host CONSTRUCTOR visibility:private <> () returnType:.Host [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:Host modality:FINAL visibility:public superTypes:[kotlin.Any]' CLASS CLASS name:Nested modality:FINAL visibility:public superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Host.Nested CONSTRUCTOR visibility:public <> (x:kotlin.Int) returnType:.Host.Nested [primary] VALUE_PARAMETER name:x index:0 type:kotlin.Int BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Nested modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -49,7 +49,7 @@ FILE fqName: fileName:/typeAliasConstructorReference.kt $this: VALUE_PARAMETER name: type: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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -63,7 +63,7 @@ FILE fqName: fileName:/typeAliasConstructorReference.kt PROPERTY name:test1 visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:test1 type:kotlin.Function1.C> visibility:private [final,static] EXPRESSION_BODY - FUNCTION_REFERENCE 'public constructor (x: kotlin.Int) [primary] declared in .C' type=kotlin.reflect.KFunction1.C> origin=null reflectionTarget= + FUNCTION_REFERENCE 'public constructor (x: kotlin.Int) declared in .C' type=kotlin.reflect.KFunction1.C> origin=null reflectionTarget= FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:kotlin.Function1.C> correspondingProperty: PROPERTY name:test1 visibility:public modality:FINAL [val] BLOCK_BODY @@ -72,7 +72,7 @@ FILE fqName: fileName:/typeAliasConstructorReference.kt PROPERTY name:test2 visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:test2 type:kotlin.Function1.Host.Nested> visibility:private [final,static] EXPRESSION_BODY - FUNCTION_REFERENCE 'public constructor (x: kotlin.Int) [primary] declared in .Host.Nested' type=kotlin.reflect.KFunction1.Host.Nested> origin=null reflectionTarget= + FUNCTION_REFERENCE 'public constructor (x: kotlin.Int) declared in .Host.Nested' type=kotlin.reflect.KFunction1.Host.Nested> origin=null reflectionTarget= FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:kotlin.Function1.Host.Nested> correspondingProperty: PROPERTY name:test2 visibility:public modality:FINAL [val] BLOCK_BODY diff --git a/compiler/testData/ir/irText/expressions/typeAliasConstructorReference.ir.txt b/compiler/testData/ir/irText/expressions/typeAliasConstructorReference.ir.txt index 1e31dd56b26..25ab2cffff3 100644 --- a/compiler/testData/ir/irText/expressions/typeAliasConstructorReference.ir.txt +++ b/compiler/testData/ir/irText/expressions/typeAliasConstructorReference.ir.txt @@ -4,11 +4,11 @@ FILE fqName: fileName:/typeAliasConstructorReference.kt CONSTRUCTOR visibility:public <> (x:kotlin.Int) returnType:.C [primary] VALUE_PARAMETER name:x index:0 type:kotlin.Int BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -24,18 +24,18 @@ FILE fqName: fileName:/typeAliasConstructorReference.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Host CONSTRUCTOR visibility:private <> () returnType:.Host [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:Host modality:FINAL visibility:public superTypes:[kotlin.Any]' CLASS CLASS name:Nested modality:FINAL visibility:public superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Host.Nested CONSTRUCTOR visibility:public <> (x:kotlin.Int) returnType:.Host.Nested [primary] VALUE_PARAMETER name:x index:0 type:kotlin.Int BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Nested modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -48,7 +48,7 @@ FILE fqName: fileName:/typeAliasConstructorReference.kt $this: VALUE_PARAMETER name: type: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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -63,7 +63,7 @@ FILE fqName: fileName:/typeAliasConstructorReference.kt PROPERTY name:test1 visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:test1 type:kotlin.Function1.C{ .CA }> visibility:private [final,static] EXPRESSION_BODY - FUNCTION_REFERENCE 'public constructor (x: kotlin.Int) [primary] declared in .C' type=kotlin.reflect.KFunction1<@[ParameterName(name = 'x')] kotlin.Int, .C{ .CA }> origin=null reflectionTarget= + FUNCTION_REFERENCE 'public constructor (x: kotlin.Int) declared in .C' type=kotlin.reflect.KFunction1<@[ParameterName(name = 'x')] kotlin.Int, .C{ .CA }> origin=null reflectionTarget= FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:kotlin.Function1.C{ .CA }> correspondingProperty: PROPERTY name:test1 visibility:public modality:FINAL [val] BLOCK_BODY @@ -72,7 +72,7 @@ FILE fqName: fileName:/typeAliasConstructorReference.kt PROPERTY name:test2 visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:test2 type:kotlin.Function1.Host.Nested{ .NA }> visibility:private [final,static] EXPRESSION_BODY - FUNCTION_REFERENCE 'public constructor (x: kotlin.Int) [primary] declared in .Host.Nested' type=kotlin.reflect.KFunction1<@[ParameterName(name = 'x')] kotlin.Int, .Host.Nested{ .NA }> origin=null reflectionTarget= + FUNCTION_REFERENCE 'public constructor (x: kotlin.Int) declared in .Host.Nested' type=kotlin.reflect.KFunction1<@[ParameterName(name = 'x')] kotlin.Int, .Host.Nested{ .NA }> origin=null reflectionTarget= FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:kotlin.Function1.Host.Nested{ .NA }> correspondingProperty: PROPERTY name:test2 visibility:public modality:FINAL [val] BLOCK_BODY diff --git a/compiler/testData/ir/irText/expressions/typeOperators.ir.txt b/compiler/testData/ir/irText/expressions/typeOperators.ir.txt index 6554a235ceb..7600f3f233e 100644 --- a/compiler/testData/ir/irText/expressions/typeOperators.ir.txt +++ b/compiler/testData/ir/irText/expressions/typeOperators.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/typeOperators.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.IThing 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/expressions/typeParameterClassLiteral.ir.txt b/compiler/testData/ir/irText/expressions/typeParameterClassLiteral.ir.txt index b3e70af8f78..74ed78089e8 100644 --- a/compiler/testData/ir/irText/expressions/typeParameterClassLiteral.ir.txt +++ b/compiler/testData/ir/irText/expressions/typeParameterClassLiteral.ir.txt @@ -2,13 +2,13 @@ FILE fqName: fileName:/typeParameterClassLiteral.kt FUN name:classRefFun visibility:public modality:FINAL () returnType:kotlin.reflect.KClass.classRefFun> [inline] TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any] reified:true BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun classRefFun (): kotlin.reflect.KClass.classRefFun> [inline] declared in ' + RETURN type=kotlin.Nothing from='public final fun classRefFun (): kotlin.reflect.KClass.classRefFun> declared in ' CLASS_REFERENCE 'TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any] reified:true' type=kotlin.reflect.KClass.classRefFun> FUN name:classRefExtFun visibility:public modality:FINAL ($receiver:kotlin.Any) returnType:kotlin.reflect.KClass.classRefExtFun> [inline] TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any] reified:true $receiver: VALUE_PARAMETER name: type:kotlin.Any BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun classRefExtFun (): kotlin.reflect.KClass.classRefExtFun> [inline] declared in ' + RETURN type=kotlin.Nothing from='public final fun classRefExtFun (): kotlin.reflect.KClass.classRefExtFun> declared in ' CLASS_REFERENCE 'TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any] reified:true' type=kotlin.reflect.KClass.classRefExtFun> PROPERTY name:classRefExtVal visibility:public modality:FINAL [val] FUN name: visibility:public modality:FINAL ($receiver:T of .) returnType:kotlin.reflect.KClass.> [inline] @@ -16,26 +16,26 @@ FILE fqName: fileName:/typeParameterClassLiteral.kt TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any] reified:true $receiver: VALUE_PARAMETER name: type:T of . BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun (): kotlin.reflect.KClass.> [inline] declared in ' + RETURN type=kotlin.Nothing from='public final fun (): kotlin.reflect.KClass.> declared in ' CLASS_REFERENCE 'TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any] reified:true' type=kotlin.reflect.KClass.> CLASS CLASS name:Host modality:FINAL visibility:public superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Host CONSTRUCTOR visibility:public <> () returnType:.Host [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Host modality:FINAL visibility:public superTypes:[kotlin.Any]' FUN name:classRefGenericMemberFun visibility:public modality:FINAL ($this:.Host) returnType:kotlin.reflect.KClass.Host.classRefGenericMemberFun> [inline] TYPE_PARAMETER name:TF index:0 variance: superTypes:[kotlin.Any] reified:true $this: VALUE_PARAMETER name: type:.Host BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun classRefGenericMemberFun (): kotlin.reflect.KClass.Host.classRefGenericMemberFun> [inline] declared in .Host' + RETURN type=kotlin.Nothing from='public final fun classRefGenericMemberFun (): kotlin.reflect.KClass.Host.classRefGenericMemberFun> declared in .Host' CLASS_REFERENCE 'TYPE_PARAMETER name:TF index:0 variance: superTypes:[kotlin.Any] reified:true' type=kotlin.reflect.KClass.Host.classRefGenericMemberFun> FUN name:classRefGenericMemberExtFun visibility:public modality:FINAL ($this:.Host, $receiver:kotlin.Any) returnType:kotlin.reflect.KClass.Host.classRefGenericMemberExtFun> [inline] TYPE_PARAMETER name:TF index:0 variance: superTypes:[kotlin.Any] reified:true $this: VALUE_PARAMETER name: type:.Host $receiver: VALUE_PARAMETER name: type:kotlin.Any BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun classRefGenericMemberExtFun (): kotlin.reflect.KClass.Host.classRefGenericMemberExtFun> [inline] declared in .Host' + RETURN type=kotlin.Nothing from='public final fun classRefGenericMemberExtFun (): kotlin.reflect.KClass.Host.classRefGenericMemberExtFun> declared in .Host' CLASS_REFERENCE 'TYPE_PARAMETER name:TF index:0 variance: superTypes:[kotlin.Any] reified:true' type=kotlin.reflect.KClass.Host.classRefGenericMemberExtFun> PROPERTY name:classRefGenericMemberExtVal visibility:public modality:FINAL [val] FUN name: visibility:public modality:FINAL ($this:.Host, $receiver:TV of .Host.) returnType:kotlin.reflect.KClass.Host.> [inline] @@ -44,11 +44,11 @@ FILE fqName: fileName:/typeParameterClassLiteral.kt $this: VALUE_PARAMETER name: type:.Host $receiver: VALUE_PARAMETER name: type:TV of .Host. BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun (): kotlin.reflect.KClass.Host.> [inline] declared in .Host' + RETURN type=kotlin.Nothing from='public final fun (): kotlin.reflect.KClass.Host.> declared in .Host' CLASS_REFERENCE 'TYPE_PARAMETER name:TV index:0 variance: superTypes:[kotlin.Any] reified:true' type=kotlin.reflect.KClass.Host.> 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/expressions/unsignedIntegerLiterals.ir.txt b/compiler/testData/ir/irText/expressions/unsignedIntegerLiterals.ir.txt index e9df54cd4c5..dd78b1c0765 100644 --- a/compiler/testData/ir/irText/expressions/unsignedIntegerLiterals.ir.txt +++ b/compiler/testData/ir/irText/expressions/unsignedIntegerLiterals.ir.txt @@ -56,7 +56,7 @@ FILE fqName: fileName:/unsignedIntegerLiterals.kt PROPERTY name:testToUByte visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:testToUByte type:kotlin.UByte visibility:private [final,static] EXPRESSION_BODY - CALL 'public final fun toUByte (): kotlin.UByte [inline] declared in kotlin' type=kotlin.UByte origin=null + CALL 'public final fun toUByte (): kotlin.UByte declared in kotlin' type=kotlin.UByte origin=null $receiver: CONST Int type=kotlin.Int value=1 FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:kotlin.UByte correspondingProperty: PROPERTY name:testToUByte visibility:public modality:FINAL [val] @@ -66,7 +66,7 @@ FILE fqName: fileName:/unsignedIntegerLiterals.kt PROPERTY name:testToUShort visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:testToUShort type:kotlin.UShort visibility:private [final,static] EXPRESSION_BODY - CALL 'public final fun toUShort (): kotlin.UShort [inline] declared in kotlin' type=kotlin.UShort origin=null + CALL 'public final fun toUShort (): kotlin.UShort declared in kotlin' type=kotlin.UShort origin=null $receiver: CONST Int type=kotlin.Int value=1 FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:kotlin.UShort correspondingProperty: PROPERTY name:testToUShort visibility:public modality:FINAL [val] @@ -76,7 +76,7 @@ FILE fqName: fileName:/unsignedIntegerLiterals.kt PROPERTY name:testToUInt visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:testToUInt type:kotlin.UInt visibility:private [final,static] EXPRESSION_BODY - CALL 'public final fun toUInt (): kotlin.UInt [inline] declared in kotlin' type=kotlin.UInt origin=null + CALL 'public final fun toUInt (): kotlin.UInt declared in kotlin' type=kotlin.UInt origin=null $receiver: CONST Int type=kotlin.Int value=1 FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:kotlin.UInt correspondingProperty: PROPERTY name:testToUInt visibility:public modality:FINAL [val] @@ -86,7 +86,7 @@ FILE fqName: fileName:/unsignedIntegerLiterals.kt PROPERTY name:testToULong visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:testToULong type:kotlin.ULong visibility:private [final,static] EXPRESSION_BODY - CALL 'public final fun toULong (): kotlin.ULong [inline] declared in kotlin' type=kotlin.ULong origin=null + CALL 'public final fun toULong (): kotlin.ULong declared in kotlin' type=kotlin.ULong origin=null $receiver: CONST Int type=kotlin.Int value=1 FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:kotlin.ULong correspondingProperty: PROPERTY name:testToULong visibility:public modality:FINAL [val] diff --git a/compiler/testData/ir/irText/expressions/useImportedMember.fir.ir.txt b/compiler/testData/ir/irText/expressions/useImportedMember.fir.ir.txt index ac61ee221a7..ae0311d259c 100644 --- a/compiler/testData/ir/irText/expressions/useImportedMember.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/useImportedMember.fir.ir.txt @@ -17,7 +17,7 @@ FILE fqName: fileName:/useImportedMember.kt GET_VAR 'g: G of .I declared in .I.genericFromSuper' type=G of .I 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -32,7 +32,7 @@ FILE fqName: fileName:/useImportedMember.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.BaseClass CONSTRUCTOR visibility:public <> () returnType:.BaseClass [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:BaseClass modality:OPEN visibility:public superTypes:[kotlin.Any]' PROPERTY name:fromClass visibility:public modality:FINAL [val] FUN name: visibility:public modality:FINAL ($this:.BaseClass, $receiver:T of .BaseClass.) returnType:T of .BaseClass. @@ -45,7 +45,7 @@ FILE fqName: fileName:/useImportedMember.kt GET_VAR ': T of .BaseClass. declared in .BaseClass.' type=T of .BaseClass. 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -60,7 +60,7 @@ FILE fqName: fileName:/useImportedMember.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.C CONSTRUCTOR visibility:private <> () returnType:.C [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .BaseClass' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .BaseClass' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:C modality:FINAL visibility:public superTypes:[.BaseClass; .I]' FUN name:f visibility:public modality:FINAL <> ($this:.C, s:kotlin.Int) returnType:kotlin.Int $this: VALUE_PARAMETER name: type:.C @@ -125,7 +125,7 @@ FILE fqName: fileName:/useImportedMember.kt GET_VAR ': T of .C. declared in .C.' type=T of .C. origin=null PROPERTY FAKE_OVERRIDE name:fromClass visibility:public modality:FINAL [fake_override,val] overridden: - public final fromClass: T of .BaseClass. [val] + public final fromClass: T of .BaseClass. FUN FAKE_OVERRIDE name: visibility:public modality:FINAL ($this:.BaseClass, $receiver:T of .C.) returnType:T of .C. [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:fromClass visibility:public modality:FINAL [fake_override,val] overridden: @@ -135,19 +135,19 @@ FILE fqName: fileName:/useImportedMember.kt $receiver: VALUE_PARAMETER name: type:T of .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 [fake_override,operator] declared in .BaseClass - public open fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .I + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .BaseClass + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .I $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 .BaseClass - public open fun hashCode (): kotlin.Int [fake_override] declared in .I + public open fun hashCode (): kotlin.Int declared in .BaseClass + public open fun hashCode (): kotlin.Int declared in .I $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 .BaseClass - public open fun toString (): kotlin.String [fake_override] declared in .I + public open fun toString (): kotlin.String declared in .BaseClass + public open fun toString (): kotlin.String declared in .I $this: VALUE_PARAMETER name: type:kotlin.Any FUN FAKE_OVERRIDE name:fromInterface visibility:public modality:OPEN ($this:.I.I>, $receiver:T of .C.fromInterface) returnType:T of .C.fromInterface [fake_override] overridden: @@ -164,7 +164,7 @@ FILE fqName: fileName:/useImportedMember.kt BLOCK_BODY WHEN type=kotlin.Unit origin=IF BRANCH - if: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ + if: CALL 'public final fun not (): kotlin.Boolean 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: CALL 'public final fun f (s: kotlin.Int): kotlin.Int declared in .C' type=kotlin.Int origin=null $this: GET_OBJECT 'CLASS OBJECT name:C modality:FINAL visibility:public superTypes:[.BaseClass; .I]' type=.C @@ -174,7 +174,7 @@ FILE fqName: fileName:/useImportedMember.kt CONST String type=kotlin.String value="1" WHEN type=kotlin.Unit origin=IF BRANCH - if: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ + if: CALL 'public final fun not (): kotlin.Boolean 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: CALL 'public final fun f (s: kotlin.String): kotlin.Int declared in .C' type=kotlin.Int origin=null $this: GET_OBJECT 'CLASS OBJECT name:C modality:FINAL visibility:public superTypes:[.BaseClass; .I]' type=.C @@ -184,7 +184,7 @@ FILE fqName: fileName:/useImportedMember.kt CONST String type=kotlin.String value="2" WHEN type=kotlin.Unit origin=IF BRANCH - if: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ + if: CALL 'public final fun not (): kotlin.Boolean 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: CALL 'public final fun f (): kotlin.Int declared in .C' type=kotlin.Int origin=null $this: GET_OBJECT 'CLASS OBJECT name:C modality:FINAL visibility:public superTypes:[.BaseClass; .I]' type=.C @@ -194,7 +194,7 @@ FILE fqName: fileName:/useImportedMember.kt CONST String type=kotlin.String value="3" WHEN type=kotlin.Unit origin=IF BRANCH - if: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ + if: CALL 'public final fun not (): kotlin.Boolean 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: CALL 'public final fun (): kotlin.Int declared in .C' type=kotlin.Int origin=GET_PROPERTY $this: GET_OBJECT 'CLASS OBJECT name:C modality:FINAL visibility:public superTypes:[.BaseClass; .I]' type=.C @@ -206,7 +206,7 @@ FILE fqName: fileName:/useImportedMember.kt : CONST Int type=kotlin.Int value=5 WHEN type=kotlin.Unit origin=IF BRANCH - if: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ + if: CALL 'public final fun not (): kotlin.Boolean 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: CALL 'public final fun (): kotlin.Int declared in .C' type=kotlin.Int origin=GET_PROPERTY $this: GET_OBJECT 'CLASS OBJECT name:C modality:FINAL visibility:public superTypes:[.BaseClass; .I]' type=.C @@ -215,7 +215,7 @@ FILE fqName: fileName:/useImportedMember.kt CONST String type=kotlin.String value="5" WHEN type=kotlin.Unit origin=IF BRANCH - if: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ + if: CALL 'public final fun not (): kotlin.Boolean 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: CALL 'public final fun (): kotlin.Int declared in .C' type=kotlin.Int origin=GET_PROPERTY $this: GET_OBJECT 'CLASS OBJECT name:C modality:FINAL visibility:public superTypes:[.BaseClass; .I]' type=.C @@ -225,7 +225,7 @@ FILE fqName: fileName:/useImportedMember.kt CONST String type=kotlin.String value="6" WHEN type=kotlin.Unit origin=IF BRANCH - if: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ + if: CALL 'public final fun not (): kotlin.Boolean 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: CALL 'public final fun g1 (t: T of .C.g1): T of .C.g1 declared in .C' type=kotlin.String origin=null : kotlin.String @@ -236,7 +236,7 @@ FILE fqName: fileName:/useImportedMember.kt CONST String type=kotlin.String value="7" WHEN type=kotlin.Unit origin=IF BRANCH - if: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ + if: CALL 'public final fun not (): kotlin.Boolean 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: CALL 'public final fun (): T of .C. declared in .C' type=kotlin.String origin=GET_PROPERTY : kotlin.String @@ -247,9 +247,9 @@ FILE fqName: fileName:/useImportedMember.kt CONST String type=kotlin.String value="8" WHEN type=kotlin.Unit origin=IF BRANCH - if: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ + if: CALL 'public final fun not (): kotlin.Boolean 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: CALL 'public open fun fromInterface (): T of .C.fromInterface [fake_override] declared in .C' type=kotlin.Int origin=null + arg0: CALL 'public open fun fromInterface (): T of .C.fromInterface declared in .C' type=kotlin.Int origin=null : kotlin.Int $this: GET_OBJECT 'CLASS OBJECT name:C modality:FINAL visibility:public superTypes:[.BaseClass; .I]' type=.C $receiver: CONST Int type=kotlin.Int value=9 @@ -258,9 +258,9 @@ FILE fqName: fileName:/useImportedMember.kt CONST String type=kotlin.String value="9" WHEN type=kotlin.Unit origin=IF BRANCH - if: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ + if: CALL 'public final fun not (): kotlin.Boolean 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: CALL 'public final fun (): T of .C. [fake_override] declared in .C' type=kotlin.String origin=GET_PROPERTY + arg0: CALL 'public final fun (): T of .C. declared in .C' type=kotlin.String origin=GET_PROPERTY : kotlin.String $this: GET_OBJECT 'CLASS OBJECT name:C modality:FINAL visibility:public superTypes:[.BaseClass; .I]' type=.C $receiver: CONST String type=kotlin.String value="10" @@ -269,9 +269,9 @@ FILE fqName: fileName:/useImportedMember.kt CONST String type=kotlin.String value="10" WHEN type=kotlin.Unit origin=IF BRANCH - if: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ + if: CALL 'public final fun not (): kotlin.Boolean 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: CALL 'public open fun genericFromSuper (g: kotlin.String): kotlin.String [fake_override] declared in .C' type=kotlin.String origin=null + arg0: CALL 'public open fun genericFromSuper (g: kotlin.String): kotlin.String declared in .C' type=kotlin.String origin=null $this: GET_OBJECT 'CLASS OBJECT name:C modality:FINAL visibility:public superTypes:[.BaseClass; .I]' type=.C g: CONST String type=kotlin.String value="11" arg1: CONST String type=kotlin.String value="11" diff --git a/compiler/testData/ir/irText/expressions/useImportedMember.ir.txt b/compiler/testData/ir/irText/expressions/useImportedMember.ir.txt index 24d64a40f69..9ea9632db1f 100644 --- a/compiler/testData/ir/irText/expressions/useImportedMember.ir.txt +++ b/compiler/testData/ir/irText/expressions/useImportedMember.ir.txt @@ -17,7 +17,7 @@ FILE fqName: fileName:/useImportedMember.kt GET_VAR 'g: G of .I declared in .I.genericFromSuper' type=G of .I 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -32,7 +32,7 @@ FILE fqName: fileName:/useImportedMember.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.BaseClass CONSTRUCTOR visibility:public <> () returnType:.BaseClass [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:BaseClass modality:OPEN visibility:public superTypes:[kotlin.Any]' PROPERTY name:fromClass visibility:public modality:FINAL [val] FUN name: visibility:public modality:FINAL ($this:.BaseClass, $receiver:T of .BaseClass.) returnType:T of .BaseClass. @@ -45,7 +45,7 @@ FILE fqName: fileName:/useImportedMember.kt GET_VAR ': T of .BaseClass. declared in .BaseClass.' type=T of .BaseClass. 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -60,7 +60,7 @@ FILE fqName: fileName:/useImportedMember.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.C CONSTRUCTOR visibility:private <> () returnType:.C [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .BaseClass' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .BaseClass' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:C modality:FINAL visibility:public superTypes:[.BaseClass; .I]' FUN name:f visibility:public modality:FINAL <> ($this:.C, s:kotlin.Int) returnType:kotlin.Int $this: VALUE_PARAMETER name: type:.C @@ -125,7 +125,7 @@ FILE fqName: fileName:/useImportedMember.kt GET_VAR ': T of .C. declared in .C.' type=T of .C. origin=null PROPERTY FAKE_OVERRIDE name:fromClass visibility:public modality:FINAL [fake_override,val] overridden: - public final fromClass: T of .BaseClass. [val] + public final fromClass: T of .BaseClass. FUN FAKE_OVERRIDE name: visibility:public modality:FINAL ($this:.BaseClass, $receiver:T of .C.) returnType:T of .C. [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:fromClass visibility:public modality:FINAL [fake_override,val] overridden: @@ -135,19 +135,19 @@ FILE fqName: fileName:/useImportedMember.kt $receiver: VALUE_PARAMETER name: type:T of .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 [fake_override,operator] declared in .BaseClass - public open fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .I + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .BaseClass + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .I $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 .BaseClass - public open fun hashCode (): kotlin.Int [fake_override] declared in .I + public open fun hashCode (): kotlin.Int declared in .BaseClass + public open fun hashCode (): kotlin.Int declared in .I $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 .BaseClass - public open fun toString (): kotlin.String [fake_override] declared in .I + public open fun toString (): kotlin.String declared in .BaseClass + public open fun toString (): kotlin.String declared in .I $this: VALUE_PARAMETER name: type:kotlin.Any FUN FAKE_OVERRIDE name:fromInterface visibility:public modality:OPEN ($this:.I, $receiver:T of .C.fromInterface) returnType:T of .C.fromInterface [fake_override] overridden: @@ -164,7 +164,7 @@ FILE fqName: fileName:/useImportedMember.kt BLOCK_BODY WHEN type=kotlin.Unit origin=IF BRANCH - if: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ + if: CALL 'public final fun not (): kotlin.Boolean 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: CALL 'public final fun f (s: kotlin.Int): kotlin.Int declared in .C' type=kotlin.Int origin=null $this: GET_OBJECT 'CLASS OBJECT name:C modality:FINAL visibility:public superTypes:[.BaseClass; .I]' type=.C @@ -174,7 +174,7 @@ FILE fqName: fileName:/useImportedMember.kt CONST String type=kotlin.String value="1" WHEN type=kotlin.Unit origin=IF BRANCH - if: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ + if: CALL 'public final fun not (): kotlin.Boolean 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: CALL 'public final fun f (s: kotlin.String): kotlin.Int declared in .C' type=kotlin.Int origin=null $this: GET_OBJECT 'CLASS OBJECT name:C modality:FINAL visibility:public superTypes:[.BaseClass; .I]' type=.C @@ -184,7 +184,7 @@ FILE fqName: fileName:/useImportedMember.kt CONST String type=kotlin.String value="2" WHEN type=kotlin.Unit origin=IF BRANCH - if: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ + if: CALL 'public final fun not (): kotlin.Boolean 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: CALL 'public final fun f (): kotlin.Int declared in .C' type=kotlin.Int origin=null $this: GET_OBJECT 'CLASS OBJECT name:C modality:FINAL visibility:public superTypes:[.BaseClass; .I]' type=.C @@ -194,7 +194,7 @@ FILE fqName: fileName:/useImportedMember.kt CONST String type=kotlin.String value="3" WHEN type=kotlin.Unit origin=IF BRANCH - if: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ + if: CALL 'public final fun not (): kotlin.Boolean 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: CALL 'public final fun (): kotlin.Int declared in .C' type=kotlin.Int origin=GET_PROPERTY $this: GET_OBJECT 'CLASS OBJECT name:C modality:FINAL visibility:public superTypes:[.BaseClass; .I]' type=.C @@ -206,7 +206,7 @@ FILE fqName: fileName:/useImportedMember.kt : CONST Int type=kotlin.Int value=5 WHEN type=kotlin.Unit origin=IF BRANCH - if: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ + if: CALL 'public final fun not (): kotlin.Boolean 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: CALL 'public final fun (): kotlin.Int declared in .C' type=kotlin.Int origin=GET_PROPERTY $this: GET_OBJECT 'CLASS OBJECT name:C modality:FINAL visibility:public superTypes:[.BaseClass; .I]' type=.C @@ -215,7 +215,7 @@ FILE fqName: fileName:/useImportedMember.kt CONST String type=kotlin.String value="5" WHEN type=kotlin.Unit origin=IF BRANCH - if: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ + if: CALL 'public final fun not (): kotlin.Boolean 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: CALL 'public final fun (): kotlin.Int declared in .C' type=kotlin.Int origin=GET_PROPERTY $this: GET_OBJECT 'CLASS OBJECT name:C modality:FINAL visibility:public superTypes:[.BaseClass; .I]' type=.C @@ -225,7 +225,7 @@ FILE fqName: fileName:/useImportedMember.kt CONST String type=kotlin.String value="6" WHEN type=kotlin.Unit origin=IF BRANCH - if: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ + if: CALL 'public final fun not (): kotlin.Boolean 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: CALL 'public final fun g1 (t: T of .C.g1): T of .C.g1 declared in .C' type=kotlin.String origin=null : kotlin.String @@ -236,7 +236,7 @@ FILE fqName: fileName:/useImportedMember.kt CONST String type=kotlin.String value="7" WHEN type=kotlin.Unit origin=IF BRANCH - if: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ + if: CALL 'public final fun not (): kotlin.Boolean 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: CALL 'public final fun (): T of .C. declared in .C' type=kotlin.String origin=GET_PROPERTY : kotlin.String @@ -247,9 +247,9 @@ FILE fqName: fileName:/useImportedMember.kt CONST String type=kotlin.String value="8" WHEN type=kotlin.Unit origin=IF BRANCH - if: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ + if: CALL 'public final fun not (): kotlin.Boolean 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: CALL 'public open fun fromInterface (): T of .C.fromInterface [fake_override] declared in .C' type=kotlin.Int origin=null + arg0: CALL 'public open fun fromInterface (): T of .C.fromInterface declared in .C' type=kotlin.Int origin=null : kotlin.Int $this: GET_OBJECT 'CLASS OBJECT name:C modality:FINAL visibility:public superTypes:[.BaseClass; .I]' type=.C $receiver: CONST Int type=kotlin.Int value=9 @@ -258,9 +258,9 @@ FILE fqName: fileName:/useImportedMember.kt CONST String type=kotlin.String value="9" WHEN type=kotlin.Unit origin=IF BRANCH - if: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ + if: CALL 'public final fun not (): kotlin.Boolean 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: CALL 'public final fun (): T of .C. [fake_override] declared in .C' type=kotlin.String origin=GET_PROPERTY + arg0: CALL 'public final fun (): T of .C. declared in .C' type=kotlin.String origin=GET_PROPERTY : kotlin.String $this: GET_OBJECT 'CLASS OBJECT name:C modality:FINAL visibility:public superTypes:[.BaseClass; .I]' type=.C $receiver: CONST String type=kotlin.String value="10" @@ -269,9 +269,9 @@ FILE fqName: fileName:/useImportedMember.kt CONST String type=kotlin.String value="10" WHEN type=kotlin.Unit origin=IF BRANCH - if: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ + if: CALL 'public final fun not (): kotlin.Boolean 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: CALL 'public open fun genericFromSuper (g: kotlin.String): kotlin.String [fake_override] declared in .C' type=kotlin.String origin=null + arg0: CALL 'public open fun genericFromSuper (g: kotlin.String): kotlin.String declared in .C' type=kotlin.String origin=null $this: GET_OBJECT 'CLASS OBJECT name:C modality:FINAL visibility:public superTypes:[.BaseClass; .I]' type=.C g: CONST String type=kotlin.String value="11" arg1: CONST String type=kotlin.String value="11" diff --git a/compiler/testData/ir/irText/expressions/values.fir.ir.txt b/compiler/testData/ir/irText/expressions/values.fir.ir.txt index bf5d99455de..db6ed85e3c6 100644 --- a/compiler/testData/ir/irText/expressions/values.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/values.fir.ir.txt @@ -3,12 +3,12 @@ FILE fqName: fileName:/values.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Enum CONSTRUCTOR visibility:private <> () returnType:.Enum [primary] BLOCK_BODY - ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) [primary] declared in kotlin.Enum' + ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) declared in kotlin.Enum' : .Enum INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_CLASS name:Enum modality:FINAL visibility:public superTypes:[kotlin.Enum<.Enum>]' ENUM_ENTRY name:A init: EXPRESSION_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor () [primary] declared in .Enum' + ENUM_CONSTRUCTOR_CALL 'private constructor () declared in .Enum' FUN ENUM_CLASS_SPECIAL_MEMBER name:values visibility:public modality:FINAL <> () returnType:kotlin.Array<.Enum> SYNTHETIC_BODY kind=ENUM_VALUES FUN ENUM_CLASS_SPECIAL_MEMBER name:valueOf visibility:public modality:FINAL <> (value:kotlin.String) returnType:.Enum @@ -24,12 +24,12 @@ FILE fqName: fileName:/values.kt $this: VALUE_PARAMETER name: type:kotlin.Enum FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum, other:.Enum) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: E of kotlin.Enum): kotlin.Int [operator] declared in kotlin.Enum + public final fun compareTo (other: E of kotlin.Enum): kotlin.Int declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:.Enum FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Enum + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:hashCode visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] @@ -44,7 +44,7 @@ FILE fqName: fileName:/values.kt annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: @@ -52,7 +52,7 @@ FILE fqName: fileName:/values.kt $this: VALUE_PARAMETER name: type:kotlin.Enum PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: @@ -70,11 +70,11 @@ FILE fqName: fileName:/values.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.A CONSTRUCTOR visibility:private <> () returnType:.A [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:A modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -98,17 +98,17 @@ FILE fqName: fileName:/values.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Z CONSTRUCTOR visibility:public <> () returnType:.Z [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Z modality:FINAL visibility:public superTypes:[kotlin.Any]' CLASS OBJECT name:Companion modality:FINAL visibility:public [companion] superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Z.Companion CONSTRUCTOR visibility:private <> () returnType:.Z.Companion [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:Companion modality:FINAL visibility:public [companion] 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -121,7 +121,7 @@ FILE fqName: fileName:/values.kt $this: VALUE_PARAMETER name: type: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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/expressions/values.ir.txt b/compiler/testData/ir/irText/expressions/values.ir.txt index 84fb15d91f4..7352254dd3b 100644 --- a/compiler/testData/ir/irText/expressions/values.ir.txt +++ b/compiler/testData/ir/irText/expressions/values.ir.txt @@ -3,17 +3,17 @@ FILE fqName: fileName:/values.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Enum CONSTRUCTOR visibility:private <> () returnType:.Enum [primary] BLOCK_BODY - ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) [primary] declared in kotlin.Enum' + ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) declared in kotlin.Enum' : .Enum INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_CLASS name:Enum modality:FINAL visibility:public superTypes:[kotlin.Enum<.Enum>]' ENUM_ENTRY name:A init: EXPRESSION_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor () [primary] declared in .Enum' + ENUM_CONSTRUCTOR_CALL 'private constructor () declared in .Enum' PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.Enum>) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: @@ -21,7 +21,7 @@ FILE fqName: fileName:/values.kt $this: VALUE_PARAMETER name: type:kotlin.Enum<.Enum> PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.Enum>) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: @@ -33,12 +33,12 @@ FILE fqName: fileName:/values.kt $this: VALUE_PARAMETER name: type:kotlin.Enum<.Enum> FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum<.Enum>, other:.Enum) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: E of kotlin.Enum): kotlin.Int [operator] declared in kotlin.Enum + public final fun compareTo (other: E of kotlin.Enum): kotlin.Int declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum<.Enum> VALUE_PARAMETER name:other index:0 type:.Enum FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum<.Enum>, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Enum + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum<.Enum> VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:finalize visibility:protected/*protected and package*/ modality:FINAL <> ($this:kotlin.Enum<.Enum>) returnType:kotlin.Unit [fake_override] @@ -70,11 +70,11 @@ FILE fqName: fileName:/values.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.A CONSTRUCTOR visibility:private <> () returnType:.A [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:A modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -98,17 +98,17 @@ FILE fqName: fileName:/values.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Z CONSTRUCTOR visibility:public <> () returnType:.Z [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Z modality:FINAL visibility:public superTypes:[kotlin.Any]' CLASS OBJECT name:Companion modality:FINAL visibility:public [companion] superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Z.Companion CONSTRUCTOR visibility:private <> () returnType:.Z.Companion [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:Companion modality:FINAL visibility:public [companion] 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -121,7 +121,7 @@ FILE fqName: fileName:/values.kt $this: VALUE_PARAMETER name: type: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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/expressions/vararg.ir.txt b/compiler/testData/ir/irText/expressions/vararg.ir.txt index b320901b70c..f7bdb428e94 100644 --- a/compiler/testData/ir/irText/expressions/vararg.ir.txt +++ b/compiler/testData/ir/irText/expressions/vararg.ir.txt @@ -2,7 +2,7 @@ FILE fqName: fileName:/vararg.kt PROPERTY name:test1 visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:test1 type:kotlin.Array visibility:private [final,static] EXPRESSION_BODY - CALL 'public final fun arrayOf (vararg elements: T of kotlin.arrayOf): kotlin.Array [inline] declared in kotlin' type=kotlin.Array origin=null + CALL 'public final fun arrayOf (vararg elements: T of kotlin.arrayOf): kotlin.Array declared in kotlin' type=kotlin.Array origin=null : kotlin.String FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:kotlin.Array correspondingProperty: PROPERTY name:test1 visibility:public modality:FINAL [val] @@ -12,7 +12,7 @@ FILE fqName: fileName:/vararg.kt PROPERTY name:test2 visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:test2 type:kotlin.Array visibility:private [final,static] EXPRESSION_BODY - CALL 'public final fun arrayOf (vararg elements: T of kotlin.arrayOf): kotlin.Array [inline] declared in kotlin' type=kotlin.Array origin=null + CALL 'public final fun arrayOf (vararg elements: T of kotlin.arrayOf): kotlin.Array declared in kotlin' type=kotlin.Array origin=null : kotlin.String elements: VARARG type=kotlin.Array varargElementType=kotlin.String CONST String type=kotlin.String value="1" @@ -26,7 +26,7 @@ FILE fqName: fileName:/vararg.kt PROPERTY name:test3 visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:test3 type:kotlin.Array visibility:private [final,static] EXPRESSION_BODY - CALL 'public final fun arrayOf (vararg elements: T of kotlin.arrayOf): kotlin.Array [inline] declared in kotlin' type=kotlin.Array origin=null + CALL 'public final fun arrayOf (vararg elements: T of kotlin.arrayOf): kotlin.Array declared in kotlin' type=kotlin.Array origin=null : kotlin.String elements: VARARG type=kotlin.Array varargElementType=kotlin.String CONST String type=kotlin.String value="0" diff --git a/compiler/testData/ir/irText/expressions/varargWithImplicitCast.kt b/compiler/testData/ir/irText/expressions/varargWithImplicitCast.kt index 72358849742..910144bccf0 100644 --- a/compiler/testData/ir/irText/expressions/varargWithImplicitCast.kt +++ b/compiler/testData/ir/irText/expressions/varargWithImplicitCast.kt @@ -1,6 +1,4 @@ // FIR_IDENTICAL -// IGNORE_BACKEND: JS_IR -// IGNORE_BACKEND: JS_IR_ES6 fun testScalar(a: Any): IntArray { if (a !is Int) return intArrayOf() diff --git a/compiler/testData/ir/irText/expressions/variableAsFunctionCall.fir.ir.txt b/compiler/testData/ir/irText/expressions/variableAsFunctionCall.fir.ir.txt index 7ba641b6e3a..53c1c6e7b4c 100644 --- a/compiler/testData/ir/irText/expressions/variableAsFunctionCall.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/variableAsFunctionCall.fir.ir.txt @@ -12,19 +12,19 @@ FILE fqName: fileName:/variableAsFunctionCall.kt VALUE_PARAMETER name:f index:0 type:kotlin.Function0 BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test1 (f: kotlin.Function0): kotlin.Unit declared in ' - CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=kotlin.Unit origin=INVOKE + CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=kotlin.Unit origin=INVOKE $this: GET_VAR 'f: kotlin.Function0 declared in .test1' type=kotlin.Function0 origin=VARIABLE_AS_FUNCTION FUN name:test2 visibility:public modality:FINAL <> (f:@[ExtensionFunctionType] kotlin.Function1) returnType:kotlin.Unit VALUE_PARAMETER name:f index:0 type:@[ExtensionFunctionType] kotlin.Function1 BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test2 (f: @[ExtensionFunctionType] kotlin.Function1): kotlin.Unit declared in ' - CALL 'public abstract fun invoke (p1: P1 of kotlin.Function1): R of kotlin.Function1 [operator] declared in kotlin.Function1' type=kotlin.Unit origin=INVOKE + CALL 'public abstract fun invoke (p1: P1 of kotlin.Function1): R of kotlin.Function1 declared in kotlin.Function1' type=kotlin.Unit origin=INVOKE $this: GET_VAR 'f: @[ExtensionFunctionType] kotlin.Function1 declared in .test2' type=@[ExtensionFunctionType] kotlin.Function1 origin=VARIABLE_AS_FUNCTION p1: CONST String type=kotlin.String value="hello" FUN name:test3 visibility:public modality:FINAL <> () returnType:kotlin.String BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test3 (): kotlin.String declared in ' - CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=kotlin.String origin=INVOKE + CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=kotlin.String origin=INVOKE $this: CALL 'public final fun k (): kotlin.Function0 declared in ' type=kotlin.Function0 origin=null $receiver: CONST String type=kotlin.String value="hello" FUN name:test4 visibility:public modality:FINAL <> (ns:kotlin.String?) returnType:kotlin.String? @@ -39,20 +39,20 @@ FILE fqName: fileName:/variableAsFunctionCall.kt WHEN type=kotlin.Function0? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_1: kotlin.String? [val] declared in .test4' type=kotlin.String? origin=null + arg0: GET_VAR 'val tmp_1: kotlin.String? declared in .test4' type=kotlin.String? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public final fun k (): kotlin.Function0 declared in ' type=kotlin.Function0 origin=null - $receiver: GET_VAR 'val tmp_1: kotlin.String? [val] declared in .test4' type=kotlin.String? origin=null + $receiver: GET_VAR 'val tmp_1: kotlin.String? declared in .test4' type=kotlin.String? origin=null WHEN type=kotlin.String? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_0: kotlin.Function0? [val] declared in .test4' type=kotlin.Function0? origin=null + arg0: GET_VAR 'val tmp_0: kotlin.Function0? declared in .test4' type=kotlin.Function0? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=kotlin.String origin=INVOKE - $this: GET_VAR 'val tmp_0: kotlin.Function0? [val] declared in .test4' type=kotlin.Function0? origin=null + then: CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=kotlin.String origin=INVOKE + $this: GET_VAR 'val tmp_0: kotlin.Function0? declared in .test4' type=kotlin.Function0? origin=null diff --git a/compiler/testData/ir/irText/expressions/variableAsFunctionCall.ir.txt b/compiler/testData/ir/irText/expressions/variableAsFunctionCall.ir.txt index bae964cf70b..2f3adfb7a11 100644 --- a/compiler/testData/ir/irText/expressions/variableAsFunctionCall.ir.txt +++ b/compiler/testData/ir/irText/expressions/variableAsFunctionCall.ir.txt @@ -12,19 +12,19 @@ FILE fqName: fileName:/variableAsFunctionCall.kt VALUE_PARAMETER name:f index:0 type:kotlin.Function0 BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test1 (f: kotlin.Function0): kotlin.Unit declared in ' - CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=kotlin.Unit origin=INVOKE + CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=kotlin.Unit origin=INVOKE $this: GET_VAR 'f: kotlin.Function0 declared in .test1' type=kotlin.Function0 origin=VARIABLE_AS_FUNCTION FUN name:test2 visibility:public modality:FINAL <> (f:@[ExtensionFunctionType] kotlin.Function1) returnType:kotlin.Unit VALUE_PARAMETER name:f index:0 type:@[ExtensionFunctionType] kotlin.Function1 BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test2 (f: @[ExtensionFunctionType] kotlin.Function1): kotlin.Unit declared in ' - CALL 'public abstract fun invoke (p1: P1 of kotlin.Function1): R of kotlin.Function1 [operator] declared in kotlin.Function1' type=kotlin.Unit origin=INVOKE + CALL 'public abstract fun invoke (p1: P1 of kotlin.Function1): R of kotlin.Function1 declared in kotlin.Function1' type=kotlin.Unit origin=INVOKE $this: GET_VAR 'f: @[ExtensionFunctionType] kotlin.Function1 declared in .test2' type=@[ExtensionFunctionType] kotlin.Function1 origin=VARIABLE_AS_FUNCTION p1: CONST String type=kotlin.String value="hello" FUN name:test3 visibility:public modality:FINAL <> () returnType:kotlin.String BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test3 (): kotlin.String declared in ' - CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=kotlin.String origin=null + CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=kotlin.String origin=null $this: CALL 'public final fun k (): kotlin.Function0 declared in ' type=kotlin.Function0 origin=null $receiver: CONST String type=kotlin.String value="hello" FUN name:test4 visibility:public modality:FINAL <> (ns:kotlin.String?) returnType:kotlin.String? @@ -39,20 +39,20 @@ FILE fqName: fileName:/variableAsFunctionCall.kt WHEN type=kotlin.Function0? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_1: kotlin.String? [val] declared in .test4' type=kotlin.String? origin=null + arg0: GET_VAR 'val tmp_1: kotlin.String? declared in .test4' type=kotlin.String? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public final fun k (): kotlin.Function0 declared in ' type=kotlin.Function0 origin=null - $receiver: GET_VAR 'val tmp_1: kotlin.String? [val] declared in .test4' type=kotlin.String? origin=null + $receiver: GET_VAR 'val tmp_1: kotlin.String? declared in .test4' type=kotlin.String? origin=null WHEN type=kotlin.String? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_0: kotlin.Function0? [val] declared in .test4' type=kotlin.Function0? origin=null + arg0: GET_VAR 'val tmp_0: kotlin.Function0? declared in .test4' type=kotlin.Function0? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=kotlin.String origin=null - $this: GET_VAR 'val tmp_0: kotlin.Function0? [val] declared in .test4' type=kotlin.Function0? origin=null + then: CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=kotlin.String origin=null + $this: GET_VAR 'val tmp_0: kotlin.Function0? declared in .test4' type=kotlin.Function0? origin=null diff --git a/compiler/testData/ir/irText/expressions/variableAsFunctionCallWithGenerics.ir.txt b/compiler/testData/ir/irText/expressions/variableAsFunctionCallWithGenerics.ir.txt index 8fccb69e0bb..01607218d1d 100644 --- a/compiler/testData/ir/irText/expressions/variableAsFunctionCallWithGenerics.ir.txt +++ b/compiler/testData/ir/irText/expressions/variableAsFunctionCallWithGenerics.ir.txt @@ -15,7 +15,7 @@ FILE fqName: fileName:/variableAsFunctionCallWithGenerics.kt VALUE_PARAMETER name:x index:0 type:kotlin.String BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun testGeneric1 (x: kotlin.String): kotlin.String declared in ' - CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=kotlin.String origin=INVOKE + CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=kotlin.String origin=INVOKE $this: CALL 'public final fun (): kotlin.Function0.> declared in ' type=kotlin.Function0 origin=GET_PROPERTY : kotlin.String $receiver: GET_VAR 'x: kotlin.String declared in .testGeneric1' type=kotlin.String origin=null @@ -34,7 +34,7 @@ FILE fqName: fileName:/variableAsFunctionCallWithGenerics.kt FUN name:kt26531 visibility:public modality:FINAL <> () returnType:kotlin.Int BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun kt26531 (): kotlin.Int declared in ' - CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=kotlin.Int origin=INVOKE + CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=kotlin.Int origin=INVOKE $this: CALL 'public final fun (): kotlin.Function0.> declared in ' type=kotlin.Function0 origin=GET_PROPERTY : kotlin.Int $receiver: CONST Int type=kotlin.Int value=7 diff --git a/compiler/testData/ir/irText/expressions/when.fir.ir.txt b/compiler/testData/ir/irText/expressions/when.fir.ir.txt index 8d91b77e736..a39650930d0 100644 --- a/compiler/testData/ir/irText/expressions/when.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/when.fir.ir.txt @@ -3,11 +3,11 @@ FILE fqName: fileName:/when.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.A CONSTRUCTOR visibility:private <> () returnType:.A [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:A modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -28,29 +28,29 @@ FILE fqName: fileName:/when.kt WHEN type=kotlin.String origin=WHEN BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_0: kotlin.Any? [val] declared in .testWithSubject' type=kotlin.Any? origin=null + arg0: GET_VAR 'val tmp_0: kotlin.Any? declared in .testWithSubject' type=kotlin.Any? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST String type=kotlin.String value="null" BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_0: kotlin.Any? [val] declared in .testWithSubject' type=kotlin.Any? origin=null + arg0: GET_VAR 'val tmp_0: kotlin.Any? declared in .testWithSubject' type=kotlin.Any? origin=null arg1: GET_OBJECT 'CLASS OBJECT name:A modality:FINAL visibility:public superTypes:[kotlin.Any]' type=.A then: CONST String type=kotlin.String value="A" BRANCH if: TYPE_OP type=kotlin.Boolean origin=INSTANCEOF typeOperand=kotlin.String - GET_VAR 'val tmp_0: kotlin.Any? [val] declared in .testWithSubject' type=kotlin.Any? origin=null + GET_VAR 'val tmp_0: kotlin.Any? declared in .testWithSubject' type=kotlin.Any? origin=null then: CONST String type=kotlin.String value="String" BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=kotlin.Number - GET_VAR 'val tmp_0: kotlin.Any? [val] declared in .testWithSubject' type=kotlin.Any? origin=null + GET_VAR 'val tmp_0: kotlin.Any? declared in .testWithSubject' type=kotlin.Any? origin=null then: CONST String type=kotlin.String value="!Number" BRANCH - if: CALL 'public final fun contains (element: T of kotlin.collections.CollectionsKt.contains): kotlin.Boolean [operator] declared in kotlin.collections.CollectionsKt' type=kotlin.Boolean origin=IN + if: CALL 'public final fun contains (element: T of kotlin.collections.CollectionsKt.contains): kotlin.Boolean declared in kotlin.collections.CollectionsKt' type=kotlin.Boolean origin=IN : kotlin.Number - $receiver: CALL 'public final fun setOf (): kotlin.collections.Set [inline] declared in kotlin.collections.SetsKt' type=kotlin.collections.Set origin=null + $receiver: CALL 'public final fun setOf (): kotlin.collections.Set declared in kotlin.collections.SetsKt' type=kotlin.collections.Set origin=null : kotlin.Nothing element: TYPE_OP type=kotlin.Number origin=IMPLICIT_CAST typeOperand=kotlin.Number - GET_VAR 'val tmp_0: kotlin.Any? [val] declared in .testWithSubject' type=kotlin.Any? origin=null + GET_VAR 'val tmp_0: kotlin.Any? declared in .testWithSubject' type=kotlin.Any? origin=null then: CONST String type=kotlin.String value="nothingness?" BRANCH if: CONST Boolean type=kotlin.Boolean value=true @@ -79,9 +79,9 @@ FILE fqName: fileName:/when.kt GET_VAR 'x: kotlin.Any? declared in .test' type=kotlin.Any? origin=null then: CONST String type=kotlin.String value="!Number" BRANCH - if: CALL 'public final fun contains (element: T of kotlin.collections.CollectionsKt.contains): kotlin.Boolean [operator] declared in kotlin.collections.CollectionsKt' type=kotlin.Boolean origin=IN + if: CALL 'public final fun contains (element: T of kotlin.collections.CollectionsKt.contains): kotlin.Boolean declared in kotlin.collections.CollectionsKt' type=kotlin.Boolean origin=IN : kotlin.Number - $receiver: CALL 'public final fun setOf (): kotlin.collections.Set [inline] declared in kotlin.collections.SetsKt' type=kotlin.collections.Set origin=null + $receiver: CALL 'public final fun setOf (): kotlin.collections.Set declared in kotlin.collections.SetsKt' type=kotlin.collections.Set origin=null : kotlin.Nothing element: TYPE_OP type=kotlin.Number origin=IMPLICIT_CAST typeOperand=kotlin.Number GET_VAR 'x: kotlin.Any? declared in .test' type=kotlin.Any? origin=null @@ -103,13 +103,13 @@ FILE fqName: fileName:/when.kt if: WHEN type=kotlin.Boolean origin=OROR BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_1: kotlin.Int [val] declared in .testComma' type=kotlin.Int origin=null + arg0: GET_VAR 'val tmp_1: kotlin.Int declared in .testComma' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=1 then: CONST Boolean type=kotlin.Boolean value=true BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_1: kotlin.Int [val] declared in .testComma' type=kotlin.Int origin=null + arg0: GET_VAR 'val tmp_1: kotlin.Int declared in .testComma' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=2 then: CONST Boolean type=kotlin.Boolean value=true BRANCH @@ -117,20 +117,20 @@ FILE fqName: fileName:/when.kt then: WHEN type=kotlin.Boolean origin=OROR BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_1: kotlin.Int [val] declared in .testComma' type=kotlin.Int origin=null + arg0: GET_VAR 'val tmp_1: kotlin.Int declared in .testComma' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=3 then: CONST Boolean type=kotlin.Boolean value=true BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_1: kotlin.Int [val] declared in .testComma' type=kotlin.Int origin=null + arg0: GET_VAR 'val tmp_1: kotlin.Int declared in .testComma' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=4 then: CONST String type=kotlin.String value="1234" BRANCH if: WHEN type=kotlin.Boolean origin=OROR BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_1: kotlin.Int [val] declared in .testComma' type=kotlin.Int origin=null + arg0: GET_VAR 'val tmp_1: kotlin.Int declared in .testComma' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=5 then: CONST Boolean type=kotlin.Boolean value=true BRANCH @@ -138,26 +138,26 @@ FILE fqName: fileName:/when.kt then: WHEN type=kotlin.Boolean origin=OROR BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_1: kotlin.Int [val] declared in .testComma' type=kotlin.Int origin=null + arg0: GET_VAR 'val tmp_1: kotlin.Int declared in .testComma' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=6 then: CONST Boolean type=kotlin.Boolean value=true BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_1: kotlin.Int [val] declared in .testComma' type=kotlin.Int origin=null + arg0: GET_VAR 'val tmp_1: kotlin.Int declared in .testComma' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=7 then: CONST String type=kotlin.String value="567" BRANCH if: WHEN type=kotlin.Boolean origin=OROR BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_1: kotlin.Int [val] declared in .testComma' type=kotlin.Int origin=null + arg0: GET_VAR 'val tmp_1: kotlin.Int declared in .testComma' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=8 then: CONST Boolean type=kotlin.Boolean value=true BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_1: kotlin.Int [val] declared in .testComma' type=kotlin.Int origin=null + arg0: GET_VAR 'val tmp_1: kotlin.Int declared in .testComma' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=9 then: CONST String type=kotlin.String value="89" BRANCH diff --git a/compiler/testData/ir/irText/expressions/when.ir.txt b/compiler/testData/ir/irText/expressions/when.ir.txt index 42e6190eca6..44002bdbfd5 100644 --- a/compiler/testData/ir/irText/expressions/when.ir.txt +++ b/compiler/testData/ir/irText/expressions/when.ir.txt @@ -3,11 +3,11 @@ FILE fqName: fileName:/when.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.A CONSTRUCTOR visibility:private <> () returnType:.A [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:A modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -28,30 +28,30 @@ FILE fqName: fileName:/when.kt WHEN type=kotlin.String origin=WHEN BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_0: kotlin.Any? [val] declared in .testWithSubject' type=kotlin.Any? origin=null + arg0: GET_VAR 'val tmp_0: kotlin.Any? declared in .testWithSubject' type=kotlin.Any? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST String type=kotlin.String value="null" BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_0: kotlin.Any? [val] declared in .testWithSubject' type=kotlin.Any? origin=null + arg0: GET_VAR 'val tmp_0: kotlin.Any? declared in .testWithSubject' type=kotlin.Any? origin=null arg1: GET_OBJECT 'CLASS OBJECT name:A modality:FINAL visibility:public superTypes:[kotlin.Any]' type=.A then: CONST String type=kotlin.String value="A" BRANCH if: TYPE_OP type=kotlin.Boolean origin=INSTANCEOF typeOperand=kotlin.String - GET_VAR 'val tmp_0: kotlin.Any? [val] declared in .testWithSubject' type=kotlin.Any? origin=null + GET_VAR 'val tmp_0: kotlin.Any? declared in .testWithSubject' type=kotlin.Any? origin=null then: CONST String type=kotlin.String value="String" BRANCH - if: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCL + if: CALL 'public final fun not (): kotlin.Boolean declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCL $this: TYPE_OP type=kotlin.Boolean origin=INSTANCEOF typeOperand=kotlin.Number - GET_VAR 'val tmp_0: kotlin.Any? [val] declared in .testWithSubject' type=kotlin.Any? origin=null + GET_VAR 'val tmp_0: kotlin.Any? declared in .testWithSubject' type=kotlin.Any? origin=null then: CONST String type=kotlin.String value="!Number" BRANCH - if: CALL 'public final fun contains (element: T of kotlin.collections.CollectionsKt.contains): kotlin.Boolean [operator] declared in kotlin.collections.CollectionsKt' type=kotlin.Boolean origin=IN + if: CALL 'public final fun contains (element: T of kotlin.collections.CollectionsKt.contains): kotlin.Boolean declared in kotlin.collections.CollectionsKt' type=kotlin.Boolean origin=IN : kotlin.Number - $receiver: CALL 'public final fun setOf (): kotlin.collections.Set [inline] declared in kotlin.collections.SetsKt' type=kotlin.collections.Set origin=null + $receiver: CALL 'public final fun setOf (): kotlin.collections.Set declared in kotlin.collections.SetsKt' type=kotlin.collections.Set origin=null : kotlin.Nothing element: TYPE_OP type=kotlin.Number origin=IMPLICIT_CAST typeOperand=kotlin.Number - GET_VAR 'val tmp_0: kotlin.Any? [val] declared in .testWithSubject' type=kotlin.Any? origin=null + GET_VAR 'val tmp_0: kotlin.Any? declared in .testWithSubject' type=kotlin.Any? origin=null then: CONST String type=kotlin.String value="nothingness?" BRANCH if: CONST Boolean type=kotlin.Boolean value=true @@ -80,9 +80,9 @@ FILE fqName: fileName:/when.kt GET_VAR 'x: kotlin.Any? declared in .test' type=kotlin.Any? origin=null then: CONST String type=kotlin.String value="!Number" BRANCH - if: CALL 'public final fun contains (element: T of kotlin.collections.CollectionsKt.contains): kotlin.Boolean [operator] declared in kotlin.collections.CollectionsKt' type=kotlin.Boolean origin=IN + if: CALL 'public final fun contains (element: T of kotlin.collections.CollectionsKt.contains): kotlin.Boolean declared in kotlin.collections.CollectionsKt' type=kotlin.Boolean origin=IN : kotlin.Number - $receiver: CALL 'public final fun setOf (): kotlin.collections.Set [inline] declared in kotlin.collections.SetsKt' type=kotlin.collections.Set origin=null + $receiver: CALL 'public final fun setOf (): kotlin.collections.Set declared in kotlin.collections.SetsKt' type=kotlin.collections.Set origin=null : kotlin.Nothing element: TYPE_OP type=kotlin.Number origin=IMPLICIT_CAST typeOperand=kotlin.Number GET_VAR 'x: kotlin.Any? declared in .test' type=kotlin.Any? origin=null @@ -106,25 +106,25 @@ FILE fqName: fileName:/when.kt if: WHEN type=kotlin.Boolean origin=WHEN_COMMA BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_1: kotlin.Int [val] declared in .testComma' type=kotlin.Int origin=null + arg0: GET_VAR 'val tmp_1: kotlin.Int declared in .testComma' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=1 then: CONST Boolean type=kotlin.Boolean value=true BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_1: kotlin.Int [val] declared in .testComma' type=kotlin.Int origin=null + arg0: GET_VAR 'val tmp_1: kotlin.Int declared in .testComma' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=2 then: CONST Boolean type=kotlin.Boolean value=true BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_1: kotlin.Int [val] declared in .testComma' type=kotlin.Int origin=null + arg0: GET_VAR 'val tmp_1: kotlin.Int declared in .testComma' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=3 then: CONST Boolean type=kotlin.Boolean value=true BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_1: kotlin.Int [val] declared in .testComma' type=kotlin.Int origin=null + arg0: GET_VAR 'val tmp_1: kotlin.Int declared in .testComma' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=4 then: CONST String type=kotlin.String value="1234" BRANCH @@ -133,32 +133,32 @@ FILE fqName: fileName:/when.kt if: WHEN type=kotlin.Boolean origin=WHEN_COMMA BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_1: kotlin.Int [val] declared in .testComma' type=kotlin.Int origin=null + arg0: GET_VAR 'val tmp_1: kotlin.Int declared in .testComma' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=5 then: CONST Boolean type=kotlin.Boolean value=true BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_1: kotlin.Int [val] declared in .testComma' type=kotlin.Int origin=null + arg0: GET_VAR 'val tmp_1: kotlin.Int declared in .testComma' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=6 then: CONST Boolean type=kotlin.Boolean value=true BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_1: kotlin.Int [val] declared in .testComma' type=kotlin.Int origin=null + arg0: GET_VAR 'val tmp_1: kotlin.Int declared in .testComma' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=7 then: CONST String type=kotlin.String value="567" BRANCH if: WHEN type=kotlin.Boolean origin=WHEN_COMMA BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_1: kotlin.Int [val] declared in .testComma' type=kotlin.Int origin=null + arg0: GET_VAR 'val tmp_1: kotlin.Int declared in .testComma' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=8 then: CONST Boolean type=kotlin.Boolean value=true BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_1: kotlin.Int [val] declared in .testComma' type=kotlin.Int origin=null + arg0: GET_VAR 'val tmp_1: kotlin.Int declared in .testComma' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=9 then: CONST String type=kotlin.String value="89" BRANCH diff --git a/compiler/testData/ir/irText/expressions/whenCoercedToUnit.ir.txt b/compiler/testData/ir/irText/expressions/whenCoercedToUnit.ir.txt index 29da8a04a5e..a3f93b94164 100644 --- a/compiler/testData/ir/irText/expressions/whenCoercedToUnit.ir.txt +++ b/compiler/testData/ir/irText/expressions/whenCoercedToUnit.ir.txt @@ -8,7 +8,7 @@ FILE fqName: fileName:/whenCoercedToUnit.kt WHEN type=kotlin.Unit origin=WHEN BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_0: kotlin.Int [val] declared in .foo' type=kotlin.Int origin=null + arg0: GET_VAR 'val tmp_0: kotlin.Int declared in .foo' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=0 then: TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit CONST Int type=kotlin.Int value=0 diff --git a/compiler/testData/ir/irText/expressions/whenReturn.fir.ir.txt b/compiler/testData/ir/irText/expressions/whenReturn.fir.ir.txt index 7cd116a9604..65f4b5f9c3b 100644 --- a/compiler/testData/ir/irText/expressions/whenReturn.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/whenReturn.fir.ir.txt @@ -8,25 +8,25 @@ FILE fqName: fileName:/whenReturn.kt WHEN type=kotlin.Nothing origin=WHEN BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_0: kotlin.String [val] declared in .toString' type=kotlin.String origin=null + arg0: GET_VAR 'val tmp_0: kotlin.String declared in .toString' type=kotlin.String origin=null arg1: CONST String type=kotlin.String value="A" then: RETURN type=kotlin.Nothing from='public final fun toString (grade: kotlin.String): kotlin.String declared in ' CONST String type=kotlin.String value="Excellent" BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_0: kotlin.String [val] declared in .toString' type=kotlin.String origin=null + arg0: GET_VAR 'val tmp_0: kotlin.String declared in .toString' type=kotlin.String origin=null arg1: CONST String type=kotlin.String value="B" then: RETURN type=kotlin.Nothing from='public final fun toString (grade: kotlin.String): kotlin.String declared in ' CONST String type=kotlin.String value="Good" BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_0: kotlin.String [val] declared in .toString' type=kotlin.String origin=null + arg0: GET_VAR 'val tmp_0: kotlin.String declared in .toString' type=kotlin.String origin=null arg1: CONST String type=kotlin.String value="C" then: RETURN type=kotlin.Nothing from='public final fun toString (grade: kotlin.String): kotlin.String declared in ' CONST String type=kotlin.String value="Mediocre" BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_0: kotlin.String [val] declared in .toString' type=kotlin.String origin=null + arg0: GET_VAR 'val tmp_0: kotlin.String declared in .toString' type=kotlin.String origin=null arg1: CONST String type=kotlin.String value="D" then: RETURN type=kotlin.Nothing from='public final fun toString (grade: kotlin.String): kotlin.String declared in ' CONST String type=kotlin.String value="Fair" diff --git a/compiler/testData/ir/irText/expressions/whenReturn.ir.txt b/compiler/testData/ir/irText/expressions/whenReturn.ir.txt index 3b8cb956d90..d091e6c223c 100644 --- a/compiler/testData/ir/irText/expressions/whenReturn.ir.txt +++ b/compiler/testData/ir/irText/expressions/whenReturn.ir.txt @@ -8,25 +8,25 @@ FILE fqName: fileName:/whenReturn.kt WHEN type=kotlin.Unit origin=WHEN BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_0: kotlin.String [val] declared in .toString' type=kotlin.String origin=null + arg0: GET_VAR 'val tmp_0: kotlin.String declared in .toString' type=kotlin.String origin=null arg1: CONST String type=kotlin.String value="A" then: RETURN type=kotlin.Nothing from='public final fun toString (grade: kotlin.String): kotlin.String declared in ' CONST String type=kotlin.String value="Excellent" BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_0: kotlin.String [val] declared in .toString' type=kotlin.String origin=null + arg0: GET_VAR 'val tmp_0: kotlin.String declared in .toString' type=kotlin.String origin=null arg1: CONST String type=kotlin.String value="B" then: RETURN type=kotlin.Nothing from='public final fun toString (grade: kotlin.String): kotlin.String declared in ' CONST String type=kotlin.String value="Good" BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_0: kotlin.String [val] declared in .toString' type=kotlin.String origin=null + arg0: GET_VAR 'val tmp_0: kotlin.String declared in .toString' type=kotlin.String origin=null arg1: CONST String type=kotlin.String value="C" then: RETURN type=kotlin.Nothing from='public final fun toString (grade: kotlin.String): kotlin.String declared in ' CONST String type=kotlin.String value="Mediocre" BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_0: kotlin.String [val] declared in .toString' type=kotlin.String origin=null + arg0: GET_VAR 'val tmp_0: kotlin.String declared in .toString' type=kotlin.String origin=null arg1: CONST String type=kotlin.String value="D" then: RETURN type=kotlin.Nothing from='public final fun toString (grade: kotlin.String): kotlin.String declared in ' CONST String type=kotlin.String value="Fair" diff --git a/compiler/testData/ir/irText/expressions/whenReturnUnit.ir.txt b/compiler/testData/ir/irText/expressions/whenReturnUnit.ir.txt index dd615c2e3cb..23301972dfe 100644 --- a/compiler/testData/ir/irText/expressions/whenReturnUnit.ir.txt +++ b/compiler/testData/ir/irText/expressions/whenReturnUnit.ir.txt @@ -16,13 +16,13 @@ FILE fqName: fileName:/whenReturnUnit.kt WHEN type=kotlin.Unit origin=WHEN BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_0: kotlin.Int [val] declared in .branch.' type=kotlin.Int origin=null + arg0: GET_VAR 'val tmp_0: kotlin.Int declared in .branch.' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=1 - then: CALL 'public final fun TODO (reason: kotlin.String): kotlin.Nothing [inline] declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + then: CALL 'public final fun TODO (reason: kotlin.String): kotlin.Nothing declared in kotlin.StandardKt' type=kotlin.Nothing origin=null reason: CONST String type=kotlin.String value="1" BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_0: kotlin.Int [val] declared in .branch.' type=kotlin.Int origin=null + arg0: GET_VAR 'val tmp_0: kotlin.Int declared in .branch.' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=2 - then: CALL 'public final fun TODO (reason: kotlin.String): kotlin.Nothing [inline] declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + then: CALL 'public final fun TODO (reason: kotlin.String): kotlin.Nothing declared in kotlin.StandardKt' type=kotlin.Nothing origin=null reason: CONST String type=kotlin.String value="2" diff --git a/compiler/testData/ir/irText/expressions/whenSmartCastToEnum.fir.ir.txt b/compiler/testData/ir/irText/expressions/whenSmartCastToEnum.fir.ir.txt index 8824e18e867..3bbc4c53172 100644 --- a/compiler/testData/ir/irText/expressions/whenSmartCastToEnum.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/whenSmartCastToEnum.fir.ir.txt @@ -3,18 +3,18 @@ FILE fqName: fileName:/whenSmartCastToEnum.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.En CONSTRUCTOR visibility:private <> () returnType:.En [primary] BLOCK_BODY - ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) [primary] declared in kotlin.Enum' + ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) declared in kotlin.Enum' : .En INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_CLASS name:En modality:FINAL visibility:public superTypes:[kotlin.Enum<.En>]' ENUM_ENTRY name:A init: EXPRESSION_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor () [primary] declared in .En' + ENUM_CONSTRUCTOR_CALL 'private constructor () declared in .En' ENUM_ENTRY name:B init: EXPRESSION_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor () [primary] declared in .En' + ENUM_CONSTRUCTOR_CALL 'private constructor () declared in .En' ENUM_ENTRY name:C init: EXPRESSION_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor () [primary] declared in .En' + ENUM_CONSTRUCTOR_CALL 'private constructor () declared in .En' FUN ENUM_CLASS_SPECIAL_MEMBER name:values visibility:public modality:FINAL <> () returnType:kotlin.Array<.En> SYNTHETIC_BODY kind=ENUM_VALUES FUN ENUM_CLASS_SPECIAL_MEMBER name:valueOf visibility:public modality:FINAL <> (value:kotlin.String) returnType:.En @@ -30,12 +30,12 @@ FILE fqName: fileName:/whenSmartCastToEnum.kt $this: VALUE_PARAMETER name: type:kotlin.Enum FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum, other:.En) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: E of kotlin.Enum): kotlin.Int [operator] declared in kotlin.Enum + public final fun compareTo (other: E of kotlin.Enum): kotlin.Int declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:.En FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Enum + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:hashCode visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] @@ -50,7 +50,7 @@ FILE fqName: fileName:/whenSmartCastToEnum.kt annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: @@ -58,7 +58,7 @@ FILE fqName: fileName:/whenSmartCastToEnum.kt $this: VALUE_PARAMETER name: type:kotlin.Enum PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: @@ -81,27 +81,27 @@ FILE fqName: fileName:/whenSmartCastToEnum.kt WHEN type=kotlin.Unit origin=IF BRANCH if: TYPE_OP type=kotlin.Boolean origin=INSTANCEOF typeOperand=.En - GET_VAR 'val x: kotlin.Any? [val] declared in .test' type=kotlin.Any? origin=null + GET_VAR 'val x: kotlin.Any? declared in .test' type=kotlin.Any? origin=null then: BLOCK type=kotlin.Unit origin=WHEN VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:.En [val] TYPE_OP type=.En origin=IMPLICIT_CAST typeOperand=.En - GET_VAR 'val x: kotlin.Any? [val] declared in .test' type=kotlin.Any? origin=null + GET_VAR 'val x: kotlin.Any? declared in .test' type=kotlin.Any? origin=null WHEN type=kotlin.Unit origin=WHEN BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_0: .En [val] declared in .test' type=.En origin=null + arg0: GET_VAR 'val tmp_0: .En declared in .test' type=.En origin=null arg1: GET_ENUM 'ENUM_ENTRY name:A' type=.En then: BLOCK type=kotlin.Unit origin=null - SET_VAR 'var r: kotlin.String [var] declared in .test' type=kotlin.Unit origin=EQ + SET_VAR 'var r: kotlin.String declared in .test' type=kotlin.Unit origin=EQ CONST String type=kotlin.String value="when1" BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_0: .En [val] declared in .test' type=.En origin=null + arg0: GET_VAR 'val tmp_0: .En declared in .test' type=.En origin=null arg1: GET_ENUM 'ENUM_ENTRY name:B' type=.En then: BLOCK type=kotlin.Unit origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_0: .En [val] declared in .test' type=.En origin=null + arg0: GET_VAR 'val tmp_0: .En declared in .test' type=.En origin=null arg1: GET_ENUM 'ENUM_ENTRY name:C' type=.En then: BLOCK type=kotlin.Unit origin=null BRANCH @@ -112,27 +112,27 @@ FILE fqName: fileName:/whenSmartCastToEnum.kt WHEN type=kotlin.Unit origin=IF BRANCH if: TYPE_OP type=kotlin.Boolean origin=INSTANCEOF typeOperand=.En - GET_VAR 'val y: kotlin.Any [val] declared in .test' type=kotlin.Any origin=null + GET_VAR 'val y: kotlin.Any declared in .test' type=kotlin.Any origin=null then: BLOCK type=kotlin.Unit origin=WHEN VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:.En [val] TYPE_OP type=.En origin=IMPLICIT_CAST typeOperand=.En - GET_VAR 'val y: kotlin.Any [val] declared in .test' type=kotlin.Any origin=null + GET_VAR 'val y: kotlin.Any declared in .test' type=kotlin.Any origin=null WHEN type=kotlin.Unit origin=WHEN BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_1: .En [val] declared in .test' type=.En origin=null + arg0: GET_VAR 'val tmp_1: .En declared in .test' type=.En origin=null arg1: GET_ENUM 'ENUM_ENTRY name:A' type=.En then: BLOCK type=kotlin.Unit origin=null - SET_VAR 'var r: kotlin.String [var] declared in .test' type=kotlin.Unit origin=EQ + SET_VAR 'var r: kotlin.String declared in .test' type=kotlin.Unit origin=EQ CONST String type=kotlin.String value="when2" BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_1: .En [val] declared in .test' type=.En origin=null + arg0: GET_VAR 'val tmp_1: .En declared in .test' type=.En origin=null arg1: GET_ENUM 'ENUM_ENTRY name:B' type=.En then: BLOCK type=kotlin.Unit origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_1: .En [val] declared in .test' type=.En origin=null + arg0: GET_VAR 'val tmp_1: .En declared in .test' type=.En origin=null arg1: GET_ENUM 'ENUM_ENTRY name:C' type=.En then: BLOCK type=kotlin.Unit origin=null BRANCH diff --git a/compiler/testData/ir/irText/expressions/whenSmartCastToEnum.ir.txt b/compiler/testData/ir/irText/expressions/whenSmartCastToEnum.ir.txt index 869c2acd5b6..4554758142d 100644 --- a/compiler/testData/ir/irText/expressions/whenSmartCastToEnum.ir.txt +++ b/compiler/testData/ir/irText/expressions/whenSmartCastToEnum.ir.txt @@ -3,23 +3,23 @@ FILE fqName: fileName:/whenSmartCastToEnum.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.En CONSTRUCTOR visibility:private <> () returnType:.En [primary] BLOCK_BODY - ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) [primary] declared in kotlin.Enum' + ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) declared in kotlin.Enum' : .En INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_CLASS name:En modality:FINAL visibility:public superTypes:[kotlin.Enum<.En>]' ENUM_ENTRY name:A init: EXPRESSION_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor () [primary] declared in .En' + ENUM_CONSTRUCTOR_CALL 'private constructor () declared in .En' ENUM_ENTRY name:B init: EXPRESSION_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor () [primary] declared in .En' + ENUM_CONSTRUCTOR_CALL 'private constructor () declared in .En' ENUM_ENTRY name:C init: EXPRESSION_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor () [primary] declared in .En' + ENUM_CONSTRUCTOR_CALL 'private constructor () declared in .En' PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.En>) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: @@ -27,7 +27,7 @@ FILE fqName: fileName:/whenSmartCastToEnum.kt $this: VALUE_PARAMETER name: type:kotlin.Enum<.En> PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.En>) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: @@ -39,12 +39,12 @@ FILE fqName: fileName:/whenSmartCastToEnum.kt $this: VALUE_PARAMETER name: type:kotlin.Enum<.En> FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum<.En>, other:.En) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: E of kotlin.Enum): kotlin.Int [operator] declared in kotlin.Enum + public final fun compareTo (other: E of kotlin.Enum): kotlin.Int declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum<.En> VALUE_PARAMETER name:other index:0 type:.En FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum<.En>, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Enum + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum<.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<.En>) returnType:kotlin.Unit [fake_override] @@ -81,28 +81,28 @@ FILE fqName: fileName:/whenSmartCastToEnum.kt WHEN type=kotlin.Unit origin=IF BRANCH if: TYPE_OP type=kotlin.Boolean origin=INSTANCEOF typeOperand=.En - GET_VAR 'val x: kotlin.Any? [val] declared in .test' type=kotlin.Any? origin=null + GET_VAR 'val x: kotlin.Any? declared in .test' type=kotlin.Any? origin=null then: BLOCK type=kotlin.Unit origin=null BLOCK type=kotlin.Unit origin=WHEN VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:.En [val] TYPE_OP type=.En origin=IMPLICIT_CAST typeOperand=.En - GET_VAR 'val x: kotlin.Any? [val] declared in .test' type=kotlin.Any? origin=null + GET_VAR 'val x: kotlin.Any? declared in .test' type=kotlin.Any? origin=null WHEN type=kotlin.Unit origin=WHEN BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_0: .En [val] declared in .test' type=.En origin=null + arg0: GET_VAR 'val tmp_0: .En declared in .test' type=.En origin=null arg1: GET_ENUM 'ENUM_ENTRY name:A' type=.En then: BLOCK type=kotlin.Unit origin=null - SET_VAR 'var r: kotlin.String [var] declared in .test' type=kotlin.Unit origin=EQ + SET_VAR 'var r: kotlin.String declared in .test' type=kotlin.Unit origin=EQ CONST String type=kotlin.String value="when1" BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_0: .En [val] declared in .test' type=.En origin=null + arg0: GET_VAR 'val tmp_0: .En declared in .test' type=.En origin=null arg1: GET_ENUM 'ENUM_ENTRY name:B' type=.En then: BLOCK type=kotlin.Unit origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_0: .En [val] declared in .test' type=.En origin=null + arg0: GET_VAR 'val tmp_0: .En declared in .test' type=.En origin=null arg1: GET_ENUM 'ENUM_ENTRY name:C' type=.En then: BLOCK type=kotlin.Unit origin=null VAR name:y type:kotlin.Any [val] @@ -110,27 +110,27 @@ FILE fqName: fileName:/whenSmartCastToEnum.kt WHEN type=kotlin.Unit origin=IF BRANCH if: TYPE_OP type=kotlin.Boolean origin=INSTANCEOF typeOperand=.En - GET_VAR 'val y: kotlin.Any [val] declared in .test' type=kotlin.Any origin=null + GET_VAR 'val y: kotlin.Any declared in .test' type=kotlin.Any origin=null then: BLOCK type=kotlin.Unit origin=null BLOCK type=kotlin.Unit origin=WHEN VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:.En [val] TYPE_OP type=.En origin=IMPLICIT_CAST typeOperand=.En - GET_VAR 'val y: kotlin.Any [val] declared in .test' type=kotlin.Any origin=null + GET_VAR 'val y: kotlin.Any declared in .test' type=kotlin.Any origin=null WHEN type=kotlin.Unit origin=WHEN BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_1: .En [val] declared in .test' type=.En origin=null + arg0: GET_VAR 'val tmp_1: .En declared in .test' type=.En origin=null arg1: GET_ENUM 'ENUM_ENTRY name:A' type=.En then: BLOCK type=kotlin.Unit origin=null - SET_VAR 'var r: kotlin.String [var] declared in .test' type=kotlin.Unit origin=EQ + SET_VAR 'var r: kotlin.String declared in .test' type=kotlin.Unit origin=EQ CONST String type=kotlin.String value="when2" BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_1: .En [val] declared in .test' type=.En origin=null + arg0: GET_VAR 'val tmp_1: .En declared in .test' type=.En origin=null arg1: GET_ENUM 'ENUM_ENTRY name:B' type=.En then: BLOCK type=kotlin.Unit origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_1: .En [val] declared in .test' type=.En origin=null + arg0: GET_VAR 'val tmp_1: .En declared in .test' type=.En origin=null arg1: GET_ENUM 'ENUM_ENTRY name:C' type=.En then: BLOCK type=kotlin.Unit origin=null diff --git a/compiler/testData/ir/irText/expressions/whenUnusedExpression.fir.ir.txt b/compiler/testData/ir/irText/expressions/whenUnusedExpression.fir.ir.txt index e8ff3ebd3cc..a09e200f0c9 100644 --- a/compiler/testData/ir/irText/expressions/whenUnusedExpression.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/whenUnusedExpression.fir.ir.txt @@ -13,7 +13,7 @@ FILE fqName: fileName:/whenUnusedExpression.kt WHEN type=kotlin.Int? origin=WHEN BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_0: kotlin.Int [val] declared in .test' type=kotlin.Int origin=null + arg0: GET_VAR 'val tmp_0: kotlin.Int declared in .test' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=0 then: CONST Int type=kotlin.Int value=1 BRANCH diff --git a/compiler/testData/ir/irText/expressions/whenUnusedExpression.ir.txt b/compiler/testData/ir/irText/expressions/whenUnusedExpression.ir.txt index 6aa20ace895..069b709d745 100644 --- a/compiler/testData/ir/irText/expressions/whenUnusedExpression.ir.txt +++ b/compiler/testData/ir/irText/expressions/whenUnusedExpression.ir.txt @@ -13,7 +13,7 @@ FILE fqName: fileName:/whenUnusedExpression.kt WHEN type=kotlin.Unit origin=WHEN BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_0: kotlin.Int [val] declared in .test' type=kotlin.Int origin=null + arg0: GET_VAR 'val tmp_0: kotlin.Int declared in .test' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=0 then: TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit CONST Int type=kotlin.Int value=1 diff --git a/compiler/testData/ir/irText/expressions/whenWithSubjectVariable.fir.ir.txt b/compiler/testData/ir/irText/expressions/whenWithSubjectVariable.fir.ir.txt index 6fd0497e214..128f051f08d 100644 --- a/compiler/testData/ir/irText/expressions/whenWithSubjectVariable.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/whenWithSubjectVariable.fir.ir.txt @@ -12,35 +12,35 @@ FILE fqName: fileName:/whenWithSubjectVariable.kt WHEN type=kotlin.Int origin=WHEN BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val y: kotlin.Any [val] declared in .test' type=kotlin.Any origin=null + arg0: GET_VAR 'val y: kotlin.Any declared in .test' type=kotlin.Any origin=null arg1: CONST Int type=kotlin.Int value=42 then: CONST Int type=kotlin.Int value=1 BRANCH if: TYPE_OP type=kotlin.Boolean origin=INSTANCEOF typeOperand=kotlin.String - GET_VAR 'val y: kotlin.Any [val] declared in .test' type=kotlin.Any origin=null + GET_VAR 'val y: kotlin.Any declared in .test' type=kotlin.Any origin=null then: CALL 'public open fun (): kotlin.Int declared in kotlin.String' type=kotlin.Int origin=GET_PROPERTY $this: TYPE_OP type=kotlin.String origin=IMPLICIT_CAST typeOperand=kotlin.String - GET_VAR 'val y: kotlin.Any [val] declared in .test' type=kotlin.Any origin=null + GET_VAR 'val y: kotlin.Any declared in .test' type=kotlin.Any origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=kotlin.Int - GET_VAR 'val y: kotlin.Any [val] declared in .test' type=kotlin.Any origin=null + GET_VAR 'val y: kotlin.Any declared in .test' type=kotlin.Any origin=null then: CONST Int type=kotlin.Int value=2 BRANCH - if: CALL 'public open fun contains (value: kotlin.Int): kotlin.Boolean [operator] declared in kotlin.ranges.IntRange' type=kotlin.Boolean origin=IN - $this: CALL 'public final fun rangeTo (other: kotlin.Int): kotlin.ranges.IntRange [operator] declared in kotlin.Int' type=kotlin.ranges.IntRange origin=RANGE + if: CALL 'public open fun contains (value: kotlin.Int): kotlin.Boolean declared in kotlin.ranges.IntRange' type=kotlin.Boolean origin=IN + $this: CALL 'public final fun rangeTo (other: kotlin.Int): kotlin.ranges.IntRange declared in kotlin.Int' type=kotlin.ranges.IntRange origin=RANGE $this: CONST Int type=kotlin.Int value=0 other: CONST Int type=kotlin.Int value=10 value: TYPE_OP type=kotlin.Int origin=IMPLICIT_CAST typeOperand=kotlin.Int - GET_VAR 'val y: kotlin.Any [val] declared in .test' type=kotlin.Any origin=null + GET_VAR 'val y: kotlin.Any declared in .test' type=kotlin.Any origin=null then: CONST Int type=kotlin.Int value=3 BRANCH - if: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=null - $this: CALL 'public open fun contains (value: kotlin.Int): kotlin.Boolean [operator] declared in kotlin.ranges.IntRange' type=kotlin.Boolean origin=IN - $this: CALL 'public final fun rangeTo (other: kotlin.Int): kotlin.ranges.IntRange [operator] declared in kotlin.Int' type=kotlin.ranges.IntRange origin=RANGE + if: CALL 'public final fun not (): kotlin.Boolean declared in kotlin.Boolean' type=kotlin.Boolean origin=null + $this: CALL 'public open fun contains (value: kotlin.Int): kotlin.Boolean declared in kotlin.ranges.IntRange' type=kotlin.Boolean origin=IN + $this: CALL 'public final fun rangeTo (other: kotlin.Int): kotlin.ranges.IntRange declared in kotlin.Int' type=kotlin.ranges.IntRange origin=RANGE $this: CONST Int type=kotlin.Int value=10 other: CONST Int type=kotlin.Int value=20 value: TYPE_OP type=kotlin.Int origin=IMPLICIT_CAST typeOperand=kotlin.Int - GET_VAR 'val y: kotlin.Any [val] declared in .test' type=kotlin.Any origin=null + GET_VAR 'val y: kotlin.Any declared in .test' type=kotlin.Any origin=null then: CONST Int type=kotlin.Int value=4 BRANCH if: CONST Boolean type=kotlin.Boolean value=true diff --git a/compiler/testData/ir/irText/expressions/whenWithSubjectVariable.ir.txt b/compiler/testData/ir/irText/expressions/whenWithSubjectVariable.ir.txt index 7108bfa3eaa..1ff4d885abc 100644 --- a/compiler/testData/ir/irText/expressions/whenWithSubjectVariable.ir.txt +++ b/compiler/testData/ir/irText/expressions/whenWithSubjectVariable.ir.txt @@ -12,36 +12,36 @@ FILE fqName: fileName:/whenWithSubjectVariable.kt WHEN type=kotlin.Int origin=WHEN BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val y: kotlin.Any [val] declared in .test' type=kotlin.Any origin=null + arg0: GET_VAR 'val y: kotlin.Any declared in .test' type=kotlin.Any origin=null arg1: CONST Int type=kotlin.Int value=42 then: CONST Int type=kotlin.Int value=1 BRANCH if: TYPE_OP type=kotlin.Boolean origin=INSTANCEOF typeOperand=kotlin.String - GET_VAR 'val y: kotlin.Any [val] declared in .test' type=kotlin.Any origin=null + GET_VAR 'val y: kotlin.Any declared in .test' type=kotlin.Any origin=null then: CALL 'public open fun (): kotlin.Int declared in kotlin.String' type=kotlin.Int origin=GET_PROPERTY $this: TYPE_OP type=kotlin.String origin=IMPLICIT_CAST typeOperand=kotlin.String - GET_VAR 'val y: kotlin.Any [val] declared in .test' type=kotlin.Any origin=null + GET_VAR 'val y: kotlin.Any declared in .test' type=kotlin.Any origin=null BRANCH - if: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCL + if: CALL 'public final fun not (): kotlin.Boolean declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCL $this: TYPE_OP type=kotlin.Boolean origin=INSTANCEOF typeOperand=kotlin.Int - GET_VAR 'val y: kotlin.Any [val] declared in .test' type=kotlin.Any origin=null + GET_VAR 'val y: kotlin.Any declared in .test' type=kotlin.Any origin=null then: CONST Int type=kotlin.Int value=2 BRANCH - if: CALL 'public open fun contains (value: kotlin.Int): kotlin.Boolean [operator] declared in kotlin.ranges.IntRange' type=kotlin.Boolean origin=IN - $this: CALL 'public final fun rangeTo (other: kotlin.Int): kotlin.ranges.IntRange [operator] declared in kotlin.Int' type=kotlin.ranges.IntRange origin=RANGE + if: CALL 'public open fun contains (value: kotlin.Int): kotlin.Boolean declared in kotlin.ranges.IntRange' type=kotlin.Boolean origin=IN + $this: CALL 'public final fun rangeTo (other: kotlin.Int): kotlin.ranges.IntRange declared in kotlin.Int' type=kotlin.ranges.IntRange origin=RANGE $this: CONST Int type=kotlin.Int value=0 other: CONST Int type=kotlin.Int value=10 value: TYPE_OP type=kotlin.Int origin=IMPLICIT_CAST typeOperand=kotlin.Int - GET_VAR 'val y: kotlin.Any [val] declared in .test' type=kotlin.Any origin=null + GET_VAR 'val y: kotlin.Any declared in .test' type=kotlin.Any origin=null then: CONST Int type=kotlin.Int value=3 BRANCH - if: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCL - $this: CALL 'public open fun contains (value: kotlin.Int): kotlin.Boolean [operator] declared in kotlin.ranges.IntRange' type=kotlin.Boolean origin=NOT_IN - $this: CALL 'public final fun rangeTo (other: kotlin.Int): kotlin.ranges.IntRange [operator] declared in kotlin.Int' type=kotlin.ranges.IntRange origin=RANGE + if: CALL 'public final fun not (): kotlin.Boolean declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCL + $this: CALL 'public open fun contains (value: kotlin.Int): kotlin.Boolean declared in kotlin.ranges.IntRange' type=kotlin.Boolean origin=NOT_IN + $this: CALL 'public final fun rangeTo (other: kotlin.Int): kotlin.ranges.IntRange declared in kotlin.Int' type=kotlin.ranges.IntRange origin=RANGE $this: CONST Int type=kotlin.Int value=10 other: CONST Int type=kotlin.Int value=20 value: TYPE_OP type=kotlin.Int origin=IMPLICIT_CAST typeOperand=kotlin.Int - GET_VAR 'val y: kotlin.Any [val] declared in .test' type=kotlin.Any origin=null + GET_VAR 'val y: kotlin.Any declared in .test' type=kotlin.Any origin=null then: CONST Int type=kotlin.Int value=4 BRANCH if: CONST Boolean type=kotlin.Boolean value=true diff --git a/compiler/testData/ir/irText/expressions/whileDoWhile.fir.ir.txt b/compiler/testData/ir/irText/expressions/whileDoWhile.fir.ir.txt index 2c6e5553fb2..5f9b8c16ff1 100644 --- a/compiler/testData/ir/irText/expressions/whileDoWhile.fir.ir.txt +++ b/compiler/testData/ir/irText/expressions/whileDoWhile.fir.ir.txt @@ -5,60 +5,60 @@ FILE fqName: fileName:/whileDoWhile.kt CONST Int type=kotlin.Int value=0 WHILE label=null origin=WHILE_LOOP condition: CALL 'public final fun less (arg0: kotlin.Int, arg1: kotlin.Int): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=LT - arg0: GET_VAR 'var x: kotlin.Int [var] declared in .test' type=kotlin.Int origin=null + arg0: GET_VAR 'var x: kotlin.Int declared in .test' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=0 body: BLOCK type=kotlin.Unit origin=null WHILE label=null origin=WHILE_LOOP condition: CALL 'public final fun less (arg0: kotlin.Int, arg1: kotlin.Int): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=LT - arg0: GET_VAR 'var x: kotlin.Int [var] declared in .test' type=kotlin.Int origin=null + arg0: GET_VAR 'var x: kotlin.Int declared in .test' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=5 body: BLOCK type=kotlin.Int origin=POSTFIX_INCR VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:kotlin.Int [val] - GET_VAR 'var x: kotlin.Int [var] declared in .test' type=kotlin.Int origin=null - SET_VAR 'var x: kotlin.Int [var] declared in .test' type=kotlin.Unit origin=POSTFIX_INCR - CALL 'public final fun inc (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp_0: kotlin.Int [val] declared in .test' type=kotlin.Int origin=null - GET_VAR 'val tmp_0: kotlin.Int [val] declared in .test' type=kotlin.Int origin=null + GET_VAR 'var x: kotlin.Int declared in .test' type=kotlin.Int origin=null + SET_VAR 'var x: kotlin.Int declared in .test' type=kotlin.Unit origin=POSTFIX_INCR + CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_0: kotlin.Int declared in .test' type=kotlin.Int origin=null + GET_VAR 'val tmp_0: kotlin.Int declared in .test' type=kotlin.Int origin=null WHILE label=null origin=WHILE_LOOP condition: CALL 'public final fun less (arg0: kotlin.Int, arg1: kotlin.Int): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=LT - arg0: GET_VAR 'var x: kotlin.Int [var] declared in .test' type=kotlin.Int origin=null + arg0: GET_VAR 'var x: kotlin.Int declared in .test' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=10 body: BLOCK type=kotlin.Int origin=POSTFIX_INCR VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:kotlin.Int [val] - GET_VAR 'var x: kotlin.Int [var] declared in .test' type=kotlin.Int origin=null - SET_VAR 'var x: kotlin.Int [var] declared in .test' type=kotlin.Unit origin=POSTFIX_INCR - CALL 'public final fun inc (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp_1: kotlin.Int [val] declared in .test' type=kotlin.Int origin=null - GET_VAR 'val tmp_1: kotlin.Int [val] declared in .test' type=kotlin.Int origin=null + GET_VAR 'var x: kotlin.Int declared in .test' type=kotlin.Int origin=null + SET_VAR 'var x: kotlin.Int declared in .test' type=kotlin.Unit origin=POSTFIX_INCR + CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_1: kotlin.Int declared in .test' type=kotlin.Int origin=null + GET_VAR 'val tmp_1: kotlin.Int declared in .test' type=kotlin.Int origin=null BLOCK type=kotlin.Unit origin=null DO_WHILE label=null origin=DO_WHILE_LOOP body: COMPOSITE type=kotlin.Unit origin=DO_WHILE_LOOP condition: CALL 'public final fun less (arg0: kotlin.Int, arg1: kotlin.Int): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=LT - arg0: GET_VAR 'var x: kotlin.Int [var] declared in .test' type=kotlin.Int origin=null + arg0: GET_VAR 'var x: kotlin.Int declared in .test' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=0 BLOCK type=kotlin.Unit origin=null DO_WHILE label=null origin=DO_WHILE_LOOP body: BLOCK type=kotlin.Int origin=POSTFIX_INCR VAR IR_TEMPORARY_VARIABLE name:tmp_2 type:kotlin.Int [val] - GET_VAR 'var x: kotlin.Int [var] declared in .test' type=kotlin.Int origin=null - SET_VAR 'var x: kotlin.Int [var] declared in .test' type=kotlin.Unit origin=POSTFIX_INCR - CALL 'public final fun inc (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp_2: kotlin.Int [val] declared in .test' type=kotlin.Int origin=null - GET_VAR 'val tmp_2: kotlin.Int [val] declared in .test' type=kotlin.Int origin=null + GET_VAR 'var x: kotlin.Int declared in .test' type=kotlin.Int origin=null + SET_VAR 'var x: kotlin.Int declared in .test' type=kotlin.Unit origin=POSTFIX_INCR + CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_2: kotlin.Int declared in .test' type=kotlin.Int origin=null + GET_VAR 'val tmp_2: kotlin.Int declared in .test' type=kotlin.Int origin=null condition: CALL 'public final fun less (arg0: kotlin.Int, arg1: kotlin.Int): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=LT - arg0: GET_VAR 'var x: kotlin.Int [var] declared in .test' type=kotlin.Int origin=null + arg0: GET_VAR 'var x: kotlin.Int declared in .test' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=15 BLOCK type=kotlin.Unit origin=null DO_WHILE label=null origin=DO_WHILE_LOOP body: BLOCK type=kotlin.Int origin=POSTFIX_INCR VAR IR_TEMPORARY_VARIABLE name:tmp_3 type:kotlin.Int [val] - GET_VAR 'var x: kotlin.Int [var] declared in .test' type=kotlin.Int origin=null - SET_VAR 'var x: kotlin.Int [var] declared in .test' type=kotlin.Unit origin=POSTFIX_INCR - CALL 'public final fun inc (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp_3: kotlin.Int [val] declared in .test' type=kotlin.Int origin=null - GET_VAR 'val tmp_3: kotlin.Int [val] declared in .test' type=kotlin.Int origin=null + GET_VAR 'var x: kotlin.Int declared in .test' type=kotlin.Int origin=null + SET_VAR 'var x: kotlin.Int declared in .test' type=kotlin.Unit origin=POSTFIX_INCR + CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_3: kotlin.Int declared in .test' type=kotlin.Int origin=null + GET_VAR 'val tmp_3: kotlin.Int declared in .test' type=kotlin.Int origin=null condition: CALL 'public final fun less (arg0: kotlin.Int, arg1: kotlin.Int): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=LT - arg0: GET_VAR 'var x: kotlin.Int [var] declared in .test' type=kotlin.Int origin=null + arg0: GET_VAR 'var x: kotlin.Int declared in .test' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=20 FUN name:testSmartcastInCondition visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY @@ -67,14 +67,14 @@ FILE fqName: fileName:/whileDoWhile.kt WHEN type=kotlin.Unit origin=IF BRANCH if: TYPE_OP type=kotlin.Boolean origin=INSTANCEOF typeOperand=kotlin.Boolean - GET_VAR 'val a: kotlin.Any? [val] declared in .testSmartcastInCondition' type=kotlin.Any? origin=null + GET_VAR 'val a: kotlin.Any? declared in .testSmartcastInCondition' type=kotlin.Any? origin=null then: BLOCK type=kotlin.Unit origin=null WHILE label=null origin=WHILE_LOOP condition: TYPE_OP type=kotlin.Boolean origin=IMPLICIT_CAST typeOperand=kotlin.Boolean - GET_VAR 'val a: kotlin.Any? [val] declared in .testSmartcastInCondition' type=kotlin.Any? origin=null + GET_VAR 'val a: kotlin.Any? declared in .testSmartcastInCondition' type=kotlin.Any? origin=null body: BLOCK type=kotlin.Unit origin=null BLOCK type=kotlin.Unit origin=null DO_WHILE label=null origin=DO_WHILE_LOOP body: COMPOSITE type=kotlin.Unit origin=DO_WHILE_LOOP condition: TYPE_OP type=kotlin.Boolean origin=IMPLICIT_CAST typeOperand=kotlin.Boolean - GET_VAR 'val a: kotlin.Any? [val] declared in .testSmartcastInCondition' type=kotlin.Any? origin=null + GET_VAR 'val a: kotlin.Any? declared in .testSmartcastInCondition' type=kotlin.Any? origin=null diff --git a/compiler/testData/ir/irText/expressions/whileDoWhile.ir.txt b/compiler/testData/ir/irText/expressions/whileDoWhile.ir.txt index ca8403c3220..d0e0be57268 100644 --- a/compiler/testData/ir/irText/expressions/whileDoWhile.ir.txt +++ b/compiler/testData/ir/irText/expressions/whileDoWhile.ir.txt @@ -5,50 +5,50 @@ FILE fqName: fileName:/whileDoWhile.kt CONST Int type=kotlin.Int value=0 WHILE label=null origin=WHILE_LOOP condition: CALL 'public final fun less (arg0: kotlin.Int, arg1: kotlin.Int): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=LT - arg0: GET_VAR 'var x: kotlin.Int [var] declared in .test' type=kotlin.Int origin=null + arg0: GET_VAR 'var x: kotlin.Int declared in .test' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=0 WHILE label=null origin=WHILE_LOOP condition: CALL 'public final fun less (arg0: kotlin.Int, arg1: kotlin.Int): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=LT - arg0: GET_VAR 'var x: kotlin.Int [var] declared in .test' type=kotlin.Int origin=null + arg0: GET_VAR 'var x: kotlin.Int declared in .test' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=5 body: TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit BLOCK type=kotlin.Int origin=POSTFIX_INCR VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:kotlin.Int [val] - GET_VAR 'var x: kotlin.Int [var] declared in .test' type=kotlin.Int origin=POSTFIX_INCR - SET_VAR 'var x: kotlin.Int [var] declared in .test' type=kotlin.Unit origin=POSTFIX_INCR - CALL 'public final fun inc (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_INCR - $this: GET_VAR 'val tmp_0: kotlin.Int [val] declared in .test' type=kotlin.Int origin=null - GET_VAR 'val tmp_0: kotlin.Int [val] declared in .test' type=kotlin.Int origin=null + GET_VAR 'var x: kotlin.Int declared in .test' type=kotlin.Int origin=POSTFIX_INCR + SET_VAR 'var x: kotlin.Int declared in .test' type=kotlin.Unit origin=POSTFIX_INCR + CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_INCR + $this: GET_VAR 'val tmp_0: kotlin.Int declared in .test' type=kotlin.Int origin=null + GET_VAR 'val tmp_0: kotlin.Int declared in .test' type=kotlin.Int origin=null WHILE label=null origin=WHILE_LOOP condition: CALL 'public final fun less (arg0: kotlin.Int, arg1: kotlin.Int): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=LT - arg0: GET_VAR 'var x: kotlin.Int [var] declared in .test' type=kotlin.Int origin=null + arg0: GET_VAR 'var x: kotlin.Int declared in .test' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=10 body: BLOCK type=kotlin.Unit origin=null TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit BLOCK type=kotlin.Int origin=POSTFIX_INCR VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:kotlin.Int [val] - GET_VAR 'var x: kotlin.Int [var] declared in .test' type=kotlin.Int origin=POSTFIX_INCR - SET_VAR 'var x: kotlin.Int [var] declared in .test' type=kotlin.Unit origin=POSTFIX_INCR - CALL 'public final fun inc (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_INCR - $this: GET_VAR 'val tmp_1: kotlin.Int [val] declared in .test' type=kotlin.Int origin=null - GET_VAR 'val tmp_1: kotlin.Int [val] declared in .test' type=kotlin.Int origin=null + GET_VAR 'var x: kotlin.Int declared in .test' type=kotlin.Int origin=POSTFIX_INCR + SET_VAR 'var x: kotlin.Int declared in .test' type=kotlin.Unit origin=POSTFIX_INCR + CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_INCR + $this: GET_VAR 'val tmp_1: kotlin.Int declared in .test' type=kotlin.Int origin=null + GET_VAR 'val tmp_1: kotlin.Int declared in .test' type=kotlin.Int origin=null BLOCK type=kotlin.Unit origin=null DO_WHILE label=null origin=DO_WHILE_LOOP condition: CALL 'public final fun less (arg0: kotlin.Int, arg1: kotlin.Int): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=LT - arg0: GET_VAR 'var x: kotlin.Int [var] declared in .test' type=kotlin.Int origin=null + arg0: GET_VAR 'var x: kotlin.Int declared in .test' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=0 BLOCK type=kotlin.Unit origin=null DO_WHILE label=null origin=DO_WHILE_LOOP body: TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit BLOCK type=kotlin.Int origin=POSTFIX_INCR VAR IR_TEMPORARY_VARIABLE name:tmp_2 type:kotlin.Int [val] - GET_VAR 'var x: kotlin.Int [var] declared in .test' type=kotlin.Int origin=POSTFIX_INCR - SET_VAR 'var x: kotlin.Int [var] declared in .test' type=kotlin.Unit origin=POSTFIX_INCR - CALL 'public final fun inc (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_INCR - $this: GET_VAR 'val tmp_2: kotlin.Int [val] declared in .test' type=kotlin.Int origin=null - GET_VAR 'val tmp_2: kotlin.Int [val] declared in .test' type=kotlin.Int origin=null + GET_VAR 'var x: kotlin.Int declared in .test' type=kotlin.Int origin=POSTFIX_INCR + SET_VAR 'var x: kotlin.Int declared in .test' type=kotlin.Unit origin=POSTFIX_INCR + CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_INCR + $this: GET_VAR 'val tmp_2: kotlin.Int declared in .test' type=kotlin.Int origin=null + GET_VAR 'val tmp_2: kotlin.Int declared in .test' type=kotlin.Int origin=null condition: CALL 'public final fun less (arg0: kotlin.Int, arg1: kotlin.Int): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=LT - arg0: GET_VAR 'var x: kotlin.Int [var] declared in .test' type=kotlin.Int origin=null + arg0: GET_VAR 'var x: kotlin.Int declared in .test' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=15 BLOCK type=kotlin.Unit origin=null DO_WHILE label=null origin=DO_WHILE_LOOP @@ -56,13 +56,13 @@ FILE fqName: fileName:/whileDoWhile.kt TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit BLOCK type=kotlin.Int origin=POSTFIX_INCR VAR IR_TEMPORARY_VARIABLE name:tmp_3 type:kotlin.Int [val] - GET_VAR 'var x: kotlin.Int [var] declared in .test' type=kotlin.Int origin=POSTFIX_INCR - SET_VAR 'var x: kotlin.Int [var] declared in .test' type=kotlin.Unit origin=POSTFIX_INCR - CALL 'public final fun inc (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_INCR - $this: GET_VAR 'val tmp_3: kotlin.Int [val] declared in .test' type=kotlin.Int origin=null - GET_VAR 'val tmp_3: kotlin.Int [val] declared in .test' type=kotlin.Int origin=null + GET_VAR 'var x: kotlin.Int declared in .test' type=kotlin.Int origin=POSTFIX_INCR + SET_VAR 'var x: kotlin.Int declared in .test' type=kotlin.Unit origin=POSTFIX_INCR + CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_INCR + $this: GET_VAR 'val tmp_3: kotlin.Int declared in .test' type=kotlin.Int origin=null + GET_VAR 'val tmp_3: kotlin.Int declared in .test' type=kotlin.Int origin=null condition: CALL 'public final fun less (arg0: kotlin.Int, arg1: kotlin.Int): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=LT - arg0: GET_VAR 'var x: kotlin.Int [var] declared in .test' type=kotlin.Int origin=null + arg0: GET_VAR 'var x: kotlin.Int declared in .test' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=20 FUN name:testSmartcastInCondition visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY @@ -71,14 +71,14 @@ FILE fqName: fileName:/whileDoWhile.kt WHEN type=kotlin.Unit origin=IF BRANCH if: TYPE_OP type=kotlin.Boolean origin=INSTANCEOF typeOperand=kotlin.Boolean - GET_VAR 'val a: kotlin.Any? [val] declared in .testSmartcastInCondition' type=kotlin.Any? origin=null + GET_VAR 'val a: kotlin.Any? declared in .testSmartcastInCondition' type=kotlin.Any? origin=null then: BLOCK type=kotlin.Unit origin=null WHILE label=null origin=WHILE_LOOP condition: TYPE_OP type=kotlin.Boolean origin=IMPLICIT_CAST typeOperand=kotlin.Boolean - GET_VAR 'val a: kotlin.Any? [val] declared in .testSmartcastInCondition' type=kotlin.Any? origin=null + GET_VAR 'val a: kotlin.Any? declared in .testSmartcastInCondition' type=kotlin.Any? origin=null body: BLOCK type=kotlin.Unit origin=null BLOCK type=kotlin.Unit origin=null DO_WHILE label=null origin=DO_WHILE_LOOP body: COMPOSITE type=kotlin.Unit origin=null condition: TYPE_OP type=kotlin.Boolean origin=IMPLICIT_CAST typeOperand=kotlin.Boolean - GET_VAR 'val a: kotlin.Any? [val] declared in .testSmartcastInCondition' type=kotlin.Any? origin=null + GET_VAR 'val a: kotlin.Any? declared in .testSmartcastInCondition' type=kotlin.Any? origin=null diff --git a/compiler/testData/ir/irText/firProblems/AbstractMutableMap.fir.ir.txt b/compiler/testData/ir/irText/firProblems/AbstractMutableMap.fir.ir.txt index 3a414576ab7..387c9a4cfe2 100644 --- a/compiler/testData/ir/irText/firProblems/AbstractMutableMap.fir.ir.txt +++ b/compiler/testData/ir/irText/firProblems/AbstractMutableMap.fir.ir.txt @@ -5,7 +5,7 @@ FILE fqName: fileName:/AbstractMutableMap.kt TYPE_PARAMETER name:V index:1 variance: superTypes:[kotlin.Any] reified:false CONSTRUCTOR visibility:public <> () returnType:.MyMap.MyMap, V of .MyMap> [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'protected constructor () [primary] declared in kotlin.collections.AbstractMutableMap' + DELEGATING_CONSTRUCTOR_CALL 'protected constructor () declared in kotlin.collections.AbstractMutableMap' : K of .MyMap : V of .MyMap INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:MyMap modality:FINAL visibility:public superTypes:[kotlin.collections.AbstractMutableMap.MyMap, V of .MyMap>]' @@ -20,28 +20,28 @@ FILE fqName: fileName:/AbstractMutableMap.kt CONST Null type=kotlin.Nothing? value=null PROPERTY name:entries visibility:public modality:OPEN [val] overridden: - public abstract entries: @[FlexibleNullability] @[FlexibleMutability] kotlin.collections.MutableSet<@[FlexibleNullability] @[FlexibleMutability] kotlin.collections.MutableMap.MutableEntry<@[FlexibleNullability] K of kotlin.collections.AbstractMutableMap?, @[FlexibleNullability] V of kotlin.collections.AbstractMutableMap?>?>? [fake_override,val] + public abstract entries: @[FlexibleNullability] @[FlexibleMutability] kotlin.collections.MutableSet<@[FlexibleNullability] @[FlexibleMutability] kotlin.collections.MutableMap.MutableEntry<@[FlexibleNullability] K of kotlin.collections.AbstractMutableMap?, @[FlexibleNullability] V of kotlin.collections.AbstractMutableMap?>?>? FUN name: visibility:public modality:OPEN <> ($this:.MyMap.MyMap, V of .MyMap>) returnType:kotlin.collections.MutableSet.MyMap, V of .MyMap>> correspondingProperty: PROPERTY name:entries visibility:public modality:OPEN [val] overridden: - public abstract fun (): @[FlexibleNullability] @[FlexibleMutability] kotlin.collections.MutableSet<@[FlexibleNullability] @[FlexibleMutability] kotlin.collections.MutableMap.MutableEntry<@[FlexibleNullability] K of kotlin.collections.AbstractMutableMap?, @[FlexibleNullability] V of kotlin.collections.AbstractMutableMap?>?>? [fake_override] declared in kotlin.collections.AbstractMutableMap + public abstract fun (): @[FlexibleNullability] @[FlexibleMutability] kotlin.collections.MutableSet<@[FlexibleNullability] @[FlexibleMutability] kotlin.collections.MutableMap.MutableEntry<@[FlexibleNullability] K of kotlin.collections.AbstractMutableMap?, @[FlexibleNullability] V of kotlin.collections.AbstractMutableMap?>?>? declared in kotlin.collections.AbstractMutableMap $this: VALUE_PARAMETER name: type:.MyMap.MyMap, V of .MyMap> BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun (): kotlin.collections.MutableSet.MyMap, V of .MyMap>> declared in .MyMap' - CALL 'public final fun mutableSetOf (): kotlin.collections.MutableSet [inline] declared in kotlin.collections.SetsKt' type=kotlin.collections.MutableSet.MyMap, V of .MyMap>> origin=null + CALL 'public final fun mutableSetOf (): kotlin.collections.MutableSet declared in kotlin.collections.SetsKt' type=kotlin.collections.MutableSet.MyMap, V of .MyMap>> origin=null : kotlin.collections.MutableMap.MutableEntry.MyMap, V of .MyMap> FUN FAKE_OVERRIDE name:clear visibility:public modality:OPEN <> ($this:java.util.AbstractMap) returnType:kotlin.Unit [fake_override] overridden: - public open fun clear (): kotlin.Unit [fake_override] declared in kotlin.collections.AbstractMutableMap + public open fun clear (): kotlin.Unit declared in kotlin.collections.AbstractMutableMap $this: VALUE_PARAMETER name: type:java.util.AbstractMap FUN FAKE_OVERRIDE name:putAll visibility:public modality:OPEN <> ($this:java.util.AbstractMap, p0:@[EnhancedNullability] kotlin.collections.Map.MyMap?, @[FlexibleNullability] V of .MyMap?>) returnType:kotlin.Unit [fake_override] overridden: - public open fun putAll (p0: @[EnhancedNullability] kotlin.collections.Map): kotlin.Unit [fake_override] declared in kotlin.collections.AbstractMutableMap + public open fun putAll (p0: @[EnhancedNullability] kotlin.collections.Map): kotlin.Unit declared in kotlin.collections.AbstractMutableMap $this: VALUE_PARAMETER name: type:java.util.AbstractMap VALUE_PARAMETER name:p0 index:0 type:@[EnhancedNullability] kotlin.collections.Map.MyMap?, @[FlexibleNullability] V of .MyMap?> FUN FAKE_OVERRIDE name:remove visibility:public modality:OPEN <> ($this:java.util.AbstractMap, p0:@[FlexibleNullability] K of .MyMap?) returnType:V of .MyMap? [fake_override] overridden: - public open fun remove (p0: @[FlexibleNullability] K of kotlin.collections.AbstractMutableMap?): V of kotlin.collections.AbstractMutableMap? [fake_override] declared in kotlin.collections.AbstractMutableMap + public open fun remove (p0: @[FlexibleNullability] K of kotlin.collections.AbstractMutableMap?): V of kotlin.collections.AbstractMutableMap? declared in kotlin.collections.AbstractMutableMap $this: VALUE_PARAMETER name: type:java.util.AbstractMap VALUE_PARAMETER name:p0 index:0 type:@[FlexibleNullability] K of .MyMap? FUN FAKE_OVERRIDE name:remove visibility:public modality:OPEN <> ($this:kotlin.collections.MutableMap, key:K of .MyMap, value:V of .MyMap) returnType:kotlin.Boolean [fake_override] @@ -49,51 +49,51 @@ FILE fqName: fileName:/AbstractMutableMap.kt SinceKotlin(version = '1.1') PlatformDependent overridden: - public open fun remove (key: K of kotlin.collections.AbstractMutableMap, value: V of kotlin.collections.AbstractMutableMap): kotlin.Boolean [fake_override] declared in kotlin.collections.AbstractMutableMap + public open fun remove (key: K of kotlin.collections.AbstractMutableMap, value: V of kotlin.collections.AbstractMutableMap): kotlin.Boolean declared in kotlin.collections.AbstractMutableMap $this: VALUE_PARAMETER name: type:kotlin.collections.MutableMap VALUE_PARAMETER name:key index:0 type:K of .MyMap VALUE_PARAMETER name:value index:1 type:V of .MyMap PROPERTY FAKE_OVERRIDE name:keys visibility:public modality:OPEN [fake_override,val] overridden: - public open keys: @[FlexibleNullability] @[FlexibleMutability] kotlin.collections.MutableSet<@[FlexibleNullability] K of kotlin.collections.AbstractMutableMap?>? [fake_override,val] + public open keys: @[FlexibleNullability] @[FlexibleMutability] kotlin.collections.MutableSet<@[FlexibleNullability] K of kotlin.collections.AbstractMutableMap?>? FUN FAKE_OVERRIDE name: visibility:public modality:OPEN <> ($this:java.util.AbstractMap) returnType:@[FlexibleNullability] @[FlexibleMutability] kotlin.collections.MutableSet<@[FlexibleNullability] K of .MyMap?>? [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:keys visibility:public modality:OPEN [fake_override,val] overridden: - public open fun (): @[FlexibleNullability] @[FlexibleMutability] kotlin.collections.MutableSet<@[FlexibleNullability] K of kotlin.collections.AbstractMutableMap?>? [fake_override] declared in kotlin.collections.AbstractMutableMap + public open fun (): @[FlexibleNullability] @[FlexibleMutability] kotlin.collections.MutableSet<@[FlexibleNullability] K of kotlin.collections.AbstractMutableMap?>? declared in kotlin.collections.AbstractMutableMap $this: VALUE_PARAMETER name: type:java.util.AbstractMap PROPERTY FAKE_OVERRIDE name:values visibility:public modality:OPEN [fake_override,val] overridden: - public open values: @[FlexibleNullability] @[FlexibleMutability] kotlin.collections.MutableCollection<@[FlexibleNullability] V of kotlin.collections.AbstractMutableMap?>? [fake_override,val] + public open values: @[FlexibleNullability] @[FlexibleMutability] kotlin.collections.MutableCollection<@[FlexibleNullability] V of kotlin.collections.AbstractMutableMap?>? FUN FAKE_OVERRIDE name: visibility:public modality:OPEN <> ($this:java.util.AbstractMap) returnType:@[FlexibleNullability] @[FlexibleMutability] kotlin.collections.MutableCollection<@[FlexibleNullability] V of .MyMap?>? [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:values visibility:public modality:OPEN [fake_override,val] overridden: - public open fun (): @[FlexibleNullability] @[FlexibleMutability] kotlin.collections.MutableCollection<@[FlexibleNullability] V of kotlin.collections.AbstractMutableMap?>? [fake_override] declared in kotlin.collections.AbstractMutableMap + public open fun (): @[FlexibleNullability] @[FlexibleMutability] kotlin.collections.MutableCollection<@[FlexibleNullability] V of kotlin.collections.AbstractMutableMap?>? declared in kotlin.collections.AbstractMutableMap $this: VALUE_PARAMETER name: type:java.util.AbstractMap PROPERTY FAKE_OVERRIDE name:size visibility:public modality:OPEN [fake_override,val] overridden: - public open size: kotlin.Int [fake_override,val] + public open size: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:OPEN <> ($this:java.util.AbstractMap) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:size visibility:public modality:OPEN [fake_override,val] overridden: - public open fun (): kotlin.Int [fake_override] declared in kotlin.collections.AbstractMutableMap + public open fun (): kotlin.Int declared in kotlin.collections.AbstractMutableMap $this: VALUE_PARAMETER name: type:java.util.AbstractMap FUN FAKE_OVERRIDE name:isEmpty visibility:public modality:OPEN <> ($this:java.util.AbstractMap) returnType:kotlin.Boolean [fake_override] overridden: - public open fun isEmpty (): kotlin.Boolean [fake_override] declared in kotlin.collections.AbstractMutableMap + public open fun isEmpty (): kotlin.Boolean declared in kotlin.collections.AbstractMutableMap $this: VALUE_PARAMETER name: type:java.util.AbstractMap FUN FAKE_OVERRIDE name:containsKey visibility:public modality:OPEN <> ($this:java.util.AbstractMap, p0:@[FlexibleNullability] K of .MyMap?) returnType:kotlin.Boolean [fake_override] overridden: - public open fun containsKey (p0: @[FlexibleNullability] K of kotlin.collections.AbstractMutableMap?): kotlin.Boolean [fake_override] declared in kotlin.collections.AbstractMutableMap + public open fun containsKey (p0: @[FlexibleNullability] K of kotlin.collections.AbstractMutableMap?): kotlin.Boolean declared in kotlin.collections.AbstractMutableMap $this: VALUE_PARAMETER name: type:java.util.AbstractMap VALUE_PARAMETER name:p0 index:0 type:@[FlexibleNullability] K of .MyMap? FUN FAKE_OVERRIDE name:containsValue visibility:public modality:OPEN <> ($this:java.util.AbstractMap, p0:@[FlexibleNullability] V of .MyMap?) returnType:kotlin.Boolean [fake_override] overridden: - public open fun containsValue (p0: @[FlexibleNullability] V of kotlin.collections.AbstractMutableMap?): kotlin.Boolean [fake_override] declared in kotlin.collections.AbstractMutableMap + public open fun containsValue (p0: @[FlexibleNullability] V of kotlin.collections.AbstractMutableMap?): kotlin.Boolean declared in kotlin.collections.AbstractMutableMap $this: VALUE_PARAMETER name: type:java.util.AbstractMap VALUE_PARAMETER name:p0 index:0 type:@[FlexibleNullability] V of .MyMap? FUN FAKE_OVERRIDE name:get visibility:public modality:OPEN <> ($this:java.util.AbstractMap, p0:@[FlexibleNullability] K of .MyMap?) returnType:V of .MyMap? [fake_override,operator] overridden: - public open fun get (p0: @[FlexibleNullability] K of kotlin.collections.AbstractMutableMap?): V of kotlin.collections.AbstractMutableMap? [fake_override,operator] declared in kotlin.collections.AbstractMutableMap + public open fun get (p0: @[FlexibleNullability] K of kotlin.collections.AbstractMutableMap?): V of kotlin.collections.AbstractMutableMap? declared in kotlin.collections.AbstractMutableMap $this: VALUE_PARAMETER name: type:java.util.AbstractMap VALUE_PARAMETER name:p0 index:0 type:@[FlexibleNullability] K of .MyMap? FUN FAKE_OVERRIDE name:getOrDefault visibility:public modality:OPEN <> ($this:kotlin.collections.Map, key:K of .MyMap, defaultValue:V of .MyMap) returnType:V of .MyMap [fake_override] @@ -101,78 +101,78 @@ FILE fqName: fileName:/AbstractMutableMap.kt SinceKotlin(version = '1.1') PlatformDependent overridden: - public open fun getOrDefault (key: K of kotlin.collections.AbstractMutableMap, defaultValue: V of kotlin.collections.AbstractMutableMap): V of kotlin.collections.AbstractMutableMap [fake_override] declared in kotlin.collections.AbstractMutableMap + public open fun getOrDefault (key: K of kotlin.collections.AbstractMutableMap, defaultValue: V of kotlin.collections.AbstractMutableMap): V of kotlin.collections.AbstractMutableMap declared in kotlin.collections.AbstractMutableMap $this: VALUE_PARAMETER name: type:kotlin.collections.Map VALUE_PARAMETER name:key index:0 type:K of .MyMap VALUE_PARAMETER name:defaultValue index:1 type:V of .MyMap FUN FAKE_OVERRIDE name:forEach visibility:public modality:OPEN <> ($this:kotlin.collections.Map, p0:@[EnhancedNullability] java.util.function.BiConsumer.MyMap, in @[EnhancedNullability] V of .MyMap>) returnType:kotlin.Unit [fake_override] overridden: - public open fun forEach (p0: @[EnhancedNullability] java.util.function.BiConsumer): kotlin.Unit [fake_override] declared in kotlin.collections.AbstractMutableMap + public open fun forEach (p0: @[EnhancedNullability] java.util.function.BiConsumer): kotlin.Unit declared in kotlin.collections.AbstractMutableMap $this: VALUE_PARAMETER name: type:kotlin.collections.Map VALUE_PARAMETER name:p0 index:0 type:@[EnhancedNullability] java.util.function.BiConsumer.MyMap, in @[EnhancedNullability] V of .MyMap> FUN FAKE_OVERRIDE name:replaceAll visibility:public modality:OPEN <> ($this:kotlin.collections.MutableMap, p0:@[EnhancedNullability] java.util.function.BiFunction.MyMap, in @[EnhancedNullability] V of .MyMap, out @[EnhancedNullability] V of .MyMap>) returnType:kotlin.Unit [fake_override] overridden: - public open fun replaceAll (p0: @[EnhancedNullability] java.util.function.BiFunction): kotlin.Unit [fake_override] declared in kotlin.collections.AbstractMutableMap + public open fun replaceAll (p0: @[EnhancedNullability] java.util.function.BiFunction): kotlin.Unit declared in kotlin.collections.AbstractMutableMap $this: VALUE_PARAMETER name: type:kotlin.collections.MutableMap VALUE_PARAMETER name:p0 index:0 type:@[EnhancedNullability] java.util.function.BiFunction.MyMap, in @[EnhancedNullability] V of .MyMap, out @[EnhancedNullability] V of .MyMap> FUN FAKE_OVERRIDE name:putIfAbsent visibility:public modality:OPEN <> ($this:kotlin.collections.MutableMap, p0:@[EnhancedNullability] K of .MyMap, p1:@[EnhancedNullability] V of .MyMap) returnType:V of .MyMap? [fake_override] overridden: - public open fun putIfAbsent (p0: @[EnhancedNullability] K of kotlin.collections.AbstractMutableMap, p1: @[EnhancedNullability] V of kotlin.collections.AbstractMutableMap): V of kotlin.collections.AbstractMutableMap? [fake_override] declared in kotlin.collections.AbstractMutableMap + public open fun putIfAbsent (p0: @[EnhancedNullability] K of kotlin.collections.AbstractMutableMap, p1: @[EnhancedNullability] V of kotlin.collections.AbstractMutableMap): V of kotlin.collections.AbstractMutableMap? declared in kotlin.collections.AbstractMutableMap $this: VALUE_PARAMETER name: type:kotlin.collections.MutableMap VALUE_PARAMETER name:p0 index:0 type:@[EnhancedNullability] K of .MyMap VALUE_PARAMETER name:p1 index:1 type:@[EnhancedNullability] V of .MyMap FUN FAKE_OVERRIDE name:replace visibility:public modality:OPEN <> ($this:kotlin.collections.MutableMap, p0:@[EnhancedNullability] K of .MyMap, p1:@[EnhancedNullability] V of .MyMap, p2:@[EnhancedNullability] V of .MyMap) returnType:kotlin.Boolean [fake_override] overridden: - public open fun replace (p0: @[EnhancedNullability] K of kotlin.collections.AbstractMutableMap, p1: @[EnhancedNullability] V of kotlin.collections.AbstractMutableMap, p2: @[EnhancedNullability] V of kotlin.collections.AbstractMutableMap): kotlin.Boolean [fake_override] declared in kotlin.collections.AbstractMutableMap + public open fun replace (p0: @[EnhancedNullability] K of kotlin.collections.AbstractMutableMap, p1: @[EnhancedNullability] V of kotlin.collections.AbstractMutableMap, p2: @[EnhancedNullability] V of kotlin.collections.AbstractMutableMap): kotlin.Boolean declared in kotlin.collections.AbstractMutableMap $this: VALUE_PARAMETER name: type:kotlin.collections.MutableMap VALUE_PARAMETER name:p0 index:0 type:@[EnhancedNullability] K of .MyMap VALUE_PARAMETER name:p1 index:1 type:@[EnhancedNullability] V of .MyMap VALUE_PARAMETER name:p2 index:2 type:@[EnhancedNullability] V of .MyMap FUN FAKE_OVERRIDE name:replace visibility:public modality:OPEN <> ($this:kotlin.collections.MutableMap, p0:@[EnhancedNullability] K of .MyMap, p1:@[EnhancedNullability] V of .MyMap) returnType:V of .MyMap? [fake_override] overridden: - public open fun replace (p0: @[EnhancedNullability] K of kotlin.collections.AbstractMutableMap, p1: @[EnhancedNullability] V of kotlin.collections.AbstractMutableMap): V of kotlin.collections.AbstractMutableMap? [fake_override] declared in kotlin.collections.AbstractMutableMap + public open fun replace (p0: @[EnhancedNullability] K of kotlin.collections.AbstractMutableMap, p1: @[EnhancedNullability] V of kotlin.collections.AbstractMutableMap): V of kotlin.collections.AbstractMutableMap? declared in kotlin.collections.AbstractMutableMap $this: VALUE_PARAMETER name: type:kotlin.collections.MutableMap VALUE_PARAMETER name:p0 index:0 type:@[EnhancedNullability] K of .MyMap VALUE_PARAMETER name:p1 index:1 type:@[EnhancedNullability] V of .MyMap FUN FAKE_OVERRIDE name:computeIfAbsent visibility:public modality:OPEN <> ($this:kotlin.collections.MutableMap, p0:@[EnhancedNullability] K of .MyMap, p1:@[EnhancedNullability] java.util.function.Function.MyMap, out @[EnhancedNullability] V of .MyMap>) returnType:@[EnhancedNullability] V of .MyMap [fake_override] overridden: - public open fun computeIfAbsent (p0: @[EnhancedNullability] K of kotlin.collections.AbstractMutableMap, p1: @[EnhancedNullability] java.util.function.Function): @[EnhancedNullability] V of kotlin.collections.AbstractMutableMap [fake_override] declared in kotlin.collections.AbstractMutableMap + public open fun computeIfAbsent (p0: @[EnhancedNullability] K of kotlin.collections.AbstractMutableMap, p1: @[EnhancedNullability] java.util.function.Function): @[EnhancedNullability] V of kotlin.collections.AbstractMutableMap declared in kotlin.collections.AbstractMutableMap $this: VALUE_PARAMETER name: type:kotlin.collections.MutableMap VALUE_PARAMETER name:p0 index:0 type:@[EnhancedNullability] K of .MyMap VALUE_PARAMETER name:p1 index:1 type:@[EnhancedNullability] java.util.function.Function.MyMap, out @[EnhancedNullability] V of .MyMap> FUN FAKE_OVERRIDE name:computeIfPresent visibility:public modality:OPEN <> ($this:kotlin.collections.MutableMap, p0:@[EnhancedNullability] K of .MyMap, p1:@[EnhancedNullability] java.util.function.BiFunction.MyMap, in @[EnhancedNullability] V of .MyMap, out V of .MyMap?>) returnType:V of .MyMap? [fake_override] overridden: - public open fun computeIfPresent (p0: @[EnhancedNullability] K of kotlin.collections.AbstractMutableMap, p1: @[EnhancedNullability] java.util.function.BiFunction): V of kotlin.collections.AbstractMutableMap? [fake_override] declared in kotlin.collections.AbstractMutableMap + public open fun computeIfPresent (p0: @[EnhancedNullability] K of kotlin.collections.AbstractMutableMap, p1: @[EnhancedNullability] java.util.function.BiFunction): V of kotlin.collections.AbstractMutableMap? declared in kotlin.collections.AbstractMutableMap $this: VALUE_PARAMETER name: type:kotlin.collections.MutableMap VALUE_PARAMETER name:p0 index:0 type:@[EnhancedNullability] K of .MyMap VALUE_PARAMETER name:p1 index:1 type:@[EnhancedNullability] java.util.function.BiFunction.MyMap, in @[EnhancedNullability] V of .MyMap, out V of .MyMap?> FUN FAKE_OVERRIDE name:compute visibility:public modality:OPEN <> ($this:kotlin.collections.MutableMap, p0:@[EnhancedNullability] K of .MyMap, p1:@[EnhancedNullability] java.util.function.BiFunction.MyMap, in V of .MyMap?, out V of .MyMap?>) returnType:V of .MyMap? [fake_override] overridden: - public open fun compute (p0: @[EnhancedNullability] K of kotlin.collections.AbstractMutableMap, p1: @[EnhancedNullability] java.util.function.BiFunction): V of kotlin.collections.AbstractMutableMap? [fake_override] declared in kotlin.collections.AbstractMutableMap + public open fun compute (p0: @[EnhancedNullability] K of kotlin.collections.AbstractMutableMap, p1: @[EnhancedNullability] java.util.function.BiFunction): V of kotlin.collections.AbstractMutableMap? declared in kotlin.collections.AbstractMutableMap $this: VALUE_PARAMETER name: type:kotlin.collections.MutableMap VALUE_PARAMETER name:p0 index:0 type:@[EnhancedNullability] K of .MyMap VALUE_PARAMETER name:p1 index:1 type:@[EnhancedNullability] java.util.function.BiFunction.MyMap, in V of .MyMap?, out V of .MyMap?> FUN FAKE_OVERRIDE name:merge visibility:public modality:OPEN <> ($this:kotlin.collections.MutableMap, p0:@[EnhancedNullability] K of .MyMap, p1:@[EnhancedNullability] {V of .MyMap & Any}, p2:@[EnhancedNullability] java.util.function.BiFunction.MyMap, in @[EnhancedNullability] V of .MyMap, out V of .MyMap?>) returnType:V of .MyMap? [fake_override] overridden: - public open fun merge (p0: @[EnhancedNullability] K of kotlin.collections.AbstractMutableMap, p1: @[EnhancedNullability] {V of kotlin.collections.AbstractMutableMap & Any}, p2: @[EnhancedNullability] java.util.function.BiFunction): V of kotlin.collections.AbstractMutableMap? [fake_override] declared in kotlin.collections.AbstractMutableMap + public open fun merge (p0: @[EnhancedNullability] K of kotlin.collections.AbstractMutableMap, p1: @[EnhancedNullability] {V of kotlin.collections.AbstractMutableMap & Any}, p2: @[EnhancedNullability] java.util.function.BiFunction): V of kotlin.collections.AbstractMutableMap? declared in kotlin.collections.AbstractMutableMap $this: VALUE_PARAMETER name: type:kotlin.collections.MutableMap VALUE_PARAMETER name:p0 index:0 type:@[EnhancedNullability] K of .MyMap VALUE_PARAMETER name:p1 index:1 type:@[EnhancedNullability] {V of .MyMap & Any} VALUE_PARAMETER name:p2 index:2 type:@[EnhancedNullability] java.util.function.BiFunction.MyMap, in @[EnhancedNullability] V of .MyMap, out V of .MyMap?> FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:java.util.AbstractMap, p0:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public open fun equals (p0: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in kotlin.collections.AbstractMutableMap + public open fun equals (p0: kotlin.Any?): kotlin.Boolean declared in kotlin.collections.AbstractMutableMap $this: VALUE_PARAMETER name: type:java.util.AbstractMap VALUE_PARAMETER name:p0 index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:java.util.AbstractMap) returnType:kotlin.Int [fake_override] overridden: - public open fun hashCode (): kotlin.Int [fake_override] declared in kotlin.collections.AbstractMutableMap + public open fun hashCode (): kotlin.Int declared in kotlin.collections.AbstractMutableMap $this: VALUE_PARAMETER name: type:java.util.AbstractMap FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:java.util.AbstractMap) returnType:@[EnhancedNullability] kotlin.String [fake_override] overridden: - public open fun toString (): @[EnhancedNullability] kotlin.String [fake_override] declared in kotlin.collections.AbstractMutableMap + public open fun toString (): @[EnhancedNullability] kotlin.String declared in kotlin.collections.AbstractMutableMap $this: VALUE_PARAMETER name: type:java.util.AbstractMap FUN FAKE_OVERRIDE name:clone visibility:protected/*protected and package*/ modality:OPEN <> ($this:java.util.AbstractMap) returnType:@[FlexibleNullability] kotlin.Any? [fake_override] overridden: - protected/*protected and package*/ open fun clone (): @[FlexibleNullability] kotlin.Any? [fake_override] declared in kotlin.collections.AbstractMutableMap + protected/*protected and package*/ open fun clone (): @[FlexibleNullability] kotlin.Any? declared in kotlin.collections.AbstractMutableMap $this: VALUE_PARAMETER name: type:java.util.AbstractMap diff --git a/compiler/testData/ir/irText/firProblems/AbstractMutableMap.ir.txt b/compiler/testData/ir/irText/firProblems/AbstractMutableMap.ir.txt index b9eb7e6cf11..69f0f0442e8 100644 --- a/compiler/testData/ir/irText/firProblems/AbstractMutableMap.ir.txt +++ b/compiler/testData/ir/irText/firProblems/AbstractMutableMap.ir.txt @@ -5,7 +5,7 @@ FILE fqName: fileName:/AbstractMutableMap.kt TYPE_PARAMETER name:V index:1 variance: superTypes:[kotlin.Any] reified:false CONSTRUCTOR visibility:public <> () returnType:.MyMap.MyMap, V of .MyMap> [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'protected constructor () [primary] declared in kotlin.collections.AbstractMutableMap' + DELEGATING_CONSTRUCTOR_CALL 'protected constructor () declared in kotlin.collections.AbstractMutableMap' : K of .MyMap : V of .MyMap INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:MyMap modality:FINAL visibility:public superTypes:[kotlin.collections.AbstractMutableMap.MyMap, V of .MyMap>]' @@ -20,89 +20,89 @@ FILE fqName: fileName:/AbstractMutableMap.kt CONST Null type=kotlin.Nothing? value=null PROPERTY name:entries visibility:public modality:OPEN [val] overridden: - public abstract entries: kotlin.collections.MutableSet> [fake_override,val] + public abstract entries: kotlin.collections.MutableSet> FUN name: visibility:public modality:OPEN <> ($this:.MyMap.MyMap, V of .MyMap>) returnType:kotlin.collections.MutableSet.MyMap, V of .MyMap>> correspondingProperty: PROPERTY name:entries visibility:public modality:OPEN [val] overridden: - public abstract fun (): kotlin.collections.MutableSet> [fake_override] declared in kotlin.collections.AbstractMutableMap + public abstract fun (): kotlin.collections.MutableSet> declared in kotlin.collections.AbstractMutableMap $this: VALUE_PARAMETER name: type:.MyMap.MyMap, V of .MyMap> BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun (): kotlin.collections.MutableSet.MyMap, V of .MyMap>> declared in .MyMap' - CALL 'public final fun mutableSetOf (): kotlin.collections.MutableSet [inline] declared in kotlin.collections.SetsKt' type=kotlin.collections.MutableSet.MyMap, V of .MyMap>> origin=null + CALL 'public final fun mutableSetOf (): kotlin.collections.MutableSet declared in kotlin.collections.SetsKt' type=kotlin.collections.MutableSet.MyMap, V of .MyMap>> origin=null : kotlin.collections.MutableMap.MutableEntry.MyMap, V of .MyMap> PROPERTY FAKE_OVERRIDE name:keys visibility:public modality:OPEN [fake_override,val] overridden: - public open keys: kotlin.collections.MutableSet [fake_override,val] + public open keys: kotlin.collections.MutableSet FUN FAKE_OVERRIDE name: visibility:public modality:OPEN <> ($this:kotlin.collections.MutableMap.MyMap, V of .MyMap>) returnType:kotlin.collections.MutableSet.MyMap> [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:keys visibility:public modality:OPEN [fake_override,val] overridden: - public open fun (): kotlin.collections.MutableSet [fake_override] declared in kotlin.collections.AbstractMutableMap + public open fun (): kotlin.collections.MutableSet declared in kotlin.collections.AbstractMutableMap $this: VALUE_PARAMETER name: type:kotlin.collections.MutableMap.MyMap, V of .MyMap> PROPERTY FAKE_OVERRIDE name:size visibility:public modality:OPEN [fake_override,val] overridden: - public open size: kotlin.Int [fake_override,val] + public open size: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:OPEN <> ($this:kotlin.collections.Map.MyMap, V of .MyMap>) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:size visibility:public modality:OPEN [fake_override,val] overridden: - public open fun (): kotlin.Int [fake_override] declared in kotlin.collections.AbstractMutableMap + public open fun (): kotlin.Int declared in kotlin.collections.AbstractMutableMap $this: VALUE_PARAMETER name: type:kotlin.collections.Map.MyMap, V of .MyMap> PROPERTY FAKE_OVERRIDE name:values visibility:public modality:OPEN [fake_override,val] overridden: - public open values: kotlin.collections.MutableCollection [fake_override,val] + public open values: kotlin.collections.MutableCollection FUN FAKE_OVERRIDE name: visibility:public modality:OPEN <> ($this:kotlin.collections.MutableMap.MyMap, V of .MyMap>) returnType:kotlin.collections.MutableCollection.MyMap> [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:values visibility:public modality:OPEN [fake_override,val] overridden: - public open fun (): kotlin.collections.MutableCollection [fake_override] declared in kotlin.collections.AbstractMutableMap + public open fun (): kotlin.collections.MutableCollection declared in kotlin.collections.AbstractMutableMap $this: VALUE_PARAMETER name: type:kotlin.collections.MutableMap.MyMap, V of .MyMap> FUN FAKE_OVERRIDE name:clear visibility:public modality:OPEN <> ($this:kotlin.collections.MutableMap.MyMap, V of .MyMap>) returnType:kotlin.Unit [fake_override] overridden: - public open fun clear (): kotlin.Unit [fake_override] declared in kotlin.collections.AbstractMutableMap + public open fun clear (): kotlin.Unit declared in kotlin.collections.AbstractMutableMap $this: VALUE_PARAMETER name: type:kotlin.collections.MutableMap.MyMap, V of .MyMap> FUN FAKE_OVERRIDE name:clone visibility:protected/*protected and package*/ modality:OPEN <> ($this:java.util.AbstractMap.MyMap, V of .MyMap>) returnType:@[FlexibleNullability] kotlin.Any? [fake_override] overridden: - protected/*protected and package*/ open fun clone (): @[FlexibleNullability] kotlin.Any? [fake_override] declared in kotlin.collections.AbstractMutableMap + protected/*protected and package*/ open fun clone (): @[FlexibleNullability] kotlin.Any? declared in kotlin.collections.AbstractMutableMap $this: VALUE_PARAMETER name: type:java.util.AbstractMap.MyMap, V of .MyMap> FUN FAKE_OVERRIDE name:compute visibility:public modality:OPEN <> ($this:kotlin.collections.MutableMap.MyMap, V of .MyMap>, p0:@[EnhancedNullability] K of .MyMap, p1:@[EnhancedNullability] java.util.function.BiFunction.MyMap, in @[EnhancedNullability] V of .MyMap?, out @[EnhancedNullability] V of .MyMap?>) returnType:@[EnhancedNullability] V of .MyMap? [fake_override] overridden: - public open fun compute (p0: @[EnhancedNullability] K of kotlin.collections.AbstractMutableMap, p1: @[EnhancedNullability] java.util.function.BiFunction): @[EnhancedNullability] V of kotlin.collections.AbstractMutableMap? [fake_override] declared in kotlin.collections.AbstractMutableMap + public open fun compute (p0: @[EnhancedNullability] K of kotlin.collections.AbstractMutableMap, p1: @[EnhancedNullability] java.util.function.BiFunction): @[EnhancedNullability] V of kotlin.collections.AbstractMutableMap? declared in kotlin.collections.AbstractMutableMap $this: VALUE_PARAMETER name: type:kotlin.collections.MutableMap.MyMap, V of .MyMap> VALUE_PARAMETER name:p0 index:0 type:@[EnhancedNullability] K of .MyMap VALUE_PARAMETER name:p1 index:1 type:@[EnhancedNullability] java.util.function.BiFunction.MyMap, in @[EnhancedNullability] V of .MyMap?, out @[EnhancedNullability] V of .MyMap?> FUN FAKE_OVERRIDE name:computeIfAbsent visibility:public modality:OPEN <> ($this:kotlin.collections.MutableMap.MyMap, V of .MyMap>, p0:@[EnhancedNullability] K of .MyMap, p1:@[EnhancedNullability] java.util.function.Function.MyMap, out @[EnhancedNullability] V of .MyMap>) returnType:@[EnhancedNullability] V of .MyMap [fake_override] overridden: - public open fun computeIfAbsent (p0: @[EnhancedNullability] K of kotlin.collections.AbstractMutableMap, p1: @[EnhancedNullability] java.util.function.Function): @[EnhancedNullability] V of kotlin.collections.AbstractMutableMap [fake_override] declared in kotlin.collections.AbstractMutableMap + public open fun computeIfAbsent (p0: @[EnhancedNullability] K of kotlin.collections.AbstractMutableMap, p1: @[EnhancedNullability] java.util.function.Function): @[EnhancedNullability] V of kotlin.collections.AbstractMutableMap declared in kotlin.collections.AbstractMutableMap $this: VALUE_PARAMETER name: type:kotlin.collections.MutableMap.MyMap, V of .MyMap> VALUE_PARAMETER name:p0 index:0 type:@[EnhancedNullability] K of .MyMap VALUE_PARAMETER name:p1 index:1 type:@[EnhancedNullability] java.util.function.Function.MyMap, out @[EnhancedNullability] V of .MyMap> FUN FAKE_OVERRIDE name:computeIfPresent visibility:public modality:OPEN <> ($this:kotlin.collections.MutableMap.MyMap, V of .MyMap>, p0:@[EnhancedNullability] K of .MyMap, p1:@[EnhancedNullability] java.util.function.BiFunction.MyMap, in @[EnhancedNullability] V of .MyMap, out @[EnhancedNullability] V of .MyMap?>) returnType:@[EnhancedNullability] V of .MyMap? [fake_override] overridden: - public open fun computeIfPresent (p0: @[EnhancedNullability] K of kotlin.collections.AbstractMutableMap, p1: @[EnhancedNullability] java.util.function.BiFunction): @[EnhancedNullability] V of kotlin.collections.AbstractMutableMap? [fake_override] declared in kotlin.collections.AbstractMutableMap + public open fun computeIfPresent (p0: @[EnhancedNullability] K of kotlin.collections.AbstractMutableMap, p1: @[EnhancedNullability] java.util.function.BiFunction): @[EnhancedNullability] V of kotlin.collections.AbstractMutableMap? declared in kotlin.collections.AbstractMutableMap $this: VALUE_PARAMETER name: type:kotlin.collections.MutableMap.MyMap, V of .MyMap> VALUE_PARAMETER name:p0 index:0 type:@[EnhancedNullability] K of .MyMap VALUE_PARAMETER name:p1 index:1 type:@[EnhancedNullability] java.util.function.BiFunction.MyMap, in @[EnhancedNullability] V of .MyMap, out @[EnhancedNullability] V of .MyMap?> FUN FAKE_OVERRIDE name:containsKey visibility:public modality:OPEN <> ($this:kotlin.collections.Map.MyMap, V of .MyMap>, key:K of .MyMap) returnType:kotlin.Boolean [fake_override] overridden: - public open fun containsKey (key: K of kotlin.collections.AbstractMutableMap): kotlin.Boolean [fake_override] declared in kotlin.collections.AbstractMutableMap + public open fun containsKey (key: K of kotlin.collections.AbstractMutableMap): kotlin.Boolean declared in kotlin.collections.AbstractMutableMap $this: VALUE_PARAMETER name: type:kotlin.collections.Map.MyMap, V of .MyMap> VALUE_PARAMETER name:key index:0 type:K of .MyMap FUN FAKE_OVERRIDE name:containsValue visibility:public modality:OPEN <> ($this:kotlin.collections.Map.MyMap, V of .MyMap>, value:V of .MyMap) returnType:kotlin.Boolean [fake_override] overridden: - public open fun containsValue (value: V of kotlin.collections.AbstractMutableMap): kotlin.Boolean [fake_override] declared in kotlin.collections.AbstractMutableMap + public open fun containsValue (value: V of kotlin.collections.AbstractMutableMap): kotlin.Boolean declared in kotlin.collections.AbstractMutableMap $this: VALUE_PARAMETER name: type:kotlin.collections.Map.MyMap, V of .MyMap> VALUE_PARAMETER name:value index:0 type:V of .MyMap 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 kotlin.collections.AbstractMutableMap + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.collections.AbstractMutableMap $this: VALUE_PARAMETER name: type:kotlin.Any VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:forEach visibility:public modality:OPEN <> ($this:kotlin.collections.Map.MyMap, V of .MyMap>, p0:@[EnhancedNullability] java.util.function.BiConsumer.MyMap, in @[EnhancedNullability] V of .MyMap>) returnType:kotlin.Unit [fake_override] overridden: - public open fun forEach (p0: @[EnhancedNullability] java.util.function.BiConsumer): kotlin.Unit [fake_override] declared in kotlin.collections.AbstractMutableMap + public open fun forEach (p0: @[EnhancedNullability] java.util.function.BiConsumer): kotlin.Unit declared in kotlin.collections.AbstractMutableMap $this: VALUE_PARAMETER name: type:kotlin.collections.Map.MyMap, V of .MyMap> VALUE_PARAMETER name:p0 index:0 type:@[EnhancedNullability] java.util.function.BiConsumer.MyMap, in @[EnhancedNullability] V of .MyMap> FUN FAKE_OVERRIDE name:get visibility:public modality:OPEN <> ($this:kotlin.collections.Map.MyMap, V of .MyMap>, key:K of .MyMap) returnType:V of .MyMap? [fake_override,operator] overridden: - public open fun get (key: K of kotlin.collections.AbstractMutableMap): V of kotlin.collections.AbstractMutableMap? [fake_override,operator] declared in kotlin.collections.AbstractMutableMap + public open fun get (key: K of kotlin.collections.AbstractMutableMap): V of kotlin.collections.AbstractMutableMap? declared in kotlin.collections.AbstractMutableMap $this: VALUE_PARAMETER name: type:kotlin.collections.Map.MyMap, V of .MyMap> VALUE_PARAMETER name:key index:0 type:K of .MyMap FUN FAKE_OVERRIDE name:getOrDefault visibility:public modality:OPEN <> ($this:kotlin.collections.Map.MyMap, V of .MyMap>, key:K of .MyMap, defaultValue:V of .MyMap) returnType:V of .MyMap [fake_override] @@ -110,39 +110,39 @@ FILE fqName: fileName:/AbstractMutableMap.kt SinceKotlin(version = '1.1') PlatformDependent overridden: - public open fun getOrDefault (key: K of kotlin.collections.AbstractMutableMap, defaultValue: V of kotlin.collections.AbstractMutableMap): V of kotlin.collections.AbstractMutableMap [fake_override] declared in kotlin.collections.AbstractMutableMap + public open fun getOrDefault (key: K of kotlin.collections.AbstractMutableMap, defaultValue: V of kotlin.collections.AbstractMutableMap): V of kotlin.collections.AbstractMutableMap declared in kotlin.collections.AbstractMutableMap $this: VALUE_PARAMETER name: type:kotlin.collections.Map.MyMap, V of .MyMap> VALUE_PARAMETER name:key index:0 type:K of .MyMap VALUE_PARAMETER name:defaultValue index:1 type:V of .MyMap 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 kotlin.collections.AbstractMutableMap + public open fun hashCode (): kotlin.Int declared in kotlin.collections.AbstractMutableMap $this: VALUE_PARAMETER name: type:kotlin.Any FUN FAKE_OVERRIDE name:isEmpty visibility:public modality:OPEN <> ($this:kotlin.collections.Map.MyMap, V of .MyMap>) returnType:kotlin.Boolean [fake_override] overridden: - public open fun isEmpty (): kotlin.Boolean [fake_override] declared in kotlin.collections.AbstractMutableMap + public open fun isEmpty (): kotlin.Boolean declared in kotlin.collections.AbstractMutableMap $this: VALUE_PARAMETER name: type:kotlin.collections.Map.MyMap, V of .MyMap> FUN FAKE_OVERRIDE name:merge visibility:public modality:OPEN <> ($this:kotlin.collections.MutableMap.MyMap, V of .MyMap>, p0:@[EnhancedNullability] K of .MyMap, p1:@[EnhancedNullability] V of .MyMap, p2:@[EnhancedNullability] java.util.function.BiFunction.MyMap, in @[EnhancedNullability] V of .MyMap, out @[EnhancedNullability] V of .MyMap?>) returnType:@[EnhancedNullability] V of .MyMap? [fake_override] overridden: - public open fun merge (p0: @[EnhancedNullability] K of kotlin.collections.AbstractMutableMap, p1: @[EnhancedNullability] {V of kotlin.collections.AbstractMutableMap & Any}, p2: @[EnhancedNullability] java.util.function.BiFunction): @[EnhancedNullability] V of kotlin.collections.AbstractMutableMap? [fake_override] declared in kotlin.collections.AbstractMutableMap + public open fun merge (p0: @[EnhancedNullability] K of kotlin.collections.AbstractMutableMap, p1: @[EnhancedNullability] {V of kotlin.collections.AbstractMutableMap & Any}, p2: @[EnhancedNullability] java.util.function.BiFunction): @[EnhancedNullability] V of kotlin.collections.AbstractMutableMap? declared in kotlin.collections.AbstractMutableMap $this: VALUE_PARAMETER name: type:kotlin.collections.MutableMap.MyMap, V of .MyMap> VALUE_PARAMETER name:p0 index:0 type:@[EnhancedNullability] K of .MyMap VALUE_PARAMETER name:p1 index:1 type:@[EnhancedNullability] V of .MyMap VALUE_PARAMETER name:p2 index:2 type:@[EnhancedNullability] java.util.function.BiFunction.MyMap, in @[EnhancedNullability] V of .MyMap, out @[EnhancedNullability] V of .MyMap?> FUN FAKE_OVERRIDE name:putAll visibility:public modality:OPEN <> ($this:kotlin.collections.MutableMap.MyMap, V of .MyMap>, from:kotlin.collections.Map.MyMap, V of .MyMap>) returnType:kotlin.Unit [fake_override] overridden: - public open fun putAll (from: kotlin.collections.Map): kotlin.Unit [fake_override] declared in kotlin.collections.AbstractMutableMap + public open fun putAll (from: kotlin.collections.Map): kotlin.Unit declared in kotlin.collections.AbstractMutableMap $this: VALUE_PARAMETER name: type:kotlin.collections.MutableMap.MyMap, V of .MyMap> VALUE_PARAMETER name:from index:0 type:kotlin.collections.Map.MyMap, V of .MyMap> FUN FAKE_OVERRIDE name:putIfAbsent visibility:public modality:OPEN <> ($this:kotlin.collections.MutableMap.MyMap, V of .MyMap>, p0:@[EnhancedNullability] K of .MyMap, p1:@[EnhancedNullability] V of .MyMap) returnType:@[EnhancedNullability] V of .MyMap? [fake_override] overridden: - public open fun putIfAbsent (p0: @[EnhancedNullability] K of kotlin.collections.AbstractMutableMap, p1: @[EnhancedNullability] V of kotlin.collections.AbstractMutableMap): @[EnhancedNullability] V of kotlin.collections.AbstractMutableMap? [fake_override] declared in kotlin.collections.AbstractMutableMap + public open fun putIfAbsent (p0: @[EnhancedNullability] K of kotlin.collections.AbstractMutableMap, p1: @[EnhancedNullability] V of kotlin.collections.AbstractMutableMap): @[EnhancedNullability] V of kotlin.collections.AbstractMutableMap? declared in kotlin.collections.AbstractMutableMap $this: VALUE_PARAMETER name: type:kotlin.collections.MutableMap.MyMap, V of .MyMap> VALUE_PARAMETER name:p0 index:0 type:@[EnhancedNullability] K of .MyMap VALUE_PARAMETER name:p1 index:1 type:@[EnhancedNullability] V of .MyMap FUN FAKE_OVERRIDE name:remove visibility:public modality:OPEN <> ($this:kotlin.collections.MutableMap.MyMap, V of .MyMap>, key:K of .MyMap) returnType:V of .MyMap? [fake_override] overridden: - public open fun remove (key: K of kotlin.collections.AbstractMutableMap): V of kotlin.collections.AbstractMutableMap? [fake_override] declared in kotlin.collections.AbstractMutableMap + public open fun remove (key: K of kotlin.collections.AbstractMutableMap): V of kotlin.collections.AbstractMutableMap? declared in kotlin.collections.AbstractMutableMap $this: VALUE_PARAMETER name: type:kotlin.collections.MutableMap.MyMap, V of .MyMap> VALUE_PARAMETER name:key index:0 type:K of .MyMap FUN FAKE_OVERRIDE name:remove visibility:public modality:OPEN <> ($this:kotlin.collections.MutableMap.MyMap, V of .MyMap>, key:K of .MyMap, value:V of .MyMap) returnType:kotlin.Boolean [fake_override] @@ -150,29 +150,29 @@ FILE fqName: fileName:/AbstractMutableMap.kt SinceKotlin(version = '1.1') PlatformDependent overridden: - public open fun remove (key: K of kotlin.collections.AbstractMutableMap, value: V of kotlin.collections.AbstractMutableMap): kotlin.Boolean [fake_override] declared in kotlin.collections.AbstractMutableMap + public open fun remove (key: K of kotlin.collections.AbstractMutableMap, value: V of kotlin.collections.AbstractMutableMap): kotlin.Boolean declared in kotlin.collections.AbstractMutableMap $this: VALUE_PARAMETER name: type:kotlin.collections.MutableMap.MyMap, V of .MyMap> VALUE_PARAMETER name:key index:0 type:K of .MyMap VALUE_PARAMETER name:value index:1 type:V of .MyMap FUN FAKE_OVERRIDE name:replace visibility:public modality:OPEN <> ($this:kotlin.collections.MutableMap.MyMap, V of .MyMap>, p0:@[EnhancedNullability] K of .MyMap, p1:@[EnhancedNullability] V of .MyMap, p2:@[EnhancedNullability] V of .MyMap) returnType:kotlin.Boolean [fake_override] overridden: - public open fun replace (p0: @[EnhancedNullability] K of kotlin.collections.AbstractMutableMap, p1: @[EnhancedNullability] V of kotlin.collections.AbstractMutableMap, p2: @[EnhancedNullability] V of kotlin.collections.AbstractMutableMap): kotlin.Boolean [fake_override] declared in kotlin.collections.AbstractMutableMap + public open fun replace (p0: @[EnhancedNullability] K of kotlin.collections.AbstractMutableMap, p1: @[EnhancedNullability] V of kotlin.collections.AbstractMutableMap, p2: @[EnhancedNullability] V of kotlin.collections.AbstractMutableMap): kotlin.Boolean declared in kotlin.collections.AbstractMutableMap $this: VALUE_PARAMETER name: type:kotlin.collections.MutableMap.MyMap, V of .MyMap> VALUE_PARAMETER name:p0 index:0 type:@[EnhancedNullability] K of .MyMap VALUE_PARAMETER name:p1 index:1 type:@[EnhancedNullability] V of .MyMap VALUE_PARAMETER name:p2 index:2 type:@[EnhancedNullability] V of .MyMap FUN FAKE_OVERRIDE name:replace visibility:public modality:OPEN <> ($this:kotlin.collections.MutableMap.MyMap, V of .MyMap>, p0:@[EnhancedNullability] K of .MyMap, p1:@[EnhancedNullability] V of .MyMap) returnType:@[EnhancedNullability] V of .MyMap? [fake_override] overridden: - public open fun replace (p0: @[EnhancedNullability] K of kotlin.collections.AbstractMutableMap, p1: @[EnhancedNullability] V of kotlin.collections.AbstractMutableMap): @[EnhancedNullability] V of kotlin.collections.AbstractMutableMap? [fake_override] declared in kotlin.collections.AbstractMutableMap + public open fun replace (p0: @[EnhancedNullability] K of kotlin.collections.AbstractMutableMap, p1: @[EnhancedNullability] V of kotlin.collections.AbstractMutableMap): @[EnhancedNullability] V of kotlin.collections.AbstractMutableMap? declared in kotlin.collections.AbstractMutableMap $this: VALUE_PARAMETER name: type:kotlin.collections.MutableMap.MyMap, V of .MyMap> VALUE_PARAMETER name:p0 index:0 type:@[EnhancedNullability] K of .MyMap VALUE_PARAMETER name:p1 index:1 type:@[EnhancedNullability] V of .MyMap FUN FAKE_OVERRIDE name:replaceAll visibility:public modality:OPEN <> ($this:kotlin.collections.MutableMap.MyMap, V of .MyMap>, p0:@[EnhancedNullability] java.util.function.BiFunction.MyMap, in @[EnhancedNullability] V of .MyMap, out @[EnhancedNullability] V of .MyMap>) returnType:kotlin.Unit [fake_override] overridden: - public open fun replaceAll (p0: @[EnhancedNullability] java.util.function.BiFunction): kotlin.Unit [fake_override] declared in kotlin.collections.AbstractMutableMap + public open fun replaceAll (p0: @[EnhancedNullability] java.util.function.BiFunction): kotlin.Unit declared in kotlin.collections.AbstractMutableMap $this: VALUE_PARAMETER name: type:kotlin.collections.MutableMap.MyMap, V of .MyMap> VALUE_PARAMETER name:p0 index:0 type:@[EnhancedNullability] java.util.function.BiFunction.MyMap, in @[EnhancedNullability] V of .MyMap, out @[EnhancedNullability] V of .MyMap> 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 kotlin.collections.AbstractMutableMap + public open fun toString (): kotlin.String declared in kotlin.collections.AbstractMutableMap $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/firProblems/AllCandidates.fir.ir.txt b/compiler/testData/ir/irText/firProblems/AllCandidates.fir.ir.txt index ad93adf6e0a..0e3c06ba2e7 100644 --- a/compiler/testData/ir/irText/firProblems/AllCandidates.fir.ir.txt +++ b/compiler/testData/ir/irText/firProblems/AllCandidates.fir.ir.txt @@ -4,11 +4,11 @@ FILE fqName: fileName:/AllCandidates.kt TYPE_PARAMETER name:C index:0 variance: superTypes:[kotlin.Any?] reified:false CONSTRUCTOR visibility:public <> () returnType:.ResolvedCall.ResolvedCall> [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:ResolvedCall modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -24,7 +24,7 @@ FILE fqName: fileName:/AllCandidates.kt CONSTRUCTOR visibility:public <> (resolvedCall:.ResolvedCall<*>) returnType:.MyCandidate [primary] VALUE_PARAMETER name:resolvedCall index:0 type:.ResolvedCall<*> BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:MyCandidate modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:resolvedCall visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:resolvedCall type:.ResolvedCall<*> visibility:private [final] @@ -39,7 +39,7 @@ FILE fqName: fileName:/AllCandidates.kt receiver: GET_VAR ': .MyCandidate declared in .MyCandidate.' type=.MyCandidate 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -55,7 +55,7 @@ FILE fqName: fileName:/AllCandidates.kt VALUE_PARAMETER name:allCandidates index:0 type:kotlin.collections.Collection<.MyCandidate> BLOCK_BODY RETURN type=kotlin.Nothing from='private final fun allCandidatesResult (allCandidates: kotlin.collections.Collection<.MyCandidate>): @[FlexibleNullability] .OverloadResolutionResultsImpl<@[FlexibleNullability] A of .allCandidatesResult?>? declared in ' - CALL 'public final fun apply (block: @[ExtensionFunctionType] kotlin.Function1): T of kotlin.StandardKt.apply [inline] declared in kotlin.StandardKt' type=@[FlexibleNullability] .OverloadResolutionResultsImpl<@[FlexibleNullability] A of .allCandidatesResult?>? origin=null + CALL 'public final fun apply (block: @[ExtensionFunctionType] kotlin.Function1): T of kotlin.StandardKt.apply declared in kotlin.StandardKt' type=@[FlexibleNullability] .OverloadResolutionResultsImpl<@[FlexibleNullability] A of .allCandidatesResult?>? origin=null : @[FlexibleNullability] .OverloadResolutionResultsImpl<@[FlexibleNullability] A of .allCandidatesResult?>? $receiver: CALL 'public open fun nameNotFound (): @[FlexibleNullability] .OverloadResolutionResultsImpl<@[FlexibleNullability] R of .OverloadResolutionResultsImpl.nameNotFound?>? declared in .OverloadResolutionResultsImpl' type=@[FlexibleNullability] .OverloadResolutionResultsImpl<@[FlexibleNullability] A of .allCandidatesResult?>? origin=null : A of .allCandidatesResult @@ -65,7 +65,7 @@ FILE fqName: fileName:/AllCandidates.kt BLOCK_BODY CALL 'public open fun setAllCandidates (allCandidates: @[FlexibleNullability] @[FlexibleMutability] kotlin.collections.MutableCollection<@[FlexibleNullability] .ResolvedCall<@[FlexibleNullability] D of .OverloadResolutionResultsImpl?>?>?): kotlin.Unit declared in .OverloadResolutionResultsImpl' type=kotlin.Unit origin=EQ $this: GET_VAR '$this$apply: @[FlexibleNullability] .OverloadResolutionResultsImpl<@[FlexibleNullability] A of .allCandidatesResult?>? declared in .allCandidatesResult.' type=@[FlexibleNullability] .OverloadResolutionResultsImpl<@[FlexibleNullability] A of .allCandidatesResult?>? origin=null - allCandidates: CALL 'public final fun map (transform: kotlin.Function1): kotlin.collections.List [inline] declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List<.ResolvedCall.allCandidatesResult>> origin=null + allCandidates: CALL 'public final fun map (transform: kotlin.Function1): kotlin.collections.List declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List<.ResolvedCall.allCandidatesResult>> origin=null : .MyCandidate : .ResolvedCall.allCandidatesResult> $receiver: GET_VAR 'allCandidates: kotlin.collections.Collection<.MyCandidate> declared in .allCandidatesResult' type=kotlin.collections.Collection<.MyCandidate> origin=null diff --git a/compiler/testData/ir/irText/firProblems/AllCandidates.ir.txt b/compiler/testData/ir/irText/firProblems/AllCandidates.ir.txt index 168f545536c..0dc80afce70 100644 --- a/compiler/testData/ir/irText/firProblems/AllCandidates.ir.txt +++ b/compiler/testData/ir/irText/firProblems/AllCandidates.ir.txt @@ -4,11 +4,11 @@ FILE fqName: fileName:/AllCandidates.kt TYPE_PARAMETER name:C index:0 variance: superTypes:[kotlin.Any?] reified:false CONSTRUCTOR visibility:public <> () returnType:.ResolvedCall.ResolvedCall> [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:ResolvedCall modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -24,7 +24,7 @@ FILE fqName: fileName:/AllCandidates.kt CONSTRUCTOR visibility:public <> (resolvedCall:.ResolvedCall<*>) returnType:.MyCandidate [primary] VALUE_PARAMETER name:resolvedCall index:0 type:.ResolvedCall<*> BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:MyCandidate modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:resolvedCall visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:resolvedCall type:.ResolvedCall<*> visibility:private [final] @@ -39,7 +39,7 @@ FILE fqName: fileName:/AllCandidates.kt receiver: GET_VAR ': .MyCandidate declared in .MyCandidate.' type=.MyCandidate 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -55,7 +55,7 @@ FILE fqName: fileName:/AllCandidates.kt VALUE_PARAMETER name:allCandidates index:0 type:kotlin.collections.Collection<.MyCandidate> BLOCK_BODY RETURN type=kotlin.Nothing from='private final fun allCandidatesResult (allCandidates: kotlin.collections.Collection<.MyCandidate>): @[FlexibleNullability] .OverloadResolutionResultsImpl<@[FlexibleNullability] A of .allCandidatesResult?>? declared in ' - CALL 'public final fun apply (block: @[ExtensionFunctionType] kotlin.Function1): T of kotlin.StandardKt.apply [inline] declared in kotlin.StandardKt' type=@[FlexibleNullability] .OverloadResolutionResultsImpl<@[FlexibleNullability] A of .allCandidatesResult?>? origin=null + CALL 'public final fun apply (block: @[ExtensionFunctionType] kotlin.Function1): T of kotlin.StandardKt.apply declared in kotlin.StandardKt' type=@[FlexibleNullability] .OverloadResolutionResultsImpl<@[FlexibleNullability] A of .allCandidatesResult?>? origin=null : @[FlexibleNullability] .OverloadResolutionResultsImpl<@[FlexibleNullability] A of .allCandidatesResult?>? $receiver: CALL 'public open fun nameNotFound (): @[FlexibleNullability] .OverloadResolutionResultsImpl<@[FlexibleNullability] R of .OverloadResolutionResultsImpl.nameNotFound?>? declared in .OverloadResolutionResultsImpl' type=@[FlexibleNullability] .OverloadResolutionResultsImpl<@[FlexibleNullability] A of .allCandidatesResult?>? origin=null : @[FlexibleNullability] A of .allCandidatesResult? @@ -67,7 +67,7 @@ FILE fqName: fileName:/AllCandidates.kt <1>: @[FlexibleNullability] A of .allCandidatesResult? $this: TYPE_OP type=.OverloadResolutionResultsImpl<@[FlexibleNullability] A of .allCandidatesResult?> origin=IMPLICIT_NOTNULL typeOperand=.OverloadResolutionResultsImpl<@[FlexibleNullability] A of .allCandidatesResult?> GET_VAR '$this$apply: @[FlexibleNullability] .OverloadResolutionResultsImpl<@[FlexibleNullability] A of .allCandidatesResult?>? declared in .allCandidatesResult.' type=@[FlexibleNullability] .OverloadResolutionResultsImpl<@[FlexibleNullability] A of .allCandidatesResult?>? origin=null - allCandidates: CALL 'public final fun map (transform: kotlin.Function1): kotlin.collections.List [inline] declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List<.ResolvedCall.allCandidatesResult>> origin=null + allCandidates: CALL 'public final fun map (transform: kotlin.Function1): kotlin.collections.List declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List<.ResolvedCall.allCandidatesResult>> origin=null : .MyCandidate : .ResolvedCall.allCandidatesResult> $receiver: GET_VAR 'allCandidates: kotlin.collections.Collection<.MyCandidate> declared in .allCandidatesResult' type=kotlin.collections.Collection<.MyCandidate> origin=null diff --git a/compiler/testData/ir/irText/firProblems/AnnotationInAnnotation.ir.txt b/compiler/testData/ir/irText/firProblems/AnnotationInAnnotation.ir.txt index a89838f66f1..ff13aaeb003 100644 --- a/compiler/testData/ir/irText/firProblems/AnnotationInAnnotation.ir.txt +++ b/compiler/testData/ir/irText/firProblems/AnnotationInAnnotation.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/AnnotationInAnnotation.kt CONSTRUCTOR visibility:public <> (value:kotlin.String) returnType:.Storage [primary] VALUE_PARAMETER name:value index:0 type:kotlin.String BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:Storage modality:OPEN visibility:public superTypes:[kotlin.Annotation]' PROPERTY name:value visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:value type:kotlin.String visibility:private [final] @@ -19,16 +19,16 @@ FILE fqName: fileName:/AnnotationInAnnotation.kt receiver: GET_VAR ': .Storage declared in .Storage.' type=.Storage 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 [fake_override,operator] declared in kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any CLASS ANNOTATION_CLASS name:State modality:OPEN visibility:public superTypes:[kotlin.Annotation] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.State @@ -36,7 +36,7 @@ FILE fqName: fileName:/AnnotationInAnnotation.kt VALUE_PARAMETER name:name index:0 type:kotlin.String VALUE_PARAMETER name:storages index:1 type:kotlin.Array<.Storage> BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:State modality:OPEN visibility:public superTypes:[kotlin.Annotation]' PROPERTY name:name visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:name type:kotlin.String visibility:private [final] @@ -62,16 +62,16 @@ FILE fqName: fileName:/AnnotationInAnnotation.kt receiver: GET_VAR ': .State declared in .State.' type=.State 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 [fake_override,operator] declared in kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:Test modality:FINAL visibility:public superTypes:[kotlin.Any] annotations: @@ -79,11 +79,11 @@ FILE fqName: fileName:/AnnotationInAnnotation.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Test CONSTRUCTOR visibility:public <> () returnType:.Test [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/firProblems/AnnotationLoader.fir.ir.txt b/compiler/testData/ir/irText/firProblems/AnnotationLoader.fir.ir.txt index f4e42d6aa4c..4adfb83fffa 100644 --- a/compiler/testData/ir/irText/firProblems/AnnotationLoader.fir.ir.txt +++ b/compiler/testData/ir/irText/firProblems/AnnotationLoader.fir.ir.txt @@ -15,7 +15,7 @@ FILE fqName: fileName:/AnnotationLoader.kt CONST Null type=kotlin.Nothing? value=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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -30,7 +30,7 @@ FILE fqName: fileName:/AnnotationLoader.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.AnnotationLoader CONSTRUCTOR visibility:public <> () returnType:.AnnotationLoader [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:AnnotationLoader modality:FINAL visibility:public superTypes:[kotlin.Any]' FUN name:loadAnnotation visibility:public modality:FINAL <> ($this:.AnnotationLoader) returnType:.Visitor? $this: VALUE_PARAMETER name: type:.AnnotationLoader @@ -41,7 +41,7 @@ FILE fqName: fileName:/AnnotationLoader.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.AnnotationLoader.loadAnnotation. CONSTRUCTOR visibility:public <> () returnType:.AnnotationLoader.loadAnnotation. [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name: modality:FINAL visibility:local superTypes:[.Visitor]' FUN name:visit visibility:public modality:OPEN <> ($this:.AnnotationLoader.loadAnnotation.) returnType:kotlin.Unit overridden: @@ -59,7 +59,7 @@ FILE fqName: fileName:/AnnotationLoader.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.AnnotationLoader.loadAnnotation..visitArray. CONSTRUCTOR visibility:public <> () returnType:.AnnotationLoader.loadAnnotation..visitArray. [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name: modality:FINAL visibility:local superTypes:[.Visitor]' FUN name:visit visibility:public modality:OPEN <> ($this:.AnnotationLoader.loadAnnotation..visitArray.) returnType:kotlin.Unit overridden: @@ -78,18 +78,18 @@ FILE fqName: fileName:/AnnotationLoader.kt $this: VALUE_PARAMETER name: type:.Visitor 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 .Visitor + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Visitor $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 .Visitor + public open fun hashCode (): kotlin.Int declared in .Visitor $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 .Visitor + public open fun toString (): kotlin.String declared in .Visitor $this: VALUE_PARAMETER name: type:kotlin.Any - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .AnnotationLoader.loadAnnotation..visitArray.' type=.AnnotationLoader.loadAnnotation..visitArray. origin=OBJECT_LITERAL + CONSTRUCTOR_CALL 'public constructor () declared in .AnnotationLoader.loadAnnotation..visitArray.' type=.AnnotationLoader.loadAnnotation..visitArray. origin=OBJECT_LITERAL FUN name:visitAnnotation visibility:public modality:OPEN <> ($this:.AnnotationLoader.loadAnnotation.) returnType:.Visitor? overridden: public open fun visitAnnotation (): .Visitor? declared in .Visitor @@ -106,7 +106,7 @@ FILE fqName: fileName:/AnnotationLoader.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.AnnotationLoader.loadAnnotation..visitAnnotation. CONSTRUCTOR visibility:public <> () returnType:.AnnotationLoader.loadAnnotation..visitAnnotation. [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name: modality:FINAL visibility:local superTypes:[.Visitor]' FUN DELEGATED_MEMBER name:visitArray visibility:public modality:OPEN <> ($this:.AnnotationLoader.loadAnnotation..visitAnnotation.) returnType:.Visitor? overridden: @@ -128,7 +128,7 @@ FILE fqName: fileName:/AnnotationLoader.kt receiver: GET_VAR ': .AnnotationLoader.loadAnnotation..visitAnnotation. declared in .AnnotationLoader.loadAnnotation..visitAnnotation..visitAnnotation' type=.AnnotationLoader.loadAnnotation..visitAnnotation. origin=null FIELD DELEGATE name:$$delegate_0 type:.Visitor visibility:private [final] EXPRESSION_BODY - GET_VAR 'val visitor: .Visitor [val] declared in .AnnotationLoader.loadAnnotation..visitAnnotation' type=.Visitor origin=null + GET_VAR 'val visitor: .Visitor declared in .AnnotationLoader.loadAnnotation..visitAnnotation' type=.Visitor origin=null FUN name:visit visibility:public modality:OPEN <> ($this:.AnnotationLoader.loadAnnotation..visitAnnotation.) returnType:kotlin.Unit overridden: public abstract fun visit (): kotlin.Unit declared in .Visitor @@ -136,38 +136,38 @@ FILE fqName: fileName:/AnnotationLoader.kt 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 [fake_override,operator] declared in .Visitor + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Visitor $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 .Visitor + public open fun hashCode (): kotlin.Int declared in .Visitor $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 .Visitor + public open fun toString (): kotlin.String declared in .Visitor $this: VALUE_PARAMETER name: type:kotlin.Any - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .AnnotationLoader.loadAnnotation..visitAnnotation.' type=.AnnotationLoader.loadAnnotation..visitAnnotation. origin=OBJECT_LITERAL + CONSTRUCTOR_CALL 'public constructor () declared in .AnnotationLoader.loadAnnotation..visitAnnotation.' type=.AnnotationLoader.loadAnnotation..visitAnnotation. origin=OBJECT_LITERAL FUN name:foo visibility:private modality:FINAL <> ($this:.AnnotationLoader.loadAnnotation.) returnType:kotlin.Unit $this: VALUE_PARAMETER name: type:.AnnotationLoader.loadAnnotation. 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 [fake_override,operator] declared in .Visitor + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Visitor $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 .Visitor + public open fun hashCode (): kotlin.Int declared in .Visitor $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 .Visitor + public open fun toString (): kotlin.String declared in .Visitor $this: VALUE_PARAMETER name: type:kotlin.Any - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .AnnotationLoader.loadAnnotation.' type=.AnnotationLoader.loadAnnotation. origin=OBJECT_LITERAL + CONSTRUCTOR_CALL 'public constructor () declared in .AnnotationLoader.loadAnnotation.' type=.AnnotationLoader.loadAnnotation. origin=OBJECT_LITERAL 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/firProblems/AnnotationLoader.ir.txt b/compiler/testData/ir/irText/firProblems/AnnotationLoader.ir.txt index 37b7e4805e4..74eefe9536f 100644 --- a/compiler/testData/ir/irText/firProblems/AnnotationLoader.ir.txt +++ b/compiler/testData/ir/irText/firProblems/AnnotationLoader.ir.txt @@ -15,7 +15,7 @@ FILE fqName: fileName:/AnnotationLoader.kt CONST Null type=kotlin.Nothing? value=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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -30,7 +30,7 @@ FILE fqName: fileName:/AnnotationLoader.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.AnnotationLoader CONSTRUCTOR visibility:public <> () returnType:.AnnotationLoader [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:AnnotationLoader modality:FINAL visibility:public superTypes:[kotlin.Any]' FUN name:loadAnnotation visibility:public modality:FINAL <> ($this:.AnnotationLoader) returnType:.Visitor? $this: VALUE_PARAMETER name: type:.AnnotationLoader @@ -41,7 +41,7 @@ FILE fqName: fileName:/AnnotationLoader.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.AnnotationLoader.loadAnnotation. CONSTRUCTOR visibility:public <> () returnType:.AnnotationLoader.loadAnnotation. [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name: modality:FINAL visibility:local superTypes:[.Visitor]' FUN name:visit visibility:public modality:OPEN <> ($this:.AnnotationLoader.loadAnnotation.) returnType:kotlin.Unit overridden: @@ -59,7 +59,7 @@ FILE fqName: fileName:/AnnotationLoader.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.AnnotationLoader.loadAnnotation..visitArray. CONSTRUCTOR visibility:public <> () returnType:.AnnotationLoader.loadAnnotation..visitArray. [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name: modality:FINAL visibility:local superTypes:[.Visitor]' FUN name:visit visibility:public modality:OPEN <> ($this:.AnnotationLoader.loadAnnotation..visitArray.) returnType:kotlin.Unit overridden: @@ -78,18 +78,18 @@ FILE fqName: fileName:/AnnotationLoader.kt $this: VALUE_PARAMETER name: type:.Visitor 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 .Visitor + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Visitor $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 .Visitor + public open fun hashCode (): kotlin.Int declared in .Visitor $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 .Visitor + public open fun toString (): kotlin.String declared in .Visitor $this: VALUE_PARAMETER name: type:kotlin.Any - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .AnnotationLoader.loadAnnotation..visitArray.' type=.AnnotationLoader.loadAnnotation..visitArray. origin=OBJECT_LITERAL + CONSTRUCTOR_CALL 'public constructor () declared in .AnnotationLoader.loadAnnotation..visitArray.' type=.AnnotationLoader.loadAnnotation..visitArray. origin=OBJECT_LITERAL FUN name:visitAnnotation visibility:public modality:OPEN <> ($this:.AnnotationLoader.loadAnnotation.) returnType:.Visitor? overridden: public open fun visitAnnotation (): .Visitor? declared in .Visitor @@ -106,11 +106,11 @@ FILE fqName: fileName:/AnnotationLoader.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.AnnotationLoader.loadAnnotation..visitAnnotation. CONSTRUCTOR visibility:public <> () returnType:.AnnotationLoader.loadAnnotation..visitAnnotation. [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name: modality:FINAL visibility:local superTypes:[.Visitor]' FIELD DELEGATE name:$$delegate_0 type:.Visitor visibility:private [final] EXPRESSION_BODY - GET_VAR 'val visitor: .Visitor [val] declared in .AnnotationLoader.loadAnnotation..visitAnnotation' type=.Visitor origin=null + GET_VAR 'val visitor: .Visitor declared in .AnnotationLoader.loadAnnotation..visitAnnotation' type=.Visitor origin=null FUN DELEGATED_MEMBER name:visitAnnotation visibility:public modality:OPEN <> ($this:.AnnotationLoader.loadAnnotation..visitAnnotation.) returnType:.Visitor? overridden: public open fun visitAnnotation (): .Visitor? declared in .Visitor @@ -136,38 +136,38 @@ FILE fqName: fileName:/AnnotationLoader.kt 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 [fake_override,operator] declared in .Visitor + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Visitor $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 .Visitor + public open fun hashCode (): kotlin.Int declared in .Visitor $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 .Visitor + public open fun toString (): kotlin.String declared in .Visitor $this: VALUE_PARAMETER name: type:kotlin.Any - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .AnnotationLoader.loadAnnotation..visitAnnotation.' type=.AnnotationLoader.loadAnnotation..visitAnnotation. origin=OBJECT_LITERAL + CONSTRUCTOR_CALL 'public constructor () declared in .AnnotationLoader.loadAnnotation..visitAnnotation.' type=.AnnotationLoader.loadAnnotation..visitAnnotation. origin=OBJECT_LITERAL FUN name:foo visibility:private modality:FINAL <> ($this:.AnnotationLoader.loadAnnotation.) returnType:kotlin.Unit $this: VALUE_PARAMETER name: type:.AnnotationLoader.loadAnnotation. 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 [fake_override,operator] declared in .Visitor + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Visitor $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 .Visitor + public open fun hashCode (): kotlin.Int declared in .Visitor $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 .Visitor + public open fun toString (): kotlin.String declared in .Visitor $this: VALUE_PARAMETER name: type:kotlin.Any - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .AnnotationLoader.loadAnnotation.' type=.AnnotationLoader.loadAnnotation. origin=OBJECT_LITERAL + CONSTRUCTOR_CALL 'public constructor () declared in .AnnotationLoader.loadAnnotation.' type=.AnnotationLoader.loadAnnotation. origin=OBJECT_LITERAL 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/firProblems/AnonymousAsReturnOfGenericFunction.ir.txt b/compiler/testData/ir/irText/firProblems/AnonymousAsReturnOfGenericFunction.ir.txt index 3a86a33814b..e625a31e168 100644 --- a/compiler/testData/ir/irText/firProblems/AnonymousAsReturnOfGenericFunction.ir.txt +++ b/compiler/testData/ir/irText/firProblems/AnonymousAsReturnOfGenericFunction.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/AnonymousAsReturnOfGenericFunction.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.NestedGroupFragment 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -28,19 +28,19 @@ FILE fqName: fileName:/AnonymousAsReturnOfGenericFunction.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.addOptionsGroup..addOptionsGroup> CONSTRUCTOR visibility:public <> () returnType:.addOptionsGroup..addOptionsGroup> [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name: modality:FINAL visibility:local superTypes:[.NestedGroupFragment]' 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 .NestedGroupFragment + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .NestedGroupFragment $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 .NestedGroupFragment + public open fun hashCode (): kotlin.Int declared in .NestedGroupFragment $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 .NestedGroupFragment + public open fun toString (): kotlin.String declared in .NestedGroupFragment $this: VALUE_PARAMETER name: type:kotlin.Any - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .addOptionsGroup.' type=.addOptionsGroup..addOptionsGroup> origin=OBJECT_LITERAL + CONSTRUCTOR_CALL 'public constructor () declared in .addOptionsGroup.' type=.addOptionsGroup..addOptionsGroup> origin=OBJECT_LITERAL diff --git a/compiler/testData/ir/irText/firProblems/ArrayListOverrides.fir.ir.txt b/compiler/testData/ir/irText/firProblems/ArrayListOverrides.fir.ir.txt index 40e62ad6cd3..e8496a9b1ee 100644 --- a/compiler/testData/ir/irText/firProblems/ArrayListOverrides.fir.ir.txt +++ b/compiler/testData/ir/irText/firProblems/ArrayListOverrides.fir.ir.txt @@ -13,7 +13,7 @@ FILE fqName: fileName:/ArrayListOverrides.kt VALUE_PARAMETER name:p0 index:0 type:kotlin.Int PROPERTY FAKE_OVERRIDE name:size visibility:public modality:OPEN [fake_override,val] overridden: - public open size: kotlin.Int [val] + public open size: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:OPEN <> ($this:java.util.ArrayList) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:size visibility:public modality:OPEN [fake_override,val] overridden: @@ -34,7 +34,7 @@ FILE fqName: fileName:/ArrayListOverrides.kt $this: VALUE_PARAMETER name: type:java.util.ArrayList FUN FAKE_OVERRIDE name:contains visibility:public modality:OPEN <> ($this:java.util.ArrayList, p0:@[EnhancedNullability] kotlin.String) returnType:kotlin.Boolean [fake_override,operator] overridden: - public open fun contains (p0: @[EnhancedNullability] E of java.util.ArrayList): kotlin.Boolean [operator] declared in java.util.ArrayList + public open fun contains (p0: @[EnhancedNullability] E of java.util.ArrayList): kotlin.Boolean declared in java.util.ArrayList $this: VALUE_PARAMETER name: type:java.util.ArrayList VALUE_PARAMETER name:p0 index:0 type:@[EnhancedNullability] kotlin.String FUN FAKE_OVERRIDE name:indexOf visibility:public modality:OPEN <> ($this:java.util.ArrayList, p0:@[EnhancedNullability] kotlin.String) returnType:kotlin.Int [fake_override] @@ -63,12 +63,12 @@ FILE fqName: fileName:/ArrayListOverrides.kt VALUE_PARAMETER name:p0 index:0 type:@[FlexibleNullability] kotlin.Array.A1.toArray?>? FUN FAKE_OVERRIDE name:get visibility:public modality:OPEN <> ($this:java.util.ArrayList, p0:kotlin.Int) returnType:@[EnhancedNullability] kotlin.String [fake_override,operator] overridden: - public open fun get (p0: kotlin.Int): @[EnhancedNullability] E of java.util.ArrayList [operator] declared in java.util.ArrayList + public open fun get (p0: kotlin.Int): @[EnhancedNullability] E of java.util.ArrayList declared in java.util.ArrayList $this: VALUE_PARAMETER name: type:java.util.ArrayList VALUE_PARAMETER name:p0 index:0 type:kotlin.Int FUN FAKE_OVERRIDE name:set visibility:public modality:OPEN <> ($this:java.util.ArrayList, p0:kotlin.Int, p1:@[EnhancedNullability] kotlin.String) returnType:@[EnhancedNullability] kotlin.String [fake_override,operator] overridden: - public open fun set (p0: kotlin.Int, p1: @[EnhancedNullability] E of java.util.ArrayList): @[EnhancedNullability] E of java.util.ArrayList [operator] declared in java.util.ArrayList + public open fun set (p0: kotlin.Int, p1: @[EnhancedNullability] E of java.util.ArrayList): @[EnhancedNullability] E of java.util.ArrayList declared in java.util.ArrayList $this: VALUE_PARAMETER name: type:java.util.ArrayList VALUE_PARAMETER name:p0 index:0 type:kotlin.Int VALUE_PARAMETER name:p1 index:1 type:@[EnhancedNullability] kotlin.String @@ -130,7 +130,7 @@ FILE fqName: fileName:/ArrayListOverrides.kt $this: VALUE_PARAMETER name: type:java.util.ArrayList FUN FAKE_OVERRIDE name:iterator visibility:public modality:OPEN <> ($this:java.util.ArrayList) returnType:@[EnhancedNullability] kotlin.collections.MutableIterator<@[EnhancedNullability] kotlin.String> [fake_override,operator] overridden: - public open fun iterator (): @[EnhancedNullability] kotlin.collections.MutableIterator<@[EnhancedNullability] E of java.util.ArrayList> [operator] declared in java.util.ArrayList + public open fun iterator (): @[EnhancedNullability] kotlin.collections.MutableIterator<@[EnhancedNullability] E of java.util.ArrayList> declared in java.util.ArrayList $this: VALUE_PARAMETER name: type:java.util.ArrayList FUN FAKE_OVERRIDE name:subList visibility:public modality:OPEN <> ($this:java.util.ArrayList, p0:kotlin.Int, p1:kotlin.Int) returnType:@[EnhancedNullability] kotlin.collections.MutableList<@[EnhancedNullability] kotlin.String> [fake_override] overridden: @@ -164,33 +164,33 @@ FILE fqName: fileName:/ArrayListOverrides.kt VALUE_PARAMETER name:p0 index:0 type:@[FlexibleNullability] java.util.Comparator? FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:java.util.AbstractList, p0:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public open fun equals (p0: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in java.util.ArrayList + public open fun equals (p0: kotlin.Any?): kotlin.Boolean declared in java.util.ArrayList $this: VALUE_PARAMETER name: type:java.util.AbstractList VALUE_PARAMETER name:p0 index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:java.util.AbstractList) returnType:kotlin.Int [fake_override] overridden: - public open fun hashCode (): kotlin.Int [fake_override] declared in java.util.ArrayList + public open fun hashCode (): kotlin.Int declared in java.util.ArrayList $this: VALUE_PARAMETER name: type:java.util.AbstractList FUN FAKE_OVERRIDE name:containsAll visibility:public modality:OPEN <> ($this:java.util.AbstractCollection, p0:kotlin.collections.Collection<@[FlexibleNullability] kotlin.String?>) returnType:kotlin.Boolean [fake_override] overridden: - public open fun containsAll (p0: kotlin.collections.Collection<@[FlexibleNullability] E of java.util.ArrayList?>): kotlin.Boolean [fake_override] declared in java.util.ArrayList + public open fun containsAll (p0: kotlin.collections.Collection<@[FlexibleNullability] E of java.util.ArrayList?>): kotlin.Boolean declared in java.util.ArrayList $this: VALUE_PARAMETER name: type:java.util.AbstractCollection VALUE_PARAMETER name:p0 index:0 type:kotlin.collections.Collection<@[FlexibleNullability] kotlin.String?> FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:java.util.AbstractCollection) returnType:@[EnhancedNullability] kotlin.String [fake_override] overridden: - public open fun toString (): @[EnhancedNullability] kotlin.String [fake_override] declared in java.util.ArrayList + public open fun toString (): @[EnhancedNullability] kotlin.String declared in java.util.ArrayList $this: VALUE_PARAMETER name: type:java.util.AbstractCollection FUN FAKE_OVERRIDE name:stream visibility:public modality:OPEN <> ($this:kotlin.collections.Collection) returnType:@[EnhancedNullability] java.util.stream.Stream<@[EnhancedNullability] kotlin.String?> [fake_override] overridden: - public open fun stream (): @[EnhancedNullability] java.util.stream.Stream<@[EnhancedNullability] E of java.util.ArrayList?> [fake_override] declared in java.util.ArrayList + public open fun stream (): @[EnhancedNullability] java.util.stream.Stream<@[EnhancedNullability] E of java.util.ArrayList?> declared in java.util.ArrayList $this: VALUE_PARAMETER name: type:kotlin.collections.Collection FUN FAKE_OVERRIDE name:parallelStream visibility:public modality:OPEN <> ($this:kotlin.collections.Collection) returnType:@[EnhancedNullability] java.util.stream.Stream<@[EnhancedNullability] kotlin.String?> [fake_override] overridden: - public open fun parallelStream (): @[EnhancedNullability] java.util.stream.Stream<@[EnhancedNullability] E of java.util.ArrayList?> [fake_override] declared in java.util.ArrayList + public open fun parallelStream (): @[EnhancedNullability] java.util.stream.Stream<@[EnhancedNullability] E of java.util.ArrayList?> declared in java.util.ArrayList $this: VALUE_PARAMETER name: type:kotlin.collections.Collection FUN FAKE_OVERRIDE name:removeAt visibility:public modality:OPEN <> ($this:java.util.ArrayList, p0:kotlin.Int) returnType:@[EnhancedNullability] kotlin.String [fake_override,operator] overridden: - public open fun removeAt (p0: kotlin.Int): @[EnhancedNullability] E of java.util.ArrayList [operator] declared in java.util.ArrayList + public open fun removeAt (p0: kotlin.Int): @[EnhancedNullability] E of java.util.ArrayList declared in java.util.ArrayList $this: VALUE_PARAMETER name: type:java.util.ArrayList VALUE_PARAMETER name:p0 index:0 type:kotlin.Int CLASS CLASS name:A2 modality:FINAL visibility:public superTypes:[java.util.ArrayList] @@ -215,7 +215,7 @@ FILE fqName: fileName:/ArrayListOverrides.kt VALUE_PARAMETER name:p0 index:0 type:kotlin.Int PROPERTY FAKE_OVERRIDE name:size visibility:public modality:OPEN [fake_override,val] overridden: - public open size: kotlin.Int [val] + public open size: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:OPEN <> ($this:java.util.ArrayList) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:size visibility:public modality:OPEN [fake_override,val] overridden: @@ -236,7 +236,7 @@ FILE fqName: fileName:/ArrayListOverrides.kt $this: VALUE_PARAMETER name: type:java.util.ArrayList FUN FAKE_OVERRIDE name:contains visibility:public modality:OPEN <> ($this:java.util.ArrayList, p0:@[EnhancedNullability] kotlin.String) returnType:kotlin.Boolean [fake_override,operator] overridden: - public open fun contains (p0: @[EnhancedNullability] E of java.util.ArrayList): kotlin.Boolean [operator] declared in java.util.ArrayList + public open fun contains (p0: @[EnhancedNullability] E of java.util.ArrayList): kotlin.Boolean declared in java.util.ArrayList $this: VALUE_PARAMETER name: type:java.util.ArrayList VALUE_PARAMETER name:p0 index:0 type:@[EnhancedNullability] kotlin.String FUN FAKE_OVERRIDE name:indexOf visibility:public modality:OPEN <> ($this:java.util.ArrayList, p0:@[EnhancedNullability] kotlin.String) returnType:kotlin.Int [fake_override] @@ -265,12 +265,12 @@ FILE fqName: fileName:/ArrayListOverrides.kt VALUE_PARAMETER name:p0 index:0 type:@[FlexibleNullability] kotlin.Array.A2.toArray?>? FUN FAKE_OVERRIDE name:get visibility:public modality:OPEN <> ($this:java.util.ArrayList, p0:kotlin.Int) returnType:@[EnhancedNullability] kotlin.String [fake_override,operator] overridden: - public open fun get (p0: kotlin.Int): @[EnhancedNullability] E of java.util.ArrayList [operator] declared in java.util.ArrayList + public open fun get (p0: kotlin.Int): @[EnhancedNullability] E of java.util.ArrayList declared in java.util.ArrayList $this: VALUE_PARAMETER name: type:java.util.ArrayList VALUE_PARAMETER name:p0 index:0 type:kotlin.Int FUN FAKE_OVERRIDE name:set visibility:public modality:OPEN <> ($this:java.util.ArrayList, p0:kotlin.Int, p1:@[EnhancedNullability] kotlin.String) returnType:@[EnhancedNullability] kotlin.String [fake_override,operator] overridden: - public open fun set (p0: kotlin.Int, p1: @[EnhancedNullability] E of java.util.ArrayList): @[EnhancedNullability] E of java.util.ArrayList [operator] declared in java.util.ArrayList + public open fun set (p0: kotlin.Int, p1: @[EnhancedNullability] E of java.util.ArrayList): @[EnhancedNullability] E of java.util.ArrayList declared in java.util.ArrayList $this: VALUE_PARAMETER name: type:java.util.ArrayList VALUE_PARAMETER name:p0 index:0 type:kotlin.Int VALUE_PARAMETER name:p1 index:1 type:@[EnhancedNullability] kotlin.String @@ -327,7 +327,7 @@ FILE fqName: fileName:/ArrayListOverrides.kt $this: VALUE_PARAMETER name: type:java.util.ArrayList FUN FAKE_OVERRIDE name:iterator visibility:public modality:OPEN <> ($this:java.util.ArrayList) returnType:@[EnhancedNullability] kotlin.collections.MutableIterator<@[EnhancedNullability] kotlin.String> [fake_override,operator] overridden: - public open fun iterator (): @[EnhancedNullability] kotlin.collections.MutableIterator<@[EnhancedNullability] E of java.util.ArrayList> [operator] declared in java.util.ArrayList + public open fun iterator (): @[EnhancedNullability] kotlin.collections.MutableIterator<@[EnhancedNullability] E of java.util.ArrayList> declared in java.util.ArrayList $this: VALUE_PARAMETER name: type:java.util.ArrayList FUN FAKE_OVERRIDE name:subList visibility:public modality:OPEN <> ($this:java.util.ArrayList, p0:kotlin.Int, p1:kotlin.Int) returnType:@[EnhancedNullability] kotlin.collections.MutableList<@[EnhancedNullability] kotlin.String> [fake_override] overridden: @@ -361,32 +361,32 @@ FILE fqName: fileName:/ArrayListOverrides.kt VALUE_PARAMETER name:p0 index:0 type:@[FlexibleNullability] java.util.Comparator? FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:java.util.AbstractList, p0:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public open fun equals (p0: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in java.util.ArrayList + public open fun equals (p0: kotlin.Any?): kotlin.Boolean declared in java.util.ArrayList $this: VALUE_PARAMETER name: type:java.util.AbstractList VALUE_PARAMETER name:p0 index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:java.util.AbstractList) returnType:kotlin.Int [fake_override] overridden: - public open fun hashCode (): kotlin.Int [fake_override] declared in java.util.ArrayList + public open fun hashCode (): kotlin.Int declared in java.util.ArrayList $this: VALUE_PARAMETER name: type:java.util.AbstractList FUN FAKE_OVERRIDE name:containsAll visibility:public modality:OPEN <> ($this:java.util.AbstractCollection, p0:kotlin.collections.Collection<@[FlexibleNullability] kotlin.String?>) returnType:kotlin.Boolean [fake_override] overridden: - public open fun containsAll (p0: kotlin.collections.Collection<@[FlexibleNullability] E of java.util.ArrayList?>): kotlin.Boolean [fake_override] declared in java.util.ArrayList + public open fun containsAll (p0: kotlin.collections.Collection<@[FlexibleNullability] E of java.util.ArrayList?>): kotlin.Boolean declared in java.util.ArrayList $this: VALUE_PARAMETER name: type:java.util.AbstractCollection VALUE_PARAMETER name:p0 index:0 type:kotlin.collections.Collection<@[FlexibleNullability] kotlin.String?> FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:java.util.AbstractCollection) returnType:@[EnhancedNullability] kotlin.String [fake_override] overridden: - public open fun toString (): @[EnhancedNullability] kotlin.String [fake_override] declared in java.util.ArrayList + public open fun toString (): @[EnhancedNullability] kotlin.String declared in java.util.ArrayList $this: VALUE_PARAMETER name: type:java.util.AbstractCollection FUN FAKE_OVERRIDE name:stream visibility:public modality:OPEN <> ($this:kotlin.collections.Collection) returnType:@[EnhancedNullability] java.util.stream.Stream<@[EnhancedNullability] kotlin.String?> [fake_override] overridden: - public open fun stream (): @[EnhancedNullability] java.util.stream.Stream<@[EnhancedNullability] E of java.util.ArrayList?> [fake_override] declared in java.util.ArrayList + public open fun stream (): @[EnhancedNullability] java.util.stream.Stream<@[EnhancedNullability] E of java.util.ArrayList?> declared in java.util.ArrayList $this: VALUE_PARAMETER name: type:kotlin.collections.Collection FUN FAKE_OVERRIDE name:parallelStream visibility:public modality:OPEN <> ($this:kotlin.collections.Collection) returnType:@[EnhancedNullability] java.util.stream.Stream<@[EnhancedNullability] kotlin.String?> [fake_override] overridden: - public open fun parallelStream (): @[EnhancedNullability] java.util.stream.Stream<@[EnhancedNullability] E of java.util.ArrayList?> [fake_override] declared in java.util.ArrayList + public open fun parallelStream (): @[EnhancedNullability] java.util.stream.Stream<@[EnhancedNullability] E of java.util.ArrayList?> declared in java.util.ArrayList $this: VALUE_PARAMETER name: type:kotlin.collections.Collection FUN FAKE_OVERRIDE name:removeAt visibility:public modality:OPEN <> ($this:java.util.ArrayList, p0:kotlin.Int) returnType:@[EnhancedNullability] kotlin.String [fake_override,operator] overridden: - public open fun removeAt (p0: kotlin.Int): @[EnhancedNullability] E of java.util.ArrayList [operator] declared in java.util.ArrayList + public open fun removeAt (p0: kotlin.Int): @[EnhancedNullability] E of java.util.ArrayList declared in java.util.ArrayList $this: VALUE_PARAMETER name: type:java.util.ArrayList VALUE_PARAMETER name:p0 index:0 type:kotlin.Int diff --git a/compiler/testData/ir/irText/firProblems/ArrayListOverrides.ir.txt b/compiler/testData/ir/irText/firProblems/ArrayListOverrides.ir.txt index fff737ab743..8130357e5d5 100644 --- a/compiler/testData/ir/irText/firProblems/ArrayListOverrides.ir.txt +++ b/compiler/testData/ir/irText/firProblems/ArrayListOverrides.ir.txt @@ -34,7 +34,7 @@ FILE fqName: fileName:/ArrayListOverrides.kt $this: VALUE_PARAMETER name: type:java.util.ArrayList FUN FAKE_OVERRIDE name:iterator visibility:public modality:OPEN <> ($this:java.util.ArrayList) returnType:@[EnhancedNullability] kotlin.collections.MutableIterator<@[EnhancedNullability] kotlin.String> [fake_override,operator] overridden: - public open fun iterator (): @[EnhancedNullability] kotlin.collections.MutableIterator<@[EnhancedNullability] E of java.util.ArrayList> [operator] declared in java.util.ArrayList + public open fun iterator (): @[EnhancedNullability] kotlin.collections.MutableIterator<@[EnhancedNullability] E of java.util.ArrayList> declared in java.util.ArrayList $this: VALUE_PARAMETER name: type:java.util.ArrayList FUN FAKE_OVERRIDE name:remove visibility:public modality:OPEN <> ($this:java.util.ArrayList, element:@[EnhancedNullability] kotlin.String) returnType:kotlin.Boolean [fake_override] overridden: @@ -53,12 +53,12 @@ FILE fqName: fileName:/ArrayListOverrides.kt VALUE_PARAMETER name:elements index:0 type:kotlin.collections.Collection<@[EnhancedNullability] kotlin.String> FUN FAKE_OVERRIDE name:contains visibility:public modality:OPEN <> ($this:java.util.ArrayList, element:@[EnhancedNullability] kotlin.String) returnType:kotlin.Boolean [fake_override,operator] overridden: - public open fun contains (element: @[EnhancedNullability] E of java.util.ArrayList): kotlin.Boolean [operator] declared in java.util.ArrayList + public open fun contains (element: @[EnhancedNullability] E of java.util.ArrayList): kotlin.Boolean declared in java.util.ArrayList $this: VALUE_PARAMETER name: type:java.util.ArrayList VALUE_PARAMETER name:element index:0 type:@[EnhancedNullability] kotlin.String FUN FAKE_OVERRIDE name:containsAll visibility:public modality:OPEN <> ($this:java.util.AbstractCollection<@[FlexibleNullability] kotlin.String?>, elements:kotlin.collections.Collection<@[EnhancedNullability] kotlin.String>) returnType:kotlin.Boolean [fake_override] overridden: - public open fun containsAll (elements: kotlin.collections.Collection<@[EnhancedNullability] E of java.util.ArrayList>): kotlin.Boolean [fake_override] declared in java.util.ArrayList + public open fun containsAll (elements: kotlin.collections.Collection<@[EnhancedNullability] E of java.util.ArrayList>): kotlin.Boolean declared in java.util.ArrayList $this: VALUE_PARAMETER name: type:java.util.AbstractCollection<@[FlexibleNullability] kotlin.String?> VALUE_PARAMETER name:elements index:0 type:kotlin.collections.Collection<@[EnhancedNullability] kotlin.String> FUN FAKE_OVERRIDE name:isEmpty visibility:public modality:OPEN <> ($this:java.util.ArrayList) returnType:kotlin.Boolean [fake_override] @@ -67,16 +67,16 @@ FILE fqName: fileName:/ArrayListOverrides.kt $this: VALUE_PARAMETER name: type:java.util.ArrayList FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:java.util.AbstractList<@[FlexibleNullability] kotlin.String?>, other:@[EnhancedNullability] kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public open fun equals (other: @[EnhancedNullability] kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in java.util.ArrayList + public open fun equals (other: @[EnhancedNullability] kotlin.Any?): kotlin.Boolean declared in java.util.ArrayList $this: VALUE_PARAMETER name: type:java.util.AbstractList<@[FlexibleNullability] kotlin.String?> VALUE_PARAMETER name:other index:0 type:@[EnhancedNullability] kotlin.Any? FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:java.util.AbstractList<@[FlexibleNullability] kotlin.String?>) returnType:kotlin.Int [fake_override] overridden: - public open fun hashCode (): kotlin.Int [fake_override] declared in java.util.ArrayList + public open fun hashCode (): kotlin.Int declared in java.util.ArrayList $this: VALUE_PARAMETER name: type:java.util.AbstractList<@[FlexibleNullability] kotlin.String?> FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:java.util.AbstractCollection<@[FlexibleNullability] kotlin.String?>) returnType:@[EnhancedNullability] kotlin.String [fake_override] overridden: - public open fun toString (): @[EnhancedNullability] kotlin.String [fake_override] declared in java.util.ArrayList + public open fun toString (): @[EnhancedNullability] kotlin.String declared in java.util.ArrayList $this: VALUE_PARAMETER name: type:java.util.AbstractCollection<@[FlexibleNullability] kotlin.String?> FUN FAKE_OVERRIDE name:forEach visibility:public modality:OPEN <> ($this:java.util.ArrayList, p0:@[FlexibleNullability] java.util.function.Consumer?) returnType:kotlin.Unit [fake_override] overridden: @@ -104,11 +104,11 @@ FILE fqName: fileName:/ArrayListOverrides.kt VALUE_PARAMETER name:p0 index:0 type:@[EnhancedNullability] java.util.function.Predicate FUN FAKE_OVERRIDE name:stream visibility:public modality:OPEN <> ($this:kotlin.collections.Collection<@[FlexibleNullability] kotlin.String?>) returnType:@[EnhancedNullability] java.util.stream.Stream<@[EnhancedNullability] kotlin.String> [fake_override] overridden: - public open fun stream (): @[EnhancedNullability] java.util.stream.Stream<@[EnhancedNullability] E of java.util.ArrayList> [fake_override] declared in java.util.ArrayList + public open fun stream (): @[EnhancedNullability] java.util.stream.Stream<@[EnhancedNullability] E of java.util.ArrayList> declared in java.util.ArrayList $this: VALUE_PARAMETER name: type:kotlin.collections.Collection<@[FlexibleNullability] kotlin.String?> FUN FAKE_OVERRIDE name:parallelStream visibility:public modality:OPEN <> ($this:kotlin.collections.Collection<@[FlexibleNullability] kotlin.String?>) returnType:@[EnhancedNullability] java.util.stream.Stream<@[EnhancedNullability] kotlin.String> [fake_override] overridden: - public open fun parallelStream (): @[EnhancedNullability] java.util.stream.Stream<@[EnhancedNullability] E of java.util.ArrayList> [fake_override] declared in java.util.ArrayList + public open fun parallelStream (): @[EnhancedNullability] java.util.stream.Stream<@[EnhancedNullability] E of java.util.ArrayList> declared in java.util.ArrayList $this: VALUE_PARAMETER name: type:kotlin.collections.Collection<@[FlexibleNullability] kotlin.String?> FUN FAKE_OVERRIDE name:listIterator visibility:public modality:OPEN <> ($this:java.util.ArrayList, index:kotlin.Int) returnType:@[EnhancedNullability] kotlin.collections.MutableListIterator<@[EnhancedNullability] kotlin.String> [fake_override] overridden: @@ -126,7 +126,7 @@ FILE fqName: fileName:/ArrayListOverrides.kt VALUE_PARAMETER name:p0 index:0 type:kotlin.Int FUN FAKE_OVERRIDE name:set visibility:public modality:OPEN <> ($this:java.util.ArrayList, index:kotlin.Int, element:@[EnhancedNullability] kotlin.String) returnType:@[EnhancedNullability] kotlin.String [fake_override,operator] overridden: - public open fun set (index: kotlin.Int, element: @[EnhancedNullability] E of java.util.ArrayList): @[EnhancedNullability] E of java.util.ArrayList [operator] declared in java.util.ArrayList + public open fun set (index: kotlin.Int, element: @[EnhancedNullability] E of java.util.ArrayList): @[EnhancedNullability] E of java.util.ArrayList declared in java.util.ArrayList $this: VALUE_PARAMETER name: type:java.util.ArrayList VALUE_PARAMETER name:index index:0 type:kotlin.Int VALUE_PARAMETER name:element index:1 type:@[EnhancedNullability] kotlin.String @@ -138,7 +138,7 @@ FILE fqName: fileName:/ArrayListOverrides.kt VALUE_PARAMETER name:toIndex index:1 type:kotlin.Int FUN FAKE_OVERRIDE name:get visibility:public modality:OPEN <> ($this:java.util.ArrayList, index:kotlin.Int) returnType:@[EnhancedNullability] kotlin.String [fake_override,operator] overridden: - public open fun get (index: kotlin.Int): @[EnhancedNullability] E of java.util.ArrayList [operator] declared in java.util.ArrayList + public open fun get (index: kotlin.Int): @[EnhancedNullability] E of java.util.ArrayList declared in java.util.ArrayList $this: VALUE_PARAMETER name: type:java.util.ArrayList VALUE_PARAMETER name:index index:0 type:kotlin.Int FUN FAKE_OVERRIDE name:indexOf visibility:public modality:OPEN <> ($this:java.util.ArrayList, element:@[EnhancedNullability] kotlin.String) returnType:kotlin.Int [fake_override] @@ -182,7 +182,7 @@ FILE fqName: fileName:/ArrayListOverrides.kt VALUE_PARAMETER name:p0 index:0 type:kotlin.Int PROPERTY FAKE_OVERRIDE name:size visibility:public modality:OPEN [fake_override,val] overridden: - public open size: kotlin.Int [val] + public open size: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:OPEN <> ($this:java.util.ArrayList) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:size visibility:public modality:OPEN [fake_override,val] overridden: @@ -190,7 +190,7 @@ FILE fqName: fileName:/ArrayListOverrides.kt $this: VALUE_PARAMETER name: type:java.util.ArrayList PROPERTY FAKE_OVERRIDE name:modCount visibility:protected/*protected and package*/ modality:FINAL [fake_override,var] overridden: - protected/*protected and package*/ final modCount: kotlin.Int [fake_override,var] + protected/*protected and package*/ final modCount: kotlin.Int CLASS CLASS name:A2 modality:FINAL visibility:public superTypes:[java.util.ArrayList] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.A2 CONSTRUCTOR visibility:public <> () returnType:.A2 [primary] @@ -234,7 +234,7 @@ FILE fqName: fileName:/ArrayListOverrides.kt $this: VALUE_PARAMETER name: type:java.util.ArrayList FUN FAKE_OVERRIDE name:iterator visibility:public modality:OPEN <> ($this:java.util.ArrayList) returnType:@[EnhancedNullability] kotlin.collections.MutableIterator<@[EnhancedNullability] kotlin.String> [fake_override,operator] overridden: - public open fun iterator (): @[EnhancedNullability] kotlin.collections.MutableIterator<@[EnhancedNullability] E of java.util.ArrayList> [operator] declared in java.util.ArrayList + public open fun iterator (): @[EnhancedNullability] kotlin.collections.MutableIterator<@[EnhancedNullability] E of java.util.ArrayList> declared in java.util.ArrayList $this: VALUE_PARAMETER name: type:java.util.ArrayList FUN FAKE_OVERRIDE name:removeAll visibility:public modality:OPEN <> ($this:java.util.ArrayList, elements:kotlin.collections.Collection<@[EnhancedNullability] kotlin.String>) returnType:kotlin.Boolean [fake_override] overridden: @@ -248,12 +248,12 @@ FILE fqName: fileName:/ArrayListOverrides.kt VALUE_PARAMETER name:elements index:0 type:kotlin.collections.Collection<@[EnhancedNullability] kotlin.String> FUN FAKE_OVERRIDE name:contains visibility:public modality:OPEN <> ($this:java.util.ArrayList, element:@[EnhancedNullability] kotlin.String) returnType:kotlin.Boolean [fake_override,operator] overridden: - public open fun contains (element: @[EnhancedNullability] E of java.util.ArrayList): kotlin.Boolean [operator] declared in java.util.ArrayList + public open fun contains (element: @[EnhancedNullability] E of java.util.ArrayList): kotlin.Boolean declared in java.util.ArrayList $this: VALUE_PARAMETER name: type:java.util.ArrayList VALUE_PARAMETER name:element index:0 type:@[EnhancedNullability] kotlin.String FUN FAKE_OVERRIDE name:containsAll visibility:public modality:OPEN <> ($this:java.util.AbstractCollection<@[FlexibleNullability] kotlin.String?>, elements:kotlin.collections.Collection<@[EnhancedNullability] kotlin.String>) returnType:kotlin.Boolean [fake_override] overridden: - public open fun containsAll (elements: kotlin.collections.Collection<@[EnhancedNullability] E of java.util.ArrayList>): kotlin.Boolean [fake_override] declared in java.util.ArrayList + public open fun containsAll (elements: kotlin.collections.Collection<@[EnhancedNullability] E of java.util.ArrayList>): kotlin.Boolean declared in java.util.ArrayList $this: VALUE_PARAMETER name: type:java.util.AbstractCollection<@[FlexibleNullability] kotlin.String?> VALUE_PARAMETER name:elements index:0 type:kotlin.collections.Collection<@[EnhancedNullability] kotlin.String> FUN FAKE_OVERRIDE name:isEmpty visibility:public modality:OPEN <> ($this:java.util.ArrayList) returnType:kotlin.Boolean [fake_override] @@ -262,16 +262,16 @@ FILE fqName: fileName:/ArrayListOverrides.kt $this: VALUE_PARAMETER name: type:java.util.ArrayList FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:java.util.AbstractList<@[FlexibleNullability] kotlin.String?>, other:@[EnhancedNullability] kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public open fun equals (other: @[EnhancedNullability] kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in java.util.ArrayList + public open fun equals (other: @[EnhancedNullability] kotlin.Any?): kotlin.Boolean declared in java.util.ArrayList $this: VALUE_PARAMETER name: type:java.util.AbstractList<@[FlexibleNullability] kotlin.String?> VALUE_PARAMETER name:other index:0 type:@[EnhancedNullability] kotlin.Any? FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:java.util.AbstractList<@[FlexibleNullability] kotlin.String?>) returnType:kotlin.Int [fake_override] overridden: - public open fun hashCode (): kotlin.Int [fake_override] declared in java.util.ArrayList + public open fun hashCode (): kotlin.Int declared in java.util.ArrayList $this: VALUE_PARAMETER name: type:java.util.AbstractList<@[FlexibleNullability] kotlin.String?> FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:java.util.AbstractCollection<@[FlexibleNullability] kotlin.String?>) returnType:@[EnhancedNullability] kotlin.String [fake_override] overridden: - public open fun toString (): @[EnhancedNullability] kotlin.String [fake_override] declared in java.util.ArrayList + public open fun toString (): @[EnhancedNullability] kotlin.String declared in java.util.ArrayList $this: VALUE_PARAMETER name: type:java.util.AbstractCollection<@[FlexibleNullability] kotlin.String?> FUN FAKE_OVERRIDE name:forEach visibility:public modality:OPEN <> ($this:java.util.ArrayList, p0:@[FlexibleNullability] java.util.function.Consumer?) returnType:kotlin.Unit [fake_override] overridden: @@ -299,11 +299,11 @@ FILE fqName: fileName:/ArrayListOverrides.kt VALUE_PARAMETER name:p0 index:0 type:@[EnhancedNullability] java.util.function.Predicate FUN FAKE_OVERRIDE name:stream visibility:public modality:OPEN <> ($this:kotlin.collections.Collection<@[FlexibleNullability] kotlin.String?>) returnType:@[EnhancedNullability] java.util.stream.Stream<@[EnhancedNullability] kotlin.String> [fake_override] overridden: - public open fun stream (): @[EnhancedNullability] java.util.stream.Stream<@[EnhancedNullability] E of java.util.ArrayList> [fake_override] declared in java.util.ArrayList + public open fun stream (): @[EnhancedNullability] java.util.stream.Stream<@[EnhancedNullability] E of java.util.ArrayList> declared in java.util.ArrayList $this: VALUE_PARAMETER name: type:kotlin.collections.Collection<@[FlexibleNullability] kotlin.String?> FUN FAKE_OVERRIDE name:parallelStream visibility:public modality:OPEN <> ($this:kotlin.collections.Collection<@[FlexibleNullability] kotlin.String?>) returnType:@[EnhancedNullability] java.util.stream.Stream<@[EnhancedNullability] kotlin.String> [fake_override] overridden: - public open fun parallelStream (): @[EnhancedNullability] java.util.stream.Stream<@[EnhancedNullability] E of java.util.ArrayList> [fake_override] declared in java.util.ArrayList + public open fun parallelStream (): @[EnhancedNullability] java.util.stream.Stream<@[EnhancedNullability] E of java.util.ArrayList> declared in java.util.ArrayList $this: VALUE_PARAMETER name: type:kotlin.collections.Collection<@[FlexibleNullability] kotlin.String?> FUN FAKE_OVERRIDE name:listIterator visibility:public modality:OPEN <> ($this:java.util.ArrayList, index:kotlin.Int) returnType:@[EnhancedNullability] kotlin.collections.MutableListIterator<@[EnhancedNullability] kotlin.String> [fake_override] overridden: @@ -321,7 +321,7 @@ FILE fqName: fileName:/ArrayListOverrides.kt VALUE_PARAMETER name:p0 index:0 type:kotlin.Int FUN FAKE_OVERRIDE name:set visibility:public modality:OPEN <> ($this:java.util.ArrayList, index:kotlin.Int, element:@[EnhancedNullability] kotlin.String) returnType:@[EnhancedNullability] kotlin.String [fake_override,operator] overridden: - public open fun set (index: kotlin.Int, element: @[EnhancedNullability] E of java.util.ArrayList): @[EnhancedNullability] E of java.util.ArrayList [operator] declared in java.util.ArrayList + public open fun set (index: kotlin.Int, element: @[EnhancedNullability] E of java.util.ArrayList): @[EnhancedNullability] E of java.util.ArrayList declared in java.util.ArrayList $this: VALUE_PARAMETER name: type:java.util.ArrayList VALUE_PARAMETER name:index index:0 type:kotlin.Int VALUE_PARAMETER name:element index:1 type:@[EnhancedNullability] kotlin.String @@ -333,7 +333,7 @@ FILE fqName: fileName:/ArrayListOverrides.kt VALUE_PARAMETER name:toIndex index:1 type:kotlin.Int FUN FAKE_OVERRIDE name:get visibility:public modality:OPEN <> ($this:java.util.ArrayList, index:kotlin.Int) returnType:@[EnhancedNullability] kotlin.String [fake_override,operator] overridden: - public open fun get (index: kotlin.Int): @[EnhancedNullability] E of java.util.ArrayList [operator] declared in java.util.ArrayList + public open fun get (index: kotlin.Int): @[EnhancedNullability] E of java.util.ArrayList declared in java.util.ArrayList $this: VALUE_PARAMETER name: type:java.util.ArrayList VALUE_PARAMETER name:index index:0 type:kotlin.Int FUN FAKE_OVERRIDE name:indexOf visibility:public modality:OPEN <> ($this:java.util.ArrayList, element:@[EnhancedNullability] kotlin.String) returnType:kotlin.Int [fake_override] @@ -377,7 +377,7 @@ FILE fqName: fileName:/ArrayListOverrides.kt VALUE_PARAMETER name:p0 index:0 type:kotlin.Int PROPERTY FAKE_OVERRIDE name:size visibility:public modality:OPEN [fake_override,val] overridden: - public open size: kotlin.Int [val] + public open size: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:OPEN <> ($this:java.util.ArrayList) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:size visibility:public modality:OPEN [fake_override,val] overridden: @@ -385,4 +385,4 @@ FILE fqName: fileName:/ArrayListOverrides.kt $this: VALUE_PARAMETER name: type:java.util.ArrayList PROPERTY FAKE_OVERRIDE name:modCount visibility:protected/*protected and package*/ modality:FINAL [fake_override,var] overridden: - protected/*protected and package*/ final modCount: kotlin.Int [fake_override,var] + protected/*protected and package*/ final modCount: kotlin.Int diff --git a/compiler/testData/ir/irText/firProblems/ArrayMap.fir.ir.txt b/compiler/testData/ir/irText/firProblems/ArrayMap.fir.ir.txt index 4ebd40f4b93..37a06671b64 100644 --- a/compiler/testData/ir/irText/firProblems/ArrayMap.fir.ir.txt +++ b/compiler/testData/ir/irText/firProblems/ArrayMap.fir.ir.txt @@ -8,7 +8,7 @@ FILE fqName: fileName:/ArrayMap.kt TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any] reified:false CONSTRUCTOR visibility:protected <> () returnType:.ArrayMap.ArrayMap> [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:ArrayMap modality:SEALED visibility:public superTypes:[kotlin.collections.Iterable.ArrayMap>]' PROPERTY name:size visibility:public modality:ABSTRACT [val] FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:ABSTRACT <> ($this:.ArrayMap.ArrayMap>) returnType:kotlin.Int @@ -25,20 +25,20 @@ FILE fqName: fileName:/ArrayMap.kt $this: VALUE_PARAMETER name: type:.ArrayMap.ArrayMap> FUN FAKE_OVERRIDE name:iterator visibility:public modality:ABSTRACT <> ($this:kotlin.collections.Iterable) returnType:kotlin.collections.Iterator.ArrayMap> [fake_override,operator] overridden: - public abstract fun iterator (): kotlin.collections.Iterator [operator] declared in kotlin.collections.Iterable + public abstract fun iterator (): kotlin.collections.Iterator declared in kotlin.collections.Iterable $this: VALUE_PARAMETER name: type:kotlin.collections.Iterable 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 kotlin.collections.Iterable + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.collections.Iterable $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 kotlin.collections.Iterable + public open fun hashCode (): kotlin.Int declared in kotlin.collections.Iterable $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 kotlin.collections.Iterable + public open fun toString (): kotlin.String declared in kotlin.collections.Iterable $this: VALUE_PARAMETER name: type:kotlin.Any FUN name:isEmpty visibility:public modality:FINAL <> ($receiver:.ArrayMap<*>) returnType:kotlin.Boolean $receiver: VALUE_PARAMETER name: type:.ArrayMap<*> @@ -52,7 +52,7 @@ FILE fqName: fileName:/ArrayMap.kt $receiver: VALUE_PARAMETER name: type:.ArrayMap<*> BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun isNotEmpty (): kotlin.Boolean declared in ' - CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ + CALL 'public final fun not (): kotlin.Boolean 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: CALL 'public abstract fun (): kotlin.Int declared in .ArrayMap' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR ': .ArrayMap<*> declared in .isNotEmpty' type=.ArrayMap<*> origin=null @@ -61,12 +61,12 @@ FILE fqName: fileName:/ArrayMap.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.EmptyArrayMap CONSTRUCTOR visibility:private <> () returnType:.EmptyArrayMap [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'protected constructor () [primary] declared in .ArrayMap' + DELEGATING_CONSTRUCTOR_CALL 'protected constructor () declared in .ArrayMap' : kotlin.Nothing INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:EmptyArrayMap modality:FINAL visibility:internal superTypes:[.ArrayMap]' PROPERTY name:size visibility:public modality:OPEN [val] overridden: - public abstract size: kotlin.Int [val] + public abstract size: kotlin.Int FUN name: visibility:public modality:OPEN <> ($this:.EmptyArrayMap) returnType:kotlin.Int correspondingProperty: PROPERTY name:size visibility:public modality:OPEN [val] overridden: @@ -77,7 +77,7 @@ FILE fqName: fileName:/ArrayMap.kt CONST Int type=kotlin.Int value=0 FUN name:set visibility:public modality:OPEN <> ($this:.EmptyArrayMap, index:kotlin.Int, value:kotlin.Nothing) returnType:kotlin.Unit [operator] overridden: - public abstract fun set (index: kotlin.Int, value: T of .ArrayMap): kotlin.Unit [operator] declared in .ArrayMap + public abstract fun set (index: kotlin.Int, value: T of .ArrayMap): kotlin.Unit declared in .ArrayMap $this: VALUE_PARAMETER name: type:.EmptyArrayMap VALUE_PARAMETER name:index index:0 type:kotlin.Int VALUE_PARAMETER name:value index:1 type:kotlin.Nothing @@ -86,11 +86,11 @@ FILE fqName: fileName:/ArrayMap.kt CONSTRUCTOR_CALL 'public constructor () declared in java.lang.IllegalStateException' type=java.lang.IllegalStateException origin=null FUN name:get visibility:public modality:OPEN <> ($this:.EmptyArrayMap, index:kotlin.Int) returnType:kotlin.Nothing? [operator] overridden: - public abstract fun get (index: kotlin.Int): T of .ArrayMap? [operator] declared in .ArrayMap + public abstract fun get (index: kotlin.Int): T of .ArrayMap? declared in .ArrayMap $this: VALUE_PARAMETER name: type:.EmptyArrayMap VALUE_PARAMETER name:index index:0 type:kotlin.Int BLOCK_BODY - RETURN type=kotlin.Nothing from='public open fun get (index: kotlin.Int): kotlin.Nothing? [operator] declared in .EmptyArrayMap' + RETURN type=kotlin.Nothing from='public open fun get (index: kotlin.Int): kotlin.Nothing? declared in .EmptyArrayMap' CONST Null type=kotlin.Nothing? value=null FUN name:copy visibility:public modality:OPEN <> ($this:.EmptyArrayMap) returnType:.ArrayMap overridden: @@ -101,58 +101,58 @@ FILE fqName: fileName:/ArrayMap.kt GET_VAR ': .EmptyArrayMap declared in .EmptyArrayMap.copy' type=.EmptyArrayMap origin=null FUN name:iterator visibility:public modality:OPEN <> ($this:.EmptyArrayMap) returnType:kotlin.collections.Iterator [operator] overridden: - public abstract fun iterator (): kotlin.collections.Iterator.ArrayMap> [fake_override,operator] declared in .ArrayMap + public abstract fun iterator (): kotlin.collections.Iterator.ArrayMap> declared in .ArrayMap $this: VALUE_PARAMETER name: type:.EmptyArrayMap BLOCK_BODY - RETURN type=kotlin.Nothing from='public open fun iterator (): kotlin.collections.Iterator [operator] declared in .EmptyArrayMap' + RETURN type=kotlin.Nothing from='public open fun iterator (): kotlin.collections.Iterator declared in .EmptyArrayMap' BLOCK type=.EmptyArrayMap.iterator. origin=OBJECT_LITERAL CLASS CLASS name: modality:FINAL visibility:local superTypes:[kotlin.collections.Iterator] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.EmptyArrayMap.iterator. CONSTRUCTOR visibility:public <> () returnType:.EmptyArrayMap.iterator. [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name: modality:FINAL visibility:local superTypes:[kotlin.collections.Iterator]' FUN name:hasNext visibility:public modality:OPEN <> ($this:.EmptyArrayMap.iterator.) returnType:kotlin.Boolean [operator] overridden: - public abstract fun hasNext (): kotlin.Boolean [operator] declared in kotlin.collections.Iterator + public abstract fun hasNext (): kotlin.Boolean declared in kotlin.collections.Iterator $this: VALUE_PARAMETER name: type:.EmptyArrayMap.iterator. BLOCK_BODY - RETURN type=kotlin.Nothing from='public open fun hasNext (): kotlin.Boolean [operator] declared in .EmptyArrayMap.iterator.' + RETURN type=kotlin.Nothing from='public open fun hasNext (): kotlin.Boolean declared in .EmptyArrayMap.iterator.' CONST Boolean type=kotlin.Boolean value=false FUN name:next visibility:public modality:OPEN <> ($this:.EmptyArrayMap.iterator.) returnType:kotlin.Nothing [operator] overridden: - public abstract fun next (): T of kotlin.collections.Iterator [operator] declared in kotlin.collections.Iterator + public abstract fun next (): T of kotlin.collections.Iterator declared in kotlin.collections.Iterator $this: VALUE_PARAMETER name: type:.EmptyArrayMap.iterator. BLOCK_BODY - RETURN type=kotlin.Nothing from='public open fun next (): kotlin.Nothing [operator] declared in .EmptyArrayMap.iterator.' + RETURN type=kotlin.Nothing from='public open fun next (): kotlin.Nothing declared in .EmptyArrayMap.iterator.' THROW type=kotlin.Nothing CONSTRUCTOR_CALL 'public constructor () declared in java.util.NoSuchElementException' type=java.util.NoSuchElementException 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 [fake_override,operator] declared in kotlin.collections.Iterator + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.collections.Iterator $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 kotlin.collections.Iterator + public open fun hashCode (): kotlin.Int declared in kotlin.collections.Iterator $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 kotlin.collections.Iterator + public open fun toString (): kotlin.String declared in kotlin.collections.Iterator $this: VALUE_PARAMETER name: type:kotlin.Any - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .EmptyArrayMap.iterator.' type=.EmptyArrayMap.iterator. origin=OBJECT_LITERAL + CONSTRUCTOR_CALL 'public constructor () declared in .EmptyArrayMap.iterator.' type=.EmptyArrayMap.iterator. origin=OBJECT_LITERAL 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 .ArrayMap + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .ArrayMap $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 .ArrayMap + public open fun hashCode (): kotlin.Int declared in .ArrayMap $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 .ArrayMap + public open fun toString (): kotlin.String declared in .ArrayMap $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:OneElementArrayMap modality:FINAL visibility:internal superTypes:[.ArrayMap.OneElementArrayMap>] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.OneElementArrayMap.OneElementArrayMap> @@ -161,7 +161,7 @@ FILE fqName: fileName:/ArrayMap.kt VALUE_PARAMETER name:value index:0 type:T of .OneElementArrayMap VALUE_PARAMETER name:index index:1 type:kotlin.Int BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'protected constructor () [primary] declared in .ArrayMap' + DELEGATING_CONSTRUCTOR_CALL 'protected constructor () declared in .ArrayMap' : T of .OneElementArrayMap INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:OneElementArrayMap modality:FINAL visibility:internal superTypes:[.ArrayMap.OneElementArrayMap>]' PROPERTY name:value visibility:public modality:FINAL [val] @@ -188,7 +188,7 @@ FILE fqName: fileName:/ArrayMap.kt receiver: GET_VAR ': .OneElementArrayMap.OneElementArrayMap> declared in .OneElementArrayMap.' type=.OneElementArrayMap.OneElementArrayMap> origin=null PROPERTY name:size visibility:public modality:OPEN [val] overridden: - public abstract size: kotlin.Int [val] + public abstract size: kotlin.Int FUN name: visibility:public modality:OPEN <> ($this:.OneElementArrayMap.OneElementArrayMap>) returnType:kotlin.Int correspondingProperty: PROPERTY name:size visibility:public modality:OPEN [val] overridden: @@ -199,7 +199,7 @@ FILE fqName: fileName:/ArrayMap.kt CONST Int type=kotlin.Int value=1 FUN name:set visibility:public modality:OPEN <> ($this:.OneElementArrayMap.OneElementArrayMap>, index:kotlin.Int, value:T of .OneElementArrayMap) returnType:kotlin.Unit [operator] overridden: - public abstract fun set (index: kotlin.Int, value: T of .ArrayMap): kotlin.Unit [operator] declared in .ArrayMap + public abstract fun set (index: kotlin.Int, value: T of .ArrayMap): kotlin.Unit declared in .ArrayMap $this: VALUE_PARAMETER name: type:.OneElementArrayMap.OneElementArrayMap> VALUE_PARAMETER name:index index:0 type:kotlin.Int VALUE_PARAMETER name:value index:1 type:T of .OneElementArrayMap @@ -208,11 +208,11 @@ FILE fqName: fileName:/ArrayMap.kt CONSTRUCTOR_CALL 'public constructor () declared in java.lang.IllegalStateException' type=java.lang.IllegalStateException origin=null FUN name:get visibility:public modality:OPEN <> ($this:.OneElementArrayMap.OneElementArrayMap>, index:kotlin.Int) returnType:T of .OneElementArrayMap? [operator] overridden: - public abstract fun get (index: kotlin.Int): T of .ArrayMap? [operator] declared in .ArrayMap + public abstract fun get (index: kotlin.Int): T of .ArrayMap? declared in .ArrayMap $this: VALUE_PARAMETER name: type:.OneElementArrayMap.OneElementArrayMap> VALUE_PARAMETER name:index index:0 type:kotlin.Int BLOCK_BODY - RETURN type=kotlin.Nothing from='public open fun get (index: kotlin.Int): T of .OneElementArrayMap? [operator] declared in .OneElementArrayMap' + RETURN type=kotlin.Nothing from='public open fun get (index: kotlin.Int): T of .OneElementArrayMap? declared in .OneElementArrayMap' WHEN type=T of .OneElementArrayMap? origin=IF BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ @@ -230,7 +230,7 @@ FILE fqName: fileName:/ArrayMap.kt $this: VALUE_PARAMETER name: type:.OneElementArrayMap.OneElementArrayMap> BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun copy (): .ArrayMap.OneElementArrayMap> declared in .OneElementArrayMap' - CONSTRUCTOR_CALL 'public constructor (value: T of .OneElementArrayMap, index: kotlin.Int) [primary] declared in .OneElementArrayMap' type=.OneElementArrayMap.OneElementArrayMap> origin=null + CONSTRUCTOR_CALL 'public constructor (value: T of .OneElementArrayMap, index: kotlin.Int) declared in .OneElementArrayMap' type=.OneElementArrayMap.OneElementArrayMap> origin=null : T of .OneElementArrayMap value: CALL 'public final fun (): T of .OneElementArrayMap declared in .OneElementArrayMap' type=T of .OneElementArrayMap origin=GET_PROPERTY $this: GET_VAR ': .OneElementArrayMap.OneElementArrayMap> declared in .OneElementArrayMap.copy' type=.OneElementArrayMap.OneElementArrayMap> origin=null @@ -238,16 +238,16 @@ FILE fqName: fileName:/ArrayMap.kt $this: GET_VAR ': .OneElementArrayMap.OneElementArrayMap> declared in .OneElementArrayMap.copy' type=.OneElementArrayMap.OneElementArrayMap> origin=null FUN name:iterator visibility:public modality:OPEN <> ($this:.OneElementArrayMap.OneElementArrayMap>) returnType:kotlin.collections.Iterator.OneElementArrayMap> [operator] overridden: - public abstract fun iterator (): kotlin.collections.Iterator.ArrayMap> [fake_override,operator] declared in .ArrayMap + public abstract fun iterator (): kotlin.collections.Iterator.ArrayMap> declared in .ArrayMap $this: VALUE_PARAMETER name: type:.OneElementArrayMap.OneElementArrayMap> BLOCK_BODY - RETURN type=kotlin.Nothing from='public open fun iterator (): kotlin.collections.Iterator.OneElementArrayMap> [operator] declared in .OneElementArrayMap' + RETURN type=kotlin.Nothing from='public open fun iterator (): kotlin.collections.Iterator.OneElementArrayMap> declared in .OneElementArrayMap' BLOCK type=.OneElementArrayMap.iterator..OneElementArrayMap> origin=OBJECT_LITERAL CLASS CLASS name: modality:FINAL visibility:local superTypes:[kotlin.collections.Iterator.OneElementArrayMap>] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.OneElementArrayMap.iterator..OneElementArrayMap> CONSTRUCTOR visibility:public <> () returnType:.OneElementArrayMap.iterator..OneElementArrayMap> [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name: modality:FINAL visibility:local superTypes:[kotlin.collections.Iterator.OneElementArrayMap>]' PROPERTY name:notVisited visibility:private modality:FINAL [var] FIELD PROPERTY_BACKING_FIELD name:notVisited type:kotlin.Boolean visibility:private @@ -270,15 +270,15 @@ FILE fqName: fileName:/ArrayMap.kt value: GET_VAR ': kotlin.Boolean declared in .OneElementArrayMap.iterator..' type=kotlin.Boolean origin=null FUN name:hasNext visibility:public modality:OPEN <> ($this:.OneElementArrayMap.iterator..OneElementArrayMap>) returnType:kotlin.Boolean [operator] overridden: - public abstract fun hasNext (): kotlin.Boolean [operator] declared in kotlin.collections.Iterator + public abstract fun hasNext (): kotlin.Boolean declared in kotlin.collections.Iterator $this: VALUE_PARAMETER name: type:.OneElementArrayMap.iterator..OneElementArrayMap> BLOCK_BODY - RETURN type=kotlin.Nothing from='public open fun hasNext (): kotlin.Boolean [operator] declared in .OneElementArrayMap.iterator.' + RETURN type=kotlin.Nothing from='public open fun hasNext (): kotlin.Boolean declared in .OneElementArrayMap.iterator.' CALL 'private final fun (): kotlin.Boolean declared in .OneElementArrayMap.iterator.' type=kotlin.Boolean origin=GET_PROPERTY $this: GET_VAR ': .OneElementArrayMap.iterator..OneElementArrayMap> declared in .OneElementArrayMap.iterator..hasNext' type=.OneElementArrayMap.iterator..OneElementArrayMap> origin=null FUN name:next visibility:public modality:OPEN <> ($this:.OneElementArrayMap.iterator..OneElementArrayMap>) returnType:T of .OneElementArrayMap [operator] overridden: - public abstract fun next (): T of kotlin.collections.Iterator [operator] declared in kotlin.collections.Iterator + public abstract fun next (): T of kotlin.collections.Iterator declared in kotlin.collections.Iterator $this: VALUE_PARAMETER name: type:.OneElementArrayMap.iterator..OneElementArrayMap> BLOCK_BODY WHEN type=kotlin.Nothing origin=IF @@ -289,7 +289,7 @@ FILE fqName: fileName:/ArrayMap.kt CALL 'private final fun (: kotlin.Boolean): kotlin.Unit declared in .OneElementArrayMap.iterator.' type=kotlin.Unit origin=EQ $this: GET_VAR ': .OneElementArrayMap.iterator..OneElementArrayMap> declared in .OneElementArrayMap.iterator..next' type=.OneElementArrayMap.iterator..OneElementArrayMap> origin=null : CONST Boolean type=kotlin.Boolean value=false - RETURN type=kotlin.Nothing from='public open fun next (): T of .OneElementArrayMap [operator] declared in .OneElementArrayMap.iterator.' + RETURN type=kotlin.Nothing from='public open fun next (): T of .OneElementArrayMap declared in .OneElementArrayMap.iterator.' CALL 'public final fun (): T of .OneElementArrayMap declared in .OneElementArrayMap' type=T of .OneElementArrayMap origin=GET_PROPERTY $this: GET_VAR ': .OneElementArrayMap.OneElementArrayMap> declared in .OneElementArrayMap.iterator' type=.OneElementArrayMap.OneElementArrayMap> origin=null BRANCH @@ -298,30 +298,30 @@ FILE fqName: fileName:/ArrayMap.kt CONSTRUCTOR_CALL 'public constructor () declared in java.util.NoSuchElementException' type=java.util.NoSuchElementException 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 [fake_override,operator] declared in kotlin.collections.Iterator + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.collections.Iterator $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 kotlin.collections.Iterator + public open fun hashCode (): kotlin.Int declared in kotlin.collections.Iterator $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 kotlin.collections.Iterator + public open fun toString (): kotlin.String declared in kotlin.collections.Iterator $this: VALUE_PARAMETER name: type:kotlin.Any - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .OneElementArrayMap.iterator.' type=.OneElementArrayMap.iterator..OneElementArrayMap> origin=OBJECT_LITERAL + CONSTRUCTOR_CALL 'public constructor () declared in .OneElementArrayMap.iterator.' type=.OneElementArrayMap.iterator..OneElementArrayMap> origin=OBJECT_LITERAL 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 .ArrayMap + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .ArrayMap $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 .ArrayMap + public open fun hashCode (): kotlin.Int declared in .ArrayMap $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 .ArrayMap + public open fun toString (): kotlin.String declared in .ArrayMap $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:ArrayMapImpl modality:FINAL visibility:internal superTypes:[.ArrayMap.ArrayMapImpl>] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.ArrayMapImpl.ArrayMapImpl> @@ -329,7 +329,7 @@ FILE fqName: fileName:/ArrayMap.kt CONSTRUCTOR visibility:private <> (data:kotlin.Array) returnType:.ArrayMapImpl.ArrayMapImpl> [primary] VALUE_PARAMETER name:data index:0 type:kotlin.Array BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'protected constructor () [primary] declared in .ArrayMap' + DELEGATING_CONSTRUCTOR_CALL 'protected constructor () declared in .ArrayMap' : T of .ArrayMapImpl INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:ArrayMapImpl modality:FINAL visibility:internal superTypes:[.ArrayMap.ArrayMapImpl>]' PROPERTY name:data visibility:private modality:FINAL [var] @@ -355,7 +355,7 @@ FILE fqName: fileName:/ArrayMap.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.ArrayMapImpl.Companion CONSTRUCTOR visibility:private <> () returnType:.ArrayMapImpl.Companion [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:Companion modality:FINAL visibility:public [companion] superTypes:[kotlin.Any]' PROPERTY name:DEFAULT_SIZE visibility:private modality:FINAL [const,val] FIELD PROPERTY_BACKING_FIELD name:DEFAULT_SIZE type:kotlin.Int visibility:private [final] @@ -381,7 +381,7 @@ FILE fqName: fileName:/ArrayMap.kt receiver: GET_VAR ': .ArrayMapImpl.Companion declared in .ArrayMapImpl.Companion.' type=.ArrayMapImpl.Companion 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -394,14 +394,14 @@ FILE fqName: fileName:/ArrayMap.kt $this: VALUE_PARAMETER name: type:kotlin.Any CONSTRUCTOR visibility:public <> () returnType:.ArrayMapImpl.ArrayMapImpl> BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'private constructor (data: kotlin.Array) [primary] declared in .ArrayMapImpl' + DELEGATING_CONSTRUCTOR_CALL 'private constructor (data: kotlin.Array) declared in .ArrayMapImpl' : T of .ArrayMapImpl data: CALL 'public final fun arrayOfNulls (size: kotlin.Int): kotlin.Array declared in kotlin' type=kotlin.Array origin=null : kotlin.Any size: CONST Int type=kotlin.Int value=20 PROPERTY name:size visibility:public modality:OPEN [var] overridden: - public abstract size: kotlin.Int [val] + public abstract size: kotlin.Int FIELD PROPERTY_BACKING_FIELD name:size type:kotlin.Int visibility:private EXPRESSION_BODY CONST Int type=kotlin.Int value=0 @@ -436,18 +436,18 @@ FILE fqName: fileName:/ArrayMap.kt then: BLOCK type=kotlin.Unit origin=null CALL 'private final fun (: kotlin.Array): kotlin.Unit declared in .ArrayMapImpl' type=kotlin.Unit origin=EQ $this: GET_VAR ': .ArrayMapImpl.ArrayMapImpl> declared in .ArrayMapImpl.ensureCapacity' type=.ArrayMapImpl.ArrayMapImpl> origin=null - : CALL 'public final fun copyOf (newSize: kotlin.Int): kotlin.Array [inline] declared in kotlin.collections.ArraysKt' type=kotlin.Array origin=null + : CALL 'public final fun copyOf (newSize: kotlin.Int): kotlin.Array declared in kotlin.collections.ArraysKt' type=kotlin.Array origin=null : kotlin.Any? $receiver: CALL 'private final fun (): kotlin.Array declared in .ArrayMapImpl' type=kotlin.Array origin=GET_PROPERTY $this: GET_VAR ': .ArrayMapImpl.ArrayMapImpl> declared in .ArrayMapImpl.ensureCapacity' type=.ArrayMapImpl.ArrayMapImpl> origin=null - newSize: CALL 'public final fun times (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=MUL + newSize: CALL 'public final fun times (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=MUL $this: CALL 'public final fun (): kotlin.Int declared in kotlin.Array' type=kotlin.Int origin=GET_PROPERTY $this: CALL 'private final fun (): kotlin.Array declared in .ArrayMapImpl' type=kotlin.Array origin=GET_PROPERTY $this: GET_VAR ': .ArrayMapImpl.ArrayMapImpl> declared in .ArrayMapImpl.ensureCapacity' type=.ArrayMapImpl.ArrayMapImpl> origin=null other: CONST Int type=kotlin.Int value=2 FUN name:set visibility:public modality:OPEN <> ($this:.ArrayMapImpl.ArrayMapImpl>, index:kotlin.Int, value:T of .ArrayMapImpl) returnType:kotlin.Unit [operator] overridden: - public abstract fun set (index: kotlin.Int, value: T of .ArrayMap): kotlin.Unit [operator] declared in .ArrayMap + public abstract fun set (index: kotlin.Int, value: T of .ArrayMap): kotlin.Unit declared in .ArrayMap $this: VALUE_PARAMETER name: type:.ArrayMapImpl.ArrayMapImpl> VALUE_PARAMETER name:index index:0 type:kotlin.Int VALUE_PARAMETER name:value index:1 type:T of .ArrayMapImpl @@ -458,7 +458,7 @@ FILE fqName: fileName:/ArrayMap.kt WHEN type=kotlin.Unit origin=IF BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: CALL 'public final fun get (index: kotlin.Int): T of kotlin.Array [operator] declared in kotlin.Array' type=kotlin.Any? origin=null + arg0: CALL 'public final fun get (index: kotlin.Int): T of kotlin.Array declared in kotlin.Array' type=kotlin.Any? origin=null $this: CALL 'private final fun (): kotlin.Array declared in .ArrayMapImpl' type=kotlin.Array origin=GET_PROPERTY $this: GET_VAR ': .ArrayMapImpl.ArrayMapImpl> declared in .ArrayMapImpl.set' type=.ArrayMapImpl.ArrayMapImpl> origin=null index: GET_VAR 'index: kotlin.Int declared in .ArrayMapImpl.set' type=kotlin.Int origin=null @@ -470,21 +470,21 @@ FILE fqName: fileName:/ArrayMap.kt $this: GET_VAR ': .ArrayMapImpl.ArrayMapImpl> declared in .ArrayMapImpl.set' type=.ArrayMapImpl.ArrayMapImpl> origin=null CALL 'private open fun (: kotlin.Int): kotlin.Unit declared in .ArrayMapImpl' type=kotlin.Unit origin=EQ $this: GET_VAR ': .ArrayMapImpl.ArrayMapImpl> declared in .ArrayMapImpl.set' type=.ArrayMapImpl.ArrayMapImpl> origin=null - : CALL 'public final fun inc (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp_0: kotlin.Int [val] declared in .ArrayMapImpl.set' type=kotlin.Int origin=null - GET_VAR 'val tmp_0: kotlin.Int [val] declared in .ArrayMapImpl.set' type=kotlin.Int origin=null - CALL 'public final fun set (index: kotlin.Int, value: T of kotlin.Array): kotlin.Unit [operator] declared in kotlin.Array' type=kotlin.Unit origin=null + : CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_0: kotlin.Int declared in .ArrayMapImpl.set' type=kotlin.Int origin=null + GET_VAR 'val tmp_0: kotlin.Int declared in .ArrayMapImpl.set' type=kotlin.Int origin=null + CALL 'public final fun set (index: kotlin.Int, value: T of kotlin.Array): kotlin.Unit declared in kotlin.Array' type=kotlin.Unit origin=null $this: CALL 'private final fun (): kotlin.Array declared in .ArrayMapImpl' type=kotlin.Array origin=GET_PROPERTY $this: GET_VAR ': .ArrayMapImpl.ArrayMapImpl> declared in .ArrayMapImpl.set' type=.ArrayMapImpl.ArrayMapImpl> origin=null index: GET_VAR 'index: kotlin.Int declared in .ArrayMapImpl.set' type=kotlin.Int origin=null value: GET_VAR 'value: T of .ArrayMapImpl declared in .ArrayMapImpl.set' type=T of .ArrayMapImpl origin=null FUN name:get visibility:public modality:OPEN <> ($this:.ArrayMapImpl.ArrayMapImpl>, index:kotlin.Int) returnType:T of .ArrayMapImpl? [operator] overridden: - public abstract fun get (index: kotlin.Int): T of .ArrayMap? [operator] declared in .ArrayMap + public abstract fun get (index: kotlin.Int): T of .ArrayMap? declared in .ArrayMap $this: VALUE_PARAMETER name: type:.ArrayMapImpl.ArrayMapImpl> VALUE_PARAMETER name:index index:0 type:kotlin.Int BLOCK_BODY - RETURN type=kotlin.Nothing from='public open fun get (index: kotlin.Int): T of .ArrayMapImpl? [operator] declared in .ArrayMapImpl' + RETURN type=kotlin.Nothing from='public open fun get (index: kotlin.Int): T of .ArrayMapImpl? declared in .ArrayMapImpl' TYPE_OP type=T of .ArrayMapImpl? origin=CAST typeOperand=T of .ArrayMapImpl? CALL 'public final fun getOrNull (index: kotlin.Int): T of kotlin.collections.ArraysKt.getOrNull? declared in kotlin.collections.ArraysKt' type=kotlin.Any? origin=null : kotlin.Any? @@ -497,24 +497,24 @@ FILE fqName: fileName:/ArrayMap.kt $this: VALUE_PARAMETER name: type:.ArrayMapImpl.ArrayMapImpl> BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun copy (): .ArrayMap.ArrayMapImpl> declared in .ArrayMapImpl' - CONSTRUCTOR_CALL 'private constructor (data: kotlin.Array) [primary] declared in .ArrayMapImpl' type=.ArrayMapImpl.ArrayMapImpl> origin=null + CONSTRUCTOR_CALL 'private constructor (data: kotlin.Array) declared in .ArrayMapImpl' type=.ArrayMapImpl.ArrayMapImpl> origin=null : T of .ArrayMapImpl - data: CALL 'public final fun copyOf (): kotlin.Array [inline] declared in kotlin.collections.ArraysKt' type=kotlin.Array origin=null + data: CALL 'public final fun copyOf (): kotlin.Array declared in kotlin.collections.ArraysKt' type=kotlin.Array origin=null : kotlin.Any? $receiver: CALL 'private final fun (): kotlin.Array declared in .ArrayMapImpl' type=kotlin.Array origin=GET_PROPERTY $this: GET_VAR ': .ArrayMapImpl.ArrayMapImpl> declared in .ArrayMapImpl.copy' type=.ArrayMapImpl.ArrayMapImpl> origin=null FUN name:iterator visibility:public modality:OPEN <> ($this:.ArrayMapImpl.ArrayMapImpl>) returnType:kotlin.collections.Iterator.ArrayMapImpl> [operator] overridden: - public abstract fun iterator (): kotlin.collections.Iterator.ArrayMap> [fake_override,operator] declared in .ArrayMap + public abstract fun iterator (): kotlin.collections.Iterator.ArrayMap> declared in .ArrayMap $this: VALUE_PARAMETER name: type:.ArrayMapImpl.ArrayMapImpl> BLOCK_BODY - RETURN type=kotlin.Nothing from='public open fun iterator (): kotlin.collections.Iterator.ArrayMapImpl> [operator] declared in .ArrayMapImpl' + RETURN type=kotlin.Nothing from='public open fun iterator (): kotlin.collections.Iterator.ArrayMapImpl> declared in .ArrayMapImpl' BLOCK type=.ArrayMapImpl.iterator..ArrayMapImpl> origin=OBJECT_LITERAL CLASS CLASS name: modality:FINAL visibility:local superTypes:[kotlin.collections.AbstractIterator.ArrayMapImpl>] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.ArrayMapImpl.iterator..ArrayMapImpl> CONSTRUCTOR visibility:public <> () returnType:.ArrayMapImpl.iterator..ArrayMapImpl> [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.collections.AbstractIterator' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.collections.AbstractIterator' : T of .ArrayMapImpl INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name: modality:FINAL visibility:local superTypes:[kotlin.collections.AbstractIterator.ArrayMapImpl>]' PROPERTY name:index visibility:private modality:FINAL [var] @@ -549,9 +549,9 @@ FILE fqName: fileName:/ArrayMap.kt $this: GET_VAR ': .ArrayMapImpl.iterator..ArrayMapImpl> declared in .ArrayMapImpl.iterator..computeNext' type=.ArrayMapImpl.iterator..ArrayMapImpl> origin=null CALL 'private final fun (: kotlin.Int): kotlin.Unit declared in .ArrayMapImpl.iterator.' type=kotlin.Unit origin=POSTFIX_INCR $this: GET_VAR ': .ArrayMapImpl.iterator..ArrayMapImpl> declared in .ArrayMapImpl.iterator..computeNext' type=.ArrayMapImpl.iterator..ArrayMapImpl> origin=null - : CALL 'public final fun inc (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp_1: kotlin.Int [val] declared in .ArrayMapImpl.iterator..computeNext' type=kotlin.Int origin=null - GET_VAR 'val tmp_1: kotlin.Int [val] declared in .ArrayMapImpl.iterator..computeNext' type=kotlin.Int origin=null + : CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_1: kotlin.Int declared in .ArrayMapImpl.iterator..computeNext' type=kotlin.Int origin=null + GET_VAR 'val tmp_1: kotlin.Int declared in .ArrayMapImpl.iterator..computeNext' type=kotlin.Int origin=null condition: WHEN type=kotlin.Boolean origin=ANDAND BRANCH if: CALL 'public final fun less (arg0: kotlin.Int, arg1: kotlin.Int): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=LT @@ -561,7 +561,7 @@ FILE fqName: fileName:/ArrayMap.kt $this: CALL 'private final fun (): kotlin.Array declared in .ArrayMapImpl' type=kotlin.Array origin=GET_PROPERTY $this: GET_VAR ': .ArrayMapImpl.ArrayMapImpl> declared in .ArrayMapImpl.iterator' type=.ArrayMapImpl.ArrayMapImpl> origin=null then: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: CALL 'public final fun get (index: kotlin.Int): T of kotlin.Array [operator] declared in kotlin.Array' type=kotlin.Any? origin=null + arg0: CALL 'public final fun get (index: kotlin.Int): T of kotlin.Array declared in kotlin.Array' type=kotlin.Any? origin=null $this: CALL 'private final fun (): kotlin.Array declared in .ArrayMapImpl' type=kotlin.Array origin=GET_PROPERTY $this: GET_VAR ': .ArrayMapImpl.ArrayMapImpl> declared in .ArrayMapImpl.iterator' type=.ArrayMapImpl.ArrayMapImpl> origin=null index: CALL 'private final fun (): kotlin.Int declared in .ArrayMapImpl.iterator.' type=kotlin.Int origin=GET_PROPERTY @@ -578,14 +578,14 @@ FILE fqName: fileName:/ArrayMap.kt arg1: CALL 'public final fun (): kotlin.Int declared in kotlin.Array' type=kotlin.Int origin=GET_PROPERTY $this: CALL 'private final fun (): kotlin.Array declared in .ArrayMapImpl' type=kotlin.Array origin=GET_PROPERTY $this: GET_VAR ': .ArrayMapImpl.ArrayMapImpl> declared in .ArrayMapImpl.iterator' type=.ArrayMapImpl.ArrayMapImpl> origin=null - then: CALL 'protected final fun done (): kotlin.Unit [fake_override] declared in .ArrayMapImpl.iterator.' type=kotlin.Unit origin=null + then: CALL 'protected final fun done (): kotlin.Unit declared in .ArrayMapImpl.iterator.' type=kotlin.Unit origin=null $this: GET_VAR ': .ArrayMapImpl.iterator..ArrayMapImpl> declared in .ArrayMapImpl.iterator..computeNext' type=.ArrayMapImpl.iterator..ArrayMapImpl> origin=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: CALL 'protected final fun setNext (value: T of .ArrayMapImpl): kotlin.Unit [fake_override] declared in .ArrayMapImpl.iterator.' type=kotlin.Unit origin=null + then: CALL 'protected final fun setNext (value: T of .ArrayMapImpl): kotlin.Unit declared in .ArrayMapImpl.iterator.' type=kotlin.Unit origin=null $this: GET_VAR ': .ArrayMapImpl.iterator..ArrayMapImpl> declared in .ArrayMapImpl.iterator..computeNext' type=.ArrayMapImpl.iterator..ArrayMapImpl> origin=null value: TYPE_OP type=T of .ArrayMapImpl origin=CAST typeOperand=T of .ArrayMapImpl - CALL 'public final fun get (index: kotlin.Int): T of kotlin.Array [operator] declared in kotlin.Array' type=kotlin.Any? origin=null + CALL 'public final fun get (index: kotlin.Int): T of kotlin.Array declared in kotlin.Array' type=kotlin.Any? origin=null $this: CALL 'private final fun (): kotlin.Array declared in .ArrayMapImpl' type=kotlin.Array origin=GET_PROPERTY $this: GET_VAR ': .ArrayMapImpl.ArrayMapImpl> declared in .ArrayMapImpl.iterator' type=.ArrayMapImpl.ArrayMapImpl> origin=null index: CALL 'private final fun (): kotlin.Int declared in .ArrayMapImpl.iterator.' type=kotlin.Int origin=GET_PROPERTY @@ -596,11 +596,11 @@ FILE fqName: fileName:/ArrayMap.kt $this: VALUE_PARAMETER name: type:kotlin.collections.AbstractIterator FUN FAKE_OVERRIDE name:hasNext visibility:public modality:OPEN <> ($this:kotlin.collections.AbstractIterator) returnType:kotlin.Boolean [fake_override,operator] overridden: - public open fun hasNext (): kotlin.Boolean [operator] declared in kotlin.collections.AbstractIterator + public open fun hasNext (): kotlin.Boolean declared in kotlin.collections.AbstractIterator $this: VALUE_PARAMETER name: type:kotlin.collections.AbstractIterator FUN FAKE_OVERRIDE name:next visibility:public modality:OPEN <> ($this:kotlin.collections.AbstractIterator) returnType:T of .ArrayMapImpl [fake_override,operator] overridden: - public open fun next (): T of kotlin.collections.AbstractIterator [operator] declared in kotlin.collections.AbstractIterator + public open fun next (): T of kotlin.collections.AbstractIterator declared in kotlin.collections.AbstractIterator $this: VALUE_PARAMETER name: type:kotlin.collections.AbstractIterator FUN FAKE_OVERRIDE name:setNext visibility:protected modality:FINAL <> ($this:kotlin.collections.AbstractIterator, value:T of .ArrayMapImpl) returnType:kotlin.Unit [fake_override] overridden: @@ -609,27 +609,27 @@ FILE fqName: fileName:/ArrayMap.kt VALUE_PARAMETER name:value index:0 type:T of .ArrayMapImpl 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 kotlin.collections.AbstractIterator + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.collections.AbstractIterator $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 kotlin.collections.AbstractIterator + public open fun hashCode (): kotlin.Int declared in kotlin.collections.AbstractIterator $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 kotlin.collections.AbstractIterator + public open fun toString (): kotlin.String declared in kotlin.collections.AbstractIterator $this: VALUE_PARAMETER name: type:kotlin.Any - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .ArrayMapImpl.iterator.' type=.ArrayMapImpl.iterator..ArrayMapImpl> origin=OBJECT_LITERAL + CONSTRUCTOR_CALL 'public constructor () declared in .ArrayMapImpl.iterator.' type=.ArrayMapImpl.iterator..ArrayMapImpl> origin=OBJECT_LITERAL FUN name:remove visibility:public modality:FINAL <> ($this:.ArrayMapImpl.ArrayMapImpl>, index:kotlin.Int) returnType:kotlin.Unit $this: VALUE_PARAMETER name: type:.ArrayMapImpl.ArrayMapImpl> VALUE_PARAMETER name:index index:0 type:kotlin.Int BLOCK_BODY WHEN type=kotlin.Unit origin=IF BRANCH - if: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ + if: CALL 'public final fun not (): kotlin.Boolean 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: CALL 'public final fun get (index: kotlin.Int): T of kotlin.Array [operator] declared in kotlin.Array' type=kotlin.Any? origin=null + arg0: CALL 'public final fun get (index: kotlin.Int): T of kotlin.Array declared in kotlin.Array' type=kotlin.Any? origin=null $this: CALL 'private final fun (): kotlin.Array declared in .ArrayMapImpl' type=kotlin.Array origin=GET_PROPERTY $this: GET_VAR ': .ArrayMapImpl.ArrayMapImpl> declared in .ArrayMapImpl.remove' type=.ArrayMapImpl.ArrayMapImpl> origin=null index: GET_VAR 'index: kotlin.Int declared in .ArrayMapImpl.remove' type=kotlin.Int origin=null @@ -641,10 +641,10 @@ FILE fqName: fileName:/ArrayMap.kt $this: GET_VAR ': .ArrayMapImpl.ArrayMapImpl> declared in .ArrayMapImpl.remove' type=.ArrayMapImpl.ArrayMapImpl> origin=null CALL 'private open fun (: kotlin.Int): kotlin.Unit declared in .ArrayMapImpl' type=kotlin.Unit origin=EQ $this: GET_VAR ': .ArrayMapImpl.ArrayMapImpl> declared in .ArrayMapImpl.remove' type=.ArrayMapImpl.ArrayMapImpl> origin=null - : CALL 'public final fun dec (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp_2: kotlin.Int [val] declared in .ArrayMapImpl.remove' type=kotlin.Int origin=null - GET_VAR 'val tmp_2: kotlin.Int [val] declared in .ArrayMapImpl.remove' type=kotlin.Int origin=null - CALL 'public final fun set (index: kotlin.Int, value: T of kotlin.Array): kotlin.Unit [operator] declared in kotlin.Array' type=kotlin.Unit origin=null + : CALL 'public final fun dec (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_2: kotlin.Int declared in .ArrayMapImpl.remove' type=kotlin.Int origin=null + GET_VAR 'val tmp_2: kotlin.Int declared in .ArrayMapImpl.remove' type=kotlin.Int origin=null + CALL 'public final fun set (index: kotlin.Int, value: T of kotlin.Array): kotlin.Unit declared in kotlin.Array' type=kotlin.Unit origin=null $this: CALL 'private final fun (): kotlin.Array declared in .ArrayMapImpl' type=kotlin.Array origin=GET_PROPERTY $this: GET_VAR ': .ArrayMapImpl.ArrayMapImpl> declared in .ArrayMapImpl.remove' type=.ArrayMapImpl.ArrayMapImpl> origin=null index: GET_VAR 'index: kotlin.Int declared in .ArrayMapImpl.remove' type=kotlin.Int origin=null @@ -653,7 +653,7 @@ FILE fqName: fileName:/ArrayMap.kt $this: VALUE_PARAMETER name: type:.ArrayMapImpl.ArrayMapImpl> BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun entries (): kotlin.collections.List<.ArrayMapImpl.Entry.ArrayMapImpl>> declared in .ArrayMapImpl' - CALL 'public final fun mapIndexedNotNull (transform: kotlin.Function2<@[ParameterName(name = 'index')] kotlin.Int, T of kotlin.collections.ArraysKt.mapIndexedNotNull, R of kotlin.collections.ArraysKt.mapIndexedNotNull?>): kotlin.collections.List [inline] declared in kotlin.collections.ArraysKt' type=kotlin.collections.List<.ArrayMapImpl.Entry.ArrayMapImpl>> origin=null + CALL 'public final fun mapIndexedNotNull (transform: kotlin.Function2<@[ParameterName(name = 'index')] kotlin.Int, T of kotlin.collections.ArraysKt.mapIndexedNotNull, R of kotlin.collections.ArraysKt.mapIndexedNotNull?>): kotlin.collections.List declared in kotlin.collections.ArraysKt' type=kotlin.collections.List<.ArrayMapImpl.Entry.ArrayMapImpl>> origin=null : kotlin.Any? : .ArrayMapImpl.Entry.ArrayMapImpl> $receiver: CALL 'private final fun (): kotlin.Array declared in .ArrayMapImpl' type=kotlin.Array origin=GET_PROPERTY @@ -666,11 +666,11 @@ FILE fqName: fileName:/ArrayMap.kt RETURN type=kotlin.Nothing from='local final fun (index: @[ParameterName(name = 'index')] kotlin.Int, value: kotlin.Any?): .ArrayMapImpl.Entry.ArrayMapImpl>? declared in .ArrayMapImpl.entries' WHEN type=.ArrayMapImpl.Entry.ArrayMapImpl>? origin=IF BRANCH - if: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ + if: CALL 'public final fun not (): kotlin.Boolean 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_VAR 'value: kotlin.Any? declared in .ArrayMapImpl.entries.' type=kotlin.Any? origin=null arg1: CONST Null type=kotlin.Nothing? value=null - then: CONSTRUCTOR_CALL 'public constructor (key: kotlin.Int, value: T of .ArrayMapImpl.Entry) [primary] declared in .ArrayMapImpl.Entry' type=.ArrayMapImpl.Entry.ArrayMapImpl> origin=null + then: CONSTRUCTOR_CALL 'public constructor (key: kotlin.Int, value: T of .ArrayMapImpl.Entry) declared in .ArrayMapImpl.Entry' type=.ArrayMapImpl.Entry.ArrayMapImpl> origin=null : T of .ArrayMapImpl key: GET_VAR 'index: @[ParameterName(name = 'index')] kotlin.Int declared in .ArrayMapImpl.entries.' type=@[ParameterName(name = 'index')] kotlin.Int origin=null value: TYPE_OP type=T of .ArrayMapImpl origin=CAST typeOperand=T of .ArrayMapImpl @@ -685,11 +685,11 @@ FILE fqName: fileName:/ArrayMap.kt VALUE_PARAMETER name:key index:0 type:kotlin.Int VALUE_PARAMETER name:value index:1 type:T of .ArrayMapImpl.Entry BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Entry modality:FINAL visibility:public [data] superTypes:[kotlin.collections.Map.Entry.ArrayMapImpl.Entry>]' PROPERTY name:key visibility:public modality:OPEN [val] overridden: - public abstract key: K of kotlin.collections.Map.Entry [val] + public abstract key: K of kotlin.collections.Map.Entry FIELD PROPERTY_BACKING_FIELD name:key type:kotlin.Int visibility:private [final] EXPRESSION_BODY GET_VAR 'key: kotlin.Int declared in .ArrayMapImpl.Entry.' type=kotlin.Int origin=INITIALIZE_PROPERTY_FROM_PARAMETER @@ -704,7 +704,7 @@ FILE fqName: fileName:/ArrayMap.kt receiver: GET_VAR ': .ArrayMapImpl.Entry.ArrayMapImpl.Entry> declared in .ArrayMapImpl.Entry.' type=.ArrayMapImpl.Entry.ArrayMapImpl.Entry> origin=null PROPERTY name:value visibility:public modality:OPEN [val] overridden: - public abstract value: V of kotlin.collections.Map.Entry [val] + public abstract value: V of kotlin.collections.Map.Entry FIELD PROPERTY_BACKING_FIELD name:value type:T of .ArrayMapImpl.Entry visibility:private [final] EXPRESSION_BODY GET_VAR 'value: T of .ArrayMapImpl.Entry declared in .ArrayMapImpl.Entry.' type=T of .ArrayMapImpl.Entry origin=INITIALIZE_PROPERTY_FROM_PARAMETER @@ -720,13 +720,13 @@ FILE fqName: fileName:/ArrayMap.kt FUN GENERATED_DATA_CLASS_MEMBER name:component1 visibility:public modality:FINAL <> ($this:.ArrayMapImpl.Entry.ArrayMapImpl.Entry>) returnType:kotlin.Int [operator] $this: VALUE_PARAMETER name: type:.ArrayMapImpl.Entry.ArrayMapImpl.Entry> BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Int [operator] declared in .ArrayMapImpl.Entry' + RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Int declared in .ArrayMapImpl.Entry' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:key type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null receiver: GET_VAR ': .ArrayMapImpl.Entry.ArrayMapImpl.Entry> declared in .ArrayMapImpl.Entry.component1' type=.ArrayMapImpl.Entry.ArrayMapImpl.Entry> origin=null FUN GENERATED_DATA_CLASS_MEMBER name:component2 visibility:public modality:FINAL <> ($this:.ArrayMapImpl.Entry.ArrayMapImpl.Entry>) returnType:T of .ArrayMapImpl.Entry [operator] $this: VALUE_PARAMETER name: type:.ArrayMapImpl.Entry.ArrayMapImpl.Entry> BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component2 (): T of .ArrayMapImpl.Entry [operator] declared in .ArrayMapImpl.Entry' + RETURN type=kotlin.Nothing from='public final fun component2 (): T of .ArrayMapImpl.Entry declared in .ArrayMapImpl.Entry' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:value type:T of .ArrayMapImpl.Entry visibility:private [final]' type=T of .ArrayMapImpl.Entry origin=null receiver: GET_VAR ': .ArrayMapImpl.Entry.ArrayMapImpl.Entry> declared in .ArrayMapImpl.Entry.component2' type=.ArrayMapImpl.Entry.ArrayMapImpl.Entry> origin=null FUN GENERATED_DATA_CLASS_MEMBER name:copy visibility:public modality:FINAL <> ($this:.ArrayMapImpl.Entry.ArrayMapImpl.Entry>, key:kotlin.Int, value:T of .ArrayMapImpl.Entry) returnType:.ArrayMapImpl.Entry.ArrayMapImpl.Entry> @@ -741,13 +741,13 @@ FILE fqName: fileName:/ArrayMap.kt receiver: GET_VAR ': .ArrayMapImpl.Entry.ArrayMapImpl.Entry> declared in .ArrayMapImpl.Entry.copy' type=.ArrayMapImpl.Entry.ArrayMapImpl.Entry> origin=null BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun copy (key: kotlin.Int, value: T of .ArrayMapImpl.Entry): .ArrayMapImpl.Entry.ArrayMapImpl.Entry> declared in .ArrayMapImpl.Entry' - CONSTRUCTOR_CALL 'public constructor (key: kotlin.Int, value: T of .ArrayMapImpl.Entry) [primary] declared in .ArrayMapImpl.Entry' type=.ArrayMapImpl.Entry.ArrayMapImpl.Entry> origin=null + CONSTRUCTOR_CALL 'public constructor (key: kotlin.Int, value: T of .ArrayMapImpl.Entry) declared in .ArrayMapImpl.Entry' type=.ArrayMapImpl.Entry.ArrayMapImpl.Entry> origin=null : kotlin.Any key: GET_VAR 'key: kotlin.Int declared in .ArrayMapImpl.Entry.copy' type=kotlin.Int origin=null value: GET_VAR 'value: T of .ArrayMapImpl.Entry declared in .ArrayMapImpl.Entry.copy' type=T of .ArrayMapImpl.Entry origin=null FUN GENERATED_DATA_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:.ArrayMapImpl.Entry.ArrayMapImpl.Entry>, other:kotlin.Any?) returnType:kotlin.Boolean [operator] overridden: - public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any $this: VALUE_PARAMETER name: type:.ArrayMapImpl.Entry.ArrayMapImpl.Entry> VALUE_PARAMETER name:other index:0 type:kotlin.Any? BLOCK_BODY @@ -756,38 +756,38 @@ FILE fqName: fileName:/ArrayMap.kt 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 ': .ArrayMapImpl.Entry.ArrayMapImpl.Entry> declared in .ArrayMapImpl.Entry.equals' type=.ArrayMapImpl.Entry.ArrayMapImpl.Entry> origin=null arg1: GET_VAR 'other: kotlin.Any? declared in .ArrayMapImpl.Entry.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .ArrayMapImpl.Entry' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .ArrayMapImpl.Entry' CONST Boolean type=kotlin.Boolean value=true WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=.ArrayMapImpl.Entry.ArrayMapImpl.Entry> GET_VAR 'other: kotlin.Any? declared in .ArrayMapImpl.Entry.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .ArrayMapImpl.Entry' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .ArrayMapImpl.Entry' CONST Boolean type=kotlin.Boolean value=false VAR IR_TEMPORARY_VARIABLE name:tmp_3 type:.ArrayMapImpl.Entry.ArrayMapImpl.Entry> [val] TYPE_OP type=.ArrayMapImpl.Entry.ArrayMapImpl.Entry> origin=CAST typeOperand=.ArrayMapImpl.Entry.ArrayMapImpl.Entry> GET_VAR 'other: kotlin.Any? declared in .ArrayMapImpl.Entry.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 + if: CALL 'public final fun not (): kotlin.Boolean 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:key type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null receiver: GET_VAR ': .ArrayMapImpl.Entry.ArrayMapImpl.Entry> declared in .ArrayMapImpl.Entry.equals' type=.ArrayMapImpl.Entry.ArrayMapImpl.Entry> origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:key type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null - receiver: GET_VAR 'val tmp_3: .ArrayMapImpl.Entry.ArrayMapImpl.Entry> [val] declared in .ArrayMapImpl.Entry.equals' type=.ArrayMapImpl.Entry.ArrayMapImpl.Entry> origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .ArrayMapImpl.Entry' + receiver: GET_VAR 'val tmp_3: .ArrayMapImpl.Entry.ArrayMapImpl.Entry> declared in .ArrayMapImpl.Entry.equals' type=.ArrayMapImpl.Entry.ArrayMapImpl.Entry> origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .ArrayMapImpl.Entry' CONST Boolean type=kotlin.Boolean value=false 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 + if: CALL 'public final fun not (): kotlin.Boolean 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:value type:T of .ArrayMapImpl.Entry visibility:private [final]' type=T of .ArrayMapImpl.Entry origin=null receiver: GET_VAR ': .ArrayMapImpl.Entry.ArrayMapImpl.Entry> declared in .ArrayMapImpl.Entry.equals' type=.ArrayMapImpl.Entry.ArrayMapImpl.Entry> origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:value type:T of .ArrayMapImpl.Entry visibility:private [final]' type=T of .ArrayMapImpl.Entry origin=null - receiver: GET_VAR 'val tmp_3: .ArrayMapImpl.Entry.ArrayMapImpl.Entry> [val] declared in .ArrayMapImpl.Entry.equals' type=.ArrayMapImpl.Entry.ArrayMapImpl.Entry> origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .ArrayMapImpl.Entry' + receiver: GET_VAR 'val tmp_3: .ArrayMapImpl.Entry.ArrayMapImpl.Entry> declared in .ArrayMapImpl.Entry.equals' type=.ArrayMapImpl.Entry.ArrayMapImpl.Entry> origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .ArrayMapImpl.Entry' CONST Boolean type=kotlin.Boolean value=false - RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .ArrayMapImpl.Entry' + RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .ArrayMapImpl.Entry' CONST Boolean type=kotlin.Boolean value=true FUN GENERATED_DATA_CLASS_MEMBER name:hashCode visibility:public modality:OPEN <> ($this:.ArrayMapImpl.Entry.ArrayMapImpl.Entry>) returnType:kotlin.Int overridden: @@ -795,13 +795,13 @@ FILE fqName: fileName:/ArrayMap.kt $this: VALUE_PARAMETER name: type:.ArrayMapImpl.Entry.ArrayMapImpl.Entry> BLOCK_BODY VAR name:result type:kotlin.Int [var] - CALL 'public open fun hashCode (): kotlin.Int [fake_override] declared in kotlin.Int' type=kotlin.Int origin=null + CALL 'public open fun hashCode (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:key type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null receiver: GET_VAR ': .ArrayMapImpl.Entry.ArrayMapImpl.Entry> declared in .ArrayMapImpl.Entry.hashCode' type=.ArrayMapImpl.Entry.ArrayMapImpl.Entry> origin=null - SET_VAR 'var result: kotlin.Int [var] declared in .ArrayMapImpl.Entry.hashCode' type=kotlin.Unit origin=EQ - CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: CALL 'public final fun times (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'var result: kotlin.Int [var] declared in .ArrayMapImpl.Entry.hashCode' type=kotlin.Int origin=null + SET_VAR 'var result: kotlin.Int declared in .ArrayMapImpl.Entry.hashCode' type=kotlin.Unit origin=EQ + CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: CALL 'public final fun times (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'var result: kotlin.Int declared in .ArrayMapImpl.Entry.hashCode' type=kotlin.Int origin=null other: CONST Int type=kotlin.Int value=31 other: WHEN type=kotlin.Int origin=null BRANCH @@ -816,7 +816,7 @@ FILE fqName: fileName:/ArrayMap.kt $this: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:value type:T of .ArrayMapImpl.Entry visibility:private [final]' type=T of .ArrayMapImpl.Entry origin=null receiver: GET_VAR ': .ArrayMapImpl.Entry.ArrayMapImpl.Entry> declared in .ArrayMapImpl.Entry.hashCode' type=.ArrayMapImpl.Entry.ArrayMapImpl.Entry> origin=null RETURN type=kotlin.Nothing from='public open fun hashCode (): kotlin.Int declared in .ArrayMapImpl.Entry' - GET_VAR 'var result: kotlin.Int [var] declared in .ArrayMapImpl.Entry.hashCode' type=kotlin.Int origin=null + GET_VAR 'var result: kotlin.Int declared in .ArrayMapImpl.Entry.hashCode' type=kotlin.Int origin=null FUN GENERATED_DATA_CLASS_MEMBER name:toString visibility:public modality:OPEN <> ($this:.ArrayMapImpl.Entry.ArrayMapImpl.Entry>) returnType:kotlin.String overridden: public open fun toString (): kotlin.String declared in kotlin.Any @@ -833,14 +833,14 @@ FILE fqName: fileName:/ArrayMap.kt CONST String type=kotlin.String value=")" 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 .ArrayMap + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .ArrayMap $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 .ArrayMap + public open fun hashCode (): kotlin.Int declared in .ArrayMap $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 .ArrayMap + public open fun toString (): kotlin.String declared in .ArrayMap $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/firProblems/ArrayMap.ir.txt b/compiler/testData/ir/irText/firProblems/ArrayMap.ir.txt index 856fb6f7dc6..ef900df7e02 100644 --- a/compiler/testData/ir/irText/firProblems/ArrayMap.ir.txt +++ b/compiler/testData/ir/irText/firProblems/ArrayMap.ir.txt @@ -8,7 +8,7 @@ FILE fqName: fileName:/ArrayMap.kt TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any] reified:false CONSTRUCTOR visibility:protected <> () returnType:.ArrayMap.ArrayMap> [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:ArrayMap modality:SEALED visibility:public superTypes:[kotlin.collections.Iterable.ArrayMap>]' PROPERTY name:size visibility:public modality:ABSTRACT [val] FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:ABSTRACT <> ($this:.ArrayMap.ArrayMap>) returnType:kotlin.Int @@ -25,20 +25,20 @@ FILE fqName: fileName:/ArrayMap.kt $this: VALUE_PARAMETER name: type:.ArrayMap.ArrayMap> 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 kotlin.collections.Iterable + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.collections.Iterable $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 kotlin.collections.Iterable + public open fun hashCode (): kotlin.Int declared in kotlin.collections.Iterable $this: VALUE_PARAMETER name: type:kotlin.Any FUN FAKE_OVERRIDE name:iterator visibility:public modality:ABSTRACT <> ($this:kotlin.collections.Iterable.ArrayMap>) returnType:kotlin.collections.Iterator.ArrayMap> [fake_override,operator] overridden: - public abstract fun iterator (): kotlin.collections.Iterator [operator] declared in kotlin.collections.Iterable + public abstract fun iterator (): kotlin.collections.Iterator declared in kotlin.collections.Iterable $this: VALUE_PARAMETER name: type:kotlin.collections.Iterable.ArrayMap> 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 kotlin.collections.Iterable + public open fun toString (): kotlin.String declared in kotlin.collections.Iterable $this: VALUE_PARAMETER name: type:kotlin.Any FUN name:isEmpty visibility:public modality:FINAL <> ($receiver:.ArrayMap<*>) returnType:kotlin.Boolean $receiver: VALUE_PARAMETER name: type:.ArrayMap<*> @@ -52,7 +52,7 @@ FILE fqName: fileName:/ArrayMap.kt $receiver: VALUE_PARAMETER name: type:.ArrayMap<*> BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun isNotEmpty (): kotlin.Boolean declared in ' - CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ + CALL 'public final fun not (): kotlin.Boolean 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: CALL 'public abstract fun (): kotlin.Int declared in .ArrayMap' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR ': .ArrayMap<*> declared in .isNotEmpty' type=.ArrayMap<*> origin=null @@ -61,12 +61,12 @@ FILE fqName: fileName:/ArrayMap.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.EmptyArrayMap CONSTRUCTOR visibility:private <> () returnType:.EmptyArrayMap [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'protected constructor () [primary] declared in .ArrayMap' + DELEGATING_CONSTRUCTOR_CALL 'protected constructor () declared in .ArrayMap' : kotlin.Nothing INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:EmptyArrayMap modality:FINAL visibility:internal superTypes:[.ArrayMap]' PROPERTY name:size visibility:public modality:OPEN [val] overridden: - public abstract size: kotlin.Int [val] + public abstract size: kotlin.Int FUN name: visibility:public modality:OPEN <> ($this:.EmptyArrayMap) returnType:kotlin.Int correspondingProperty: PROPERTY name:size visibility:public modality:OPEN [val] overridden: @@ -77,7 +77,7 @@ FILE fqName: fileName:/ArrayMap.kt CONST Int type=kotlin.Int value=0 FUN name:set visibility:public modality:OPEN <> ($this:.EmptyArrayMap, index:kotlin.Int, value:kotlin.Nothing) returnType:kotlin.Unit [operator] overridden: - public abstract fun set (index: kotlin.Int, value: T of .ArrayMap): kotlin.Unit [operator] declared in .ArrayMap + public abstract fun set (index: kotlin.Int, value: T of .ArrayMap): kotlin.Unit declared in .ArrayMap $this: VALUE_PARAMETER name: type:.EmptyArrayMap VALUE_PARAMETER name:index index:0 type:kotlin.Int VALUE_PARAMETER name:value index:1 type:kotlin.Nothing @@ -86,11 +86,11 @@ FILE fqName: fileName:/ArrayMap.kt CONSTRUCTOR_CALL 'public constructor () declared in java.lang.IllegalStateException' type=java.lang.IllegalStateException origin=null FUN name:get visibility:public modality:OPEN <> ($this:.EmptyArrayMap, index:kotlin.Int) returnType:kotlin.Nothing? [operator] overridden: - public abstract fun get (index: kotlin.Int): T of .ArrayMap? [operator] declared in .ArrayMap + public abstract fun get (index: kotlin.Int): T of .ArrayMap? declared in .ArrayMap $this: VALUE_PARAMETER name: type:.EmptyArrayMap VALUE_PARAMETER name:index index:0 type:kotlin.Int BLOCK_BODY - RETURN type=kotlin.Nothing from='public open fun get (index: kotlin.Int): kotlin.Nothing? [operator] declared in .EmptyArrayMap' + RETURN type=kotlin.Nothing from='public open fun get (index: kotlin.Int): kotlin.Nothing? declared in .EmptyArrayMap' CONST Null type=kotlin.Nothing? value=null FUN name:copy visibility:public modality:OPEN <> ($this:.EmptyArrayMap) returnType:.ArrayMap overridden: @@ -101,57 +101,57 @@ FILE fqName: fileName:/ArrayMap.kt GET_VAR ': .EmptyArrayMap declared in .EmptyArrayMap.copy' type=.EmptyArrayMap origin=null FUN name:iterator visibility:public modality:OPEN <> ($this:.EmptyArrayMap) returnType:kotlin.collections.Iterator [operator] overridden: - public abstract fun iterator (): kotlin.collections.Iterator.ArrayMap> [fake_override,operator] declared in .ArrayMap + public abstract fun iterator (): kotlin.collections.Iterator.ArrayMap> declared in .ArrayMap $this: VALUE_PARAMETER name: type:.EmptyArrayMap BLOCK_BODY - RETURN type=kotlin.Nothing from='public open fun iterator (): kotlin.collections.Iterator [operator] declared in .EmptyArrayMap' + RETURN type=kotlin.Nothing from='public open fun iterator (): kotlin.collections.Iterator declared in .EmptyArrayMap' BLOCK type=.EmptyArrayMap.iterator. origin=OBJECT_LITERAL CLASS CLASS name: modality:FINAL visibility:local superTypes:[kotlin.collections.Iterator] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.EmptyArrayMap.iterator. CONSTRUCTOR visibility:public <> () returnType:.EmptyArrayMap.iterator. [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name: modality:FINAL visibility:local superTypes:[kotlin.collections.Iterator]' FUN name:hasNext visibility:public modality:OPEN <> ($this:.EmptyArrayMap.iterator.) returnType:kotlin.Boolean [operator] overridden: - public abstract fun hasNext (): kotlin.Boolean [operator] declared in kotlin.collections.Iterator + public abstract fun hasNext (): kotlin.Boolean declared in kotlin.collections.Iterator $this: VALUE_PARAMETER name: type:.EmptyArrayMap.iterator. BLOCK_BODY - RETURN type=kotlin.Nothing from='public open fun hasNext (): kotlin.Boolean [operator] declared in .EmptyArrayMap.iterator.' + RETURN type=kotlin.Nothing from='public open fun hasNext (): kotlin.Boolean declared in .EmptyArrayMap.iterator.' CONST Boolean type=kotlin.Boolean value=false FUN name:next visibility:public modality:OPEN <> ($this:.EmptyArrayMap.iterator.) returnType:kotlin.Nothing [operator] overridden: - public abstract fun next (): T of kotlin.collections.Iterator [operator] declared in kotlin.collections.Iterator + public abstract fun next (): T of kotlin.collections.Iterator declared in kotlin.collections.Iterator $this: VALUE_PARAMETER name: type:.EmptyArrayMap.iterator. BLOCK_BODY THROW type=kotlin.Nothing CONSTRUCTOR_CALL 'public constructor () declared in java.util.NoSuchElementException' type=java.util.NoSuchElementException 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 [fake_override,operator] declared in kotlin.collections.Iterator + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.collections.Iterator $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 kotlin.collections.Iterator + public open fun hashCode (): kotlin.Int declared in kotlin.collections.Iterator $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 kotlin.collections.Iterator + public open fun toString (): kotlin.String declared in kotlin.collections.Iterator $this: VALUE_PARAMETER name: type:kotlin.Any - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .EmptyArrayMap.iterator.' type=.EmptyArrayMap.iterator. origin=OBJECT_LITERAL + CONSTRUCTOR_CALL 'public constructor () declared in .EmptyArrayMap.iterator.' type=.EmptyArrayMap.iterator. origin=OBJECT_LITERAL 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 .ArrayMap + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .ArrayMap $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 .ArrayMap + public open fun hashCode (): kotlin.Int declared in .ArrayMap $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 .ArrayMap + public open fun toString (): kotlin.String declared in .ArrayMap $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:OneElementArrayMap modality:FINAL visibility:internal superTypes:[.ArrayMap.OneElementArrayMap>] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.OneElementArrayMap.OneElementArrayMap> @@ -160,7 +160,7 @@ FILE fqName: fileName:/ArrayMap.kt VALUE_PARAMETER name:value index:0 type:T of .OneElementArrayMap VALUE_PARAMETER name:index index:1 type:kotlin.Int BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'protected constructor () [primary] declared in .ArrayMap' + DELEGATING_CONSTRUCTOR_CALL 'protected constructor () declared in .ArrayMap' : T of .OneElementArrayMap INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:OneElementArrayMap modality:FINAL visibility:internal superTypes:[.ArrayMap.OneElementArrayMap>]' PROPERTY name:value visibility:public modality:FINAL [val] @@ -187,7 +187,7 @@ FILE fqName: fileName:/ArrayMap.kt receiver: GET_VAR ': .OneElementArrayMap.OneElementArrayMap> declared in .OneElementArrayMap.' type=.OneElementArrayMap.OneElementArrayMap> origin=null PROPERTY name:size visibility:public modality:OPEN [val] overridden: - public abstract size: kotlin.Int [val] + public abstract size: kotlin.Int FUN name: visibility:public modality:OPEN <> ($this:.OneElementArrayMap.OneElementArrayMap>) returnType:kotlin.Int correspondingProperty: PROPERTY name:size visibility:public modality:OPEN [val] overridden: @@ -198,7 +198,7 @@ FILE fqName: fileName:/ArrayMap.kt CONST Int type=kotlin.Int value=1 FUN name:set visibility:public modality:OPEN <> ($this:.OneElementArrayMap.OneElementArrayMap>, index:kotlin.Int, value:T of .OneElementArrayMap) returnType:kotlin.Unit [operator] overridden: - public abstract fun set (index: kotlin.Int, value: T of .ArrayMap): kotlin.Unit [operator] declared in .ArrayMap + public abstract fun set (index: kotlin.Int, value: T of .ArrayMap): kotlin.Unit declared in .ArrayMap $this: VALUE_PARAMETER name: type:.OneElementArrayMap.OneElementArrayMap> VALUE_PARAMETER name:index index:0 type:kotlin.Int VALUE_PARAMETER name:value index:1 type:T of .OneElementArrayMap @@ -207,11 +207,11 @@ FILE fqName: fileName:/ArrayMap.kt CONSTRUCTOR_CALL 'public constructor () declared in java.lang.IllegalStateException' type=java.lang.IllegalStateException origin=null FUN name:get visibility:public modality:OPEN <> ($this:.OneElementArrayMap.OneElementArrayMap>, index:kotlin.Int) returnType:T of .OneElementArrayMap? [operator] overridden: - public abstract fun get (index: kotlin.Int): T of .ArrayMap? [operator] declared in .ArrayMap + public abstract fun get (index: kotlin.Int): T of .ArrayMap? declared in .ArrayMap $this: VALUE_PARAMETER name: type:.OneElementArrayMap.OneElementArrayMap> VALUE_PARAMETER name:index index:0 type:kotlin.Int BLOCK_BODY - RETURN type=kotlin.Nothing from='public open fun get (index: kotlin.Int): T of .OneElementArrayMap? [operator] declared in .OneElementArrayMap' + RETURN type=kotlin.Nothing from='public open fun get (index: kotlin.Int): T of .OneElementArrayMap? declared in .OneElementArrayMap' WHEN type=T of .OneElementArrayMap? origin=IF BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ @@ -229,7 +229,7 @@ FILE fqName: fileName:/ArrayMap.kt $this: VALUE_PARAMETER name: type:.OneElementArrayMap.OneElementArrayMap> BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun copy (): .ArrayMap.OneElementArrayMap> declared in .OneElementArrayMap' - CONSTRUCTOR_CALL 'public constructor (value: T of .OneElementArrayMap, index: kotlin.Int) [primary] declared in .OneElementArrayMap' type=.OneElementArrayMap.OneElementArrayMap> origin=null + CONSTRUCTOR_CALL 'public constructor (value: T of .OneElementArrayMap, index: kotlin.Int) declared in .OneElementArrayMap' type=.OneElementArrayMap.OneElementArrayMap> origin=null : T of .OneElementArrayMap value: CALL 'public final fun (): T of .OneElementArrayMap declared in .OneElementArrayMap' type=T of .OneElementArrayMap origin=GET_PROPERTY $this: GET_VAR ': .OneElementArrayMap.OneElementArrayMap> declared in .OneElementArrayMap.copy' type=.OneElementArrayMap.OneElementArrayMap> origin=null @@ -237,16 +237,16 @@ FILE fqName: fileName:/ArrayMap.kt $this: GET_VAR ': .OneElementArrayMap.OneElementArrayMap> declared in .OneElementArrayMap.copy' type=.OneElementArrayMap.OneElementArrayMap> origin=null FUN name:iterator visibility:public modality:OPEN <> ($this:.OneElementArrayMap.OneElementArrayMap>) returnType:kotlin.collections.Iterator.OneElementArrayMap> [operator] overridden: - public abstract fun iterator (): kotlin.collections.Iterator.ArrayMap> [fake_override,operator] declared in .ArrayMap + public abstract fun iterator (): kotlin.collections.Iterator.ArrayMap> declared in .ArrayMap $this: VALUE_PARAMETER name: type:.OneElementArrayMap.OneElementArrayMap> BLOCK_BODY - RETURN type=kotlin.Nothing from='public open fun iterator (): kotlin.collections.Iterator.OneElementArrayMap> [operator] declared in .OneElementArrayMap' + RETURN type=kotlin.Nothing from='public open fun iterator (): kotlin.collections.Iterator.OneElementArrayMap> declared in .OneElementArrayMap' BLOCK type=.OneElementArrayMap.iterator..OneElementArrayMap> origin=OBJECT_LITERAL CLASS CLASS name: modality:FINAL visibility:local superTypes:[kotlin.collections.Iterator.OneElementArrayMap>] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.OneElementArrayMap.iterator..OneElementArrayMap> CONSTRUCTOR visibility:public <> () returnType:.OneElementArrayMap.iterator..OneElementArrayMap> [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name: modality:FINAL visibility:local superTypes:[kotlin.collections.Iterator.OneElementArrayMap>]' PROPERTY name:notVisited visibility:private modality:FINAL [var] FIELD PROPERTY_BACKING_FIELD name:notVisited type:kotlin.Boolean visibility:private @@ -269,15 +269,15 @@ FILE fqName: fileName:/ArrayMap.kt value: GET_VAR ': kotlin.Boolean declared in .OneElementArrayMap.iterator..' type=kotlin.Boolean origin=null FUN name:hasNext visibility:public modality:OPEN <> ($this:.OneElementArrayMap.iterator..OneElementArrayMap>) returnType:kotlin.Boolean [operator] overridden: - public abstract fun hasNext (): kotlin.Boolean [operator] declared in kotlin.collections.Iterator + public abstract fun hasNext (): kotlin.Boolean declared in kotlin.collections.Iterator $this: VALUE_PARAMETER name: type:.OneElementArrayMap.iterator..OneElementArrayMap> BLOCK_BODY - RETURN type=kotlin.Nothing from='public open fun hasNext (): kotlin.Boolean [operator] declared in .OneElementArrayMap.iterator.' + RETURN type=kotlin.Nothing from='public open fun hasNext (): kotlin.Boolean declared in .OneElementArrayMap.iterator.' CALL 'private final fun (): kotlin.Boolean declared in .OneElementArrayMap.iterator.' type=kotlin.Boolean origin=GET_PROPERTY $this: GET_VAR ': .OneElementArrayMap.iterator..OneElementArrayMap> declared in .OneElementArrayMap.iterator..hasNext' type=.OneElementArrayMap.iterator..OneElementArrayMap> origin=null FUN name:next visibility:public modality:OPEN <> ($this:.OneElementArrayMap.iterator..OneElementArrayMap>) returnType:T of .OneElementArrayMap [operator] overridden: - public abstract fun next (): T of kotlin.collections.Iterator [operator] declared in kotlin.collections.Iterator + public abstract fun next (): T of kotlin.collections.Iterator declared in kotlin.collections.Iterator $this: VALUE_PARAMETER name: type:.OneElementArrayMap.iterator..OneElementArrayMap> BLOCK_BODY WHEN type=kotlin.Unit origin=IF @@ -288,7 +288,7 @@ FILE fqName: fileName:/ArrayMap.kt CALL 'private final fun (: kotlin.Boolean): kotlin.Unit declared in .OneElementArrayMap.iterator.' type=kotlin.Unit origin=EQ $this: GET_VAR ': .OneElementArrayMap.iterator..OneElementArrayMap> declared in .OneElementArrayMap.iterator..next' type=.OneElementArrayMap.iterator..OneElementArrayMap> origin=null : CONST Boolean type=kotlin.Boolean value=false - RETURN type=kotlin.Nothing from='public open fun next (): T of .OneElementArrayMap [operator] declared in .OneElementArrayMap.iterator.' + RETURN type=kotlin.Nothing from='public open fun next (): T of .OneElementArrayMap declared in .OneElementArrayMap.iterator.' CALL 'public final fun (): T of .OneElementArrayMap declared in .OneElementArrayMap' type=T of .OneElementArrayMap origin=GET_PROPERTY $this: GET_VAR ': .OneElementArrayMap.OneElementArrayMap> declared in .OneElementArrayMap.iterator' type=.OneElementArrayMap.OneElementArrayMap> origin=null BRANCH @@ -298,30 +298,30 @@ FILE fqName: fileName:/ArrayMap.kt CONSTRUCTOR_CALL 'public constructor () declared in java.util.NoSuchElementException' type=java.util.NoSuchElementException 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 [fake_override,operator] declared in kotlin.collections.Iterator + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.collections.Iterator $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 kotlin.collections.Iterator + public open fun hashCode (): kotlin.Int declared in kotlin.collections.Iterator $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 kotlin.collections.Iterator + public open fun toString (): kotlin.String declared in kotlin.collections.Iterator $this: VALUE_PARAMETER name: type:kotlin.Any - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .OneElementArrayMap.iterator.' type=.OneElementArrayMap.iterator..OneElementArrayMap> origin=OBJECT_LITERAL + CONSTRUCTOR_CALL 'public constructor () declared in .OneElementArrayMap.iterator.' type=.OneElementArrayMap.iterator..OneElementArrayMap> origin=OBJECT_LITERAL 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 .ArrayMap + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .ArrayMap $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 .ArrayMap + public open fun hashCode (): kotlin.Int declared in .ArrayMap $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 .ArrayMap + public open fun toString (): kotlin.String declared in .ArrayMap $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:ArrayMapImpl modality:FINAL visibility:internal superTypes:[.ArrayMap.ArrayMapImpl>] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.ArrayMapImpl.ArrayMapImpl> @@ -329,7 +329,7 @@ FILE fqName: fileName:/ArrayMap.kt CONSTRUCTOR visibility:private <> (data:kotlin.Array) returnType:.ArrayMapImpl.ArrayMapImpl> [primary] VALUE_PARAMETER name:data index:0 type:kotlin.Array BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'protected constructor () [primary] declared in .ArrayMap' + DELEGATING_CONSTRUCTOR_CALL 'protected constructor () declared in .ArrayMap' : T of .ArrayMapImpl INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:ArrayMapImpl modality:FINAL visibility:internal superTypes:[.ArrayMap.ArrayMapImpl>]' PROPERTY name:data visibility:private modality:FINAL [var] @@ -355,7 +355,7 @@ FILE fqName: fileName:/ArrayMap.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.ArrayMapImpl.Companion CONSTRUCTOR visibility:private <> () returnType:.ArrayMapImpl.Companion [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:Companion modality:FINAL visibility:public [companion] superTypes:[kotlin.Any]' PROPERTY name:DEFAULT_SIZE visibility:private modality:FINAL [const,val] FIELD PROPERTY_BACKING_FIELD name:DEFAULT_SIZE type:kotlin.Int visibility:private [final] @@ -381,7 +381,7 @@ FILE fqName: fileName:/ArrayMap.kt receiver: GET_VAR ': .ArrayMapImpl.Companion declared in .ArrayMapImpl.Companion.' type=.ArrayMapImpl.Companion 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -394,7 +394,7 @@ FILE fqName: fileName:/ArrayMap.kt $this: VALUE_PARAMETER name: type:kotlin.Any CONSTRUCTOR visibility:public <> () returnType:.ArrayMapImpl.ArrayMapImpl> BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'private constructor (data: kotlin.Array) [primary] declared in .ArrayMapImpl' + DELEGATING_CONSTRUCTOR_CALL 'private constructor (data: kotlin.Array) declared in .ArrayMapImpl' : T of .ArrayMapImpl data: CALL 'public final fun arrayOfNulls (size: kotlin.Int): kotlin.Array declared in kotlin' type=kotlin.Array origin=null : kotlin.Any @@ -402,7 +402,7 @@ FILE fqName: fileName:/ArrayMap.kt $this: GET_OBJECT 'CLASS OBJECT name:Companion modality:FINAL visibility:public [companion] superTypes:[kotlin.Any]' type=.ArrayMapImpl.Companion PROPERTY name:size visibility:public modality:OPEN [var] overridden: - public abstract size: kotlin.Int [val] + public abstract size: kotlin.Int FIELD PROPERTY_BACKING_FIELD name:size type:kotlin.Int visibility:private EXPRESSION_BODY CONST Int type=kotlin.Int value=0 @@ -437,11 +437,11 @@ FILE fqName: fileName:/ArrayMap.kt then: BLOCK type=kotlin.Unit origin=null CALL 'private final fun (: kotlin.Array): kotlin.Unit declared in .ArrayMapImpl' type=kotlin.Unit origin=EQ $this: GET_VAR ': .ArrayMapImpl.ArrayMapImpl> declared in .ArrayMapImpl.ensureCapacity' type=.ArrayMapImpl.ArrayMapImpl> origin=null - : CALL 'public final fun copyOf (newSize: kotlin.Int): kotlin.Array [inline] declared in kotlin.collections.ArraysKt' type=kotlin.Array origin=null + : CALL 'public final fun copyOf (newSize: kotlin.Int): kotlin.Array declared in kotlin.collections.ArraysKt' type=kotlin.Array origin=null : kotlin.Any? $receiver: CALL 'private final fun (): kotlin.Array declared in .ArrayMapImpl' type=kotlin.Array origin=GET_PROPERTY $this: GET_VAR ': .ArrayMapImpl.ArrayMapImpl> declared in .ArrayMapImpl.ensureCapacity' type=.ArrayMapImpl.ArrayMapImpl> origin=null - newSize: CALL 'public final fun times (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=MUL + newSize: CALL 'public final fun times (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=MUL $this: CALL 'public final fun (): kotlin.Int declared in kotlin.Array' type=kotlin.Int origin=GET_PROPERTY $this: CALL 'private final fun (): kotlin.Array declared in .ArrayMapImpl' type=kotlin.Array origin=GET_PROPERTY $this: GET_VAR ': .ArrayMapImpl.ArrayMapImpl> declared in .ArrayMapImpl.ensureCapacity' type=.ArrayMapImpl.ArrayMapImpl> origin=null @@ -449,7 +449,7 @@ FILE fqName: fileName:/ArrayMap.kt $this: GET_OBJECT 'CLASS OBJECT name:Companion modality:FINAL visibility:public [companion] superTypes:[kotlin.Any]' type=.ArrayMapImpl.Companion FUN name:set visibility:public modality:OPEN <> ($this:.ArrayMapImpl.ArrayMapImpl>, index:kotlin.Int, value:T of .ArrayMapImpl) returnType:kotlin.Unit [operator] overridden: - public abstract fun set (index: kotlin.Int, value: T of .ArrayMap): kotlin.Unit [operator] declared in .ArrayMap + public abstract fun set (index: kotlin.Int, value: T of .ArrayMap): kotlin.Unit declared in .ArrayMap $this: VALUE_PARAMETER name: type:.ArrayMapImpl.ArrayMapImpl> VALUE_PARAMETER name:index index:0 type:kotlin.Int VALUE_PARAMETER name:value index:1 type:T of .ArrayMapImpl @@ -460,7 +460,7 @@ FILE fqName: fileName:/ArrayMap.kt WHEN type=kotlin.Unit origin=IF BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: CALL 'public final fun get (index: kotlin.Int): T of kotlin.Array [operator] declared in kotlin.Array' type=kotlin.Any? origin=GET_ARRAY_ELEMENT + arg0: CALL 'public final fun get (index: kotlin.Int): T of kotlin.Array declared in kotlin.Array' type=kotlin.Any? origin=GET_ARRAY_ELEMENT $this: CALL 'private final fun (): kotlin.Array declared in .ArrayMapImpl' type=kotlin.Array origin=GET_PROPERTY $this: GET_VAR ': .ArrayMapImpl.ArrayMapImpl> declared in .ArrayMapImpl.set' type=.ArrayMapImpl.ArrayMapImpl> origin=null index: GET_VAR 'index: kotlin.Int declared in .ArrayMapImpl.set' type=kotlin.Int origin=null @@ -473,24 +473,24 @@ FILE fqName: fileName:/ArrayMap.kt BLOCK type=kotlin.Int origin=POSTFIX_INCR VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:kotlin.Int [val] CALL 'public open fun (): kotlin.Int declared in .ArrayMapImpl' type=kotlin.Int origin=POSTFIX_INCR - $this: GET_VAR 'val tmp_0: .ArrayMapImpl.ArrayMapImpl> [val] declared in .ArrayMapImpl.set' type=.ArrayMapImpl.ArrayMapImpl> origin=null + $this: GET_VAR 'val tmp_0: .ArrayMapImpl.ArrayMapImpl> declared in .ArrayMapImpl.set' type=.ArrayMapImpl.ArrayMapImpl> origin=null CALL 'private open fun (: kotlin.Int): kotlin.Unit declared in .ArrayMapImpl' type=kotlin.Unit origin=POSTFIX_INCR - $this: GET_VAR 'val tmp_0: .ArrayMapImpl.ArrayMapImpl> [val] declared in .ArrayMapImpl.set' type=.ArrayMapImpl.ArrayMapImpl> origin=null - : CALL 'public final fun inc (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_INCR - $this: GET_VAR 'val tmp_1: kotlin.Int [val] declared in .ArrayMapImpl.set' type=kotlin.Int origin=null - GET_VAR 'val tmp_1: kotlin.Int [val] declared in .ArrayMapImpl.set' type=kotlin.Int origin=null - CALL 'public final fun set (index: kotlin.Int, value: T of kotlin.Array): kotlin.Unit [operator] declared in kotlin.Array' type=kotlin.Unit origin=EQ + $this: GET_VAR 'val tmp_0: .ArrayMapImpl.ArrayMapImpl> declared in .ArrayMapImpl.set' type=.ArrayMapImpl.ArrayMapImpl> origin=null + : CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_INCR + $this: GET_VAR 'val tmp_1: kotlin.Int declared in .ArrayMapImpl.set' type=kotlin.Int origin=null + GET_VAR 'val tmp_1: kotlin.Int declared in .ArrayMapImpl.set' type=kotlin.Int origin=null + CALL 'public final fun set (index: kotlin.Int, value: T of kotlin.Array): kotlin.Unit declared in kotlin.Array' type=kotlin.Unit origin=EQ $this: CALL 'private final fun (): kotlin.Array declared in .ArrayMapImpl' type=kotlin.Array origin=GET_PROPERTY $this: GET_VAR ': .ArrayMapImpl.ArrayMapImpl> declared in .ArrayMapImpl.set' type=.ArrayMapImpl.ArrayMapImpl> origin=null index: GET_VAR 'index: kotlin.Int declared in .ArrayMapImpl.set' type=kotlin.Int origin=null value: GET_VAR 'value: T of .ArrayMapImpl declared in .ArrayMapImpl.set' type=T of .ArrayMapImpl origin=null FUN name:get visibility:public modality:OPEN <> ($this:.ArrayMapImpl.ArrayMapImpl>, index:kotlin.Int) returnType:T of .ArrayMapImpl? [operator] overridden: - public abstract fun get (index: kotlin.Int): T of .ArrayMap? [operator] declared in .ArrayMap + public abstract fun get (index: kotlin.Int): T of .ArrayMap? declared in .ArrayMap $this: VALUE_PARAMETER name: type:.ArrayMapImpl.ArrayMapImpl> VALUE_PARAMETER name:index index:0 type:kotlin.Int BLOCK_BODY - RETURN type=kotlin.Nothing from='public open fun get (index: kotlin.Int): T of .ArrayMapImpl? [operator] declared in .ArrayMapImpl' + RETURN type=kotlin.Nothing from='public open fun get (index: kotlin.Int): T of .ArrayMapImpl? declared in .ArrayMapImpl' TYPE_OP type=T of .ArrayMapImpl? origin=CAST typeOperand=T of .ArrayMapImpl? CALL 'public final fun getOrNull (index: kotlin.Int): T of kotlin.collections.ArraysKt.getOrNull? declared in kotlin.collections.ArraysKt' type=kotlin.Any? origin=null : kotlin.Any? @@ -503,24 +503,24 @@ FILE fqName: fileName:/ArrayMap.kt $this: VALUE_PARAMETER name: type:.ArrayMapImpl.ArrayMapImpl> BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun copy (): .ArrayMap.ArrayMapImpl> declared in .ArrayMapImpl' - CONSTRUCTOR_CALL 'private constructor (data: kotlin.Array) [primary] declared in .ArrayMapImpl' type=.ArrayMapImpl.ArrayMapImpl> origin=null + CONSTRUCTOR_CALL 'private constructor (data: kotlin.Array) declared in .ArrayMapImpl' type=.ArrayMapImpl.ArrayMapImpl> origin=null : T of .ArrayMapImpl - data: CALL 'public final fun copyOf (): kotlin.Array [inline] declared in kotlin.collections.ArraysKt' type=kotlin.Array origin=null + data: CALL 'public final fun copyOf (): kotlin.Array declared in kotlin.collections.ArraysKt' type=kotlin.Array origin=null : kotlin.Any? $receiver: CALL 'private final fun (): kotlin.Array declared in .ArrayMapImpl' type=kotlin.Array origin=GET_PROPERTY $this: GET_VAR ': .ArrayMapImpl.ArrayMapImpl> declared in .ArrayMapImpl.copy' type=.ArrayMapImpl.ArrayMapImpl> origin=null FUN name:iterator visibility:public modality:OPEN <> ($this:.ArrayMapImpl.ArrayMapImpl>) returnType:kotlin.collections.Iterator.ArrayMapImpl> [operator] overridden: - public abstract fun iterator (): kotlin.collections.Iterator.ArrayMap> [fake_override,operator] declared in .ArrayMap + public abstract fun iterator (): kotlin.collections.Iterator.ArrayMap> declared in .ArrayMap $this: VALUE_PARAMETER name: type:.ArrayMapImpl.ArrayMapImpl> BLOCK_BODY - RETURN type=kotlin.Nothing from='public open fun iterator (): kotlin.collections.Iterator.ArrayMapImpl> [operator] declared in .ArrayMapImpl' + RETURN type=kotlin.Nothing from='public open fun iterator (): kotlin.collections.Iterator.ArrayMapImpl> declared in .ArrayMapImpl' BLOCK type=.ArrayMapImpl.iterator..ArrayMapImpl> origin=OBJECT_LITERAL CLASS CLASS name: modality:FINAL visibility:local superTypes:[kotlin.collections.AbstractIterator.ArrayMapImpl>] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.ArrayMapImpl.iterator..ArrayMapImpl> CONSTRUCTOR visibility:public <> () returnType:.ArrayMapImpl.iterator..ArrayMapImpl> [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.collections.AbstractIterator' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.collections.AbstractIterator' : T of .ArrayMapImpl INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name: modality:FINAL visibility:local superTypes:[kotlin.collections.AbstractIterator.ArrayMapImpl>]' PROPERTY name:index visibility:private modality:FINAL [var] @@ -557,12 +557,12 @@ FILE fqName: fileName:/ArrayMap.kt BLOCK type=kotlin.Int origin=POSTFIX_INCR VAR IR_TEMPORARY_VARIABLE name:tmp_3 type:kotlin.Int [val] CALL 'private final fun (): kotlin.Int declared in .ArrayMapImpl.iterator.' type=kotlin.Int origin=POSTFIX_INCR - $this: GET_VAR 'val tmp_2: .ArrayMapImpl.iterator..ArrayMapImpl> [val] declared in .ArrayMapImpl.iterator..computeNext' type=.ArrayMapImpl.iterator..ArrayMapImpl> origin=null + $this: GET_VAR 'val tmp_2: .ArrayMapImpl.iterator..ArrayMapImpl> declared in .ArrayMapImpl.iterator..computeNext' type=.ArrayMapImpl.iterator..ArrayMapImpl> origin=null CALL 'private final fun (: kotlin.Int): kotlin.Unit declared in .ArrayMapImpl.iterator.' type=kotlin.Unit origin=POSTFIX_INCR - $this: GET_VAR 'val tmp_2: .ArrayMapImpl.iterator..ArrayMapImpl> [val] declared in .ArrayMapImpl.iterator..computeNext' type=.ArrayMapImpl.iterator..ArrayMapImpl> origin=null - : CALL 'public final fun inc (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_INCR - $this: GET_VAR 'val tmp_3: kotlin.Int [val] declared in .ArrayMapImpl.iterator..computeNext' type=kotlin.Int origin=null - GET_VAR 'val tmp_3: kotlin.Int [val] declared in .ArrayMapImpl.iterator..computeNext' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_2: .ArrayMapImpl.iterator..ArrayMapImpl> declared in .ArrayMapImpl.iterator..computeNext' type=.ArrayMapImpl.iterator..ArrayMapImpl> origin=null + : CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_INCR + $this: GET_VAR 'val tmp_3: kotlin.Int declared in .ArrayMapImpl.iterator..computeNext' type=kotlin.Int origin=null + GET_VAR 'val tmp_3: kotlin.Int declared in .ArrayMapImpl.iterator..computeNext' type=kotlin.Int origin=null condition: WHEN type=kotlin.Boolean origin=ANDAND BRANCH if: CALL 'public final fun less (arg0: kotlin.Int, arg1: kotlin.Int): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=LT @@ -572,7 +572,7 @@ FILE fqName: fileName:/ArrayMap.kt $this: CALL 'private final fun (): kotlin.Array declared in .ArrayMapImpl' type=kotlin.Array origin=GET_PROPERTY $this: GET_VAR ': .ArrayMapImpl.ArrayMapImpl> declared in .ArrayMapImpl.iterator' type=.ArrayMapImpl.ArrayMapImpl> origin=null then: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: CALL 'public final fun get (index: kotlin.Int): T of kotlin.Array [operator] declared in kotlin.Array' type=kotlin.Any? origin=GET_ARRAY_ELEMENT + arg0: CALL 'public final fun get (index: kotlin.Int): T of kotlin.Array declared in kotlin.Array' type=kotlin.Any? origin=GET_ARRAY_ELEMENT $this: CALL 'private final fun (): kotlin.Array declared in .ArrayMapImpl' type=kotlin.Array origin=GET_PROPERTY $this: GET_VAR ': .ArrayMapImpl.ArrayMapImpl> declared in .ArrayMapImpl.iterator' type=.ArrayMapImpl.ArrayMapImpl> origin=null index: CALL 'private final fun (): kotlin.Int declared in .ArrayMapImpl.iterator.' type=kotlin.Int origin=GET_PROPERTY @@ -590,15 +590,15 @@ FILE fqName: fileName:/ArrayMap.kt $this: CALL 'private final fun (): kotlin.Array declared in .ArrayMapImpl' type=kotlin.Array origin=GET_PROPERTY $this: GET_VAR ': .ArrayMapImpl.ArrayMapImpl> declared in .ArrayMapImpl.iterator' type=.ArrayMapImpl.ArrayMapImpl> origin=null then: BLOCK type=kotlin.Unit origin=null - CALL 'protected final fun done (): kotlin.Unit [fake_override] declared in .ArrayMapImpl.iterator.' type=kotlin.Unit origin=null + CALL 'protected final fun done (): kotlin.Unit declared in .ArrayMapImpl.iterator.' type=kotlin.Unit origin=null $this: GET_VAR ': .ArrayMapImpl.iterator..ArrayMapImpl> declared in .ArrayMapImpl.iterator..computeNext' type=.ArrayMapImpl.iterator..ArrayMapImpl> origin=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: BLOCK type=kotlin.Unit origin=null - CALL 'protected final fun setNext (value: T of .ArrayMapImpl): kotlin.Unit [fake_override] declared in .ArrayMapImpl.iterator.' type=kotlin.Unit origin=null + CALL 'protected final fun setNext (value: T of .ArrayMapImpl): kotlin.Unit declared in .ArrayMapImpl.iterator.' type=kotlin.Unit origin=null $this: GET_VAR ': .ArrayMapImpl.iterator..ArrayMapImpl> declared in .ArrayMapImpl.iterator..computeNext' type=.ArrayMapImpl.iterator..ArrayMapImpl> origin=null value: TYPE_OP type=T of .ArrayMapImpl origin=CAST typeOperand=T of .ArrayMapImpl - CALL 'public final fun get (index: kotlin.Int): T of kotlin.Array [operator] declared in kotlin.Array' type=kotlin.Any? origin=GET_ARRAY_ELEMENT + CALL 'public final fun get (index: kotlin.Int): T of kotlin.Array declared in kotlin.Array' type=kotlin.Any? origin=GET_ARRAY_ELEMENT $this: CALL 'private final fun (): kotlin.Array declared in .ArrayMapImpl' type=kotlin.Array origin=GET_PROPERTY $this: GET_VAR ': .ArrayMapImpl.ArrayMapImpl> declared in .ArrayMapImpl.iterator' type=.ArrayMapImpl.ArrayMapImpl> origin=null index: CALL 'private final fun (): kotlin.Int declared in .ArrayMapImpl.iterator.' type=kotlin.Int origin=GET_PROPERTY @@ -609,20 +609,20 @@ FILE fqName: fileName:/ArrayMap.kt $this: VALUE_PARAMETER name: type:kotlin.collections.AbstractIterator.ArrayMapImpl> 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 kotlin.collections.AbstractIterator + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.collections.AbstractIterator $this: VALUE_PARAMETER name: type:kotlin.Any VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:hasNext visibility:public modality:OPEN <> ($this:kotlin.collections.AbstractIterator.ArrayMapImpl>) returnType:kotlin.Boolean [fake_override,operator] overridden: - public open fun hasNext (): kotlin.Boolean [operator] declared in kotlin.collections.AbstractIterator + public open fun hasNext (): kotlin.Boolean declared in kotlin.collections.AbstractIterator $this: VALUE_PARAMETER name: type:kotlin.collections.AbstractIterator.ArrayMapImpl> 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 kotlin.collections.AbstractIterator + public open fun hashCode (): kotlin.Int declared in kotlin.collections.AbstractIterator $this: VALUE_PARAMETER name: type:kotlin.Any FUN FAKE_OVERRIDE name:next visibility:public modality:OPEN <> ($this:kotlin.collections.AbstractIterator.ArrayMapImpl>) returnType:T of .ArrayMapImpl [fake_override,operator] overridden: - public open fun next (): T of kotlin.collections.AbstractIterator [operator] declared in kotlin.collections.AbstractIterator + public open fun next (): T of kotlin.collections.AbstractIterator declared in kotlin.collections.AbstractIterator $this: VALUE_PARAMETER name: type:kotlin.collections.AbstractIterator.ArrayMapImpl> FUN FAKE_OVERRIDE name:setNext visibility:protected modality:FINAL <> ($this:kotlin.collections.AbstractIterator.ArrayMapImpl>, value:T of .ArrayMapImpl) returnType:kotlin.Unit [fake_override] overridden: @@ -631,18 +631,18 @@ FILE fqName: fileName:/ArrayMap.kt VALUE_PARAMETER name:value index:0 type:T of .ArrayMapImpl 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 kotlin.collections.AbstractIterator + public open fun toString (): kotlin.String declared in kotlin.collections.AbstractIterator $this: VALUE_PARAMETER name: type:kotlin.Any - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .ArrayMapImpl.iterator.' type=.ArrayMapImpl.iterator..ArrayMapImpl> origin=OBJECT_LITERAL + CONSTRUCTOR_CALL 'public constructor () declared in .ArrayMapImpl.iterator.' type=.ArrayMapImpl.iterator..ArrayMapImpl> origin=OBJECT_LITERAL FUN name:remove visibility:public modality:FINAL <> ($this:.ArrayMapImpl.ArrayMapImpl>, index:kotlin.Int) returnType:kotlin.Unit $this: VALUE_PARAMETER name: type:.ArrayMapImpl.ArrayMapImpl> VALUE_PARAMETER name:index index:0 type:kotlin.Int BLOCK_BODY WHEN type=kotlin.Unit origin=IF BRANCH - if: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ + if: CALL 'public final fun not (): kotlin.Boolean 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: CALL 'public final fun get (index: kotlin.Int): T of kotlin.Array [operator] declared in kotlin.Array' type=kotlin.Any? origin=GET_ARRAY_ELEMENT + arg0: CALL 'public final fun get (index: kotlin.Int): T of kotlin.Array declared in kotlin.Array' type=kotlin.Any? origin=GET_ARRAY_ELEMENT $this: CALL 'private final fun (): kotlin.Array declared in .ArrayMapImpl' type=kotlin.Array origin=GET_PROPERTY $this: GET_VAR ': .ArrayMapImpl.ArrayMapImpl> declared in .ArrayMapImpl.remove' type=.ArrayMapImpl.ArrayMapImpl> origin=null index: GET_VAR 'index: kotlin.Int declared in .ArrayMapImpl.remove' type=kotlin.Int origin=null @@ -655,13 +655,13 @@ FILE fqName: fileName:/ArrayMap.kt BLOCK type=kotlin.Int origin=POSTFIX_DECR VAR IR_TEMPORARY_VARIABLE name:tmp_5 type:kotlin.Int [val] CALL 'public open fun (): kotlin.Int declared in .ArrayMapImpl' type=kotlin.Int origin=POSTFIX_DECR - $this: GET_VAR 'val tmp_4: .ArrayMapImpl.ArrayMapImpl> [val] declared in .ArrayMapImpl.remove' type=.ArrayMapImpl.ArrayMapImpl> origin=null + $this: GET_VAR 'val tmp_4: .ArrayMapImpl.ArrayMapImpl> declared in .ArrayMapImpl.remove' type=.ArrayMapImpl.ArrayMapImpl> origin=null CALL 'private open fun (: kotlin.Int): kotlin.Unit declared in .ArrayMapImpl' type=kotlin.Unit origin=POSTFIX_DECR - $this: GET_VAR 'val tmp_4: .ArrayMapImpl.ArrayMapImpl> [val] declared in .ArrayMapImpl.remove' type=.ArrayMapImpl.ArrayMapImpl> origin=null - : CALL 'public final fun dec (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_DECR - $this: GET_VAR 'val tmp_5: kotlin.Int [val] declared in .ArrayMapImpl.remove' type=kotlin.Int origin=null - GET_VAR 'val tmp_5: kotlin.Int [val] declared in .ArrayMapImpl.remove' type=kotlin.Int origin=null - CALL 'public final fun set (index: kotlin.Int, value: T of kotlin.Array): kotlin.Unit [operator] declared in kotlin.Array' type=kotlin.Unit origin=EQ + $this: GET_VAR 'val tmp_4: .ArrayMapImpl.ArrayMapImpl> declared in .ArrayMapImpl.remove' type=.ArrayMapImpl.ArrayMapImpl> origin=null + : CALL 'public final fun dec (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_DECR + $this: GET_VAR 'val tmp_5: kotlin.Int declared in .ArrayMapImpl.remove' type=kotlin.Int origin=null + GET_VAR 'val tmp_5: kotlin.Int declared in .ArrayMapImpl.remove' type=kotlin.Int origin=null + CALL 'public final fun set (index: kotlin.Int, value: T of kotlin.Array): kotlin.Unit declared in kotlin.Array' type=kotlin.Unit origin=EQ $this: CALL 'private final fun (): kotlin.Array declared in .ArrayMapImpl' type=kotlin.Array origin=GET_PROPERTY $this: GET_VAR ': .ArrayMapImpl.ArrayMapImpl> declared in .ArrayMapImpl.remove' type=.ArrayMapImpl.ArrayMapImpl> origin=null index: GET_VAR 'index: kotlin.Int declared in .ArrayMapImpl.remove' type=kotlin.Int origin=null @@ -670,7 +670,7 @@ FILE fqName: fileName:/ArrayMap.kt $this: VALUE_PARAMETER name: type:.ArrayMapImpl.ArrayMapImpl> BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun entries (): kotlin.collections.List<.ArrayMapImpl.Entry.ArrayMapImpl>> declared in .ArrayMapImpl' - CALL 'public final fun mapIndexedNotNull (transform: kotlin.Function2<@[ParameterName(name = 'index')] kotlin.Int, T of kotlin.collections.ArraysKt.mapIndexedNotNull, R of kotlin.collections.ArraysKt.mapIndexedNotNull?>): kotlin.collections.List [inline] declared in kotlin.collections.ArraysKt' type=kotlin.collections.List<.ArrayMapImpl.Entry.ArrayMapImpl>> origin=null + CALL 'public final fun mapIndexedNotNull (transform: kotlin.Function2<@[ParameterName(name = 'index')] kotlin.Int, T of kotlin.collections.ArraysKt.mapIndexedNotNull, R of kotlin.collections.ArraysKt.mapIndexedNotNull?>): kotlin.collections.List declared in kotlin.collections.ArraysKt' type=kotlin.collections.List<.ArrayMapImpl.Entry.ArrayMapImpl>> origin=null : kotlin.Any? : .ArrayMapImpl.Entry.ArrayMapImpl> $receiver: CALL 'private final fun (): kotlin.Array declared in .ArrayMapImpl' type=kotlin.Array origin=GET_PROPERTY @@ -683,11 +683,11 @@ FILE fqName: fileName:/ArrayMap.kt RETURN type=kotlin.Nothing from='local final fun (index: kotlin.Int, value: kotlin.Any?): .ArrayMapImpl.Entry.ArrayMapImpl>? declared in .ArrayMapImpl.entries' WHEN type=.ArrayMapImpl.Entry.ArrayMapImpl>? origin=IF BRANCH - if: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ + if: CALL 'public final fun not (): kotlin.Boolean 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_VAR 'value: kotlin.Any? declared in .ArrayMapImpl.entries.' type=kotlin.Any? origin=null arg1: CONST Null type=kotlin.Nothing? value=null - then: CONSTRUCTOR_CALL 'public constructor (key: kotlin.Int, value: T of .ArrayMapImpl.Entry) [primary] declared in .ArrayMapImpl.Entry' type=.ArrayMapImpl.Entry.ArrayMapImpl> origin=null + then: CONSTRUCTOR_CALL 'public constructor (key: kotlin.Int, value: T of .ArrayMapImpl.Entry) declared in .ArrayMapImpl.Entry' type=.ArrayMapImpl.Entry.ArrayMapImpl> origin=null : T of .ArrayMapImpl key: GET_VAR 'index: kotlin.Int declared in .ArrayMapImpl.entries.' type=kotlin.Int origin=null value: TYPE_OP type=T of .ArrayMapImpl origin=CAST typeOperand=T of .ArrayMapImpl @@ -702,11 +702,11 @@ FILE fqName: fileName:/ArrayMap.kt VALUE_PARAMETER name:key index:0 type:kotlin.Int VALUE_PARAMETER name:value index:1 type:T of .ArrayMapImpl.Entry BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Entry modality:FINAL visibility:public [data] superTypes:[kotlin.collections.Map.Entry.ArrayMapImpl.Entry>]' PROPERTY name:key visibility:public modality:OPEN [val] overridden: - public abstract key: K of kotlin.collections.Map.Entry [val] + public abstract key: K of kotlin.collections.Map.Entry FIELD PROPERTY_BACKING_FIELD name:key type:kotlin.Int visibility:private [final] EXPRESSION_BODY GET_VAR 'key: kotlin.Int declared in .ArrayMapImpl.Entry.' type=kotlin.Int origin=INITIALIZE_PROPERTY_FROM_PARAMETER @@ -721,7 +721,7 @@ FILE fqName: fileName:/ArrayMap.kt receiver: GET_VAR ': .ArrayMapImpl.Entry.ArrayMapImpl.Entry> declared in .ArrayMapImpl.Entry.' type=.ArrayMapImpl.Entry.ArrayMapImpl.Entry> origin=null PROPERTY name:value visibility:public modality:OPEN [val] overridden: - public abstract value: V of kotlin.collections.Map.Entry [val] + public abstract value: V of kotlin.collections.Map.Entry FIELD PROPERTY_BACKING_FIELD name:value type:T of .ArrayMapImpl.Entry visibility:private [final] EXPRESSION_BODY GET_VAR 'value: T of .ArrayMapImpl.Entry declared in .ArrayMapImpl.Entry.' type=T of .ArrayMapImpl.Entry origin=INITIALIZE_PROPERTY_FROM_PARAMETER @@ -737,13 +737,13 @@ FILE fqName: fileName:/ArrayMap.kt FUN GENERATED_DATA_CLASS_MEMBER name:component1 visibility:public modality:FINAL <> ($this:.ArrayMapImpl.Entry.ArrayMapImpl.Entry>) returnType:kotlin.Int [operator] $this: VALUE_PARAMETER name: type:.ArrayMapImpl.Entry.ArrayMapImpl.Entry> BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Int [operator] declared in .ArrayMapImpl.Entry' + RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Int declared in .ArrayMapImpl.Entry' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:key type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null receiver: GET_VAR ': .ArrayMapImpl.Entry.ArrayMapImpl.Entry> declared in .ArrayMapImpl.Entry.component1' type=.ArrayMapImpl.Entry.ArrayMapImpl.Entry> origin=null FUN GENERATED_DATA_CLASS_MEMBER name:component2 visibility:public modality:FINAL <> ($this:.ArrayMapImpl.Entry.ArrayMapImpl.Entry>) returnType:T of .ArrayMapImpl.Entry [operator] $this: VALUE_PARAMETER name: type:.ArrayMapImpl.Entry.ArrayMapImpl.Entry> BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component2 (): T of .ArrayMapImpl.Entry [operator] declared in .ArrayMapImpl.Entry' + RETURN type=kotlin.Nothing from='public final fun component2 (): T of .ArrayMapImpl.Entry declared in .ArrayMapImpl.Entry' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:value type:T of .ArrayMapImpl.Entry visibility:private [final]' type=T of .ArrayMapImpl.Entry origin=null receiver: GET_VAR ': .ArrayMapImpl.Entry.ArrayMapImpl.Entry> declared in .ArrayMapImpl.Entry.component2' type=.ArrayMapImpl.Entry.ArrayMapImpl.Entry> origin=null FUN GENERATED_DATA_CLASS_MEMBER name:copy visibility:public modality:FINAL <> ($this:.ArrayMapImpl.Entry.ArrayMapImpl.Entry>, key:kotlin.Int, value:T of .ArrayMapImpl.Entry) returnType:.ArrayMapImpl.Entry.ArrayMapImpl.Entry> @@ -758,13 +758,13 @@ FILE fqName: fileName:/ArrayMap.kt receiver: GET_VAR ': .ArrayMapImpl.Entry.ArrayMapImpl.Entry> declared in .ArrayMapImpl.Entry.copy' type=.ArrayMapImpl.Entry.ArrayMapImpl.Entry> origin=null BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun copy (key: kotlin.Int, value: T of .ArrayMapImpl.Entry): .ArrayMapImpl.Entry.ArrayMapImpl.Entry> declared in .ArrayMapImpl.Entry' - CONSTRUCTOR_CALL 'public constructor (key: kotlin.Int, value: T of .ArrayMapImpl.Entry) [primary] declared in .ArrayMapImpl.Entry' type=.ArrayMapImpl.Entry.ArrayMapImpl.Entry> origin=null + CONSTRUCTOR_CALL 'public constructor (key: kotlin.Int, value: T of .ArrayMapImpl.Entry) declared in .ArrayMapImpl.Entry' type=.ArrayMapImpl.Entry.ArrayMapImpl.Entry> origin=null : T of .ArrayMapImpl.Entry key: GET_VAR 'key: kotlin.Int declared in .ArrayMapImpl.Entry.copy' type=kotlin.Int origin=null value: GET_VAR 'value: T of .ArrayMapImpl.Entry declared in .ArrayMapImpl.Entry.copy' type=T of .ArrayMapImpl.Entry origin=null FUN GENERATED_DATA_CLASS_MEMBER name:toString visibility:public modality:OPEN <> ($this:.ArrayMapImpl.Entry.ArrayMapImpl.Entry>) returnType:kotlin.String overridden: - public open fun toString (): kotlin.String [fake_override] declared in kotlin.collections.Map.Entry + public open fun toString (): kotlin.String declared in kotlin.collections.Map.Entry $this: VALUE_PARAMETER name: type:.ArrayMapImpl.Entry.ArrayMapImpl.Entry> BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun toString (): kotlin.String declared in .ArrayMapImpl.Entry' @@ -780,17 +780,17 @@ FILE fqName: fileName:/ArrayMap.kt CONST String type=kotlin.String value=")" FUN GENERATED_DATA_CLASS_MEMBER name:hashCode visibility:public modality:OPEN <> ($this:.ArrayMapImpl.Entry.ArrayMapImpl.Entry>) returnType:kotlin.Int overridden: - public open fun hashCode (): kotlin.Int [fake_override] declared in kotlin.collections.Map.Entry + public open fun hashCode (): kotlin.Int declared in kotlin.collections.Map.Entry $this: VALUE_PARAMETER name: type:.ArrayMapImpl.Entry.ArrayMapImpl.Entry> BLOCK_BODY VAR name:result type:kotlin.Int [var] - CALL 'public open fun hashCode (): kotlin.Int [fake_override] declared in kotlin.Int' type=kotlin.Int origin=null + CALL 'public open fun hashCode (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:key type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null receiver: GET_VAR ': .ArrayMapImpl.Entry.ArrayMapImpl.Entry> declared in .ArrayMapImpl.Entry.hashCode' type=.ArrayMapImpl.Entry.ArrayMapImpl.Entry> origin=null - SET_VAR 'var result: kotlin.Int [var] declared in .ArrayMapImpl.Entry.hashCode' type=kotlin.Unit origin=EQ - CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: CALL 'public final fun times (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'var result: kotlin.Int [var] declared in .ArrayMapImpl.Entry.hashCode' type=kotlin.Int origin=null + SET_VAR 'var result: kotlin.Int declared in .ArrayMapImpl.Entry.hashCode' type=kotlin.Unit origin=EQ + CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: CALL 'public final fun times (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'var result: kotlin.Int declared in .ArrayMapImpl.Entry.hashCode' type=kotlin.Int origin=null other: CONST Int type=kotlin.Int value=31 other: WHEN type=kotlin.Int origin=null BRANCH @@ -805,10 +805,10 @@ FILE fqName: fileName:/ArrayMap.kt $this: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:value type:T of .ArrayMapImpl.Entry visibility:private [final]' type=T of .ArrayMapImpl.Entry origin=null receiver: GET_VAR ': .ArrayMapImpl.Entry.ArrayMapImpl.Entry> declared in .ArrayMapImpl.Entry.hashCode' type=.ArrayMapImpl.Entry.ArrayMapImpl.Entry> origin=null RETURN type=kotlin.Nothing from='public open fun hashCode (): kotlin.Int declared in .ArrayMapImpl.Entry' - GET_VAR 'var result: kotlin.Int [var] declared in .ArrayMapImpl.Entry.hashCode' type=kotlin.Int origin=null + GET_VAR 'var result: kotlin.Int declared in .ArrayMapImpl.Entry.hashCode' type=kotlin.Int origin=null FUN GENERATED_DATA_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:.ArrayMapImpl.Entry.ArrayMapImpl.Entry>, other:kotlin.Any?) returnType:kotlin.Boolean [operator] overridden: - public open fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in kotlin.collections.Map.Entry + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.collections.Map.Entry $this: VALUE_PARAMETER name: type:.ArrayMapImpl.Entry.ArrayMapImpl.Entry> VALUE_PARAMETER name:other index:0 type:kotlin.Any? BLOCK_BODY @@ -817,49 +817,49 @@ FILE fqName: fileName:/ArrayMap.kt 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 ': .ArrayMapImpl.Entry.ArrayMapImpl.Entry> declared in .ArrayMapImpl.Entry.equals' type=.ArrayMapImpl.Entry.ArrayMapImpl.Entry> origin=null arg1: GET_VAR 'other: kotlin.Any? declared in .ArrayMapImpl.Entry.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .ArrayMapImpl.Entry' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .ArrayMapImpl.Entry' CONST Boolean type=kotlin.Boolean value=true WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=.ArrayMapImpl.Entry.ArrayMapImpl.Entry> GET_VAR 'other: kotlin.Any? declared in .ArrayMapImpl.Entry.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .ArrayMapImpl.Entry' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .ArrayMapImpl.Entry' CONST Boolean type=kotlin.Boolean value=false VAR IR_TEMPORARY_VARIABLE name:tmp_6 type:.ArrayMapImpl.Entry.ArrayMapImpl.Entry> [val] TYPE_OP type=.ArrayMapImpl.Entry.ArrayMapImpl.Entry> origin=CAST typeOperand=.ArrayMapImpl.Entry.ArrayMapImpl.Entry> GET_VAR 'other: kotlin.Any? declared in .ArrayMapImpl.Entry.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 + if: CALL 'public final fun not (): kotlin.Boolean 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:key type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null receiver: GET_VAR ': .ArrayMapImpl.Entry.ArrayMapImpl.Entry> declared in .ArrayMapImpl.Entry.equals' type=.ArrayMapImpl.Entry.ArrayMapImpl.Entry> origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:key type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null - receiver: GET_VAR 'val tmp_6: .ArrayMapImpl.Entry.ArrayMapImpl.Entry> [val] declared in .ArrayMapImpl.Entry.equals' type=.ArrayMapImpl.Entry.ArrayMapImpl.Entry> origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .ArrayMapImpl.Entry' + receiver: GET_VAR 'val tmp_6: .ArrayMapImpl.Entry.ArrayMapImpl.Entry> declared in .ArrayMapImpl.Entry.equals' type=.ArrayMapImpl.Entry.ArrayMapImpl.Entry> origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .ArrayMapImpl.Entry' CONST Boolean type=kotlin.Boolean value=false 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 + if: CALL 'public final fun not (): kotlin.Boolean 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:value type:T of .ArrayMapImpl.Entry visibility:private [final]' type=T of .ArrayMapImpl.Entry origin=null receiver: GET_VAR ': .ArrayMapImpl.Entry.ArrayMapImpl.Entry> declared in .ArrayMapImpl.Entry.equals' type=.ArrayMapImpl.Entry.ArrayMapImpl.Entry> origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:value type:T of .ArrayMapImpl.Entry visibility:private [final]' type=T of .ArrayMapImpl.Entry origin=null - receiver: GET_VAR 'val tmp_6: .ArrayMapImpl.Entry.ArrayMapImpl.Entry> [val] declared in .ArrayMapImpl.Entry.equals' type=.ArrayMapImpl.Entry.ArrayMapImpl.Entry> origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .ArrayMapImpl.Entry' + receiver: GET_VAR 'val tmp_6: .ArrayMapImpl.Entry.ArrayMapImpl.Entry> declared in .ArrayMapImpl.Entry.equals' type=.ArrayMapImpl.Entry.ArrayMapImpl.Entry> origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .ArrayMapImpl.Entry' CONST Boolean type=kotlin.Boolean value=false - RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .ArrayMapImpl.Entry' + RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .ArrayMapImpl.Entry' CONST Boolean type=kotlin.Boolean value=true 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 .ArrayMap + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .ArrayMap $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 .ArrayMap + public open fun hashCode (): kotlin.Int declared in .ArrayMap $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 .ArrayMap + public open fun toString (): kotlin.String declared in .ArrayMap $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/firProblems/ClashResolutionDescriptor.fir.ir.txt b/compiler/testData/ir/irText/firProblems/ClashResolutionDescriptor.fir.ir.txt index bc1a60ab387..b77c38a5e89 100644 --- a/compiler/testData/ir/irText/firProblems/ClashResolutionDescriptor.fir.ir.txt +++ b/compiler/testData/ir/irText/firProblems/ClashResolutionDescriptor.fir.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/ClashResolutionDescriptor.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.ComponentContainer 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -19,7 +19,7 @@ FILE fqName: fileName:/ClashResolutionDescriptor.kt TYPE_PARAMETER name:S index:0 variance: superTypes:[.PlatformSpecificExtension.PlatformSpecificExtension>] reified:false 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -34,7 +34,7 @@ FILE fqName: fileName:/ClashResolutionDescriptor.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.ComponentDescriptor 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -51,7 +51,7 @@ FILE fqName: fileName:/ClashResolutionDescriptor.kt CONSTRUCTOR visibility:public <> (applicableTo:java.lang.Class.PlatformExtensionsClashResolver>) returnType:.PlatformExtensionsClashResolver.PlatformExtensionsClashResolver> [primary] VALUE_PARAMETER name:applicableTo index:0 type:java.lang.Class.PlatformExtensionsClashResolver> BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:PlatformExtensionsClashResolver modality:ABSTRACT visibility:public superTypes:[kotlin.Any]' PROPERTY name:applicableTo visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:applicableTo type:java.lang.Class.PlatformExtensionsClashResolver> visibility:private [final] @@ -66,7 +66,7 @@ FILE fqName: fileName:/ClashResolutionDescriptor.kt receiver: GET_VAR ': .PlatformExtensionsClashResolver.PlatformExtensionsClashResolver> declared in .PlatformExtensionsClashResolver.' type=.PlatformExtensionsClashResolver.PlatformExtensionsClashResolver> 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -85,7 +85,7 @@ FILE fqName: fileName:/ClashResolutionDescriptor.kt VALUE_PARAMETER name:resolver index:1 type:.PlatformExtensionsClashResolver.ClashResolutionDescriptor> VALUE_PARAMETER name:clashedComponents index:2 type:kotlin.collections.List<.ComponentDescriptor> BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:ClashResolutionDescriptor modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:resolver visibility:private modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:resolver type:.PlatformExtensionsClashResolver.ClashResolutionDescriptor> visibility:private [final] @@ -111,7 +111,7 @@ FILE fqName: fileName:/ClashResolutionDescriptor.kt receiver: GET_VAR ': .ClashResolutionDescriptor.ClashResolutionDescriptor> declared in .ClashResolutionDescriptor.' type=.ClashResolutionDescriptor.ClashResolutionDescriptor> 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -125,7 +125,7 @@ FILE fqName: fileName:/ClashResolutionDescriptor.kt PROPERTY name:registrationMap visibility:private modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:registrationMap type:java.util.HashMap visibility:private [final,static] EXPRESSION_BODY - CALL 'public final fun hashMapOf (): java.util.HashMap [inline] declared in kotlin.collections.MapsKt' type=java.util.HashMap origin=null + CALL 'public final fun hashMapOf (): java.util.HashMap declared in kotlin.collections.MapsKt' type=java.util.HashMap origin=null : java.lang.reflect.Type : kotlin.Any FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:private modality:FINAL <> () returnType:java.util.HashMap @@ -139,38 +139,38 @@ FILE fqName: fileName:/ClashResolutionDescriptor.kt BLOCK_BODY BLOCK type=kotlin.Unit origin=FOR_LOOP VAR FOR_LOOP_ITERATOR name:tmp_0 type:kotlin.collections.Iterator<.PlatformExtensionsClashResolver<*>> [val] - CALL 'public abstract fun iterator (): kotlin.collections.Iterator [operator] declared in kotlin.collections.List' type=kotlin.collections.Iterator<.PlatformExtensionsClashResolver<*>> origin=FOR_LOOP_ITERATOR + CALL 'public abstract fun iterator (): kotlin.collections.Iterator declared in kotlin.collections.List' type=kotlin.collections.Iterator<.PlatformExtensionsClashResolver<*>> origin=FOR_LOOP_ITERATOR $this: GET_VAR 'clashResolvers: kotlin.collections.List<.PlatformExtensionsClashResolver<*>> declared in .resolveClashesIfAny' type=kotlin.collections.List<.PlatformExtensionsClashResolver<*>> origin=null WHILE label=null origin=FOR_LOOP_INNER_WHILE - condition: CALL 'public abstract fun hasNext (): kotlin.Boolean [operator] declared in kotlin.collections.Iterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT - $this: GET_VAR 'val tmp_0: kotlin.collections.Iterator<.PlatformExtensionsClashResolver<*>> [val] declared in .resolveClashesIfAny' type=kotlin.collections.Iterator<.PlatformExtensionsClashResolver<*>> origin=null + condition: CALL 'public abstract fun hasNext (): kotlin.Boolean declared in kotlin.collections.Iterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT + $this: GET_VAR 'val tmp_0: kotlin.collections.Iterator<.PlatformExtensionsClashResolver<*>> declared in .resolveClashesIfAny' type=kotlin.collections.Iterator<.PlatformExtensionsClashResolver<*>> origin=null body: BLOCK type=kotlin.Unit origin=FOR_LOOP_INNER_WHILE VAR FOR_LOOP_VARIABLE name:resolver type:.PlatformExtensionsClashResolver<*> [val] - CALL 'public abstract fun next (): T of kotlin.collections.Iterator [operator] declared in kotlin.collections.Iterator' type=.PlatformExtensionsClashResolver<*> origin=FOR_LOOP_NEXT - $this: GET_VAR 'val tmp_0: kotlin.collections.Iterator<.PlatformExtensionsClashResolver<*>> [val] declared in .resolveClashesIfAny' type=kotlin.collections.Iterator<.PlatformExtensionsClashResolver<*>> origin=null + CALL 'public abstract fun next (): T of kotlin.collections.Iterator declared in kotlin.collections.Iterator' type=.PlatformExtensionsClashResolver<*> origin=FOR_LOOP_NEXT + $this: GET_VAR 'val tmp_0: kotlin.collections.Iterator<.PlatformExtensionsClashResolver<*>> declared in .resolveClashesIfAny' type=kotlin.collections.Iterator<.PlatformExtensionsClashResolver<*>> origin=null BLOCK type=kotlin.Unit origin=null VAR name:clashedComponents type:kotlin.collections.Collection<.ComponentDescriptor> [val] BLOCK type=kotlin.collections.Collection<.ComponentDescriptor> origin=ELVIS VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:kotlin.collections.Collection<.ComponentDescriptor>? [val] TYPE_OP type=kotlin.collections.Collection<.ComponentDescriptor>? origin=SAFE_CAST typeOperand=kotlin.collections.Collection<.ComponentDescriptor> - CALL 'public open fun get (p0: @[EnhancedNullability] K of java.util.HashMap): V of java.util.HashMap? [operator] declared in java.util.HashMap' type=kotlin.Any? origin=null + CALL 'public open fun get (p0: @[EnhancedNullability] K of java.util.HashMap): V of java.util.HashMap? declared in java.util.HashMap' type=kotlin.Any? origin=null $this: CALL 'private final fun (): java.util.HashMap declared in ' type=java.util.HashMap origin=GET_PROPERTY p0: CALL 'public final fun (): java.lang.Class.PlatformExtensionsClashResolver> declared in .PlatformExtensionsClashResolver' type=java.lang.Class.PlatformSpecificExtension.PlatformSpecificExtension.PlatformSpecificExtension.PlatformSpecificExtension.PlatformSpecificExtension>>>>> origin=GET_PROPERTY - $this: GET_VAR 'val resolver: .PlatformExtensionsClashResolver<*> [val] declared in .resolveClashesIfAny' type=.PlatformExtensionsClashResolver<*> origin=null + $this: GET_VAR 'val resolver: .PlatformExtensionsClashResolver<*> declared in .resolveClashesIfAny' type=.PlatformExtensionsClashResolver<*> origin=null WHEN type=kotlin.collections.Collection<.ComponentDescriptor> origin=ELVIS BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_1: kotlin.collections.Collection<.ComponentDescriptor>? [val] declared in .resolveClashesIfAny' type=kotlin.collections.Collection<.ComponentDescriptor>? origin=null + arg0: GET_VAR 'val tmp_1: kotlin.collections.Collection<.ComponentDescriptor>? declared in .resolveClashesIfAny' type=kotlin.collections.Collection<.ComponentDescriptor>? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONTINUE label=null loop.label=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val tmp_1: kotlin.collections.Collection<.ComponentDescriptor>? [val] declared in .resolveClashesIfAny' type=kotlin.collections.Collection<.ComponentDescriptor>? origin=null + then: GET_VAR 'val tmp_1: kotlin.collections.Collection<.ComponentDescriptor>? declared in .resolveClashesIfAny' type=kotlin.collections.Collection<.ComponentDescriptor>? origin=null VAR name:substituteDescriptor type:.ClashResolutionDescriptor.PlatformSpecificExtension.PlatformSpecificExtension.PlatformSpecificExtension.PlatformSpecificExtension.PlatformSpecificExtension>>>>> [val] - CONSTRUCTOR_CALL 'public constructor (container: .ComponentContainer, resolver: .PlatformExtensionsClashResolver.ClashResolutionDescriptor>, clashedComponents: kotlin.collections.List<.ComponentDescriptor>) [primary] declared in .ClashResolutionDescriptor' type=.ClashResolutionDescriptor.PlatformSpecificExtension.PlatformSpecificExtension.PlatformSpecificExtension.PlatformSpecificExtension.PlatformSpecificExtension>>>>> origin=null + CONSTRUCTOR_CALL 'public constructor (container: .ComponentContainer, resolver: .PlatformExtensionsClashResolver.ClashResolutionDescriptor>, clashedComponents: kotlin.collections.List<.ComponentDescriptor>) declared in .ClashResolutionDescriptor' type=.ClashResolutionDescriptor.PlatformSpecificExtension.PlatformSpecificExtension.PlatformSpecificExtension.PlatformSpecificExtension.PlatformSpecificExtension>>>>> origin=null : .PlatformSpecificExtension.PlatformSpecificExtension.PlatformSpecificExtension.PlatformSpecificExtension.PlatformSpecificExtension>>>> container: GET_VAR 'container: .ComponentContainer declared in .resolveClashesIfAny' type=.ComponentContainer origin=null - resolver: GET_VAR 'val resolver: .PlatformExtensionsClashResolver<*> [val] declared in .resolveClashesIfAny' type=.PlatformExtensionsClashResolver<*> origin=null + resolver: GET_VAR 'val resolver: .PlatformExtensionsClashResolver<*> declared in .resolveClashesIfAny' type=.PlatformExtensionsClashResolver<*> origin=null clashedComponents: CALL 'public final fun toList (): kotlin.collections.List declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List<.ComponentDescriptor> origin=null : .ComponentDescriptor - $receiver: GET_VAR 'val clashedComponents: kotlin.collections.Collection<.ComponentDescriptor> [val] declared in .resolveClashesIfAny' type=kotlin.collections.Collection<.ComponentDescriptor> origin=null + $receiver: GET_VAR 'val clashedComponents: kotlin.collections.Collection<.ComponentDescriptor> declared in .resolveClashesIfAny' type=kotlin.collections.Collection<.ComponentDescriptor> origin=null diff --git a/compiler/testData/ir/irText/firProblems/ClashResolutionDescriptor.ir.txt b/compiler/testData/ir/irText/firProblems/ClashResolutionDescriptor.ir.txt index 4ac3632fb7c..98a23f32fe8 100644 --- a/compiler/testData/ir/irText/firProblems/ClashResolutionDescriptor.ir.txt +++ b/compiler/testData/ir/irText/firProblems/ClashResolutionDescriptor.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/ClashResolutionDescriptor.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.ComponentContainer 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -19,7 +19,7 @@ FILE fqName: fileName:/ClashResolutionDescriptor.kt TYPE_PARAMETER name:S index:0 variance: superTypes:[.PlatformSpecificExtension.PlatformSpecificExtension>] reified:false 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -34,7 +34,7 @@ FILE fqName: fileName:/ClashResolutionDescriptor.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.ComponentDescriptor 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -51,7 +51,7 @@ FILE fqName: fileName:/ClashResolutionDescriptor.kt CONSTRUCTOR visibility:public <> (applicableTo:java.lang.Class.PlatformExtensionsClashResolver>) returnType:.PlatformExtensionsClashResolver.PlatformExtensionsClashResolver> [primary] VALUE_PARAMETER name:applicableTo index:0 type:java.lang.Class.PlatformExtensionsClashResolver> BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:PlatformExtensionsClashResolver modality:ABSTRACT visibility:public superTypes:[kotlin.Any]' PROPERTY name:applicableTo visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:applicableTo type:java.lang.Class.PlatformExtensionsClashResolver> visibility:private [final] @@ -66,7 +66,7 @@ FILE fqName: fileName:/ClashResolutionDescriptor.kt receiver: GET_VAR ': .PlatformExtensionsClashResolver.PlatformExtensionsClashResolver> declared in .PlatformExtensionsClashResolver.' type=.PlatformExtensionsClashResolver.PlatformExtensionsClashResolver> 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -85,7 +85,7 @@ FILE fqName: fileName:/ClashResolutionDescriptor.kt VALUE_PARAMETER name:resolver index:1 type:.PlatformExtensionsClashResolver.ClashResolutionDescriptor> VALUE_PARAMETER name:clashedComponents index:2 type:kotlin.collections.List<.ComponentDescriptor> BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:ClashResolutionDescriptor modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:resolver visibility:private modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:resolver type:.PlatformExtensionsClashResolver.ClashResolutionDescriptor> visibility:private [final] @@ -111,7 +111,7 @@ FILE fqName: fileName:/ClashResolutionDescriptor.kt receiver: GET_VAR ': .ClashResolutionDescriptor.ClashResolutionDescriptor> declared in .ClashResolutionDescriptor.' type=.ClashResolutionDescriptor.ClashResolutionDescriptor> 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -125,7 +125,7 @@ FILE fqName: fileName:/ClashResolutionDescriptor.kt PROPERTY name:registrationMap visibility:private modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:registrationMap type:java.util.HashMap{ kotlin.collections.HashMap } visibility:private [final,static] EXPRESSION_BODY - CALL 'public final fun hashMapOf (): java.util.HashMap{ kotlin.collections.HashMap } [inline] declared in kotlin.collections.MapsKt' type=java.util.HashMap{ kotlin.collections.HashMap } origin=null + CALL 'public final fun hashMapOf (): java.util.HashMap{ kotlin.collections.HashMap } declared in kotlin.collections.MapsKt' type=java.util.HashMap{ kotlin.collections.HashMap } origin=null : java.lang.reflect.Type : kotlin.Any FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:private modality:FINAL <> () returnType:java.util.HashMap{ kotlin.collections.HashMap } @@ -139,38 +139,38 @@ FILE fqName: fileName:/ClashResolutionDescriptor.kt BLOCK_BODY BLOCK type=kotlin.Unit origin=FOR_LOOP VAR FOR_LOOP_ITERATOR name:tmp_0 type:kotlin.collections.Iterator<.PlatformExtensionsClashResolver<*>> [val] - CALL 'public abstract fun iterator (): kotlin.collections.Iterator [operator] declared in kotlin.collections.List' type=kotlin.collections.Iterator<.PlatformExtensionsClashResolver<*>> origin=FOR_LOOP_ITERATOR + CALL 'public abstract fun iterator (): kotlin.collections.Iterator declared in kotlin.collections.List' type=kotlin.collections.Iterator<.PlatformExtensionsClashResolver<*>> origin=FOR_LOOP_ITERATOR $this: GET_VAR 'clashResolvers: kotlin.collections.List<.PlatformExtensionsClashResolver<*>> declared in .resolveClashesIfAny' type=kotlin.collections.List<.PlatformExtensionsClashResolver<*>> origin=null WHILE label=null origin=FOR_LOOP_INNER_WHILE - condition: CALL 'public abstract fun hasNext (): kotlin.Boolean [operator] declared in kotlin.collections.Iterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT - $this: GET_VAR 'val tmp_0: kotlin.collections.Iterator<.PlatformExtensionsClashResolver<*>> [val] declared in .resolveClashesIfAny' type=kotlin.collections.Iterator<.PlatformExtensionsClashResolver<*>> origin=null + condition: CALL 'public abstract fun hasNext (): kotlin.Boolean declared in kotlin.collections.Iterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT + $this: GET_VAR 'val tmp_0: kotlin.collections.Iterator<.PlatformExtensionsClashResolver<*>> declared in .resolveClashesIfAny' type=kotlin.collections.Iterator<.PlatformExtensionsClashResolver<*>> origin=null body: BLOCK type=kotlin.Unit origin=FOR_LOOP_INNER_WHILE VAR FOR_LOOP_VARIABLE name:resolver type:.PlatformExtensionsClashResolver<*> [val] - CALL 'public abstract fun next (): T of kotlin.collections.Iterator [operator] declared in kotlin.collections.Iterator' type=.PlatformExtensionsClashResolver<*> origin=FOR_LOOP_NEXT - $this: GET_VAR 'val tmp_0: kotlin.collections.Iterator<.PlatformExtensionsClashResolver<*>> [val] declared in .resolveClashesIfAny' type=kotlin.collections.Iterator<.PlatformExtensionsClashResolver<*>> origin=null + CALL 'public abstract fun next (): T of kotlin.collections.Iterator declared in kotlin.collections.Iterator' type=.PlatformExtensionsClashResolver<*> origin=FOR_LOOP_NEXT + $this: GET_VAR 'val tmp_0: kotlin.collections.Iterator<.PlatformExtensionsClashResolver<*>> declared in .resolveClashesIfAny' type=kotlin.collections.Iterator<.PlatformExtensionsClashResolver<*>> origin=null BLOCK type=kotlin.Unit origin=null VAR name:clashedComponents type:kotlin.collections.Collection<.ComponentDescriptor> [val] BLOCK type=kotlin.collections.Collection<.ComponentDescriptor> origin=ELVIS VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:kotlin.collections.Collection<.ComponentDescriptor>? [val] TYPE_OP type=kotlin.collections.Collection<.ComponentDescriptor>? origin=SAFE_CAST typeOperand=kotlin.collections.Collection<.ComponentDescriptor> - CALL 'public open fun get (key: @[EnhancedNullability] K of java.util.HashMap): @[EnhancedNullability] V of java.util.HashMap? [operator] declared in java.util.HashMap' type=@[EnhancedNullability] kotlin.Any? origin=GET_ARRAY_ELEMENT + CALL 'public open fun get (key: @[EnhancedNullability] K of java.util.HashMap): @[EnhancedNullability] V of java.util.HashMap? declared in java.util.HashMap' type=@[EnhancedNullability] kotlin.Any? origin=GET_ARRAY_ELEMENT $this: CALL 'private final fun (): java.util.HashMap{ kotlin.collections.HashMap } declared in ' type=java.util.HashMap{ kotlin.collections.HashMap } origin=GET_PROPERTY key: CALL 'public final fun (): java.lang.Class.PlatformExtensionsClashResolver> declared in .PlatformExtensionsClashResolver' type=java.lang.Class.PlatformSpecificExtension<*>> origin=GET_PROPERTY - $this: GET_VAR 'val resolver: .PlatformExtensionsClashResolver<*> [val] declared in .resolveClashesIfAny' type=.PlatformExtensionsClashResolver<*> origin=null + $this: GET_VAR 'val resolver: .PlatformExtensionsClashResolver<*> declared in .resolveClashesIfAny' type=.PlatformExtensionsClashResolver<*> origin=null WHEN type=kotlin.collections.Collection<.ComponentDescriptor> origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_1: kotlin.collections.Collection<.ComponentDescriptor>? [val] declared in .resolveClashesIfAny' type=kotlin.collections.Collection<.ComponentDescriptor>? origin=null + arg0: GET_VAR 'val tmp_1: kotlin.collections.Collection<.ComponentDescriptor>? declared in .resolveClashesIfAny' type=kotlin.collections.Collection<.ComponentDescriptor>? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONTINUE label=null loop.label=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val tmp_1: kotlin.collections.Collection<.ComponentDescriptor>? [val] declared in .resolveClashesIfAny' type=kotlin.collections.Collection<.ComponentDescriptor>? origin=null + then: GET_VAR 'val tmp_1: kotlin.collections.Collection<.ComponentDescriptor>? declared in .resolveClashesIfAny' type=kotlin.collections.Collection<.ComponentDescriptor>? origin=null VAR name:substituteDescriptor type:.ClashResolutionDescriptor.PlatformSpecificExtension.PlatformSpecificExtension.PlatformSpecificExtension.PlatformSpecificExtension.PlatformSpecificExtension>>>>> [val] - CONSTRUCTOR_CALL 'public constructor (container: .ComponentContainer, resolver: .PlatformExtensionsClashResolver.ClashResolutionDescriptor>, clashedComponents: kotlin.collections.List<.ComponentDescriptor>) [primary] declared in .ClashResolutionDescriptor' type=.ClashResolutionDescriptor.PlatformSpecificExtension.PlatformSpecificExtension.PlatformSpecificExtension.PlatformSpecificExtension.PlatformSpecificExtension>>>>> origin=null + CONSTRUCTOR_CALL 'public constructor (container: .ComponentContainer, resolver: .PlatformExtensionsClashResolver.ClashResolutionDescriptor>, clashedComponents: kotlin.collections.List<.ComponentDescriptor>) declared in .ClashResolutionDescriptor' type=.ClashResolutionDescriptor.PlatformSpecificExtension.PlatformSpecificExtension.PlatformSpecificExtension.PlatformSpecificExtension.PlatformSpecificExtension>>>>> origin=null : .PlatformSpecificExtension.PlatformSpecificExtension.PlatformSpecificExtension.PlatformSpecificExtension.PlatformSpecificExtension>>>> container: GET_VAR 'container: .ComponentContainer declared in .resolveClashesIfAny' type=.ComponentContainer origin=null - resolver: GET_VAR 'val resolver: .PlatformExtensionsClashResolver<*> [val] declared in .resolveClashesIfAny' type=.PlatformExtensionsClashResolver<*> origin=null + resolver: GET_VAR 'val resolver: .PlatformExtensionsClashResolver<*> declared in .resolveClashesIfAny' type=.PlatformExtensionsClashResolver<*> origin=null clashedComponents: CALL 'public final fun toList (): kotlin.collections.List declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List<.ComponentDescriptor> origin=null : .ComponentDescriptor - $receiver: GET_VAR 'val clashedComponents: kotlin.collections.Collection<.ComponentDescriptor> [val] declared in .resolveClashesIfAny' type=kotlin.collections.Collection<.ComponentDescriptor> origin=null + $receiver: GET_VAR 'val clashedComponents: kotlin.collections.Collection<.ComponentDescriptor> declared in .resolveClashesIfAny' type=kotlin.collections.Collection<.ComponentDescriptor> origin=null diff --git a/compiler/testData/ir/irText/firProblems/DeepCopyIrTree.fir.ir.txt b/compiler/testData/ir/irText/firProblems/DeepCopyIrTree.fir.ir.txt index 65c39c43ca8..0c6b0d5ab25 100644 --- a/compiler/testData/ir/irText/firProblems/DeepCopyIrTree.fir.ir.txt +++ b/compiler/testData/ir/irText/firProblems/DeepCopyIrTree.fir.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/DeepCopyIrTree.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.IrType 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -26,7 +26,7 @@ FILE fqName: fileName:/DeepCopyIrTree.kt $this: VALUE_PARAMETER name: type:.TypeRemapper 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -49,25 +49,25 @@ FILE fqName: fileName:/DeepCopyIrTree.kt VALUE_PARAMETER name: index:0 type:kotlin.collections.List<.IrTypeParameter> 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 .IrDeclaration - public open fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .IrDeclarationParent + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IrDeclaration + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IrDeclarationParent $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 .IrDeclaration - public open fun hashCode (): kotlin.Int [fake_override] declared in .IrDeclarationParent + public open fun hashCode (): kotlin.Int declared in .IrDeclaration + public open fun hashCode (): kotlin.Int declared in .IrDeclarationParent $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 .IrDeclaration - public open fun toString (): kotlin.String [fake_override] declared in .IrDeclarationParent + public open fun toString (): kotlin.String declared in .IrDeclaration + public open fun toString (): kotlin.String declared in .IrDeclarationParent $this: VALUE_PARAMETER name: type:kotlin.Any CLASS INTERFACE name:IrDeclaration modality:ABSTRACT visibility:public superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.IrDeclaration 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -86,22 +86,22 @@ FILE fqName: fileName:/DeepCopyIrTree.kt $this: VALUE_PARAMETER name: type:.IrTypeParameter 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 .IrDeclaration + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IrDeclaration $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 .IrDeclaration + public open fun hashCode (): kotlin.Int declared in .IrDeclaration $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 .IrDeclaration + public open fun toString (): kotlin.String declared in .IrDeclaration $this: VALUE_PARAMETER name: type:kotlin.Any CLASS INTERFACE name:IrDeclarationParent modality:ABSTRACT visibility:public superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.IrDeclarationParent 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -117,7 +117,7 @@ FILE fqName: fileName:/DeepCopyIrTree.kt CONSTRUCTOR visibility:public <> (typeRemapper:.TypeRemapper) returnType:.DeepCopyIrTreeWithSymbols [primary] VALUE_PARAMETER name:typeRemapper index:0 type:.TypeRemapper BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:DeepCopyIrTreeWithSymbols modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:typeRemapper visibility:private modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:typeRemapper type:.TypeRemapper visibility:private [final] @@ -143,7 +143,7 @@ FILE fqName: fileName:/DeepCopyIrTree.kt BLOCK_BODY CALL 'public abstract fun (: kotlin.collections.List<.IrTypeParameter>): kotlin.Unit declared in .IrTypeParametersContainer' type=kotlin.Unit origin=EQ $this: GET_VAR ': .IrTypeParametersContainer declared in .DeepCopyIrTreeWithSymbols.copyTypeParametersFrom' type=.IrTypeParametersContainer origin=null - : CALL 'public final fun map (transform: kotlin.Function1): kotlin.collections.List [inline] declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List<.IrTypeParameter> origin=null + : CALL 'public final fun map (transform: kotlin.Function1): kotlin.collections.List declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List<.IrTypeParameter> origin=null : .IrTypeParameter : .IrTypeParameter $receiver: CALL 'public abstract fun (): kotlin.collections.List<.IrTypeParameter> declared in .IrTypeParametersContainer' type=kotlin.collections.List<.IrTypeParameter> origin=GET_PROPERTY @@ -156,7 +156,7 @@ FILE fqName: fileName:/DeepCopyIrTree.kt CALL 'private final fun copyTypeParameter (declaration: .IrTypeParameter): .IrTypeParameter declared in .DeepCopyIrTreeWithSymbols' type=.IrTypeParameter origin=null $this: GET_VAR ': .DeepCopyIrTreeWithSymbols declared in .DeepCopyIrTreeWithSymbols.copyTypeParametersFrom' type=.DeepCopyIrTreeWithSymbols origin=null declaration: GET_VAR 'it: .IrTypeParameter declared in .DeepCopyIrTreeWithSymbols.copyTypeParametersFrom.' type=.IrTypeParameter origin=null - CALL 'public final fun withinScope (irTypeParametersContainer: .IrTypeParametersContainer, fn: kotlin.Function0.withinScope>): T of .withinScope [inline] declared in ' type=kotlin.Unit origin=null + CALL 'public final fun withinScope (irTypeParametersContainer: .IrTypeParametersContainer, fn: kotlin.Function0.withinScope>): T of .withinScope declared in ' type=kotlin.Unit origin=null : kotlin.Unit $receiver: CALL 'private final fun (): .TypeRemapper declared in .DeepCopyIrTreeWithSymbols' type=.TypeRemapper origin=GET_PROPERTY $this: GET_VAR ': .DeepCopyIrTreeWithSymbols declared in .DeepCopyIrTreeWithSymbols.copyTypeParametersFrom' type=.DeepCopyIrTreeWithSymbols origin=null @@ -166,8 +166,8 @@ FILE fqName: fileName:/DeepCopyIrTree.kt BLOCK_BODY BLOCK type=kotlin.Unit origin=FOR_LOOP VAR FOR_LOOP_ITERATOR name:tmp_0 type:kotlin.collections.Iterator.IrTypeParameter, .IrTypeParameter>> [val] - CALL 'public abstract fun iterator (): kotlin.collections.Iterator [operator] declared in kotlin.collections.List' type=kotlin.collections.Iterator.IrTypeParameter, .IrTypeParameter>> origin=FOR_LOOP_ITERATOR - $this: CALL 'public final fun zip (other: kotlin.collections.Iterable): kotlin.collections.List> [infix] declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List.IrTypeParameter, .IrTypeParameter>> origin=null + CALL 'public abstract fun iterator (): kotlin.collections.Iterator declared in kotlin.collections.List' type=kotlin.collections.Iterator.IrTypeParameter, .IrTypeParameter>> origin=FOR_LOOP_ITERATOR + $this: CALL 'public final fun zip (other: kotlin.collections.Iterable): kotlin.collections.List> declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List.IrTypeParameter, .IrTypeParameter>> origin=null : .IrTypeParameter : .IrTypeParameter $receiver: CALL 'public abstract fun (): kotlin.collections.List<.IrTypeParameter> declared in .IrTypeParametersContainer' type=kotlin.collections.List<.IrTypeParameter> origin=GET_PROPERTY @@ -175,26 +175,26 @@ FILE fqName: fileName:/DeepCopyIrTree.kt other: CALL 'public abstract fun (): kotlin.collections.List<.IrTypeParameter> declared in .IrTypeParametersContainer' type=kotlin.collections.List<.IrTypeParameter> origin=GET_PROPERTY $this: GET_VAR 'other: .IrTypeParametersContainer declared in .DeepCopyIrTreeWithSymbols.copyTypeParametersFrom' type=.IrTypeParametersContainer origin=null WHILE label=null origin=FOR_LOOP_INNER_WHILE - condition: CALL 'public abstract fun hasNext (): kotlin.Boolean [operator] declared in kotlin.collections.Iterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT - $this: GET_VAR 'val tmp_0: kotlin.collections.Iterator.IrTypeParameter, .IrTypeParameter>> [val] declared in .DeepCopyIrTreeWithSymbols.copyTypeParametersFrom.' type=kotlin.collections.Iterator.IrTypeParameter, .IrTypeParameter>> origin=null + condition: CALL 'public abstract fun hasNext (): kotlin.Boolean declared in kotlin.collections.Iterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT + $this: GET_VAR 'val tmp_0: kotlin.collections.Iterator.IrTypeParameter, .IrTypeParameter>> declared in .DeepCopyIrTreeWithSymbols.copyTypeParametersFrom.' type=kotlin.collections.Iterator.IrTypeParameter, .IrTypeParameter>> origin=null body: BLOCK type=kotlin.Unit origin=FOR_LOOP_INNER_WHILE VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:kotlin.Pair<.IrTypeParameter, .IrTypeParameter> [val] - CALL 'public abstract fun next (): T of kotlin.collections.Iterator [operator] declared in kotlin.collections.Iterator' type=kotlin.Pair<.IrTypeParameter, .IrTypeParameter> origin=FOR_LOOP_NEXT - $this: GET_VAR 'val tmp_0: kotlin.collections.Iterator.IrTypeParameter, .IrTypeParameter>> [val] declared in .DeepCopyIrTreeWithSymbols.copyTypeParametersFrom.' type=kotlin.collections.Iterator.IrTypeParameter, .IrTypeParameter>> origin=null + CALL 'public abstract fun next (): T of kotlin.collections.Iterator declared in kotlin.collections.Iterator' type=kotlin.Pair<.IrTypeParameter, .IrTypeParameter> origin=FOR_LOOP_NEXT + $this: GET_VAR 'val tmp_0: kotlin.collections.Iterator.IrTypeParameter, .IrTypeParameter>> declared in .DeepCopyIrTreeWithSymbols.copyTypeParametersFrom.' type=kotlin.collections.Iterator.IrTypeParameter, .IrTypeParameter>> origin=null VAR name:thisTypeParameter type:.IrTypeParameter [val] - CALL 'public final fun component1 (): A of kotlin.Pair [operator] declared in kotlin.Pair' type=.IrTypeParameter origin=COMPONENT_N(index=1) - $this: GET_VAR 'val tmp_1: kotlin.Pair<.IrTypeParameter, .IrTypeParameter> [val] declared in .DeepCopyIrTreeWithSymbols.copyTypeParametersFrom.' type=kotlin.Pair<.IrTypeParameter, .IrTypeParameter> origin=null + CALL 'public final fun component1 (): A of kotlin.Pair declared in kotlin.Pair' type=.IrTypeParameter origin=COMPONENT_N(index=1) + $this: GET_VAR 'val tmp_1: kotlin.Pair<.IrTypeParameter, .IrTypeParameter> declared in .DeepCopyIrTreeWithSymbols.copyTypeParametersFrom.' type=kotlin.Pair<.IrTypeParameter, .IrTypeParameter> origin=null VAR name:otherTypeParameter type:.IrTypeParameter [val] - CALL 'public final fun component2 (): B of kotlin.Pair [operator] declared in kotlin.Pair' type=.IrTypeParameter origin=COMPONENT_N(index=2) - $this: GET_VAR 'val tmp_1: kotlin.Pair<.IrTypeParameter, .IrTypeParameter> [val] declared in .DeepCopyIrTreeWithSymbols.copyTypeParametersFrom.' type=kotlin.Pair<.IrTypeParameter, .IrTypeParameter> origin=null - CALL 'public final fun mapTo (destination: C of kotlin.collections.CollectionsKt.mapTo, transform: kotlin.Function1): C of kotlin.collections.CollectionsKt.mapTo [inline] declared in kotlin.collections.CollectionsKt' type=kotlin.collections.MutableList<.IrType> origin=null + CALL 'public final fun component2 (): B of kotlin.Pair declared in kotlin.Pair' type=.IrTypeParameter origin=COMPONENT_N(index=2) + $this: GET_VAR 'val tmp_1: kotlin.Pair<.IrTypeParameter, .IrTypeParameter> declared in .DeepCopyIrTreeWithSymbols.copyTypeParametersFrom.' type=kotlin.Pair<.IrTypeParameter, .IrTypeParameter> origin=null + CALL 'public final fun mapTo (destination: C of kotlin.collections.CollectionsKt.mapTo, transform: kotlin.Function1): C of kotlin.collections.CollectionsKt.mapTo declared in kotlin.collections.CollectionsKt' type=kotlin.collections.MutableList<.IrType> origin=null : .IrType : .IrType : kotlin.collections.MutableList<.IrType> $receiver: CALL 'public abstract fun (): kotlin.collections.MutableList<.IrType> declared in .IrTypeParameter' type=kotlin.collections.MutableList<.IrType> origin=GET_PROPERTY - $this: GET_VAR 'val otherTypeParameter: .IrTypeParameter [val] declared in .DeepCopyIrTreeWithSymbols.copyTypeParametersFrom.' type=.IrTypeParameter origin=null + $this: GET_VAR 'val otherTypeParameter: .IrTypeParameter declared in .DeepCopyIrTreeWithSymbols.copyTypeParametersFrom.' type=.IrTypeParameter origin=null destination: CALL 'public abstract fun (): kotlin.collections.MutableList<.IrType> declared in .IrTypeParameter' type=kotlin.collections.MutableList<.IrType> origin=GET_PROPERTY - $this: GET_VAR 'val thisTypeParameter: .IrTypeParameter [val] declared in .DeepCopyIrTreeWithSymbols.copyTypeParametersFrom.' type=.IrTypeParameter origin=null + $this: GET_VAR 'val thisTypeParameter: .IrTypeParameter declared in .DeepCopyIrTreeWithSymbols.copyTypeParametersFrom.' type=.IrTypeParameter origin=null transform: FUN_EXPR type=kotlin.Function1<.IrType, .IrType> origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> (it:.IrType) returnType:.IrType VALUE_PARAMETER name:it index:0 type:.IrType @@ -206,7 +206,7 @@ FILE fqName: fileName:/DeepCopyIrTree.kt type: GET_VAR 'it: .IrType declared in .DeepCopyIrTreeWithSymbols.copyTypeParametersFrom..' type=.IrType 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -227,9 +227,9 @@ FILE fqName: fileName:/DeepCopyIrTree.kt $this: GET_VAR ': .TypeRemapper declared in .withinScope' type=.TypeRemapper origin=null irTypeParametersContainer: GET_VAR 'irTypeParametersContainer: .IrTypeParametersContainer declared in .withinScope' type=.IrTypeParametersContainer origin=null VAR name:result type:T of .withinScope [val] - CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=T of .withinScope origin=INVOKE + CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=T of .withinScope origin=INVOKE $this: GET_VAR 'fn: kotlin.Function0.withinScope> declared in .withinScope' type=kotlin.Function0.withinScope> origin=VARIABLE_AS_FUNCTION CALL 'public abstract fun leaveScope (): kotlin.Unit declared in .TypeRemapper' type=kotlin.Unit origin=null $this: GET_VAR ': .TypeRemapper declared in .withinScope' type=.TypeRemapper origin=null - RETURN type=kotlin.Nothing from='public final fun withinScope (irTypeParametersContainer: .IrTypeParametersContainer, fn: kotlin.Function0.withinScope>): T of .withinScope [inline] declared in ' - GET_VAR 'val result: T of .withinScope [val] declared in .withinScope' type=T of .withinScope origin=null + RETURN type=kotlin.Nothing from='public final fun withinScope (irTypeParametersContainer: .IrTypeParametersContainer, fn: kotlin.Function0.withinScope>): T of .withinScope declared in ' + GET_VAR 'val result: T of .withinScope declared in .withinScope' type=T of .withinScope origin=null diff --git a/compiler/testData/ir/irText/firProblems/DeepCopyIrTree.ir.txt b/compiler/testData/ir/irText/firProblems/DeepCopyIrTree.ir.txt index 143abb86975..f58fd8754b1 100644 --- a/compiler/testData/ir/irText/firProblems/DeepCopyIrTree.ir.txt +++ b/compiler/testData/ir/irText/firProblems/DeepCopyIrTree.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/DeepCopyIrTree.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.IrType 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -26,7 +26,7 @@ FILE fqName: fileName:/DeepCopyIrTree.kt $this: VALUE_PARAMETER name: type:.TypeRemapper 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -49,25 +49,25 @@ FILE fqName: fileName:/DeepCopyIrTree.kt VALUE_PARAMETER name: index:0 type:kotlin.collections.List<.IrTypeParameter> 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 .IrDeclaration - public open fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .IrDeclarationParent + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IrDeclaration + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IrDeclarationParent $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 .IrDeclaration - public open fun hashCode (): kotlin.Int [fake_override] declared in .IrDeclarationParent + public open fun hashCode (): kotlin.Int declared in .IrDeclaration + public open fun hashCode (): kotlin.Int declared in .IrDeclarationParent $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 .IrDeclaration - public open fun toString (): kotlin.String [fake_override] declared in .IrDeclarationParent + public open fun toString (): kotlin.String declared in .IrDeclaration + public open fun toString (): kotlin.String declared in .IrDeclarationParent $this: VALUE_PARAMETER name: type:kotlin.Any CLASS INTERFACE name:IrDeclaration modality:ABSTRACT visibility:public superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.IrDeclaration 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -86,22 +86,22 @@ FILE fqName: fileName:/DeepCopyIrTree.kt $this: VALUE_PARAMETER name: type:.IrTypeParameter 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 .IrDeclaration + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IrDeclaration $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 .IrDeclaration + public open fun hashCode (): kotlin.Int declared in .IrDeclaration $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 .IrDeclaration + public open fun toString (): kotlin.String declared in .IrDeclaration $this: VALUE_PARAMETER name: type:kotlin.Any CLASS INTERFACE name:IrDeclarationParent modality:ABSTRACT visibility:public superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.IrDeclarationParent 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -117,7 +117,7 @@ FILE fqName: fileName:/DeepCopyIrTree.kt CONSTRUCTOR visibility:public <> (typeRemapper:.TypeRemapper) returnType:.DeepCopyIrTreeWithSymbols [primary] VALUE_PARAMETER name:typeRemapper index:0 type:.TypeRemapper BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:DeepCopyIrTreeWithSymbols modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:typeRemapper visibility:private modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:typeRemapper type:.TypeRemapper visibility:private [final] @@ -143,7 +143,7 @@ FILE fqName: fileName:/DeepCopyIrTree.kt BLOCK_BODY CALL 'public abstract fun (: kotlin.collections.List<.IrTypeParameter>): kotlin.Unit declared in .IrTypeParametersContainer' type=kotlin.Unit origin=EQ $this: GET_VAR ': .IrTypeParametersContainer declared in .DeepCopyIrTreeWithSymbols.copyTypeParametersFrom' type=.IrTypeParametersContainer origin=null - : CALL 'public final fun map (transform: kotlin.Function1): kotlin.collections.List [inline] declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List<.IrTypeParameter> origin=null + : CALL 'public final fun map (transform: kotlin.Function1): kotlin.collections.List declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List<.IrTypeParameter> origin=null : .IrTypeParameter : .IrTypeParameter $receiver: CALL 'public abstract fun (): kotlin.collections.List<.IrTypeParameter> declared in .IrTypeParametersContainer' type=kotlin.collections.List<.IrTypeParameter> origin=GET_PROPERTY @@ -156,7 +156,7 @@ FILE fqName: fileName:/DeepCopyIrTree.kt CALL 'private final fun copyTypeParameter (declaration: .IrTypeParameter): .IrTypeParameter declared in .DeepCopyIrTreeWithSymbols' type=.IrTypeParameter origin=null $this: GET_VAR ': .DeepCopyIrTreeWithSymbols declared in .DeepCopyIrTreeWithSymbols.copyTypeParametersFrom' type=.DeepCopyIrTreeWithSymbols origin=null declaration: GET_VAR 'it: .IrTypeParameter declared in .DeepCopyIrTreeWithSymbols.copyTypeParametersFrom.' type=.IrTypeParameter origin=null - CALL 'public final fun withinScope (irTypeParametersContainer: .IrTypeParametersContainer, fn: kotlin.Function0.withinScope>): T of .withinScope [inline] declared in ' type=kotlin.Unit origin=null + CALL 'public final fun withinScope (irTypeParametersContainer: .IrTypeParametersContainer, fn: kotlin.Function0.withinScope>): T of .withinScope declared in ' type=kotlin.Unit origin=null : kotlin.Unit $receiver: CALL 'private final fun (): .TypeRemapper declared in .DeepCopyIrTreeWithSymbols' type=.TypeRemapper origin=GET_PROPERTY $this: GET_VAR ': .DeepCopyIrTreeWithSymbols declared in .DeepCopyIrTreeWithSymbols.copyTypeParametersFrom' type=.DeepCopyIrTreeWithSymbols origin=null @@ -166,8 +166,8 @@ FILE fqName: fileName:/DeepCopyIrTree.kt BLOCK_BODY BLOCK type=kotlin.Unit origin=FOR_LOOP VAR FOR_LOOP_ITERATOR name:tmp_0 type:kotlin.collections.Iterator.IrTypeParameter, .IrTypeParameter>> [val] - CALL 'public abstract fun iterator (): kotlin.collections.Iterator [operator] declared in kotlin.collections.List' type=kotlin.collections.Iterator.IrTypeParameter, .IrTypeParameter>> origin=FOR_LOOP_ITERATOR - $this: CALL 'public final fun zip (other: kotlin.collections.Iterable): kotlin.collections.List> [infix] declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List.IrTypeParameter, .IrTypeParameter>> origin=null + CALL 'public abstract fun iterator (): kotlin.collections.Iterator declared in kotlin.collections.List' type=kotlin.collections.Iterator.IrTypeParameter, .IrTypeParameter>> origin=FOR_LOOP_ITERATOR + $this: CALL 'public final fun zip (other: kotlin.collections.Iterable): kotlin.collections.List> declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List.IrTypeParameter, .IrTypeParameter>> origin=null : .IrTypeParameter : .IrTypeParameter $receiver: CALL 'public abstract fun (): kotlin.collections.List<.IrTypeParameter> declared in .IrTypeParametersContainer' type=kotlin.collections.List<.IrTypeParameter> origin=GET_PROPERTY @@ -175,28 +175,28 @@ FILE fqName: fileName:/DeepCopyIrTree.kt other: CALL 'public abstract fun (): kotlin.collections.List<.IrTypeParameter> declared in .IrTypeParametersContainer' type=kotlin.collections.List<.IrTypeParameter> origin=GET_PROPERTY $this: GET_VAR 'other: .IrTypeParametersContainer declared in .DeepCopyIrTreeWithSymbols.copyTypeParametersFrom' type=.IrTypeParametersContainer origin=null WHILE label=null origin=FOR_LOOP_INNER_WHILE - condition: CALL 'public abstract fun hasNext (): kotlin.Boolean [operator] declared in kotlin.collections.Iterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT - $this: GET_VAR 'val tmp_0: kotlin.collections.Iterator.IrTypeParameter, .IrTypeParameter>> [val] declared in .DeepCopyIrTreeWithSymbols.copyTypeParametersFrom.' type=kotlin.collections.Iterator.IrTypeParameter, .IrTypeParameter>> origin=null + condition: CALL 'public abstract fun hasNext (): kotlin.Boolean declared in kotlin.collections.Iterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT + $this: GET_VAR 'val tmp_0: kotlin.collections.Iterator.IrTypeParameter, .IrTypeParameter>> declared in .DeepCopyIrTreeWithSymbols.copyTypeParametersFrom.' type=kotlin.collections.Iterator.IrTypeParameter, .IrTypeParameter>> origin=null body: BLOCK type=kotlin.Unit origin=FOR_LOOP_INNER_WHILE VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:kotlin.Pair<.IrTypeParameter, .IrTypeParameter> [val] - CALL 'public abstract fun next (): T of kotlin.collections.Iterator [operator] declared in kotlin.collections.Iterator' type=kotlin.Pair<.IrTypeParameter, .IrTypeParameter> origin=FOR_LOOP_NEXT - $this: GET_VAR 'val tmp_0: kotlin.collections.Iterator.IrTypeParameter, .IrTypeParameter>> [val] declared in .DeepCopyIrTreeWithSymbols.copyTypeParametersFrom.' type=kotlin.collections.Iterator.IrTypeParameter, .IrTypeParameter>> origin=null + CALL 'public abstract fun next (): T of kotlin.collections.Iterator declared in kotlin.collections.Iterator' type=kotlin.Pair<.IrTypeParameter, .IrTypeParameter> origin=FOR_LOOP_NEXT + $this: GET_VAR 'val tmp_0: kotlin.collections.Iterator.IrTypeParameter, .IrTypeParameter>> declared in .DeepCopyIrTreeWithSymbols.copyTypeParametersFrom.' type=kotlin.collections.Iterator.IrTypeParameter, .IrTypeParameter>> origin=null VAR name:thisTypeParameter type:.IrTypeParameter [val] - CALL 'public final fun component1 (): A of kotlin.Pair [operator] declared in kotlin.Pair' type=.IrTypeParameter origin=COMPONENT_N(index=1) - $this: GET_VAR 'val tmp_1: kotlin.Pair<.IrTypeParameter, .IrTypeParameter> [val] declared in .DeepCopyIrTreeWithSymbols.copyTypeParametersFrom.' type=kotlin.Pair<.IrTypeParameter, .IrTypeParameter> origin=null + CALL 'public final fun component1 (): A of kotlin.Pair declared in kotlin.Pair' type=.IrTypeParameter origin=COMPONENT_N(index=1) + $this: GET_VAR 'val tmp_1: kotlin.Pair<.IrTypeParameter, .IrTypeParameter> declared in .DeepCopyIrTreeWithSymbols.copyTypeParametersFrom.' type=kotlin.Pair<.IrTypeParameter, .IrTypeParameter> origin=null VAR name:otherTypeParameter type:.IrTypeParameter [val] - CALL 'public final fun component2 (): B of kotlin.Pair [operator] declared in kotlin.Pair' type=.IrTypeParameter origin=COMPONENT_N(index=2) - $this: GET_VAR 'val tmp_1: kotlin.Pair<.IrTypeParameter, .IrTypeParameter> [val] declared in .DeepCopyIrTreeWithSymbols.copyTypeParametersFrom.' type=kotlin.Pair<.IrTypeParameter, .IrTypeParameter> origin=null + CALL 'public final fun component2 (): B of kotlin.Pair declared in kotlin.Pair' type=.IrTypeParameter origin=COMPONENT_N(index=2) + $this: GET_VAR 'val tmp_1: kotlin.Pair<.IrTypeParameter, .IrTypeParameter> declared in .DeepCopyIrTreeWithSymbols.copyTypeParametersFrom.' type=kotlin.Pair<.IrTypeParameter, .IrTypeParameter> origin=null BLOCK type=kotlin.Unit origin=null TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit - CALL 'public final fun mapTo (destination: C of kotlin.collections.CollectionsKt.mapTo, transform: kotlin.Function1): C of kotlin.collections.CollectionsKt.mapTo [inline] declared in kotlin.collections.CollectionsKt' type=kotlin.collections.MutableList<.IrType> origin=null + CALL 'public final fun mapTo (destination: C of kotlin.collections.CollectionsKt.mapTo, transform: kotlin.Function1): C of kotlin.collections.CollectionsKt.mapTo declared in kotlin.collections.CollectionsKt' type=kotlin.collections.MutableList<.IrType> origin=null : .IrType : .IrType : kotlin.collections.MutableList<.IrType> $receiver: CALL 'public abstract fun (): kotlin.collections.MutableList<.IrType> declared in .IrTypeParameter' type=kotlin.collections.MutableList<.IrType> origin=GET_PROPERTY - $this: GET_VAR 'val otherTypeParameter: .IrTypeParameter [val] declared in .DeepCopyIrTreeWithSymbols.copyTypeParametersFrom.' type=.IrTypeParameter origin=null + $this: GET_VAR 'val otherTypeParameter: .IrTypeParameter declared in .DeepCopyIrTreeWithSymbols.copyTypeParametersFrom.' type=.IrTypeParameter origin=null destination: CALL 'public abstract fun (): kotlin.collections.MutableList<.IrType> declared in .IrTypeParameter' type=kotlin.collections.MutableList<.IrType> origin=GET_PROPERTY - $this: GET_VAR 'val thisTypeParameter: .IrTypeParameter [val] declared in .DeepCopyIrTreeWithSymbols.copyTypeParametersFrom.' type=.IrTypeParameter origin=null + $this: GET_VAR 'val thisTypeParameter: .IrTypeParameter declared in .DeepCopyIrTreeWithSymbols.copyTypeParametersFrom.' type=.IrTypeParameter origin=null transform: FUN_EXPR type=kotlin.Function1<.IrType, .IrType> origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> (it:.IrType) returnType:.IrType VALUE_PARAMETER name:it index:0 type:.IrType @@ -208,7 +208,7 @@ FILE fqName: fileName:/DeepCopyIrTree.kt type: GET_VAR 'it: .IrType declared in .DeepCopyIrTreeWithSymbols.copyTypeParametersFrom..' type=.IrType 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -229,9 +229,9 @@ FILE fqName: fileName:/DeepCopyIrTree.kt $this: GET_VAR ': .TypeRemapper declared in .withinScope' type=.TypeRemapper origin=null irTypeParametersContainer: GET_VAR 'irTypeParametersContainer: .IrTypeParametersContainer declared in .withinScope' type=.IrTypeParametersContainer origin=null VAR name:result type:T of .withinScope [val] - CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=T of .withinScope origin=INVOKE + CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=T of .withinScope origin=INVOKE $this: GET_VAR 'fn: kotlin.Function0.withinScope> declared in .withinScope' type=kotlin.Function0.withinScope> origin=VARIABLE_AS_FUNCTION CALL 'public abstract fun leaveScope (): kotlin.Unit declared in .TypeRemapper' type=kotlin.Unit origin=null $this: GET_VAR ': .TypeRemapper declared in .withinScope' type=.TypeRemapper origin=null - RETURN type=kotlin.Nothing from='public final fun withinScope (irTypeParametersContainer: .IrTypeParametersContainer, fn: kotlin.Function0.withinScope>): T of .withinScope [inline] declared in ' - GET_VAR 'val result: T of .withinScope [val] declared in .withinScope' type=T of .withinScope origin=null + RETURN type=kotlin.Nothing from='public final fun withinScope (irTypeParametersContainer: .IrTypeParametersContainer, fn: kotlin.Function0.withinScope>): T of .withinScope declared in ' + GET_VAR 'val result: T of .withinScope declared in .withinScope' type=T of .withinScope origin=null diff --git a/compiler/testData/ir/irText/firProblems/DelegationAndInheritanceFromJava.fir.ir.txt b/compiler/testData/ir/irText/firProblems/DelegationAndInheritanceFromJava.fir.ir.txt index a66125d790b..cbc0b6cabcf 100644 --- a/compiler/testData/ir/irText/firProblems/DelegationAndInheritanceFromJava.fir.ir.txt +++ b/compiler/testData/ir/irText/firProblems/DelegationAndInheritanceFromJava.fir.ir.txt @@ -4,12 +4,12 @@ FILE fqName: fileName:/DelegationAndInheritanceFromJava.kt CONSTRUCTOR visibility:public <> (b:.Foo.B) returnType:.Impl [primary] VALUE_PARAMETER name:b index:0 type:.Foo.B BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Impl modality:FINAL visibility:public superTypes:[.Foo.A; .Foo.B]' FUN DELEGATED_MEMBER name:add visibility:public modality:OPEN <> ($this:.Impl, element:@[FlexibleNullability] kotlin.String?) returnType:kotlin.Boolean overridden: - public abstract fun add (element: @[FlexibleNullability] kotlin.String?): kotlin.Boolean [fake_override] declared in .Foo.A - public abstract fun add (element: @[FlexibleNullability] kotlin.String?): kotlin.Boolean [fake_override] declared in .Foo.B + public abstract fun add (element: @[FlexibleNullability] kotlin.String?): kotlin.Boolean declared in .Foo.A + public abstract fun add (element: @[FlexibleNullability] kotlin.String?): kotlin.Boolean declared in .Foo.B $this: VALUE_PARAMETER name: type:.Impl VALUE_PARAMETER name:element index:0 type:@[FlexibleNullability] kotlin.String? BLOCK_BODY @@ -20,8 +20,8 @@ FILE fqName: fileName:/DelegationAndInheritanceFromJava.kt element: GET_VAR 'element: @[FlexibleNullability] kotlin.String? declared in .Impl.add' type=@[FlexibleNullability] kotlin.String? origin=null FUN DELEGATED_MEMBER name:addAll visibility:public modality:OPEN <> ($this:.Impl, elements:kotlin.collections.Collection<@[FlexibleNullability] kotlin.String?>) returnType:kotlin.Boolean overridden: - public abstract fun addAll (elements: kotlin.collections.Collection<@[FlexibleNullability] kotlin.String?>): kotlin.Boolean [fake_override] declared in .Foo.A - public abstract fun addAll (elements: kotlin.collections.Collection<@[FlexibleNullability] kotlin.String?>): kotlin.Boolean [fake_override] declared in .Foo.B + public abstract fun addAll (elements: kotlin.collections.Collection<@[FlexibleNullability] kotlin.String?>): kotlin.Boolean declared in .Foo.A + public abstract fun addAll (elements: kotlin.collections.Collection<@[FlexibleNullability] kotlin.String?>): kotlin.Boolean declared in .Foo.B $this: VALUE_PARAMETER name: type:.Impl VALUE_PARAMETER name:elements index:0 type:kotlin.collections.Collection<@[FlexibleNullability] kotlin.String?> BLOCK_BODY @@ -32,8 +32,8 @@ FILE fqName: fileName:/DelegationAndInheritanceFromJava.kt elements: GET_VAR 'elements: kotlin.collections.Collection<@[FlexibleNullability] kotlin.String?> declared in .Impl.addAll' type=kotlin.collections.Collection<@[FlexibleNullability] kotlin.String?> origin=null FUN DELEGATED_MEMBER name:clear visibility:public modality:OPEN <> ($this:.Impl) returnType:kotlin.Unit overridden: - public abstract fun clear (): kotlin.Unit [fake_override] declared in .Foo.A - public abstract fun clear (): kotlin.Unit [fake_override] declared in .Foo.B + public abstract fun clear (): kotlin.Unit declared in .Foo.A + public abstract fun clear (): kotlin.Unit declared in .Foo.B $this: VALUE_PARAMETER name: type:.Impl BLOCK_BODY CALL 'public abstract fun clear (): kotlin.Unit declared in kotlin.collections.MutableSet' type=kotlin.Unit origin=null @@ -41,18 +41,18 @@ FILE fqName: fileName:/DelegationAndInheritanceFromJava.kt receiver: GET_VAR ': .Impl declared in .Impl.clear' type=.Impl origin=null FUN DELEGATED_MEMBER name:iterator visibility:public modality:OPEN <> ($this:.Impl) returnType:kotlin.collections.MutableIterator<@[FlexibleNullability] kotlin.String?> [operator] overridden: - public abstract fun iterator (): kotlin.collections.MutableIterator<@[FlexibleNullability] kotlin.String?> [fake_override,operator] declared in .Foo.A - public abstract fun iterator (): kotlin.collections.MutableIterator<@[FlexibleNullability] kotlin.String?> [fake_override,operator] declared in .Foo.B + public abstract fun iterator (): kotlin.collections.MutableIterator<@[FlexibleNullability] kotlin.String?> declared in .Foo.A + public abstract fun iterator (): kotlin.collections.MutableIterator<@[FlexibleNullability] kotlin.String?> declared in .Foo.B $this: VALUE_PARAMETER name: type:.Impl BLOCK_BODY - RETURN type=kotlin.Nothing from='public open fun iterator (): kotlin.collections.MutableIterator<@[FlexibleNullability] kotlin.String?> [operator] declared in .Impl' - CALL 'public abstract fun iterator (): kotlin.collections.MutableIterator [operator] declared in kotlin.collections.MutableSet' type=kotlin.collections.MutableIterator origin=null + RETURN type=kotlin.Nothing from='public open fun iterator (): kotlin.collections.MutableIterator<@[FlexibleNullability] kotlin.String?> declared in .Impl' + CALL 'public abstract fun iterator (): kotlin.collections.MutableIterator declared in kotlin.collections.MutableSet' type=kotlin.collections.MutableIterator origin=null $this: GET_FIELD 'FIELD DELEGATE name:$$delegate_0 type:.Foo.B visibility:private [final]' type=.Foo.B origin=null receiver: GET_VAR ': .Impl declared in .Impl.iterator' type=.Impl origin=null FUN DELEGATED_MEMBER name:remove visibility:public modality:OPEN <> ($this:.Impl, element:@[FlexibleNullability] kotlin.String?) returnType:kotlin.Boolean overridden: - public abstract fun remove (element: @[FlexibleNullability] kotlin.String?): kotlin.Boolean [fake_override] declared in .Foo.A - public abstract fun remove (element: @[FlexibleNullability] kotlin.String?): kotlin.Boolean [fake_override] declared in .Foo.B + public abstract fun remove (element: @[FlexibleNullability] kotlin.String?): kotlin.Boolean declared in .Foo.A + public abstract fun remove (element: @[FlexibleNullability] kotlin.String?): kotlin.Boolean declared in .Foo.B $this: VALUE_PARAMETER name: type:.Impl VALUE_PARAMETER name:element index:0 type:@[FlexibleNullability] kotlin.String? BLOCK_BODY @@ -63,8 +63,8 @@ FILE fqName: fileName:/DelegationAndInheritanceFromJava.kt element: GET_VAR 'element: @[FlexibleNullability] kotlin.String? declared in .Impl.remove' type=@[FlexibleNullability] kotlin.String? origin=null FUN DELEGATED_MEMBER name:removeAll visibility:public modality:OPEN <> ($this:.Impl, elements:kotlin.collections.Collection<@[FlexibleNullability] kotlin.String?>) returnType:kotlin.Boolean overridden: - public abstract fun removeAll (elements: kotlin.collections.Collection<@[FlexibleNullability] kotlin.String?>): kotlin.Boolean [fake_override] declared in .Foo.A - public abstract fun removeAll (elements: kotlin.collections.Collection<@[FlexibleNullability] kotlin.String?>): kotlin.Boolean [fake_override] declared in .Foo.B + public abstract fun removeAll (elements: kotlin.collections.Collection<@[FlexibleNullability] kotlin.String?>): kotlin.Boolean declared in .Foo.A + public abstract fun removeAll (elements: kotlin.collections.Collection<@[FlexibleNullability] kotlin.String?>): kotlin.Boolean declared in .Foo.B $this: VALUE_PARAMETER name: type:.Impl VALUE_PARAMETER name:elements index:0 type:kotlin.collections.Collection<@[FlexibleNullability] kotlin.String?> BLOCK_BODY @@ -75,8 +75,8 @@ FILE fqName: fileName:/DelegationAndInheritanceFromJava.kt elements: GET_VAR 'elements: kotlin.collections.Collection<@[FlexibleNullability] kotlin.String?> declared in .Impl.removeAll' type=kotlin.collections.Collection<@[FlexibleNullability] kotlin.String?> origin=null FUN DELEGATED_MEMBER name:retainAll visibility:public modality:OPEN <> ($this:.Impl, elements:kotlin.collections.Collection<@[FlexibleNullability] kotlin.String?>) returnType:kotlin.Boolean overridden: - public abstract fun retainAll (elements: kotlin.collections.Collection<@[FlexibleNullability] kotlin.String?>): kotlin.Boolean [fake_override] declared in .Foo.A - public abstract fun retainAll (elements: kotlin.collections.Collection<@[FlexibleNullability] kotlin.String?>): kotlin.Boolean [fake_override] declared in .Foo.B + public abstract fun retainAll (elements: kotlin.collections.Collection<@[FlexibleNullability] kotlin.String?>): kotlin.Boolean declared in .Foo.A + public abstract fun retainAll (elements: kotlin.collections.Collection<@[FlexibleNullability] kotlin.String?>): kotlin.Boolean declared in .Foo.B $this: VALUE_PARAMETER name: type:.Impl VALUE_PARAMETER name:elements index:0 type:kotlin.collections.Collection<@[FlexibleNullability] kotlin.String?> BLOCK_BODY @@ -87,8 +87,8 @@ FILE fqName: fileName:/DelegationAndInheritanceFromJava.kt elements: GET_VAR 'elements: kotlin.collections.Collection<@[FlexibleNullability] kotlin.String?> declared in .Impl.retainAll' type=kotlin.collections.Collection<@[FlexibleNullability] kotlin.String?> origin=null FUN DELEGATED_MEMBER name:isEmpty visibility:public modality:OPEN <> ($this:.Impl) returnType:kotlin.Boolean overridden: - public abstract fun isEmpty (): kotlin.Boolean [fake_override] declared in .Foo.A - public abstract fun isEmpty (): kotlin.Boolean [fake_override] declared in .Foo.B + public abstract fun isEmpty (): kotlin.Boolean declared in .Foo.A + public abstract fun isEmpty (): kotlin.Boolean declared in .Foo.B $this: VALUE_PARAMETER name: type:.Impl BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun isEmpty (): kotlin.Boolean declared in .Impl' @@ -97,20 +97,20 @@ FILE fqName: fileName:/DelegationAndInheritanceFromJava.kt receiver: GET_VAR ': .Impl declared in .Impl.isEmpty' type=.Impl origin=null FUN DELEGATED_MEMBER name:contains visibility:public modality:OPEN <> ($this:.Impl, element:@[FlexibleNullability] kotlin.String?) returnType:kotlin.Boolean [operator] overridden: - public abstract fun contains (element: @[FlexibleNullability] kotlin.String?): kotlin.Boolean [fake_override,operator] declared in .Foo.A - public abstract fun contains (element: @[FlexibleNullability] kotlin.String?): kotlin.Boolean [fake_override,operator] declared in .Foo.B + public abstract fun contains (element: @[FlexibleNullability] kotlin.String?): kotlin.Boolean declared in .Foo.A + public abstract fun contains (element: @[FlexibleNullability] kotlin.String?): kotlin.Boolean declared in .Foo.B $this: VALUE_PARAMETER name: type:.Impl VALUE_PARAMETER name:element index:0 type:@[FlexibleNullability] kotlin.String? BLOCK_BODY - RETURN type=kotlin.Nothing from='public open fun contains (element: @[FlexibleNullability] kotlin.String?): kotlin.Boolean [operator] declared in .Impl' - CALL 'public abstract fun contains (element: E of kotlin.collections.Set): kotlin.Boolean [operator] declared in kotlin.collections.Set' type=kotlin.Boolean origin=null + RETURN type=kotlin.Nothing from='public open fun contains (element: @[FlexibleNullability] kotlin.String?): kotlin.Boolean declared in .Impl' + CALL 'public abstract fun contains (element: E of kotlin.collections.Set): kotlin.Boolean declared in kotlin.collections.Set' type=kotlin.Boolean origin=null $this: GET_FIELD 'FIELD DELEGATE name:$$delegate_0 type:.Foo.B visibility:private [final]' type=.Foo.B origin=null receiver: GET_VAR ': .Impl declared in .Impl.contains' type=.Impl origin=null element: GET_VAR 'element: @[FlexibleNullability] kotlin.String? declared in .Impl.contains' type=@[FlexibleNullability] kotlin.String? origin=null FUN DELEGATED_MEMBER name:containsAll visibility:public modality:OPEN <> ($this:.Impl, elements:kotlin.collections.Collection<@[FlexibleNullability] kotlin.String?>) returnType:kotlin.Boolean overridden: - public abstract fun containsAll (elements: kotlin.collections.Collection<@[FlexibleNullability] kotlin.String?>): kotlin.Boolean [fake_override] declared in .Foo.A - public abstract fun containsAll (elements: kotlin.collections.Collection<@[FlexibleNullability] kotlin.String?>): kotlin.Boolean [fake_override] declared in .Foo.B + public abstract fun containsAll (elements: kotlin.collections.Collection<@[FlexibleNullability] kotlin.String?>): kotlin.Boolean declared in .Foo.A + public abstract fun containsAll (elements: kotlin.collections.Collection<@[FlexibleNullability] kotlin.String?>): kotlin.Boolean declared in .Foo.B $this: VALUE_PARAMETER name: type:.Impl VALUE_PARAMETER name:elements index:0 type:kotlin.collections.Collection<@[FlexibleNullability] kotlin.String?> BLOCK_BODY @@ -121,13 +121,13 @@ FILE fqName: fileName:/DelegationAndInheritanceFromJava.kt elements: GET_VAR 'elements: kotlin.collections.Collection<@[FlexibleNullability] kotlin.String?> declared in .Impl.containsAll' type=kotlin.collections.Collection<@[FlexibleNullability] kotlin.String?> origin=null PROPERTY DELEGATED_MEMBER name:size visibility:public modality:OPEN [val] overridden: - public abstract size: kotlin.Int [fake_override,val] - public abstract size: kotlin.Int [fake_override,val] + public abstract size: kotlin.Int + public abstract size: kotlin.Int FUN DELEGATED_MEMBER name: visibility:public modality:OPEN <> ($this:.Impl) returnType:kotlin.Int correspondingProperty: PROPERTY DELEGATED_MEMBER name:size visibility:public modality:OPEN [val] overridden: - public abstract fun (): kotlin.Int [fake_override] declared in .Foo.A - public abstract fun (): kotlin.Int [fake_override] declared in .Foo.B + public abstract fun (): kotlin.Int declared in .Foo.A + public abstract fun (): kotlin.Int declared in .Foo.B $this: VALUE_PARAMETER name: type:.Impl BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun (): kotlin.Int declared in .Impl' @@ -139,19 +139,19 @@ FILE fqName: fileName:/DelegationAndInheritanceFromJava.kt GET_VAR 'b: .Foo.B declared in .Impl.' type=.Foo.B 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 [fake_override,operator] declared in .Foo.A - public open fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .Foo.B + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Foo.A + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Foo.B $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 .Foo.A - public open fun hashCode (): kotlin.Int [fake_override] declared in .Foo.B + public open fun hashCode (): kotlin.Int declared in .Foo.A + public open fun hashCode (): kotlin.Int declared in .Foo.B $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 .Foo.A - public open fun toString (): kotlin.String [fake_override] declared in .Foo.B + public open fun toString (): kotlin.String declared in .Foo.A + public open fun toString (): kotlin.String declared in .Foo.B $this: VALUE_PARAMETER name: type:kotlin.Any FUN name:box visibility:public modality:FINAL <> () returnType:kotlin.String BLOCK_BODY diff --git a/compiler/testData/ir/irText/firProblems/DelegationAndInheritanceFromJava.ir.txt b/compiler/testData/ir/irText/firProblems/DelegationAndInheritanceFromJava.ir.txt index f560f270690..42d1262ec99 100644 --- a/compiler/testData/ir/irText/firProblems/DelegationAndInheritanceFromJava.ir.txt +++ b/compiler/testData/ir/irText/firProblems/DelegationAndInheritanceFromJava.ir.txt @@ -4,154 +4,154 @@ FILE fqName: fileName:/DelegationAndInheritanceFromJava.kt CONSTRUCTOR visibility:public <> (b:.Foo.B) returnType:.Impl [primary] VALUE_PARAMETER name:b index:0 type:.Foo.B BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Impl modality:FINAL visibility:public superTypes:[.Foo.A; .Foo.B]' FIELD DELEGATE name:$$delegate_0 type:.Foo.B visibility:private [final] EXPRESSION_BODY GET_VAR 'b: .Foo.B declared in .Impl.' type=.Foo.B origin=null PROPERTY DELEGATED_MEMBER name:size visibility:public modality:OPEN [val] overridden: - public abstract size: kotlin.Int [fake_override,val] - public abstract size: kotlin.Int [fake_override,val] + public abstract size: kotlin.Int + public abstract size: kotlin.Int FUN DELEGATED_MEMBER name: visibility:public modality:OPEN <> ($this:.Impl) returnType:kotlin.Int correspondingProperty: PROPERTY DELEGATED_MEMBER name:size visibility:public modality:OPEN [val] overridden: - public abstract fun (): kotlin.Int [fake_override] declared in .Foo.A - public abstract fun (): kotlin.Int [fake_override] declared in .Foo.B + public abstract fun (): kotlin.Int declared in .Foo.A + public abstract fun (): kotlin.Int declared in .Foo.B $this: VALUE_PARAMETER name: type:.Impl BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun (): kotlin.Int declared in .Impl' - CALL 'public abstract fun (): kotlin.Int [fake_override] declared in .Foo.B' type=kotlin.Int origin=null + CALL 'public abstract fun (): kotlin.Int declared in .Foo.B' type=kotlin.Int origin=null $this: GET_FIELD 'FIELD DELEGATE name:$$delegate_0 type:.Foo.B visibility:private [final]' type=.Foo.B origin=null receiver: GET_VAR ': .Impl declared in .Impl.' type=.Impl origin=null FUN DELEGATED_MEMBER name:add visibility:public modality:OPEN <> ($this:.Impl, element:@[FlexibleNullability] kotlin.String?) returnType:kotlin.Boolean overridden: - public abstract fun add (element: @[FlexibleNullability] kotlin.String?): kotlin.Boolean [fake_override] declared in .Foo.A - public abstract fun add (element: @[FlexibleNullability] kotlin.String?): kotlin.Boolean [fake_override] declared in .Foo.B + public abstract fun add (element: @[FlexibleNullability] kotlin.String?): kotlin.Boolean declared in .Foo.A + public abstract fun add (element: @[FlexibleNullability] kotlin.String?): kotlin.Boolean declared in .Foo.B $this: VALUE_PARAMETER name: type:.Impl VALUE_PARAMETER name:element index:0 type:@[FlexibleNullability] kotlin.String? BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun add (element: @[FlexibleNullability] kotlin.String?): kotlin.Boolean declared in .Impl' - CALL 'public abstract fun add (element: @[FlexibleNullability] kotlin.String?): kotlin.Boolean [fake_override] declared in .Foo.B' type=kotlin.Boolean origin=null + CALL 'public abstract fun add (element: @[FlexibleNullability] kotlin.String?): kotlin.Boolean declared in .Foo.B' type=kotlin.Boolean origin=null $this: GET_FIELD 'FIELD DELEGATE name:$$delegate_0 type:.Foo.B visibility:private [final]' type=.Foo.B origin=null receiver: GET_VAR ': .Impl declared in .Impl.add' type=.Impl origin=null element: GET_VAR 'element: @[FlexibleNullability] kotlin.String? declared in .Impl.add' type=@[FlexibleNullability] kotlin.String? origin=null FUN DELEGATED_MEMBER name:addAll visibility:public modality:OPEN <> ($this:.Impl, elements:kotlin.collections.Collection<@[FlexibleNullability] kotlin.String?>) returnType:kotlin.Boolean overridden: - public abstract fun addAll (elements: kotlin.collections.Collection<@[FlexibleNullability] kotlin.String?>): kotlin.Boolean [fake_override] declared in .Foo.A - public abstract fun addAll (elements: kotlin.collections.Collection<@[FlexibleNullability] kotlin.String?>): kotlin.Boolean [fake_override] declared in .Foo.B + public abstract fun addAll (elements: kotlin.collections.Collection<@[FlexibleNullability] kotlin.String?>): kotlin.Boolean declared in .Foo.A + public abstract fun addAll (elements: kotlin.collections.Collection<@[FlexibleNullability] kotlin.String?>): kotlin.Boolean declared in .Foo.B $this: VALUE_PARAMETER name: type:.Impl VALUE_PARAMETER name:elements index:0 type:kotlin.collections.Collection<@[FlexibleNullability] kotlin.String?> BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun addAll (elements: kotlin.collections.Collection<@[FlexibleNullability] kotlin.String?>): kotlin.Boolean declared in .Impl' - CALL 'public abstract fun addAll (elements: kotlin.collections.Collection<@[FlexibleNullability] kotlin.String?>): kotlin.Boolean [fake_override] declared in .Foo.B' type=kotlin.Boolean origin=null + CALL 'public abstract fun addAll (elements: kotlin.collections.Collection<@[FlexibleNullability] kotlin.String?>): kotlin.Boolean declared in .Foo.B' type=kotlin.Boolean origin=null $this: GET_FIELD 'FIELD DELEGATE name:$$delegate_0 type:.Foo.B visibility:private [final]' type=.Foo.B origin=null receiver: GET_VAR ': .Impl declared in .Impl.addAll' type=.Impl origin=null elements: GET_VAR 'elements: kotlin.collections.Collection<@[FlexibleNullability] kotlin.String?> declared in .Impl.addAll' type=kotlin.collections.Collection<@[FlexibleNullability] kotlin.String?> origin=null FUN DELEGATED_MEMBER name:clear visibility:public modality:OPEN <> ($this:.Impl) returnType:kotlin.Unit overridden: - public abstract fun clear (): kotlin.Unit [fake_override] declared in .Foo.A - public abstract fun clear (): kotlin.Unit [fake_override] declared in .Foo.B + public abstract fun clear (): kotlin.Unit declared in .Foo.A + public abstract fun clear (): kotlin.Unit declared in .Foo.B $this: VALUE_PARAMETER name: type:.Impl BLOCK_BODY - CALL 'public abstract fun clear (): kotlin.Unit [fake_override] declared in .Foo.B' type=kotlin.Unit origin=null + CALL 'public abstract fun clear (): kotlin.Unit declared in .Foo.B' type=kotlin.Unit origin=null $this: GET_FIELD 'FIELD DELEGATE name:$$delegate_0 type:.Foo.B visibility:private [final]' type=.Foo.B origin=null receiver: GET_VAR ': .Impl declared in .Impl.clear' type=.Impl origin=null FUN DELEGATED_MEMBER name:contains visibility:public modality:OPEN <> ($this:.Impl, element:@[FlexibleNullability] kotlin.String?) returnType:kotlin.Boolean [operator] overridden: - public abstract fun contains (element: @[FlexibleNullability] kotlin.String?): kotlin.Boolean [fake_override,operator] declared in .Foo.A - public abstract fun contains (element: @[FlexibleNullability] kotlin.String?): kotlin.Boolean [fake_override,operator] declared in .Foo.B + public abstract fun contains (element: @[FlexibleNullability] kotlin.String?): kotlin.Boolean declared in .Foo.A + public abstract fun contains (element: @[FlexibleNullability] kotlin.String?): kotlin.Boolean declared in .Foo.B $this: VALUE_PARAMETER name: type:.Impl VALUE_PARAMETER name:element index:0 type:@[FlexibleNullability] kotlin.String? BLOCK_BODY - RETURN type=kotlin.Nothing from='public open fun contains (element: @[FlexibleNullability] kotlin.String?): kotlin.Boolean [operator] declared in .Impl' - CALL 'public abstract fun contains (element: @[FlexibleNullability] kotlin.String?): kotlin.Boolean [fake_override,operator] declared in .Foo.B' type=kotlin.Boolean origin=null + RETURN type=kotlin.Nothing from='public open fun contains (element: @[FlexibleNullability] kotlin.String?): kotlin.Boolean declared in .Impl' + CALL 'public abstract fun contains (element: @[FlexibleNullability] kotlin.String?): kotlin.Boolean declared in .Foo.B' type=kotlin.Boolean origin=null $this: GET_FIELD 'FIELD DELEGATE name:$$delegate_0 type:.Foo.B visibility:private [final]' type=.Foo.B origin=null receiver: GET_VAR ': .Impl declared in .Impl.contains' type=.Impl origin=null element: GET_VAR 'element: @[FlexibleNullability] kotlin.String? declared in .Impl.contains' type=@[FlexibleNullability] kotlin.String? origin=null FUN DELEGATED_MEMBER name:containsAll visibility:public modality:OPEN <> ($this:.Impl, elements:kotlin.collections.Collection<@[FlexibleNullability] kotlin.String?>) returnType:kotlin.Boolean overridden: - public abstract fun containsAll (elements: kotlin.collections.Collection<@[FlexibleNullability] kotlin.String?>): kotlin.Boolean [fake_override] declared in .Foo.A - public abstract fun containsAll (elements: kotlin.collections.Collection<@[FlexibleNullability] kotlin.String?>): kotlin.Boolean [fake_override] declared in .Foo.B + public abstract fun containsAll (elements: kotlin.collections.Collection<@[FlexibleNullability] kotlin.String?>): kotlin.Boolean declared in .Foo.A + public abstract fun containsAll (elements: kotlin.collections.Collection<@[FlexibleNullability] kotlin.String?>): kotlin.Boolean declared in .Foo.B $this: VALUE_PARAMETER name: type:.Impl VALUE_PARAMETER name:elements index:0 type:kotlin.collections.Collection<@[FlexibleNullability] kotlin.String?> BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun containsAll (elements: kotlin.collections.Collection<@[FlexibleNullability] kotlin.String?>): kotlin.Boolean declared in .Impl' - CALL 'public abstract fun containsAll (elements: kotlin.collections.Collection<@[FlexibleNullability] kotlin.String?>): kotlin.Boolean [fake_override] declared in .Foo.B' type=kotlin.Boolean origin=null + CALL 'public abstract fun containsAll (elements: kotlin.collections.Collection<@[FlexibleNullability] kotlin.String?>): kotlin.Boolean declared in .Foo.B' type=kotlin.Boolean origin=null $this: GET_FIELD 'FIELD DELEGATE name:$$delegate_0 type:.Foo.B visibility:private [final]' type=.Foo.B origin=null receiver: GET_VAR ': .Impl declared in .Impl.containsAll' type=.Impl origin=null elements: GET_VAR 'elements: kotlin.collections.Collection<@[FlexibleNullability] kotlin.String?> declared in .Impl.containsAll' type=kotlin.collections.Collection<@[FlexibleNullability] kotlin.String?> origin=null FUN DELEGATED_MEMBER name:isEmpty visibility:public modality:OPEN <> ($this:.Impl) returnType:kotlin.Boolean overridden: - public abstract fun isEmpty (): kotlin.Boolean [fake_override] declared in .Foo.A - public abstract fun isEmpty (): kotlin.Boolean [fake_override] declared in .Foo.B + public abstract fun isEmpty (): kotlin.Boolean declared in .Foo.A + public abstract fun isEmpty (): kotlin.Boolean declared in .Foo.B $this: VALUE_PARAMETER name: type:.Impl BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun isEmpty (): kotlin.Boolean declared in .Impl' - CALL 'public abstract fun isEmpty (): kotlin.Boolean [fake_override] declared in .Foo.B' type=kotlin.Boolean origin=null + CALL 'public abstract fun isEmpty (): kotlin.Boolean declared in .Foo.B' type=kotlin.Boolean origin=null $this: GET_FIELD 'FIELD DELEGATE name:$$delegate_0 type:.Foo.B visibility:private [final]' type=.Foo.B origin=null receiver: GET_VAR ': .Impl declared in .Impl.isEmpty' type=.Impl origin=null FUN DELEGATED_MEMBER name:iterator visibility:public modality:OPEN <> ($this:.Impl) returnType:kotlin.collections.MutableIterator<@[FlexibleNullability] kotlin.String?> [operator] overridden: - public abstract fun iterator (): kotlin.collections.MutableIterator<@[FlexibleNullability] kotlin.String?> [fake_override,operator] declared in .Foo.A - public abstract fun iterator (): kotlin.collections.MutableIterator<@[FlexibleNullability] kotlin.String?> [fake_override,operator] declared in .Foo.B + public abstract fun iterator (): kotlin.collections.MutableIterator<@[FlexibleNullability] kotlin.String?> declared in .Foo.A + public abstract fun iterator (): kotlin.collections.MutableIterator<@[FlexibleNullability] kotlin.String?> declared in .Foo.B $this: VALUE_PARAMETER name: type:.Impl BLOCK_BODY - RETURN type=kotlin.Nothing from='public open fun iterator (): kotlin.collections.MutableIterator<@[FlexibleNullability] kotlin.String?> [operator] declared in .Impl' - CALL 'public abstract fun iterator (): kotlin.collections.MutableIterator<@[FlexibleNullability] kotlin.String?> [fake_override,operator] declared in .Foo.B' type=kotlin.collections.MutableIterator<@[FlexibleNullability] kotlin.String?> origin=null + RETURN type=kotlin.Nothing from='public open fun iterator (): kotlin.collections.MutableIterator<@[FlexibleNullability] kotlin.String?> declared in .Impl' + CALL 'public abstract fun iterator (): kotlin.collections.MutableIterator<@[FlexibleNullability] kotlin.String?> declared in .Foo.B' type=kotlin.collections.MutableIterator<@[FlexibleNullability] kotlin.String?> origin=null $this: GET_FIELD 'FIELD DELEGATE name:$$delegate_0 type:.Foo.B visibility:private [final]' type=.Foo.B origin=null receiver: GET_VAR ': .Impl declared in .Impl.iterator' type=.Impl origin=null FUN DELEGATED_MEMBER name:remove visibility:public modality:OPEN <> ($this:.Impl, element:@[FlexibleNullability] kotlin.String?) returnType:kotlin.Boolean overridden: - public abstract fun remove (element: @[FlexibleNullability] kotlin.String?): kotlin.Boolean [fake_override] declared in .Foo.A - public abstract fun remove (element: @[FlexibleNullability] kotlin.String?): kotlin.Boolean [fake_override] declared in .Foo.B + public abstract fun remove (element: @[FlexibleNullability] kotlin.String?): kotlin.Boolean declared in .Foo.A + public abstract fun remove (element: @[FlexibleNullability] kotlin.String?): kotlin.Boolean declared in .Foo.B $this: VALUE_PARAMETER name: type:.Impl VALUE_PARAMETER name:element index:0 type:@[FlexibleNullability] kotlin.String? BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun remove (element: @[FlexibleNullability] kotlin.String?): kotlin.Boolean declared in .Impl' - CALL 'public abstract fun remove (element: @[FlexibleNullability] kotlin.String?): kotlin.Boolean [fake_override] declared in .Foo.B' type=kotlin.Boolean origin=null + CALL 'public abstract fun remove (element: @[FlexibleNullability] kotlin.String?): kotlin.Boolean declared in .Foo.B' type=kotlin.Boolean origin=null $this: GET_FIELD 'FIELD DELEGATE name:$$delegate_0 type:.Foo.B visibility:private [final]' type=.Foo.B origin=null receiver: GET_VAR ': .Impl declared in .Impl.remove' type=.Impl origin=null element: GET_VAR 'element: @[FlexibleNullability] kotlin.String? declared in .Impl.remove' type=@[FlexibleNullability] kotlin.String? origin=null FUN DELEGATED_MEMBER name:removeAll visibility:public modality:OPEN <> ($this:.Impl, elements:kotlin.collections.Collection<@[FlexibleNullability] kotlin.String?>) returnType:kotlin.Boolean overridden: - public abstract fun removeAll (elements: kotlin.collections.Collection<@[FlexibleNullability] kotlin.String?>): kotlin.Boolean [fake_override] declared in .Foo.A - public abstract fun removeAll (elements: kotlin.collections.Collection<@[FlexibleNullability] kotlin.String?>): kotlin.Boolean [fake_override] declared in .Foo.B + public abstract fun removeAll (elements: kotlin.collections.Collection<@[FlexibleNullability] kotlin.String?>): kotlin.Boolean declared in .Foo.A + public abstract fun removeAll (elements: kotlin.collections.Collection<@[FlexibleNullability] kotlin.String?>): kotlin.Boolean declared in .Foo.B $this: VALUE_PARAMETER name: type:.Impl VALUE_PARAMETER name:elements index:0 type:kotlin.collections.Collection<@[FlexibleNullability] kotlin.String?> BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun removeAll (elements: kotlin.collections.Collection<@[FlexibleNullability] kotlin.String?>): kotlin.Boolean declared in .Impl' - CALL 'public abstract fun removeAll (elements: kotlin.collections.Collection<@[FlexibleNullability] kotlin.String?>): kotlin.Boolean [fake_override] declared in .Foo.B' type=kotlin.Boolean origin=null + CALL 'public abstract fun removeAll (elements: kotlin.collections.Collection<@[FlexibleNullability] kotlin.String?>): kotlin.Boolean declared in .Foo.B' type=kotlin.Boolean origin=null $this: GET_FIELD 'FIELD DELEGATE name:$$delegate_0 type:.Foo.B visibility:private [final]' type=.Foo.B origin=null receiver: GET_VAR ': .Impl declared in .Impl.removeAll' type=.Impl origin=null elements: GET_VAR 'elements: kotlin.collections.Collection<@[FlexibleNullability] kotlin.String?> declared in .Impl.removeAll' type=kotlin.collections.Collection<@[FlexibleNullability] kotlin.String?> origin=null FUN DELEGATED_MEMBER name:retainAll visibility:public modality:OPEN <> ($this:.Impl, elements:kotlin.collections.Collection<@[FlexibleNullability] kotlin.String?>) returnType:kotlin.Boolean overridden: - public abstract fun retainAll (elements: kotlin.collections.Collection<@[FlexibleNullability] kotlin.String?>): kotlin.Boolean [fake_override] declared in .Foo.A - public abstract fun retainAll (elements: kotlin.collections.Collection<@[FlexibleNullability] kotlin.String?>): kotlin.Boolean [fake_override] declared in .Foo.B + public abstract fun retainAll (elements: kotlin.collections.Collection<@[FlexibleNullability] kotlin.String?>): kotlin.Boolean declared in .Foo.A + public abstract fun retainAll (elements: kotlin.collections.Collection<@[FlexibleNullability] kotlin.String?>): kotlin.Boolean declared in .Foo.B $this: VALUE_PARAMETER name: type:.Impl VALUE_PARAMETER name:elements index:0 type:kotlin.collections.Collection<@[FlexibleNullability] kotlin.String?> BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun retainAll (elements: kotlin.collections.Collection<@[FlexibleNullability] kotlin.String?>): kotlin.Boolean declared in .Impl' - CALL 'public abstract fun retainAll (elements: kotlin.collections.Collection<@[FlexibleNullability] kotlin.String?>): kotlin.Boolean [fake_override] declared in .Foo.B' type=kotlin.Boolean origin=null + CALL 'public abstract fun retainAll (elements: kotlin.collections.Collection<@[FlexibleNullability] kotlin.String?>): kotlin.Boolean declared in .Foo.B' type=kotlin.Boolean origin=null $this: GET_FIELD 'FIELD DELEGATE name:$$delegate_0 type:.Foo.B visibility:private [final]' type=.Foo.B origin=null receiver: GET_VAR ': .Impl declared in .Impl.retainAll' type=.Impl origin=null elements: GET_VAR 'elements: kotlin.collections.Collection<@[FlexibleNullability] kotlin.String?> declared in .Impl.retainAll' type=kotlin.collections.Collection<@[FlexibleNullability] kotlin.String?> 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 [fake_override,operator] declared in .Foo.A - public open fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .Foo.B + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Foo.A + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Foo.B $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 .Foo.A - public open fun hashCode (): kotlin.Int [fake_override] declared in .Foo.B + public open fun hashCode (): kotlin.Int declared in .Foo.A + public open fun hashCode (): kotlin.Int declared in .Foo.B $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 .Foo.A - public open fun toString (): kotlin.String [fake_override] declared in .Foo.B + public open fun toString (): kotlin.String declared in .Foo.A + public open fun toString (): kotlin.String declared in .Foo.B $this: VALUE_PARAMETER name: type:kotlin.Any FUN name:box visibility:public modality:FINAL <> () returnType:kotlin.String BLOCK_BODY diff --git a/compiler/testData/ir/irText/firProblems/ErrorInDefaultValue.fir.ir.txt b/compiler/testData/ir/irText/firProblems/ErrorInDefaultValue.fir.ir.txt index c9512844e76..1ece81a4483 100644 --- a/compiler/testData/ir/irText/firProblems/ErrorInDefaultValue.fir.ir.txt +++ b/compiler/testData/ir/irText/firProblems/ErrorInDefaultValue.fir.ir.txt @@ -8,7 +8,7 @@ FILE fqName: fileName:/ErrorInDefaultValue.kt CONST String type=kotlin.String value="OK" 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -23,7 +23,7 @@ FILE fqName: fileName:/ErrorInDefaultValue.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.B CONSTRUCTOR visibility:public <> () returnType:.B [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:B modality:FINAL visibility:public superTypes:[.A]' FUN name:f visibility:public modality:OPEN <> ($this:.B, x:kotlin.String) returnType:kotlin.String overridden: @@ -35,23 +35,23 @@ FILE fqName: fileName:/ErrorInDefaultValue.kt GET_VAR 'x: kotlin.String declared in .B.f' type=kotlin.String 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 [fake_override,operator] declared in .A + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .A $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 .A + public open fun hashCode (): kotlin.Int declared in .A $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 .A + public open fun toString (): kotlin.String declared in .A $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:C modality:FINAL visibility:public superTypes:[.A] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.C CONSTRUCTOR visibility:public <> (x:.A) returnType:.C [primary] VALUE_PARAMETER name:x index:0 type:.A BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C modality:FINAL visibility:public superTypes:[.A]' FUN DELEGATED_MEMBER name:f visibility:public modality:OPEN <> ($this:.C, x:kotlin.String) returnType:kotlin.String overridden: @@ -77,14 +77,14 @@ FILE fqName: fileName:/ErrorInDefaultValue.kt receiver: GET_VAR ': .C declared in .C.' type=.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 [fake_override,operator] declared in .A + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .A $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 .A + public open fun hashCode (): kotlin.Int declared in .A $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 .A + public open fun toString (): kotlin.String declared in .A $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/firProblems/ErrorInDefaultValue.ir.txt b/compiler/testData/ir/irText/firProblems/ErrorInDefaultValue.ir.txt index 6180a5e7310..f3585a00c16 100644 --- a/compiler/testData/ir/irText/firProblems/ErrorInDefaultValue.ir.txt +++ b/compiler/testData/ir/irText/firProblems/ErrorInDefaultValue.ir.txt @@ -8,7 +8,7 @@ FILE fqName: fileName:/ErrorInDefaultValue.kt CONST String type=kotlin.String value="OK" 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -23,7 +23,7 @@ FILE fqName: fileName:/ErrorInDefaultValue.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.B CONSTRUCTOR visibility:public <> () returnType:.B [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:B modality:FINAL visibility:public superTypes:[.A]' FUN name:f visibility:public modality:OPEN <> ($this:.B, x:kotlin.String) returnType:kotlin.String overridden: @@ -35,23 +35,23 @@ FILE fqName: fileName:/ErrorInDefaultValue.kt GET_VAR 'x: kotlin.String declared in .B.f' type=kotlin.String 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 [fake_override,operator] declared in .A + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .A $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 .A + public open fun hashCode (): kotlin.Int declared in .A $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 .A + public open fun toString (): kotlin.String declared in .A $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:C modality:FINAL visibility:public superTypes:[.A] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.C CONSTRUCTOR visibility:public <> (x:.A) returnType:.C [primary] VALUE_PARAMETER name:x index:0 type:.A BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C modality:FINAL visibility:public superTypes:[.A]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:.A visibility:private [final] @@ -77,14 +77,14 @@ FILE fqName: fileName:/ErrorInDefaultValue.kt x: GET_VAR 'x: kotlin.String declared in .C.f' type=kotlin.String 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 [fake_override,operator] declared in .A + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .A $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 .A + public open fun hashCode (): kotlin.Int declared in .A $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 .A + public open fun toString (): kotlin.String declared in .A $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/firProblems/FakeOverrideInAnonymousWithDelegation.fir.ir.txt b/compiler/testData/ir/irText/firProblems/FakeOverrideInAnonymousWithDelegation.fir.ir.txt index a1733879360..3a40a6f2890 100644 --- a/compiler/testData/ir/irText/firProblems/FakeOverrideInAnonymousWithDelegation.fir.ir.txt +++ b/compiler/testData/ir/irText/firProblems/FakeOverrideInAnonymousWithDelegation.fir.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/FakeOverrideInAnonymousWithDelegation.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Wrapper CONSTRUCTOR visibility:public <> () returnType:.Wrapper [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Wrapper modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:dummy visibility:private modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:dummy type:.Wrapper.dummy. visibility:private [final] @@ -13,11 +13,11 @@ FILE fqName: fileName:/FakeOverrideInAnonymousWithDelegation.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Wrapper.dummy. CONSTRUCTOR visibility:public <> () returnType:.Wrapper.dummy. [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name: modality:FINAL visibility:local superTypes:[.Bar]' PROPERTY FAKE_OVERRIDE name:foo visibility:public modality:OPEN [fake_override,val] overridden: - public open foo: kotlin.String [val] + public open foo: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:OPEN <> ($this:.Bar) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:foo visibility:public modality:OPEN [fake_override,val] overridden: @@ -25,18 +25,18 @@ FILE fqName: fileName:/FakeOverrideInAnonymousWithDelegation.kt $this: VALUE_PARAMETER name: type:.Bar 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 .Bar + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Bar $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 .Bar + public open fun hashCode (): kotlin.Int declared in .Bar $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 .Bar + public open fun toString (): kotlin.String declared in .Bar $this: VALUE_PARAMETER name: type:kotlin.Any - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .Wrapper.dummy.' type=.Wrapper.dummy. origin=OBJECT_LITERAL + CONSTRUCTOR_CALL 'public constructor () declared in .Wrapper.dummy.' type=.Wrapper.dummy. origin=OBJECT_LITERAL FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:private modality:FINAL <> ($this:.Wrapper) returnType:.Wrapper.dummy. correspondingProperty: PROPERTY name:dummy visibility:private modality:FINAL [val] $this: VALUE_PARAMETER name: type:.Wrapper @@ -52,11 +52,11 @@ FILE fqName: fileName:/FakeOverrideInAnonymousWithDelegation.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Wrapper.bar. CONSTRUCTOR visibility:public <> () returnType:.Wrapper.bar. [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name: modality:FINAL visibility:local superTypes:[.Bar]' PROPERTY DELEGATED_MEMBER name:foo visibility:public modality:OPEN [val] overridden: - public open foo: kotlin.String [val] + public open foo: kotlin.String FUN DELEGATED_MEMBER name: visibility:public modality:OPEN <> ($this:.Wrapper.bar.) returnType:kotlin.String correspondingProperty: PROPERTY DELEGATED_MEMBER name:foo visibility:public modality:OPEN [val] overridden: @@ -73,18 +73,18 @@ FILE fqName: fileName:/FakeOverrideInAnonymousWithDelegation.kt $this: GET_VAR ': .Wrapper declared in .Wrapper' type=.Wrapper 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 [fake_override,operator] declared in .Bar + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Bar $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 .Bar + public open fun hashCode (): kotlin.Int declared in .Bar $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 .Bar + public open fun toString (): kotlin.String declared in .Bar $this: VALUE_PARAMETER name: type:kotlin.Any - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .Wrapper.bar.' type=.Wrapper.bar. origin=OBJECT_LITERAL + CONSTRUCTOR_CALL 'public constructor () declared in .Wrapper.bar.' type=.Wrapper.bar. origin=OBJECT_LITERAL FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:private modality:FINAL <> ($this:.Wrapper) returnType:.Wrapper.bar. correspondingProperty: PROPERTY name:bar visibility:private modality:FINAL [val] $this: VALUE_PARAMETER name: type:.Wrapper @@ -94,7 +94,7 @@ FILE fqName: fileName:/FakeOverrideInAnonymousWithDelegation.kt receiver: GET_VAR ': .Wrapper declared in .Wrapper.' type=.Wrapper 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -116,7 +116,7 @@ FILE fqName: fileName:/FakeOverrideInAnonymousWithDelegation.kt CONST String type=kotlin.String value="" 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/firProblems/FakeOverrideInAnonymousWithDelegation.ir.txt b/compiler/testData/ir/irText/firProblems/FakeOverrideInAnonymousWithDelegation.ir.txt index 492ab7a169b..2030c5b08c7 100644 --- a/compiler/testData/ir/irText/firProblems/FakeOverrideInAnonymousWithDelegation.ir.txt +++ b/compiler/testData/ir/irText/firProblems/FakeOverrideInAnonymousWithDelegation.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/FakeOverrideInAnonymousWithDelegation.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Wrapper CONSTRUCTOR visibility:public <> () returnType:.Wrapper [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Wrapper modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:dummy visibility:private modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:dummy type:.Wrapper.dummy. visibility:private [final] @@ -13,11 +13,11 @@ FILE fqName: fileName:/FakeOverrideInAnonymousWithDelegation.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Wrapper.dummy. CONSTRUCTOR visibility:public <> () returnType:.Wrapper.dummy. [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name: modality:FINAL visibility:local superTypes:[.Bar]' PROPERTY FAKE_OVERRIDE name:foo visibility:public modality:OPEN [fake_override,val] overridden: - public open foo: kotlin.String [val] + public open foo: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:OPEN <> ($this:.Bar) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:foo visibility:public modality:OPEN [fake_override,val] overridden: @@ -25,18 +25,18 @@ FILE fqName: fileName:/FakeOverrideInAnonymousWithDelegation.kt $this: VALUE_PARAMETER name: type:.Bar 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 .Bar + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Bar $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 .Bar + public open fun hashCode (): kotlin.Int declared in .Bar $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 .Bar + public open fun toString (): kotlin.String declared in .Bar $this: VALUE_PARAMETER name: type:kotlin.Any - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .Wrapper.dummy.' type=.Wrapper.dummy. origin=OBJECT_LITERAL + CONSTRUCTOR_CALL 'public constructor () declared in .Wrapper.dummy.' type=.Wrapper.dummy. origin=OBJECT_LITERAL FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:private modality:FINAL <> ($this:.Wrapper) returnType:.Wrapper.dummy. correspondingProperty: PROPERTY name:dummy visibility:private modality:FINAL [val] $this: VALUE_PARAMETER name: type:.Wrapper @@ -52,7 +52,7 @@ FILE fqName: fileName:/FakeOverrideInAnonymousWithDelegation.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Wrapper.bar. CONSTRUCTOR visibility:public <> () returnType:.Wrapper.bar. [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name: modality:FINAL visibility:local superTypes:[.Bar]' FIELD DELEGATE name:$$delegate_0 type:.Wrapper.dummy. visibility:private [final] EXPRESSION_BODY @@ -60,7 +60,7 @@ FILE fqName: fileName:/FakeOverrideInAnonymousWithDelegation.kt $this: GET_VAR ': .Wrapper declared in .Wrapper' type=.Wrapper origin=null PROPERTY DELEGATED_MEMBER name:foo visibility:public modality:OPEN [val] overridden: - public open foo: kotlin.String [val] + public open foo: kotlin.String FUN DELEGATED_MEMBER name: visibility:public modality:OPEN <> ($this:.Wrapper.bar.) returnType:kotlin.String correspondingProperty: PROPERTY DELEGATED_MEMBER name:foo visibility:public modality:OPEN [val] overridden: @@ -68,23 +68,23 @@ FILE fqName: fileName:/FakeOverrideInAnonymousWithDelegation.kt $this: VALUE_PARAMETER name: type:.Wrapper.bar. BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun (): kotlin.String declared in .Wrapper.bar.' - CALL 'public open fun (): kotlin.String [fake_override] declared in .Wrapper.dummy.' type=kotlin.String origin=null + CALL 'public open fun (): kotlin.String declared in .Wrapper.dummy.' type=kotlin.String origin=null $this: GET_FIELD 'FIELD DELEGATE name:$$delegate_0 type:.Wrapper.dummy. visibility:private [final]' type=.Wrapper.dummy. origin=null receiver: GET_VAR ': .Wrapper.bar. declared in .Wrapper.bar..' type=.Wrapper.bar. 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 [fake_override,operator] declared in .Bar + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Bar $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 .Bar + public open fun hashCode (): kotlin.Int declared in .Bar $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 .Bar + public open fun toString (): kotlin.String declared in .Bar $this: VALUE_PARAMETER name: type:kotlin.Any - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .Wrapper.bar.' type=.Wrapper.bar. origin=OBJECT_LITERAL + CONSTRUCTOR_CALL 'public constructor () declared in .Wrapper.bar.' type=.Wrapper.bar. origin=OBJECT_LITERAL FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:private modality:FINAL <> ($this:.Wrapper) returnType:.Wrapper.bar. correspondingProperty: PROPERTY name:bar visibility:private modality:FINAL [val] $this: VALUE_PARAMETER name: type:.Wrapper @@ -94,7 +94,7 @@ FILE fqName: fileName:/FakeOverrideInAnonymousWithDelegation.kt receiver: GET_VAR ': .Wrapper declared in .Wrapper.' type=.Wrapper 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -116,7 +116,7 @@ FILE fqName: fileName:/FakeOverrideInAnonymousWithDelegation.kt CONST String type=kotlin.String value="" 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/firProblems/Fir2IrClassifierStorage.fir.ir.txt b/compiler/testData/ir/irText/firProblems/Fir2IrClassifierStorage.fir.ir.txt index 43a89293e96..346b62b42c5 100644 --- a/compiler/testData/ir/irText/firProblems/Fir2IrClassifierStorage.fir.ir.txt +++ b/compiler/testData/ir/irText/firProblems/Fir2IrClassifierStorage.fir.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/Fir2IrClassifierStorage.kt CONSTRUCTOR visibility:public <> (name:kotlin.String) returnType:.FirSession [primary] VALUE_PARAMETER name:name index:0 type:kotlin.String BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:FirSession modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:name visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:name type:kotlin.String visibility:private [final] @@ -19,7 +19,7 @@ FILE fqName: fileName:/Fir2IrClassifierStorage.kt receiver: GET_VAR ': .FirSession declared in .FirSession.' type=.FirSession 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -42,7 +42,7 @@ FILE fqName: fileName:/Fir2IrClassifierStorage.kt $this: VALUE_PARAMETER name: type:.Fir2IrComponents 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -58,11 +58,11 @@ FILE fqName: fileName:/Fir2IrClassifierStorage.kt CONSTRUCTOR visibility:public <> (session:.FirSession) returnType:.Fir2IrComponentsStorage [primary] VALUE_PARAMETER name:session index:0 type:.FirSession BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Fir2IrComponentsStorage modality:FINAL visibility:public superTypes:[.Fir2IrComponents]' PROPERTY name:session visibility:public modality:OPEN [val] overridden: - public abstract session: .FirSession [val] + public abstract session: .FirSession FIELD PROPERTY_BACKING_FIELD name:session type:.FirSession visibility:private [final] EXPRESSION_BODY GET_VAR 'session: .FirSession declared in .Fir2IrComponentsStorage.' type=.FirSession origin=INITIALIZE_PROPERTY_FROM_PARAMETER @@ -77,7 +77,7 @@ FILE fqName: fileName:/Fir2IrClassifierStorage.kt receiver: GET_VAR ': .Fir2IrComponentsStorage declared in .Fir2IrComponentsStorage.' type=.Fir2IrComponentsStorage origin=null PROPERTY name:classifierStorage visibility:public modality:OPEN [lateinit,var] overridden: - public abstract classifierStorage: .Fir2IrClassifierStorage [val] + public abstract classifierStorage: .Fir2IrClassifierStorage FIELD PROPERTY_BACKING_FIELD name:classifierStorage type:.Fir2IrClassifierStorage visibility:public FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:OPEN <> ($this:.Fir2IrComponentsStorage) returnType:.Fir2IrClassifierStorage correspondingProperty: PROPERTY name:classifierStorage visibility:public modality:OPEN [lateinit,var] @@ -98,27 +98,27 @@ FILE fqName: fileName:/Fir2IrClassifierStorage.kt value: GET_VAR ': .Fir2IrClassifierStorage declared in .Fir2IrComponentsStorage.' type=.Fir2IrClassifierStorage 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 [fake_override,operator] declared in .Fir2IrComponents + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Fir2IrComponents $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 .Fir2IrComponents + public open fun hashCode (): kotlin.Int declared in .Fir2IrComponents $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 .Fir2IrComponents + public open fun toString (): kotlin.String declared in .Fir2IrComponents $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:Fir2IrClassifierStorage modality:FINAL visibility:public superTypes:[.Fir2IrComponents] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Fir2IrClassifierStorage CONSTRUCTOR visibility:public <> (components:.Fir2IrComponents) returnType:.Fir2IrClassifierStorage [primary] VALUE_PARAMETER name:components index:0 type:.Fir2IrComponents BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Fir2IrClassifierStorage modality:FINAL visibility:public superTypes:[.Fir2IrComponents]' PROPERTY DELEGATED_MEMBER name:session visibility:public modality:OPEN [val] overridden: - public abstract session: .FirSession [val] + public abstract session: .FirSession FUN DELEGATED_MEMBER name: visibility:public modality:OPEN <> ($this:.Fir2IrClassifierStorage) returnType:.FirSession correspondingProperty: PROPERTY DELEGATED_MEMBER name:session visibility:public modality:OPEN [val] overridden: @@ -131,7 +131,7 @@ FILE fqName: fileName:/Fir2IrClassifierStorage.kt receiver: GET_VAR ': .Fir2IrClassifierStorage declared in .Fir2IrClassifierStorage.' type=.Fir2IrClassifierStorage origin=null PROPERTY DELEGATED_MEMBER name:classifierStorage visibility:public modality:OPEN [val] overridden: - public abstract classifierStorage: .Fir2IrClassifierStorage [val] + public abstract classifierStorage: .Fir2IrClassifierStorage FUN DELEGATED_MEMBER name: visibility:public modality:OPEN <> ($this:.Fir2IrClassifierStorage) returnType:.Fir2IrClassifierStorage correspondingProperty: PROPERTY DELEGATED_MEMBER name:classifierStorage visibility:public modality:OPEN [val] overridden: @@ -168,14 +168,14 @@ FILE fqName: fileName:/Fir2IrClassifierStorage.kt receiver: GET_VAR ': .Fir2IrClassifierStorage declared in .Fir2IrClassifierStorage.' type=.Fir2IrClassifierStorage 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 [fake_override,operator] declared in .Fir2IrComponents + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Fir2IrComponents $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 .Fir2IrComponents + public open fun hashCode (): kotlin.Int declared in .Fir2IrComponents $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 .Fir2IrComponents + public open fun toString (): kotlin.String declared in .Fir2IrComponents $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/firProblems/Fir2IrClassifierStorage.ir.txt b/compiler/testData/ir/irText/firProblems/Fir2IrClassifierStorage.ir.txt index 7fb01b39126..456b980b0b3 100644 --- a/compiler/testData/ir/irText/firProblems/Fir2IrClassifierStorage.ir.txt +++ b/compiler/testData/ir/irText/firProblems/Fir2IrClassifierStorage.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/Fir2IrClassifierStorage.kt CONSTRUCTOR visibility:public <> (name:kotlin.String) returnType:.FirSession [primary] VALUE_PARAMETER name:name index:0 type:kotlin.String BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:FirSession modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:name visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:name type:kotlin.String visibility:private [final] @@ -19,7 +19,7 @@ FILE fqName: fileName:/Fir2IrClassifierStorage.kt receiver: GET_VAR ': .FirSession declared in .FirSession.' type=.FirSession 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -42,7 +42,7 @@ FILE fqName: fileName:/Fir2IrClassifierStorage.kt $this: VALUE_PARAMETER name: type:.Fir2IrComponents 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -58,11 +58,11 @@ FILE fqName: fileName:/Fir2IrClassifierStorage.kt CONSTRUCTOR visibility:public <> (session:.FirSession) returnType:.Fir2IrComponentsStorage [primary] VALUE_PARAMETER name:session index:0 type:.FirSession BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Fir2IrComponentsStorage modality:FINAL visibility:public superTypes:[.Fir2IrComponents]' PROPERTY name:session visibility:public modality:OPEN [val] overridden: - public abstract session: .FirSession [val] + public abstract session: .FirSession FIELD PROPERTY_BACKING_FIELD name:session type:.FirSession visibility:private [final] EXPRESSION_BODY GET_VAR 'session: .FirSession declared in .Fir2IrComponentsStorage.' type=.FirSession origin=INITIALIZE_PROPERTY_FROM_PARAMETER @@ -77,7 +77,7 @@ FILE fqName: fileName:/Fir2IrClassifierStorage.kt receiver: GET_VAR ': .Fir2IrComponentsStorage declared in .Fir2IrComponentsStorage.' type=.Fir2IrComponentsStorage origin=null PROPERTY name:classifierStorage visibility:public modality:OPEN [lateinit,var] overridden: - public abstract classifierStorage: .Fir2IrClassifierStorage [val] + public abstract classifierStorage: .Fir2IrClassifierStorage FIELD PROPERTY_BACKING_FIELD name:classifierStorage type:.Fir2IrClassifierStorage visibility:public FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:OPEN <> ($this:.Fir2IrComponentsStorage) returnType:.Fir2IrClassifierStorage correspondingProperty: PROPERTY name:classifierStorage visibility:public modality:OPEN [lateinit,var] @@ -98,23 +98,23 @@ FILE fqName: fileName:/Fir2IrClassifierStorage.kt value: GET_VAR ': .Fir2IrClassifierStorage declared in .Fir2IrComponentsStorage.' type=.Fir2IrClassifierStorage 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 [fake_override,operator] declared in .Fir2IrComponents + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Fir2IrComponents $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 .Fir2IrComponents + public open fun hashCode (): kotlin.Int declared in .Fir2IrComponents $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 .Fir2IrComponents + public open fun toString (): kotlin.String declared in .Fir2IrComponents $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:Fir2IrClassifierStorage modality:FINAL visibility:public superTypes:[.Fir2IrComponents] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Fir2IrClassifierStorage CONSTRUCTOR visibility:public <> (components:.Fir2IrComponents) returnType:.Fir2IrClassifierStorage [primary] VALUE_PARAMETER name:components index:0 type:.Fir2IrComponents BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Fir2IrClassifierStorage modality:FINAL visibility:public superTypes:[.Fir2IrComponents]' PROPERTY name:components visibility:private modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:components type:.Fir2IrComponents visibility:private [final] @@ -129,7 +129,7 @@ FILE fqName: fileName:/Fir2IrClassifierStorage.kt receiver: GET_VAR ': .Fir2IrClassifierStorage declared in .Fir2IrClassifierStorage.' type=.Fir2IrClassifierStorage origin=null PROPERTY DELEGATED_MEMBER name:classifierStorage visibility:public modality:OPEN [val] overridden: - public abstract classifierStorage: .Fir2IrClassifierStorage [val] + public abstract classifierStorage: .Fir2IrClassifierStorage FUN DELEGATED_MEMBER name: visibility:public modality:OPEN <> ($this:.Fir2IrClassifierStorage) returnType:.Fir2IrClassifierStorage correspondingProperty: PROPERTY DELEGATED_MEMBER name:classifierStorage visibility:public modality:OPEN [val] overridden: @@ -142,7 +142,7 @@ FILE fqName: fileName:/Fir2IrClassifierStorage.kt receiver: GET_VAR ': .Fir2IrClassifierStorage declared in .Fir2IrClassifierStorage.' type=.Fir2IrClassifierStorage origin=null PROPERTY DELEGATED_MEMBER name:session visibility:public modality:OPEN [val] overridden: - public abstract session: .FirSession [val] + public abstract session: .FirSession FUN DELEGATED_MEMBER name: visibility:public modality:OPEN <> ($this:.Fir2IrClassifierStorage) returnType:.FirSession correspondingProperty: PROPERTY DELEGATED_MEMBER name:session visibility:public modality:OPEN [val] overridden: @@ -168,14 +168,14 @@ FILE fqName: fileName:/Fir2IrClassifierStorage.kt receiver: GET_VAR ': .Fir2IrClassifierStorage declared in .Fir2IrClassifierStorage.' type=.Fir2IrClassifierStorage 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 [fake_override,operator] declared in .Fir2IrComponents + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Fir2IrComponents $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 .Fir2IrComponents + public open fun hashCode (): kotlin.Int declared in .Fir2IrComponents $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 .Fir2IrComponents + public open fun toString (): kotlin.String declared in .Fir2IrComponents $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/firProblems/FirBuilder.fir.ir.txt b/compiler/testData/ir/irText/firProblems/FirBuilder.fir.ir.txt index 464989e0304..cbf8f4658ac 100644 --- a/compiler/testData/ir/irText/firProblems/FirBuilder.fir.ir.txt +++ b/compiler/testData/ir/irText/firProblems/FirBuilder.fir.ir.txt @@ -5,19 +5,19 @@ FILE fqName: fileName:/BaseFirBuilder.kt TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false CONSTRUCTOR visibility:public <> () returnType:.BaseFirBuilder.BaseFirBuilder> [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:BaseFirBuilder modality:ABSTRACT visibility:public superTypes:[kotlin.Any]' FUN name:withCapturedTypeParameters visibility:public modality:FINAL ($this:.BaseFirBuilder.BaseFirBuilder>, block:kotlin.Function0.BaseFirBuilder.withCapturedTypeParameters>) returnType:T of .BaseFirBuilder.withCapturedTypeParameters [inline] TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false $this: VALUE_PARAMETER name: type:.BaseFirBuilder.BaseFirBuilder> VALUE_PARAMETER name:block index:0 type:kotlin.Function0.BaseFirBuilder.withCapturedTypeParameters> BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun withCapturedTypeParameters (block: kotlin.Function0.BaseFirBuilder.withCapturedTypeParameters>): T of .BaseFirBuilder.withCapturedTypeParameters [inline] declared in .BaseFirBuilder' - CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=T of .BaseFirBuilder.withCapturedTypeParameters origin=INVOKE + RETURN type=kotlin.Nothing from='public final fun withCapturedTypeParameters (block: kotlin.Function0.BaseFirBuilder.withCapturedTypeParameters>): T of .BaseFirBuilder.withCapturedTypeParameters declared in .BaseFirBuilder' + CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=T of .BaseFirBuilder.withCapturedTypeParameters origin=INVOKE $this: GET_VAR 'block: kotlin.Function0.BaseFirBuilder.withCapturedTypeParameters> declared in .BaseFirBuilder.withCapturedTypeParameters' type=kotlin.Function0.BaseFirBuilder.withCapturedTypeParameters> origin=VARIABLE_AS_FUNCTION 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -34,50 +34,50 @@ FILE fqName: fileName:/FirBuilder.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.BaseConverter CONSTRUCTOR visibility:public <> () returnType:.BaseConverter [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .BaseFirBuilder' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .BaseFirBuilder' : kotlin.Any INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:BaseConverter modality:OPEN visibility:public superTypes:[.BaseFirBuilder]' FUN FAKE_OVERRIDE name:withCapturedTypeParameters visibility:public modality:FINAL ($this:.BaseFirBuilder.BaseFirBuilder>, block:kotlin.Function0.BaseConverter.withCapturedTypeParameters>) returnType:T of .BaseConverter.withCapturedTypeParameters [inline,fake_override] overridden: - public final fun withCapturedTypeParameters (block: kotlin.Function0.BaseFirBuilder.withCapturedTypeParameters>): T of .BaseFirBuilder.withCapturedTypeParameters [inline] declared in .BaseFirBuilder + public final fun withCapturedTypeParameters (block: kotlin.Function0.BaseFirBuilder.withCapturedTypeParameters>): T of .BaseFirBuilder.withCapturedTypeParameters declared in .BaseFirBuilder TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false $this: VALUE_PARAMETER name: type:.BaseFirBuilder.BaseFirBuilder> VALUE_PARAMETER name:block index:0 type:kotlin.Function0.BaseConverter.withCapturedTypeParameters> 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 .BaseFirBuilder + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .BaseFirBuilder $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 .BaseFirBuilder + public open fun hashCode (): kotlin.Int declared in .BaseFirBuilder $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 .BaseFirBuilder + public open fun toString (): kotlin.String declared in .BaseFirBuilder $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:DeclarationsConverter modality:FINAL visibility:public superTypes:[.BaseConverter] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.DeclarationsConverter CONSTRUCTOR visibility:public <> () returnType:.DeclarationsConverter [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .BaseConverter' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .BaseConverter' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:DeclarationsConverter modality:FINAL visibility:public superTypes:[.BaseConverter]' FUN FAKE_OVERRIDE name:withCapturedTypeParameters visibility:public modality:FINAL ($this:.BaseFirBuilder.BaseFirBuilder>, block:kotlin.Function0.DeclarationsConverter.withCapturedTypeParameters>) returnType:T of .DeclarationsConverter.withCapturedTypeParameters [inline,fake_override] overridden: - public final fun withCapturedTypeParameters (block: kotlin.Function0.BaseConverter.withCapturedTypeParameters>): T of .BaseConverter.withCapturedTypeParameters [inline,fake_override] declared in .BaseConverter + public final fun withCapturedTypeParameters (block: kotlin.Function0.BaseConverter.withCapturedTypeParameters>): T of .BaseConverter.withCapturedTypeParameters declared in .BaseConverter TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false $this: VALUE_PARAMETER name: type:.BaseFirBuilder.BaseFirBuilder> VALUE_PARAMETER name:block index:0 type:kotlin.Function0.DeclarationsConverter.withCapturedTypeParameters> 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 .BaseConverter + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .BaseConverter $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 .BaseConverter + public open fun hashCode (): kotlin.Int declared in .BaseConverter $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 .BaseConverter + public open fun toString (): kotlin.String declared in .BaseConverter $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/firProblems/FirBuilder.ir.txt b/compiler/testData/ir/irText/firProblems/FirBuilder.ir.txt index 8113bf71c02..0c525efcb47 100644 --- a/compiler/testData/ir/irText/firProblems/FirBuilder.ir.txt +++ b/compiler/testData/ir/irText/firProblems/FirBuilder.ir.txt @@ -5,19 +5,19 @@ FILE fqName: fileName:/BaseFirBuilder.kt TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false CONSTRUCTOR visibility:public <> () returnType:.BaseFirBuilder.BaseFirBuilder> [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:BaseFirBuilder modality:ABSTRACT visibility:public superTypes:[kotlin.Any]' FUN name:withCapturedTypeParameters visibility:public modality:FINAL ($this:.BaseFirBuilder.BaseFirBuilder>, block:kotlin.Function0.BaseFirBuilder.withCapturedTypeParameters>) returnType:T of .BaseFirBuilder.withCapturedTypeParameters [inline] TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false $this: VALUE_PARAMETER name: type:.BaseFirBuilder.BaseFirBuilder> VALUE_PARAMETER name:block index:0 type:kotlin.Function0.BaseFirBuilder.withCapturedTypeParameters> BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun withCapturedTypeParameters (block: kotlin.Function0.BaseFirBuilder.withCapturedTypeParameters>): T of .BaseFirBuilder.withCapturedTypeParameters [inline] declared in .BaseFirBuilder' - CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=T of .BaseFirBuilder.withCapturedTypeParameters origin=INVOKE + RETURN type=kotlin.Nothing from='public final fun withCapturedTypeParameters (block: kotlin.Function0.BaseFirBuilder.withCapturedTypeParameters>): T of .BaseFirBuilder.withCapturedTypeParameters declared in .BaseFirBuilder' + CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=T of .BaseFirBuilder.withCapturedTypeParameters origin=INVOKE $this: GET_VAR 'block: kotlin.Function0.BaseFirBuilder.withCapturedTypeParameters> declared in .BaseFirBuilder.withCapturedTypeParameters' type=kotlin.Function0.BaseFirBuilder.withCapturedTypeParameters> origin=VARIABLE_AS_FUNCTION 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -34,50 +34,50 @@ FILE fqName: fileName:/FirBuilder.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.BaseConverter CONSTRUCTOR visibility:public <> () returnType:.BaseConverter [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .BaseFirBuilder' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .BaseFirBuilder' : kotlin.Any INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:BaseConverter modality:OPEN visibility:public superTypes:[.BaseFirBuilder]' FUN FAKE_OVERRIDE name:withCapturedTypeParameters visibility:public modality:FINAL ($this:.BaseFirBuilder, block:kotlin.Function0.BaseConverter.withCapturedTypeParameters>) returnType:T of .BaseConverter.withCapturedTypeParameters [inline,fake_override] overridden: - public final fun withCapturedTypeParameters (block: kotlin.Function0.BaseFirBuilder.withCapturedTypeParameters>): T of .BaseFirBuilder.withCapturedTypeParameters [inline] declared in .BaseFirBuilder + public final fun withCapturedTypeParameters (block: kotlin.Function0.BaseFirBuilder.withCapturedTypeParameters>): T of .BaseFirBuilder.withCapturedTypeParameters declared in .BaseFirBuilder TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false $this: VALUE_PARAMETER name: type:.BaseFirBuilder VALUE_PARAMETER name:block index:0 type:kotlin.Function0.BaseConverter.withCapturedTypeParameters> 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 .BaseFirBuilder + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .BaseFirBuilder $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 .BaseFirBuilder + public open fun hashCode (): kotlin.Int declared in .BaseFirBuilder $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 .BaseFirBuilder + public open fun toString (): kotlin.String declared in .BaseFirBuilder $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:DeclarationsConverter modality:FINAL visibility:public superTypes:[.BaseConverter] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.DeclarationsConverter CONSTRUCTOR visibility:public <> () returnType:.DeclarationsConverter [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .BaseConverter' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .BaseConverter' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:DeclarationsConverter modality:FINAL visibility:public superTypes:[.BaseConverter]' FUN FAKE_OVERRIDE name:withCapturedTypeParameters visibility:public modality:FINAL ($this:.BaseFirBuilder, block:kotlin.Function0.DeclarationsConverter.withCapturedTypeParameters>) returnType:T of .DeclarationsConverter.withCapturedTypeParameters [inline,fake_override] overridden: - public final fun withCapturedTypeParameters (block: kotlin.Function0.BaseConverter.withCapturedTypeParameters>): T of .BaseConverter.withCapturedTypeParameters [inline,fake_override] declared in .BaseConverter + public final fun withCapturedTypeParameters (block: kotlin.Function0.BaseConverter.withCapturedTypeParameters>): T of .BaseConverter.withCapturedTypeParameters declared in .BaseConverter TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false $this: VALUE_PARAMETER name: type:.BaseFirBuilder VALUE_PARAMETER name:block index:0 type:kotlin.Function0.DeclarationsConverter.withCapturedTypeParameters> 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 .BaseConverter + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .BaseConverter $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 .BaseConverter + public open fun hashCode (): kotlin.Int declared in .BaseConverter $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 .BaseConverter + public open fun toString (): kotlin.String declared in .BaseConverter $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/firProblems/FlushFromAnonymous.fir.ir.txt b/compiler/testData/ir/irText/firProblems/FlushFromAnonymous.fir.ir.txt index 542bb8c30f5..98c5c1b8e25 100644 --- a/compiler/testData/ir/irText/firProblems/FlushFromAnonymous.fir.ir.txt +++ b/compiler/testData/ir/irText/firProblems/FlushFromAnonymous.fir.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/FlushFromAnonymous.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Serializer CONSTRUCTOR visibility:public <> () returnType:.Serializer [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Serializer modality:FINAL visibility:public superTypes:[kotlin.Any]' FUN name:serialize visibility:public modality:FINAL <> ($this:.Serializer) returnType:kotlin.Unit $this: VALUE_PARAMETER name: type:.Serializer @@ -13,11 +13,11 @@ FILE fqName: fileName:/FlushFromAnonymous.kt $this: GET_VAR ': .Serializer declared in .Serializer.serialize' type=.Serializer origin=null TRY type=kotlin.Unit try: BLOCK type=kotlin.Unit origin=null - CATCH parameter=val e: kotlin.Throwable [val] declared in .Serializer.serialize + CATCH parameter=val e: kotlin.Throwable declared in .Serializer.serialize VAR CATCH_PARAMETER name:e type:kotlin.Throwable [val] BLOCK type=kotlin.Unit origin=null - CALL 'public open fun flush (): kotlin.Unit [fake_override] declared in .Serializer.createMessageCollector.' type=kotlin.Unit origin=null - $this: GET_VAR 'val messageCollector: .Serializer.createMessageCollector. [val] declared in .Serializer.serialize' type=.Serializer.createMessageCollector. origin=null + CALL 'public open fun flush (): kotlin.Unit declared in .Serializer.createMessageCollector.' type=kotlin.Unit origin=null + $this: GET_VAR 'val messageCollector: .Serializer.createMessageCollector. declared in .Serializer.serialize' type=.Serializer.createMessageCollector. origin=null FUN name:createMessageCollector visibility:private modality:FINAL <> ($this:.Serializer) returnType:.Serializer.createMessageCollector. $this: VALUE_PARAMETER name: type:.Serializer BLOCK_BODY @@ -27,7 +27,7 @@ FILE fqName: fileName:/FlushFromAnonymous.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Serializer.createMessageCollector. CONSTRUCTOR visibility:public <> () returnType:.Serializer.createMessageCollector. [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .Collector' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .Collector' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name: modality:FINAL visibility:local superTypes:[.Collector]' FUN FAKE_OVERRIDE name:flush visibility:public modality:OPEN <> ($this:.Collector) returnType:kotlin.Unit [fake_override] overridden: @@ -35,21 +35,21 @@ FILE fqName: fileName:/FlushFromAnonymous.kt $this: VALUE_PARAMETER name: type:.Collector 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 .Collector + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Collector $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 .Collector + public open fun hashCode (): kotlin.Int declared in .Collector $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 .Collector + public open fun toString (): kotlin.String declared in .Collector $this: VALUE_PARAMETER name: type:kotlin.Any - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .Serializer.createMessageCollector.' type=.Serializer.createMessageCollector. origin=OBJECT_LITERAL + CONSTRUCTOR_CALL 'public constructor () declared in .Serializer.createMessageCollector.' type=.Serializer.createMessageCollector. origin=OBJECT_LITERAL 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/firProblems/FlushFromAnonymous.ir.txt b/compiler/testData/ir/irText/firProblems/FlushFromAnonymous.ir.txt index c9a8a343047..3ddc7347bc5 100644 --- a/compiler/testData/ir/irText/firProblems/FlushFromAnonymous.ir.txt +++ b/compiler/testData/ir/irText/firProblems/FlushFromAnonymous.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/FlushFromAnonymous.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Serializer CONSTRUCTOR visibility:public <> () returnType:.Serializer [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Serializer modality:FINAL visibility:public superTypes:[kotlin.Any]' FUN name:serialize visibility:public modality:FINAL <> ($this:.Serializer) returnType:kotlin.Unit $this: VALUE_PARAMETER name: type:.Serializer @@ -13,11 +13,11 @@ FILE fqName: fileName:/FlushFromAnonymous.kt $this: GET_VAR ': .Serializer declared in .Serializer.serialize' type=.Serializer origin=null TRY type=kotlin.Unit try: BLOCK type=kotlin.Unit origin=null - CATCH parameter=val e: kotlin.Throwable [val] declared in .Serializer.serialize + CATCH parameter=val e: kotlin.Throwable declared in .Serializer.serialize VAR CATCH_PARAMETER name:e type:kotlin.Throwable [val] BLOCK type=kotlin.Unit origin=null - CALL 'public open fun flush (): kotlin.Unit [fake_override] declared in .Serializer.createMessageCollector.' type=kotlin.Unit origin=null - $this: GET_VAR 'val messageCollector: .Serializer.createMessageCollector. [val] declared in .Serializer.serialize' type=.Serializer.createMessageCollector. origin=null + CALL 'public open fun flush (): kotlin.Unit declared in .Serializer.createMessageCollector.' type=kotlin.Unit origin=null + $this: GET_VAR 'val messageCollector: .Serializer.createMessageCollector. declared in .Serializer.serialize' type=.Serializer.createMessageCollector. origin=null FUN name:createMessageCollector visibility:private modality:FINAL <> ($this:.Serializer) returnType:.Serializer.createMessageCollector. $this: VALUE_PARAMETER name: type:.Serializer BLOCK_BODY @@ -27,29 +27,29 @@ FILE fqName: fileName:/FlushFromAnonymous.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Serializer.createMessageCollector. CONSTRUCTOR visibility:public <> () returnType:.Serializer.createMessageCollector. [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .Collector' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .Collector' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name: modality:FINAL visibility:local superTypes:[.Collector]' 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 .Collector + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Collector $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 .Collector + public open fun hashCode (): kotlin.Int declared in .Collector $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 .Collector + public open fun toString (): kotlin.String declared in .Collector $this: VALUE_PARAMETER name: type:kotlin.Any FUN FAKE_OVERRIDE name:flush visibility:public modality:OPEN <> ($this:.Collector) returnType:kotlin.Unit [fake_override] overridden: public open fun flush (): kotlin.Unit declared in .Collector $this: VALUE_PARAMETER name: type:.Collector - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .Serializer.createMessageCollector.' type=.Serializer.createMessageCollector. origin=OBJECT_LITERAL + CONSTRUCTOR_CALL 'public constructor () declared in .Serializer.createMessageCollector.' type=.Serializer.createMessageCollector. origin=OBJECT_LITERAL 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/firProblems/ImplicitReceiverStack.fir.ir.txt b/compiler/testData/ir/irText/firProblems/ImplicitReceiverStack.fir.ir.txt index 5dbe9cf6567..326e8afff80 100644 --- a/compiler/testData/ir/irText/firProblems/ImplicitReceiverStack.fir.ir.txt +++ b/compiler/testData/ir/irText/firProblems/ImplicitReceiverStack.fir.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/ImplicitReceiverStack.kt TYPE_PARAMETER name:E index:0 variance: superTypes:[.SymbolOwner.SymbolOwner>] reified:false 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -20,7 +20,7 @@ FILE fqName: fileName:/ImplicitReceiverStack.kt TYPE_PARAMETER name:E index:0 variance: superTypes:[.SymbolOwner.Symbol>] reified:false 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -39,7 +39,7 @@ FILE fqName: fileName:/ImplicitReceiverStack.kt $this: VALUE_PARAMETER name: type:.ReceiverValue 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -57,7 +57,7 @@ FILE fqName: fileName:/ImplicitReceiverStack.kt VALUE_PARAMETER name:boundSymbol index:0 type:S of .ImplicitReceiverValue? VALUE_PARAMETER name:type index:1 type:kotlin.String BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:ImplicitReceiverValue modality:FINAL visibility:public superTypes:[.ReceiverValue]' PROPERTY name:boundSymbol visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:boundSymbol type:S of .ImplicitReceiverValue? visibility:private [final] @@ -72,7 +72,7 @@ FILE fqName: fileName:/ImplicitReceiverStack.kt receiver: GET_VAR ': .ImplicitReceiverValue.ImplicitReceiverValue> declared in .ImplicitReceiverValue.' type=.ImplicitReceiverValue.ImplicitReceiverValue> origin=null PROPERTY name:type visibility:public modality:OPEN [val] overridden: - public abstract type: kotlin.String [val] + public abstract type: kotlin.String FIELD PROPERTY_BACKING_FIELD name:type type:kotlin.String visibility:private [final] EXPRESSION_BODY GET_VAR 'type: kotlin.String declared in .ImplicitReceiverValue.' type=kotlin.String origin=INITIALIZE_PROPERTY_FROM_PARAMETER @@ -87,29 +87,29 @@ FILE fqName: fileName:/ImplicitReceiverStack.kt receiver: GET_VAR ': .ImplicitReceiverValue.ImplicitReceiverValue> declared in .ImplicitReceiverValue.' type=.ImplicitReceiverValue.ImplicitReceiverValue> 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 [fake_override,operator] declared in .ReceiverValue + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .ReceiverValue $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 .ReceiverValue + public open fun hashCode (): kotlin.Int declared in .ReceiverValue $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 .ReceiverValue + public open fun toString (): kotlin.String declared in .ReceiverValue $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:ImplicitReceiverStack modality:ABSTRACT visibility:public superTypes:[kotlin.collections.Iterable<.ImplicitReceiverValue<*>>] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.ImplicitReceiverStack CONSTRUCTOR visibility:public <> () returnType:.ImplicitReceiverStack [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:ImplicitReceiverStack modality:ABSTRACT visibility:public superTypes:[kotlin.collections.Iterable<.ImplicitReceiverValue<*>>]' FUN name:get visibility:public modality:ABSTRACT <> ($this:.ImplicitReceiverStack, name:kotlin.String?) returnType:.ImplicitReceiverValue<*>? [operator] $this: VALUE_PARAMETER name: type:.ImplicitReceiverStack VALUE_PARAMETER name:name index:0 type:kotlin.String? FUN FAKE_OVERRIDE name:iterator visibility:public modality:ABSTRACT <> ($this:kotlin.collections.Iterable) returnType:kotlin.collections.Iterator<.ImplicitReceiverValue<*>> [fake_override,operator] overridden: - public abstract fun iterator (): kotlin.collections.Iterator [operator] declared in kotlin.collections.Iterable + public abstract fun iterator (): kotlin.collections.Iterator declared in kotlin.collections.Iterable $this: VALUE_PARAMETER name: type:kotlin.collections.Iterable FUN FAKE_OVERRIDE name:forEach visibility:public modality:OPEN <> ($this:kotlin.collections.Iterable, p0:@[FlexibleNullability] java.util.function.Consumer.ImplicitReceiverValue<*>?>?) returnType:kotlin.Unit [fake_override] overridden: @@ -122,23 +122,23 @@ FILE fqName: fileName:/ImplicitReceiverStack.kt $this: VALUE_PARAMETER name: type:kotlin.collections.Iterable 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 kotlin.collections.Iterable + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.collections.Iterable $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 kotlin.collections.Iterable + public open fun hashCode (): kotlin.Int declared in kotlin.collections.Iterable $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 kotlin.collections.Iterable + public open fun toString (): kotlin.String declared in kotlin.collections.Iterable $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:PersistentImplicitReceiverStack modality:FINAL visibility:public superTypes:[.ImplicitReceiverStack; kotlin.collections.Iterable<.ImplicitReceiverValue<*>>] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.PersistentImplicitReceiverStack CONSTRUCTOR visibility:public <> (stack:kotlin.collections.List<.ImplicitReceiverValue<*>>) returnType:.PersistentImplicitReceiverStack [primary] VALUE_PARAMETER name:stack index:0 type:kotlin.collections.List<.ImplicitReceiverValue<*>> BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .ImplicitReceiverStack' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .ImplicitReceiverStack' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:PersistentImplicitReceiverStack modality:FINAL visibility:public superTypes:[.ImplicitReceiverStack; kotlin.collections.Iterable<.ImplicitReceiverValue<*>>]' PROPERTY name:stack visibility:private modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:stack type:kotlin.collections.List<.ImplicitReceiverValue<*>> visibility:private [final] @@ -153,49 +153,49 @@ FILE fqName: fileName:/ImplicitReceiverStack.kt receiver: GET_VAR ': .PersistentImplicitReceiverStack declared in .PersistentImplicitReceiverStack.' type=.PersistentImplicitReceiverStack origin=null FUN name:iterator visibility:public modality:OPEN <> ($this:.PersistentImplicitReceiverStack) returnType:kotlin.collections.Iterator<.ImplicitReceiverValue<*>> [operator] overridden: - public abstract fun iterator (): kotlin.collections.Iterator<.ImplicitReceiverValue<*>> [fake_override,operator] declared in .ImplicitReceiverStack - public abstract fun iterator (): kotlin.collections.Iterator [operator] declared in kotlin.collections.Iterable + public abstract fun iterator (): kotlin.collections.Iterator<.ImplicitReceiverValue<*>> declared in .ImplicitReceiverStack + public abstract fun iterator (): kotlin.collections.Iterator declared in kotlin.collections.Iterable $this: VALUE_PARAMETER name: type:.PersistentImplicitReceiverStack BLOCK_BODY - RETURN type=kotlin.Nothing from='public open fun iterator (): kotlin.collections.Iterator<.ImplicitReceiverValue<*>> [operator] declared in .PersistentImplicitReceiverStack' - CALL 'public abstract fun iterator (): kotlin.collections.Iterator [operator] declared in kotlin.collections.List' type=kotlin.collections.Iterator<.ImplicitReceiverValue<*>> origin=null + RETURN type=kotlin.Nothing from='public open fun iterator (): kotlin.collections.Iterator<.ImplicitReceiverValue<*>> declared in .PersistentImplicitReceiverStack' + CALL 'public abstract fun iterator (): kotlin.collections.Iterator declared in kotlin.collections.List' type=kotlin.collections.Iterator<.ImplicitReceiverValue<*>> origin=null $this: CALL 'private final fun (): kotlin.collections.List<.ImplicitReceiverValue<*>> declared in .PersistentImplicitReceiverStack' type=kotlin.collections.List<.ImplicitReceiverValue<*>> origin=GET_PROPERTY $this: GET_VAR ': .PersistentImplicitReceiverStack declared in .PersistentImplicitReceiverStack.iterator' type=.PersistentImplicitReceiverStack origin=null FUN name:get visibility:public modality:OPEN <> ($this:.PersistentImplicitReceiverStack, name:kotlin.String?) returnType:.ImplicitReceiverValue<*>? [operator] overridden: - public abstract fun get (name: kotlin.String?): .ImplicitReceiverValue<*>? [operator] declared in .ImplicitReceiverStack + public abstract fun get (name: kotlin.String?): .ImplicitReceiverValue<*>? declared in .ImplicitReceiverStack $this: VALUE_PARAMETER name: type:.PersistentImplicitReceiverStack VALUE_PARAMETER name:name index:0 type:kotlin.String? BLOCK_BODY - RETURN type=kotlin.Nothing from='public open fun get (name: kotlin.String?): .ImplicitReceiverValue<*>? [operator] declared in .PersistentImplicitReceiverStack' + RETURN type=kotlin.Nothing from='public open fun get (name: kotlin.String?): .ImplicitReceiverValue<*>? declared in .PersistentImplicitReceiverStack' CALL 'public final fun lastOrNull (): T of kotlin.collections.CollectionsKt.lastOrNull? declared in kotlin.collections.CollectionsKt' type=.ImplicitReceiverValue<*>? origin=null : .ImplicitReceiverValue<*> $receiver: CALL 'private final fun (): kotlin.collections.List<.ImplicitReceiverValue<*>> declared in .PersistentImplicitReceiverStack' type=kotlin.collections.List<.ImplicitReceiverValue<*>> origin=GET_PROPERTY $this: GET_VAR ': .PersistentImplicitReceiverStack declared in .PersistentImplicitReceiverStack.get' type=.PersistentImplicitReceiverStack origin=null FUN FAKE_OVERRIDE name:forEach visibility:public modality:OPEN <> ($this:kotlin.collections.Iterable, p0:@[FlexibleNullability] java.util.function.Consumer.ImplicitReceiverValue<*>?>?) returnType:kotlin.Unit [fake_override] overridden: - public open fun forEach (p0: @[FlexibleNullability] java.util.function.Consumer.ImplicitReceiverValue<*>?>?): kotlin.Unit [fake_override] declared in .ImplicitReceiverStack + public open fun forEach (p0: @[FlexibleNullability] java.util.function.Consumer.ImplicitReceiverValue<*>?>?): kotlin.Unit declared in .ImplicitReceiverStack $this: VALUE_PARAMETER name: type:kotlin.collections.Iterable VALUE_PARAMETER name:p0 index:0 type:@[FlexibleNullability] java.util.function.Consumer.ImplicitReceiverValue<*>?>? FUN FAKE_OVERRIDE name:spliterator visibility:public modality:OPEN <> ($this:kotlin.collections.Iterable) returnType:@[EnhancedNullability] java.util.Spliterator<@[EnhancedNullability] .ImplicitReceiverValue<*>> [fake_override] overridden: - public open fun spliterator (): @[EnhancedNullability] java.util.Spliterator<@[EnhancedNullability] .ImplicitReceiverValue<*>> [fake_override] declared in .ImplicitReceiverStack + public open fun spliterator (): @[EnhancedNullability] java.util.Spliterator<@[EnhancedNullability] .ImplicitReceiverValue<*>> declared in .ImplicitReceiverStack $this: VALUE_PARAMETER name: type:kotlin.collections.Iterable 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 .ImplicitReceiverStack - public open fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in kotlin.collections.Iterable + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .ImplicitReceiverStack + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.collections.Iterable $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 .ImplicitReceiverStack - public open fun hashCode (): kotlin.Int [fake_override] declared in kotlin.collections.Iterable + public open fun hashCode (): kotlin.Int declared in .ImplicitReceiverStack + public open fun hashCode (): kotlin.Int declared in kotlin.collections.Iterable $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 .ImplicitReceiverStack - public open fun toString (): kotlin.String [fake_override] declared in kotlin.collections.Iterable + public open fun toString (): kotlin.String declared in .ImplicitReceiverStack + public open fun toString (): kotlin.String declared in kotlin.collections.Iterable $this: VALUE_PARAMETER name: type:kotlin.Any FUN name:bar visibility:public modality:FINAL <> (s:kotlin.String) returnType:kotlin.Unit VALUE_PARAMETER name:s index:0 type:kotlin.String @@ -203,7 +203,7 @@ FILE fqName: fileName:/ImplicitReceiverStack.kt FUN name:foo visibility:public modality:FINAL <> (stack:.PersistentImplicitReceiverStack) returnType:kotlin.Unit VALUE_PARAMETER name:stack index:0 type:.PersistentImplicitReceiverStack BLOCK_BODY - CALL 'public final fun forEach (action: kotlin.Function1): kotlin.Unit [inline] declared in kotlin.collections.CollectionsKt' type=kotlin.Unit origin=null + CALL 'public final fun forEach (action: kotlin.Function1): kotlin.Unit declared in kotlin.collections.CollectionsKt' type=kotlin.Unit origin=null : .ImplicitReceiverValue<*> $receiver: GET_VAR 'stack: .PersistentImplicitReceiverStack declared in .foo' type=.PersistentImplicitReceiverStack origin=null action: FUN_EXPR type=kotlin.Function1<.ImplicitReceiverValue<*>, kotlin.Unit> origin=LAMBDA @@ -219,38 +219,38 @@ FILE fqName: fileName:/ImplicitReceiverStack.kt FUN name:box visibility:public modality:FINAL <> () returnType:kotlin.String BLOCK_BODY VAR name:stack type:.PersistentImplicitReceiverStack [val] - CONSTRUCTOR_CALL 'public constructor (stack: kotlin.collections.List<.ImplicitReceiverValue<*>>) [primary] declared in .PersistentImplicitReceiverStack' type=.PersistentImplicitReceiverStack origin=null + CONSTRUCTOR_CALL 'public constructor (stack: kotlin.collections.List<.ImplicitReceiverValue<*>>) declared in .PersistentImplicitReceiverStack' type=.PersistentImplicitReceiverStack origin=null stack: CALL 'public final fun listOf (vararg elements: T of kotlin.collections.CollectionsKt.listOf): kotlin.collections.List declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List<.ImplicitReceiverValue> origin=null : .ImplicitReceiverValue elements: VARARG type=kotlin.Array.ImplicitReceiverValue> varargElementType=.ImplicitReceiverValue - CONSTRUCTOR_CALL 'public constructor (boundSymbol: S of .ImplicitReceiverValue?, type: kotlin.String) [primary] declared in .ImplicitReceiverValue' type=.ImplicitReceiverValue origin=null + CONSTRUCTOR_CALL 'public constructor (boundSymbol: S of .ImplicitReceiverValue?, type: kotlin.String) declared in .ImplicitReceiverValue' type=.ImplicitReceiverValue origin=null : kotlin.Nothing boundSymbol: CONST Null type=kotlin.Nothing? value=null type: CONST String type=kotlin.String value="O" - CONSTRUCTOR_CALL 'public constructor (boundSymbol: S of .ImplicitReceiverValue?, type: kotlin.String) [primary] declared in .ImplicitReceiverValue' type=.ImplicitReceiverValue origin=null + CONSTRUCTOR_CALL 'public constructor (boundSymbol: S of .ImplicitReceiverValue?, type: kotlin.String) declared in .ImplicitReceiverValue' type=.ImplicitReceiverValue origin=null : kotlin.Nothing boundSymbol: CONST Null type=kotlin.Nothing? value=null type: CONST String type=kotlin.String value="K" CALL 'public final fun foo (stack: .PersistentImplicitReceiverStack): kotlin.Unit declared in ' type=kotlin.Unit origin=null - stack: GET_VAR 'val stack: .PersistentImplicitReceiverStack [val] declared in .box' type=.PersistentImplicitReceiverStack origin=null + stack: GET_VAR 'val stack: .PersistentImplicitReceiverStack declared in .box' type=.PersistentImplicitReceiverStack origin=null RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' - CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS + CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS $this: CALL 'public open fun (): kotlin.String declared in .ImplicitReceiverValue' type=kotlin.String origin=GET_PROPERTY $this: CALL 'public final fun first (): T of kotlin.collections.CollectionsKt.first declared in kotlin.collections.CollectionsKt' type=.ImplicitReceiverValue<*> origin=null : .ImplicitReceiverValue<*> - $receiver: GET_VAR 'val stack: .PersistentImplicitReceiverStack [val] declared in .box' type=.PersistentImplicitReceiverStack origin=null + $receiver: GET_VAR 'val stack: .PersistentImplicitReceiverStack declared in .box' type=.PersistentImplicitReceiverStack origin=null other: BLOCK type=kotlin.String? origin=SAFE_CALL VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:.ImplicitReceiverValue<*>? [val] - CALL 'public open fun get (name: kotlin.String?): .ImplicitReceiverValue<*>? [operator] declared in .PersistentImplicitReceiverStack' type=.ImplicitReceiverValue<*>? origin=null - $this: GET_VAR 'val stack: .PersistentImplicitReceiverStack [val] declared in .box' type=.PersistentImplicitReceiverStack origin=null + CALL 'public open fun get (name: kotlin.String?): .ImplicitReceiverValue<*>? declared in .PersistentImplicitReceiverStack' type=.ImplicitReceiverValue<*>? origin=null + $this: GET_VAR 'val stack: .PersistentImplicitReceiverStack declared in .box' type=.PersistentImplicitReceiverStack origin=null name: CONST Null type=kotlin.Nothing? value=null WHEN type=kotlin.String? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_0: .ImplicitReceiverValue<*>? [val] declared in .box' type=.ImplicitReceiverValue<*>? origin=null + arg0: GET_VAR 'val tmp_0: .ImplicitReceiverValue<*>? declared in .box' type=.ImplicitReceiverValue<*>? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public open fun (): kotlin.String declared in .ImplicitReceiverValue' type=kotlin.String origin=GET_PROPERTY - $this: GET_VAR 'val tmp_0: .ImplicitReceiverValue<*>? [val] declared in .box' type=.ImplicitReceiverValue<*>? origin=null + $this: GET_VAR 'val tmp_0: .ImplicitReceiverValue<*>? declared in .box' type=.ImplicitReceiverValue<*>? origin=null diff --git a/compiler/testData/ir/irText/firProblems/ImplicitReceiverStack.ir.txt b/compiler/testData/ir/irText/firProblems/ImplicitReceiverStack.ir.txt index 8f7608552ee..7a96c2f1b86 100644 --- a/compiler/testData/ir/irText/firProblems/ImplicitReceiverStack.ir.txt +++ b/compiler/testData/ir/irText/firProblems/ImplicitReceiverStack.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/ImplicitReceiverStack.kt TYPE_PARAMETER name:E index:0 variance: superTypes:[.SymbolOwner.SymbolOwner>] reified:false 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -20,7 +20,7 @@ FILE fqName: fileName:/ImplicitReceiverStack.kt TYPE_PARAMETER name:E index:0 variance: superTypes:[.SymbolOwner.Symbol>] reified:false 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -39,7 +39,7 @@ FILE fqName: fileName:/ImplicitReceiverStack.kt $this: VALUE_PARAMETER name: type:.ReceiverValue 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -57,7 +57,7 @@ FILE fqName: fileName:/ImplicitReceiverStack.kt VALUE_PARAMETER name:boundSymbol index:0 type:S of .ImplicitReceiverValue? VALUE_PARAMETER name:type index:1 type:kotlin.String BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:ImplicitReceiverValue modality:FINAL visibility:public superTypes:[.ReceiverValue]' PROPERTY name:boundSymbol visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:boundSymbol type:S of .ImplicitReceiverValue? visibility:private [final] @@ -72,7 +72,7 @@ FILE fqName: fileName:/ImplicitReceiverStack.kt receiver: GET_VAR ': .ImplicitReceiverValue.ImplicitReceiverValue> declared in .ImplicitReceiverValue.' type=.ImplicitReceiverValue.ImplicitReceiverValue> origin=null PROPERTY name:type visibility:public modality:OPEN [val] overridden: - public abstract type: kotlin.String [val] + public abstract type: kotlin.String FIELD PROPERTY_BACKING_FIELD name:type type:kotlin.String visibility:private [final] EXPRESSION_BODY GET_VAR 'type: kotlin.String declared in .ImplicitReceiverValue.' type=kotlin.String origin=INITIALIZE_PROPERTY_FROM_PARAMETER @@ -87,29 +87,29 @@ FILE fqName: fileName:/ImplicitReceiverStack.kt receiver: GET_VAR ': .ImplicitReceiverValue.ImplicitReceiverValue> declared in .ImplicitReceiverValue.' type=.ImplicitReceiverValue.ImplicitReceiverValue> 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 [fake_override,operator] declared in .ReceiverValue + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .ReceiverValue $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 .ReceiverValue + public open fun hashCode (): kotlin.Int declared in .ReceiverValue $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 .ReceiverValue + public open fun toString (): kotlin.String declared in .ReceiverValue $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:ImplicitReceiverStack modality:ABSTRACT visibility:public superTypes:[kotlin.collections.Iterable<.ImplicitReceiverValue<*>>] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.ImplicitReceiverStack CONSTRUCTOR visibility:public <> () returnType:.ImplicitReceiverStack [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:ImplicitReceiverStack modality:ABSTRACT visibility:public superTypes:[kotlin.collections.Iterable<.ImplicitReceiverValue<*>>]' FUN name:get visibility:public modality:ABSTRACT <> ($this:.ImplicitReceiverStack, name:kotlin.String?) returnType:.ImplicitReceiverValue<*>? [operator] $this: VALUE_PARAMETER name: type:.ImplicitReceiverStack VALUE_PARAMETER name:name index:0 type:kotlin.String? 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 kotlin.collections.Iterable + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.collections.Iterable $this: VALUE_PARAMETER name: type:kotlin.Any VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:forEach visibility:public modality:OPEN <> ($this:kotlin.collections.Iterable<.ImplicitReceiverValue<*>>, p0:@[FlexibleNullability] java.util.function.Consumer.ImplicitReceiverValue<*>?>?) returnType:kotlin.Unit [fake_override] @@ -119,11 +119,11 @@ FILE fqName: fileName:/ImplicitReceiverStack.kt VALUE_PARAMETER name:p0 index:0 type:@[FlexibleNullability] java.util.function.Consumer.ImplicitReceiverValue<*>?>? 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 kotlin.collections.Iterable + public open fun hashCode (): kotlin.Int declared in kotlin.collections.Iterable $this: VALUE_PARAMETER name: type:kotlin.Any FUN FAKE_OVERRIDE name:iterator visibility:public modality:ABSTRACT <> ($this:kotlin.collections.Iterable<.ImplicitReceiverValue<*>>) returnType:kotlin.collections.Iterator<.ImplicitReceiverValue<*>> [fake_override,operator] overridden: - public abstract fun iterator (): kotlin.collections.Iterator [operator] declared in kotlin.collections.Iterable + public abstract fun iterator (): kotlin.collections.Iterator declared in kotlin.collections.Iterable $this: VALUE_PARAMETER name: type:kotlin.collections.Iterable<.ImplicitReceiverValue<*>> FUN FAKE_OVERRIDE name:spliterator visibility:public modality:OPEN <> ($this:kotlin.collections.Iterable<.ImplicitReceiverValue<*>>) returnType:@[EnhancedNullability] java.util.Spliterator<@[EnhancedNullability] .ImplicitReceiverValue<*>> [fake_override] overridden: @@ -131,14 +131,14 @@ FILE fqName: fileName:/ImplicitReceiverStack.kt $this: VALUE_PARAMETER name: type:kotlin.collections.Iterable<.ImplicitReceiverValue<*>> 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 kotlin.collections.Iterable + public open fun toString (): kotlin.String declared in kotlin.collections.Iterable $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:PersistentImplicitReceiverStack modality:FINAL visibility:public superTypes:[.ImplicitReceiverStack; kotlin.collections.Iterable<.ImplicitReceiverValue<*>>] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.PersistentImplicitReceiverStack CONSTRUCTOR visibility:public <> (stack:kotlin.collections.List<.ImplicitReceiverValue<*>>) returnType:.PersistentImplicitReceiverStack [primary] VALUE_PARAMETER name:stack index:0 type:kotlin.collections.List<.ImplicitReceiverValue<*>> BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .ImplicitReceiverStack' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .ImplicitReceiverStack' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:PersistentImplicitReceiverStack modality:FINAL visibility:public superTypes:[.ImplicitReceiverStack; kotlin.collections.Iterable<.ImplicitReceiverValue<*>>]' PROPERTY name:stack visibility:private modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:stack type:kotlin.collections.List<.ImplicitReceiverValue<*>> visibility:private [final] @@ -153,51 +153,51 @@ FILE fqName: fileName:/ImplicitReceiverStack.kt receiver: GET_VAR ': .PersistentImplicitReceiverStack declared in .PersistentImplicitReceiverStack.' type=.PersistentImplicitReceiverStack origin=null FUN name:iterator visibility:public modality:OPEN <> ($this:.PersistentImplicitReceiverStack) returnType:kotlin.collections.Iterator<.ImplicitReceiverValue<*>> [operator] overridden: - public abstract fun iterator (): kotlin.collections.Iterator<.ImplicitReceiverValue<*>> [fake_override,operator] declared in .ImplicitReceiverStack - public abstract fun iterator (): kotlin.collections.Iterator [operator] declared in kotlin.collections.Iterable + public abstract fun iterator (): kotlin.collections.Iterator<.ImplicitReceiverValue<*>> declared in .ImplicitReceiverStack + public abstract fun iterator (): kotlin.collections.Iterator declared in kotlin.collections.Iterable $this: VALUE_PARAMETER name: type:.PersistentImplicitReceiverStack BLOCK_BODY - RETURN type=kotlin.Nothing from='public open fun iterator (): kotlin.collections.Iterator<.ImplicitReceiverValue<*>> [operator] declared in .PersistentImplicitReceiverStack' - CALL 'public abstract fun iterator (): kotlin.collections.Iterator [operator] declared in kotlin.collections.List' type=kotlin.collections.Iterator<.ImplicitReceiverValue<*>> origin=null + RETURN type=kotlin.Nothing from='public open fun iterator (): kotlin.collections.Iterator<.ImplicitReceiverValue<*>> declared in .PersistentImplicitReceiverStack' + CALL 'public abstract fun iterator (): kotlin.collections.Iterator declared in kotlin.collections.List' type=kotlin.collections.Iterator<.ImplicitReceiverValue<*>> origin=null $this: CALL 'private final fun (): kotlin.collections.List<.ImplicitReceiverValue<*>> declared in .PersistentImplicitReceiverStack' type=kotlin.collections.List<.ImplicitReceiverValue<*>> origin=GET_PROPERTY $this: GET_VAR ': .PersistentImplicitReceiverStack declared in .PersistentImplicitReceiverStack.iterator' type=.PersistentImplicitReceiverStack origin=null FUN name:get visibility:public modality:OPEN <> ($this:.PersistentImplicitReceiverStack, name:kotlin.String?) returnType:.ImplicitReceiverValue<*>? [operator] overridden: - public abstract fun get (name: kotlin.String?): .ImplicitReceiverValue<*>? [operator] declared in .ImplicitReceiverStack + public abstract fun get (name: kotlin.String?): .ImplicitReceiverValue<*>? declared in .ImplicitReceiverStack $this: VALUE_PARAMETER name: type:.PersistentImplicitReceiverStack VALUE_PARAMETER name:name index:0 type:kotlin.String? BLOCK_BODY - RETURN type=kotlin.Nothing from='public open fun get (name: kotlin.String?): .ImplicitReceiverValue<*>? [operator] declared in .PersistentImplicitReceiverStack' + RETURN type=kotlin.Nothing from='public open fun get (name: kotlin.String?): .ImplicitReceiverValue<*>? declared in .PersistentImplicitReceiverStack' CALL 'public final fun lastOrNull (): T of kotlin.collections.CollectionsKt.lastOrNull? declared in kotlin.collections.CollectionsKt' type=.ImplicitReceiverValue<*>? origin=null : .ImplicitReceiverValue<*> $receiver: CALL 'private final fun (): kotlin.collections.List<.ImplicitReceiverValue<*>> declared in .PersistentImplicitReceiverStack' type=kotlin.collections.List<.ImplicitReceiverValue<*>> origin=GET_PROPERTY $this: GET_VAR ': .PersistentImplicitReceiverStack declared in .PersistentImplicitReceiverStack.get' type=.PersistentImplicitReceiverStack 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 [fake_override,operator] declared in .ImplicitReceiverStack - public open fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in kotlin.collections.Iterable + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .ImplicitReceiverStack + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.collections.Iterable $this: VALUE_PARAMETER name: type:kotlin.Any VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:forEach visibility:public modality:OPEN <> ($this:kotlin.collections.Iterable<.ImplicitReceiverValue<*>>, p0:@[FlexibleNullability] java.util.function.Consumer.ImplicitReceiverValue<*>?>?) returnType:kotlin.Unit [fake_override] overridden: - public open fun forEach (p0: @[FlexibleNullability] java.util.function.Consumer.ImplicitReceiverValue<*>?>?): kotlin.Unit [fake_override] declared in .ImplicitReceiverStack + public open fun forEach (p0: @[FlexibleNullability] java.util.function.Consumer.ImplicitReceiverValue<*>?>?): kotlin.Unit declared in .ImplicitReceiverStack public open fun forEach (p0: @[FlexibleNullability] java.util.function.Consumer?): kotlin.Unit declared in kotlin.collections.Iterable $this: VALUE_PARAMETER name: type:kotlin.collections.Iterable<.ImplicitReceiverValue<*>> VALUE_PARAMETER name:p0 index:0 type:@[FlexibleNullability] java.util.function.Consumer.ImplicitReceiverValue<*>?>? 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 .ImplicitReceiverStack - public open fun hashCode (): kotlin.Int [fake_override] declared in kotlin.collections.Iterable + public open fun hashCode (): kotlin.Int declared in .ImplicitReceiverStack + public open fun hashCode (): kotlin.Int declared in kotlin.collections.Iterable $this: VALUE_PARAMETER name: type:kotlin.Any FUN FAKE_OVERRIDE name:spliterator visibility:public modality:OPEN <> ($this:kotlin.collections.Iterable<.ImplicitReceiverValue<*>>) returnType:@[EnhancedNullability] java.util.Spliterator<@[EnhancedNullability] .ImplicitReceiverValue<*>> [fake_override] overridden: - public open fun spliterator (): @[EnhancedNullability] java.util.Spliterator<@[EnhancedNullability] .ImplicitReceiverValue<*>> [fake_override] declared in .ImplicitReceiverStack + public open fun spliterator (): @[EnhancedNullability] java.util.Spliterator<@[EnhancedNullability] .ImplicitReceiverValue<*>> declared in .ImplicitReceiverStack public open fun spliterator (): @[EnhancedNullability] java.util.Spliterator<@[EnhancedNullability] T of kotlin.collections.Iterable> declared in kotlin.collections.Iterable $this: VALUE_PARAMETER name: type:kotlin.collections.Iterable<.ImplicitReceiverValue<*>> 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 .ImplicitReceiverStack - public open fun toString (): kotlin.String [fake_override] declared in kotlin.collections.Iterable + public open fun toString (): kotlin.String declared in .ImplicitReceiverStack + public open fun toString (): kotlin.String declared in kotlin.collections.Iterable $this: VALUE_PARAMETER name: type:kotlin.Any FUN name:bar visibility:public modality:FINAL <> (s:kotlin.String) returnType:kotlin.Unit VALUE_PARAMETER name:s index:0 type:kotlin.String @@ -205,7 +205,7 @@ FILE fqName: fileName:/ImplicitReceiverStack.kt FUN name:foo visibility:public modality:FINAL <> (stack:.PersistentImplicitReceiverStack) returnType:kotlin.Unit VALUE_PARAMETER name:stack index:0 type:.PersistentImplicitReceiverStack BLOCK_BODY - CALL 'public final fun forEach (action: kotlin.Function1): kotlin.Unit [inline] declared in kotlin.collections.CollectionsKt' type=kotlin.Unit origin=null + CALL 'public final fun forEach (action: kotlin.Function1): kotlin.Unit declared in kotlin.collections.CollectionsKt' type=kotlin.Unit origin=null : .ImplicitReceiverValue<*> $receiver: GET_VAR 'stack: .PersistentImplicitReceiverStack declared in .foo' type=.PersistentImplicitReceiverStack origin=null action: FUN_EXPR type=kotlin.Function1<.ImplicitReceiverValue<*>, kotlin.Unit> origin=LAMBDA @@ -221,38 +221,38 @@ FILE fqName: fileName:/ImplicitReceiverStack.kt FUN name:box visibility:public modality:FINAL <> () returnType:kotlin.String BLOCK_BODY VAR name:stack type:.PersistentImplicitReceiverStack [val] - CONSTRUCTOR_CALL 'public constructor (stack: kotlin.collections.List<.ImplicitReceiverValue<*>>) [primary] declared in .PersistentImplicitReceiverStack' type=.PersistentImplicitReceiverStack origin=null + CONSTRUCTOR_CALL 'public constructor (stack: kotlin.collections.List<.ImplicitReceiverValue<*>>) declared in .PersistentImplicitReceiverStack' type=.PersistentImplicitReceiverStack origin=null stack: CALL 'public final fun listOf (vararg elements: T of kotlin.collections.CollectionsKt.listOf): kotlin.collections.List declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List<.ImplicitReceiverValue> origin=null : .ImplicitReceiverValue elements: VARARG type=kotlin.Array.ImplicitReceiverValue> varargElementType=.ImplicitReceiverValue - CONSTRUCTOR_CALL 'public constructor (boundSymbol: S of .ImplicitReceiverValue?, type: kotlin.String) [primary] declared in .ImplicitReceiverValue' type=.ImplicitReceiverValue origin=null + CONSTRUCTOR_CALL 'public constructor (boundSymbol: S of .ImplicitReceiverValue?, type: kotlin.String) declared in .ImplicitReceiverValue' type=.ImplicitReceiverValue origin=null : kotlin.Nothing boundSymbol: CONST Null type=kotlin.Nothing? value=null type: CONST String type=kotlin.String value="O" - CONSTRUCTOR_CALL 'public constructor (boundSymbol: S of .ImplicitReceiverValue?, type: kotlin.String) [primary] declared in .ImplicitReceiverValue' type=.ImplicitReceiverValue origin=null + CONSTRUCTOR_CALL 'public constructor (boundSymbol: S of .ImplicitReceiverValue?, type: kotlin.String) declared in .ImplicitReceiverValue' type=.ImplicitReceiverValue origin=null : kotlin.Nothing boundSymbol: CONST Null type=kotlin.Nothing? value=null type: CONST String type=kotlin.String value="K" CALL 'public final fun foo (stack: .PersistentImplicitReceiverStack): kotlin.Unit declared in ' type=kotlin.Unit origin=null - stack: GET_VAR 'val stack: .PersistentImplicitReceiverStack [val] declared in .box' type=.PersistentImplicitReceiverStack origin=null + stack: GET_VAR 'val stack: .PersistentImplicitReceiverStack declared in .box' type=.PersistentImplicitReceiverStack origin=null RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' - CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS + CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS $this: CALL 'public open fun (): kotlin.String declared in .ImplicitReceiverValue' type=kotlin.String origin=GET_PROPERTY $this: CALL 'public final fun first (): T of kotlin.collections.CollectionsKt.first declared in kotlin.collections.CollectionsKt' type=.ImplicitReceiverValue<*> origin=null : .ImplicitReceiverValue<*> - $receiver: GET_VAR 'val stack: .PersistentImplicitReceiverStack [val] declared in .box' type=.PersistentImplicitReceiverStack origin=null + $receiver: GET_VAR 'val stack: .PersistentImplicitReceiverStack declared in .box' type=.PersistentImplicitReceiverStack origin=null other: BLOCK type=kotlin.String? origin=SAFE_CALL VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:.ImplicitReceiverValue<*>? [val] - CALL 'public open fun get (name: kotlin.String?): .ImplicitReceiverValue<*>? [operator] declared in .PersistentImplicitReceiverStack' type=.ImplicitReceiverValue<*>? origin=GET_ARRAY_ELEMENT - $this: GET_VAR 'val stack: .PersistentImplicitReceiverStack [val] declared in .box' type=.PersistentImplicitReceiverStack origin=null + CALL 'public open fun get (name: kotlin.String?): .ImplicitReceiverValue<*>? declared in .PersistentImplicitReceiverStack' type=.ImplicitReceiverValue<*>? origin=GET_ARRAY_ELEMENT + $this: GET_VAR 'val stack: .PersistentImplicitReceiverStack declared in .box' type=.PersistentImplicitReceiverStack origin=null name: CONST Null type=kotlin.Nothing? value=null WHEN type=kotlin.String? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_0: .ImplicitReceiverValue<*>? [val] declared in .box' type=.ImplicitReceiverValue<*>? origin=null + arg0: GET_VAR 'val tmp_0: .ImplicitReceiverValue<*>? declared in .box' type=.ImplicitReceiverValue<*>? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public open fun (): kotlin.String declared in .ImplicitReceiverValue' type=kotlin.String origin=GET_PROPERTY - $this: GET_VAR 'val tmp_0: .ImplicitReceiverValue<*>? [val] declared in .box' type=.ImplicitReceiverValue<*>? origin=null + $this: GET_VAR 'val tmp_0: .ImplicitReceiverValue<*>? declared in .box' type=.ImplicitReceiverValue<*>? origin=null diff --git a/compiler/testData/ir/irText/firProblems/InnerClassInAnonymous.fir.ir.txt b/compiler/testData/ir/irText/firProblems/InnerClassInAnonymous.fir.ir.txt index 2d63fb2e022..80d336b7edb 100644 --- a/compiler/testData/ir/irText/firProblems/InnerClassInAnonymous.fir.ir.txt +++ b/compiler/testData/ir/irText/firProblems/InnerClassInAnonymous.fir.ir.txt @@ -7,7 +7,7 @@ FILE fqName: fileName:/InnerClassInAnonymous.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.box. CONSTRUCTOR visibility:public <> () returnType:.box. [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name: modality:FINAL visibility:local superTypes:[kotlin.Any]' PROPERTY name:end visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:end type:kotlin.String visibility:private [final] @@ -25,7 +25,7 @@ FILE fqName: fileName:/InnerClassInAnonymous.kt BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun foo (): kotlin.String declared in .box.' CALL 'public final fun bar (): kotlin.String declared in .box..Some' type=kotlin.String origin=null - $this: CONSTRUCTOR_CALL 'public constructor (s: kotlin.String) [primary] declared in .box..Some' type=.box..Some origin=null + $this: CONSTRUCTOR_CALL 'public constructor (s: kotlin.String) declared in .box..Some' type=.box..Some origin=null $outer: GET_VAR ': .box. declared in .box..foo' type=.box. origin=null s: CONST String type=kotlin.String value="O" CLASS CLASS name:Some modality:FINAL visibility:local [inner] superTypes:[.box..Base] @@ -34,7 +34,7 @@ FILE fqName: fileName:/InnerClassInAnonymous.kt $outer: VALUE_PARAMETER name: type:.box. VALUE_PARAMETER name:s index:0 type:kotlin.String BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor (s: kotlin.String) [primary] declared in .box..Base' + DELEGATING_CONSTRUCTOR_CALL 'public constructor (s: kotlin.String) declared in .box..Base' $this: GET_VAR ': .box. declared in .box.' type=.box. origin=null s: GET_VAR 's: kotlin.String declared in .box..Some.' type=kotlin.String origin=null INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Some modality:FINAL visibility:local [inner] superTypes:[.box..Base]' @@ -42,14 +42,14 @@ FILE fqName: fileName:/InnerClassInAnonymous.kt $this: VALUE_PARAMETER name: type:.box..Some BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun bar (): kotlin.String declared in .box..Some' - CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun (): kotlin.String [fake_override] declared in .box..Some' type=kotlin.String origin=GET_PROPERTY + CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun (): kotlin.String declared in .box..Some' type=kotlin.String origin=GET_PROPERTY $this: GET_VAR ': .box..Some declared in .box..Some.bar' type=.box..Some origin=null other: CALL 'public final fun (): kotlin.String declared in .box.' type=kotlin.String origin=GET_PROPERTY $this: GET_VAR ': .box. declared in .box.' type=.box. origin=null PROPERTY FAKE_OVERRIDE name:s visibility:public modality:FINAL [fake_override,val] overridden: - public final s: kotlin.String [val] + public final s: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.box..Base) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:s visibility:public modality:FINAL [fake_override,val] overridden: @@ -57,16 +57,16 @@ FILE fqName: fileName:/InnerClassInAnonymous.kt $this: VALUE_PARAMETER name: type:.box..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 [fake_override,operator] declared in .box..Base + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .box..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 .box..Base + public open fun hashCode (): kotlin.Int declared in .box..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 .box..Base + public open fun toString (): kotlin.String declared in .box..Base $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:Base modality:OPEN visibility:local [inner] superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.box..Base @@ -74,7 +74,7 @@ FILE fqName: fileName:/InnerClassInAnonymous.kt $outer: VALUE_PARAMETER name: type:.box. VALUE_PARAMETER name:s index:0 type:kotlin.String BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Base modality:OPEN visibility:local [inner] superTypes:[kotlin.Any]' PROPERTY name:s visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:s type:kotlin.String visibility:private [final] @@ -89,7 +89,7 @@ FILE fqName: fileName:/InnerClassInAnonymous.kt receiver: GET_VAR ': .box..Base declared in .box..Base.' type=.box..Base 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -102,7 +102,7 @@ FILE fqName: fileName:/InnerClassInAnonymous.kt $this: VALUE_PARAMETER name: type: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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -113,7 +113,7 @@ FILE fqName: fileName:/InnerClassInAnonymous.kt overridden: public open fun toString (): kotlin.String declared in kotlin.Any $this: VALUE_PARAMETER name: type:kotlin.Any - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .box.' type=.box. origin=OBJECT_LITERAL + CONSTRUCTOR_CALL 'public constructor () declared in .box.' type=.box. origin=OBJECT_LITERAL RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' CALL 'public final fun foo (): kotlin.String declared in .box.' type=kotlin.String origin=null - $this: GET_VAR 'val obj: .box. [val] declared in .box' type=.box. origin=null + $this: GET_VAR 'val obj: .box. declared in .box' type=.box. origin=null diff --git a/compiler/testData/ir/irText/firProblems/InnerClassInAnonymous.ir.txt b/compiler/testData/ir/irText/firProblems/InnerClassInAnonymous.ir.txt index 6bfa6747ae0..70994e2f0e4 100644 --- a/compiler/testData/ir/irText/firProblems/InnerClassInAnonymous.ir.txt +++ b/compiler/testData/ir/irText/firProblems/InnerClassInAnonymous.ir.txt @@ -7,7 +7,7 @@ FILE fqName: fileName:/InnerClassInAnonymous.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.box. CONSTRUCTOR visibility:public <> () returnType:.box. [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name: modality:FINAL visibility:local superTypes:[kotlin.Any]' PROPERTY name:end visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:end type:kotlin.String visibility:private [final] @@ -25,7 +25,7 @@ FILE fqName: fileName:/InnerClassInAnonymous.kt BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun foo (): kotlin.String declared in .box.' CALL 'public final fun bar (): kotlin.String declared in .box..Some' type=kotlin.String origin=null - $this: CONSTRUCTOR_CALL 'public constructor (s: kotlin.String) [primary] declared in .box..Some' type=.box..Some origin=null + $this: CONSTRUCTOR_CALL 'public constructor (s: kotlin.String) declared in .box..Some' type=.box..Some origin=null $outer: GET_VAR ': .box. declared in .box..foo' type=.box. origin=null s: CONST String type=kotlin.String value="O" CLASS CLASS name:Some modality:FINAL visibility:local [inner] superTypes:[.box..Base] @@ -34,7 +34,7 @@ FILE fqName: fileName:/InnerClassInAnonymous.kt $outer: VALUE_PARAMETER name: type:.box. VALUE_PARAMETER name:s index:0 type:kotlin.String BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor (s: kotlin.String) [primary] declared in .box..Base' + DELEGATING_CONSTRUCTOR_CALL 'public constructor (s: kotlin.String) declared in .box..Base' $this: GET_VAR ': .box. declared in .box..Some.' type=.box. origin=null s: GET_VAR 's: kotlin.String declared in .box..Some.' type=kotlin.String origin=null INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Some modality:FINAL visibility:local [inner] superTypes:[.box..Base]' @@ -42,14 +42,14 @@ FILE fqName: fileName:/InnerClassInAnonymous.kt $this: VALUE_PARAMETER name: type:.box..Some BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun bar (): kotlin.String declared in .box..Some' - CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun (): kotlin.String [fake_override] declared in .box..Some' type=kotlin.String origin=GET_PROPERTY + CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun (): kotlin.String declared in .box..Some' type=kotlin.String origin=GET_PROPERTY $this: GET_VAR ': .box..Some declared in .box..Some.bar' type=.box..Some origin=null other: CALL 'public final fun (): kotlin.String declared in .box.' type=kotlin.String origin=GET_PROPERTY $this: GET_VAR ': .box. declared in .box.' type=.box. origin=null PROPERTY FAKE_OVERRIDE name:s visibility:public modality:FINAL [fake_override,val] overridden: - public final s: kotlin.String [val] + public final s: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.box..Base) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:s visibility:public modality:FINAL [fake_override,val] overridden: @@ -57,16 +57,16 @@ FILE fqName: fileName:/InnerClassInAnonymous.kt $this: VALUE_PARAMETER name: type:.box..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 [fake_override,operator] declared in .box..Base + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .box..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 .box..Base + public open fun hashCode (): kotlin.Int declared in .box..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 .box..Base + public open fun toString (): kotlin.String declared in .box..Base $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:Base modality:OPEN visibility:local [inner] superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.box..Base @@ -74,7 +74,7 @@ FILE fqName: fileName:/InnerClassInAnonymous.kt $outer: VALUE_PARAMETER name: type:.box. VALUE_PARAMETER name:s index:0 type:kotlin.String BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Base modality:OPEN visibility:local [inner] superTypes:[kotlin.Any]' PROPERTY name:s visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:s type:kotlin.String visibility:private [final] @@ -89,7 +89,7 @@ FILE fqName: fileName:/InnerClassInAnonymous.kt receiver: GET_VAR ': .box..Base declared in .box..Base.' type=.box..Base 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -102,7 +102,7 @@ FILE fqName: fileName:/InnerClassInAnonymous.kt $this: VALUE_PARAMETER name: type: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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -113,7 +113,7 @@ FILE fqName: fileName:/InnerClassInAnonymous.kt overridden: public open fun toString (): kotlin.String declared in kotlin.Any $this: VALUE_PARAMETER name: type:kotlin.Any - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .box.' type=.box. origin=OBJECT_LITERAL + CONSTRUCTOR_CALL 'public constructor () declared in .box.' type=.box. origin=OBJECT_LITERAL RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' CALL 'public final fun foo (): kotlin.String declared in .box.' type=kotlin.String origin=null - $this: GET_VAR 'val obj: .box. [val] declared in .box' type=.box. origin=null + $this: GET_VAR 'val obj: .box. declared in .box' type=.box. origin=null diff --git a/compiler/testData/ir/irText/firProblems/LocalSuspendFun.ir.txt b/compiler/testData/ir/irText/firProblems/LocalSuspendFun.ir.txt index 0f6f119254d..cf002a43b69 100644 --- a/compiler/testData/ir/irText/firProblems/LocalSuspendFun.ir.txt +++ b/compiler/testData/ir/irText/firProblems/LocalSuspendFun.ir.txt @@ -16,5 +16,5 @@ FILE fqName: fileName:/LocalSuspendFun.kt VALUE_PARAMETER name:callback index:0 type:kotlin.Function0.useMemo> BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun useMemo (callback: kotlin.Function0.useMemo>): T of .useMemo declared in ' - CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=T of .useMemo origin=INVOKE + CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=T of .useMemo origin=INVOKE $this: GET_VAR 'callback: kotlin.Function0.useMemo> declared in .useMemo' type=kotlin.Function0.useMemo> origin=VARIABLE_AS_FUNCTION diff --git a/compiler/testData/ir/irText/firProblems/Modality.fir.ir.txt b/compiler/testData/ir/irText/firProblems/Modality.fir.ir.txt index 4811a584b08..0f3764319be 100644 --- a/compiler/testData/ir/irText/firProblems/Modality.fir.ir.txt +++ b/compiler/testData/ir/irText/firProblems/Modality.fir.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/Modality.kt TYPE_PARAMETER name:T index:0 variance:out superTypes:[.DeclarationDescriptorNonRoot] reified:false 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -19,14 +19,14 @@ FILE fqName: fileName:/Modality.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.ResolutionPart CONSTRUCTOR visibility:public <> () returnType:.ResolutionPart [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:ResolutionPart modality:ABSTRACT visibility:public superTypes:[kotlin.Any]' FUN name:process visibility:public modality:ABSTRACT <> ($this:.ResolutionPart, $receiver:.KotlinResolutionCandidate) returnType:kotlin.String $this: VALUE_PARAMETER name: type:.ResolutionPart $receiver: VALUE_PARAMETER name: type:.KotlinResolutionCandidate 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -42,7 +42,7 @@ FILE fqName: fileName:/Modality.kt CONSTRUCTOR visibility:public <> (resolvedCall:.Atom) returnType:.KotlinResolutionCandidate [primary] VALUE_PARAMETER name:resolvedCall index:0 type:.Atom BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:KotlinResolutionCandidate modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:resolvedCall visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:resolvedCall type:.Atom visibility:private [final] @@ -57,7 +57,7 @@ FILE fqName: fileName:/Modality.kt receiver: GET_VAR ': .KotlinResolutionCandidate declared in .KotlinResolutionCandidate.' type=.KotlinResolutionCandidate 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -73,7 +73,7 @@ FILE fqName: fileName:/Modality.kt CONSTRUCTOR visibility:public <> (candidateDescriptor:.CallableDescriptor) returnType:.Atom [primary] VALUE_PARAMETER name:candidateDescriptor index:0 type:.CallableDescriptor BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Atom modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:candidateDescriptor visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:candidateDescriptor type:.CallableDescriptor visibility:private [final] @@ -88,7 +88,7 @@ FILE fqName: fileName:/Modality.kt receiver: GET_VAR ': .Atom declared in .Atom.' type=.Atom 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -103,7 +103,7 @@ FILE fqName: fileName:/Modality.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Owner CONSTRUCTOR visibility:private <> () returnType:.Owner [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .ResolutionPart' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .ResolutionPart' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:Owner modality:FINAL visibility:public superTypes:[.ResolutionPart]' FUN name:process visibility:public modality:OPEN <> ($this:.Owner, $receiver:.KotlinResolutionCandidate) returnType:kotlin.String overridden: @@ -120,12 +120,12 @@ FILE fqName: fileName:/Modality.kt if: WHEN type=kotlin.Boolean origin=ANDAND BRANCH if: TYPE_OP type=kotlin.Boolean origin=INSTANCEOF typeOperand=.MemberDescriptor - GET_VAR 'val candidateDescriptor: .CallableDescriptor [val] declared in .Owner.process' type=.CallableDescriptor origin=null - then: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ + GET_VAR 'val candidateDescriptor: .CallableDescriptor declared in .Owner.process' type=.CallableDescriptor origin=null + then: CALL 'public final fun not (): kotlin.Boolean 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: CALL 'public abstract fun getModality (): @[FlexibleNullability] .Modality? declared in .MemberDescriptor' type=@[FlexibleNullability] .Modality? origin=GET_PROPERTY $this: TYPE_OP type=.MemberDescriptor origin=IMPLICIT_CAST typeOperand=.MemberDescriptor - GET_VAR 'val candidateDescriptor: .CallableDescriptor [val] declared in .Owner.process' type=.CallableDescriptor origin=null + GET_VAR 'val candidateDescriptor: .CallableDescriptor declared in .Owner.process' type=.CallableDescriptor origin=null arg1: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true @@ -136,33 +136,33 @@ FILE fqName: fileName:/Modality.kt CONST String type=kotlin.String value="FAIL" 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 .ResolutionPart + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .ResolutionPart $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 .ResolutionPart + public open fun hashCode (): kotlin.Int declared in .ResolutionPart $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 .ResolutionPart + public open fun toString (): kotlin.String declared in .ResolutionPart $this: VALUE_PARAMETER name: type:kotlin.Any CLASS OBJECT name:Final modality:FINAL visibility:public superTypes:[.Modality] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Final CONSTRUCTOR visibility:private <> () returnType:.Final [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:Final modality:FINAL visibility:public superTypes:[.Modality]' 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 .Modality + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Modality $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 .Modality + public open fun hashCode (): kotlin.Int declared in .Modality $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 .Modality + public open fun toString (): kotlin.String declared in .Modality $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/firProblems/Modality.ir.txt b/compiler/testData/ir/irText/firProblems/Modality.ir.txt index 8a2bdc6e5af..f929dbb3db6 100644 --- a/compiler/testData/ir/irText/firProblems/Modality.ir.txt +++ b/compiler/testData/ir/irText/firProblems/Modality.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/Modality.kt TYPE_PARAMETER name:T index:0 variance:out superTypes:[.DeclarationDescriptorNonRoot] reified:false 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -19,14 +19,14 @@ FILE fqName: fileName:/Modality.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.ResolutionPart CONSTRUCTOR visibility:public <> () returnType:.ResolutionPart [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:ResolutionPart modality:ABSTRACT visibility:public superTypes:[kotlin.Any]' FUN name:process visibility:public modality:ABSTRACT <> ($this:.ResolutionPart, $receiver:.KotlinResolutionCandidate) returnType:kotlin.String $this: VALUE_PARAMETER name: type:.ResolutionPart $receiver: VALUE_PARAMETER name: type:.KotlinResolutionCandidate 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -42,7 +42,7 @@ FILE fqName: fileName:/Modality.kt CONSTRUCTOR visibility:public <> (resolvedCall:.Atom) returnType:.KotlinResolutionCandidate [primary] VALUE_PARAMETER name:resolvedCall index:0 type:.Atom BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:KotlinResolutionCandidate modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:resolvedCall visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:resolvedCall type:.Atom visibility:private [final] @@ -57,7 +57,7 @@ FILE fqName: fileName:/Modality.kt receiver: GET_VAR ': .KotlinResolutionCandidate declared in .KotlinResolutionCandidate.' type=.KotlinResolutionCandidate 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -73,7 +73,7 @@ FILE fqName: fileName:/Modality.kt CONSTRUCTOR visibility:public <> (candidateDescriptor:.CallableDescriptor) returnType:.Atom [primary] VALUE_PARAMETER name:candidateDescriptor index:0 type:.CallableDescriptor BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Atom modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:candidateDescriptor visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:candidateDescriptor type:.CallableDescriptor visibility:private [final] @@ -88,7 +88,7 @@ FILE fqName: fileName:/Modality.kt receiver: GET_VAR ': .Atom declared in .Atom.' type=.Atom 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -103,7 +103,7 @@ FILE fqName: fileName:/Modality.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Owner CONSTRUCTOR visibility:private <> () returnType:.Owner [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .ResolutionPart' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .ResolutionPart' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:Owner modality:FINAL visibility:public superTypes:[.ResolutionPart]' FUN name:process visibility:public modality:OPEN <> ($this:.Owner, $receiver:.KotlinResolutionCandidate) returnType:kotlin.String overridden: @@ -120,12 +120,12 @@ FILE fqName: fileName:/Modality.kt if: WHEN type=kotlin.Boolean origin=ANDAND BRANCH if: TYPE_OP type=kotlin.Boolean origin=INSTANCEOF typeOperand=.MemberDescriptor - GET_VAR 'val candidateDescriptor: .CallableDescriptor [val] declared in .Owner.process' type=.CallableDescriptor origin=null - then: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ + GET_VAR 'val candidateDescriptor: .CallableDescriptor declared in .Owner.process' type=.CallableDescriptor origin=null + then: CALL 'public final fun not (): kotlin.Boolean 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: CALL 'public abstract fun getModality (): @[FlexibleNullability] .Modality? declared in .MemberDescriptor' type=@[FlexibleNullability] .Modality? origin=GET_PROPERTY $this: TYPE_OP type=.MemberDescriptor origin=IMPLICIT_CAST typeOperand=.MemberDescriptor - GET_VAR 'val candidateDescriptor: .CallableDescriptor [val] declared in .Owner.process' type=.CallableDescriptor origin=null + GET_VAR 'val candidateDescriptor: .CallableDescriptor declared in .Owner.process' type=.CallableDescriptor origin=null arg1: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true @@ -137,33 +137,33 @@ FILE fqName: fileName:/Modality.kt CONST String type=kotlin.String value="FAIL" 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 .ResolutionPart + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .ResolutionPart $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 .ResolutionPart + public open fun hashCode (): kotlin.Int declared in .ResolutionPart $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 .ResolutionPart + public open fun toString (): kotlin.String declared in .ResolutionPart $this: VALUE_PARAMETER name: type:kotlin.Any CLASS OBJECT name:Final modality:FINAL visibility:public superTypes:[.Modality] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Final CONSTRUCTOR visibility:private <> () returnType:.Final [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:Final modality:FINAL visibility:public superTypes:[.Modality]' 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 .Modality + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Modality $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 .Modality + public open fun hashCode (): kotlin.Int declared in .Modality $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 .Modality + public open fun toString (): kotlin.String declared in .Modality $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/firProblems/MultiList.fir.ir.txt b/compiler/testData/ir/irText/firProblems/MultiList.fir.ir.txt index 2afd01149ce..a0a9906569b 100644 --- a/compiler/testData/ir/irText/firProblems/MultiList.fir.ir.txt +++ b/compiler/testData/ir/irText/firProblems/MultiList.fir.ir.txt @@ -5,7 +5,7 @@ FILE fqName: fileName:/MultiList.kt CONSTRUCTOR visibility:public <> (value:T of .Some) returnType:.Some.Some> [primary] VALUE_PARAMETER name:value index:0 type:T of .Some BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Some modality:FINAL visibility:public [data] superTypes:[kotlin.Any]' PROPERTY name:value visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:value type:T of .Some visibility:private [final] @@ -21,7 +21,7 @@ FILE fqName: fileName:/MultiList.kt FUN GENERATED_DATA_CLASS_MEMBER name:component1 visibility:public modality:FINAL <> ($this:.Some.Some>) returnType:T of .Some [operator] $this: VALUE_PARAMETER name: type:.Some.Some> BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component1 (): T of .Some [operator] declared in .Some' + RETURN type=kotlin.Nothing from='public final fun component1 (): T of .Some declared in .Some' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:value type:T of .Some visibility:private [final]' type=T of .Some origin=null receiver: GET_VAR ': .Some.Some> declared in .Some.component1' type=.Some.Some> origin=null FUN GENERATED_DATA_CLASS_MEMBER name:copy visibility:public modality:FINAL <> ($this:.Some.Some>, value:T of .Some) returnType:.Some.Some> @@ -32,12 +32,12 @@ FILE fqName: fileName:/MultiList.kt receiver: GET_VAR ': .Some.Some> declared in .Some.copy' type=.Some.Some> origin=null BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun copy (value: T of .Some): .Some.Some> declared in .Some' - CONSTRUCTOR_CALL 'public constructor (value: T of .Some) [primary] declared in .Some' type=.Some.Some> origin=null + CONSTRUCTOR_CALL 'public constructor (value: T of .Some) declared in .Some' type=.Some.Some> origin=null : kotlin.Any value: GET_VAR 'value: T of .Some declared in .Some.copy' type=T of .Some origin=null FUN GENERATED_DATA_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:.Some.Some>, other:kotlin.Any?) returnType:kotlin.Boolean [operator] overridden: - public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any $this: VALUE_PARAMETER name: type:.Some.Some> VALUE_PARAMETER name:other index:0 type:kotlin.Any? BLOCK_BODY @@ -46,28 +46,28 @@ FILE fqName: fileName:/MultiList.kt 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 ': .Some.Some> declared in .Some.equals' type=.Some.Some> origin=null arg1: GET_VAR 'other: kotlin.Any? declared in .Some.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Some' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Some' CONST Boolean type=kotlin.Boolean value=true WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=.Some.Some> GET_VAR 'other: kotlin.Any? declared in .Some.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Some' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Some' CONST Boolean type=kotlin.Boolean value=false VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:.Some.Some> [val] TYPE_OP type=.Some.Some> origin=CAST typeOperand=.Some.Some> GET_VAR 'other: kotlin.Any? declared in .Some.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 + if: CALL 'public final fun not (): kotlin.Boolean 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:value type:T of .Some visibility:private [final]' type=T of .Some origin=null receiver: GET_VAR ': .Some.Some> declared in .Some.equals' type=.Some.Some> origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:value type:T of .Some visibility:private [final]' type=T of .Some origin=null - receiver: GET_VAR 'val tmp_0: .Some.Some> [val] declared in .Some.equals' type=.Some.Some> origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Some' + receiver: GET_VAR 'val tmp_0: .Some.Some> declared in .Some.equals' type=.Some.Some> origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Some' CONST Boolean type=kotlin.Boolean value=false - RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Some' + RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Some' CONST Boolean type=kotlin.Boolean value=true FUN GENERATED_DATA_CLASS_MEMBER name:hashCode visibility:public modality:OPEN <> ($this:.Some.Some>) returnType:kotlin.Int overridden: @@ -103,7 +103,7 @@ FILE fqName: fileName:/MultiList.kt TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false FUN FAKE_OVERRIDE name:contains visibility:public modality:ABSTRACT <> ($this:kotlin.collections.List, element:.Some.MyList>) returnType:kotlin.Boolean [fake_override,operator] overridden: - public abstract fun contains (element: E of kotlin.collections.List): kotlin.Boolean [operator] declared in kotlin.collections.List + public abstract fun contains (element: E of kotlin.collections.List): kotlin.Boolean declared in kotlin.collections.List $this: VALUE_PARAMETER name: type:kotlin.collections.List VALUE_PARAMETER name:element index:0 type:.Some.MyList> FUN FAKE_OVERRIDE name:containsAll visibility:public modality:ABSTRACT <> ($this:kotlin.collections.List, elements:kotlin.collections.Collection<.Some.MyList>>) returnType:kotlin.Boolean [fake_override] @@ -113,7 +113,7 @@ FILE fqName: fileName:/MultiList.kt VALUE_PARAMETER name:elements index:0 type:kotlin.collections.Collection<.Some.MyList>> FUN FAKE_OVERRIDE name:get visibility:public modality:ABSTRACT <> ($this:kotlin.collections.List, index:kotlin.Int) returnType:.Some.MyList> [fake_override,operator] overridden: - public abstract fun get (index: kotlin.Int): E of kotlin.collections.List [operator] declared in kotlin.collections.List + public abstract fun get (index: kotlin.Int): E of kotlin.collections.List declared in kotlin.collections.List $this: VALUE_PARAMETER name: type:kotlin.collections.List VALUE_PARAMETER name:index index:0 type:kotlin.Int FUN FAKE_OVERRIDE name:indexOf visibility:public modality:ABSTRACT <> ($this:kotlin.collections.List, element:.Some.MyList>) returnType:kotlin.Int [fake_override] @@ -127,7 +127,7 @@ FILE fqName: fileName:/MultiList.kt $this: VALUE_PARAMETER name: type:kotlin.collections.List FUN FAKE_OVERRIDE name:iterator visibility:public modality:ABSTRACT <> ($this:kotlin.collections.List) returnType:kotlin.collections.Iterator<.Some.MyList>> [fake_override,operator] overridden: - public abstract fun iterator (): kotlin.collections.Iterator [operator] declared in kotlin.collections.List + public abstract fun iterator (): kotlin.collections.Iterator declared in kotlin.collections.List $this: VALUE_PARAMETER name: type:kotlin.collections.List FUN FAKE_OVERRIDE name:lastIndexOf visibility:public modality:ABSTRACT <> ($this:kotlin.collections.List, element:.Some.MyList>) returnType:kotlin.Int [fake_override] overridden: @@ -151,7 +151,7 @@ FILE fqName: fileName:/MultiList.kt VALUE_PARAMETER name:toIndex index:1 type:kotlin.Int PROPERTY FAKE_OVERRIDE name:size visibility:public modality:ABSTRACT [fake_override,val] overridden: - public abstract size: kotlin.Int [val] + public abstract size: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:ABSTRACT <> ($this:kotlin.collections.List) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:size visibility:public modality:ABSTRACT [fake_override,val] overridden: @@ -163,28 +163,28 @@ FILE fqName: fileName:/MultiList.kt $this: VALUE_PARAMETER name: type:kotlin.collections.List 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 kotlin.collections.List + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.collections.List $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 kotlin.collections.List + public open fun hashCode (): kotlin.Int declared in kotlin.collections.List $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 kotlin.collections.List + public open fun toString (): kotlin.String declared in kotlin.collections.List $this: VALUE_PARAMETER name: type:kotlin.Any FUN FAKE_OVERRIDE name:stream visibility:public modality:OPEN <> ($this:kotlin.collections.Collection) returnType:@[EnhancedNullability] java.util.stream.Stream<@[EnhancedNullability] .Some.MyList>> [fake_override] overridden: - public open fun stream (): @[EnhancedNullability] java.util.stream.Stream<@[EnhancedNullability] E of kotlin.collections.List> [fake_override] declared in kotlin.collections.List + public open fun stream (): @[EnhancedNullability] java.util.stream.Stream<@[EnhancedNullability] E of kotlin.collections.List> declared in kotlin.collections.List $this: VALUE_PARAMETER name: type:kotlin.collections.Collection FUN FAKE_OVERRIDE name:parallelStream visibility:public modality:OPEN <> ($this:kotlin.collections.Collection) returnType:@[EnhancedNullability] java.util.stream.Stream<@[EnhancedNullability] .Some.MyList>> [fake_override] overridden: - public open fun parallelStream (): @[EnhancedNullability] java.util.stream.Stream<@[EnhancedNullability] E of kotlin.collections.List> [fake_override] declared in kotlin.collections.List + public open fun parallelStream (): @[EnhancedNullability] java.util.stream.Stream<@[EnhancedNullability] E of kotlin.collections.List> declared in kotlin.collections.List $this: VALUE_PARAMETER name: type:kotlin.collections.Collection FUN FAKE_OVERRIDE name:forEach visibility:public modality:OPEN <> ($this:kotlin.collections.Iterable, p0:@[FlexibleNullability] java.util.function.Consumer.Some.MyList>?>?) returnType:kotlin.Unit [fake_override] overridden: - public open fun forEach (p0: @[FlexibleNullability] java.util.function.Consumer?): kotlin.Unit [fake_override] declared in kotlin.collections.List + public open fun forEach (p0: @[FlexibleNullability] java.util.function.Consumer?): kotlin.Unit declared in kotlin.collections.List $this: VALUE_PARAMETER name: type:kotlin.collections.Iterable VALUE_PARAMETER name:p0 index:0 type:@[FlexibleNullability] java.util.function.Consumer.Some.MyList>?>? CLASS CLASS name:SomeList modality:OPEN visibility:public superTypes:[.MyList.SomeList>; java.util.ArrayList<.Some.SomeList>>] @@ -197,17 +197,17 @@ FILE fqName: fileName:/MultiList.kt INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:SomeList modality:OPEN visibility:public superTypes:[.MyList.SomeList>; java.util.ArrayList<.Some.SomeList>>]' FUN FAKE_OVERRIDE name:contains visibility:public modality:OPEN <> ($this:java.util.ArrayList, p0:@[EnhancedNullability] .Some.SomeList>) returnType:kotlin.Boolean [fake_override,operator] overridden: - public open fun contains (p0: @[EnhancedNullability] E of java.util.ArrayList): kotlin.Boolean [operator] declared in java.util.ArrayList + public open fun contains (p0: @[EnhancedNullability] E of java.util.ArrayList): kotlin.Boolean declared in java.util.ArrayList $this: VALUE_PARAMETER name: type:java.util.ArrayList VALUE_PARAMETER name:p0 index:0 type:@[EnhancedNullability] .Some.SomeList> FUN FAKE_OVERRIDE name:containsAll visibility:public modality:OPEN <> ($this:java.util.AbstractCollection, p0:kotlin.collections.Collection<@[FlexibleNullability] .Some.SomeList>?>) returnType:kotlin.Boolean [fake_override] overridden: - public open fun containsAll (p0: kotlin.collections.Collection<@[FlexibleNullability] E of java.util.ArrayList?>): kotlin.Boolean [fake_override] declared in java.util.ArrayList + public open fun containsAll (p0: kotlin.collections.Collection<@[FlexibleNullability] E of java.util.ArrayList?>): kotlin.Boolean declared in java.util.ArrayList $this: VALUE_PARAMETER name: type:java.util.AbstractCollection VALUE_PARAMETER name:p0 index:0 type:kotlin.collections.Collection<@[FlexibleNullability] .Some.SomeList>?> FUN FAKE_OVERRIDE name:get visibility:public modality:OPEN <> ($this:java.util.ArrayList, p0:kotlin.Int) returnType:@[EnhancedNullability] .Some.SomeList> [fake_override,operator] overridden: - public open fun get (p0: kotlin.Int): @[EnhancedNullability] E of java.util.ArrayList [operator] declared in java.util.ArrayList + public open fun get (p0: kotlin.Int): @[EnhancedNullability] E of java.util.ArrayList declared in java.util.ArrayList $this: VALUE_PARAMETER name: type:java.util.ArrayList VALUE_PARAMETER name:p0 index:0 type:kotlin.Int FUN FAKE_OVERRIDE name:indexOf visibility:public modality:OPEN <> ($this:java.util.ArrayList, p0:@[EnhancedNullability] .Some.SomeList>) returnType:kotlin.Int [fake_override] @@ -221,7 +221,7 @@ FILE fqName: fileName:/MultiList.kt $this: VALUE_PARAMETER name: type:java.util.ArrayList FUN FAKE_OVERRIDE name:iterator visibility:public modality:OPEN <> ($this:java.util.ArrayList) returnType:@[EnhancedNullability] kotlin.collections.MutableIterator<@[EnhancedNullability] .Some.SomeList>> [fake_override,operator] overridden: - public open fun iterator (): @[EnhancedNullability] kotlin.collections.MutableIterator<@[EnhancedNullability] E of java.util.ArrayList> [operator] declared in java.util.ArrayList + public open fun iterator (): @[EnhancedNullability] kotlin.collections.MutableIterator<@[EnhancedNullability] E of java.util.ArrayList> declared in java.util.ArrayList $this: VALUE_PARAMETER name: type:java.util.ArrayList FUN FAKE_OVERRIDE name:lastIndexOf visibility:public modality:OPEN <> ($this:java.util.ArrayList, p0:@[EnhancedNullability] .Some.SomeList>) returnType:kotlin.Int [fake_override] overridden: @@ -245,7 +245,7 @@ FILE fqName: fileName:/MultiList.kt VALUE_PARAMETER name:p1 index:1 type:kotlin.Int PROPERTY FAKE_OVERRIDE name:size visibility:public modality:OPEN [fake_override,val] overridden: - public open size: kotlin.Int [val] + public open size: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:OPEN <> ($this:java.util.ArrayList) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:size visibility:public modality:OPEN [fake_override,val] overridden: @@ -314,7 +314,7 @@ FILE fqName: fileName:/MultiList.kt $this: VALUE_PARAMETER name: type:java.util.ArrayList FUN FAKE_OVERRIDE name:set visibility:public modality:OPEN <> ($this:java.util.ArrayList, p0:kotlin.Int, p1:@[EnhancedNullability] .Some.SomeList>) returnType:@[EnhancedNullability] .Some.SomeList> [fake_override,operator] overridden: - public open fun set (p0: kotlin.Int, p1: @[EnhancedNullability] E of java.util.ArrayList): @[EnhancedNullability] E of java.util.ArrayList [operator] declared in java.util.ArrayList + public open fun set (p0: kotlin.Int, p1: @[EnhancedNullability] E of java.util.ArrayList): @[EnhancedNullability] E of java.util.ArrayList declared in java.util.ArrayList $this: VALUE_PARAMETER name: type:java.util.ArrayList VALUE_PARAMETER name:p0 index:0 type:kotlin.Int VALUE_PARAMETER name:p1 index:1 type:@[EnhancedNullability] .Some.SomeList> @@ -324,16 +324,16 @@ FILE fqName: fileName:/MultiList.kt $this: VALUE_PARAMETER name: type:java.util.ArrayList FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:java.util.AbstractList, p0:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public open fun equals (p0: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in java.util.ArrayList + public open fun equals (p0: kotlin.Any?): kotlin.Boolean declared in java.util.ArrayList $this: VALUE_PARAMETER name: type:java.util.AbstractList VALUE_PARAMETER name:p0 index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:java.util.AbstractList) returnType:kotlin.Int [fake_override] overridden: - public open fun hashCode (): kotlin.Int [fake_override] declared in java.util.ArrayList + public open fun hashCode (): kotlin.Int declared in java.util.ArrayList $this: VALUE_PARAMETER name: type:java.util.AbstractList FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:java.util.AbstractCollection) returnType:@[EnhancedNullability] kotlin.String [fake_override] overridden: - public open fun toString (): @[EnhancedNullability] kotlin.String [fake_override] declared in java.util.ArrayList + public open fun toString (): @[EnhancedNullability] kotlin.String declared in java.util.ArrayList $this: VALUE_PARAMETER name: type:java.util.AbstractCollection FUN FAKE_OVERRIDE name:removeIf visibility:public modality:OPEN <> ($this:java.util.ArrayList, p0:@[EnhancedNullability] java.util.function.Predicate.Some.SomeList>>) returnType:kotlin.Boolean [fake_override] overridden: @@ -342,11 +342,11 @@ FILE fqName: fileName:/MultiList.kt VALUE_PARAMETER name:p0 index:0 type:@[EnhancedNullability] java.util.function.Predicate.Some.SomeList>> FUN FAKE_OVERRIDE name:stream visibility:public modality:OPEN <> ($this:kotlin.collections.Collection) returnType:@[EnhancedNullability] java.util.stream.Stream<@[EnhancedNullability] .Some.SomeList>> [fake_override] overridden: - public open fun stream (): @[EnhancedNullability] java.util.stream.Stream<@[EnhancedNullability] .Some.MyList>> [fake_override] declared in .MyList + public open fun stream (): @[EnhancedNullability] java.util.stream.Stream<@[EnhancedNullability] .Some.MyList>> declared in .MyList $this: VALUE_PARAMETER name: type:kotlin.collections.Collection FUN FAKE_OVERRIDE name:parallelStream visibility:public modality:OPEN <> ($this:kotlin.collections.Collection) returnType:@[EnhancedNullability] java.util.stream.Stream<@[EnhancedNullability] .Some.SomeList>> [fake_override] overridden: - public open fun parallelStream (): @[EnhancedNullability] java.util.stream.Stream<@[EnhancedNullability] .Some.MyList>> [fake_override] declared in .MyList + public open fun parallelStream (): @[EnhancedNullability] java.util.stream.Stream<@[EnhancedNullability] .Some.MyList>> declared in .MyList $this: VALUE_PARAMETER name: type:kotlin.collections.Collection FUN FAKE_OVERRIDE name:forEach visibility:public modality:OPEN <> ($this:java.util.ArrayList, p0:@[FlexibleNullability] java.util.function.Consumer.Some.SomeList>?>?) returnType:kotlin.Unit [fake_override] overridden: @@ -379,200 +379,200 @@ FILE fqName: fileName:/MultiList.kt VALUE_PARAMETER name:p1 index:1 type:kotlin.Int FUN FAKE_OVERRIDE name:removeAt visibility:public modality:OPEN <> ($this:java.util.ArrayList, p0:kotlin.Int) returnType:@[EnhancedNullability] .Some.SomeList> [fake_override,operator] overridden: - public open fun removeAt (p0: kotlin.Int): @[EnhancedNullability] E of java.util.ArrayList [operator] declared in java.util.ArrayList + public open fun removeAt (p0: kotlin.Int): @[EnhancedNullability] E of java.util.ArrayList declared in java.util.ArrayList $this: VALUE_PARAMETER name: type:java.util.ArrayList VALUE_PARAMETER name:p0 index:0 type:kotlin.Int CLASS CLASS name:FinalList modality:FINAL visibility:public superTypes:[.SomeList] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.FinalList CONSTRUCTOR visibility:public <> () returnType:.FinalList [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .SomeList' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .SomeList' : kotlin.String INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:FinalList modality:FINAL visibility:public superTypes:[.SomeList]' FUN FAKE_OVERRIDE name:contains visibility:public modality:OPEN <> ($this:java.util.ArrayList, p0:@[EnhancedNullability] .Some) returnType:kotlin.Boolean [fake_override,operator] overridden: - public open fun contains (p0: @[EnhancedNullability] .Some.SomeList>): kotlin.Boolean [fake_override,operator] declared in .SomeList + public open fun contains (p0: @[EnhancedNullability] .Some.SomeList>): kotlin.Boolean declared in .SomeList $this: VALUE_PARAMETER name: type:java.util.ArrayList VALUE_PARAMETER name:p0 index:0 type:@[EnhancedNullability] .Some FUN FAKE_OVERRIDE name:containsAll visibility:public modality:OPEN <> ($this:java.util.AbstractCollection, p0:kotlin.collections.Collection<@[FlexibleNullability] .Some?>) returnType:kotlin.Boolean [fake_override] overridden: - public open fun containsAll (p0: kotlin.collections.Collection<@[FlexibleNullability] .Some.SomeList>?>): kotlin.Boolean [fake_override] declared in .SomeList + public open fun containsAll (p0: kotlin.collections.Collection<@[FlexibleNullability] .Some.SomeList>?>): kotlin.Boolean declared in .SomeList $this: VALUE_PARAMETER name: type:java.util.AbstractCollection VALUE_PARAMETER name:p0 index:0 type:kotlin.collections.Collection<@[FlexibleNullability] .Some?> FUN FAKE_OVERRIDE name:get visibility:public modality:OPEN <> ($this:java.util.ArrayList, p0:kotlin.Int) returnType:@[EnhancedNullability] .Some [fake_override,operator] overridden: - public open fun get (p0: kotlin.Int): @[EnhancedNullability] .Some.SomeList> [fake_override,operator] declared in .SomeList + public open fun get (p0: kotlin.Int): @[EnhancedNullability] .Some.SomeList> declared in .SomeList $this: VALUE_PARAMETER name: type:java.util.ArrayList VALUE_PARAMETER name:p0 index:0 type:kotlin.Int FUN FAKE_OVERRIDE name:indexOf visibility:public modality:OPEN <> ($this:java.util.ArrayList, p0:@[EnhancedNullability] .Some) returnType:kotlin.Int [fake_override] overridden: - public open fun indexOf (p0: @[EnhancedNullability] .Some.SomeList>): kotlin.Int [fake_override] declared in .SomeList + public open fun indexOf (p0: @[EnhancedNullability] .Some.SomeList>): kotlin.Int declared in .SomeList $this: VALUE_PARAMETER name: type:java.util.ArrayList VALUE_PARAMETER name:p0 index:0 type:@[EnhancedNullability] .Some FUN FAKE_OVERRIDE name:isEmpty visibility:public modality:OPEN <> ($this:java.util.ArrayList) returnType:kotlin.Boolean [fake_override] overridden: - public open fun isEmpty (): kotlin.Boolean [fake_override] declared in .SomeList + public open fun isEmpty (): kotlin.Boolean declared in .SomeList $this: VALUE_PARAMETER name: type:java.util.ArrayList FUN FAKE_OVERRIDE name:iterator visibility:public modality:OPEN <> ($this:java.util.ArrayList) returnType:@[EnhancedNullability] kotlin.collections.MutableIterator<@[EnhancedNullability] .Some> [fake_override,operator] overridden: - public open fun iterator (): @[EnhancedNullability] kotlin.collections.MutableIterator<@[EnhancedNullability] .Some.SomeList>> [fake_override,operator] declared in .SomeList + public open fun iterator (): @[EnhancedNullability] kotlin.collections.MutableIterator<@[EnhancedNullability] .Some.SomeList>> declared in .SomeList $this: VALUE_PARAMETER name: type:java.util.ArrayList FUN FAKE_OVERRIDE name:lastIndexOf visibility:public modality:OPEN <> ($this:java.util.ArrayList, p0:@[EnhancedNullability] .Some) returnType:kotlin.Int [fake_override] overridden: - public open fun lastIndexOf (p0: @[EnhancedNullability] .Some.SomeList>): kotlin.Int [fake_override] declared in .SomeList + public open fun lastIndexOf (p0: @[EnhancedNullability] .Some.SomeList>): kotlin.Int declared in .SomeList $this: VALUE_PARAMETER name: type:java.util.ArrayList VALUE_PARAMETER name:p0 index:0 type:@[EnhancedNullability] .Some FUN FAKE_OVERRIDE name:listIterator visibility:public modality:OPEN <> ($this:java.util.ArrayList) returnType:@[EnhancedNullability] kotlin.collections.MutableListIterator<@[EnhancedNullability] .Some> [fake_override] overridden: - public open fun listIterator (): @[EnhancedNullability] kotlin.collections.MutableListIterator<@[EnhancedNullability] .Some.SomeList>> [fake_override] declared in .SomeList + public open fun listIterator (): @[EnhancedNullability] kotlin.collections.MutableListIterator<@[EnhancedNullability] .Some.SomeList>> declared in .SomeList $this: VALUE_PARAMETER name: type:java.util.ArrayList FUN FAKE_OVERRIDE name:listIterator visibility:public modality:OPEN <> ($this:java.util.ArrayList, p0:kotlin.Int) returnType:@[EnhancedNullability] kotlin.collections.MutableListIterator<@[EnhancedNullability] .Some> [fake_override] overridden: - public open fun listIterator (p0: kotlin.Int): @[EnhancedNullability] kotlin.collections.MutableListIterator<@[EnhancedNullability] .Some.SomeList>> [fake_override] declared in .SomeList + public open fun listIterator (p0: kotlin.Int): @[EnhancedNullability] kotlin.collections.MutableListIterator<@[EnhancedNullability] .Some.SomeList>> declared in .SomeList $this: VALUE_PARAMETER name: type:java.util.ArrayList VALUE_PARAMETER name:p0 index:0 type:kotlin.Int FUN FAKE_OVERRIDE name:subList visibility:public modality:OPEN <> ($this:java.util.ArrayList, p0:kotlin.Int, p1:kotlin.Int) returnType:@[EnhancedNullability] kotlin.collections.MutableList<@[EnhancedNullability] .Some> [fake_override] overridden: - public open fun subList (p0: kotlin.Int, p1: kotlin.Int): @[EnhancedNullability] kotlin.collections.MutableList<@[EnhancedNullability] .Some.SomeList>> [fake_override] declared in .SomeList + public open fun subList (p0: kotlin.Int, p1: kotlin.Int): @[EnhancedNullability] kotlin.collections.MutableList<@[EnhancedNullability] .Some.SomeList>> declared in .SomeList $this: VALUE_PARAMETER name: type:java.util.ArrayList VALUE_PARAMETER name:p0 index:0 type:kotlin.Int VALUE_PARAMETER name:p1 index:1 type:kotlin.Int PROPERTY FAKE_OVERRIDE name:size visibility:public modality:OPEN [fake_override,val] overridden: - public open size: kotlin.Int [fake_override,val] + public open size: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:OPEN <> ($this:java.util.ArrayList) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:size visibility:public modality:OPEN [fake_override,val] overridden: - public open fun (): kotlin.Int [fake_override] declared in .SomeList + public open fun (): kotlin.Int declared in .SomeList $this: VALUE_PARAMETER name: type:java.util.ArrayList FUN FAKE_OVERRIDE name:toArray visibility:public modality:OPEN <> ($this:java.util.ArrayList) returnType:@[FlexibleNullability] kotlin.Array? [fake_override] overridden: - public open fun toArray (): @[FlexibleNullability] kotlin.Array? [fake_override] declared in .SomeList + public open fun toArray (): @[FlexibleNullability] kotlin.Array? declared in .SomeList $this: VALUE_PARAMETER name: type:java.util.ArrayList FUN FAKE_OVERRIDE name:toArray visibility:public modality:OPEN ($this:java.util.ArrayList, p0:@[FlexibleNullability] kotlin.Array.FinalList.toArray?>?) returnType:@[FlexibleNullability] kotlin.Array.FinalList.toArray?>? [fake_override] overridden: - public open fun toArray (p0: @[FlexibleNullability] kotlin.Array.SomeList.toArray?>?): @[FlexibleNullability] kotlin.Array.SomeList.toArray?>? [fake_override] declared in .SomeList + public open fun toArray (p0: @[FlexibleNullability] kotlin.Array.SomeList.toArray?>?): @[FlexibleNullability] kotlin.Array.SomeList.toArray?>? declared in .SomeList TYPE_PARAMETER name:T index:0 variance: superTypes:[@[FlexibleNullability] kotlin.Any?] reified:false $this: VALUE_PARAMETER name: type:java.util.ArrayList VALUE_PARAMETER name:p0 index:0 type:@[FlexibleNullability] kotlin.Array.FinalList.toArray?>? FUN FAKE_OVERRIDE name:add visibility:public modality:OPEN <> ($this:java.util.ArrayList, p0:@[EnhancedNullability] .Some) returnType:kotlin.Boolean [fake_override] overridden: - public open fun add (p0: @[EnhancedNullability] .Some.SomeList>): kotlin.Boolean [fake_override] declared in .SomeList + public open fun add (p0: @[EnhancedNullability] .Some.SomeList>): kotlin.Boolean declared in .SomeList $this: VALUE_PARAMETER name: type:java.util.ArrayList VALUE_PARAMETER name:p0 index:0 type:@[EnhancedNullability] .Some FUN FAKE_OVERRIDE name:add visibility:public modality:OPEN <> ($this:java.util.ArrayList, p0:kotlin.Int, p1:@[EnhancedNullability] .Some) returnType:kotlin.Unit [fake_override] overridden: - public open fun add (p0: kotlin.Int, p1: @[EnhancedNullability] .Some.SomeList>): kotlin.Unit [fake_override] declared in .SomeList + public open fun add (p0: kotlin.Int, p1: @[EnhancedNullability] .Some.SomeList>): kotlin.Unit declared in .SomeList $this: VALUE_PARAMETER name: type:java.util.ArrayList VALUE_PARAMETER name:p0 index:0 type:kotlin.Int VALUE_PARAMETER name:p1 index:1 type:@[EnhancedNullability] .Some FUN FAKE_OVERRIDE name:remove visibility:public modality:OPEN <> ($this:java.util.ArrayList, p0:@[EnhancedNullability] .Some) returnType:kotlin.Boolean [fake_override] overridden: - public open fun remove (p0: @[EnhancedNullability] .Some.SomeList>): kotlin.Boolean [fake_override] declared in .SomeList + public open fun remove (p0: @[EnhancedNullability] .Some.SomeList>): kotlin.Boolean declared in .SomeList $this: VALUE_PARAMETER name: type:java.util.ArrayList VALUE_PARAMETER name:p0 index:0 type:@[EnhancedNullability] .Some FUN FAKE_OVERRIDE name:addAll visibility:public modality:OPEN <> ($this:java.util.ArrayList, p0:@[EnhancedNullability] kotlin.collections.Collection.Some>) returnType:kotlin.Boolean [fake_override] overridden: - public open fun addAll (p0: @[EnhancedNullability] kotlin.collections.Collection.Some.SomeList>>): kotlin.Boolean [fake_override] declared in .SomeList + public open fun addAll (p0: @[EnhancedNullability] kotlin.collections.Collection.Some.SomeList>>): kotlin.Boolean declared in .SomeList $this: VALUE_PARAMETER name: type:java.util.ArrayList VALUE_PARAMETER name:p0 index:0 type:@[EnhancedNullability] kotlin.collections.Collection.Some> FUN FAKE_OVERRIDE name:addAll visibility:public modality:OPEN <> ($this:java.util.ArrayList, p0:kotlin.Int, p1:@[EnhancedNullability] kotlin.collections.Collection.Some>) returnType:kotlin.Boolean [fake_override] overridden: - public open fun addAll (p0: kotlin.Int, p1: @[EnhancedNullability] kotlin.collections.Collection.Some.SomeList>>): kotlin.Boolean [fake_override] declared in .SomeList + public open fun addAll (p0: kotlin.Int, p1: @[EnhancedNullability] kotlin.collections.Collection.Some.SomeList>>): kotlin.Boolean declared in .SomeList $this: VALUE_PARAMETER name: type:java.util.ArrayList VALUE_PARAMETER name:p0 index:0 type:kotlin.Int VALUE_PARAMETER name:p1 index:1 type:@[EnhancedNullability] kotlin.collections.Collection.Some> FUN FAKE_OVERRIDE name:removeAll visibility:public modality:OPEN <> ($this:java.util.ArrayList, p0:kotlin.collections.Collection<@[EnhancedNullability] .Some>) returnType:kotlin.Boolean [fake_override] overridden: - public open fun removeAll (p0: kotlin.collections.Collection<@[EnhancedNullability] .Some.SomeList>>): kotlin.Boolean [fake_override] declared in .SomeList + public open fun removeAll (p0: kotlin.collections.Collection<@[EnhancedNullability] .Some.SomeList>>): kotlin.Boolean declared in .SomeList $this: VALUE_PARAMETER name: type:java.util.ArrayList VALUE_PARAMETER name:p0 index:0 type:kotlin.collections.Collection<@[EnhancedNullability] .Some> FUN FAKE_OVERRIDE name:retainAll visibility:public modality:OPEN <> ($this:java.util.ArrayList, p0:kotlin.collections.Collection<@[EnhancedNullability] .Some>) returnType:kotlin.Boolean [fake_override] overridden: - public open fun retainAll (p0: kotlin.collections.Collection<@[EnhancedNullability] .Some.SomeList>>): kotlin.Boolean [fake_override] declared in .SomeList + public open fun retainAll (p0: kotlin.collections.Collection<@[EnhancedNullability] .Some.SomeList>>): kotlin.Boolean declared in .SomeList $this: VALUE_PARAMETER name: type:java.util.ArrayList VALUE_PARAMETER name:p0 index:0 type:kotlin.collections.Collection<@[EnhancedNullability] .Some> FUN FAKE_OVERRIDE name:replaceAll visibility:public modality:OPEN <> ($this:java.util.ArrayList, p0:@[EnhancedNullability] java.util.function.UnaryOperator<@[EnhancedNullability] .Some>) returnType:kotlin.Unit [fake_override] overridden: - public open fun replaceAll (p0: @[EnhancedNullability] java.util.function.UnaryOperator<@[EnhancedNullability] .Some.SomeList>>): kotlin.Unit [fake_override] declared in .SomeList + public open fun replaceAll (p0: @[EnhancedNullability] java.util.function.UnaryOperator<@[EnhancedNullability] .Some.SomeList>>): kotlin.Unit declared in .SomeList $this: VALUE_PARAMETER name: type:java.util.ArrayList VALUE_PARAMETER name:p0 index:0 type:@[EnhancedNullability] java.util.function.UnaryOperator<@[EnhancedNullability] .Some> FUN FAKE_OVERRIDE name:sort visibility:public modality:OPEN <> ($this:java.util.ArrayList, p0:@[FlexibleNullability] java.util.Comparator.Some?>?) returnType:kotlin.Unit [fake_override] overridden: - public open fun sort (p0: @[FlexibleNullability] java.util.Comparator.Some.SomeList>?>?): kotlin.Unit [fake_override] declared in .SomeList + public open fun sort (p0: @[FlexibleNullability] java.util.Comparator.Some.SomeList>?>?): kotlin.Unit declared in .SomeList $this: VALUE_PARAMETER name: type:java.util.ArrayList VALUE_PARAMETER name:p0 index:0 type:@[FlexibleNullability] java.util.Comparator.Some?>? FUN FAKE_OVERRIDE name:clear visibility:public modality:OPEN <> ($this:java.util.ArrayList) returnType:kotlin.Unit [fake_override] overridden: - public open fun clear (): kotlin.Unit [fake_override] declared in .SomeList + public open fun clear (): kotlin.Unit declared in .SomeList $this: VALUE_PARAMETER name: type:java.util.ArrayList FUN FAKE_OVERRIDE name:set visibility:public modality:OPEN <> ($this:java.util.ArrayList, p0:kotlin.Int, p1:@[EnhancedNullability] .Some) returnType:@[EnhancedNullability] .Some [fake_override,operator] overridden: - public open fun set (p0: kotlin.Int, p1: @[EnhancedNullability] .Some.SomeList>): @[EnhancedNullability] .Some.SomeList> [fake_override,operator] declared in .SomeList + public open fun set (p0: kotlin.Int, p1: @[EnhancedNullability] .Some.SomeList>): @[EnhancedNullability] .Some.SomeList> declared in .SomeList $this: VALUE_PARAMETER name: type:java.util.ArrayList VALUE_PARAMETER name:p0 index:0 type:kotlin.Int VALUE_PARAMETER name:p1 index:1 type:@[EnhancedNullability] .Some FUN FAKE_OVERRIDE name:spliterator visibility:public modality:OPEN <> ($this:java.util.ArrayList) returnType:@[EnhancedNullability] java.util.Spliterator<@[FlexibleNullability] .Some?> [fake_override] overridden: - public open fun spliterator (): @[EnhancedNullability] java.util.Spliterator<@[FlexibleNullability] .Some.SomeList>?> [fake_override] declared in .SomeList + public open fun spliterator (): @[EnhancedNullability] java.util.Spliterator<@[FlexibleNullability] .Some.SomeList>?> declared in .SomeList $this: VALUE_PARAMETER name: type:java.util.ArrayList FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:java.util.AbstractList, p0:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public open fun equals (p0: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .SomeList + public open fun equals (p0: kotlin.Any?): kotlin.Boolean declared in .SomeList $this: VALUE_PARAMETER name: type:java.util.AbstractList VALUE_PARAMETER name:p0 index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:hashCode visibility:public modality:OPEN <> ($this:java.util.AbstractList) returnType:kotlin.Int [fake_override] overridden: - public open fun hashCode (): kotlin.Int [fake_override] declared in .SomeList + public open fun hashCode (): kotlin.Int declared in .SomeList $this: VALUE_PARAMETER name: type:java.util.AbstractList FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:java.util.AbstractCollection) returnType:@[EnhancedNullability] kotlin.String [fake_override] overridden: - public open fun toString (): @[EnhancedNullability] kotlin.String [fake_override] declared in .SomeList + public open fun toString (): @[EnhancedNullability] kotlin.String declared in .SomeList $this: VALUE_PARAMETER name: type:java.util.AbstractCollection FUN FAKE_OVERRIDE name:removeIf visibility:public modality:OPEN <> ($this:java.util.ArrayList, p0:@[EnhancedNullability] java.util.function.Predicate.Some>) returnType:kotlin.Boolean [fake_override] overridden: - public open fun removeIf (p0: @[EnhancedNullability] java.util.function.Predicate.Some.SomeList>>): kotlin.Boolean [fake_override] declared in .SomeList + public open fun removeIf (p0: @[EnhancedNullability] java.util.function.Predicate.Some.SomeList>>): kotlin.Boolean declared in .SomeList $this: VALUE_PARAMETER name: type:java.util.ArrayList VALUE_PARAMETER name:p0 index:0 type:@[EnhancedNullability] java.util.function.Predicate.Some> FUN FAKE_OVERRIDE name:stream visibility:public modality:OPEN <> ($this:kotlin.collections.Collection) returnType:@[EnhancedNullability] java.util.stream.Stream<@[EnhancedNullability] .Some> [fake_override] overridden: - public open fun stream (): @[EnhancedNullability] java.util.stream.Stream<@[EnhancedNullability] .Some.SomeList>> [fake_override] declared in .SomeList + public open fun stream (): @[EnhancedNullability] java.util.stream.Stream<@[EnhancedNullability] .Some.SomeList>> declared in .SomeList $this: VALUE_PARAMETER name: type:kotlin.collections.Collection FUN FAKE_OVERRIDE name:parallelStream visibility:public modality:OPEN <> ($this:kotlin.collections.Collection) returnType:@[EnhancedNullability] java.util.stream.Stream<@[EnhancedNullability] .Some> [fake_override] overridden: - public open fun parallelStream (): @[EnhancedNullability] java.util.stream.Stream<@[EnhancedNullability] .Some.SomeList>> [fake_override] declared in .SomeList + public open fun parallelStream (): @[EnhancedNullability] java.util.stream.Stream<@[EnhancedNullability] .Some.SomeList>> declared in .SomeList $this: VALUE_PARAMETER name: type:kotlin.collections.Collection FUN FAKE_OVERRIDE name:forEach visibility:public modality:OPEN <> ($this:java.util.ArrayList, p0:@[FlexibleNullability] java.util.function.Consumer.Some?>?) returnType:kotlin.Unit [fake_override] overridden: - public open fun forEach (p0: @[FlexibleNullability] java.util.function.Consumer.Some.SomeList>?>?): kotlin.Unit [fake_override] declared in .SomeList + public open fun forEach (p0: @[FlexibleNullability] java.util.function.Consumer.Some.SomeList>?>?): kotlin.Unit declared in .SomeList $this: VALUE_PARAMETER name: type:java.util.ArrayList VALUE_PARAMETER name:p0 index:0 type:@[FlexibleNullability] java.util.function.Consumer.Some?>? FUN FAKE_OVERRIDE name:elementData visibility:public/*package*/ modality:OPEN <> ($this:java.util.ArrayList, p0:kotlin.Int) returnType:@[FlexibleNullability] .Some? [fake_override] overridden: - public/*package*/ open fun elementData (p0: kotlin.Int): @[FlexibleNullability] .Some.SomeList>? [fake_override] declared in .SomeList + public/*package*/ open fun elementData (p0: kotlin.Int): @[FlexibleNullability] .Some.SomeList>? declared in .SomeList $this: VALUE_PARAMETER name: type:java.util.ArrayList VALUE_PARAMETER name:p0 index:0 type:kotlin.Int FUN FAKE_OVERRIDE name:trimToSize visibility:public modality:OPEN <> ($this:java.util.ArrayList) returnType:kotlin.Unit [fake_override] overridden: - public open fun trimToSize (): kotlin.Unit [fake_override] declared in .SomeList + public open fun trimToSize (): kotlin.Unit declared in .SomeList $this: VALUE_PARAMETER name: type:java.util.ArrayList FUN FAKE_OVERRIDE name:ensureCapacity visibility:public modality:OPEN <> ($this:java.util.ArrayList, p0:kotlin.Int) returnType:kotlin.Unit [fake_override] overridden: - public open fun ensureCapacity (p0: kotlin.Int): kotlin.Unit [fake_override] declared in .SomeList + public open fun ensureCapacity (p0: kotlin.Int): kotlin.Unit declared in .SomeList $this: VALUE_PARAMETER name: type:java.util.ArrayList VALUE_PARAMETER name:p0 index:0 type:kotlin.Int FUN FAKE_OVERRIDE name:clone visibility:public modality:OPEN <> ($this:java.util.ArrayList) returnType:@[EnhancedNullability] kotlin.Any [fake_override] overridden: - public open fun clone (): @[EnhancedNullability] kotlin.Any [fake_override] declared in .SomeList + public open fun clone (): @[EnhancedNullability] kotlin.Any declared in .SomeList $this: VALUE_PARAMETER name: type:java.util.ArrayList FUN FAKE_OVERRIDE name:removeRange visibility:protected/*protected and package*/ modality:OPEN <> ($this:java.util.ArrayList, p0:kotlin.Int, p1:kotlin.Int) returnType:kotlin.Unit [fake_override] overridden: - protected/*protected and package*/ open fun removeRange (p0: kotlin.Int, p1: kotlin.Int): kotlin.Unit [fake_override] declared in .SomeList + protected/*protected and package*/ open fun removeRange (p0: kotlin.Int, p1: kotlin.Int): kotlin.Unit declared in .SomeList $this: VALUE_PARAMETER name: type:java.util.ArrayList VALUE_PARAMETER name:p0 index:0 type:kotlin.Int VALUE_PARAMETER name:p1 index:1 type:kotlin.Int FUN FAKE_OVERRIDE name:removeAt visibility:public modality:OPEN <> ($this:java.util.ArrayList, p0:kotlin.Int) returnType:@[EnhancedNullability] .Some [fake_override,operator] overridden: - public open fun removeAt (p0: kotlin.Int): @[EnhancedNullability] .Some.SomeList> [fake_override,operator] declared in .SomeList + public open fun removeAt (p0: kotlin.Int): @[EnhancedNullability] .Some.SomeList> declared in .SomeList $this: VALUE_PARAMETER name: type:java.util.ArrayList VALUE_PARAMETER name:p0 index:0 type:kotlin.Int diff --git a/compiler/testData/ir/irText/firProblems/MultiList.ir.txt b/compiler/testData/ir/irText/firProblems/MultiList.ir.txt index 5fb5efa0b39..4a1e175761e 100644 --- a/compiler/testData/ir/irText/firProblems/MultiList.ir.txt +++ b/compiler/testData/ir/irText/firProblems/MultiList.ir.txt @@ -5,7 +5,7 @@ FILE fqName: fileName:/MultiList.kt CONSTRUCTOR visibility:public <> (value:T of .Some) returnType:.Some.Some> [primary] VALUE_PARAMETER name:value index:0 type:T of .Some BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Some modality:FINAL visibility:public [data] superTypes:[kotlin.Any]' PROPERTY name:value visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:value type:T of .Some visibility:private [final] @@ -21,7 +21,7 @@ FILE fqName: fileName:/MultiList.kt FUN GENERATED_DATA_CLASS_MEMBER name:component1 visibility:public modality:FINAL <> ($this:.Some.Some>) returnType:T of .Some [operator] $this: VALUE_PARAMETER name: type:.Some.Some> BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component1 (): T of .Some [operator] declared in .Some' + RETURN type=kotlin.Nothing from='public final fun component1 (): T of .Some declared in .Some' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:value type:T of .Some visibility:private [final]' type=T of .Some origin=null receiver: GET_VAR ': .Some.Some> declared in .Some.component1' type=.Some.Some> origin=null FUN GENERATED_DATA_CLASS_MEMBER name:copy visibility:public modality:FINAL <> ($this:.Some.Some>, value:T of .Some) returnType:.Some.Some> @@ -32,7 +32,7 @@ FILE fqName: fileName:/MultiList.kt receiver: GET_VAR ': .Some.Some> declared in .Some.copy' type=.Some.Some> origin=null BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun copy (value: T of .Some): .Some.Some> declared in .Some' - CONSTRUCTOR_CALL 'public constructor (value: T of .Some) [primary] declared in .Some' type=.Some.Some> origin=null + CONSTRUCTOR_CALL 'public constructor (value: T of .Some) declared in .Some' type=.Some.Some> origin=null : T of .Some value: GET_VAR 'value: T of .Some declared in .Some.copy' type=T of .Some origin=null FUN GENERATED_DATA_CLASS_MEMBER name:toString visibility:public modality:OPEN <> ($this:.Some.Some>) returnType:kotlin.String @@ -67,7 +67,7 @@ FILE fqName: fileName:/MultiList.kt receiver: GET_VAR ': .Some.Some> declared in .Some.hashCode' type=.Some.Some> origin=null FUN GENERATED_DATA_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:.Some.Some>, other:kotlin.Any?) returnType:kotlin.Boolean [operator] overridden: - public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any $this: VALUE_PARAMETER name: type:.Some.Some> VALUE_PARAMETER name:other index:0 type:kotlin.Any? BLOCK_BODY @@ -76,35 +76,35 @@ FILE fqName: fileName:/MultiList.kt 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 ': .Some.Some> declared in .Some.equals' type=.Some.Some> origin=null arg1: GET_VAR 'other: kotlin.Any? declared in .Some.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Some' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Some' CONST Boolean type=kotlin.Boolean value=true WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=.Some.Some> GET_VAR 'other: kotlin.Any? declared in .Some.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Some' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Some' CONST Boolean type=kotlin.Boolean value=false VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:.Some.Some> [val] TYPE_OP type=.Some.Some> origin=CAST typeOperand=.Some.Some> GET_VAR 'other: kotlin.Any? declared in .Some.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 + if: CALL 'public final fun not (): kotlin.Boolean 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:value type:T of .Some visibility:private [final]' type=T of .Some origin=null receiver: GET_VAR ': .Some.Some> declared in .Some.equals' type=.Some.Some> origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:value type:T of .Some visibility:private [final]' type=T of .Some origin=null - receiver: GET_VAR 'val tmp_0: .Some.Some> [val] declared in .Some.equals' type=.Some.Some> origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Some' + receiver: GET_VAR 'val tmp_0: .Some.Some> declared in .Some.equals' type=.Some.Some> origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Some' CONST Boolean type=kotlin.Boolean value=false - RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Some' + RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Some' CONST Boolean type=kotlin.Boolean value=true CLASS INTERFACE name:MyList modality:ABSTRACT visibility:public superTypes:[kotlin.collections.List<.Some.MyList>>] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.MyList.MyList> TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false PROPERTY FAKE_OVERRIDE name:size visibility:public modality:ABSTRACT [fake_override,val] overridden: - public abstract size: kotlin.Int [val] + public abstract size: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:ABSTRACT <> ($this:kotlin.collections.List<.Some.MyList>>) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:size visibility:public modality:ABSTRACT [fake_override,val] overridden: @@ -112,7 +112,7 @@ FILE fqName: fileName:/MultiList.kt $this: VALUE_PARAMETER name: type:kotlin.collections.List<.Some.MyList>> FUN FAKE_OVERRIDE name:contains visibility:public modality:ABSTRACT <> ($this:kotlin.collections.List<.Some.MyList>>, element:.Some.MyList>) returnType:kotlin.Boolean [fake_override,operator] overridden: - public abstract fun contains (element: E of kotlin.collections.List): kotlin.Boolean [operator] declared in kotlin.collections.List + public abstract fun contains (element: E of kotlin.collections.List): kotlin.Boolean declared in kotlin.collections.List $this: VALUE_PARAMETER name: type:kotlin.collections.List<.Some.MyList>> VALUE_PARAMETER name:element index:0 type:.Some.MyList> FUN FAKE_OVERRIDE name:containsAll visibility:public modality:ABSTRACT <> ($this:kotlin.collections.List<.Some.MyList>>, elements:kotlin.collections.Collection<.Some.MyList>>) returnType:kotlin.Boolean [fake_override] @@ -122,22 +122,22 @@ FILE fqName: fileName:/MultiList.kt VALUE_PARAMETER name:elements index:0 type:kotlin.collections.Collection<.Some.MyList>> 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 kotlin.collections.List + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.collections.List $this: VALUE_PARAMETER name: type:kotlin.Any VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:forEach visibility:public modality:OPEN <> ($this:kotlin.collections.Iterable<.Some.MyList>>, p0:@[FlexibleNullability] java.util.function.Consumer.Some.MyList>?>?) returnType:kotlin.Unit [fake_override] overridden: - public open fun forEach (p0: @[FlexibleNullability] java.util.function.Consumer?): kotlin.Unit [fake_override] declared in kotlin.collections.List + public open fun forEach (p0: @[FlexibleNullability] java.util.function.Consumer?): kotlin.Unit declared in kotlin.collections.List $this: VALUE_PARAMETER name: type:kotlin.collections.Iterable<.Some.MyList>> VALUE_PARAMETER name:p0 index:0 type:@[FlexibleNullability] java.util.function.Consumer.Some.MyList>?>? FUN FAKE_OVERRIDE name:get visibility:public modality:ABSTRACT <> ($this:kotlin.collections.List<.Some.MyList>>, index:kotlin.Int) returnType:.Some.MyList> [fake_override,operator] overridden: - public abstract fun get (index: kotlin.Int): E of kotlin.collections.List [operator] declared in kotlin.collections.List + public abstract fun get (index: kotlin.Int): E of kotlin.collections.List declared in kotlin.collections.List $this: VALUE_PARAMETER name: type:kotlin.collections.List<.Some.MyList>> VALUE_PARAMETER name:index index:0 type:kotlin.Int 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 kotlin.collections.List + public open fun hashCode (): kotlin.Int declared in kotlin.collections.List $this: VALUE_PARAMETER name: type:kotlin.Any FUN FAKE_OVERRIDE name:indexOf visibility:public modality:ABSTRACT <> ($this:kotlin.collections.List<.Some.MyList>>, element:.Some.MyList>) returnType:kotlin.Int [fake_override] overridden: @@ -150,7 +150,7 @@ FILE fqName: fileName:/MultiList.kt $this: VALUE_PARAMETER name: type:kotlin.collections.List<.Some.MyList>> FUN FAKE_OVERRIDE name:iterator visibility:public modality:ABSTRACT <> ($this:kotlin.collections.List<.Some.MyList>>) returnType:kotlin.collections.Iterator<.Some.MyList>> [fake_override,operator] overridden: - public abstract fun iterator (): kotlin.collections.Iterator [operator] declared in kotlin.collections.List + public abstract fun iterator (): kotlin.collections.Iterator declared in kotlin.collections.List $this: VALUE_PARAMETER name: type:kotlin.collections.List<.Some.MyList>> FUN FAKE_OVERRIDE name:lastIndexOf visibility:public modality:ABSTRACT <> ($this:kotlin.collections.List<.Some.MyList>>, element:.Some.MyList>) returnType:kotlin.Int [fake_override] overridden: @@ -168,7 +168,7 @@ FILE fqName: fileName:/MultiList.kt VALUE_PARAMETER name:index index:0 type:kotlin.Int FUN FAKE_OVERRIDE name:parallelStream visibility:public modality:OPEN <> ($this:kotlin.collections.Collection<.Some.MyList>>) returnType:@[EnhancedNullability] java.util.stream.Stream<@[EnhancedNullability] .Some.MyList>> [fake_override] overridden: - public open fun parallelStream (): @[EnhancedNullability] java.util.stream.Stream<@[EnhancedNullability] E of kotlin.collections.List> [fake_override] declared in kotlin.collections.List + public open fun parallelStream (): @[EnhancedNullability] java.util.stream.Stream<@[EnhancedNullability] E of kotlin.collections.List> declared in kotlin.collections.List $this: VALUE_PARAMETER name: type:kotlin.collections.Collection<.Some.MyList>> FUN FAKE_OVERRIDE name:spliterator visibility:public modality:OPEN <> ($this:kotlin.collections.List<.Some.MyList>>) returnType:@[EnhancedNullability] java.util.Spliterator<@[FlexibleNullability] .Some.MyList>?> [fake_override] overridden: @@ -176,7 +176,7 @@ FILE fqName: fileName:/MultiList.kt $this: VALUE_PARAMETER name: type:kotlin.collections.List<.Some.MyList>> FUN FAKE_OVERRIDE name:stream visibility:public modality:OPEN <> ($this:kotlin.collections.Collection<.Some.MyList>>) returnType:@[EnhancedNullability] java.util.stream.Stream<@[EnhancedNullability] .Some.MyList>> [fake_override] overridden: - public open fun stream (): @[EnhancedNullability] java.util.stream.Stream<@[EnhancedNullability] E of kotlin.collections.List> [fake_override] declared in kotlin.collections.List + public open fun stream (): @[EnhancedNullability] java.util.stream.Stream<@[EnhancedNullability] E of kotlin.collections.List> declared in kotlin.collections.List $this: VALUE_PARAMETER name: type:kotlin.collections.Collection<.Some.MyList>> FUN FAKE_OVERRIDE name:subList visibility:public modality:ABSTRACT <> ($this:kotlin.collections.List<.Some.MyList>>, fromIndex:kotlin.Int, toIndex:kotlin.Int) returnType:kotlin.collections.List<.Some.MyList>> [fake_override] overridden: @@ -186,7 +186,7 @@ FILE fqName: fileName:/MultiList.kt VALUE_PARAMETER name:toIndex index:1 type:kotlin.Int 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 kotlin.collections.List + public open fun toString (): kotlin.String declared in kotlin.collections.List $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:SomeList modality:OPEN visibility:public superTypes:[.MyList.SomeList>; java.util.ArrayList<.Some.SomeList>>] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.SomeList.SomeList> @@ -198,108 +198,108 @@ FILE fqName: fileName:/MultiList.kt INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:SomeList modality:OPEN visibility:public superTypes:[.MyList.SomeList>; java.util.ArrayList<.Some.SomeList>>]' PROPERTY FAKE_OVERRIDE name:size visibility:public modality:OPEN [fake_override,val] overridden: - public abstract size: kotlin.Int [fake_override,val] - public open size: kotlin.Int [val] + public abstract size: kotlin.Int + public open size: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:OPEN <> ($this:kotlin.collections.List<.Some.SomeList>>) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:size visibility:public modality:OPEN [fake_override,val] overridden: - public abstract fun (): kotlin.Int [fake_override] declared in .MyList + public abstract fun (): kotlin.Int declared in .MyList public open fun (): kotlin.Int declared in java.util.ArrayList $this: VALUE_PARAMETER name: type:kotlin.collections.List<.Some.SomeList>> FUN FAKE_OVERRIDE name:contains visibility:public modality:OPEN <> ($this:kotlin.collections.List<.Some.SomeList>>, element:.Some.SomeList>) returnType:kotlin.Boolean [fake_override,operator] overridden: - public abstract fun contains (element: .Some.MyList>): kotlin.Boolean [fake_override,operator] declared in .MyList - public open fun contains (element: @[EnhancedNullability] E of java.util.ArrayList): kotlin.Boolean [operator] declared in java.util.ArrayList + public abstract fun contains (element: .Some.MyList>): kotlin.Boolean declared in .MyList + public open fun contains (element: @[EnhancedNullability] E of java.util.ArrayList): kotlin.Boolean declared in java.util.ArrayList $this: VALUE_PARAMETER name: type:kotlin.collections.List<.Some.SomeList>> VALUE_PARAMETER name:element index:0 type:.Some.SomeList> FUN FAKE_OVERRIDE name:containsAll visibility:public modality:OPEN <> ($this:kotlin.collections.List<.Some.SomeList>>, elements:kotlin.collections.Collection<.Some.SomeList>>) returnType:kotlin.Boolean [fake_override] overridden: - public abstract fun containsAll (elements: kotlin.collections.Collection<.Some.MyList>>): kotlin.Boolean [fake_override] declared in .MyList - public open fun containsAll (elements: kotlin.collections.Collection<@[EnhancedNullability] E of java.util.ArrayList>): kotlin.Boolean [fake_override] declared in java.util.ArrayList + public abstract fun containsAll (elements: kotlin.collections.Collection<.Some.MyList>>): kotlin.Boolean declared in .MyList + public open fun containsAll (elements: kotlin.collections.Collection<@[EnhancedNullability] E of java.util.ArrayList>): kotlin.Boolean declared in java.util.ArrayList $this: VALUE_PARAMETER name: type:kotlin.collections.List<.Some.SomeList>> VALUE_PARAMETER name:elements index:0 type:kotlin.collections.Collection<.Some.SomeList>> 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 .MyList - public open fun equals (other: @[EnhancedNullability] kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in java.util.ArrayList + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .MyList + public open fun equals (other: @[EnhancedNullability] kotlin.Any?): kotlin.Boolean declared in java.util.ArrayList $this: VALUE_PARAMETER name: type:kotlin.Any VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:forEach visibility:public modality:OPEN <> ($this:kotlin.collections.Iterable<.Some.SomeList>>, p0:@[FlexibleNullability] java.util.function.Consumer.Some.SomeList>?>?) returnType:kotlin.Unit [fake_override] overridden: - public open fun forEach (p0: @[FlexibleNullability] java.util.function.Consumer.Some.MyList>?>?): kotlin.Unit [fake_override] declared in .MyList + public open fun forEach (p0: @[FlexibleNullability] java.util.function.Consumer.Some.MyList>?>?): kotlin.Unit declared in .MyList public open fun forEach (p0: @[FlexibleNullability] java.util.function.Consumer?): kotlin.Unit declared in java.util.ArrayList $this: VALUE_PARAMETER name: type:kotlin.collections.Iterable<.Some.SomeList>> VALUE_PARAMETER name:p0 index:0 type:@[FlexibleNullability] java.util.function.Consumer.Some.SomeList>?>? FUN FAKE_OVERRIDE name:get visibility:public modality:OPEN <> ($this:kotlin.collections.List<.Some.SomeList>>, index:kotlin.Int) returnType:.Some.SomeList> [fake_override,operator] overridden: - public abstract fun get (index: kotlin.Int): .Some.MyList> [fake_override,operator] declared in .MyList - public open fun get (index: kotlin.Int): @[EnhancedNullability] E of java.util.ArrayList [operator] declared in java.util.ArrayList + public abstract fun get (index: kotlin.Int): .Some.MyList> declared in .MyList + public open fun get (index: kotlin.Int): @[EnhancedNullability] E of java.util.ArrayList declared in java.util.ArrayList $this: VALUE_PARAMETER name: type:kotlin.collections.List<.Some.SomeList>> VALUE_PARAMETER name:index index:0 type:kotlin.Int 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 .MyList - public open fun hashCode (): kotlin.Int [fake_override] declared in java.util.ArrayList + public open fun hashCode (): kotlin.Int declared in .MyList + public open fun hashCode (): kotlin.Int declared in java.util.ArrayList $this: VALUE_PARAMETER name: type:kotlin.Any FUN FAKE_OVERRIDE name:indexOf visibility:public modality:OPEN <> ($this:kotlin.collections.List<.Some.SomeList>>, element:.Some.SomeList>) returnType:kotlin.Int [fake_override] overridden: - public abstract fun indexOf (element: .Some.MyList>): kotlin.Int [fake_override] declared in .MyList + public abstract fun indexOf (element: .Some.MyList>): kotlin.Int declared in .MyList public open fun indexOf (element: @[EnhancedNullability] E of java.util.ArrayList): kotlin.Int declared in java.util.ArrayList $this: VALUE_PARAMETER name: type:kotlin.collections.List<.Some.SomeList>> VALUE_PARAMETER name:element index:0 type:.Some.SomeList> FUN FAKE_OVERRIDE name:isEmpty visibility:public modality:OPEN <> ($this:kotlin.collections.List<.Some.SomeList>>) returnType:kotlin.Boolean [fake_override] overridden: - public abstract fun isEmpty (): kotlin.Boolean [fake_override] declared in .MyList + public abstract fun isEmpty (): kotlin.Boolean declared in .MyList public open fun isEmpty (): kotlin.Boolean declared in java.util.ArrayList $this: VALUE_PARAMETER name: type:kotlin.collections.List<.Some.SomeList>> FUN FAKE_OVERRIDE name:iterator visibility:public modality:OPEN <> ($this:java.util.ArrayList<.Some.SomeList>>) returnType:@[EnhancedNullability] kotlin.collections.MutableIterator<@[EnhancedNullability] .Some.SomeList>> [fake_override,operator] overridden: - public abstract fun iterator (): kotlin.collections.Iterator<.Some.MyList>> [fake_override,operator] declared in .MyList - public open fun iterator (): @[EnhancedNullability] kotlin.collections.MutableIterator<@[EnhancedNullability] E of java.util.ArrayList> [operator] declared in java.util.ArrayList + public abstract fun iterator (): kotlin.collections.Iterator<.Some.MyList>> declared in .MyList + public open fun iterator (): @[EnhancedNullability] kotlin.collections.MutableIterator<@[EnhancedNullability] E of java.util.ArrayList> declared in java.util.ArrayList $this: VALUE_PARAMETER name: type:java.util.ArrayList<.Some.SomeList>> FUN FAKE_OVERRIDE name:lastIndexOf visibility:public modality:OPEN <> ($this:kotlin.collections.List<.Some.SomeList>>, element:.Some.SomeList>) returnType:kotlin.Int [fake_override] overridden: - public abstract fun lastIndexOf (element: .Some.MyList>): kotlin.Int [fake_override] declared in .MyList + public abstract fun lastIndexOf (element: .Some.MyList>): kotlin.Int declared in .MyList public open fun lastIndexOf (element: @[EnhancedNullability] E of java.util.ArrayList): kotlin.Int declared in java.util.ArrayList $this: VALUE_PARAMETER name: type:kotlin.collections.List<.Some.SomeList>> VALUE_PARAMETER name:element index:0 type:.Some.SomeList> FUN FAKE_OVERRIDE name:listIterator visibility:public modality:OPEN <> ($this:java.util.ArrayList<.Some.SomeList>>) returnType:@[EnhancedNullability] kotlin.collections.MutableListIterator<@[EnhancedNullability] .Some.SomeList>> [fake_override] overridden: - public abstract fun listIterator (): kotlin.collections.ListIterator<.Some.MyList>> [fake_override] declared in .MyList + public abstract fun listIterator (): kotlin.collections.ListIterator<.Some.MyList>> declared in .MyList public open fun listIterator (): @[EnhancedNullability] kotlin.collections.MutableListIterator<@[EnhancedNullability] E of java.util.ArrayList> declared in java.util.ArrayList $this: VALUE_PARAMETER name: type:java.util.ArrayList<.Some.SomeList>> FUN FAKE_OVERRIDE name:listIterator visibility:public modality:OPEN <> ($this:java.util.ArrayList<.Some.SomeList>>, index:kotlin.Int) returnType:@[EnhancedNullability] kotlin.collections.MutableListIterator<@[EnhancedNullability] .Some.SomeList>> [fake_override] overridden: - public abstract fun listIterator (index: kotlin.Int): kotlin.collections.ListIterator<.Some.MyList>> [fake_override] declared in .MyList + public abstract fun listIterator (index: kotlin.Int): kotlin.collections.ListIterator<.Some.MyList>> declared in .MyList public open fun listIterator (index: kotlin.Int): @[EnhancedNullability] kotlin.collections.MutableListIterator<@[EnhancedNullability] E of java.util.ArrayList> declared in java.util.ArrayList $this: VALUE_PARAMETER name: type:java.util.ArrayList<.Some.SomeList>> VALUE_PARAMETER name:index index:0 type:kotlin.Int FUN FAKE_OVERRIDE name:parallelStream visibility:public modality:OPEN <> ($this:kotlin.collections.Collection<.Some.SomeList>>) returnType:@[EnhancedNullability] java.util.stream.Stream<@[EnhancedNullability] .Some.SomeList>> [fake_override] overridden: - public open fun parallelStream (): @[EnhancedNullability] java.util.stream.Stream<@[EnhancedNullability] .Some.MyList>> [fake_override] declared in .MyList - public open fun parallelStream (): @[EnhancedNullability] java.util.stream.Stream<@[EnhancedNullability] E of java.util.ArrayList> [fake_override] declared in java.util.ArrayList + public open fun parallelStream (): @[EnhancedNullability] java.util.stream.Stream<@[EnhancedNullability] .Some.MyList>> declared in .MyList + public open fun parallelStream (): @[EnhancedNullability] java.util.stream.Stream<@[EnhancedNullability] E of java.util.ArrayList> declared in java.util.ArrayList $this: VALUE_PARAMETER name: type:kotlin.collections.Collection<.Some.SomeList>> FUN FAKE_OVERRIDE name:spliterator visibility:public modality:OPEN <> ($this:kotlin.collections.List<.Some.SomeList>>) returnType:@[EnhancedNullability] java.util.Spliterator<@[FlexibleNullability] .Some.SomeList>?> [fake_override] overridden: - public open fun spliterator (): @[EnhancedNullability] java.util.Spliterator<@[FlexibleNullability] .Some.MyList>?> [fake_override] declared in .MyList + public open fun spliterator (): @[EnhancedNullability] java.util.Spliterator<@[FlexibleNullability] .Some.MyList>?> declared in .MyList public open fun spliterator (): @[EnhancedNullability] java.util.Spliterator<@[FlexibleNullability] E of java.util.ArrayList?> declared in java.util.ArrayList $this: VALUE_PARAMETER name: type:kotlin.collections.List<.Some.SomeList>> FUN FAKE_OVERRIDE name:stream visibility:public modality:OPEN <> ($this:kotlin.collections.Collection<.Some.SomeList>>) returnType:@[EnhancedNullability] java.util.stream.Stream<@[EnhancedNullability] .Some.SomeList>> [fake_override] overridden: - public open fun stream (): @[EnhancedNullability] java.util.stream.Stream<@[EnhancedNullability] .Some.MyList>> [fake_override] declared in .MyList - public open fun stream (): @[EnhancedNullability] java.util.stream.Stream<@[EnhancedNullability] E of java.util.ArrayList> [fake_override] declared in java.util.ArrayList + public open fun stream (): @[EnhancedNullability] java.util.stream.Stream<@[EnhancedNullability] .Some.MyList>> declared in .MyList + public open fun stream (): @[EnhancedNullability] java.util.stream.Stream<@[EnhancedNullability] E of java.util.ArrayList> declared in java.util.ArrayList $this: VALUE_PARAMETER name: type:kotlin.collections.Collection<.Some.SomeList>> FUN FAKE_OVERRIDE name:subList visibility:public modality:OPEN <> ($this:java.util.ArrayList<.Some.SomeList>>, fromIndex:kotlin.Int, toIndex:kotlin.Int) returnType:@[EnhancedNullability] kotlin.collections.MutableList<@[EnhancedNullability] .Some.SomeList>> [fake_override] overridden: - public abstract fun subList (fromIndex: kotlin.Int, toIndex: kotlin.Int): kotlin.collections.List<.Some.MyList>> [fake_override] declared in .MyList + public abstract fun subList (fromIndex: kotlin.Int, toIndex: kotlin.Int): kotlin.collections.List<.Some.MyList>> declared in .MyList public open fun subList (fromIndex: kotlin.Int, toIndex: kotlin.Int): @[EnhancedNullability] kotlin.collections.MutableList<@[EnhancedNullability] E of java.util.ArrayList> declared in java.util.ArrayList $this: VALUE_PARAMETER name: type:java.util.ArrayList<.Some.SomeList>> VALUE_PARAMETER name:fromIndex index:0 type:kotlin.Int VALUE_PARAMETER name:toIndex index:1 type:kotlin.Int 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 .MyList - public open fun toString (): @[EnhancedNullability] kotlin.String [fake_override] declared in java.util.ArrayList + public open fun toString (): kotlin.String declared in .MyList + public open fun toString (): @[EnhancedNullability] kotlin.String declared in java.util.ArrayList $this: VALUE_PARAMETER name: type:kotlin.Any FUN FAKE_OVERRIDE name:add visibility:public modality:OPEN <> ($this:java.util.ArrayList<.Some.SomeList>>, element:@[EnhancedNullability] .Some.SomeList>) returnType:kotlin.Boolean [fake_override] overridden: @@ -364,7 +364,7 @@ FILE fqName: fileName:/MultiList.kt VALUE_PARAMETER name:p0 index:0 type:kotlin.Int FUN FAKE_OVERRIDE name:set visibility:public modality:OPEN <> ($this:java.util.ArrayList<.Some.SomeList>>, index:kotlin.Int, element:@[EnhancedNullability] .Some.SomeList>) returnType:@[EnhancedNullability] .Some.SomeList> [fake_override,operator] overridden: - public open fun set (index: kotlin.Int, element: @[EnhancedNullability] E of java.util.ArrayList): @[EnhancedNullability] E of java.util.ArrayList [operator] declared in java.util.ArrayList + public open fun set (index: kotlin.Int, element: @[EnhancedNullability] E of java.util.ArrayList): @[EnhancedNullability] E of java.util.ArrayList declared in java.util.ArrayList $this: VALUE_PARAMETER name: type:java.util.ArrayList<.Some.SomeList>> VALUE_PARAMETER name:index index:0 type:kotlin.Int VALUE_PARAMETER name:element index:1 type:@[EnhancedNullability] .Some.SomeList> @@ -399,196 +399,196 @@ FILE fqName: fileName:/MultiList.kt VALUE_PARAMETER name:p0 index:0 type:kotlin.Int PROPERTY FAKE_OVERRIDE name:modCount visibility:protected/*protected and package*/ modality:FINAL [fake_override,var] overridden: - protected/*protected and package*/ final modCount: kotlin.Int [fake_override,var] + protected/*protected and package*/ final modCount: kotlin.Int CLASS CLASS name:FinalList modality:FINAL visibility:public superTypes:[.SomeList] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.FinalList CONSTRUCTOR visibility:public <> () returnType:.FinalList [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .SomeList' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .SomeList' : kotlin.String INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:FinalList modality:FINAL visibility:public superTypes:[.SomeList]' PROPERTY FAKE_OVERRIDE name:size visibility:public modality:OPEN [fake_override,val] overridden: - public open size: kotlin.Int [fake_override,val] + public open size: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:OPEN <> ($this:kotlin.collections.List<.Some>) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:size visibility:public modality:OPEN [fake_override,val] overridden: - public open fun (): kotlin.Int [fake_override] declared in .SomeList + public open fun (): kotlin.Int declared in .SomeList $this: VALUE_PARAMETER name: type:kotlin.collections.List<.Some> FUN FAKE_OVERRIDE name:contains visibility:public modality:OPEN <> ($this:kotlin.collections.List<.Some>, element:.Some) returnType:kotlin.Boolean [fake_override,operator] overridden: - public open fun contains (element: .Some.SomeList>): kotlin.Boolean [fake_override,operator] declared in .SomeList + public open fun contains (element: .Some.SomeList>): kotlin.Boolean declared in .SomeList $this: VALUE_PARAMETER name: type:kotlin.collections.List<.Some> VALUE_PARAMETER name:element index:0 type:.Some FUN FAKE_OVERRIDE name:containsAll visibility:public modality:OPEN <> ($this:kotlin.collections.List<.Some>, elements:kotlin.collections.Collection<.Some>) returnType:kotlin.Boolean [fake_override] overridden: - public open fun containsAll (elements: kotlin.collections.Collection<.Some.SomeList>>): kotlin.Boolean [fake_override] declared in .SomeList + public open fun containsAll (elements: kotlin.collections.Collection<.Some.SomeList>>): kotlin.Boolean declared in .SomeList $this: VALUE_PARAMETER name: type:kotlin.collections.List<.Some> VALUE_PARAMETER name:elements index:0 type:kotlin.collections.Collection<.Some> 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 .SomeList + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .SomeList $this: VALUE_PARAMETER name: type:kotlin.Any VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:forEach visibility:public modality:OPEN <> ($this:kotlin.collections.Iterable<.Some>, p0:@[FlexibleNullability] java.util.function.Consumer.Some?>?) returnType:kotlin.Unit [fake_override] overridden: - public open fun forEach (p0: @[FlexibleNullability] java.util.function.Consumer.Some.SomeList>?>?): kotlin.Unit [fake_override] declared in .SomeList + public open fun forEach (p0: @[FlexibleNullability] java.util.function.Consumer.Some.SomeList>?>?): kotlin.Unit declared in .SomeList $this: VALUE_PARAMETER name: type:kotlin.collections.Iterable<.Some> VALUE_PARAMETER name:p0 index:0 type:@[FlexibleNullability] java.util.function.Consumer.Some?>? FUN FAKE_OVERRIDE name:get visibility:public modality:OPEN <> ($this:kotlin.collections.List<.Some>, index:kotlin.Int) returnType:.Some [fake_override,operator] overridden: - public open fun get (index: kotlin.Int): .Some.SomeList> [fake_override,operator] declared in .SomeList + public open fun get (index: kotlin.Int): .Some.SomeList> declared in .SomeList $this: VALUE_PARAMETER name: type:kotlin.collections.List<.Some> VALUE_PARAMETER name:index index:0 type:kotlin.Int 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 .SomeList + public open fun hashCode (): kotlin.Int declared in .SomeList $this: VALUE_PARAMETER name: type:kotlin.Any FUN FAKE_OVERRIDE name:indexOf visibility:public modality:OPEN <> ($this:kotlin.collections.List<.Some>, element:.Some) returnType:kotlin.Int [fake_override] overridden: - public open fun indexOf (element: .Some.SomeList>): kotlin.Int [fake_override] declared in .SomeList + public open fun indexOf (element: .Some.SomeList>): kotlin.Int declared in .SomeList $this: VALUE_PARAMETER name: type:kotlin.collections.List<.Some> VALUE_PARAMETER name:element index:0 type:.Some FUN FAKE_OVERRIDE name:isEmpty visibility:public modality:OPEN <> ($this:kotlin.collections.List<.Some>) returnType:kotlin.Boolean [fake_override] overridden: - public open fun isEmpty (): kotlin.Boolean [fake_override] declared in .SomeList + public open fun isEmpty (): kotlin.Boolean declared in .SomeList $this: VALUE_PARAMETER name: type:kotlin.collections.List<.Some> FUN FAKE_OVERRIDE name:iterator visibility:public modality:OPEN <> ($this:java.util.ArrayList<.Some>) returnType:@[EnhancedNullability] kotlin.collections.MutableIterator<@[EnhancedNullability] .Some> [fake_override,operator] overridden: - public open fun iterator (): @[EnhancedNullability] kotlin.collections.MutableIterator<@[EnhancedNullability] .Some.SomeList>> [fake_override,operator] declared in .SomeList + public open fun iterator (): @[EnhancedNullability] kotlin.collections.MutableIterator<@[EnhancedNullability] .Some.SomeList>> declared in .SomeList $this: VALUE_PARAMETER name: type:java.util.ArrayList<.Some> FUN FAKE_OVERRIDE name:lastIndexOf visibility:public modality:OPEN <> ($this:kotlin.collections.List<.Some>, element:.Some) returnType:kotlin.Int [fake_override] overridden: - public open fun lastIndexOf (element: .Some.SomeList>): kotlin.Int [fake_override] declared in .SomeList + public open fun lastIndexOf (element: .Some.SomeList>): kotlin.Int declared in .SomeList $this: VALUE_PARAMETER name: type:kotlin.collections.List<.Some> VALUE_PARAMETER name:element index:0 type:.Some FUN FAKE_OVERRIDE name:listIterator visibility:public modality:OPEN <> ($this:java.util.ArrayList<.Some>) returnType:@[EnhancedNullability] kotlin.collections.MutableListIterator<@[EnhancedNullability] .Some> [fake_override] overridden: - public open fun listIterator (): @[EnhancedNullability] kotlin.collections.MutableListIterator<@[EnhancedNullability] .Some.SomeList>> [fake_override] declared in .SomeList + public open fun listIterator (): @[EnhancedNullability] kotlin.collections.MutableListIterator<@[EnhancedNullability] .Some.SomeList>> declared in .SomeList $this: VALUE_PARAMETER name: type:java.util.ArrayList<.Some> FUN FAKE_OVERRIDE name:listIterator visibility:public modality:OPEN <> ($this:java.util.ArrayList<.Some>, index:kotlin.Int) returnType:@[EnhancedNullability] kotlin.collections.MutableListIterator<@[EnhancedNullability] .Some> [fake_override] overridden: - public open fun listIterator (index: kotlin.Int): @[EnhancedNullability] kotlin.collections.MutableListIterator<@[EnhancedNullability] .Some.SomeList>> [fake_override] declared in .SomeList + public open fun listIterator (index: kotlin.Int): @[EnhancedNullability] kotlin.collections.MutableListIterator<@[EnhancedNullability] .Some.SomeList>> declared in .SomeList $this: VALUE_PARAMETER name: type:java.util.ArrayList<.Some> VALUE_PARAMETER name:index index:0 type:kotlin.Int FUN FAKE_OVERRIDE name:parallelStream visibility:public modality:OPEN <> ($this:kotlin.collections.Collection<.Some>) returnType:@[EnhancedNullability] java.util.stream.Stream<@[EnhancedNullability] .Some> [fake_override] overridden: - public open fun parallelStream (): @[EnhancedNullability] java.util.stream.Stream<@[EnhancedNullability] .Some.SomeList>> [fake_override] declared in .SomeList + public open fun parallelStream (): @[EnhancedNullability] java.util.stream.Stream<@[EnhancedNullability] .Some.SomeList>> declared in .SomeList $this: VALUE_PARAMETER name: type:kotlin.collections.Collection<.Some> FUN FAKE_OVERRIDE name:spliterator visibility:public modality:OPEN <> ($this:kotlin.collections.List<.Some>) returnType:@[EnhancedNullability] java.util.Spliterator<@[FlexibleNullability] .Some?> [fake_override] overridden: - public open fun spliterator (): @[EnhancedNullability] java.util.Spliterator<@[FlexibleNullability] .Some.SomeList>?> [fake_override] declared in .SomeList + public open fun spliterator (): @[EnhancedNullability] java.util.Spliterator<@[FlexibleNullability] .Some.SomeList>?> declared in .SomeList $this: VALUE_PARAMETER name: type:kotlin.collections.List<.Some> FUN FAKE_OVERRIDE name:stream visibility:public modality:OPEN <> ($this:kotlin.collections.Collection<.Some>) returnType:@[EnhancedNullability] java.util.stream.Stream<@[EnhancedNullability] .Some> [fake_override] overridden: - public open fun stream (): @[EnhancedNullability] java.util.stream.Stream<@[EnhancedNullability] .Some.SomeList>> [fake_override] declared in .SomeList + public open fun stream (): @[EnhancedNullability] java.util.stream.Stream<@[EnhancedNullability] .Some.SomeList>> declared in .SomeList $this: VALUE_PARAMETER name: type:kotlin.collections.Collection<.Some> FUN FAKE_OVERRIDE name:subList visibility:public modality:OPEN <> ($this:java.util.ArrayList<.Some>, fromIndex:kotlin.Int, toIndex:kotlin.Int) returnType:@[EnhancedNullability] kotlin.collections.MutableList<@[EnhancedNullability] .Some> [fake_override] overridden: - public open fun subList (fromIndex: kotlin.Int, toIndex: kotlin.Int): @[EnhancedNullability] kotlin.collections.MutableList<@[EnhancedNullability] .Some.SomeList>> [fake_override] declared in .SomeList + public open fun subList (fromIndex: kotlin.Int, toIndex: kotlin.Int): @[EnhancedNullability] kotlin.collections.MutableList<@[EnhancedNullability] .Some.SomeList>> declared in .SomeList $this: VALUE_PARAMETER name: type:java.util.ArrayList<.Some> VALUE_PARAMETER name:fromIndex index:0 type:kotlin.Int VALUE_PARAMETER name:toIndex index:1 type:kotlin.Int 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 .SomeList + public open fun toString (): kotlin.String declared in .SomeList $this: VALUE_PARAMETER name: type:kotlin.Any FUN FAKE_OVERRIDE name:add visibility:public modality:OPEN <> ($this:java.util.ArrayList<.Some>, element:@[EnhancedNullability] .Some) returnType:kotlin.Boolean [fake_override] overridden: - public open fun add (element: @[EnhancedNullability] .Some.SomeList>): kotlin.Boolean [fake_override] declared in .SomeList + public open fun add (element: @[EnhancedNullability] .Some.SomeList>): kotlin.Boolean declared in .SomeList $this: VALUE_PARAMETER name: type:java.util.ArrayList<.Some> VALUE_PARAMETER name:element index:0 type:@[EnhancedNullability] .Some FUN FAKE_OVERRIDE name:add visibility:public modality:OPEN <> ($this:java.util.ArrayList<.Some>, index:kotlin.Int, element:@[EnhancedNullability] .Some) returnType:kotlin.Unit [fake_override] overridden: - public open fun add (index: kotlin.Int, element: @[EnhancedNullability] .Some.SomeList>): kotlin.Unit [fake_override] declared in .SomeList + public open fun add (index: kotlin.Int, element: @[EnhancedNullability] .Some.SomeList>): kotlin.Unit declared in .SomeList $this: VALUE_PARAMETER name: type:java.util.ArrayList<.Some> VALUE_PARAMETER name:index index:0 type:kotlin.Int VALUE_PARAMETER name:element index:1 type:@[EnhancedNullability] .Some FUN FAKE_OVERRIDE name:addAll visibility:public modality:OPEN <> ($this:java.util.ArrayList<.Some>, elements:@[EnhancedNullability] kotlin.collections.Collection<@[EnhancedNullability] .Some>) returnType:kotlin.Boolean [fake_override] overridden: - public open fun addAll (elements: @[EnhancedNullability] kotlin.collections.Collection<@[EnhancedNullability] .Some.SomeList>>): kotlin.Boolean [fake_override] declared in .SomeList + public open fun addAll (elements: @[EnhancedNullability] kotlin.collections.Collection<@[EnhancedNullability] .Some.SomeList>>): kotlin.Boolean declared in .SomeList $this: VALUE_PARAMETER name: type:java.util.ArrayList<.Some> VALUE_PARAMETER name:elements index:0 type:@[EnhancedNullability] kotlin.collections.Collection<@[EnhancedNullability] .Some> FUN FAKE_OVERRIDE name:addAll visibility:public modality:OPEN <> ($this:java.util.ArrayList<.Some>, index:kotlin.Int, elements:@[EnhancedNullability] kotlin.collections.Collection<@[EnhancedNullability] .Some>) returnType:kotlin.Boolean [fake_override] overridden: - public open fun addAll (index: kotlin.Int, elements: @[EnhancedNullability] kotlin.collections.Collection<@[EnhancedNullability] .Some.SomeList>>): kotlin.Boolean [fake_override] declared in .SomeList + public open fun addAll (index: kotlin.Int, elements: @[EnhancedNullability] kotlin.collections.Collection<@[EnhancedNullability] .Some.SomeList>>): kotlin.Boolean declared in .SomeList $this: VALUE_PARAMETER name: type:java.util.ArrayList<.Some> VALUE_PARAMETER name:index index:0 type:kotlin.Int VALUE_PARAMETER name:elements index:1 type:@[EnhancedNullability] kotlin.collections.Collection<@[EnhancedNullability] .Some> FUN FAKE_OVERRIDE name:clear visibility:public modality:OPEN <> ($this:java.util.ArrayList<.Some>) returnType:kotlin.Unit [fake_override] overridden: - public open fun clear (): kotlin.Unit [fake_override] declared in .SomeList + public open fun clear (): kotlin.Unit declared in .SomeList $this: VALUE_PARAMETER name: type:java.util.ArrayList<.Some> FUN FAKE_OVERRIDE name:remove visibility:public modality:OPEN <> ($this:java.util.ArrayList<.Some>, element:@[EnhancedNullability] .Some) returnType:kotlin.Boolean [fake_override] overridden: - public open fun remove (element: @[EnhancedNullability] .Some.SomeList>): kotlin.Boolean [fake_override] declared in .SomeList + public open fun remove (element: @[EnhancedNullability] .Some.SomeList>): kotlin.Boolean declared in .SomeList $this: VALUE_PARAMETER name: type:java.util.ArrayList<.Some> VALUE_PARAMETER name:element index:0 type:@[EnhancedNullability] .Some FUN FAKE_OVERRIDE name:removeAll visibility:public modality:OPEN <> ($this:java.util.ArrayList<.Some>, elements:kotlin.collections.Collection<@[EnhancedNullability] .Some>) returnType:kotlin.Boolean [fake_override] overridden: - public open fun removeAll (elements: kotlin.collections.Collection<@[EnhancedNullability] .Some.SomeList>>): kotlin.Boolean [fake_override] declared in .SomeList + public open fun removeAll (elements: kotlin.collections.Collection<@[EnhancedNullability] .Some.SomeList>>): kotlin.Boolean declared in .SomeList $this: VALUE_PARAMETER name: type:java.util.ArrayList<.Some> VALUE_PARAMETER name:elements index:0 type:kotlin.collections.Collection<@[EnhancedNullability] .Some> FUN FAKE_OVERRIDE name:retainAll visibility:public modality:OPEN <> ($this:java.util.ArrayList<.Some>, elements:kotlin.collections.Collection<@[EnhancedNullability] .Some>) returnType:kotlin.Boolean [fake_override] overridden: - public open fun retainAll (elements: kotlin.collections.Collection<@[EnhancedNullability] .Some.SomeList>>): kotlin.Boolean [fake_override] declared in .SomeList + public open fun retainAll (elements: kotlin.collections.Collection<@[EnhancedNullability] .Some.SomeList>>): kotlin.Boolean declared in .SomeList $this: VALUE_PARAMETER name: type:java.util.ArrayList<.Some> VALUE_PARAMETER name:elements index:0 type:kotlin.collections.Collection<@[EnhancedNullability] .Some> FUN FAKE_OVERRIDE name:toArray visibility:public modality:OPEN <> ($this:java.util.ArrayList<.Some>) returnType:@[FlexibleNullability] kotlin.Array? [fake_override] overridden: - public open fun toArray (): @[FlexibleNullability] kotlin.Array? [fake_override] declared in .SomeList + public open fun toArray (): @[FlexibleNullability] kotlin.Array? declared in .SomeList $this: VALUE_PARAMETER name: type:java.util.ArrayList<.Some> FUN FAKE_OVERRIDE name:toArray visibility:public modality:OPEN ($this:java.util.ArrayList<.Some>, p0:@[FlexibleNullability] kotlin.Array.FinalList.toArray?>?) returnType:@[FlexibleNullability] kotlin.Array.FinalList.toArray?>? [fake_override] overridden: - public open fun toArray (p0: @[FlexibleNullability] kotlin.Array.SomeList.toArray?>?): @[FlexibleNullability] kotlin.Array.SomeList.toArray?>? [fake_override] declared in .SomeList + public open fun toArray (p0: @[FlexibleNullability] kotlin.Array.SomeList.toArray?>?): @[FlexibleNullability] kotlin.Array.SomeList.toArray?>? declared in .SomeList TYPE_PARAMETER name:T index:0 variance: superTypes:[@[FlexibleNullability] kotlin.Any?] reified:false $this: VALUE_PARAMETER name: type:java.util.ArrayList<.Some> VALUE_PARAMETER name:p0 index:0 type:@[FlexibleNullability] kotlin.Array.FinalList.toArray?>? FUN FAKE_OVERRIDE name:removeIf visibility:public modality:OPEN <> ($this:java.util.ArrayList<.Some>, p0:@[EnhancedNullability] java.util.function.Predicate.Some>) returnType:kotlin.Boolean [fake_override] overridden: - public open fun removeIf (p0: @[EnhancedNullability] java.util.function.Predicate.Some.SomeList>>): kotlin.Boolean [fake_override] declared in .SomeList + public open fun removeIf (p0: @[EnhancedNullability] java.util.function.Predicate.Some.SomeList>>): kotlin.Boolean declared in .SomeList $this: VALUE_PARAMETER name: type:java.util.ArrayList<.Some> VALUE_PARAMETER name:p0 index:0 type:@[EnhancedNullability] java.util.function.Predicate.Some> FUN FAKE_OVERRIDE name:removeAt visibility:public modality:OPEN <> ($this:java.util.ArrayList<.Some>, p0:kotlin.Int) returnType:@[EnhancedNullability] .Some [fake_override] overridden: - public open fun removeAt (p0: kotlin.Int): @[EnhancedNullability] .Some.SomeList> [fake_override] declared in .SomeList + public open fun removeAt (p0: kotlin.Int): @[EnhancedNullability] .Some.SomeList> declared in .SomeList $this: VALUE_PARAMETER name: type:java.util.ArrayList<.Some> VALUE_PARAMETER name:p0 index:0 type:kotlin.Int FUN FAKE_OVERRIDE name:set visibility:public modality:OPEN <> ($this:java.util.ArrayList<.Some>, index:kotlin.Int, element:@[EnhancedNullability] .Some) returnType:@[EnhancedNullability] .Some [fake_override,operator] overridden: - public open fun set (index: kotlin.Int, element: @[EnhancedNullability] .Some.SomeList>): @[EnhancedNullability] .Some.SomeList> [fake_override,operator] declared in .SomeList + public open fun set (index: kotlin.Int, element: @[EnhancedNullability] .Some.SomeList>): @[EnhancedNullability] .Some.SomeList> declared in .SomeList $this: VALUE_PARAMETER name: type:java.util.ArrayList<.Some> VALUE_PARAMETER name:index index:0 type:kotlin.Int VALUE_PARAMETER name:element index:1 type:@[EnhancedNullability] .Some FUN FAKE_OVERRIDE name:replaceAll visibility:public modality:OPEN <> ($this:java.util.ArrayList<.Some>, p0:@[EnhancedNullability] java.util.function.UnaryOperator<@[EnhancedNullability] .Some>) returnType:kotlin.Unit [fake_override] overridden: - public open fun replaceAll (p0: @[EnhancedNullability] java.util.function.UnaryOperator<@[EnhancedNullability] .Some.SomeList>>): kotlin.Unit [fake_override] declared in .SomeList + public open fun replaceAll (p0: @[EnhancedNullability] java.util.function.UnaryOperator<@[EnhancedNullability] .Some.SomeList>>): kotlin.Unit declared in .SomeList $this: VALUE_PARAMETER name: type:java.util.ArrayList<.Some> VALUE_PARAMETER name:p0 index:0 type:@[EnhancedNullability] java.util.function.UnaryOperator<@[EnhancedNullability] .Some> FUN FAKE_OVERRIDE name:sort visibility:public modality:OPEN <> ($this:java.util.ArrayList<.Some>, p0:@[FlexibleNullability] java.util.Comparator.Some?>?) returnType:kotlin.Unit [fake_override] overridden: - public open fun sort (p0: @[FlexibleNullability] java.util.Comparator.Some.SomeList>?>?): kotlin.Unit [fake_override] declared in .SomeList + public open fun sort (p0: @[FlexibleNullability] java.util.Comparator.Some.SomeList>?>?): kotlin.Unit declared in .SomeList $this: VALUE_PARAMETER name: type:java.util.ArrayList<.Some> VALUE_PARAMETER name:p0 index:0 type:@[FlexibleNullability] java.util.Comparator.Some?>? FUN FAKE_OVERRIDE name:removeRange visibility:protected/*protected and package*/ modality:OPEN <> ($this:java.util.ArrayList<.Some>, p0:kotlin.Int, p1:kotlin.Int) returnType:kotlin.Unit [fake_override] overridden: - protected/*protected and package*/ open fun removeRange (p0: kotlin.Int, p1: kotlin.Int): kotlin.Unit [fake_override] declared in .SomeList + protected/*protected and package*/ open fun removeRange (p0: kotlin.Int, p1: kotlin.Int): kotlin.Unit declared in .SomeList $this: VALUE_PARAMETER name: type:java.util.ArrayList<.Some> VALUE_PARAMETER name:p0 index:0 type:kotlin.Int VALUE_PARAMETER name:p1 index:1 type:kotlin.Int FUN FAKE_OVERRIDE name:clone visibility:public modality:OPEN <> ($this:java.util.ArrayList<.Some>) returnType:@[EnhancedNullability] kotlin.Any [fake_override] overridden: - public open fun clone (): @[EnhancedNullability] kotlin.Any [fake_override] declared in .SomeList + public open fun clone (): @[EnhancedNullability] kotlin.Any declared in .SomeList $this: VALUE_PARAMETER name: type:java.util.ArrayList<.Some> FUN FAKE_OVERRIDE name:trimToSize visibility:public modality:OPEN <> ($this:java.util.ArrayList<.Some>) returnType:kotlin.Unit [fake_override] overridden: - public open fun trimToSize (): kotlin.Unit [fake_override] declared in .SomeList + public open fun trimToSize (): kotlin.Unit declared in .SomeList $this: VALUE_PARAMETER name: type:java.util.ArrayList<.Some> FUN FAKE_OVERRIDE name:ensureCapacity visibility:public modality:OPEN <> ($this:java.util.ArrayList<.Some>, p0:kotlin.Int) returnType:kotlin.Unit [fake_override] overridden: - public open fun ensureCapacity (p0: kotlin.Int): kotlin.Unit [fake_override] declared in .SomeList + public open fun ensureCapacity (p0: kotlin.Int): kotlin.Unit declared in .SomeList $this: VALUE_PARAMETER name: type:java.util.ArrayList<.Some> VALUE_PARAMETER name:p0 index:0 type:kotlin.Int PROPERTY FAKE_OVERRIDE name:modCount visibility:protected/*protected and package*/ modality:FINAL [fake_override,var] overridden: - protected/*protected and package*/ final modCount [fake_override,var] + protected/*protected and package*/ final modCount diff --git a/compiler/testData/ir/irText/firProblems/OutBox.fir.ir.txt b/compiler/testData/ir/irText/firProblems/OutBox.fir.ir.txt index e58676c0b31..03ce68c43db 100644 --- a/compiler/testData/ir/irText/firProblems/OutBox.fir.ir.txt +++ b/compiler/testData/ir/irText/firProblems/OutBox.fir.ir.txt @@ -5,7 +5,7 @@ FILE fqName: fileName:/Box.kt CONSTRUCTOR visibility:public <> (foo:T of .Box) returnType:.Box.Box> [primary] VALUE_PARAMETER name:foo index:0 type:T of .Box BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Box modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:foo visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:foo type:T of .Box visibility:private [final] @@ -29,17 +29,17 @@ FILE fqName: fileName:/Box.kt WHEN type=kotlin.Unit origin=IF BRANCH if: TYPE_OP type=kotlin.Boolean origin=INSTANCEOF typeOperand=.Foo.Buz - GET_VAR 'var foo: .Foo [var] declared in .Box.' type=.Foo origin=null + GET_VAR 'var foo: .Foo declared in .Box.' type=.Foo origin=null then: RETURN type=kotlin.Nothing from='public final fun (): kotlin.String declared in .Box' TYPE_OP type=kotlin.String origin=IMPLICIT_NOTNULL typeOperand=kotlin.String GET_FIELD 'FIELD IR_EXTERNAL_JAVA_DECLARATION_STUB name:str type:@[FlexibleNullability] kotlin.String? visibility:public' type=@[FlexibleNullability] kotlin.String? origin=GET_PROPERTY receiver: TYPE_OP type=.Foo.Buz origin=IMPLICIT_CAST typeOperand=.Foo.Buz - GET_VAR 'var foo: .Foo [var] declared in .Box.' type=.Foo origin=null + GET_VAR 'var foo: .Foo declared in .Box.' type=.Foo origin=null RETURN type=kotlin.Nothing from='public final fun (): kotlin.String declared in .Box' CONST String type=kotlin.String value="" 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/firProblems/OutBox.ir.txt b/compiler/testData/ir/irText/firProblems/OutBox.ir.txt index 34e7c708b80..36e05e4ff7f 100644 --- a/compiler/testData/ir/irText/firProblems/OutBox.ir.txt +++ b/compiler/testData/ir/irText/firProblems/OutBox.ir.txt @@ -5,7 +5,7 @@ FILE fqName: fileName:/Box.kt CONSTRUCTOR visibility:public <> (foo:T of .Box) returnType:.Box.Box> [primary] VALUE_PARAMETER name:foo index:0 type:T of .Box BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Box modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:foo visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:foo type:T of .Box visibility:private [final] @@ -29,18 +29,18 @@ FILE fqName: fileName:/Box.kt WHEN type=kotlin.Unit origin=IF BRANCH if: TYPE_OP type=kotlin.Boolean origin=INSTANCEOF typeOperand=.Foo.Buz - GET_VAR 'var foo: .Foo [var] declared in .Box.' type=.Foo origin=null + GET_VAR 'var foo: .Foo declared in .Box.' type=.Foo origin=null then: BLOCK type=kotlin.Unit origin=null RETURN type=kotlin.Nothing from='public final fun (): kotlin.String declared in .Box' TYPE_OP type=kotlin.String origin=IMPLICIT_NOTNULL typeOperand=kotlin.String GET_FIELD 'FIELD IR_EXTERNAL_JAVA_DECLARATION_STUB name:str type:@[FlexibleNullability] kotlin.String? visibility:public' type=@[FlexibleNullability] kotlin.String? origin=GET_PROPERTY receiver: TYPE_OP type=.Foo.Buz origin=IMPLICIT_CAST typeOperand=.Foo.Buz - GET_VAR 'var foo: .Foo [var] declared in .Box.' type=.Foo origin=null + GET_VAR 'var foo: .Foo declared in .Box.' type=.Foo origin=null RETURN type=kotlin.Nothing from='public final fun (): kotlin.String declared in .Box' CONST String type=kotlin.String value="" 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/firProblems/SafeLetWithReturn.fir.ir.txt b/compiler/testData/ir/irText/firProblems/SafeLetWithReturn.fir.ir.txt index 4a50937c199..a7714ce1655 100644 --- a/compiler/testData/ir/irText/firProblems/SafeLetWithReturn.fir.ir.txt +++ b/compiler/testData/ir/irText/firProblems/SafeLetWithReturn.fir.ir.txt @@ -9,15 +9,15 @@ FILE fqName: fileName:/SafeLetWithReturn.kt WHEN type=kotlin.Nothing? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_0: kotlin.String? [val] declared in .foo' type=kotlin.String? origin=null + arg0: GET_VAR 'val tmp_0: kotlin.String? declared in .foo' type=kotlin.String? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: CALL 'public final fun let (block: kotlin.Function1): R of kotlin.StandardKt.let [inline] declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + then: CALL 'public final fun let (block: kotlin.Function1): R of kotlin.StandardKt.let declared in kotlin.StandardKt' type=kotlin.Nothing origin=null : kotlin.String : kotlin.Nothing - $receiver: GET_VAR 'val tmp_0: kotlin.String? [val] declared in .foo' type=kotlin.String? origin=null + $receiver: GET_VAR 'val tmp_0: kotlin.String? declared in .foo' type=kotlin.String? origin=null block: FUN_EXPR type=kotlin.Function1 origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> (it:kotlin.String) returnType:kotlin.Nothing VALUE_PARAMETER name:it index:0 type:kotlin.String @@ -37,15 +37,15 @@ FILE fqName: fileName:/SafeLetWithReturn.kt WHEN type=kotlin.Nothing? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_1: kotlin.String? [val] declared in .bar' type=kotlin.String? origin=null + arg0: GET_VAR 'val tmp_1: kotlin.String? declared in .bar' type=kotlin.String? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: CALL 'public final fun let (block: kotlin.Function1): R of kotlin.StandardKt.let [inline] declared in kotlin.StandardKt' type=kotlin.Nothing? origin=null + then: CALL 'public final fun let (block: kotlin.Function1): R of kotlin.StandardKt.let declared in kotlin.StandardKt' type=kotlin.Nothing? origin=null : kotlin.String : kotlin.Nothing? - $receiver: GET_VAR 'val tmp_1: kotlin.String? [val] declared in .bar' type=kotlin.String? origin=null + $receiver: GET_VAR 'val tmp_1: kotlin.String? declared in .bar' type=kotlin.String? origin=null block: FUN_EXPR type=kotlin.Function1 origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> (it:kotlin.String) returnType:kotlin.Nothing? VALUE_PARAMETER name:it index:0 type:kotlin.String @@ -57,15 +57,15 @@ FILE fqName: fileName:/SafeLetWithReturn.kt WHEN type=kotlin.Nothing? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_2: kotlin.String? [val] declared in .bar.' type=kotlin.String? origin=null + arg0: GET_VAR 'val tmp_2: kotlin.String? declared in .bar.' type=kotlin.String? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: CALL 'public final fun let (block: kotlin.Function1): R of kotlin.StandardKt.let [inline] declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + then: CALL 'public final fun let (block: kotlin.Function1): R of kotlin.StandardKt.let declared in kotlin.StandardKt' type=kotlin.Nothing origin=null : kotlin.String : kotlin.Nothing - $receiver: GET_VAR 'val tmp_2: kotlin.String? [val] declared in .bar.' type=kotlin.String? origin=null + $receiver: GET_VAR 'val tmp_2: kotlin.String? declared in .bar.' type=kotlin.String? origin=null block: FUN_EXPR type=kotlin.Function1 origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> (it:kotlin.String) returnType:kotlin.Nothing VALUE_PARAMETER name:it index:0 type:kotlin.String @@ -86,15 +86,15 @@ FILE fqName: fileName:/SafeLetWithReturn.kt WHEN type=kotlin.Nothing? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_3: kotlin.String? [val] declared in .' type=kotlin.String? origin=null + arg0: GET_VAR 'val tmp_3: kotlin.String? declared in .' type=kotlin.String? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: CALL 'public final fun let (block: kotlin.Function1): R of kotlin.StandardKt.let [inline] declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + then: CALL 'public final fun let (block: kotlin.Function1): R of kotlin.StandardKt.let declared in kotlin.StandardKt' type=kotlin.Nothing origin=null : kotlin.String : kotlin.Nothing - $receiver: GET_VAR 'val tmp_3: kotlin.String? [val] declared in .' type=kotlin.String? origin=null + $receiver: GET_VAR 'val tmp_3: kotlin.String? declared in .' type=kotlin.String? origin=null block: FUN_EXPR type=kotlin.Function1 origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> (it:kotlin.String) returnType:kotlin.Nothing VALUE_PARAMETER name:it index:0 type:kotlin.String diff --git a/compiler/testData/ir/irText/firProblems/SafeLetWithReturn.ir.txt b/compiler/testData/ir/irText/firProblems/SafeLetWithReturn.ir.txt index 4a50937c199..a7714ce1655 100644 --- a/compiler/testData/ir/irText/firProblems/SafeLetWithReturn.ir.txt +++ b/compiler/testData/ir/irText/firProblems/SafeLetWithReturn.ir.txt @@ -9,15 +9,15 @@ FILE fqName: fileName:/SafeLetWithReturn.kt WHEN type=kotlin.Nothing? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_0: kotlin.String? [val] declared in .foo' type=kotlin.String? origin=null + arg0: GET_VAR 'val tmp_0: kotlin.String? declared in .foo' type=kotlin.String? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: CALL 'public final fun let (block: kotlin.Function1): R of kotlin.StandardKt.let [inline] declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + then: CALL 'public final fun let (block: kotlin.Function1): R of kotlin.StandardKt.let declared in kotlin.StandardKt' type=kotlin.Nothing origin=null : kotlin.String : kotlin.Nothing - $receiver: GET_VAR 'val tmp_0: kotlin.String? [val] declared in .foo' type=kotlin.String? origin=null + $receiver: GET_VAR 'val tmp_0: kotlin.String? declared in .foo' type=kotlin.String? origin=null block: FUN_EXPR type=kotlin.Function1 origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> (it:kotlin.String) returnType:kotlin.Nothing VALUE_PARAMETER name:it index:0 type:kotlin.String @@ -37,15 +37,15 @@ FILE fqName: fileName:/SafeLetWithReturn.kt WHEN type=kotlin.Nothing? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_1: kotlin.String? [val] declared in .bar' type=kotlin.String? origin=null + arg0: GET_VAR 'val tmp_1: kotlin.String? declared in .bar' type=kotlin.String? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: CALL 'public final fun let (block: kotlin.Function1): R of kotlin.StandardKt.let [inline] declared in kotlin.StandardKt' type=kotlin.Nothing? origin=null + then: CALL 'public final fun let (block: kotlin.Function1): R of kotlin.StandardKt.let declared in kotlin.StandardKt' type=kotlin.Nothing? origin=null : kotlin.String : kotlin.Nothing? - $receiver: GET_VAR 'val tmp_1: kotlin.String? [val] declared in .bar' type=kotlin.String? origin=null + $receiver: GET_VAR 'val tmp_1: kotlin.String? declared in .bar' type=kotlin.String? origin=null block: FUN_EXPR type=kotlin.Function1 origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> (it:kotlin.String) returnType:kotlin.Nothing? VALUE_PARAMETER name:it index:0 type:kotlin.String @@ -57,15 +57,15 @@ FILE fqName: fileName:/SafeLetWithReturn.kt WHEN type=kotlin.Nothing? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_2: kotlin.String? [val] declared in .bar.' type=kotlin.String? origin=null + arg0: GET_VAR 'val tmp_2: kotlin.String? declared in .bar.' type=kotlin.String? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: CALL 'public final fun let (block: kotlin.Function1): R of kotlin.StandardKt.let [inline] declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + then: CALL 'public final fun let (block: kotlin.Function1): R of kotlin.StandardKt.let declared in kotlin.StandardKt' type=kotlin.Nothing origin=null : kotlin.String : kotlin.Nothing - $receiver: GET_VAR 'val tmp_2: kotlin.String? [val] declared in .bar.' type=kotlin.String? origin=null + $receiver: GET_VAR 'val tmp_2: kotlin.String? declared in .bar.' type=kotlin.String? origin=null block: FUN_EXPR type=kotlin.Function1 origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> (it:kotlin.String) returnType:kotlin.Nothing VALUE_PARAMETER name:it index:0 type:kotlin.String @@ -86,15 +86,15 @@ FILE fqName: fileName:/SafeLetWithReturn.kt WHEN type=kotlin.Nothing? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_3: kotlin.String? [val] declared in .' type=kotlin.String? origin=null + arg0: GET_VAR 'val tmp_3: kotlin.String? declared in .' type=kotlin.String? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: CALL 'public final fun let (block: kotlin.Function1): R of kotlin.StandardKt.let [inline] declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + then: CALL 'public final fun let (block: kotlin.Function1): R of kotlin.StandardKt.let declared in kotlin.StandardKt' type=kotlin.Nothing origin=null : kotlin.String : kotlin.Nothing - $receiver: GET_VAR 'val tmp_3: kotlin.String? [val] declared in .' type=kotlin.String? origin=null + $receiver: GET_VAR 'val tmp_3: kotlin.String? declared in .' type=kotlin.String? origin=null block: FUN_EXPR type=kotlin.Function1 origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> (it:kotlin.String) returnType:kotlin.Nothing VALUE_PARAMETER name:it index:0 type:kotlin.String diff --git a/compiler/testData/ir/irText/firProblems/SameJavaFieldReferences.fir.ir.txt b/compiler/testData/ir/irText/firProblems/SameJavaFieldReferences.fir.ir.txt index 28bb4984ace..8840edd1152 100644 --- a/compiler/testData/ir/irText/firProblems/SameJavaFieldReferences.fir.ir.txt +++ b/compiler/testData/ir/irText/firProblems/SameJavaFieldReferences.fir.ir.txt @@ -2,8 +2,8 @@ FILE fqName: fileName:/SameJavaFieldReferences.kt FUN name:foo visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY VAR name:ref1 type:kotlin.reflect.KProperty0 [val] - PROPERTY_REFERENCE 'public final someJavaField: kotlin.String [val]' field='FIELD IR_EXTERNAL_JAVA_DECLARATION_STUB name:someJavaField type:kotlin.String visibility:public [final,static]' getter=null setter=null type=kotlin.reflect.KProperty0 origin=null + PROPERTY_REFERENCE 'public final someJavaField: kotlin.String' field='FIELD IR_EXTERNAL_JAVA_DECLARATION_STUB name:someJavaField type:kotlin.String visibility:public [final,static]' getter=null setter=null type=kotlin.reflect.KProperty0 origin=null <1>: VAR name:ref2 type:kotlin.reflect.KProperty0 [val] - PROPERTY_REFERENCE 'public final someJavaField: kotlin.String [val]' field='FIELD IR_EXTERNAL_JAVA_DECLARATION_STUB name:someJavaField type:kotlin.String visibility:public [final,static]' getter=null setter=null type=kotlin.reflect.KProperty0 origin=null + PROPERTY_REFERENCE 'public final someJavaField: kotlin.String' field='FIELD IR_EXTERNAL_JAVA_DECLARATION_STUB name:someJavaField type:kotlin.String visibility:public [final,static]' getter=null setter=null type=kotlin.reflect.KProperty0 origin=null <1>: diff --git a/compiler/testData/ir/irText/firProblems/SameJavaFieldReferences.ir.txt b/compiler/testData/ir/irText/firProblems/SameJavaFieldReferences.ir.txt index 6bd130ef829..9001fa701d8 100644 --- a/compiler/testData/ir/irText/firProblems/SameJavaFieldReferences.ir.txt +++ b/compiler/testData/ir/irText/firProblems/SameJavaFieldReferences.ir.txt @@ -2,6 +2,6 @@ FILE fqName: fileName:/SameJavaFieldReferences.kt FUN name:foo visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY VAR name:ref1 type:kotlin.reflect.KProperty0 [val] - PROPERTY_REFERENCE 'public final someJavaField: kotlin.String [const,val]' field='FIELD IR_EXTERNAL_JAVA_DECLARATION_STUB name:someJavaField type:kotlin.String visibility:public [final,static]' getter=null setter=null type=kotlin.reflect.KProperty0 origin=null + PROPERTY_REFERENCE 'public final someJavaField: kotlin.String' field='FIELD IR_EXTERNAL_JAVA_DECLARATION_STUB name:someJavaField type:kotlin.String visibility:public [final,static]' getter=null setter=null type=kotlin.reflect.KProperty0 origin=null VAR name:ref2 type:kotlin.reflect.KProperty0 [val] - PROPERTY_REFERENCE 'public final someJavaField: kotlin.String [const,val]' field='FIELD IR_EXTERNAL_JAVA_DECLARATION_STUB name:someJavaField type:kotlin.String visibility:public [final,static]' getter=null setter=null type=kotlin.reflect.KProperty0 origin=null + PROPERTY_REFERENCE 'public final someJavaField: kotlin.String' field='FIELD IR_EXTERNAL_JAVA_DECLARATION_STUB name:someJavaField type:kotlin.String visibility:public [final,static]' getter=null setter=null type=kotlin.reflect.KProperty0 origin=null diff --git a/compiler/testData/ir/irText/firProblems/SignatureClash.fir.ir.txt b/compiler/testData/ir/irText/firProblems/SignatureClash.fir.ir.txt index acc18dec7d7..cada2230c83 100644 --- a/compiler/testData/ir/irText/firProblems/SignatureClash.fir.ir.txt +++ b/compiler/testData/ir/irText/firProblems/SignatureClash.fir.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/SignatureClash.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Factory CONSTRUCTOR visibility:private <> () returnType:.Factory [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:Factory modality:FINAL visibility:public superTypes:[kotlin.Any]' FUN name:foo visibility:public modality:FINAL <> ($this:.Factory, a:kotlin.String) returnType:kotlin.String $this: VALUE_PARAMETER name: type:.Factory @@ -21,7 +21,7 @@ FILE fqName: fileName:/SignatureClash.kt CONST String type=kotlin.String value="Omega" 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -36,7 +36,7 @@ FILE fqName: fileName:/SignatureClash.kt $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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -53,16 +53,16 @@ FILE fqName: fileName:/SignatureClash.kt $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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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 + public open fun hashCode (): kotlin.Int 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 + public open fun toString (): kotlin.String 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 @@ -72,27 +72,27 @@ FILE fqName: fileName:/SignatureClash.kt $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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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 + public open fun hashCode (): kotlin.Int 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 + public open fun toString (): kotlin.String 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' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:DataClass modality:FINAL visibility:public [data] superTypes:[.Derived; .Delegate]' 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 .Derived public abstract fun bar (): kotlin.Unit declared in .Delegate $this: VALUE_PARAMETER name: type:.DataClass BLOCK_BODY @@ -113,7 +113,7 @@ FILE fqName: fileName:/SignatureClash.kt 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' + 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 GENERATED_DATA_CLASS_MEMBER name:copy visibility:public modality:FINAL <> ($this:.DataClass, delegate:.Delegate) returnType:.DataClass @@ -124,11 +124,11 @@ FILE fqName: fileName:/SignatureClash.kt 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 + CONSTRUCTOR_CALL 'public constructor (delegate: .Delegate) 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:equals visibility:public modality:OPEN <> ($this:.DataClass, other:kotlin.Any?) returnType:kotlin.Boolean [operator] overridden: - public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any $this: VALUE_PARAMETER name: type:.DataClass VALUE_PARAMETER name:other index:0 type:kotlin.Any? BLOCK_BODY @@ -137,28 +137,28 @@ FILE fqName: fileName:/SignatureClash.kt 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' + 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 [operator] declared in .DataClass' + 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 + if: CALL 'public final fun not (): kotlin.Boolean 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' + receiver: GET_VAR 'val tmp_0: .DataClass 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 [operator] declared in .DataClass' + 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: @@ -166,7 +166,7 @@ FILE fqName: fileName:/SignatureClash.kt $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 + CALL 'public open fun hashCode (): kotlin.Int 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:toString visibility:public modality:OPEN <> ($this:.DataClass) returnType:kotlin.String diff --git a/compiler/testData/ir/irText/firProblems/SignatureClash.ir.txt b/compiler/testData/ir/irText/firProblems/SignatureClash.ir.txt index 0ad1f3e60d2..d095ede5849 100644 --- a/compiler/testData/ir/irText/firProblems/SignatureClash.ir.txt +++ b/compiler/testData/ir/irText/firProblems/SignatureClash.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/SignatureClash.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Factory CONSTRUCTOR visibility:private <> () returnType:.Factory [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:Factory modality:FINAL visibility:public superTypes:[kotlin.Any]' FUN name:foo visibility:public modality:FINAL <> ($this:.Factory, a:kotlin.String) returnType:kotlin.String $this: VALUE_PARAMETER name: type:.Factory @@ -21,7 +21,7 @@ FILE fqName: fileName:/SignatureClash.kt CONST String type=kotlin.String value="Omega" 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -36,7 +36,7 @@ FILE fqName: fileName:/SignatureClash.kt $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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -53,16 +53,16 @@ FILE fqName: fileName:/SignatureClash.kt $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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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 + public open fun hashCode (): kotlin.Int 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 + public open fun toString (): kotlin.String 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 @@ -72,23 +72,23 @@ FILE fqName: fileName:/SignatureClash.kt $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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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 + public open fun hashCode (): kotlin.Int 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 + public open fun toString (): kotlin.String 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' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () 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] @@ -103,7 +103,7 @@ FILE fqName: fileName:/SignatureClash.kt 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 .Derived public abstract fun bar (): kotlin.Unit declared in .Delegate $this: VALUE_PARAMETER name: type:.DataClass BLOCK_BODY @@ -113,7 +113,7 @@ FILE fqName: fileName:/SignatureClash.kt 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' + 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 GENERATED_DATA_CLASS_MEMBER name:copy visibility:public modality:FINAL <> ($this:.DataClass, delegate:.Delegate) returnType:.DataClass @@ -124,12 +124,12 @@ FILE fqName: fileName:/SignatureClash.kt 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 + CONSTRUCTOR_CALL 'public constructor (delegate: .Delegate) 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 + public open fun toString (): kotlin.String declared in .Derived + public open fun toString (): kotlin.String 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' @@ -141,18 +141,18 @@ FILE fqName: fileName:/SignatureClash.kt 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 + public open fun hashCode (): kotlin.Int declared in .Derived + public open fun hashCode (): kotlin.Int 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 + CALL 'public open fun hashCode (): kotlin.Int 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Derived + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Delegate $this: VALUE_PARAMETER name: type:.DataClass VALUE_PARAMETER name:other index:0 type:kotlin.Any? BLOCK_BODY @@ -161,26 +161,26 @@ FILE fqName: fileName:/SignatureClash.kt 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' + 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 [operator] declared in .DataClass' + 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 + if: CALL 'public final fun not (): kotlin.Boolean 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' + receiver: GET_VAR 'val tmp_0: .DataClass 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 [operator] declared in .DataClass' + RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .DataClass' CONST Boolean type=kotlin.Boolean value=true diff --git a/compiler/testData/ir/irText/firProblems/SignatureComputationComplexJavaGeneric.fir.ir.txt b/compiler/testData/ir/irText/firProblems/SignatureComputationComplexJavaGeneric.fir.ir.txt index 2e99d62d88e..577c6e139de 100644 --- a/compiler/testData/ir/irText/firProblems/SignatureComputationComplexJavaGeneric.fir.ir.txt +++ b/compiler/testData/ir/irText/firProblems/SignatureComputationComplexJavaGeneric.fir.ir.txt @@ -5,7 +5,7 @@ FILE fqName: fileName:/test.kt CONSTRUCTOR visibility:public <> (x:T of .Test) returnType:.Test.Test> [primary] VALUE_PARAMETER name:x index:0 type:T of .Test BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .J' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .J' : T of .Test INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test modality:FINAL visibility:public superTypes:[.J.Test>]' PROPERTY name:x visibility:public modality:FINAL [val] @@ -23,20 +23,20 @@ FILE fqName: fileName:/test.kt $this: VALUE_PARAMETER name: type:.Test.Test> VALUE_PARAMETER name:b index:0 type:.J.B.Test> BLOCK_BODY - CALL 'public open fun output (x: @[EnhancedNullability] T of .Test): kotlin.Unit [fake_override] declared in .J.B' type=kotlin.Unit origin=null + CALL 'public open fun output (x: @[EnhancedNullability] T of .Test): kotlin.Unit declared in .J.B' type=kotlin.Unit origin=null $this: GET_VAR 'b: .J.B.Test> declared in .Test.test' type=.J.B.Test> origin=null x: CALL 'public final fun (): T of .Test declared in .Test' type=T of .Test origin=GET_PROPERTY $this: GET_VAR ': .Test.Test> declared in .Test.test' type=.Test.Test> 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 [fake_override,operator] declared in .J + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .J $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 .J + public open fun hashCode (): kotlin.Int declared in .J $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 .J + public open fun toString (): kotlin.String declared in .J $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/firProblems/SignatureComputationComplexJavaGeneric.ir.txt b/compiler/testData/ir/irText/firProblems/SignatureComputationComplexJavaGeneric.ir.txt index ea7ade7d7f1..41e8901068a 100644 --- a/compiler/testData/ir/irText/firProblems/SignatureComputationComplexJavaGeneric.ir.txt +++ b/compiler/testData/ir/irText/firProblems/SignatureComputationComplexJavaGeneric.ir.txt @@ -5,7 +5,7 @@ FILE fqName: fileName:/test.kt CONSTRUCTOR visibility:public <> (x:T of .Test) returnType:.Test.Test> [primary] VALUE_PARAMETER name:x index:0 type:T of .Test BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .J' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .J' : T of .Test INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test modality:FINAL visibility:public superTypes:[.J.Test>]' PROPERTY name:x visibility:public modality:FINAL [val] @@ -23,20 +23,20 @@ FILE fqName: fileName:/test.kt $this: VALUE_PARAMETER name: type:.Test.Test> VALUE_PARAMETER name:b index:0 type:.J.B.Test> BLOCK_BODY - CALL 'public open fun output (x: @[EnhancedNullability] T of .J): kotlin.Unit [fake_override] declared in .J.B' type=kotlin.Unit origin=null + CALL 'public open fun output (x: @[EnhancedNullability] T of .J): kotlin.Unit declared in .J.B' type=kotlin.Unit origin=null $this: GET_VAR 'b: .J.B.Test> declared in .Test.test' type=.J.B.Test> origin=null x: CALL 'public final fun (): T of .Test declared in .Test' type=T of .Test origin=GET_PROPERTY $this: GET_VAR ': .Test.Test> declared in .Test.test' type=.Test.Test> 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 [fake_override,operator] declared in .J + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .J $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 .J + public open fun hashCode (): kotlin.Int declared in .J $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 .J + public open fun toString (): kotlin.String declared in .J $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/firProblems/SimpleTypeMarker.ir.txt b/compiler/testData/ir/irText/firProblems/SimpleTypeMarker.ir.txt index 2a1b44bf546..412b336174d 100644 --- a/compiler/testData/ir/irText/firProblems/SimpleTypeMarker.ir.txt +++ b/compiler/testData/ir/irText/firProblems/SimpleTypeMarker.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/SimpleTypeMarker.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.SimpleTypeMarker 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -18,7 +18,7 @@ FILE fqName: fileName:/SimpleTypeMarker.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.SimpleType CONSTRUCTOR visibility:public <> () returnType:.SimpleType [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:SimpleType modality:FINAL visibility:public superTypes:[.SimpleTypeMarker]' FUN name:foo visibility:public modality:FINAL <> ($this:.SimpleType) returnType:kotlin.String $this: VALUE_PARAMETER name: type:.SimpleType @@ -27,16 +27,16 @@ FILE fqName: fileName:/SimpleTypeMarker.kt CONST String type=kotlin.String value="OK" 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 .SimpleTypeMarker + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .SimpleTypeMarker $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 .SimpleTypeMarker + public open fun hashCode (): kotlin.Int declared in .SimpleTypeMarker $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 .SimpleTypeMarker + public open fun toString (): kotlin.String declared in .SimpleTypeMarker $this: VALUE_PARAMETER name: type:kotlin.Any CLASS INTERFACE name:User modality:ABSTRACT visibility:public superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.User @@ -44,7 +44,7 @@ FILE fqName: fileName:/SimpleTypeMarker.kt $this: VALUE_PARAMETER name: type:.User $receiver: VALUE_PARAMETER name: type:.SimpleTypeMarker BLOCK_BODY - CALL 'public final fun require (value: kotlin.Boolean): kotlin.Unit [inline] declared in kotlin.PreconditionsKt' type=kotlin.Unit origin=null + CALL 'public final fun require (value: kotlin.Boolean): kotlin.Unit declared in kotlin.PreconditionsKt' type=kotlin.Unit origin=null value: TYPE_OP type=kotlin.Boolean origin=INSTANCEOF typeOperand=.SimpleType GET_VAR ': .SimpleTypeMarker declared in .User.bar' type=.SimpleTypeMarker origin=null RETURN type=kotlin.Nothing from='public open fun bar (): kotlin.String declared in .User' @@ -53,7 +53,7 @@ FILE fqName: fileName:/SimpleTypeMarker.kt GET_VAR ': .SimpleTypeMarker declared in .User.bar' type=.SimpleTypeMarker 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -68,13 +68,13 @@ FILE fqName: fileName:/SimpleTypeMarker.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.UserImpl CONSTRUCTOR visibility:public <> () returnType:.UserImpl [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:UserImpl modality:FINAL visibility:public superTypes:[kotlin.Any]' FUN name:bar visibility:public modality:FINAL <> ($this:.UserImpl, $receiver:.SimpleTypeMarker) returnType:kotlin.String $this: VALUE_PARAMETER name: type:.UserImpl $receiver: VALUE_PARAMETER name: type:.SimpleTypeMarker BLOCK_BODY - CALL 'public final fun require (value: kotlin.Boolean): kotlin.Unit [inline] declared in kotlin.PreconditionsKt' type=kotlin.Unit origin=null + CALL 'public final fun require (value: kotlin.Boolean): kotlin.Unit declared in kotlin.PreconditionsKt' type=kotlin.Unit origin=null value: TYPE_OP type=kotlin.Boolean origin=INSTANCEOF typeOperand=.SimpleType GET_VAR ': .SimpleTypeMarker declared in .UserImpl.bar' type=.SimpleTypeMarker origin=null RETURN type=kotlin.Nothing from='public final fun bar (): kotlin.String declared in .UserImpl' @@ -83,7 +83,7 @@ FILE fqName: fileName:/SimpleTypeMarker.kt GET_VAR ': .SimpleTypeMarker declared in .UserImpl.bar' type=.SimpleTypeMarker 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/firProblems/TypeParameterBounds.ir.txt b/compiler/testData/ir/irText/firProblems/TypeParameterBounds.ir.txt index 8c2ed198cc2..24b279bc2e9 100644 --- a/compiler/testData/ir/irText/firProblems/TypeParameterBounds.ir.txt +++ b/compiler/testData/ir/irText/firProblems/TypeParameterBounds.ir.txt @@ -6,7 +6,7 @@ FILE fqName: fileName:/TypeParameterBounds.kt CONSTRUCTOR visibility:public <> (name:kotlin.String) returnType:.TypeAnn [primary] VALUE_PARAMETER name:name index:0 type:kotlin.String BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:TypeAnn modality:OPEN visibility:public superTypes:[kotlin.Annotation]' PROPERTY name:name visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:name type:kotlin.String visibility:private [final] @@ -21,16 +21,16 @@ FILE fqName: fileName:/TypeParameterBounds.kt receiver: GET_VAR ': .TypeAnn declared in .TypeAnn.' type=.TypeAnn 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 [fake_override,operator] declared in kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any CLASS ANNOTATION_CLASS name:TypeParameterAnn modality:OPEN visibility:public superTypes:[kotlin.Annotation] annotations: @@ -38,20 +38,20 @@ FILE fqName: fileName:/TypeParameterBounds.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.TypeParameterAnn CONSTRUCTOR visibility:public <> () returnType:.TypeParameterAnn [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:TypeParameterAnn modality:OPEN visibility:public superTypes:[kotlin.Annotation]' 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 kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any CLASS ANNOTATION_CLASS name:TypeParameterAnnBinary modality:OPEN visibility:public superTypes:[kotlin.Annotation] annotations: @@ -60,26 +60,26 @@ FILE fqName: fileName:/TypeParameterBounds.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.TypeParameterAnnBinary CONSTRUCTOR visibility:public <> () returnType:.TypeParameterAnnBinary [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:TypeParameterAnnBinary modality:OPEN visibility:public superTypes:[kotlin.Annotation]' 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 kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any CLASS INTERFACE name:Simple modality:ABSTRACT visibility:public superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Simple 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -94,11 +94,11 @@ FILE fqName: fileName:/TypeParameterBounds.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.SimpleClass CONSTRUCTOR visibility:public <> () returnType:.SimpleClass [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:SimpleClass modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -114,7 +114,7 @@ FILE fqName: fileName:/TypeParameterBounds.kt TYPE_PARAMETER name:G index:0 variance: superTypes:[kotlin.Any?] reified:false 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -130,11 +130,11 @@ FILE fqName: fileName:/TypeParameterBounds.kt TYPE_PARAMETER name:G index:0 variance: superTypes:[kotlin.Any?] reified:false CONSTRUCTOR visibility:public <> () returnType:.GenericClass.GenericClass> [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:GenericClass modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -153,11 +153,11 @@ FILE fqName: fileName:/TypeParameterBounds.kt TypeParameterAnnBinary CONSTRUCTOR visibility:public <> () returnType:.SimpleParameter.SimpleParameter> [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:SimpleParameter modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -175,11 +175,11 @@ FILE fqName: fileName:/TypeParameterBounds.kt TypeParameterAnn CONSTRUCTOR visibility:public <> () returnType:.InterfaceBound.InterfaceBound> [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:InterfaceBound modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -197,11 +197,11 @@ FILE fqName: fileName:/TypeParameterBounds.kt TypeParameterAnn CONSTRUCTOR visibility:public <> () returnType:.ClassBound.ClassBound> [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:ClassBound modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -217,11 +217,11 @@ FILE fqName: fileName:/TypeParameterBounds.kt TYPE_PARAMETER name:T index:0 variance: superTypes:[@[TypeAnn(name = 'Generic')] .Generic<@[TypeAnn(name = 'Simple')] .Simple>] reified:false CONSTRUCTOR visibility:public <> () returnType:.InterfaceBoundGeneric.InterfaceBoundGeneric> [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:InterfaceBoundGeneric modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -237,11 +237,11 @@ FILE fqName: fileName:/TypeParameterBounds.kt TYPE_PARAMETER name:T index:0 variance: superTypes:[@[TypeAnn(name = 'GenericClass')] .GenericClass<@[TypeAnn(name = 'SimpleClass')] .SimpleClass>] reified:false CONSTRUCTOR visibility:public <> () returnType:.ClassBoundGeneric.ClassBoundGeneric> [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:ClassBoundGeneric modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -260,11 +260,11 @@ FILE fqName: fileName:/TypeParameterBounds.kt TypeParameterAnn CONSTRUCTOR visibility:public <> () returnType:.TypeParameterAsBound.TypeParameterAsBound, T of .TypeParameterAsBound> [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:TypeParameterAsBound modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/firProblems/TypeParameterInNestedClass.fir.ir.txt b/compiler/testData/ir/irText/firProblems/TypeParameterInNestedClass.fir.ir.txt index 2b3d88734fb..3da202a87c0 100644 --- a/compiler/testData/ir/irText/firProblems/TypeParameterInNestedClass.fir.ir.txt +++ b/compiler/testData/ir/irText/firProblems/TypeParameterInNestedClass.fir.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/TypeParameterInNestedClass.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Retry CONSTRUCTOR visibility:private <> () returnType:.Retry [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:Retry modality:FINAL visibility:public superTypes:[kotlin.Any]' CLASS CLASS name:Builder modality:FINAL visibility:public superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Retry.Builder.Retry.Builder> @@ -11,7 +11,7 @@ FILE fqName: fileName:/TypeParameterInNestedClass.kt CONSTRUCTOR visibility:public <> (action:kotlin.coroutines.SuspendFunction0.Retry.Builder>) returnType:.Retry.Builder.Retry.Builder> [primary] VALUE_PARAMETER name:action index:0 type:kotlin.coroutines.SuspendFunction0.Retry.Builder> BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Builder modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:action visibility:private modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:action type:kotlin.coroutines.SuspendFunction0.Retry.Builder> visibility:private [final] @@ -26,7 +26,7 @@ FILE fqName: fileName:/TypeParameterInNestedClass.kt receiver: GET_VAR ': .Retry.Builder.Retry.Builder> declared in .Retry.Builder.' type=.Retry.Builder.Retry.Builder> 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -43,20 +43,20 @@ FILE fqName: fileName:/TypeParameterInNestedClass.kt VALUE_PARAMETER name:action index:0 type:kotlin.Function0.Retry.withExponentialBackoff> BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun withExponentialBackoff (action: kotlin.Function0.Retry.withExponentialBackoff>): .Retry.Builder.Retry.withExponentialBackoff> declared in .Retry' - CONSTRUCTOR_CALL 'public constructor (action: kotlin.coroutines.SuspendFunction0.Retry.Builder>) [primary] declared in .Retry.Builder' type=.Retry.Builder.Retry.withExponentialBackoff> origin=null + CONSTRUCTOR_CALL 'public constructor (action: kotlin.coroutines.SuspendFunction0.Retry.Builder>) declared in .Retry.Builder' type=.Retry.Builder.Retry.withExponentialBackoff> origin=null : W of .Retry.withExponentialBackoff action: BLOCK type=kotlin.coroutines.SuspendFunction0.Retry.Builder> origin=SUSPEND_CONVERSION FUN ADAPTER_FOR_SUSPEND_CONVERSION name:suspendConversion visibility:local modality:FINAL <> ($receiver:kotlin.Function0.Retry.withExponentialBackoff>) returnType:B of .Retry.Builder [suspend] $receiver: VALUE_PARAMETER ADAPTER_PARAMETER_FOR_SUSPEND_CONVERSION name:callee type:kotlin.Function0.Retry.withExponentialBackoff> BLOCK_BODY - RETURN type=kotlin.Nothing from='local final fun suspendConversion (): B of .Retry.Builder [suspend] declared in .Retry.withExponentialBackoff' - CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=B of .Retry.Builder origin=null + RETURN type=kotlin.Nothing from='local final fun suspendConversion (): B of .Retry.Builder declared in .Retry.withExponentialBackoff' + CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=B of .Retry.Builder origin=null $this: GET_VAR 'callee: kotlin.Function0.Retry.withExponentialBackoff> declared in .Retry.withExponentialBackoff.suspendConversion' type=kotlin.Function0.Retry.withExponentialBackoff> origin=null - FUNCTION_REFERENCE 'local final fun suspendConversion (): B of .Retry.Builder [suspend] declared in .Retry.withExponentialBackoff' type=kotlin.coroutines.SuspendFunction0.Retry.Builder> origin=SUSPEND_CONVERSION reflectionTarget=null + FUNCTION_REFERENCE 'local final fun suspendConversion (): B of .Retry.Builder declared in .Retry.withExponentialBackoff' type=kotlin.coroutines.SuspendFunction0.Retry.Builder> origin=SUSPEND_CONVERSION reflectionTarget=null $receiver: GET_VAR 'action: kotlin.Function0.Retry.withExponentialBackoff> declared in .Retry.withExponentialBackoff' type=kotlin.Function0.Retry.withExponentialBackoff> 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/firProblems/TypeParameterInNestedClass.ir.txt b/compiler/testData/ir/irText/firProblems/TypeParameterInNestedClass.ir.txt index 29db8904aae..20ee5cf6cdf 100644 --- a/compiler/testData/ir/irText/firProblems/TypeParameterInNestedClass.ir.txt +++ b/compiler/testData/ir/irText/firProblems/TypeParameterInNestedClass.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/TypeParameterInNestedClass.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Retry CONSTRUCTOR visibility:private <> () returnType:.Retry [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:Retry modality:FINAL visibility:public superTypes:[kotlin.Any]' CLASS CLASS name:Builder modality:FINAL visibility:public superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Retry.Builder.Retry.Builder> @@ -11,7 +11,7 @@ FILE fqName: fileName:/TypeParameterInNestedClass.kt CONSTRUCTOR visibility:public <> (action:kotlin.coroutines.SuspendFunction0.Retry.Builder>) returnType:.Retry.Builder.Retry.Builder> [primary] VALUE_PARAMETER name:action index:0 type:kotlin.coroutines.SuspendFunction0.Retry.Builder> BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Builder modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:action visibility:private modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:action type:kotlin.coroutines.SuspendFunction0.Retry.Builder> visibility:private [final] @@ -26,7 +26,7 @@ FILE fqName: fileName:/TypeParameterInNestedClass.kt receiver: GET_VAR ': .Retry.Builder.Retry.Builder> declared in .Retry.Builder.' type=.Retry.Builder.Retry.Builder> 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -43,20 +43,20 @@ FILE fqName: fileName:/TypeParameterInNestedClass.kt VALUE_PARAMETER name:action index:0 type:kotlin.Function0.Retry.withExponentialBackoff> BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun withExponentialBackoff (action: kotlin.Function0.Retry.withExponentialBackoff>): .Retry.Builder.Retry.withExponentialBackoff> declared in .Retry' - CONSTRUCTOR_CALL 'public constructor (action: kotlin.coroutines.SuspendFunction0.Retry.Builder>) [primary] declared in .Retry.Builder' type=.Retry.Builder.Retry.withExponentialBackoff> origin=null + CONSTRUCTOR_CALL 'public constructor (action: kotlin.coroutines.SuspendFunction0.Retry.Builder>) declared in .Retry.Builder' type=.Retry.Builder.Retry.withExponentialBackoff> origin=null : W of .Retry.withExponentialBackoff action: BLOCK type=kotlin.coroutines.SuspendFunction0.Retry.withExponentialBackoff> origin=SUSPEND_CONVERSION FUN ADAPTER_FOR_SUSPEND_CONVERSION name:suspendConversion0 visibility:local modality:FINAL <> ($receiver:kotlin.Function0.Retry.withExponentialBackoff>) returnType:W of .Retry.withExponentialBackoff [suspend] $receiver: VALUE_PARAMETER ADAPTER_PARAMETER_FOR_SUSPEND_CONVERSION name:callee type:kotlin.Function0.Retry.withExponentialBackoff> BLOCK_BODY - RETURN type=kotlin.Nothing from='local final fun suspendConversion0 (): W of .Retry.withExponentialBackoff [suspend] declared in .Retry.withExponentialBackoff' - CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=W of .Retry.withExponentialBackoff origin=null + RETURN type=kotlin.Nothing from='local final fun suspendConversion0 (): W of .Retry.withExponentialBackoff declared in .Retry.withExponentialBackoff' + CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=W of .Retry.withExponentialBackoff origin=null $this: GET_VAR 'callee: kotlin.Function0.Retry.withExponentialBackoff> declared in .Retry.withExponentialBackoff.suspendConversion0' type=kotlin.Function0.Retry.withExponentialBackoff> origin=null - FUNCTION_REFERENCE 'local final fun suspendConversion0 (): W of .Retry.withExponentialBackoff [suspend] declared in .Retry.withExponentialBackoff' type=kotlin.coroutines.SuspendFunction0.Retry.withExponentialBackoff> origin=SUSPEND_CONVERSION reflectionTarget=null + FUNCTION_REFERENCE 'local final fun suspendConversion0 (): W of .Retry.withExponentialBackoff declared in .Retry.withExponentialBackoff' type=kotlin.coroutines.SuspendFunction0.Retry.withExponentialBackoff> origin=SUSPEND_CONVERSION reflectionTarget=null $receiver: GET_VAR 'action: kotlin.Function0.Retry.withExponentialBackoff> declared in .Retry.withExponentialBackoff' type=kotlin.Function0.Retry.withExponentialBackoff> 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/firProblems/V8ArrayToList.fir.ir.txt b/compiler/testData/ir/irText/firProblems/V8ArrayToList.fir.ir.txt index 30133ccae28..99af3cdcf37 100644 --- a/compiler/testData/ir/irText/firProblems/V8ArrayToList.fir.ir.txt +++ b/compiler/testData/ir/irText/firProblems/V8ArrayToList.fir.ir.txt @@ -3,11 +3,11 @@ FILE fqName: fileName:/v8arrayToList.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.V8Array CONSTRUCTOR visibility:public <> () returnType:.V8Array [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:V8Array modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -21,12 +21,12 @@ FILE fqName: fileName:/v8arrayToList.kt FUN name:box visibility:public modality:FINAL <> () returnType:kotlin.String BLOCK_BODY VAR name:array type:.V8Array [val] - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .V8Array' type=.V8Array origin=null + CONSTRUCTOR_CALL 'public constructor () declared in .V8Array' type=.V8Array origin=null VAR name:list type:kotlin.collections.List [val] TYPE_OP type=kotlin.collections.List origin=CAST typeOperand=kotlin.collections.List CALL 'public open fun toList (array: @[FlexibleNullability] .V8Array?): @[FlexibleNullability] kotlin.collections.MutableList? declared in .Utils' type=@[FlexibleNullability] kotlin.collections.MutableList? origin=null - array: GET_VAR 'val array: .V8Array [val] declared in .box' type=.V8Array origin=null + array: GET_VAR 'val array: .V8Array declared in .box' type=.V8Array origin=null RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' - CALL 'public abstract fun get (index: kotlin.Int): E of kotlin.collections.List [operator] declared in kotlin.collections.List' type=kotlin.String origin=null - $this: GET_VAR 'val list: kotlin.collections.List [val] declared in .box' type=kotlin.collections.List origin=null + CALL 'public abstract fun get (index: kotlin.Int): E of kotlin.collections.List declared in kotlin.collections.List' type=kotlin.String origin=null + $this: GET_VAR 'val list: kotlin.collections.List declared in .box' type=kotlin.collections.List origin=null index: CONST Int type=kotlin.Int value=0 diff --git a/compiler/testData/ir/irText/firProblems/V8ArrayToList.ir.txt b/compiler/testData/ir/irText/firProblems/V8ArrayToList.ir.txt index c599d97fa3b..b1ed4b70cd5 100644 --- a/compiler/testData/ir/irText/firProblems/V8ArrayToList.ir.txt +++ b/compiler/testData/ir/irText/firProblems/V8ArrayToList.ir.txt @@ -3,11 +3,11 @@ FILE fqName: fileName:/v8arrayToList.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.V8Array CONSTRUCTOR visibility:public <> () returnType:.V8Array [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:V8Array modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -21,12 +21,12 @@ FILE fqName: fileName:/v8arrayToList.kt FUN name:box visibility:public modality:FINAL <> () returnType:kotlin.String BLOCK_BODY VAR name:array type:.V8Array [val] - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .V8Array' type=.V8Array origin=null + CONSTRUCTOR_CALL 'public constructor () declared in .V8Array' type=.V8Array origin=null VAR name:list type:kotlin.collections.List [val] TYPE_OP type=kotlin.collections.List origin=CAST typeOperand=kotlin.collections.List CALL 'public open fun toList (array: @[FlexibleNullability] .V8Array?): @[FlexibleNullability] kotlin.collections.MutableList? declared in .Utils' type=@[FlexibleNullability] kotlin.collections.MutableList? origin=null - array: GET_VAR 'val array: .V8Array [val] declared in .box' type=.V8Array origin=null + array: GET_VAR 'val array: .V8Array declared in .box' type=.V8Array origin=null RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' - CALL 'public abstract fun get (index: kotlin.Int): E of kotlin.collections.List [operator] declared in kotlin.collections.List' type=kotlin.String origin=GET_ARRAY_ELEMENT - $this: GET_VAR 'val list: kotlin.collections.List [val] declared in .box' type=kotlin.collections.List origin=null + CALL 'public abstract fun get (index: kotlin.Int): E of kotlin.collections.List declared in kotlin.collections.List' type=kotlin.String origin=GET_ARRAY_ELEMENT + $this: GET_VAR 'val list: kotlin.collections.List declared in .box' type=kotlin.collections.List origin=null index: CONST Int type=kotlin.Int value=0 diff --git a/compiler/testData/ir/irText/firProblems/VarInInit.ir.txt b/compiler/testData/ir/irText/firProblems/VarInInit.ir.txt index da4d2165685..402ca8c1381 100644 --- a/compiler/testData/ir/irText/firProblems/VarInInit.ir.txt +++ b/compiler/testData/ir/irText/firProblems/VarInInit.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/VarInInit.kt CONSTRUCTOR visibility:public <> (foo:kotlin.Int) returnType:.Some [primary] VALUE_PARAMETER name:foo index:0 type:kotlin.Int BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Some modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:foo visibility:public modality:FINAL [var] FIELD PROPERTY_BACKING_FIELD name:foo type:kotlin.Int visibility:private @@ -39,7 +39,7 @@ FILE fqName: fileName:/VarInInit.kt : CONST Int type=kotlin.Int value=0 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/firProblems/candidateSymbol.fir.ir.txt b/compiler/testData/ir/irText/firProblems/candidateSymbol.fir.ir.txt index f5b3672c761..c700c30cb47 100644 --- a/compiler/testData/ir/irText/firProblems/candidateSymbol.fir.ir.txt +++ b/compiler/testData/ir/irText/firProblems/candidateSymbol.fir.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/candidateSymbol.kt CONSTRUCTOR visibility:public <> (symbol:.AbstractFirBasedSymbol<*>) returnType:.Candidate [primary] VALUE_PARAMETER name:symbol index:0 type:.AbstractFirBasedSymbol<*> BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Candidate modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:symbol visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:symbol type:.AbstractFirBasedSymbol<*> visibility:private [final] @@ -19,7 +19,7 @@ FILE fqName: fileName:/candidateSymbol.kt receiver: GET_VAR ': .Candidate declared in .Candidate.' type=.Candidate 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -35,7 +35,7 @@ FILE fqName: fileName:/candidateSymbol.kt TYPE_PARAMETER name:E index:0 variance: superTypes:[.FirSymbolOwner.AbstractFirBasedSymbol>; .FirDeclaration] reified:false CONSTRUCTOR visibility:public <> () returnType:.AbstractFirBasedSymbol.AbstractFirBasedSymbol> [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:AbstractFirBasedSymbol modality:ABSTRACT visibility:public superTypes:[kotlin.Any]' PROPERTY name:fir visibility:public modality:FINAL [lateinit,var] FIELD PROPERTY_BACKING_FIELD name:fir type:E of .AbstractFirBasedSymbol visibility:public @@ -56,7 +56,7 @@ FILE fqName: fileName:/candidateSymbol.kt value: GET_VAR ': E of .AbstractFirBasedSymbol declared in .AbstractFirBasedSymbol.' type=E of .AbstractFirBasedSymbol 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -71,7 +71,7 @@ FILE fqName: fileName:/candidateSymbol.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.FirDeclaration 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -91,7 +91,7 @@ FILE fqName: fileName:/candidateSymbol.kt $this: VALUE_PARAMETER name: type:.FirSymbolOwner.FirSymbolOwner> 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -107,7 +107,7 @@ FILE fqName: fileName:/candidateSymbol.kt TYPE_PARAMETER name:F index:0 variance: superTypes:[.FirCallableMemberDeclaration.FirCallableMemberDeclaration>] reified:false PROPERTY name:symbol visibility:public modality:ABSTRACT [val] overridden: - public abstract symbol: .AbstractFirBasedSymbol.FirSymbolOwner> [val] + public abstract symbol: .AbstractFirBasedSymbol.FirSymbolOwner> FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:ABSTRACT <> ($this:.FirCallableMemberDeclaration.FirCallableMemberDeclaration>) returnType:.AbstractFirBasedSymbol.FirCallableMemberDeclaration> correspondingProperty: PROPERTY name:symbol visibility:public modality:ABSTRACT [val] overridden: @@ -115,19 +115,19 @@ FILE fqName: fileName:/candidateSymbol.kt $this: VALUE_PARAMETER name: type:.FirCallableMemberDeclaration.FirCallableMemberDeclaration> 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 .FirSymbolOwner - public open fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .FirDeclaration + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .FirSymbolOwner + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .FirDeclaration $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 .FirSymbolOwner - public open fun hashCode (): kotlin.Int [fake_override] declared in .FirDeclaration + public open fun hashCode (): kotlin.Int declared in .FirSymbolOwner + public open fun hashCode (): kotlin.Int declared in .FirDeclaration $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 .FirSymbolOwner - public open fun toString (): kotlin.String [fake_override] declared in .FirDeclaration + public open fun toString (): kotlin.String declared in .FirSymbolOwner + public open fun toString (): kotlin.String declared in .FirDeclaration $this: VALUE_PARAMETER name: type:kotlin.Any FUN name:foo visibility:public modality:FINAL <> (candidate:.Candidate) returnType:kotlin.Unit VALUE_PARAMETER name:candidate index:0 type:.Candidate @@ -141,12 +141,12 @@ FILE fqName: fileName:/candidateSymbol.kt if: WHEN type=kotlin.Boolean origin=ANDAND BRANCH if: TYPE_OP type=kotlin.Boolean origin=INSTANCEOF typeOperand=.FirCallableMemberDeclaration<*> - GET_VAR 'val me: .FirSymbolOwner<*> [val] declared in .foo' type=.FirSymbolOwner<*> origin=null - then: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ + GET_VAR 'val me: .FirSymbolOwner<*> declared in .foo' type=.FirSymbolOwner<*> origin=null + then: CALL 'public final fun not (): kotlin.Boolean 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: CALL 'public abstract fun (): .AbstractFirBasedSymbol.FirCallableMemberDeclaration> declared in .FirCallableMemberDeclaration' type=.AbstractFirBasedSymbol.FirCallableMemberDeclaration<*>> origin=GET_PROPERTY $this: TYPE_OP type=.FirCallableMemberDeclaration<*> origin=IMPLICIT_CAST typeOperand=.FirCallableMemberDeclaration<*> - GET_VAR 'val me: .FirSymbolOwner<*> [val] declared in .foo' type=.FirSymbolOwner<*> origin=null + GET_VAR 'val me: .FirSymbolOwner<*> declared in .foo' type=.FirSymbolOwner<*> origin=null arg1: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true diff --git a/compiler/testData/ir/irText/firProblems/candidateSymbol.ir.txt b/compiler/testData/ir/irText/firProblems/candidateSymbol.ir.txt index 5b1993bfb79..405494a2848 100644 --- a/compiler/testData/ir/irText/firProblems/candidateSymbol.ir.txt +++ b/compiler/testData/ir/irText/firProblems/candidateSymbol.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/candidateSymbol.kt CONSTRUCTOR visibility:public <> (symbol:.AbstractFirBasedSymbol<*>) returnType:.Candidate [primary] VALUE_PARAMETER name:symbol index:0 type:.AbstractFirBasedSymbol<*> BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Candidate modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:symbol visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:symbol type:.AbstractFirBasedSymbol<*> visibility:private [final] @@ -19,7 +19,7 @@ FILE fqName: fileName:/candidateSymbol.kt receiver: GET_VAR ': .Candidate declared in .Candidate.' type=.Candidate 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -35,7 +35,7 @@ FILE fqName: fileName:/candidateSymbol.kt TYPE_PARAMETER name:E index:0 variance: superTypes:[.FirSymbolOwner.AbstractFirBasedSymbol>; .FirDeclaration] reified:false CONSTRUCTOR visibility:public <> () returnType:.AbstractFirBasedSymbol.AbstractFirBasedSymbol> [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:AbstractFirBasedSymbol modality:ABSTRACT visibility:public superTypes:[kotlin.Any]' PROPERTY name:fir visibility:public modality:FINAL [lateinit,var] FIELD PROPERTY_BACKING_FIELD name:fir type:E of .AbstractFirBasedSymbol visibility:public @@ -56,7 +56,7 @@ FILE fqName: fileName:/candidateSymbol.kt value: GET_VAR ': E of .AbstractFirBasedSymbol declared in .AbstractFirBasedSymbol.' type=E of .AbstractFirBasedSymbol 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -71,7 +71,7 @@ FILE fqName: fileName:/candidateSymbol.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.FirDeclaration 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -91,7 +91,7 @@ FILE fqName: fileName:/candidateSymbol.kt $this: VALUE_PARAMETER name: type:.FirSymbolOwner.FirSymbolOwner> 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -107,7 +107,7 @@ FILE fqName: fileName:/candidateSymbol.kt TYPE_PARAMETER name:F index:0 variance: superTypes:[.FirCallableMemberDeclaration.FirCallableMemberDeclaration>] reified:false PROPERTY name:symbol visibility:public modality:ABSTRACT [val] overridden: - public abstract symbol: .AbstractFirBasedSymbol.FirSymbolOwner> [val] + public abstract symbol: .AbstractFirBasedSymbol.FirSymbolOwner> FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:ABSTRACT <> ($this:.FirCallableMemberDeclaration.FirCallableMemberDeclaration>) returnType:.AbstractFirBasedSymbol.FirCallableMemberDeclaration> correspondingProperty: PROPERTY name:symbol visibility:public modality:ABSTRACT [val] overridden: @@ -115,19 +115,19 @@ FILE fqName: fileName:/candidateSymbol.kt $this: VALUE_PARAMETER name: type:.FirCallableMemberDeclaration.FirCallableMemberDeclaration> 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 .FirSymbolOwner - public open fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .FirDeclaration + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .FirSymbolOwner + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .FirDeclaration $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 .FirSymbolOwner - public open fun hashCode (): kotlin.Int [fake_override] declared in .FirDeclaration + public open fun hashCode (): kotlin.Int declared in .FirSymbolOwner + public open fun hashCode (): kotlin.Int declared in .FirDeclaration $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 .FirSymbolOwner - public open fun toString (): kotlin.String [fake_override] declared in .FirDeclaration + public open fun toString (): kotlin.String declared in .FirSymbolOwner + public open fun toString (): kotlin.String declared in .FirDeclaration $this: VALUE_PARAMETER name: type:kotlin.Any FUN name:foo visibility:public modality:FINAL <> (candidate:.Candidate) returnType:kotlin.Unit VALUE_PARAMETER name:candidate index:0 type:.Candidate @@ -141,12 +141,12 @@ FILE fqName: fileName:/candidateSymbol.kt if: WHEN type=kotlin.Boolean origin=ANDAND BRANCH if: TYPE_OP type=kotlin.Boolean origin=INSTANCEOF typeOperand=.FirCallableMemberDeclaration<*> - GET_VAR 'val me: .FirSymbolOwner<*> [val] declared in .foo' type=.FirSymbolOwner<*> origin=null - then: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ + GET_VAR 'val me: .FirSymbolOwner<*> declared in .foo' type=.FirSymbolOwner<*> origin=null + then: CALL 'public final fun not (): kotlin.Boolean 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: CALL 'public abstract fun (): .AbstractFirBasedSymbol.FirCallableMemberDeclaration> declared in .FirCallableMemberDeclaration' type=.AbstractFirBasedSymbol.FirCallableMemberDeclaration<*>> origin=GET_PROPERTY $this: TYPE_OP type=.FirCallableMemberDeclaration.FirCallableMemberDeclaration<*>> origin=IMPLICIT_CAST typeOperand=.FirCallableMemberDeclaration.FirCallableMemberDeclaration<*>> - GET_VAR 'val me: .FirSymbolOwner<*> [val] declared in .foo' type=.FirSymbolOwner<*> origin=null + GET_VAR 'val me: .FirSymbolOwner<*> declared in .foo' type=.FirSymbolOwner<*> origin=null arg1: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true diff --git a/compiler/testData/ir/irText/firProblems/cannotCastToFunction.fir.ir.txt b/compiler/testData/ir/irText/firProblems/cannotCastToFunction.fir.ir.txt index 6ad32facdc2..07380e6e740 100644 --- a/compiler/testData/ir/irText/firProblems/cannotCastToFunction.fir.ir.txt +++ b/compiler/testData/ir/irText/firProblems/cannotCastToFunction.fir.ir.txt @@ -3,11 +3,11 @@ FILE fqName: fileName:/cannotCastToFunction.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.IrElement CONSTRUCTOR visibility:public <> () returnType:.IrElement [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:IrElement modality:OPEN 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -64,6 +64,6 @@ FILE fqName: fileName:/cannotCastToFunction.kt CALL 'public final fun dump (normalizeNames: kotlin.Boolean, stableOrder: kotlin.Boolean): kotlin.String declared in ' type=kotlin.String origin=null $receiver: GET_VAR 'p0: .IrElement declared in .dump.dump' type=.IrElement origin=null RETURN type=kotlin.Nothing from='public final fun dump (data: .IrElement, dumpStrategy: kotlin.String): kotlin.String declared in ' - CALL 'public abstract fun invoke (p1: P1 of kotlin.Function1): R of kotlin.Function1 [operator] declared in kotlin.Function1' type=kotlin.String origin=INVOKE - $this: GET_VAR 'val dump: @[ExtensionFunctionType] kotlin.Function1<.IrElement, kotlin.String> [val] declared in .dump' type=@[ExtensionFunctionType] kotlin.Function1<.IrElement, kotlin.String> origin=VARIABLE_AS_FUNCTION + CALL 'public abstract fun invoke (p1: P1 of kotlin.Function1): R of kotlin.Function1 declared in kotlin.Function1' type=kotlin.String origin=INVOKE + $this: GET_VAR 'val dump: @[ExtensionFunctionType] kotlin.Function1<.IrElement, kotlin.String> declared in .dump' type=@[ExtensionFunctionType] kotlin.Function1<.IrElement, kotlin.String> origin=VARIABLE_AS_FUNCTION p1: GET_VAR 'data: .IrElement declared in .dump' type=.IrElement origin=null diff --git a/compiler/testData/ir/irText/firProblems/cannotCastToFunction.ir.txt b/compiler/testData/ir/irText/firProblems/cannotCastToFunction.ir.txt index 683be48c925..0b821b5b421 100644 --- a/compiler/testData/ir/irText/firProblems/cannotCastToFunction.ir.txt +++ b/compiler/testData/ir/irText/firProblems/cannotCastToFunction.ir.txt @@ -3,11 +3,11 @@ FILE fqName: fileName:/cannotCastToFunction.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.IrElement CONSTRUCTOR visibility:public <> () returnType:.IrElement [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:IrElement modality:OPEN 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -66,6 +66,6 @@ FILE fqName: fileName:/cannotCastToFunction.kt $receiver: GET_VAR 'p0: .IrElement declared in .dump.dump' type=.IrElement origin=null FUNCTION_REFERENCE 'local final fun dump (p0: .IrElement): kotlin.String declared in .dump' type=kotlin.Function1<.IrElement, kotlin.String> origin=ADAPTED_FUNCTION_REFERENCE reflectionTarget=public final fun dump (normalizeNames: kotlin.Boolean, stableOrder: kotlin.Boolean): kotlin.String declared in RETURN type=kotlin.Nothing from='public final fun dump (data: .IrElement, dumpStrategy: kotlin.String): kotlin.String declared in ' - CALL 'public abstract fun invoke (p1: P1 of kotlin.Function1): R of kotlin.Function1 [operator] declared in kotlin.Function1' type=kotlin.String origin=INVOKE - $this: GET_VAR 'val dump: @[ExtensionFunctionType] kotlin.Function1<.IrElement, kotlin.String> [val] declared in .dump' type=@[ExtensionFunctionType] kotlin.Function1<.IrElement, kotlin.String> origin=VARIABLE_AS_FUNCTION + CALL 'public abstract fun invoke (p1: P1 of kotlin.Function1): R of kotlin.Function1 declared in kotlin.Function1' type=kotlin.String origin=INVOKE + $this: GET_VAR 'val dump: @[ExtensionFunctionType] kotlin.Function1<.IrElement, kotlin.String> declared in .dump' type=@[ExtensionFunctionType] kotlin.Function1<.IrElement, kotlin.String> origin=VARIABLE_AS_FUNCTION p1: GET_VAR 'data: .IrElement declared in .dump' type=.IrElement origin=null diff --git a/compiler/testData/ir/irText/firProblems/coercionToUnitForNestedWhen.fir.ir.txt b/compiler/testData/ir/irText/firProblems/coercionToUnitForNestedWhen.fir.ir.txt index d0d54761234..d4c5ac1e225 100644 --- a/compiler/testData/ir/irText/firProblems/coercionToUnitForNestedWhen.fir.ir.txt +++ b/compiler/testData/ir/irText/firProblems/coercionToUnitForNestedWhen.fir.ir.txt @@ -14,7 +14,7 @@ FILE fqName: fileName:/coercionToUnitForNestedWhen.kt RETURN type=kotlin.Nothing from='private final fun nextChar (): kotlin.Char? declared in ' BLOCK type=kotlin.Char? origin=SAFE_CALL VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:kotlin.Int? [val] - CALL 'public final fun takeUnless (predicate: kotlin.Function1): T of kotlin.StandardKt.takeUnless? [inline] declared in kotlin.StandardKt' type=kotlin.Int? origin=null + CALL 'public final fun takeUnless (predicate: kotlin.Function1): T of kotlin.StandardKt.takeUnless? declared in kotlin.StandardKt' type=kotlin.Int? origin=null : kotlin.Int $receiver: CALL 'public open fun read (): kotlin.Int declared in java.io.Reader' type=kotlin.Int origin=null $this: GET_VAR ': java.io.Reader declared in .nextChar' type=java.io.Reader origin=null @@ -29,13 +29,13 @@ FILE fqName: fileName:/coercionToUnitForNestedWhen.kt WHEN type=kotlin.Char? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_0: kotlin.Int? [val] declared in .nextChar' type=kotlin.Int? origin=null + arg0: GET_VAR 'val tmp_0: kotlin.Int? declared in .nextChar' type=kotlin.Int? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public open fun toChar (): kotlin.Char declared in kotlin.Int' type=kotlin.Char origin=null - $this: GET_VAR 'val tmp_0: kotlin.Int? [val] declared in .nextChar' type=kotlin.Int? origin=null + $this: GET_VAR 'val tmp_0: kotlin.Int? declared in .nextChar' type=kotlin.Int? origin=null FUN name:consumeRestOfQuotedSequence visibility:public modality:FINAL <> ($receiver:java.io.Reader, sb:java.lang.StringBuilder, quote:kotlin.Char) returnType:kotlin.Unit $receiver: VALUE_PARAMETER name: type:java.io.Reader VALUE_PARAMETER name:sb index:0 type:java.lang.StringBuilder @@ -47,13 +47,13 @@ FILE fqName: fileName:/coercionToUnitForNestedWhen.kt WHILE label=null origin=WHILE_LOOP condition: WHEN type=kotlin.Boolean origin=ANDAND BRANCH - if: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ + if: CALL 'public final fun not (): kotlin.Boolean 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_VAR 'var ch: kotlin.Char? [var] declared in .consumeRestOfQuotedSequence' type=kotlin.Char? origin=null + arg0: GET_VAR 'var ch: kotlin.Char? declared in .consumeRestOfQuotedSequence' type=kotlin.Char? origin=null arg1: CONST Null type=kotlin.Nothing? value=null - then: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ + then: CALL 'public final fun not (): kotlin.Boolean 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_VAR 'var ch: kotlin.Char? [var] declared in .consumeRestOfQuotedSequence' type=kotlin.Char? origin=null + arg0: GET_VAR 'var ch: kotlin.Char? declared in .consumeRestOfQuotedSequence' type=kotlin.Char? origin=null arg1: GET_VAR 'quote: kotlin.Char declared in .consumeRestOfQuotedSequence' type=kotlin.Char origin=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true @@ -63,7 +63,7 @@ FILE fqName: fileName:/coercionToUnitForNestedWhen.kt WHEN type=java.lang.StringBuilder? origin=IF BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'var ch: kotlin.Char? [var] declared in .consumeRestOfQuotedSequence' type=kotlin.Char? origin=null + arg0: GET_VAR 'var ch: kotlin.Char? declared in .consumeRestOfQuotedSequence' type=kotlin.Char? origin=null arg1: CONST Char type=kotlin.Char value='\\' then: BLOCK type=@[FlexibleNullability] java.lang.StringBuilder? origin=SAFE_CALL VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:kotlin.Char? [val] @@ -72,15 +72,15 @@ FILE fqName: fileName:/coercionToUnitForNestedWhen.kt WHEN type=@[FlexibleNullability] java.lang.StringBuilder? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_1: kotlin.Char? [val] declared in .consumeRestOfQuotedSequence' type=kotlin.Char? origin=null + arg0: GET_VAR 'val tmp_1: kotlin.Char? declared in .consumeRestOfQuotedSequence' type=kotlin.Char? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: CALL 'public final fun let (block: kotlin.Function1): R of kotlin.StandardKt.let [inline] declared in kotlin.StandardKt' type=@[FlexibleNullability] java.lang.StringBuilder? origin=null + then: CALL 'public final fun let (block: kotlin.Function1): R of kotlin.StandardKt.let declared in kotlin.StandardKt' type=@[FlexibleNullability] java.lang.StringBuilder? origin=null : kotlin.Char : @[FlexibleNullability] java.lang.StringBuilder? - $receiver: GET_VAR 'val tmp_1: kotlin.Char? [val] declared in .consumeRestOfQuotedSequence' type=kotlin.Char? origin=null + $receiver: GET_VAR 'val tmp_1: kotlin.Char? declared in .consumeRestOfQuotedSequence' type=kotlin.Char? origin=null block: FUN_EXPR type=kotlin.Function1 origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> (it:kotlin.Char) returnType:@[FlexibleNullability] java.lang.StringBuilder? VALUE_PARAMETER name:it index:0 type:kotlin.Char @@ -93,7 +93,7 @@ FILE fqName: fileName:/coercionToUnitForNestedWhen.kt if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public open fun append (p0: kotlin.Char): @[FlexibleNullability] java.lang.StringBuilder? declared in java.lang.StringBuilder' type=@[FlexibleNullability] java.lang.StringBuilder? origin=null $this: GET_VAR 'sb: java.lang.StringBuilder declared in .consumeRestOfQuotedSequence' type=java.lang.StringBuilder origin=null - p0: GET_VAR 'var ch: kotlin.Char? [var] declared in .consumeRestOfQuotedSequence' type=kotlin.Char? origin=null - SET_VAR 'var ch: kotlin.Char? [var] declared in .consumeRestOfQuotedSequence' type=kotlin.Unit origin=EQ + p0: GET_VAR 'var ch: kotlin.Char? declared in .consumeRestOfQuotedSequence' type=kotlin.Char? origin=null + SET_VAR 'var ch: kotlin.Char? declared in .consumeRestOfQuotedSequence' type=kotlin.Unit origin=EQ CALL 'private final fun nextChar (): kotlin.Char? declared in ' type=kotlin.Char? origin=null $receiver: GET_VAR ': java.io.Reader declared in .consumeRestOfQuotedSequence' type=java.io.Reader origin=null diff --git a/compiler/testData/ir/irText/firProblems/coercionToUnitForNestedWhen.ir.txt b/compiler/testData/ir/irText/firProblems/coercionToUnitForNestedWhen.ir.txt index 2339da71684..51fe957b26a 100644 --- a/compiler/testData/ir/irText/firProblems/coercionToUnitForNestedWhen.ir.txt +++ b/compiler/testData/ir/irText/firProblems/coercionToUnitForNestedWhen.ir.txt @@ -14,7 +14,7 @@ FILE fqName: fileName:/coercionToUnitForNestedWhen.kt RETURN type=kotlin.Nothing from='private final fun nextChar (): kotlin.Char? declared in ' BLOCK type=kotlin.Char? origin=SAFE_CALL VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:kotlin.Int? [val] - CALL 'public final fun takeUnless (predicate: kotlin.Function1): T of kotlin.StandardKt.takeUnless? [inline] declared in kotlin.StandardKt' type=kotlin.Int? origin=null + CALL 'public final fun takeUnless (predicate: kotlin.Function1): T of kotlin.StandardKt.takeUnless? declared in kotlin.StandardKt' type=kotlin.Int? origin=null : kotlin.Int $receiver: CALL 'public open fun read (): kotlin.Int declared in java.io.Reader' type=kotlin.Int origin=null $this: GET_VAR ': java.io.Reader declared in .nextChar' type=java.io.Reader origin=null @@ -29,13 +29,13 @@ FILE fqName: fileName:/coercionToUnitForNestedWhen.kt WHEN type=kotlin.Char? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_0: kotlin.Int? [val] declared in .nextChar' type=kotlin.Int? origin=null + arg0: GET_VAR 'val tmp_0: kotlin.Int? declared in .nextChar' type=kotlin.Int? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public open fun toChar (): kotlin.Char declared in kotlin.Int' type=kotlin.Char origin=null - $this: GET_VAR 'val tmp_0: kotlin.Int? [val] declared in .nextChar' type=kotlin.Int? origin=null + $this: GET_VAR 'val tmp_0: kotlin.Int? declared in .nextChar' type=kotlin.Int? origin=null FUN name:consumeRestOfQuotedSequence visibility:public modality:FINAL <> ($receiver:java.io.Reader, sb:java.lang.StringBuilder{ kotlin.text.StringBuilder }, quote:kotlin.Char) returnType:kotlin.Unit $receiver: VALUE_PARAMETER name: type:java.io.Reader VALUE_PARAMETER name:sb index:0 type:java.lang.StringBuilder{ kotlin.text.StringBuilder } @@ -47,13 +47,13 @@ FILE fqName: fileName:/coercionToUnitForNestedWhen.kt WHILE label=null origin=WHILE_LOOP condition: WHEN type=kotlin.Boolean origin=ANDAND BRANCH - if: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ + if: CALL 'public final fun not (): kotlin.Boolean 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_VAR 'var ch: kotlin.Char? [var] declared in .consumeRestOfQuotedSequence' type=kotlin.Char? origin=null + arg0: GET_VAR 'var ch: kotlin.Char? declared in .consumeRestOfQuotedSequence' type=kotlin.Char? origin=null arg1: CONST Null type=kotlin.Nothing? value=null - then: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ + then: CALL 'public final fun not (): kotlin.Boolean 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_VAR 'var ch: kotlin.Char? [var] declared in .consumeRestOfQuotedSequence' type=kotlin.Char? origin=null + arg0: GET_VAR 'var ch: kotlin.Char? declared in .consumeRestOfQuotedSequence' type=kotlin.Char? origin=null arg1: GET_VAR 'quote: kotlin.Char declared in .consumeRestOfQuotedSequence' type=kotlin.Char origin=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true @@ -62,7 +62,7 @@ FILE fqName: fileName:/coercionToUnitForNestedWhen.kt WHEN type=kotlin.Unit origin=IF BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'var ch: kotlin.Char? [var] declared in .consumeRestOfQuotedSequence' type=kotlin.Char? origin=null + arg0: GET_VAR 'var ch: kotlin.Char? declared in .consumeRestOfQuotedSequence' type=kotlin.Char? origin=null arg1: CALL 'private final fun (): kotlin.Char declared in ' type=kotlin.Char origin=GET_PROPERTY then: TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit BLOCK type=@[FlexibleNullability] java.lang.StringBuilder? origin=SAFE_CALL @@ -72,15 +72,15 @@ FILE fqName: fileName:/coercionToUnitForNestedWhen.kt WHEN type=@[FlexibleNullability] java.lang.StringBuilder? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_1: kotlin.Char? [val] declared in .consumeRestOfQuotedSequence' type=kotlin.Char? origin=null + arg0: GET_VAR 'val tmp_1: kotlin.Char? declared in .consumeRestOfQuotedSequence' type=kotlin.Char? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: CALL 'public final fun let (block: kotlin.Function1): R of kotlin.StandardKt.let [inline] declared in kotlin.StandardKt' type=@[FlexibleNullability] java.lang.StringBuilder? origin=null + then: CALL 'public final fun let (block: kotlin.Function1): R of kotlin.StandardKt.let declared in kotlin.StandardKt' type=@[FlexibleNullability] java.lang.StringBuilder? origin=null : kotlin.Char : @[FlexibleNullability] java.lang.StringBuilder? - $receiver: GET_VAR 'val tmp_1: kotlin.Char? [val] declared in .consumeRestOfQuotedSequence' type=kotlin.Char? origin=null + $receiver: GET_VAR 'val tmp_1: kotlin.Char? declared in .consumeRestOfQuotedSequence' type=kotlin.Char? origin=null block: FUN_EXPR type=kotlin.Function1 origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> (it:kotlin.Char) returnType:@[FlexibleNullability] java.lang.StringBuilder? VALUE_PARAMETER name:it index:0 type:kotlin.Char @@ -94,7 +94,7 @@ FILE fqName: fileName:/coercionToUnitForNestedWhen.kt then: TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit CALL 'public open fun append (p0: kotlin.Char): @[FlexibleNullability] java.lang.StringBuilder? declared in java.lang.StringBuilder' type=@[FlexibleNullability] java.lang.StringBuilder? origin=null $this: GET_VAR 'sb: java.lang.StringBuilder{ kotlin.text.StringBuilder } declared in .consumeRestOfQuotedSequence' type=java.lang.StringBuilder{ kotlin.text.StringBuilder } origin=null - p0: GET_VAR 'var ch: kotlin.Char? [var] declared in .consumeRestOfQuotedSequence' type=kotlin.Char? origin=null - SET_VAR 'var ch: kotlin.Char? [var] declared in .consumeRestOfQuotedSequence' type=kotlin.Unit origin=EQ + p0: GET_VAR 'var ch: kotlin.Char? declared in .consumeRestOfQuotedSequence' type=kotlin.Char? origin=null + SET_VAR 'var ch: kotlin.Char? declared in .consumeRestOfQuotedSequence' type=kotlin.Unit origin=EQ CALL 'private final fun nextChar (): kotlin.Char? declared in ' type=kotlin.Char? origin=null $receiver: GET_VAR ': java.io.Reader declared in .consumeRestOfQuotedSequence' type=java.io.Reader origin=null diff --git a/compiler/testData/ir/irText/firProblems/dataObject.fir.ir.txt b/compiler/testData/ir/irText/firProblems/dataObject.fir.ir.txt index 18fda30f454..01deff665da 100644 --- a/compiler/testData/ir/irText/firProblems/dataObject.fir.ir.txt +++ b/compiler/testData/ir/irText/firProblems/dataObject.fir.ir.txt @@ -3,11 +3,11 @@ FILE fqName: fileName:/dataObject.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.DataObject CONSTRUCTOR visibility:private <> () returnType:.DataObject [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:DataObject modality:FINAL visibility:public [data] superTypes:[kotlin.Any]' FUN GENERATED_DATA_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:.DataObject, other:kotlin.Any?) returnType:kotlin.Boolean [operator] overridden: - public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any $this: VALUE_PARAMETER name: type:.DataObject VALUE_PARAMETER name:other index:0 type:kotlin.Any? BLOCK_BODY @@ -16,18 +16,18 @@ FILE fqName: fileName:/dataObject.kt 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 ': .DataObject declared in .DataObject.equals' type=.DataObject origin=null arg1: GET_VAR 'other: kotlin.Any? declared in .DataObject.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .DataObject' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .DataObject' CONST Boolean type=kotlin.Boolean value=true WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=.DataObject GET_VAR 'other: kotlin.Any? declared in .DataObject.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .DataObject' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .DataObject' CONST Boolean type=kotlin.Boolean value=false VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:.DataObject [val] TYPE_OP type=.DataObject origin=CAST typeOperand=.DataObject GET_VAR 'other: kotlin.Any? declared in .DataObject.equals' type=kotlin.Any? origin=null - RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .DataObject' + RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .DataObject' CONST Boolean type=kotlin.Boolean value=true FUN GENERATED_DATA_CLASS_MEMBER name:hashCode visibility:public modality:OPEN <> ($this:.DataObject) returnType:kotlin.Int overridden: diff --git a/compiler/testData/ir/irText/firProblems/dataObject.ir.txt b/compiler/testData/ir/irText/firProblems/dataObject.ir.txt index 7367c2c28c0..77d82391b54 100644 --- a/compiler/testData/ir/irText/firProblems/dataObject.ir.txt +++ b/compiler/testData/ir/irText/firProblems/dataObject.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/dataObject.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.DataObject CONSTRUCTOR visibility:private <> () returnType:.DataObject [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:DataObject modality:FINAL visibility:public [data] superTypes:[kotlin.Any]' FUN GENERATED_DATA_CLASS_MEMBER name:toString visibility:public modality:OPEN <> ($this:.DataObject) returnType:kotlin.String overridden: @@ -21,7 +21,7 @@ FILE fqName: fileName:/dataObject.kt CONST Int type=kotlin.Int value=-1155894359 FUN GENERATED_DATA_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:.DataObject, other:kotlin.Any?) returnType:kotlin.Boolean [operator] overridden: - public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any $this: VALUE_PARAMETER name: type:.DataObject VALUE_PARAMETER name:other index:0 type:kotlin.Any? BLOCK_BODY @@ -30,16 +30,16 @@ FILE fqName: fileName:/dataObject.kt 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 ': .DataObject declared in .DataObject.equals' type=.DataObject origin=null arg1: GET_VAR 'other: kotlin.Any? declared in .DataObject.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .DataObject' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .DataObject' CONST Boolean type=kotlin.Boolean value=true WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=.DataObject GET_VAR 'other: kotlin.Any? declared in .DataObject.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .DataObject' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .DataObject' CONST Boolean type=kotlin.Boolean value=false VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:.DataObject [val] TYPE_OP type=.DataObject origin=CAST typeOperand=.DataObject GET_VAR 'other: kotlin.Any? declared in .DataObject.equals' type=kotlin.Any? origin=null - RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .DataObject' + RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .DataObject' CONST Boolean type=kotlin.Boolean value=true diff --git a/compiler/testData/ir/irText/firProblems/emptyWhen.ir.txt b/compiler/testData/ir/irText/firProblems/emptyWhen.ir.txt index 25a92b52461..4e474ca6eee 100644 --- a/compiler/testData/ir/irText/firProblems/emptyWhen.ir.txt +++ b/compiler/testData/ir/irText/firProblems/emptyWhen.ir.txt @@ -6,7 +6,7 @@ FILE fqName: fileName:/emptyWhen.kt CONST Int type=kotlin.Int value=0 BLOCK type=kotlin.Unit origin=WHEN VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:kotlin.Int [val] - GET_VAR 'val x: kotlin.Int [val] declared in .foo' type=kotlin.Int origin=null + GET_VAR 'val x: kotlin.Int declared in .foo' type=kotlin.Int origin=null WHEN type=kotlin.Unit origin=WHEN BRANCH if: CONST Boolean type=kotlin.Boolean value=true @@ -14,7 +14,7 @@ FILE fqName: fileName:/emptyWhen.kt VAR name:z type:kotlin.Unit [val] BLOCK type=kotlin.Unit origin=WHEN VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:kotlin.Int [val] - GET_VAR 'val x: kotlin.Int [val] declared in .foo' type=kotlin.Int origin=null + GET_VAR 'val x: kotlin.Int declared in .foo' type=kotlin.Int origin=null WHEN type=kotlin.Unit origin=WHEN BRANCH if: CONST Boolean type=kotlin.Boolean value=true diff --git a/compiler/testData/ir/irText/firProblems/inapplicableCollectionSet.fir.ir.txt b/compiler/testData/ir/irText/firProblems/inapplicableCollectionSet.fir.ir.txt index 469ba9e4d98..5ac2b7f7c49 100644 --- a/compiler/testData/ir/irText/firProblems/inapplicableCollectionSet.fir.ir.txt +++ b/compiler/testData/ir/irText/firProblems/inapplicableCollectionSet.fir.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/inapplicableCollectionSet.kt CONSTRUCTOR visibility:public <> (javaName:kotlin.String) returnType:.Flaf [primary] VALUE_PARAMETER name:javaName index:0 type:kotlin.String BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Flaf modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:javaName visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:javaName type:kotlin.String visibility:private [final] @@ -20,7 +20,7 @@ FILE fqName: fileName:/inapplicableCollectionSet.kt PROPERTY name:INSTANCES visibility:private modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:INSTANCES type:kotlin.collections.MutableMap.Flaf> visibility:private [final] EXPRESSION_BODY - CALL 'public final fun mutableMapOf (): kotlin.collections.MutableMap [inline] declared in kotlin.collections.MapsKt' type=kotlin.collections.MutableMap.Flaf> origin=null + CALL 'public final fun mutableMapOf (): kotlin.collections.MutableMap declared in kotlin.collections.MapsKt' type=kotlin.collections.MutableMap.Flaf> origin=null : kotlin.String : .Flaf FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:private modality:FINAL <> ($this:.Flaf) returnType:kotlin.collections.MutableMap.Flaf> @@ -35,18 +35,18 @@ FILE fqName: fileName:/inapplicableCollectionSet.kt VALUE_PARAMETER name:javaName index:0 type:kotlin.String BLOCK_BODY VAR name:result type:.Flaf? [var] - CALL 'public abstract fun get (key: K of kotlin.collections.MutableMap): V of kotlin.collections.MutableMap? [fake_override,operator] declared in kotlin.collections.MutableMap' type=.Flaf? origin=null + CALL 'public abstract fun get (key: K of kotlin.collections.MutableMap): V of kotlin.collections.MutableMap? declared in kotlin.collections.MutableMap' type=.Flaf? origin=null $this: CALL 'private final fun (): kotlin.collections.MutableMap.Flaf> declared in .Flaf' type=kotlin.collections.MutableMap.Flaf> origin=GET_PROPERTY $this: GET_VAR ': .Flaf declared in .Flaf.forJavaName' type=.Flaf origin=null key: GET_VAR 'javaName: kotlin.String declared in .Flaf.forJavaName' type=kotlin.String origin=null WHEN type=kotlin.Unit origin=IF BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'var result: .Flaf? [var] declared in .Flaf.forJavaName' type=.Flaf? origin=null + arg0: GET_VAR 'var result: .Flaf? declared in .Flaf.forJavaName' type=.Flaf? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: BLOCK type=kotlin.Unit origin=null - SET_VAR 'var result: .Flaf? [var] declared in .Flaf.forJavaName' type=kotlin.Unit origin=EQ - CALL 'public abstract fun get (key: K of kotlin.collections.MutableMap): V of kotlin.collections.MutableMap? [fake_override,operator] declared in kotlin.collections.MutableMap' type=.Flaf? origin=null + SET_VAR 'var result: .Flaf? declared in .Flaf.forJavaName' type=kotlin.Unit origin=EQ + CALL 'public abstract fun get (key: K of kotlin.collections.MutableMap): V of kotlin.collections.MutableMap? declared in kotlin.collections.MutableMap' type=.Flaf? origin=null $this: CALL 'private final fun (): kotlin.collections.MutableMap.Flaf> declared in .Flaf' type=kotlin.collections.MutableMap.Flaf> origin=GET_PROPERTY $this: GET_VAR ': .Flaf declared in .Flaf.forJavaName' type=.Flaf origin=null key: STRING_CONCATENATION type=kotlin.String @@ -55,24 +55,24 @@ FILE fqName: fileName:/inapplicableCollectionSet.kt WHEN type=kotlin.Unit origin=IF BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'var result: .Flaf? [var] declared in .Flaf.forJavaName' type=.Flaf? origin=null + arg0: GET_VAR 'var result: .Flaf? declared in .Flaf.forJavaName' type=.Flaf? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: BLOCK type=kotlin.Unit origin=null - SET_VAR 'var result: .Flaf? [var] declared in .Flaf.forJavaName' type=kotlin.Unit origin=EQ - CONSTRUCTOR_CALL 'public constructor (javaName: kotlin.String) [primary] declared in .Flaf' type=.Flaf origin=null + SET_VAR 'var result: .Flaf? declared in .Flaf.forJavaName' type=kotlin.Unit origin=EQ + CONSTRUCTOR_CALL 'public constructor (javaName: kotlin.String) declared in .Flaf' type=.Flaf origin=null javaName: GET_VAR 'javaName: kotlin.String declared in .Flaf.forJavaName' type=kotlin.String origin=null - CALL 'public final fun set (key: K of kotlin.collections.MapsKt.set, value: V of kotlin.collections.MapsKt.set): kotlin.Unit [inline,operator] declared in kotlin.collections.MapsKt' type=kotlin.Unit origin=null + CALL 'public final fun set (key: K of kotlin.collections.MapsKt.set, value: V of kotlin.collections.MapsKt.set): kotlin.Unit declared in kotlin.collections.MapsKt' type=kotlin.Unit origin=null : kotlin.String : .Flaf $receiver: CALL 'private final fun (): kotlin.collections.MutableMap.Flaf> declared in .Flaf' type=kotlin.collections.MutableMap.Flaf> origin=GET_PROPERTY $this: GET_VAR ': .Flaf declared in .Flaf.forJavaName' type=.Flaf origin=null key: GET_VAR 'javaName: kotlin.String declared in .Flaf.forJavaName' type=kotlin.String origin=null - value: GET_VAR 'var result: .Flaf? [var] declared in .Flaf.forJavaName' type=.Flaf? origin=null + value: GET_VAR 'var result: .Flaf? declared in .Flaf.forJavaName' type=.Flaf? origin=null RETURN type=kotlin.Nothing from='public final fun forJavaName (javaName: kotlin.String): .Flaf declared in .Flaf' - GET_VAR 'var result: .Flaf? [var] declared in .Flaf.forJavaName' type=.Flaf? origin=null + GET_VAR 'var result: .Flaf? declared in .Flaf.forJavaName' type=.Flaf? 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/firProblems/inapplicableCollectionSet.ir.txt b/compiler/testData/ir/irText/firProblems/inapplicableCollectionSet.ir.txt index 977e1e1d762..74d3244859a 100644 --- a/compiler/testData/ir/irText/firProblems/inapplicableCollectionSet.ir.txt +++ b/compiler/testData/ir/irText/firProblems/inapplicableCollectionSet.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/inapplicableCollectionSet.kt CONSTRUCTOR visibility:public <> (javaName:kotlin.String) returnType:.Flaf [primary] VALUE_PARAMETER name:javaName index:0 type:kotlin.String BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Flaf modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:javaName visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:javaName type:kotlin.String visibility:private [final] @@ -20,7 +20,7 @@ FILE fqName: fileName:/inapplicableCollectionSet.kt PROPERTY name:INSTANCES visibility:private modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:INSTANCES type:kotlin.collections.MutableMap.Flaf> visibility:private [final] EXPRESSION_BODY - CALL 'public final fun mutableMapOf (): kotlin.collections.MutableMap [inline] declared in kotlin.collections.MapsKt' type=kotlin.collections.MutableMap.Flaf> origin=null + CALL 'public final fun mutableMapOf (): kotlin.collections.MutableMap declared in kotlin.collections.MapsKt' type=kotlin.collections.MutableMap.Flaf> origin=null : kotlin.String : .Flaf FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:private modality:FINAL <> ($this:.Flaf) returnType:kotlin.collections.MutableMap.Flaf> @@ -35,18 +35,18 @@ FILE fqName: fileName:/inapplicableCollectionSet.kt VALUE_PARAMETER name:javaName index:0 type:kotlin.String BLOCK_BODY VAR name:result type:.Flaf? [var] - CALL 'public abstract fun get (key: K of kotlin.collections.MutableMap): V of kotlin.collections.MutableMap? [fake_override,operator] declared in kotlin.collections.MutableMap' type=.Flaf? origin=GET_ARRAY_ELEMENT + CALL 'public abstract fun get (key: K of kotlin.collections.MutableMap): V of kotlin.collections.MutableMap? declared in kotlin.collections.MutableMap' type=.Flaf? origin=GET_ARRAY_ELEMENT $this: CALL 'private final fun (): kotlin.collections.MutableMap.Flaf> declared in .Flaf' type=kotlin.collections.MutableMap.Flaf> origin=GET_PROPERTY $this: GET_VAR ': .Flaf declared in .Flaf.forJavaName' type=.Flaf origin=null key: GET_VAR 'javaName: kotlin.String declared in .Flaf.forJavaName' type=kotlin.String origin=null WHEN type=kotlin.Unit origin=IF BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'var result: .Flaf? [var] declared in .Flaf.forJavaName' type=.Flaf? origin=null + arg0: GET_VAR 'var result: .Flaf? declared in .Flaf.forJavaName' type=.Flaf? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: BLOCK type=kotlin.Unit origin=null - SET_VAR 'var result: .Flaf? [var] declared in .Flaf.forJavaName' type=kotlin.Unit origin=EQ - CALL 'public abstract fun get (key: K of kotlin.collections.MutableMap): V of kotlin.collections.MutableMap? [fake_override,operator] declared in kotlin.collections.MutableMap' type=.Flaf? origin=GET_ARRAY_ELEMENT + SET_VAR 'var result: .Flaf? declared in .Flaf.forJavaName' type=kotlin.Unit origin=EQ + CALL 'public abstract fun get (key: K of kotlin.collections.MutableMap): V of kotlin.collections.MutableMap? declared in kotlin.collections.MutableMap' type=.Flaf? origin=GET_ARRAY_ELEMENT $this: CALL 'private final fun (): kotlin.collections.MutableMap.Flaf> declared in .Flaf' type=kotlin.collections.MutableMap.Flaf> origin=GET_PROPERTY $this: GET_VAR ': .Flaf declared in .Flaf.forJavaName' type=.Flaf origin=null key: STRING_CONCATENATION type=kotlin.String @@ -55,24 +55,24 @@ FILE fqName: fileName:/inapplicableCollectionSet.kt WHEN type=kotlin.Unit origin=IF BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'var result: .Flaf? [var] declared in .Flaf.forJavaName' type=.Flaf? origin=null + arg0: GET_VAR 'var result: .Flaf? declared in .Flaf.forJavaName' type=.Flaf? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: BLOCK type=kotlin.Unit origin=null - SET_VAR 'var result: .Flaf? [var] declared in .Flaf.forJavaName' type=kotlin.Unit origin=EQ - CONSTRUCTOR_CALL 'public constructor (javaName: kotlin.String) [primary] declared in .Flaf' type=.Flaf origin=null + SET_VAR 'var result: .Flaf? declared in .Flaf.forJavaName' type=kotlin.Unit origin=EQ + CONSTRUCTOR_CALL 'public constructor (javaName: kotlin.String) declared in .Flaf' type=.Flaf origin=null javaName: GET_VAR 'javaName: kotlin.String declared in .Flaf.forJavaName' type=kotlin.String origin=null - CALL 'public final fun set (key: K of kotlin.collections.MapsKt.set, value: V of kotlin.collections.MapsKt.set): kotlin.Unit [inline,operator] declared in kotlin.collections.MapsKt' type=kotlin.Unit origin=EQ + CALL 'public final fun set (key: K of kotlin.collections.MapsKt.set, value: V of kotlin.collections.MapsKt.set): kotlin.Unit declared in kotlin.collections.MapsKt' type=kotlin.Unit origin=EQ : kotlin.String : .Flaf $receiver: CALL 'private final fun (): kotlin.collections.MutableMap.Flaf> declared in .Flaf' type=kotlin.collections.MutableMap.Flaf> origin=GET_PROPERTY $this: GET_VAR ': .Flaf declared in .Flaf.forJavaName' type=.Flaf origin=null key: GET_VAR 'javaName: kotlin.String declared in .Flaf.forJavaName' type=kotlin.String origin=null - value: GET_VAR 'var result: .Flaf? [var] declared in .Flaf.forJavaName' type=.Flaf? origin=null + value: GET_VAR 'var result: .Flaf? declared in .Flaf.forJavaName' type=.Flaf? origin=null RETURN type=kotlin.Nothing from='public final fun forJavaName (javaName: kotlin.String): .Flaf declared in .Flaf' - GET_VAR 'var result: .Flaf? [var] declared in .Flaf.forJavaName' type=.Flaf? origin=null + GET_VAR 'var result: .Flaf? declared in .Flaf.forJavaName' type=.Flaf? 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/firProblems/internalPotentialFakeOverride.ir.txt b/compiler/testData/ir/irText/firProblems/internalPotentialFakeOverride.ir.txt index cbba02dbb59..659367250c2 100644 --- a/compiler/testData/ir/irText/firProblems/internalPotentialFakeOverride.ir.txt +++ b/compiler/testData/ir/irText/firProblems/internalPotentialFakeOverride.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/A.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.A CONSTRUCTOR visibility:public <> () returnType:.A [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:A modality:OPEN visibility:public superTypes:[kotlin.Any]' FUN name:foo visibility:internal modality:OPEN <> ($this:.A) returnType:kotlin.Int $this: VALUE_PARAMETER name: type:.A @@ -24,7 +24,7 @@ FILE fqName: fileName:/A.kt receiver: GET_VAR ': .A declared in .A.' type=.A 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -41,18 +41,18 @@ FILE fqName: fileName:/B.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.B CONSTRUCTOR visibility:public <> () returnType:.B [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .A' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .A' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:B modality:FINAL visibility:public superTypes:[.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 [fake_override,operator] declared in .A + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .A $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 .A + public open fun hashCode (): kotlin.Int declared in .A $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 .A + public open fun toString (): kotlin.String declared in .A $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/firProblems/internalPotentialOverride.ir.txt b/compiler/testData/ir/irText/firProblems/internalPotentialOverride.ir.txt index 149bf31461e..c9cab4e763d 100644 --- a/compiler/testData/ir/irText/firProblems/internalPotentialOverride.ir.txt +++ b/compiler/testData/ir/irText/firProblems/internalPotentialOverride.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/A.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.A CONSTRUCTOR visibility:public <> () returnType:.A [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:A modality:OPEN visibility:public superTypes:[kotlin.Any]' FUN name:foo visibility:internal modality:OPEN <> ($this:.A) returnType:kotlin.Int $this: VALUE_PARAMETER name: type:.A @@ -24,7 +24,7 @@ FILE fqName: fileName:/A.kt receiver: GET_VAR ': .A declared in .A.' type=.A 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -41,7 +41,7 @@ FILE fqName: fileName:/B.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.B CONSTRUCTOR visibility:public <> () returnType:.B [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .A' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .A' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:B modality:FINAL visibility:public superTypes:[.A]' FUN name:foo visibility:public modality:FINAL <> ($this:.B) returnType:kotlin.String $this: VALUE_PARAMETER name: type:.B @@ -61,14 +61,14 @@ FILE fqName: fileName:/B.kt receiver: GET_VAR ': .B declared in .B.' type=.B 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 [fake_override,operator] declared in .A + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .A $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 .A + public open fun hashCode (): kotlin.Int declared in .A $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 .A + public open fun toString (): kotlin.String declared in .A $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/firProblems/kt19251.fir.ir.txt b/compiler/testData/ir/irText/firProblems/kt19251.fir.ir.txt index 952033b40fd..b21e2c678a2 100644 --- a/compiler/testData/ir/irText/firProblems/kt19251.fir.ir.txt +++ b/compiler/testData/ir/irText/firProblems/kt19251.fir.ir.txt @@ -2,7 +2,7 @@ FILE fqName: fileName:/test.kt FUN name:box visibility:public modality:FINAL <> () returnType:kotlin.String BLOCK_BODY VAR name:map type:kotlin.collections.MutableMap<.Fun, kotlin.String> [val] - CALL 'public final fun mutableMapOf (): kotlin.collections.MutableMap [inline] declared in kotlin.collections.MapsKt' type=kotlin.collections.MutableMap<.Fun, kotlin.String> origin=null + CALL 'public final fun mutableMapOf (): kotlin.collections.MutableMap declared in kotlin.collections.MapsKt' type=kotlin.collections.MutableMap<.Fun, kotlin.String> origin=null : .Fun : kotlin.String VAR name:fn type:.Fun [val] @@ -11,12 +11,12 @@ FILE fqName: fileName:/test.kt FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> (it:@[FlexibleNullability] kotlin.String?) returnType:@[FlexibleNullability] kotlin.String? VALUE_PARAMETER name:it index:0 type:@[FlexibleNullability] kotlin.String? BLOCK_BODY - CALL 'public final fun TODO (): kotlin.Nothing [inline] declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin.StandardKt' type=kotlin.Nothing origin=null RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' TYPE_OP type=kotlin.String origin=IMPLICIT_NOTNULL typeOperand=kotlin.String CALL 'public open fun computeIfAbsent (p0: @[EnhancedNullability] K of kotlin.collections.MutableMap, p1: @[EnhancedNullability] java.util.function.Function): @[EnhancedNullability] V of kotlin.collections.MutableMap declared in kotlin.collections.MutableMap' type=@[EnhancedNullability] kotlin.String origin=null - $this: GET_VAR 'val map: kotlin.collections.MutableMap<.Fun, kotlin.String> [val] declared in .box' type=kotlin.collections.MutableMap<.Fun, kotlin.String> origin=null - p0: GET_VAR 'val fn: .Fun [val] declared in .box' type=.Fun origin=null + $this: GET_VAR 'val map: kotlin.collections.MutableMap<.Fun, kotlin.String> declared in .box' type=kotlin.collections.MutableMap<.Fun, kotlin.String> origin=null + p0: GET_VAR 'val fn: .Fun declared in .box' type=.Fun origin=null p1: TYPE_OP type=@[EnhancedNullability] java.util.function.Function origin=SAM_CONVERSION typeOperand=@[EnhancedNullability] java.util.function.Function TYPE_OP type=kotlin.Function1<@[EnhancedNullability] kotlin.Any?, @[EnhancedNullability] kotlin.String> origin=IMPLICIT_CAST typeOperand=kotlin.Function1<@[EnhancedNullability] kotlin.Any?, @[EnhancedNullability] kotlin.String> FUN_EXPR type=kotlin.Function1<@[EnhancedNullability] .Fun, @[EnhancedNullability] kotlin.String> origin=LAMBDA diff --git a/compiler/testData/ir/irText/firProblems/kt19251.ir.txt b/compiler/testData/ir/irText/firProblems/kt19251.ir.txt index 0abc3a64a24..a08e4a00f5e 100644 --- a/compiler/testData/ir/irText/firProblems/kt19251.ir.txt +++ b/compiler/testData/ir/irText/firProblems/kt19251.ir.txt @@ -2,7 +2,7 @@ FILE fqName: fileName:/test.kt FUN name:box visibility:public modality:FINAL <> () returnType:kotlin.String BLOCK_BODY VAR name:map type:kotlin.collections.MutableMap<.Fun, kotlin.String> [val] - CALL 'public final fun mutableMapOf (): kotlin.collections.MutableMap [inline] declared in kotlin.collections.MapsKt' type=kotlin.collections.MutableMap<.Fun, kotlin.String> origin=null + CALL 'public final fun mutableMapOf (): kotlin.collections.MutableMap declared in kotlin.collections.MapsKt' type=kotlin.collections.MutableMap<.Fun, kotlin.String> origin=null : .Fun : kotlin.String VAR name:fn type:.Fun [val] @@ -12,12 +12,12 @@ FILE fqName: fileName:/test.kt VALUE_PARAMETER name:it index:0 type:@[FlexibleNullability] kotlin.String? BLOCK_BODY RETURN type=kotlin.Nothing from='local final fun (it: @[FlexibleNullability] kotlin.String?): @[FlexibleNullability] kotlin.String? declared in .box' - CALL 'public final fun TODO (): kotlin.Nothing [inline] declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin.StandardKt' type=kotlin.Nothing origin=null RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' TYPE_OP type=kotlin.String origin=IMPLICIT_NOTNULL typeOperand=kotlin.String CALL 'public open fun computeIfAbsent (p0: @[EnhancedNullability] K of kotlin.collections.MutableMap, p1: @[EnhancedNullability] java.util.function.Function): @[EnhancedNullability] V of kotlin.collections.MutableMap declared in kotlin.collections.MutableMap' type=@[EnhancedNullability] kotlin.String origin=null - $this: GET_VAR 'val map: kotlin.collections.MutableMap<.Fun, kotlin.String> [val] declared in .box' type=kotlin.collections.MutableMap<.Fun, kotlin.String> origin=null - p0: GET_VAR 'val fn: .Fun [val] declared in .box' type=.Fun origin=null + $this: GET_VAR 'val map: kotlin.collections.MutableMap<.Fun, kotlin.String> declared in .box' type=kotlin.collections.MutableMap<.Fun, kotlin.String> origin=null + p0: GET_VAR 'val fn: .Fun declared in .box' type=.Fun origin=null p1: TYPE_OP type=@[EnhancedNullability] java.util.function.Function origin=SAM_CONVERSION typeOperand=@[EnhancedNullability] java.util.function.Function TYPE_OP type=kotlin.Function1<@[EnhancedNullability] kotlin.Any?, @[EnhancedNullability] kotlin.String> origin=IMPLICIT_CAST typeOperand=kotlin.Function1<@[EnhancedNullability] kotlin.Any?, @[EnhancedNullability] kotlin.String> FUN_EXPR type=kotlin.Function1<@[EnhancedNullability] .Fun, @[EnhancedNullability] kotlin.String> origin=LAMBDA diff --git a/compiler/testData/ir/irText/firProblems/kt43342.fir.ir.txt b/compiler/testData/ir/irText/firProblems/kt43342.fir.ir.txt index 62649d849cb..254f9046ea7 100644 --- a/compiler/testData/ir/irText/firProblems/kt43342.fir.ir.txt +++ b/compiler/testData/ir/irText/firProblems/kt43342.fir.ir.txt @@ -6,7 +6,7 @@ FILE fqName: fileName:/kt43342.kt CONSTRUCTOR visibility:public <> (map:kotlin.collections.Map.ControlFlowInfo, V of .ControlFlowInfo>) returnType:.ControlFlowInfo.ControlFlowInfo, V of .ControlFlowInfo> [primary] VALUE_PARAMETER name:map index:0 type:kotlin.collections.Map.ControlFlowInfo, V of .ControlFlowInfo> BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:ControlFlowInfo modality:OPEN visibility:public superTypes:[kotlin.collections.Map.ControlFlowInfo, V of .ControlFlowInfo>]' FUN DELEGATED_MEMBER name:containsKey visibility:public modality:OPEN <> ($this:.ControlFlowInfo.ControlFlowInfo, V of .ControlFlowInfo>, key:K of .ControlFlowInfo) returnType:kotlin.Boolean overridden: @@ -32,12 +32,12 @@ FILE fqName: fileName:/kt43342.kt value: GET_VAR 'value: V of .ControlFlowInfo declared in .ControlFlowInfo.containsValue' type=V of .ControlFlowInfo origin=null FUN DELEGATED_MEMBER name:get visibility:public modality:OPEN <> ($this:.ControlFlowInfo.ControlFlowInfo, V of .ControlFlowInfo>, key:K of .ControlFlowInfo) returnType:V of .ControlFlowInfo? [operator] overridden: - public abstract fun get (key: K of kotlin.collections.Map): V of kotlin.collections.Map? [operator] declared in kotlin.collections.Map + public abstract fun get (key: K of kotlin.collections.Map): V of kotlin.collections.Map? declared in kotlin.collections.Map $this: VALUE_PARAMETER name: type:.ControlFlowInfo.ControlFlowInfo, V of .ControlFlowInfo> VALUE_PARAMETER name:key index:0 type:K of .ControlFlowInfo BLOCK_BODY - RETURN type=kotlin.Nothing from='public open fun get (key: K of .ControlFlowInfo): V of .ControlFlowInfo? [operator] declared in .ControlFlowInfo' - CALL 'public abstract fun get (key: K of kotlin.collections.Map): V of kotlin.collections.Map? [operator] declared in kotlin.collections.Map' type=V of kotlin.collections.Map? origin=null + RETURN type=kotlin.Nothing from='public open fun get (key: K of .ControlFlowInfo): V of .ControlFlowInfo? declared in .ControlFlowInfo' + CALL 'public abstract fun get (key: K of kotlin.collections.Map): V of kotlin.collections.Map? declared in kotlin.collections.Map' type=V of kotlin.collections.Map? origin=null $this: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:map type:kotlin.collections.Map.ControlFlowInfo, V of .ControlFlowInfo> visibility:private [final]' type=kotlin.collections.Map.ControlFlowInfo, V of .ControlFlowInfo> origin=null receiver: GET_VAR ': .ControlFlowInfo.ControlFlowInfo, V of .ControlFlowInfo> declared in .ControlFlowInfo.get' type=.ControlFlowInfo.ControlFlowInfo, V of .ControlFlowInfo> origin=null key: GET_VAR 'key: K of .ControlFlowInfo declared in .ControlFlowInfo.get' type=K of .ControlFlowInfo origin=null @@ -52,7 +52,7 @@ FILE fqName: fileName:/kt43342.kt receiver: GET_VAR ': .ControlFlowInfo.ControlFlowInfo, V of .ControlFlowInfo> declared in .ControlFlowInfo.isEmpty' type=.ControlFlowInfo.ControlFlowInfo, V of .ControlFlowInfo> origin=null PROPERTY DELEGATED_MEMBER name:entries visibility:public modality:OPEN [val] overridden: - public abstract entries: kotlin.collections.Set> [val] + public abstract entries: kotlin.collections.Set> FUN DELEGATED_MEMBER name: visibility:public modality:OPEN <> ($this:.ControlFlowInfo.ControlFlowInfo, V of .ControlFlowInfo>) returnType:kotlin.collections.Set.ControlFlowInfo, V of .ControlFlowInfo>> correspondingProperty: PROPERTY DELEGATED_MEMBER name:entries visibility:public modality:OPEN [val] overridden: @@ -65,7 +65,7 @@ FILE fqName: fileName:/kt43342.kt receiver: GET_VAR ': .ControlFlowInfo.ControlFlowInfo, V of .ControlFlowInfo> declared in .ControlFlowInfo.' type=.ControlFlowInfo.ControlFlowInfo, V of .ControlFlowInfo> origin=null PROPERTY DELEGATED_MEMBER name:keys visibility:public modality:OPEN [val] overridden: - public abstract keys: kotlin.collections.Set [val] + public abstract keys: kotlin.collections.Set FUN DELEGATED_MEMBER name: visibility:public modality:OPEN <> ($this:.ControlFlowInfo.ControlFlowInfo, V of .ControlFlowInfo>) returnType:kotlin.collections.Set.ControlFlowInfo> correspondingProperty: PROPERTY DELEGATED_MEMBER name:keys visibility:public modality:OPEN [val] overridden: @@ -78,7 +78,7 @@ FILE fqName: fileName:/kt43342.kt receiver: GET_VAR ': .ControlFlowInfo.ControlFlowInfo, V of .ControlFlowInfo> declared in .ControlFlowInfo.' type=.ControlFlowInfo.ControlFlowInfo, V of .ControlFlowInfo> origin=null PROPERTY DELEGATED_MEMBER name:size visibility:public modality:OPEN [val] overridden: - public abstract size: kotlin.Int [val] + public abstract size: kotlin.Int FUN DELEGATED_MEMBER name: visibility:public modality:OPEN <> ($this:.ControlFlowInfo.ControlFlowInfo, V of .ControlFlowInfo>) returnType:kotlin.Int correspondingProperty: PROPERTY DELEGATED_MEMBER name:size visibility:public modality:OPEN [val] overridden: @@ -91,7 +91,7 @@ FILE fqName: fileName:/kt43342.kt receiver: GET_VAR ': .ControlFlowInfo.ControlFlowInfo, V of .ControlFlowInfo> declared in .ControlFlowInfo.' type=.ControlFlowInfo.ControlFlowInfo, V of .ControlFlowInfo> origin=null PROPERTY DELEGATED_MEMBER name:values visibility:public modality:OPEN [val] overridden: - public abstract values: kotlin.collections.Collection [val] + public abstract values: kotlin.collections.Collection FUN DELEGATED_MEMBER name: visibility:public modality:OPEN <> ($this:.ControlFlowInfo.ControlFlowInfo, V of .ControlFlowInfo>) returnType:kotlin.collections.Collection.ControlFlowInfo> correspondingProperty: PROPERTY DELEGATED_MEMBER name:values visibility:public modality:OPEN [val] overridden: @@ -115,23 +115,23 @@ FILE fqName: fileName:/kt43342.kt receiver: GET_VAR ': .ControlFlowInfo.ControlFlowInfo, V of .ControlFlowInfo> declared in .ControlFlowInfo.' type=.ControlFlowInfo.ControlFlowInfo, V of .ControlFlowInfo> 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 [fake_override,operator] declared in kotlin.collections.Map + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.collections.Map $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 kotlin.collections.Map + public open fun hashCode (): kotlin.Int declared in kotlin.collections.Map $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 kotlin.collections.Map + public open fun toString (): kotlin.String declared in kotlin.collections.Map $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:StringFlowInfo modality:FINAL visibility:public superTypes:[.ControlFlowInfo] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.StringFlowInfo CONSTRUCTOR visibility:public <> (map:kotlin.collections.Map) returnType:.StringFlowInfo [primary] VALUE_PARAMETER name:map index:0 type:kotlin.collections.Map BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor (map: kotlin.collections.Map.ControlFlowInfo, V of .ControlFlowInfo>) [primary] declared in .ControlFlowInfo' + DELEGATING_CONSTRUCTOR_CALL 'public constructor (map: kotlin.collections.Map.ControlFlowInfo, V of .ControlFlowInfo>) declared in .ControlFlowInfo' : kotlin.String : kotlin.String map: GET_VAR 'map: kotlin.collections.Map declared in .StringFlowInfo.' type=kotlin.collections.Map origin=null @@ -141,14 +141,14 @@ FILE fqName: fileName:/kt43342.kt VALUE_PARAMETER name:info index:0 type:.StringFlowInfo BLOCK_BODY TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit - CALL 'public open fun (): kotlin.collections.Set [fake_override] declared in .StringFlowInfo' type=kotlin.collections.Set origin=GET_PROPERTY + CALL 'public open fun (): kotlin.collections.Set declared in .StringFlowInfo' type=kotlin.collections.Set origin=GET_PROPERTY $this: GET_VAR ': .StringFlowInfo declared in .StringFlowInfo.foo' type=.StringFlowInfo origin=null TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit - CALL 'public open fun (): kotlin.collections.Set [fake_override] declared in .StringFlowInfo' type=kotlin.collections.Set origin=GET_PROPERTY + CALL 'public open fun (): kotlin.collections.Set declared in .StringFlowInfo' type=kotlin.collections.Set origin=GET_PROPERTY $this: GET_VAR 'info: .StringFlowInfo declared in .StringFlowInfo.foo' type=.StringFlowInfo origin=null PROPERTY FAKE_OVERRIDE name:map visibility:public modality:FINAL [fake_override,val] overridden: - public final map: kotlin.collections.Map.ControlFlowInfo, V of .ControlFlowInfo> [val] + public final map: kotlin.collections.Map.ControlFlowInfo, V of .ControlFlowInfo> FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.ControlFlowInfo.ControlFlowInfo, V of .ControlFlowInfo>) returnType:kotlin.collections.Map [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:map visibility:public modality:FINAL [fake_override,val] overridden: @@ -166,7 +166,7 @@ FILE fqName: fileName:/kt43342.kt VALUE_PARAMETER name:value index:0 type:kotlin.String FUN FAKE_OVERRIDE name:get visibility:public modality:OPEN <> ($this:.ControlFlowInfo.ControlFlowInfo, V of .ControlFlowInfo>, key:kotlin.String) returnType:kotlin.String? [fake_override,operator] overridden: - public open fun get (key: K of .ControlFlowInfo): V of .ControlFlowInfo? [operator] declared in .ControlFlowInfo + public open fun get (key: K of .ControlFlowInfo): V of .ControlFlowInfo? declared in .ControlFlowInfo $this: VALUE_PARAMETER name: type:.ControlFlowInfo.ControlFlowInfo, V of .ControlFlowInfo> VALUE_PARAMETER name:key index:0 type:kotlin.String FUN FAKE_OVERRIDE name:getOrDefault visibility:public modality:OPEN <> ($this:.ControlFlowInfo.ControlFlowInfo, V of .ControlFlowInfo>, key:kotlin.String, defaultValue:kotlin.String) returnType:kotlin.String [fake_override] @@ -184,7 +184,7 @@ FILE fqName: fileName:/kt43342.kt $this: VALUE_PARAMETER name: type:.ControlFlowInfo.ControlFlowInfo, V of .ControlFlowInfo> PROPERTY FAKE_OVERRIDE name:entries visibility:public modality:OPEN [fake_override,val] overridden: - public open entries: kotlin.collections.Set.ControlFlowInfo, V of .ControlFlowInfo>> [val] + public open entries: kotlin.collections.Set.ControlFlowInfo, V of .ControlFlowInfo>> FUN FAKE_OVERRIDE name: visibility:public modality:OPEN <> ($this:.ControlFlowInfo.ControlFlowInfo, V of .ControlFlowInfo>) returnType:kotlin.collections.Set> [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:entries visibility:public modality:OPEN [fake_override,val] overridden: @@ -192,7 +192,7 @@ FILE fqName: fileName:/kt43342.kt $this: VALUE_PARAMETER name: type:.ControlFlowInfo.ControlFlowInfo, V of .ControlFlowInfo> PROPERTY FAKE_OVERRIDE name:keys visibility:public modality:OPEN [fake_override,val] overridden: - public open keys: kotlin.collections.Set.ControlFlowInfo> [val] + public open keys: kotlin.collections.Set.ControlFlowInfo> FUN FAKE_OVERRIDE name: visibility:public modality:OPEN <> ($this:.ControlFlowInfo.ControlFlowInfo, V of .ControlFlowInfo>) returnType:kotlin.collections.Set [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:keys visibility:public modality:OPEN [fake_override,val] overridden: @@ -200,7 +200,7 @@ FILE fqName: fileName:/kt43342.kt $this: VALUE_PARAMETER name: type:.ControlFlowInfo.ControlFlowInfo, V of .ControlFlowInfo> PROPERTY FAKE_OVERRIDE name:size visibility:public modality:OPEN [fake_override,val] overridden: - public open size: kotlin.Int [val] + public open size: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:OPEN <> ($this:.ControlFlowInfo.ControlFlowInfo, V of .ControlFlowInfo>) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:size visibility:public modality:OPEN [fake_override,val] overridden: @@ -208,7 +208,7 @@ FILE fqName: fileName:/kt43342.kt $this: VALUE_PARAMETER name: type:.ControlFlowInfo.ControlFlowInfo, V of .ControlFlowInfo> PROPERTY FAKE_OVERRIDE name:values visibility:public modality:OPEN [fake_override,val] overridden: - public open values: kotlin.collections.Collection.ControlFlowInfo> [val] + public open values: kotlin.collections.Collection.ControlFlowInfo> FUN FAKE_OVERRIDE name: visibility:public modality:OPEN <> ($this:.ControlFlowInfo.ControlFlowInfo, V of .ControlFlowInfo>) returnType:kotlin.collections.Collection [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:values visibility:public modality:OPEN [fake_override,val] overridden: @@ -216,14 +216,14 @@ FILE fqName: fileName:/kt43342.kt $this: VALUE_PARAMETER name: type:.ControlFlowInfo.ControlFlowInfo, V of .ControlFlowInfo> 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 .ControlFlowInfo + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .ControlFlowInfo $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 .ControlFlowInfo + public open fun hashCode (): kotlin.Int declared in .ControlFlowInfo $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 .ControlFlowInfo + public open fun toString (): kotlin.String declared in .ControlFlowInfo $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/firProblems/kt43342.ir.txt b/compiler/testData/ir/irText/firProblems/kt43342.ir.txt index 543db718bad..17b4192ae6b 100644 --- a/compiler/testData/ir/irText/firProblems/kt43342.ir.txt +++ b/compiler/testData/ir/irText/firProblems/kt43342.ir.txt @@ -6,7 +6,7 @@ FILE fqName: fileName:/kt43342.kt CONSTRUCTOR visibility:public <> (map:kotlin.collections.Map.ControlFlowInfo, V of .ControlFlowInfo>) returnType:.ControlFlowInfo.ControlFlowInfo, V of .ControlFlowInfo> [primary] VALUE_PARAMETER name:map index:0 type:kotlin.collections.Map.ControlFlowInfo, V of .ControlFlowInfo> BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:ControlFlowInfo modality:OPEN visibility:public superTypes:[kotlin.collections.Map.ControlFlowInfo, V of .ControlFlowInfo>]' PROPERTY name:map visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:map type:kotlin.collections.Map.ControlFlowInfo, V of .ControlFlowInfo> visibility:private [final] @@ -21,7 +21,7 @@ FILE fqName: fileName:/kt43342.kt receiver: GET_VAR ': .ControlFlowInfo.ControlFlowInfo, V of .ControlFlowInfo> declared in .ControlFlowInfo.' type=.ControlFlowInfo.ControlFlowInfo, V of .ControlFlowInfo> origin=null PROPERTY DELEGATED_MEMBER name:entries visibility:public modality:OPEN [val] overridden: - public abstract entries: kotlin.collections.Set> [val] + public abstract entries: kotlin.collections.Set> FUN DELEGATED_MEMBER name: visibility:public modality:OPEN <> ($this:.ControlFlowInfo.ControlFlowInfo, V of .ControlFlowInfo>) returnType:kotlin.collections.Set.ControlFlowInfo, V of .ControlFlowInfo>> correspondingProperty: PROPERTY DELEGATED_MEMBER name:entries visibility:public modality:OPEN [val] overridden: @@ -34,7 +34,7 @@ FILE fqName: fileName:/kt43342.kt receiver: GET_VAR ': .ControlFlowInfo.ControlFlowInfo, V of .ControlFlowInfo> declared in .ControlFlowInfo.' type=.ControlFlowInfo.ControlFlowInfo, V of .ControlFlowInfo> origin=null PROPERTY DELEGATED_MEMBER name:keys visibility:public modality:OPEN [val] overridden: - public abstract keys: kotlin.collections.Set [val] + public abstract keys: kotlin.collections.Set FUN DELEGATED_MEMBER name: visibility:public modality:OPEN <> ($this:.ControlFlowInfo.ControlFlowInfo, V of .ControlFlowInfo>) returnType:kotlin.collections.Set.ControlFlowInfo> correspondingProperty: PROPERTY DELEGATED_MEMBER name:keys visibility:public modality:OPEN [val] overridden: @@ -47,7 +47,7 @@ FILE fqName: fileName:/kt43342.kt receiver: GET_VAR ': .ControlFlowInfo.ControlFlowInfo, V of .ControlFlowInfo> declared in .ControlFlowInfo.' type=.ControlFlowInfo.ControlFlowInfo, V of .ControlFlowInfo> origin=null PROPERTY DELEGATED_MEMBER name:size visibility:public modality:OPEN [val] overridden: - public abstract size: kotlin.Int [val] + public abstract size: kotlin.Int FUN DELEGATED_MEMBER name: visibility:public modality:OPEN <> ($this:.ControlFlowInfo.ControlFlowInfo, V of .ControlFlowInfo>) returnType:kotlin.Int correspondingProperty: PROPERTY DELEGATED_MEMBER name:size visibility:public modality:OPEN [val] overridden: @@ -60,7 +60,7 @@ FILE fqName: fileName:/kt43342.kt receiver: GET_VAR ': .ControlFlowInfo.ControlFlowInfo, V of .ControlFlowInfo> declared in .ControlFlowInfo.' type=.ControlFlowInfo.ControlFlowInfo, V of .ControlFlowInfo> origin=null PROPERTY DELEGATED_MEMBER name:values visibility:public modality:OPEN [val] overridden: - public abstract values: kotlin.collections.Collection [val] + public abstract values: kotlin.collections.Collection FUN DELEGATED_MEMBER name: visibility:public modality:OPEN <> ($this:.ControlFlowInfo.ControlFlowInfo, V of .ControlFlowInfo>) returnType:kotlin.collections.Collection.ControlFlowInfo> correspondingProperty: PROPERTY DELEGATED_MEMBER name:values visibility:public modality:OPEN [val] overridden: @@ -95,12 +95,12 @@ FILE fqName: fileName:/kt43342.kt value: GET_VAR 'value: V of .ControlFlowInfo declared in .ControlFlowInfo.containsValue' type=V of .ControlFlowInfo origin=null FUN DELEGATED_MEMBER name:get visibility:public modality:OPEN <> ($this:.ControlFlowInfo.ControlFlowInfo, V of .ControlFlowInfo>, key:K of .ControlFlowInfo) returnType:V of .ControlFlowInfo? [operator] overridden: - public abstract fun get (key: K of kotlin.collections.Map): V of kotlin.collections.Map? [operator] declared in kotlin.collections.Map + public abstract fun get (key: K of kotlin.collections.Map): V of kotlin.collections.Map? declared in kotlin.collections.Map $this: VALUE_PARAMETER name: type:.ControlFlowInfo.ControlFlowInfo, V of .ControlFlowInfo> VALUE_PARAMETER name:key index:0 type:K of .ControlFlowInfo BLOCK_BODY - RETURN type=kotlin.Nothing from='public open fun get (key: K of .ControlFlowInfo): V of .ControlFlowInfo? [operator] declared in .ControlFlowInfo' - CALL 'public abstract fun get (key: K of kotlin.collections.Map): V of kotlin.collections.Map? [operator] declared in kotlin.collections.Map' type=V of .ControlFlowInfo? origin=null + RETURN type=kotlin.Nothing from='public open fun get (key: K of .ControlFlowInfo): V of .ControlFlowInfo? declared in .ControlFlowInfo' + CALL 'public abstract fun get (key: K of kotlin.collections.Map): V of kotlin.collections.Map? declared in kotlin.collections.Map' type=V of .ControlFlowInfo? origin=null $this: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:map type:kotlin.collections.Map.ControlFlowInfo, V of .ControlFlowInfo> visibility:private [final]' type=kotlin.collections.Map.ControlFlowInfo, V of .ControlFlowInfo> origin=null receiver: GET_VAR ': .ControlFlowInfo.ControlFlowInfo, V of .ControlFlowInfo> declared in .ControlFlowInfo.get' type=.ControlFlowInfo.ControlFlowInfo, V of .ControlFlowInfo> origin=null key: GET_VAR 'key: K of .ControlFlowInfo declared in .ControlFlowInfo.get' type=K of .ControlFlowInfo origin=null @@ -115,23 +115,23 @@ FILE fqName: fileName:/kt43342.kt receiver: GET_VAR ': .ControlFlowInfo.ControlFlowInfo, V of .ControlFlowInfo> declared in .ControlFlowInfo.isEmpty' type=.ControlFlowInfo.ControlFlowInfo, V of .ControlFlowInfo> 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 [fake_override,operator] declared in kotlin.collections.Map + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.collections.Map $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 kotlin.collections.Map + public open fun hashCode (): kotlin.Int declared in kotlin.collections.Map $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 kotlin.collections.Map + public open fun toString (): kotlin.String declared in kotlin.collections.Map $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:StringFlowInfo modality:FINAL visibility:public superTypes:[.ControlFlowInfo] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.StringFlowInfo CONSTRUCTOR visibility:public <> (map:kotlin.collections.Map) returnType:.StringFlowInfo [primary] VALUE_PARAMETER name:map index:0 type:kotlin.collections.Map BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor (map: kotlin.collections.Map.ControlFlowInfo, V of .ControlFlowInfo>) [primary] declared in .ControlFlowInfo' + DELEGATING_CONSTRUCTOR_CALL 'public constructor (map: kotlin.collections.Map.ControlFlowInfo, V of .ControlFlowInfo>) declared in .ControlFlowInfo' : kotlin.String : kotlin.String map: GET_VAR 'map: kotlin.collections.Map declared in .StringFlowInfo.' type=kotlin.collections.Map origin=null @@ -141,14 +141,14 @@ FILE fqName: fileName:/kt43342.kt VALUE_PARAMETER name:info index:0 type:.StringFlowInfo BLOCK_BODY TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit - CALL 'public open fun (): kotlin.collections.Set [fake_override] declared in .StringFlowInfo' type=kotlin.collections.Set origin=GET_PROPERTY + CALL 'public open fun (): kotlin.collections.Set declared in .StringFlowInfo' type=kotlin.collections.Set origin=GET_PROPERTY $this: GET_VAR ': .StringFlowInfo declared in .StringFlowInfo.foo' type=.StringFlowInfo origin=null TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit - CALL 'public open fun (): kotlin.collections.Set [fake_override] declared in .StringFlowInfo' type=kotlin.collections.Set origin=GET_PROPERTY + CALL 'public open fun (): kotlin.collections.Set declared in .StringFlowInfo' type=kotlin.collections.Set origin=GET_PROPERTY $this: GET_VAR 'info: .StringFlowInfo declared in .StringFlowInfo.foo' type=.StringFlowInfo origin=null PROPERTY FAKE_OVERRIDE name:map visibility:public modality:FINAL [fake_override,val] overridden: - public final map: kotlin.collections.Map.ControlFlowInfo, V of .ControlFlowInfo> [val] + public final map: kotlin.collections.Map.ControlFlowInfo, V of .ControlFlowInfo> FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.ControlFlowInfo) returnType:kotlin.collections.Map [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:map visibility:public modality:FINAL [fake_override,val] overridden: @@ -156,7 +156,7 @@ FILE fqName: fileName:/kt43342.kt $this: VALUE_PARAMETER name: type:.ControlFlowInfo PROPERTY FAKE_OVERRIDE name:entries visibility:public modality:OPEN [fake_override,val] overridden: - public open entries: kotlin.collections.Set.ControlFlowInfo, V of .ControlFlowInfo>> [val] + public open entries: kotlin.collections.Set.ControlFlowInfo, V of .ControlFlowInfo>> FUN FAKE_OVERRIDE name: visibility:public modality:OPEN <> ($this:.ControlFlowInfo) returnType:kotlin.collections.Set> [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:entries visibility:public modality:OPEN [fake_override,val] overridden: @@ -164,7 +164,7 @@ FILE fqName: fileName:/kt43342.kt $this: VALUE_PARAMETER name: type:.ControlFlowInfo PROPERTY FAKE_OVERRIDE name:keys visibility:public modality:OPEN [fake_override,val] overridden: - public open keys: kotlin.collections.Set.ControlFlowInfo> [val] + public open keys: kotlin.collections.Set.ControlFlowInfo> FUN FAKE_OVERRIDE name: visibility:public modality:OPEN <> ($this:.ControlFlowInfo) returnType:kotlin.collections.Set [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:keys visibility:public modality:OPEN [fake_override,val] overridden: @@ -172,7 +172,7 @@ FILE fqName: fileName:/kt43342.kt $this: VALUE_PARAMETER name: type:.ControlFlowInfo PROPERTY FAKE_OVERRIDE name:size visibility:public modality:OPEN [fake_override,val] overridden: - public open size: kotlin.Int [val] + public open size: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:OPEN <> ($this:.ControlFlowInfo) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:size visibility:public modality:OPEN [fake_override,val] overridden: @@ -180,7 +180,7 @@ FILE fqName: fileName:/kt43342.kt $this: VALUE_PARAMETER name: type:.ControlFlowInfo PROPERTY FAKE_OVERRIDE name:values visibility:public modality:OPEN [fake_override,val] overridden: - public open values: kotlin.collections.Collection.ControlFlowInfo> [val] + public open values: kotlin.collections.Collection.ControlFlowInfo> FUN FAKE_OVERRIDE name: visibility:public modality:OPEN <> ($this:.ControlFlowInfo) returnType:kotlin.collections.Collection [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:values visibility:public modality:OPEN [fake_override,val] overridden: @@ -198,17 +198,17 @@ FILE fqName: fileName:/kt43342.kt VALUE_PARAMETER name:value index:0 type:kotlin.String 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 .ControlFlowInfo + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .ControlFlowInfo $this: VALUE_PARAMETER name: type:kotlin.Any VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:get visibility:public modality:OPEN <> ($this:.ControlFlowInfo, key:kotlin.String) returnType:kotlin.String? [fake_override,operator] overridden: - public open fun get (key: K of .ControlFlowInfo): V of .ControlFlowInfo? [operator] declared in .ControlFlowInfo + public open fun get (key: K of .ControlFlowInfo): V of .ControlFlowInfo? declared in .ControlFlowInfo $this: VALUE_PARAMETER name: type:.ControlFlowInfo VALUE_PARAMETER name:key index:0 type:kotlin.String 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 .ControlFlowInfo + public open fun hashCode (): kotlin.Int declared in .ControlFlowInfo $this: VALUE_PARAMETER name: type:kotlin.Any FUN FAKE_OVERRIDE name:isEmpty visibility:public modality:OPEN <> ($this:.ControlFlowInfo) returnType:kotlin.Boolean [fake_override] overridden: @@ -216,5 +216,5 @@ FILE fqName: fileName:/kt43342.kt $this: VALUE_PARAMETER name: type:.ControlFlowInfo 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 .ControlFlowInfo + public open fun toString (): kotlin.String declared in .ControlFlowInfo $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/firProblems/kt55458.fir.ir.txt b/compiler/testData/ir/irText/firProblems/kt55458.fir.ir.txt index 6c9bf03659f..7d883350206 100644 --- a/compiler/testData/ir/irText/firProblems/kt55458.fir.ir.txt +++ b/compiler/testData/ir/irText/firProblems/kt55458.fir.ir.txt @@ -2,13 +2,13 @@ FILE fqName: fileName:/kt55458.kt FUN name:main visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:kotlin.Pair [val] - CALL 'public final fun to (that: B of kotlin.to): kotlin.Pair [infix] declared in kotlin' type=kotlin.Pair origin=null + CALL 'public final fun to (that: B of kotlin.to): kotlin.Pair declared in kotlin' type=kotlin.Pair origin=null : kotlin.Int : kotlin.Int $receiver: CONST Int type=kotlin.Int value=1 that: CONST Int type=kotlin.Int value=2 VAR name:a type:kotlin.Int [val] - CALL 'public final fun component1 (): A of kotlin.Pair [operator] declared in kotlin.Pair' type=kotlin.Int origin=COMPONENT_N(index=1) - $this: GET_VAR 'val tmp_0: kotlin.Pair [val] declared in .main' type=kotlin.Pair origin=null - CALL 'public final fun println (message: kotlin.Any?): kotlin.Unit [inline] declared in kotlin.io' type=kotlin.Unit origin=null - message: GET_VAR 'val a: kotlin.Int [val] declared in .main' type=kotlin.Int origin=null + CALL 'public final fun component1 (): A of kotlin.Pair declared in kotlin.Pair' type=kotlin.Int origin=COMPONENT_N(index=1) + $this: GET_VAR 'val tmp_0: kotlin.Pair declared in .main' type=kotlin.Pair origin=null + CALL 'public final fun println (message: kotlin.Any?): kotlin.Unit declared in kotlin.io' type=kotlin.Unit origin=null + message: GET_VAR 'val a: kotlin.Int declared in .main' type=kotlin.Int origin=null diff --git a/compiler/testData/ir/irText/firProblems/kt55458.ir.txt b/compiler/testData/ir/irText/firProblems/kt55458.ir.txt index 79207e9aaff..9d0eb5bb427 100644 --- a/compiler/testData/ir/irText/firProblems/kt55458.ir.txt +++ b/compiler/testData/ir/irText/firProblems/kt55458.ir.txt @@ -3,13 +3,13 @@ FILE fqName: fileName:/kt55458.kt BLOCK_BODY COMPOSITE type=kotlin.Unit origin=DESTRUCTURING_DECLARATION VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:kotlin.Pair [val] - CALL 'public final fun to (that: B of kotlin.to): kotlin.Pair [infix] declared in kotlin' type=kotlin.Pair origin=null + CALL 'public final fun to (that: B of kotlin.to): kotlin.Pair declared in kotlin' type=kotlin.Pair origin=null : kotlin.Int : kotlin.Int $receiver: CONST Int type=kotlin.Int value=1 that: CONST Int type=kotlin.Int value=2 VAR name:a type:kotlin.Int [val] - CALL 'public final fun component1 (): A of kotlin.Pair [operator] declared in kotlin.Pair' type=kotlin.Int origin=COMPONENT_N(index=1) - $this: GET_VAR 'val tmp_0: kotlin.Pair [val] declared in .main' type=kotlin.Pair origin=null - CALL 'public final fun println (message: kotlin.Int): kotlin.Unit [inline] declared in kotlin.io' type=kotlin.Unit origin=null - message: GET_VAR 'val a: kotlin.Int [val] declared in .main' type=kotlin.Int origin=null + CALL 'public final fun component1 (): A of kotlin.Pair declared in kotlin.Pair' type=kotlin.Int origin=COMPONENT_N(index=1) + $this: GET_VAR 'val tmp_0: kotlin.Pair declared in .main' type=kotlin.Pair origin=null + CALL 'public final fun println (message: kotlin.Int): kotlin.Unit declared in kotlin.io' type=kotlin.Unit origin=null + message: GET_VAR 'val a: kotlin.Int declared in .main' type=kotlin.Int origin=null diff --git a/compiler/testData/ir/irText/firProblems/kt55458.kt b/compiler/testData/ir/irText/firProblems/kt55458.kt index 0648094e097..d0d71c67006 100644 --- a/compiler/testData/ir/irText/firProblems/kt55458.kt +++ b/compiler/testData/ir/irText/firProblems/kt55458.kt @@ -1,8 +1,7 @@ // WITH_STDLIB -// IGNORE_BACKEND: JS_IR -// IGNORE_BACKEND: JS_IR_ES6 +// IGNORE_BACKEND_K1: JS_IR -// MUTE_SIGNATURE_COMPARISON_K2: ANY +// MUTE_SIGNATURE_COMPARISON_K2: JVM_IR // ^ KT-57755 fun main() { diff --git a/compiler/testData/ir/irText/firProblems/lambdaInEnumEntryConstructorCall.fir.ir.txt b/compiler/testData/ir/irText/firProblems/lambdaInEnumEntryConstructorCall.fir.ir.txt index 7cb58cb7dc3..a5b467866a0 100644 --- a/compiler/testData/ir/irText/firProblems/lambdaInEnumEntryConstructorCall.fir.ir.txt +++ b/compiler/testData/ir/irText/firProblems/lambdaInEnumEntryConstructorCall.fir.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/lambdaInEnumEntryConstructorCall.kt CONSTRUCTOR visibility:public <> (baseUrl:kotlin.String) returnType:.Wrapper [primary] VALUE_PARAMETER name:baseUrl index:0 type:kotlin.String BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Wrapper modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:baseUrl visibility:public modality:FINAL [var] FIELD PROPERTY_BACKING_FIELD name:baseUrl type:kotlin.String visibility:private @@ -27,7 +27,7 @@ FILE fqName: fileName:/lambdaInEnumEntryConstructorCall.kt value: GET_VAR ': kotlin.String declared in .Wrapper.' type=kotlin.String 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -48,10 +48,10 @@ FILE fqName: fileName:/lambdaInEnumEntryConstructorCall.kt VALUE_PARAMETER name:value index:0 type:kotlin.String VALUE_PARAMETER name:nc index:1 type:.Wrapper BLOCK_BODY - CALL 'public final fun println (message: kotlin.Any?): kotlin.Unit [inline] declared in kotlin.io' type=kotlin.Unit origin=null - message: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS + CALL 'public final fun println (message: kotlin.Any?): kotlin.Unit declared in kotlin.io' type=kotlin.Unit origin=null + message: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS $this: CONST String type=kotlin.String value="Base url updated from config parameters " other: CALL 'public final fun (): kotlin.String declared in .Wrapper' type=kotlin.String origin=GET_PROPERTY $this: GET_VAR 'nc: .Wrapper declared in .ConfigurationParameter.' type=.Wrapper origin=null @@ -63,7 +63,7 @@ FILE fqName: fileName:/lambdaInEnumEntryConstructorCall.kt CONSTRUCTOR visibility:private <> (apply:kotlin.Function2.Wrapper, kotlin.Unit>) returnType:.ConfigurationParameter VALUE_PARAMETER name:apply index:0 type:kotlin.Function2.Wrapper, kotlin.Unit> BLOCK_BODY - ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) [primary] declared in kotlin.Enum' + ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) declared in kotlin.Enum' : .ConfigurationParameter INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_CLASS name:ConfigurationParameter modality:FINAL visibility:public superTypes:[kotlin.Enum<.ConfigurationParameter>]' FUN ENUM_CLASS_SPECIAL_MEMBER name:values visibility:public modality:FINAL <> () returnType:kotlin.Array<.ConfigurationParameter> @@ -81,12 +81,12 @@ FILE fqName: fileName:/lambdaInEnumEntryConstructorCall.kt $this: VALUE_PARAMETER name: type:kotlin.Enum FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum, other:.ConfigurationParameter) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: E of kotlin.Enum): kotlin.Int [operator] declared in kotlin.Enum + public final fun compareTo (other: E of kotlin.Enum): kotlin.Int declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:.ConfigurationParameter FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Enum + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:hashCode visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] @@ -101,7 +101,7 @@ FILE fqName: fileName:/lambdaInEnumEntryConstructorCall.kt annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: @@ -109,7 +109,7 @@ FILE fqName: fileName:/lambdaInEnumEntryConstructorCall.kt $this: VALUE_PARAMETER name: type:kotlin.Enum PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: diff --git a/compiler/testData/ir/irText/firProblems/lambdaInEnumEntryConstructorCall.ir.txt b/compiler/testData/ir/irText/firProblems/lambdaInEnumEntryConstructorCall.ir.txt index ae630c74675..41721ce33fc 100644 --- a/compiler/testData/ir/irText/firProblems/lambdaInEnumEntryConstructorCall.ir.txt +++ b/compiler/testData/ir/irText/firProblems/lambdaInEnumEntryConstructorCall.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/lambdaInEnumEntryConstructorCall.kt CONSTRUCTOR visibility:public <> (baseUrl:kotlin.String) returnType:.Wrapper [primary] VALUE_PARAMETER name:baseUrl index:0 type:kotlin.String BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Wrapper modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:baseUrl visibility:public modality:FINAL [var] FIELD PROPERTY_BACKING_FIELD name:baseUrl type:kotlin.String visibility:private @@ -27,7 +27,7 @@ FILE fqName: fileName:/lambdaInEnumEntryConstructorCall.kt value: GET_VAR ': kotlin.String declared in .Wrapper.' type=kotlin.String 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -48,10 +48,10 @@ FILE fqName: fileName:/lambdaInEnumEntryConstructorCall.kt VALUE_PARAMETER name:value index:0 type:kotlin.String VALUE_PARAMETER name:nc index:1 type:.Wrapper BLOCK_BODY - CALL 'public final fun println (message: kotlin.Any?): kotlin.Unit [inline] declared in kotlin.io' type=kotlin.Unit origin=null - message: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS + CALL 'public final fun println (message: kotlin.Any?): kotlin.Unit declared in kotlin.io' type=kotlin.Unit origin=null + message: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS $this: CONST String type=kotlin.String value="Base url updated from config parameters " other: CALL 'public final fun (): kotlin.String declared in .Wrapper' type=kotlin.String origin=GET_PROPERTY $this: GET_VAR 'nc: .Wrapper declared in .ConfigurationParameter.' type=.Wrapper origin=null @@ -63,14 +63,14 @@ FILE fqName: fileName:/lambdaInEnumEntryConstructorCall.kt CONSTRUCTOR visibility:private <> (apply:kotlin.Function2.Wrapper, kotlin.Unit>) returnType:.ConfigurationParameter VALUE_PARAMETER name:apply index:0 type:kotlin.Function2.Wrapper, kotlin.Unit> BLOCK_BODY - ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) [primary] declared in kotlin.Enum' + ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) declared in kotlin.Enum' : .ConfigurationParameter INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_CLASS name:ConfigurationParameter modality:FINAL visibility:public superTypes:[kotlin.Enum<.ConfigurationParameter>]' PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.ConfigurationParameter>) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: @@ -78,7 +78,7 @@ FILE fqName: fileName:/lambdaInEnumEntryConstructorCall.kt $this: VALUE_PARAMETER name: type:kotlin.Enum<.ConfigurationParameter> PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.ConfigurationParameter>) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: @@ -90,12 +90,12 @@ FILE fqName: fileName:/lambdaInEnumEntryConstructorCall.kt $this: VALUE_PARAMETER name: type:kotlin.Enum<.ConfigurationParameter> FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum<.ConfigurationParameter>, other:.ConfigurationParameter) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: E of kotlin.Enum): kotlin.Int [operator] declared in kotlin.Enum + public final fun compareTo (other: E of kotlin.Enum): kotlin.Int declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum<.ConfigurationParameter> VALUE_PARAMETER name:other index:0 type:.ConfigurationParameter FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum<.ConfigurationParameter>, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Enum + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum<.ConfigurationParameter> VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:finalize visibility:protected/*protected and package*/ modality:FINAL <> ($this:kotlin.Enum<.ConfigurationParameter>) returnType:kotlin.Unit [fake_override] diff --git a/compiler/testData/ir/irText/firProblems/localClassUsedBeforeDeclaration.ir.txt b/compiler/testData/ir/irText/firProblems/localClassUsedBeforeDeclaration.ir.txt index 54ccba6d9be..c6a50b99436 100644 --- a/compiler/testData/ir/irText/firProblems/localClassUsedBeforeDeclaration.ir.txt +++ b/compiler/testData/ir/irText/firProblems/localClassUsedBeforeDeclaration.ir.txt @@ -9,12 +9,12 @@ FILE fqName: fileName:/localClassUsedBeforeDeclaration.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.box. CONSTRUCTOR visibility:public <> () returnType:.box. [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name: modality:FINAL visibility:local superTypes:[kotlin.Any]' PROPERTY name:a visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:a type:.box..A visibility:private [final] EXPRESSION_BODY - CONSTRUCTOR_CALL 'public constructor (ok: kotlin.String) [primary] declared in .box..A' type=.box..A origin=null + CONSTRUCTOR_CALL 'public constructor (ok: kotlin.String) declared in .box..A' type=.box..A origin=null $outer: GET_VAR ': .box. declared in .box.' type=.box. origin=null ok: CONST String type=kotlin.String value="OK" FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:.box.) returnType:.box..A @@ -30,7 +30,7 @@ FILE fqName: fileName:/localClassUsedBeforeDeclaration.kt $outer: VALUE_PARAMETER name: type:.box. VALUE_PARAMETER name:ok index:0 type:kotlin.String BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:A modality:FINAL visibility:local [inner] superTypes:[kotlin.Any]' PROPERTY name:ok visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:ok type:kotlin.String visibility:private [final] @@ -45,7 +45,7 @@ FILE fqName: fileName:/localClassUsedBeforeDeclaration.kt receiver: GET_VAR ': .box..A declared in .box..A.' type=.box..A 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -58,7 +58,7 @@ FILE fqName: fileName:/localClassUsedBeforeDeclaration.kt $this: VALUE_PARAMETER name: type: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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -69,4 +69,4 @@ FILE fqName: fileName:/localClassUsedBeforeDeclaration.kt overridden: public open fun toString (): kotlin.String declared in kotlin.Any $this: VALUE_PARAMETER name: type:kotlin.Any - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .box.' type=.box. origin=OBJECT_LITERAL + CONSTRUCTOR_CALL 'public constructor () declared in .box.' type=.box. origin=OBJECT_LITERAL diff --git a/compiler/testData/ir/irText/firProblems/localCompanion.ir.txt b/compiler/testData/ir/irText/firProblems/localCompanion.ir.txt index 070c8550fbd..fc557494421 100644 --- a/compiler/testData/ir/irText/firProblems/localCompanion.ir.txt +++ b/compiler/testData/ir/irText/firProblems/localCompanion.ir.txt @@ -5,7 +5,7 @@ FILE fqName: fileName:/localCompanion.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.main.Foo CONSTRUCTOR visibility:public <> () returnType:.main.Foo [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Foo modality:FINAL visibility:local superTypes:[kotlin.Any]' CLASS OBJECT name:Companion modality:FINAL visibility:local [companion] superTypes:[kotlin.Any] annotations: @@ -13,14 +13,14 @@ FILE fqName: fileName:/localCompanion.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.main.Foo.Companion CONSTRUCTOR visibility:private <> () returnType:.main.Foo.Companion [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:Companion modality:FINAL visibility:local [companion] superTypes:[kotlin.Any]' FUN name:bar visibility:public modality:FINAL <> ($this:.main.Foo.Companion) returnType:kotlin.Unit $this: VALUE_PARAMETER name: type:.main.Foo.Companion 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -33,7 +33,7 @@ FILE fqName: fileName:/localCompanion.kt $this: VALUE_PARAMETER name: type: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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/firProblems/putIfAbsent.fir.ir.txt b/compiler/testData/ir/irText/firProblems/putIfAbsent.fir.ir.txt index 75941faaf6f..ec4087936de 100644 --- a/compiler/testData/ir/irText/firProblems/putIfAbsent.fir.ir.txt +++ b/compiler/testData/ir/irText/firProblems/putIfAbsent.fir.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/putIfAbsent.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Owner CONSTRUCTOR visibility:public <> () returnType:.Owner [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Owner modality:FINAL visibility:public superTypes:[kotlin.Any]' FUN name:foo visibility:public modality:FINAL ($this:.Owner, x:T of .Owner.foo, y:T of .Owner.foo) returnType:kotlin.Unit TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false @@ -12,17 +12,17 @@ FILE fqName: fileName:/putIfAbsent.kt VALUE_PARAMETER name:y index:1 type:T of .Owner.foo BLOCK_BODY VAR name:map type:kotlin.collections.MutableMap.Owner.foo, T of .Owner.foo> [val] - CALL 'public final fun mutableMapOf (): kotlin.collections.MutableMap [inline] declared in kotlin.collections.MapsKt' type=kotlin.collections.MutableMap.Owner.foo, T of .Owner.foo> origin=null + CALL 'public final fun mutableMapOf (): kotlin.collections.MutableMap declared in kotlin.collections.MapsKt' type=kotlin.collections.MutableMap.Owner.foo, T of .Owner.foo> origin=null : T of .Owner.foo : T of .Owner.foo TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit CALL 'public open fun putIfAbsent (p0: @[EnhancedNullability] K of kotlin.collections.MutableMap, p1: @[EnhancedNullability] V of kotlin.collections.MutableMap): V of kotlin.collections.MutableMap? declared in kotlin.collections.MutableMap' type=T of .Owner.foo? origin=null - $this: GET_VAR 'val map: kotlin.collections.MutableMap.Owner.foo, T of .Owner.foo> [val] declared in .Owner.foo' type=kotlin.collections.MutableMap.Owner.foo, T of .Owner.foo> origin=null + $this: GET_VAR 'val map: kotlin.collections.MutableMap.Owner.foo, T of .Owner.foo> declared in .Owner.foo' type=kotlin.collections.MutableMap.Owner.foo, T of .Owner.foo> origin=null p0: GET_VAR 'x: T of .Owner.foo declared in .Owner.foo' type=T of .Owner.foo origin=null p1: GET_VAR 'y: T of .Owner.foo declared in .Owner.foo' type=T of .Owner.foo 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/firProblems/putIfAbsent.ir.txt b/compiler/testData/ir/irText/firProblems/putIfAbsent.ir.txt index e5e6ea9a5f3..74bf0651784 100644 --- a/compiler/testData/ir/irText/firProblems/putIfAbsent.ir.txt +++ b/compiler/testData/ir/irText/firProblems/putIfAbsent.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/putIfAbsent.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Owner CONSTRUCTOR visibility:public <> () returnType:.Owner [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Owner modality:FINAL visibility:public superTypes:[kotlin.Any]' FUN name:foo visibility:public modality:FINAL ($this:.Owner, x:T of .Owner.foo, y:T of .Owner.foo) returnType:kotlin.Unit TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false @@ -12,17 +12,17 @@ FILE fqName: fileName:/putIfAbsent.kt VALUE_PARAMETER name:y index:1 type:T of .Owner.foo BLOCK_BODY VAR name:map type:kotlin.collections.MutableMap.Owner.foo, T of .Owner.foo> [val] - CALL 'public final fun mutableMapOf (): kotlin.collections.MutableMap [inline] declared in kotlin.collections.MapsKt' type=kotlin.collections.MutableMap.Owner.foo, T of .Owner.foo> origin=null + CALL 'public final fun mutableMapOf (): kotlin.collections.MutableMap declared in kotlin.collections.MapsKt' type=kotlin.collections.MutableMap.Owner.foo, T of .Owner.foo> origin=null : T of .Owner.foo : T of .Owner.foo TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit CALL 'public open fun putIfAbsent (p0: @[EnhancedNullability] K of kotlin.collections.MutableMap, p1: @[EnhancedNullability] V of kotlin.collections.MutableMap): @[EnhancedNullability] V of kotlin.collections.MutableMap? declared in kotlin.collections.MutableMap' type=@[EnhancedNullability] T of .Owner.foo? origin=null - $this: GET_VAR 'val map: kotlin.collections.MutableMap.Owner.foo, T of .Owner.foo> [val] declared in .Owner.foo' type=kotlin.collections.MutableMap.Owner.foo, T of .Owner.foo> origin=null + $this: GET_VAR 'val map: kotlin.collections.MutableMap.Owner.foo, T of .Owner.foo> declared in .Owner.foo' type=kotlin.collections.MutableMap.Owner.foo, T of .Owner.foo> origin=null p0: GET_VAR 'x: T of .Owner.foo declared in .Owner.foo' type=T of .Owner.foo origin=null p1: GET_VAR 'y: T of .Owner.foo declared in .Owner.foo' type=T of .Owner.foo 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/firProblems/readWriteProperty.fir.ir.txt b/compiler/testData/ir/irText/firProblems/readWriteProperty.fir.ir.txt index aecbcdbf627..52cdd42c6c3 100644 --- a/compiler/testData/ir/irText/firProblems/readWriteProperty.fir.ir.txt +++ b/compiler/testData/ir/irText/firProblems/readWriteProperty.fir.ir.txt @@ -5,7 +5,7 @@ FILE fqName: fileName:/readWriteProperty.kt CONSTRUCTOR visibility:public <> (type:kotlin.reflect.KClass.SettingType>) returnType:.SettingType.SettingType> [primary] VALUE_PARAMETER name:type index:0 type:kotlin.reflect.KClass.SettingType> BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:SettingType modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:type visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:type type:kotlin.reflect.KClass.SettingType> visibility:private [final] @@ -20,7 +20,7 @@ FILE fqName: fileName:/readWriteProperty.kt receiver: GET_VAR ': .SettingType.SettingType> declared in .SettingType.' type=.SettingType.SettingType> 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -39,7 +39,7 @@ FILE fqName: fileName:/readWriteProperty.kt VALUE_PARAMETER name:t index:0 type:T of .SettingReference VALUE_PARAMETER name:v index:1 type:V of .SettingReference BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:SettingReference modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:t visibility:public modality:FINAL [var] FIELD PROPERTY_BACKING_FIELD name:t type:T of .SettingReference visibility:private @@ -81,7 +81,7 @@ FILE fqName: fileName:/readWriteProperty.kt value: GET_VAR ': V of .SettingReference declared in .SettingReference.' type=V of .SettingReference 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -96,7 +96,7 @@ FILE fqName: fileName:/readWriteProperty.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.IdeWizard CONSTRUCTOR visibility:public <> () returnType:.IdeWizard [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:IdeWizard modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:projectTemplate visibility:public modality:FINAL [delegated,var] FIELD PROPERTY_DELEGATE name:projectTemplate$delegate type:.IdeWizard.setting..SettingType> visibility:private [final] @@ -105,10 +105,10 @@ FILE fqName: fileName:/readWriteProperty.kt : kotlin.Int : .SettingType $this: GET_VAR ': .IdeWizard declared in .IdeWizard' type=.IdeWizard origin=null - reference: CONSTRUCTOR_CALL 'public constructor (t: T of .SettingReference, v: V of .SettingReference) [primary] declared in .SettingReference' type=.SettingReference.SettingType> origin=null + reference: CONSTRUCTOR_CALL 'public constructor (t: T of .SettingReference, v: V of .SettingReference) declared in .SettingReference' type=.SettingReference.SettingType> origin=null : kotlin.Int : .SettingType - t: CONSTRUCTOR_CALL 'public constructor (type: kotlin.reflect.KClass.SettingType>) [primary] declared in .SettingType' type=.SettingType origin=null + t: CONSTRUCTOR_CALL 'public constructor (type: kotlin.reflect.KClass.SettingType>) declared in .SettingType' type=.SettingType origin=null : kotlin.Int type: GET_CLASS type=kotlin.reflect.KClass CONST Int type=kotlin.Int value=42 @@ -118,21 +118,21 @@ FILE fqName: fileName:/readWriteProperty.kt $this: VALUE_PARAMETER name: type:.IdeWizard BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun (): kotlin.Int? declared in .IdeWizard' - CALL 'public open fun getValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): V of .IdeWizard.setting? [operator] declared in .IdeWizard.setting.' type=kotlin.Int? origin=null + CALL 'public open fun getValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): V of .IdeWizard.setting? declared in .IdeWizard.setting.' type=kotlin.Int? origin=null $this: GET_FIELD 'FIELD PROPERTY_DELEGATE name:projectTemplate$delegate type:.IdeWizard.setting..SettingType> visibility:private [final]' type=.IdeWizard.setting..SettingType> origin=null receiver: GET_VAR ': .IdeWizard declared in .IdeWizard.' type=.IdeWizard origin=null thisRef: GET_VAR ': .IdeWizard declared in .IdeWizard.' type=.IdeWizard origin=null - property: PROPERTY_REFERENCE 'public final projectTemplate: kotlin.Int? [delegated,var]' field=null getter='public final fun (): kotlin.Int? declared in .IdeWizard' setter='public final fun (: kotlin.Int?): kotlin.Unit declared in .IdeWizard' type=kotlin.reflect.KMutableProperty1<.IdeWizard, kotlin.Int?> origin=PROPERTY_REFERENCE_FOR_DELEGATE + property: PROPERTY_REFERENCE 'public final projectTemplate: kotlin.Int?' field=null getter='public final fun (): kotlin.Int? declared in .IdeWizard' setter='public final fun (: kotlin.Int?): kotlin.Unit declared in .IdeWizard' type=kotlin.reflect.KMutableProperty1<.IdeWizard, kotlin.Int?> origin=PROPERTY_REFERENCE_FOR_DELEGATE FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:.IdeWizard, :kotlin.Int?) returnType:kotlin.Unit correspondingProperty: PROPERTY name:projectTemplate visibility:public modality:FINAL [delegated,var] $this: VALUE_PARAMETER name: type:.IdeWizard VALUE_PARAMETER name: index:0 type:kotlin.Int? BLOCK_BODY - CALL 'public open fun setValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>, value: V of .IdeWizard.setting?): kotlin.Unit [operator] declared in .IdeWizard.setting.' type=kotlin.Unit origin=null + CALL 'public open fun setValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>, value: V of .IdeWizard.setting?): kotlin.Unit declared in .IdeWizard.setting.' type=kotlin.Unit origin=null $this: GET_FIELD 'FIELD PROPERTY_DELEGATE name:projectTemplate$delegate type:.IdeWizard.setting..SettingType> visibility:private [final]' type=.IdeWizard.setting..SettingType> origin=null receiver: GET_VAR ': .IdeWizard declared in .IdeWizard.' type=.IdeWizard origin=null thisRef: GET_VAR ': .IdeWizard declared in .IdeWizard.' type=.IdeWizard origin=null - property: PROPERTY_REFERENCE 'public final projectTemplate: kotlin.Int? [delegated,var]' field=null getter='public final fun (): kotlin.Int? declared in .IdeWizard' setter='public final fun (: kotlin.Int?): kotlin.Unit declared in .IdeWizard' type=kotlin.reflect.KMutableProperty1<.IdeWizard, kotlin.Int?> origin=PROPERTY_REFERENCE_FOR_DELEGATE + property: PROPERTY_REFERENCE 'public final projectTemplate: kotlin.Int?' field=null getter='public final fun (): kotlin.Int? declared in .IdeWizard' setter='public final fun (: kotlin.Int?): kotlin.Unit declared in .IdeWizard' type=kotlin.reflect.KMutableProperty1<.IdeWizard, kotlin.Int?> origin=PROPERTY_REFERENCE_FOR_DELEGATE value: GET_VAR ': kotlin.Int? declared in .IdeWizard.' type=kotlin.Int? origin=null FUN name:setting visibility:private modality:FINAL ($this:.IdeWizard, reference:.SettingReference.IdeWizard.setting, T of .IdeWizard.setting>) returnType:.IdeWizard.setting..IdeWizard.setting, T of .IdeWizard.setting> TYPE_PARAMETER name:V index:0 variance: superTypes:[kotlin.Any] reified:false @@ -146,11 +146,11 @@ FILE fqName: fileName:/readWriteProperty.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.IdeWizard.setting..IdeWizard.setting, T of .IdeWizard.setting> CONSTRUCTOR visibility:public <> () returnType:.IdeWizard.setting..IdeWizard.setting, T of .IdeWizard.setting> [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name: modality:FINAL visibility:local superTypes:[kotlin.properties.ReadWriteProperty.IdeWizard.setting?>]' FUN name:setValue visibility:public modality:OPEN <> ($this:.IdeWizard.setting..IdeWizard.setting, T of .IdeWizard.setting>, thisRef:kotlin.Any?, property:kotlin.reflect.KProperty<*>, value:V of .IdeWizard.setting?) returnType:kotlin.Unit [operator] overridden: - public abstract fun setValue (thisRef: T of kotlin.properties.ReadWriteProperty, property: kotlin.reflect.KProperty<*>, value: V of kotlin.properties.ReadWriteProperty): kotlin.Unit [operator] declared in kotlin.properties.ReadWriteProperty + public abstract fun setValue (thisRef: T of kotlin.properties.ReadWriteProperty, property: kotlin.reflect.KProperty<*>, value: V of kotlin.properties.ReadWriteProperty): kotlin.Unit declared in kotlin.properties.ReadWriteProperty $this: VALUE_PARAMETER name: type:.IdeWizard.setting..IdeWizard.setting, T of .IdeWizard.setting> VALUE_PARAMETER name:thisRef index:0 type:kotlin.Any? VALUE_PARAMETER name:property index:1 type:kotlin.reflect.KProperty<*> @@ -161,12 +161,12 @@ FILE fqName: fileName:/readWriteProperty.kt if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ arg0: GET_VAR 'value: V of .IdeWizard.setting? declared in .IdeWizard.setting..setValue' type=V of .IdeWizard.setting? origin=null arg1: CONST Null type=kotlin.Nothing? value=null - then: RETURN type=kotlin.Nothing from='public open fun setValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>, value: V of .IdeWizard.setting?): kotlin.Unit [operator] declared in .IdeWizard.setting.' + then: RETURN type=kotlin.Nothing from='public open fun setValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>, value: V of .IdeWizard.setting?): kotlin.Unit declared in .IdeWizard.setting.' GET_OBJECT 'CLASS IR_EXTERNAL_DECLARATION_STUB OBJECT name:Unit modality:FINAL visibility:public superTypes:[kotlin.Any]' type=kotlin.Unit CALL 'public final fun (: T of .SettingReference): kotlin.Unit declared in .SettingReference' type=kotlin.Unit origin=EQ $this: GET_VAR 'reference: .SettingReference.IdeWizard.setting, T of .IdeWizard.setting> declared in .IdeWizard.setting' type=.SettingReference.IdeWizard.setting, T of .IdeWizard.setting> origin=null : TYPE_OP type=T of .IdeWizard.setting origin=CAST typeOperand=T of .IdeWizard.setting - CONSTRUCTOR_CALL 'public constructor (type: kotlin.reflect.KClass.SettingType>) [primary] declared in .SettingType' type=.SettingType.IdeWizard.setting> origin=null + CONSTRUCTOR_CALL 'public constructor (type: kotlin.reflect.KClass.SettingType>) declared in .SettingType' type=.SettingType.IdeWizard.setting> origin=null : V of .IdeWizard.setting type: GET_CLASS type=kotlin.reflect.KClass.IdeWizard.setting> GET_VAR 'value: V of .IdeWizard.setting? declared in .IdeWizard.setting..setValue' type=V of .IdeWizard.setting? origin=null @@ -175,31 +175,31 @@ FILE fqName: fileName:/readWriteProperty.kt : GET_VAR 'value: V of .IdeWizard.setting? declared in .IdeWizard.setting..setValue' type=V of .IdeWizard.setting? origin=null FUN name:getValue visibility:public modality:OPEN <> ($this:.IdeWizard.setting..IdeWizard.setting, T of .IdeWizard.setting>, thisRef:kotlin.Any?, property:kotlin.reflect.KProperty<*>) returnType:V of .IdeWizard.setting? [operator] overridden: - public abstract fun getValue (thisRef: T of kotlin.properties.ReadWriteProperty, property: kotlin.reflect.KProperty<*>): V of kotlin.properties.ReadWriteProperty [operator] declared in kotlin.properties.ReadWriteProperty + public abstract fun getValue (thisRef: T of kotlin.properties.ReadWriteProperty, property: kotlin.reflect.KProperty<*>): V of kotlin.properties.ReadWriteProperty declared in kotlin.properties.ReadWriteProperty $this: VALUE_PARAMETER name: type:.IdeWizard.setting..IdeWizard.setting, T of .IdeWizard.setting> VALUE_PARAMETER name:thisRef index:0 type:kotlin.Any? VALUE_PARAMETER name:property index:1 type:kotlin.reflect.KProperty<*> BLOCK_BODY - RETURN type=kotlin.Nothing from='public open fun getValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): V of .IdeWizard.setting? [operator] declared in .IdeWizard.setting.' + RETURN type=kotlin.Nothing from='public open fun getValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): V of .IdeWizard.setting? declared in .IdeWizard.setting.' CALL 'public final fun (): V of .SettingReference declared in .SettingReference' type=V of .IdeWizard.setting origin=GET_PROPERTY $this: GET_VAR 'reference: .SettingReference.IdeWizard.setting, T of .IdeWizard.setting> declared in .IdeWizard.setting' type=.SettingReference.IdeWizard.setting, T of .IdeWizard.setting> 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 [fake_override,operator] declared in kotlin.properties.ReadWriteProperty + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.properties.ReadWriteProperty $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 kotlin.properties.ReadWriteProperty + public open fun hashCode (): kotlin.Int declared in kotlin.properties.ReadWriteProperty $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 kotlin.properties.ReadWriteProperty + public open fun toString (): kotlin.String declared in kotlin.properties.ReadWriteProperty $this: VALUE_PARAMETER name: type:kotlin.Any - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .IdeWizard.setting.' type=.IdeWizard.setting..IdeWizard.setting, T of .IdeWizard.setting> origin=OBJECT_LITERAL + CONSTRUCTOR_CALL 'public constructor () declared in .IdeWizard.setting.' type=.IdeWizard.setting..IdeWizard.setting, T of .IdeWizard.setting> origin=OBJECT_LITERAL 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/firProblems/readWriteProperty.ir.txt b/compiler/testData/ir/irText/firProblems/readWriteProperty.ir.txt index c27e9d7e382..ff1a0b65422 100644 --- a/compiler/testData/ir/irText/firProblems/readWriteProperty.ir.txt +++ b/compiler/testData/ir/irText/firProblems/readWriteProperty.ir.txt @@ -5,7 +5,7 @@ FILE fqName: fileName:/readWriteProperty.kt CONSTRUCTOR visibility:public <> (type:kotlin.reflect.KClass.SettingType>) returnType:.SettingType.SettingType> [primary] VALUE_PARAMETER name:type index:0 type:kotlin.reflect.KClass.SettingType> BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:SettingType modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:type visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:type type:kotlin.reflect.KClass.SettingType> visibility:private [final] @@ -20,7 +20,7 @@ FILE fqName: fileName:/readWriteProperty.kt receiver: GET_VAR ': .SettingType.SettingType> declared in .SettingType.' type=.SettingType.SettingType> 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -39,7 +39,7 @@ FILE fqName: fileName:/readWriteProperty.kt VALUE_PARAMETER name:t index:0 type:T of .SettingReference VALUE_PARAMETER name:v index:1 type:V of .SettingReference BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:SettingReference modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:t visibility:public modality:FINAL [var] FIELD PROPERTY_BACKING_FIELD name:t type:T of .SettingReference visibility:private @@ -81,7 +81,7 @@ FILE fqName: fileName:/readWriteProperty.kt value: GET_VAR ': V of .SettingReference declared in .SettingReference.' type=V of .SettingReference 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -96,7 +96,7 @@ FILE fqName: fileName:/readWriteProperty.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.IdeWizard CONSTRUCTOR visibility:public <> () returnType:.IdeWizard [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:IdeWizard modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:projectTemplate visibility:public modality:FINAL [delegated,var] FIELD PROPERTY_DELEGATE name:projectTemplate$delegate type:.IdeWizard.setting..SettingType> visibility:private [final] @@ -105,10 +105,10 @@ FILE fqName: fileName:/readWriteProperty.kt : kotlin.Int : .SettingType $this: GET_VAR ': .IdeWizard declared in .IdeWizard' type=.IdeWizard origin=null - reference: CONSTRUCTOR_CALL 'public constructor (t: T of .SettingReference, v: V of .SettingReference) [primary] declared in .SettingReference' type=.SettingReference.SettingType> origin=null + reference: CONSTRUCTOR_CALL 'public constructor (t: T of .SettingReference, v: V of .SettingReference) declared in .SettingReference' type=.SettingReference.SettingType> origin=null : kotlin.Int : .SettingType - t: CONSTRUCTOR_CALL 'public constructor (type: kotlin.reflect.KClass.SettingType>) [primary] declared in .SettingType' type=.SettingType origin=null + t: CONSTRUCTOR_CALL 'public constructor (type: kotlin.reflect.KClass.SettingType>) declared in .SettingType' type=.SettingType origin=null : kotlin.Int type: GET_CLASS type=kotlin.reflect.KClass CONST Int type=kotlin.Int value=42 @@ -118,22 +118,22 @@ FILE fqName: fileName:/readWriteProperty.kt $this: VALUE_PARAMETER name: type:.IdeWizard BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun (): kotlin.Int? declared in .IdeWizard' - CALL 'public open fun getValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): V of .IdeWizard.setting? [operator] declared in .IdeWizard.setting.' type=kotlin.Int? origin=null + CALL 'public open fun getValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): V of .IdeWizard.setting? declared in .IdeWizard.setting.' type=kotlin.Int? origin=null $this: GET_FIELD 'FIELD PROPERTY_DELEGATE name:projectTemplate$delegate type:.IdeWizard.setting..SettingType> visibility:private [final]' type=.IdeWizard.setting..SettingType> origin=null receiver: GET_VAR ': .IdeWizard declared in .IdeWizard.' type=.IdeWizard origin=null thisRef: GET_VAR ': .IdeWizard declared in .IdeWizard.' type=.IdeWizard origin=null - property: PROPERTY_REFERENCE 'public final projectTemplate: kotlin.Int? [delegated,var]' field=null getter='public final fun (): kotlin.Int? declared in .IdeWizard' setter='public final fun (: kotlin.Int?): kotlin.Unit declared in .IdeWizard' type=kotlin.reflect.KMutableProperty1<.IdeWizard, kotlin.Int?> origin=PROPERTY_REFERENCE_FOR_DELEGATE + property: PROPERTY_REFERENCE 'public final projectTemplate: kotlin.Int?' field=null getter='public final fun (): kotlin.Int? declared in .IdeWizard' setter='public final fun (: kotlin.Int?): kotlin.Unit declared in .IdeWizard' type=kotlin.reflect.KMutableProperty1<.IdeWizard, kotlin.Int?> origin=PROPERTY_REFERENCE_FOR_DELEGATE FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:.IdeWizard, :kotlin.Int?) returnType:kotlin.Unit correspondingProperty: PROPERTY name:projectTemplate visibility:public modality:FINAL [delegated,var] $this: VALUE_PARAMETER name: type:.IdeWizard VALUE_PARAMETER name: index:0 type:kotlin.Int? BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun (: kotlin.Int?): kotlin.Unit declared in .IdeWizard' - CALL 'public open fun setValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>, value: V of .IdeWizard.setting?): kotlin.Unit [operator] declared in .IdeWizard.setting.' type=kotlin.Unit origin=null + CALL 'public open fun setValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>, value: V of .IdeWizard.setting?): kotlin.Unit declared in .IdeWizard.setting.' type=kotlin.Unit origin=null $this: GET_FIELD 'FIELD PROPERTY_DELEGATE name:projectTemplate$delegate type:.IdeWizard.setting..SettingType> visibility:private [final]' type=.IdeWizard.setting..SettingType> origin=null receiver: GET_VAR ': .IdeWizard declared in .IdeWizard.' type=.IdeWizard origin=null thisRef: GET_VAR ': .IdeWizard declared in .IdeWizard.' type=.IdeWizard origin=null - property: PROPERTY_REFERENCE 'public final projectTemplate: kotlin.Int? [delegated,var]' field=null getter='public final fun (): kotlin.Int? declared in .IdeWizard' setter='public final fun (: kotlin.Int?): kotlin.Unit declared in .IdeWizard' type=kotlin.reflect.KMutableProperty1<.IdeWizard, kotlin.Int?> origin=PROPERTY_REFERENCE_FOR_DELEGATE + property: PROPERTY_REFERENCE 'public final projectTemplate: kotlin.Int?' field=null getter='public final fun (): kotlin.Int? declared in .IdeWizard' setter='public final fun (: kotlin.Int?): kotlin.Unit declared in .IdeWizard' type=kotlin.reflect.KMutableProperty1<.IdeWizard, kotlin.Int?> origin=PROPERTY_REFERENCE_FOR_DELEGATE value: GET_VAR ': kotlin.Int? declared in .IdeWizard.' type=kotlin.Int? origin=null FUN name:setting visibility:private modality:FINAL ($this:.IdeWizard, reference:.SettingReference.IdeWizard.setting, T of .IdeWizard.setting>) returnType:.IdeWizard.setting..IdeWizard.setting, T of .IdeWizard.setting> TYPE_PARAMETER name:V index:0 variance: superTypes:[kotlin.Any] reified:false @@ -147,11 +147,11 @@ FILE fqName: fileName:/readWriteProperty.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.IdeWizard.setting..IdeWizard.setting, T of .IdeWizard.setting> CONSTRUCTOR visibility:public <> () returnType:.IdeWizard.setting..IdeWizard.setting, T of .IdeWizard.setting> [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name: modality:FINAL visibility:local superTypes:[kotlin.properties.ReadWriteProperty.IdeWizard.setting?>]' FUN name:setValue visibility:public modality:OPEN <> ($this:.IdeWizard.setting..IdeWizard.setting, T of .IdeWizard.setting>, thisRef:kotlin.Any?, property:kotlin.reflect.KProperty<*>, value:V of .IdeWizard.setting?) returnType:kotlin.Unit [operator] overridden: - public abstract fun setValue (thisRef: T of kotlin.properties.ReadWriteProperty, property: kotlin.reflect.KProperty<*>, value: V of kotlin.properties.ReadWriteProperty): kotlin.Unit [operator] declared in kotlin.properties.ReadWriteProperty + public abstract fun setValue (thisRef: T of kotlin.properties.ReadWriteProperty, property: kotlin.reflect.KProperty<*>, value: V of kotlin.properties.ReadWriteProperty): kotlin.Unit declared in kotlin.properties.ReadWriteProperty $this: VALUE_PARAMETER name: type:.IdeWizard.setting..IdeWizard.setting, T of .IdeWizard.setting> VALUE_PARAMETER name:thisRef index:0 type:kotlin.Any? VALUE_PARAMETER name:property index:1 type:kotlin.reflect.KProperty<*> @@ -162,12 +162,12 @@ FILE fqName: fileName:/readWriteProperty.kt if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ arg0: GET_VAR 'value: V of .IdeWizard.setting? declared in .IdeWizard.setting..setValue' type=V of .IdeWizard.setting? origin=null arg1: CONST Null type=kotlin.Nothing? value=null - then: RETURN type=kotlin.Nothing from='public open fun setValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>, value: V of .IdeWizard.setting?): kotlin.Unit [operator] declared in .IdeWizard.setting.' + then: RETURN type=kotlin.Nothing from='public open fun setValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>, value: V of .IdeWizard.setting?): kotlin.Unit declared in .IdeWizard.setting.' GET_OBJECT 'CLASS IR_EXTERNAL_DECLARATION_STUB OBJECT name:Unit modality:FINAL visibility:public superTypes:[kotlin.Any]' type=kotlin.Unit CALL 'public final fun (: T of .SettingReference): kotlin.Unit declared in .SettingReference' type=kotlin.Unit origin=EQ $this: GET_VAR 'reference: .SettingReference.IdeWizard.setting, T of .IdeWizard.setting> declared in .IdeWizard.setting' type=.SettingReference.IdeWizard.setting, T of .IdeWizard.setting> origin=null : TYPE_OP type=T of .IdeWizard.setting origin=CAST typeOperand=T of .IdeWizard.setting - CONSTRUCTOR_CALL 'public constructor (type: kotlin.reflect.KClass.SettingType>) [primary] declared in .SettingType' type=.SettingType.IdeWizard.setting> origin=null + CONSTRUCTOR_CALL 'public constructor (type: kotlin.reflect.KClass.SettingType>) declared in .SettingType' type=.SettingType.IdeWizard.setting> origin=null : V of .IdeWizard.setting type: GET_CLASS type=kotlin.reflect.KClass.IdeWizard.setting> GET_VAR 'value: V of .IdeWizard.setting? declared in .IdeWizard.setting..setValue' type=V of .IdeWizard.setting? origin=null @@ -176,31 +176,31 @@ FILE fqName: fileName:/readWriteProperty.kt : GET_VAR 'value: V of .IdeWizard.setting? declared in .IdeWizard.setting..setValue' type=V of .IdeWizard.setting? origin=null FUN name:getValue visibility:public modality:OPEN <> ($this:.IdeWizard.setting..IdeWizard.setting, T of .IdeWizard.setting>, thisRef:kotlin.Any?, property:kotlin.reflect.KProperty<*>) returnType:V of .IdeWizard.setting? [operator] overridden: - public abstract fun getValue (thisRef: T of kotlin.properties.ReadWriteProperty, property: kotlin.reflect.KProperty<*>): V of kotlin.properties.ReadWriteProperty [operator] declared in kotlin.properties.ReadWriteProperty + public abstract fun getValue (thisRef: T of kotlin.properties.ReadWriteProperty, property: kotlin.reflect.KProperty<*>): V of kotlin.properties.ReadWriteProperty declared in kotlin.properties.ReadWriteProperty $this: VALUE_PARAMETER name: type:.IdeWizard.setting..IdeWizard.setting, T of .IdeWizard.setting> VALUE_PARAMETER name:thisRef index:0 type:kotlin.Any? VALUE_PARAMETER name:property index:1 type:kotlin.reflect.KProperty<*> BLOCK_BODY - RETURN type=kotlin.Nothing from='public open fun getValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): V of .IdeWizard.setting? [operator] declared in .IdeWizard.setting.' + RETURN type=kotlin.Nothing from='public open fun getValue (thisRef: kotlin.Any?, property: kotlin.reflect.KProperty<*>): V of .IdeWizard.setting? declared in .IdeWizard.setting.' CALL 'public final fun (): V of .SettingReference declared in .SettingReference' type=V of .IdeWizard.setting origin=GET_PROPERTY $this: GET_VAR 'reference: .SettingReference.IdeWizard.setting, T of .IdeWizard.setting> declared in .IdeWizard.setting' type=.SettingReference.IdeWizard.setting, T of .IdeWizard.setting> 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 [fake_override,operator] declared in kotlin.properties.ReadWriteProperty + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.properties.ReadWriteProperty $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 kotlin.properties.ReadWriteProperty + public open fun hashCode (): kotlin.Int declared in kotlin.properties.ReadWriteProperty $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 kotlin.properties.ReadWriteProperty + public open fun toString (): kotlin.String declared in kotlin.properties.ReadWriteProperty $this: VALUE_PARAMETER name: type:kotlin.Any - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .IdeWizard.setting.' type=.IdeWizard.setting..IdeWizard.setting, T of .IdeWizard.setting> origin=OBJECT_LITERAL + CONSTRUCTOR_CALL 'public constructor () declared in .IdeWizard.setting.' type=.IdeWizard.setting..IdeWizard.setting, T of .IdeWizard.setting> origin=OBJECT_LITERAL 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/firProblems/recursiveCapturedTypeInPropertyReference.fir.ir.txt b/compiler/testData/ir/irText/firProblems/recursiveCapturedTypeInPropertyReference.fir.ir.txt index 7d4b7a33794..63f55bd99f3 100644 --- a/compiler/testData/ir/irText/firProblems/recursiveCapturedTypeInPropertyReference.fir.ir.txt +++ b/compiler/testData/ir/irText/firProblems/recursiveCapturedTypeInPropertyReference.fir.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/recursiveCapturedTypeInPropertyReference.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Something 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -23,7 +23,7 @@ FILE fqName: fileName:/recursiveCapturedTypeInPropertyReference.kt $this: VALUE_PARAMETER name: type:.Recursive.Recursive> 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -39,23 +39,23 @@ FILE fqName: fileName:/recursiveCapturedTypeInPropertyReference.kt TYPE_PARAMETER name:E index:0 variance: superTypes:[.Recursive.AbstractSymbol>; .Something] reified:false CONSTRUCTOR visibility:public <> () returnType:.AbstractSymbol.AbstractSymbol> [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:AbstractSymbol modality:ABSTRACT visibility:public superTypes:[kotlin.Any]' FUN name:foo visibility:public modality:FINAL <> ($this:.AbstractSymbol.AbstractSymbol>, list:kotlin.collections.List) returnType:kotlin.Unit $this: VALUE_PARAMETER name: type:.AbstractSymbol.AbstractSymbol> VALUE_PARAMETER name:list index:0 type:kotlin.collections.List BLOCK_BODY VAR name:result type:kotlin.collections.List<.AbstractSymbol<*>> [val] - CALL 'public final fun map (transform: kotlin.Function1): kotlin.collections.List [inline] declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List<.AbstractSymbol<*>> origin=null + CALL 'public final fun map (transform: kotlin.Function1): kotlin.collections.List declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List<.AbstractSymbol<*>> origin=null : .Recursive<*> : .AbstractSymbol<*> - $receiver: CALL 'public final fun filterIsInstance (): kotlin.collections.List [inline] declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List<.Recursive<*>> origin=null + $receiver: CALL 'public final fun filterIsInstance (): kotlin.collections.List declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List<.Recursive<*>> origin=null : .Recursive<*> $receiver: GET_VAR 'list: kotlin.collections.List declared in .AbstractSymbol.foo' type=kotlin.collections.List origin=null - transform: PROPERTY_REFERENCE 'public abstract symbol: .AbstractSymbol.Recursive> [val]' field=null getter='public abstract fun (): .AbstractSymbol.Recursive> declared in .Recursive' setter=null type=kotlin.reflect.KProperty1<.Recursive<*>, .AbstractSymbol> origin=null + transform: PROPERTY_REFERENCE 'public abstract symbol: .AbstractSymbol.Recursive>' field=null getter='public abstract fun (): .AbstractSymbol.Recursive> declared in .Recursive' setter=null type=kotlin.reflect.KProperty1<.Recursive<*>, .AbstractSymbol> 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/firProblems/recursiveCapturedTypeInPropertyReference.ir.txt b/compiler/testData/ir/irText/firProblems/recursiveCapturedTypeInPropertyReference.ir.txt index ffc6f6a684b..d8f8cf85b0a 100644 --- a/compiler/testData/ir/irText/firProblems/recursiveCapturedTypeInPropertyReference.ir.txt +++ b/compiler/testData/ir/irText/firProblems/recursiveCapturedTypeInPropertyReference.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/recursiveCapturedTypeInPropertyReference.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Something 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -23,7 +23,7 @@ FILE fqName: fileName:/recursiveCapturedTypeInPropertyReference.kt $this: VALUE_PARAMETER name: type:.Recursive.Recursive> 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -39,23 +39,23 @@ FILE fqName: fileName:/recursiveCapturedTypeInPropertyReference.kt TYPE_PARAMETER name:E index:0 variance: superTypes:[.Recursive.AbstractSymbol>; .Something] reified:false CONSTRUCTOR visibility:public <> () returnType:.AbstractSymbol.AbstractSymbol> [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:AbstractSymbol modality:ABSTRACT visibility:public superTypes:[kotlin.Any]' FUN name:foo visibility:public modality:FINAL <> ($this:.AbstractSymbol.AbstractSymbol>, list:kotlin.collections.List) returnType:kotlin.Unit $this: VALUE_PARAMETER name: type:.AbstractSymbol.AbstractSymbol> VALUE_PARAMETER name:list index:0 type:kotlin.collections.List BLOCK_BODY VAR name:result type:kotlin.collections.List<.AbstractSymbol.Recursive<*>>> [val] - CALL 'public final fun map (transform: kotlin.Function1): kotlin.collections.List [inline] declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List<.AbstractSymbol.Recursive<*>>> origin=null + CALL 'public final fun map (transform: kotlin.Function1): kotlin.collections.List declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List<.AbstractSymbol.Recursive<*>>> origin=null : .Recursive<*> : .AbstractSymbol.Recursive<*>> - $receiver: CALL 'public final fun filterIsInstance (): kotlin.collections.List<@[NoInfer] R of kotlin.collections.CollectionsKt.filterIsInstance> [inline] declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List<@[NoInfer] .Recursive<*>> origin=null + $receiver: CALL 'public final fun filterIsInstance (): kotlin.collections.List<@[NoInfer] R of kotlin.collections.CollectionsKt.filterIsInstance> declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List<@[NoInfer] .Recursive<*>> origin=null : .Recursive<*> $receiver: GET_VAR 'list: kotlin.collections.List declared in .AbstractSymbol.foo' type=kotlin.collections.List origin=null - transform: PROPERTY_REFERENCE 'public abstract symbol: .AbstractSymbol.Recursive> [val]' field=null getter='public abstract fun (): .AbstractSymbol.Recursive> declared in .Recursive' setter=null type=kotlin.reflect.KProperty1<.Recursive<*>, .AbstractSymbol.Recursive<*>>> origin=null + transform: PROPERTY_REFERENCE 'public abstract symbol: .AbstractSymbol.Recursive>' field=null getter='public abstract fun (): .AbstractSymbol.Recursive> declared in .Recursive' setter=null type=kotlin.reflect.KProperty1<.Recursive<*>, .AbstractSymbol.Recursive<*>>> 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/firProblems/reflectFindAnnotationOnDefaultMethodParameter.fir.ir.txt b/compiler/testData/ir/irText/firProblems/reflectFindAnnotationOnDefaultMethodParameter.fir.ir.txt index 6c73d4e8791..0931818d10d 100644 --- a/compiler/testData/ir/irText/firProblems/reflectFindAnnotationOnDefaultMethodParameter.fir.ir.txt +++ b/compiler/testData/ir/irText/firProblems/reflectFindAnnotationOnDefaultMethodParameter.fir.ir.txt @@ -7,7 +7,7 @@ FILE fqName: fileName:/reflectFindAnnotationOnDefaultMethodParameter.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.box. CONSTRUCTOR visibility:public <> () returnType:.box. [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name: modality:FINAL visibility:local superTypes:[.I]' FUN FAKE_OVERRIDE name:m visibility:public modality:OPEN <> ($this:.I, s:kotlin.String) returnType:kotlin.Unit [fake_override] overridden: @@ -18,66 +18,66 @@ FILE fqName: fileName:/reflectFindAnnotationOnDefaultMethodParameter.kt Ann 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 .I + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .I $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 .I + public open fun hashCode (): kotlin.Int declared in .I $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 .I + public open fun toString (): kotlin.String declared in .I $this: VALUE_PARAMETER name: type:kotlin.Any - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .box.' type=.box. origin=OBJECT_LITERAL + CONSTRUCTOR_CALL 'public constructor () declared in .box.' type=.box. origin=OBJECT_LITERAL VAR name:method type:@[FlexibleNullability] java.lang.reflect.Method? [val] CALL 'public open fun getMethod (p0: @[FlexibleNullability] kotlin.String?, vararg p1: @[FlexibleNullability] java.lang.Class<*>?): @[FlexibleNullability] java.lang.reflect.Method? declared in java.lang.Class' type=@[FlexibleNullability] java.lang.reflect.Method? origin=null - $this: CALL 'public final fun (): java.lang.Class> [inline] declared in kotlin.jvm' type=java.lang.Class<.box.> origin=GET_PROPERTY + $this: CALL 'public final fun (): java.lang.Class> declared in kotlin.jvm' type=java.lang.Class<.box.> origin=GET_PROPERTY : .box. - $receiver: GET_VAR 'val impl: .box. [val] declared in .box' type=.box. origin=null + $receiver: GET_VAR 'val impl: .box. declared in .box' type=.box. origin=null p0: CONST String type=kotlin.String value="m" p1: VARARG type=@[FlexibleNullability] kotlin.Array?>? varargElementType=@[FlexibleNullability] java.lang.Class<*>? CALL 'public final fun (): java.lang.Class> declared in kotlin.jvm' type=java.lang.Class origin=GET_PROPERTY : kotlin.String $receiver: CLASS_REFERENCE 'CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:String modality:FINAL visibility:public superTypes:[kotlin.Comparable; kotlin.CharSequence; java.io.Serializable]' type=kotlin.reflect.KClass VAR name:parameter type:@[FlexibleNullability] java.lang.reflect.Parameter? [val] - CALL 'public final fun get (index: kotlin.Int): T of kotlin.Array [operator] declared in kotlin.Array' type=@[FlexibleNullability] java.lang.reflect.Parameter? origin=null - $this: CALL 'public open fun getParameters (): @[FlexibleNullability] kotlin.Array? [fake_override] declared in java.lang.reflect.Method' type=@[FlexibleNullability] kotlin.Array? origin=GET_PROPERTY - $this: GET_VAR 'val method: @[FlexibleNullability] java.lang.reflect.Method? [val] declared in .box' type=@[FlexibleNullability] java.lang.reflect.Method? origin=null + CALL 'public final fun get (index: kotlin.Int): T of kotlin.Array declared in kotlin.Array' type=@[FlexibleNullability] java.lang.reflect.Parameter? origin=null + $this: CALL 'public open fun getParameters (): @[FlexibleNullability] kotlin.Array? declared in java.lang.reflect.Method' type=@[FlexibleNullability] kotlin.Array? origin=GET_PROPERTY + $this: GET_VAR 'val method: @[FlexibleNullability] java.lang.reflect.Method? declared in .box' type=@[FlexibleNullability] java.lang.reflect.Method? origin=null index: CONST Int type=kotlin.Int value=0 VAR name:size type:kotlin.Int [val] CALL 'public final fun (): kotlin.Int declared in kotlin.Array' type=kotlin.Int origin=GET_PROPERTY $this: CALL 'public open fun getAnnotations (): @[FlexibleNullability] kotlin.Array? declared in java.lang.reflect.Parameter' type=@[FlexibleNullability] kotlin.Array? origin=GET_PROPERTY - $this: GET_VAR 'val parameter: @[FlexibleNullability] java.lang.reflect.Parameter? [val] declared in .box' type=@[FlexibleNullability] java.lang.reflect.Parameter? origin=null + $this: GET_VAR 'val parameter: @[FlexibleNullability] java.lang.reflect.Parameter? declared in .box' type=@[FlexibleNullability] java.lang.reflect.Parameter? origin=null WHEN type=kotlin.Unit origin=IF BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val size: kotlin.Int [val] declared in .box' type=kotlin.Int origin=null + arg0: GET_VAR 'val size: kotlin.Int declared in .box' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=1 then: RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' CONST String type=kotlin.String value="OK" RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' STRING_CONCATENATION type=kotlin.String CONST String type=kotlin.String value="ERR: " - GET_VAR 'val size: kotlin.Int [val] declared in .box' type=kotlin.Int origin=null + GET_VAR 'val size: kotlin.Int declared in .box' type=kotlin.Int origin=null CLASS ANNOTATION_CLASS name:Ann modality:OPEN visibility:public superTypes:[kotlin.Annotation] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Ann CONSTRUCTOR visibility:public <> () returnType:.Ann [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:Ann modality:OPEN visibility:public superTypes:[kotlin.Annotation]' 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 kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any CLASS INTERFACE name:I modality:ABSTRACT visibility:public superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.I @@ -89,7 +89,7 @@ FILE fqName: fileName:/reflectFindAnnotationOnDefaultMethodParameter.kt 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/firProblems/reflectFindAnnotationOnDefaultMethodParameter.ir.txt b/compiler/testData/ir/irText/firProblems/reflectFindAnnotationOnDefaultMethodParameter.ir.txt index 5d3a1c6cc5c..51b5d4e380a 100644 --- a/compiler/testData/ir/irText/firProblems/reflectFindAnnotationOnDefaultMethodParameter.ir.txt +++ b/compiler/testData/ir/irText/firProblems/reflectFindAnnotationOnDefaultMethodParameter.ir.txt @@ -7,7 +7,7 @@ FILE fqName: fileName:/reflectFindAnnotationOnDefaultMethodParameter.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.box. CONSTRUCTOR visibility:public <> () returnType:.box. [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name: modality:FINAL visibility:local superTypes:[.I]' FUN FAKE_OVERRIDE name:m visibility:public modality:OPEN <> ($this:.I, s:kotlin.String) returnType:kotlin.Unit [fake_override] overridden: @@ -18,35 +18,35 @@ FILE fqName: fileName:/reflectFindAnnotationOnDefaultMethodParameter.kt Ann 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 .I + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .I $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 .I + public open fun hashCode (): kotlin.Int declared in .I $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 .I + public open fun toString (): kotlin.String declared in .I $this: VALUE_PARAMETER name: type:kotlin.Any - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .box.' type=.box. origin=OBJECT_LITERAL + CONSTRUCTOR_CALL 'public constructor () declared in .box.' type=.box. origin=OBJECT_LITERAL VAR name:method type:@[FlexibleNullability] java.lang.reflect.Method? [val] CALL 'public open fun getMethod (p0: @[FlexibleNullability] kotlin.String?, vararg p1: @[FlexibleNullability] java.lang.Class<*>?): @[FlexibleNullability] java.lang.reflect.Method? declared in java.lang.Class' type=@[FlexibleNullability] java.lang.reflect.Method? origin=null - $this: CALL 'public final fun (): java.lang.Class> [inline] declared in kotlin.jvm' type=java.lang.Class<.box.> origin=GET_PROPERTY + $this: CALL 'public final fun (): java.lang.Class> declared in kotlin.jvm' type=java.lang.Class<.box.> origin=GET_PROPERTY : .box. - $receiver: GET_VAR 'val impl: .box. [val] declared in .box' type=.box. origin=null + $receiver: GET_VAR 'val impl: .box. declared in .box' type=.box. origin=null p0: CONST String type=kotlin.String value="m" p1: VARARG type=kotlin.Array?>? varargElementType=@[FlexibleNullability] java.lang.Class<*>? CALL 'public final fun (): java.lang.Class> declared in kotlin.jvm' type=java.lang.Class origin=GET_PROPERTY : kotlin.String $receiver: CLASS_REFERENCE 'CLASS IR_EXTERNAL_DECLARATION_STUB CLASS name:String modality:FINAL visibility:public superTypes:[kotlin.Comparable; kotlin.CharSequence; java.io.Serializable]' type=kotlin.reflect.KClass VAR name:parameter type:@[FlexibleNullability] java.lang.reflect.Parameter? [val] - CALL 'public final fun get (index: kotlin.Int): T of kotlin.Array [operator] declared in kotlin.Array' type=@[FlexibleNullability] java.lang.reflect.Parameter? origin=GET_ARRAY_ELEMENT + CALL 'public final fun get (index: kotlin.Int): T of kotlin.Array declared in kotlin.Array' type=@[FlexibleNullability] java.lang.reflect.Parameter? origin=GET_ARRAY_ELEMENT $this: TYPE_OP type=kotlin.Array<@[FlexibleNullability] java.lang.reflect.Parameter?> origin=IMPLICIT_CAST typeOperand=kotlin.Array<@[FlexibleNullability] java.lang.reflect.Parameter?> TYPE_OP type=kotlin.Array origin=IMPLICIT_NOTNULL typeOperand=kotlin.Array - CALL 'public open fun getParameters (): @[FlexibleNullability] kotlin.Array? [fake_override] declared in java.lang.reflect.Method' type=@[FlexibleNullability] kotlin.Array? origin=GET_PROPERTY + CALL 'public open fun getParameters (): @[FlexibleNullability] kotlin.Array? declared in java.lang.reflect.Method' type=@[FlexibleNullability] kotlin.Array? origin=GET_PROPERTY $this: TYPE_OP type=java.lang.reflect.Method origin=IMPLICIT_NOTNULL typeOperand=java.lang.reflect.Method - GET_VAR 'val method: @[FlexibleNullability] java.lang.reflect.Method? [val] declared in .box' type=@[FlexibleNullability] java.lang.reflect.Method? origin=null + GET_VAR 'val method: @[FlexibleNullability] java.lang.reflect.Method? declared in .box' type=@[FlexibleNullability] java.lang.reflect.Method? origin=null index: CONST Int type=kotlin.Int value=0 VAR name:size type:kotlin.Int [val] CALL 'public final fun (): kotlin.Int declared in kotlin.Array' type=kotlin.Int origin=GET_PROPERTY @@ -54,36 +54,36 @@ FILE fqName: fileName:/reflectFindAnnotationOnDefaultMethodParameter.kt TYPE_OP type=kotlin.Array origin=IMPLICIT_NOTNULL typeOperand=kotlin.Array CALL 'public open fun getAnnotations (): @[FlexibleNullability] kotlin.Array? declared in java.lang.reflect.Parameter' type=@[FlexibleNullability] kotlin.Array? origin=GET_PROPERTY $this: TYPE_OP type=java.lang.reflect.Parameter origin=IMPLICIT_NOTNULL typeOperand=java.lang.reflect.Parameter - GET_VAR 'val parameter: @[FlexibleNullability] java.lang.reflect.Parameter? [val] declared in .box' type=@[FlexibleNullability] java.lang.reflect.Parameter? origin=null + GET_VAR 'val parameter: @[FlexibleNullability] java.lang.reflect.Parameter? declared in .box' type=@[FlexibleNullability] java.lang.reflect.Parameter? origin=null WHEN type=kotlin.Unit origin=IF BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val size: kotlin.Int [val] declared in .box' type=kotlin.Int origin=null + arg0: GET_VAR 'val size: kotlin.Int declared in .box' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=1 then: RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' CONST String type=kotlin.String value="OK" RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' STRING_CONCATENATION type=kotlin.String CONST String type=kotlin.String value="ERR: " - GET_VAR 'val size: kotlin.Int [val] declared in .box' type=kotlin.Int origin=null + GET_VAR 'val size: kotlin.Int declared in .box' type=kotlin.Int origin=null CLASS ANNOTATION_CLASS name:Ann modality:OPEN visibility:public superTypes:[kotlin.Annotation] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Ann CONSTRUCTOR visibility:public <> () returnType:.Ann [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ANNOTATION_CLASS name:Ann modality:OPEN visibility:public superTypes:[kotlin.Annotation]' 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 kotlin.Annotation + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Annotation $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 kotlin.Annotation + public open fun hashCode (): kotlin.Int declared in kotlin.Annotation $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 kotlin.Annotation + public open fun toString (): kotlin.String declared in kotlin.Annotation $this: VALUE_PARAMETER name: type:kotlin.Any CLASS INTERFACE name:I modality:ABSTRACT visibility:public superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.I @@ -95,7 +95,7 @@ FILE fqName: fileName:/reflectFindAnnotationOnDefaultMethodParameter.kt 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/firProblems/reflectGetOnNullableTypeAlias.fir.ir.txt b/compiler/testData/ir/irText/firProblems/reflectGetOnNullableTypeAlias.fir.ir.txt index 3a206fc2a83..0634d6c4d46 100644 --- a/compiler/testData/ir/irText/firProblems/reflectGetOnNullableTypeAlias.fir.ir.txt +++ b/compiler/testData/ir/irText/firProblems/reflectGetOnNullableTypeAlias.fir.ir.txt @@ -4,25 +4,25 @@ FILE fqName: fileName:/reflectGetOnNullableTypeAlias.kt FUN name:box visibility:public modality:FINAL <> () returnType:kotlin.String BLOCK_BODY VAR name:backRefProp type:kotlin.reflect.KProperty1<.Foo, kotlin.Any?>? [val] - PROPERTY_REFERENCE 'public final bar: kotlin.String [val]' field=null getter='public final fun (): kotlin.String declared in .Foo' setter=null type=kotlin.reflect.KProperty1<.Foo, kotlin.String> origin=null + PROPERTY_REFERENCE 'public final bar: kotlin.String' field=null getter='public final fun (): kotlin.String declared in .Foo' setter=null type=kotlin.reflect.KProperty1<.Foo, kotlin.String> origin=null WHEN type=kotlin.Unit origin=IF BRANCH - if: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ + if: CALL 'public final fun not (): kotlin.Boolean 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_VAR 'val backRefProp: kotlin.reflect.KProperty1<.Foo, kotlin.Any?>? [val] declared in .box' type=kotlin.reflect.KProperty1<.Foo, kotlin.Any?>? origin=null + arg0: GET_VAR 'val backRefProp: kotlin.reflect.KProperty1<.Foo, kotlin.Any?>? declared in .box' type=kotlin.reflect.KProperty1<.Foo, kotlin.Any?>? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' TYPE_OP type=kotlin.String origin=CAST typeOperand=kotlin.String CALL 'public abstract fun get (receiver: T of kotlin.reflect.KProperty1): V of kotlin.reflect.KProperty1 declared in kotlin.reflect.KProperty1' type=kotlin.Any? origin=null - $this: GET_VAR 'val backRefProp: kotlin.reflect.KProperty1<.Foo, kotlin.Any?>? [val] declared in .box' type=kotlin.reflect.KProperty1<.Foo, kotlin.Any?>? origin=null - receiver: CONSTRUCTOR_CALL 'public constructor () [primary] declared in .Foo' type=.Foo origin=null + $this: GET_VAR 'val backRefProp: kotlin.reflect.KProperty1<.Foo, kotlin.Any?>? declared in .box' type=kotlin.reflect.KProperty1<.Foo, kotlin.Any?>? origin=null + receiver: CONSTRUCTOR_CALL 'public constructor () declared in .Foo' type=.Foo origin=null RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' CONST String type=kotlin.String value="FAIL" CLASS CLASS name:Foo modality:FINAL visibility:public superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Foo CONSTRUCTOR visibility:public <> () returnType:.Foo [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Foo modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:bar visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:bar type:kotlin.String visibility:private [final] @@ -37,7 +37,7 @@ FILE fqName: fileName:/reflectGetOnNullableTypeAlias.kt receiver: GET_VAR ': .Foo declared in .Foo.' type=.Foo 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/firProblems/reflectGetOnNullableTypeAlias.ir.txt b/compiler/testData/ir/irText/firProblems/reflectGetOnNullableTypeAlias.ir.txt index e2c67e310e4..e191f15cf82 100644 --- a/compiler/testData/ir/irText/firProblems/reflectGetOnNullableTypeAlias.ir.txt +++ b/compiler/testData/ir/irText/firProblems/reflectGetOnNullableTypeAlias.ir.txt @@ -4,26 +4,26 @@ FILE fqName: fileName:/reflectGetOnNullableTypeAlias.kt FUN name:box visibility:public modality:FINAL <> () returnType:kotlin.String BLOCK_BODY VAR name:backRefProp type:kotlin.reflect.KProperty1<.Foo, kotlin.Any?>?{ .PropAlias<.Foo> } [val] - PROPERTY_REFERENCE 'public final bar: kotlin.String [val]' field=null getter='public final fun (): kotlin.String declared in .Foo' setter=null type=kotlin.reflect.KProperty1<.Foo, kotlin.String> origin=null + PROPERTY_REFERENCE 'public final bar: kotlin.String' field=null getter='public final fun (): kotlin.String declared in .Foo' setter=null type=kotlin.reflect.KProperty1<.Foo, kotlin.String> origin=null WHEN type=kotlin.Unit origin=IF BRANCH - if: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ + if: CALL 'public final fun not (): kotlin.Boolean 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_VAR 'val backRefProp: kotlin.reflect.KProperty1<.Foo, kotlin.Any?>?{ .PropAlias<.Foo> } [val] declared in .box' type=kotlin.reflect.KProperty1<.Foo, kotlin.Any?>?{ .PropAlias<.Foo> } origin=null + arg0: GET_VAR 'val backRefProp: kotlin.reflect.KProperty1<.Foo, kotlin.Any?>?{ .PropAlias<.Foo> } declared in .box' type=kotlin.reflect.KProperty1<.Foo, kotlin.Any?>?{ .PropAlias<.Foo> } origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: BLOCK type=kotlin.Unit origin=null RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' TYPE_OP type=kotlin.String origin=CAST typeOperand=kotlin.String CALL 'public abstract fun get (receiver: T of kotlin.reflect.KProperty1): V of kotlin.reflect.KProperty1 declared in kotlin.reflect.KProperty1' type=kotlin.Any? origin=null - $this: GET_VAR 'val backRefProp: kotlin.reflect.KProperty1<.Foo, kotlin.Any?>?{ .PropAlias<.Foo> } [val] declared in .box' type=kotlin.reflect.KProperty1<.Foo, kotlin.Any?>?{ .PropAlias<.Foo> } origin=null - receiver: CONSTRUCTOR_CALL 'public constructor () [primary] declared in .Foo' type=.Foo origin=null + $this: GET_VAR 'val backRefProp: kotlin.reflect.KProperty1<.Foo, kotlin.Any?>?{ .PropAlias<.Foo> } declared in .box' type=kotlin.reflect.KProperty1<.Foo, kotlin.Any?>?{ .PropAlias<.Foo> } origin=null + receiver: CONSTRUCTOR_CALL 'public constructor () declared in .Foo' type=.Foo origin=null RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' CONST String type=kotlin.String value="FAIL" CLASS CLASS name:Foo modality:FINAL visibility:public superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Foo CONSTRUCTOR visibility:public <> () returnType:.Foo [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Foo modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:bar visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:bar type:kotlin.String visibility:private [final] @@ -38,7 +38,7 @@ FILE fqName: fileName:/reflectGetOnNullableTypeAlias.kt receiver: GET_VAR ': .Foo declared in .Foo.' type=.Foo 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/firProblems/thisInEnumConstructor.fir.ir.txt b/compiler/testData/ir/irText/firProblems/thisInEnumConstructor.fir.ir.txt index 7762e607543..6cd9fcc598e 100644 --- a/compiler/testData/ir/irText/firProblems/thisInEnumConstructor.fir.ir.txt +++ b/compiler/testData/ir/irText/firProblems/thisInEnumConstructor.fir.ir.txt @@ -4,11 +4,11 @@ FILE fqName: fileName:/thisInEnumConstructor.kt CONSTRUCTOR visibility:private <> (myName:kotlin.String) returnType:.EE [primary] VALUE_PARAMETER name:myName index:0 type:kotlin.String EXPRESSION_BODY - CALL 'public final fun lowercase (): kotlin.String [inline] declared in kotlin.text.StringsKt' type=kotlin.String origin=null - $receiver: CALL 'public open fun toString (): kotlin.String [fake_override] declared in kotlin.Enum.Companion' type=kotlin.String origin=null + CALL 'public final fun lowercase (): kotlin.String declared in kotlin.text.StringsKt' type=kotlin.String origin=null + $receiver: CALL 'public open fun toString (): kotlin.String declared in kotlin.Enum.Companion' type=kotlin.String origin=null $this: GET_OBJECT 'CLASS IR_EXTERNAL_DECLARATION_STUB OBJECT name:Companion modality:FINAL visibility:public [companion] superTypes:[kotlin.Any]' type=kotlin.Enum.Companion BLOCK_BODY - ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) [primary] declared in kotlin.Enum' + ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) declared in kotlin.Enum' : .EE INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_CLASS name:EE modality:FINAL visibility:public superTypes:[kotlin.Enum<.EE>]' PROPERTY name:myName visibility:public modality:FINAL [val] @@ -24,7 +24,7 @@ FILE fqName: fileName:/thisInEnumConstructor.kt receiver: GET_VAR ': .EE declared in .EE.' type=.EE origin=null ENUM_ENTRY name:ENTRY init: EXPRESSION_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor (myName: kotlin.String) [primary] declared in .EE' + ENUM_CONSTRUCTOR_CALL 'private constructor (myName: kotlin.String) declared in .EE' FUN ENUM_CLASS_SPECIAL_MEMBER name:values visibility:public modality:FINAL <> () returnType:kotlin.Array<.EE> SYNTHETIC_BODY kind=ENUM_VALUES FUN ENUM_CLASS_SPECIAL_MEMBER name:valueOf visibility:public modality:FINAL <> (value:kotlin.String) returnType:.EE @@ -40,12 +40,12 @@ FILE fqName: fileName:/thisInEnumConstructor.kt $this: VALUE_PARAMETER name: type:kotlin.Enum FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum, other:.EE) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: E of kotlin.Enum): kotlin.Int [operator] declared in kotlin.Enum + public final fun compareTo (other: E of kotlin.Enum): kotlin.Int declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:.EE FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Enum + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:hashCode visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] @@ -60,7 +60,7 @@ FILE fqName: fileName:/thisInEnumConstructor.kt annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: @@ -68,7 +68,7 @@ FILE fqName: fileName:/thisInEnumConstructor.kt $this: VALUE_PARAMETER name: type:kotlin.Enum PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: diff --git a/compiler/testData/ir/irText/firProblems/thisInEnumConstructor.ir.txt b/compiler/testData/ir/irText/firProblems/thisInEnumConstructor.ir.txt index ca1e8143ea2..e21e5fea4cb 100644 --- a/compiler/testData/ir/irText/firProblems/thisInEnumConstructor.ir.txt +++ b/compiler/testData/ir/irText/firProblems/thisInEnumConstructor.ir.txt @@ -4,11 +4,11 @@ FILE fqName: fileName:/thisInEnumConstructor.kt CONSTRUCTOR visibility:private <> (myName:kotlin.String) returnType:.EE [primary] VALUE_PARAMETER name:myName index:0 type:kotlin.String EXPRESSION_BODY - CALL 'public final fun lowercase (): kotlin.String [inline] declared in kotlin.text.StringsKt' type=kotlin.String origin=null - $receiver: CALL 'public open fun toString (): kotlin.String [fake_override] declared in kotlin.Enum.Companion' type=kotlin.String origin=null + CALL 'public final fun lowercase (): kotlin.String declared in kotlin.text.StringsKt' type=kotlin.String origin=null + $receiver: CALL 'public open fun toString (): kotlin.String declared in kotlin.Enum.Companion' type=kotlin.String origin=null $this: GET_OBJECT 'CLASS IR_EXTERNAL_DECLARATION_STUB OBJECT name:Companion modality:FINAL visibility:public [companion] superTypes:[kotlin.Any]' type=kotlin.Enum.Companion BLOCK_BODY - ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) [primary] declared in kotlin.Enum' + ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) declared in kotlin.Enum' : .EE INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_CLASS name:EE modality:FINAL visibility:public superTypes:[kotlin.Enum<.EE>]' PROPERTY name:myName visibility:public modality:FINAL [val] @@ -24,12 +24,12 @@ FILE fqName: fileName:/thisInEnumConstructor.kt receiver: GET_VAR ': .EE declared in .EE.' type=.EE origin=null ENUM_ENTRY name:ENTRY init: EXPRESSION_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor (myName: kotlin.String) [primary] declared in .EE' + ENUM_CONSTRUCTOR_CALL 'private constructor (myName: kotlin.String) declared in .EE' PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.EE>) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: @@ -37,7 +37,7 @@ FILE fqName: fileName:/thisInEnumConstructor.kt $this: VALUE_PARAMETER name: type:kotlin.Enum<.EE> PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.EE>) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: @@ -49,12 +49,12 @@ FILE fqName: fileName:/thisInEnumConstructor.kt $this: VALUE_PARAMETER name: type:kotlin.Enum<.EE> FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum<.EE>, other:.EE) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: E of kotlin.Enum): kotlin.Int [operator] declared in kotlin.Enum + public final fun compareTo (other: E of kotlin.Enum): kotlin.Int declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum<.EE> VALUE_PARAMETER name:other index:0 type:.EE FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum<.EE>, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Enum + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum<.EE> VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:finalize visibility:protected/*protected and package*/ modality:FINAL <> ($this:kotlin.Enum<.EE>) returnType:kotlin.Unit [fake_override] diff --git a/compiler/testData/ir/irText/firProblems/timesInBuilder.fir.ir.txt b/compiler/testData/ir/irText/firProblems/timesInBuilder.fir.ir.txt index 184e28cd2ae..c0f01e92728 100644 --- a/compiler/testData/ir/irText/firProblems/timesInBuilder.fir.ir.txt +++ b/compiler/testData/ir/irText/firProblems/timesInBuilder.fir.ir.txt @@ -8,21 +8,21 @@ FILE fqName: fileName:/timesInBuilder.kt FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> ($receiver:.ArgumentsBuilder) returnType:kotlin.Unit $receiver: VALUE_PARAMETER name:$this$countIssues type:.ArgumentsBuilder BLOCK_BODY - CALL 'public final fun unaryPlus (): kotlin.Unit [operator] declared in .ArgumentsBuilder' type=kotlin.Unit origin=null + CALL 'public final fun unaryPlus (): kotlin.Unit declared in .ArgumentsBuilder' type=kotlin.Unit origin=null $this: GET_VAR '$this$countIssues: .ArgumentsBuilder declared in .test.' type=.ArgumentsBuilder origin=null - $receiver: CALL 'public final fun lessEq (t: T of .lessEq): .Expression [infix] declared in ' type=.Expression origin=null + $receiver: CALL 'public final fun lessEq (t: T of .lessEq): .Expression declared in ' type=.Expression origin=null : kotlin.Int $receiver: CALL 'public final fun (): .Column declared in ' type=.Column origin=GET_PROPERTY t: CONST Int type=kotlin.Int value=120 - CALL 'public final fun unaryPlus (): kotlin.Unit [operator] declared in .ArgumentsBuilder' type=kotlin.Unit origin=null + CALL 'public final fun unaryPlus (): kotlin.Unit declared in .ArgumentsBuilder' type=kotlin.Unit origin=null $this: GET_VAR '$this$countIssues: .ArgumentsBuilder declared in .test.' type=.ArgumentsBuilder origin=null - $receiver: CALL 'public final fun lessEq (t: T of .lessEq): .Expression [infix] declared in ' type=.Expression origin=null + $receiver: CALL 'public final fun lessEq (t: T of .lessEq): .Expression declared in ' type=.Expression origin=null : kotlin.Int $receiver: CALL 'public final fun (): .Column declared in ' type=.Column origin=GET_PROPERTY t: CALL 'public final fun id (arg: I of .id): I of .id declared in ' type=kotlin.Int origin=null : kotlin.Int arg: CONST Int type=kotlin.Int value=120 - CALL 'public final fun unaryPlus (): kotlin.Unit [operator] declared in .ArgumentsBuilder' type=kotlin.Unit origin=null + CALL 'public final fun unaryPlus (): kotlin.Unit declared in .ArgumentsBuilder' type=kotlin.Unit origin=null $this: GET_VAR '$this$countIssues: .ArgumentsBuilder declared in .test.' type=.ArgumentsBuilder origin=null $receiver: CALL 'public final fun select (t: T of .select, r: T of .select): .Expression declared in ' type=.Expression origin=null : kotlin.Long @@ -43,7 +43,7 @@ FILE fqName: fileName:/timesInBuilder.kt VALUE_PARAMETER name:name index:0 type:kotlin.String BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun integer (name: kotlin.String): .Column declared in ' - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .Column' type=.Column origin=null + CONSTRUCTOR_CALL 'public constructor () declared in .Column' type=.Column origin=null FUN name:id visibility:public modality:FINAL (arg:I of .id) returnType:I of .id TYPE_PARAMETER name:I index:0 variance: superTypes:[kotlin.Any?] reified:false VALUE_PARAMETER name:arg index:0 type:I of .id @@ -55,8 +55,8 @@ FILE fqName: fileName:/timesInBuilder.kt $receiver: VALUE_PARAMETER name: type:.Column VALUE_PARAMETER name:t index:0 type:T of .lessEq BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun lessEq (t: T of .lessEq): .Expression [infix] declared in ' - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .Expression' type=.Expression origin=null + RETURN type=kotlin.Nothing from='public final fun lessEq (t: T of .lessEq): .Expression declared in ' + CONSTRUCTOR_CALL 'public constructor () declared in .Expression' type=.Expression origin=null FUN name:select visibility:public modality:FINAL ($receiver:.Column, t:T of .select, r:T of .select) returnType:.Expression TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Comparable.select>] reified:false $receiver: VALUE_PARAMETER name: type:.Column @@ -64,16 +64,16 @@ FILE fqName: fileName:/timesInBuilder.kt VALUE_PARAMETER name:r index:1 type:T of .select BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun select (t: T of .select, r: T of .select): .Expression declared in ' - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .Expression' type=.Expression origin=null + CONSTRUCTOR_CALL 'public constructor () declared in .Expression' type=.Expression origin=null CLASS CLASS name:Expression modality:FINAL visibility:public superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Expression CONSTRUCTOR visibility:public <> () returnType:.Expression [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Expression modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -88,11 +88,11 @@ FILE fqName: fileName:/timesInBuilder.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Column CONSTRUCTOR visibility:public <> () returnType:.Column [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Column modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -107,12 +107,12 @@ FILE fqName: fileName:/timesInBuilder.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.ArgumentsBuilder CONSTRUCTOR visibility:public <> () returnType:.ArgumentsBuilder [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:ArgumentsBuilder modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:arguments visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:arguments type:kotlin.collections.MutableList<.Expression> visibility:private [final] EXPRESSION_BODY - CALL 'public final fun mutableListOf (): kotlin.collections.MutableList [inline] declared in kotlin.collections.CollectionsKt' type=kotlin.collections.MutableList<.Expression> origin=null + CALL 'public final fun mutableListOf (): kotlin.collections.MutableList declared in kotlin.collections.CollectionsKt' type=kotlin.collections.MutableList<.Expression> origin=null : .Expression FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:.ArgumentsBuilder) returnType:kotlin.collections.MutableList<.Expression> correspondingProperty: PROPERTY name:arguments visibility:public modality:FINAL [val] @@ -132,7 +132,7 @@ FILE fqName: fileName:/timesInBuilder.kt element: GET_VAR ': .Expression declared in .ArgumentsBuilder.unaryPlus' type=.Expression 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/firProblems/timesInBuilder.ir.txt b/compiler/testData/ir/irText/firProblems/timesInBuilder.ir.txt index 9a47a888146..ee6c683df97 100644 --- a/compiler/testData/ir/irText/firProblems/timesInBuilder.ir.txt +++ b/compiler/testData/ir/irText/firProblems/timesInBuilder.ir.txt @@ -8,31 +8,31 @@ FILE fqName: fileName:/timesInBuilder.kt FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> ($receiver:.ArgumentsBuilder) returnType:kotlin.Unit $receiver: VALUE_PARAMETER name:$this$countIssues type:.ArgumentsBuilder BLOCK_BODY - CALL 'public final fun unaryPlus (): kotlin.Unit [operator] declared in .ArgumentsBuilder' type=kotlin.Unit origin=UPLUS + CALL 'public final fun unaryPlus (): kotlin.Unit declared in .ArgumentsBuilder' type=kotlin.Unit origin=UPLUS $this: GET_VAR '$this$countIssues: .ArgumentsBuilder declared in .test.' type=.ArgumentsBuilder origin=null - $receiver: CALL 'public final fun lessEq (t: T of .lessEq): .Expression [infix] declared in ' type=.Expression origin=null + $receiver: CALL 'public final fun lessEq (t: T of .lessEq): .Expression declared in ' type=.Expression origin=null : kotlin.Int $receiver: CALL 'public final fun (): .Column declared in ' type=.Column origin=GET_PROPERTY - t: CALL 'public final fun times (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=MUL + t: CALL 'public final fun times (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=MUL $this: CONST Int type=kotlin.Int value=2 other: CONST Int type=kotlin.Int value=60 - CALL 'public final fun unaryPlus (): kotlin.Unit [operator] declared in .ArgumentsBuilder' type=kotlin.Unit origin=UPLUS + CALL 'public final fun unaryPlus (): kotlin.Unit declared in .ArgumentsBuilder' type=kotlin.Unit origin=UPLUS $this: GET_VAR '$this$countIssues: .ArgumentsBuilder declared in .test.' type=.ArgumentsBuilder origin=null - $receiver: CALL 'public final fun lessEq (t: T of .lessEq): .Expression [infix] declared in ' type=.Expression origin=null + $receiver: CALL 'public final fun lessEq (t: T of .lessEq): .Expression declared in ' type=.Expression origin=null : kotlin.Int $receiver: CALL 'public final fun (): .Column declared in ' type=.Column origin=GET_PROPERTY t: CALL 'public final fun id (arg: I of .id): I of .id declared in ' type=kotlin.Int origin=null : kotlin.Int - arg: CALL 'public final fun times (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=MUL + arg: CALL 'public final fun times (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=MUL $this: CONST Int type=kotlin.Int value=2 other: CONST Int type=kotlin.Int value=60 - CALL 'public final fun unaryPlus (): kotlin.Unit [operator] declared in .ArgumentsBuilder' type=kotlin.Unit origin=UPLUS + CALL 'public final fun unaryPlus (): kotlin.Unit declared in .ArgumentsBuilder' type=kotlin.Unit origin=UPLUS $this: GET_VAR '$this$countIssues: .ArgumentsBuilder declared in .test.' type=.ArgumentsBuilder origin=null $receiver: CALL 'public final fun select (t: T of .select, r: T of .select): .Expression declared in ' type=.Expression origin=null : kotlin.Long $receiver: CALL 'public final fun (): .Column declared in ' type=.Column origin=GET_PROPERTY t: CALL 'public open fun toLong (): kotlin.Long declared in kotlin.Int' type=kotlin.Long origin=null - $this: CALL 'public final fun times (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=MUL + $this: CALL 'public final fun times (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=MUL $this: CONST Int type=kotlin.Int value=2 other: CONST Int type=kotlin.Int value=60 r: GET_VAR 'x: kotlin.Long declared in .test' type=kotlin.Long origin=null @@ -50,7 +50,7 @@ FILE fqName: fileName:/timesInBuilder.kt VALUE_PARAMETER name:name index:0 type:kotlin.String BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun integer (name: kotlin.String): .Column declared in ' - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .Column' type=.Column origin=null + CONSTRUCTOR_CALL 'public constructor () declared in .Column' type=.Column origin=null FUN name:id visibility:public modality:FINAL (arg:I of .id) returnType:I of .id TYPE_PARAMETER name:I index:0 variance: superTypes:[kotlin.Any?] reified:false VALUE_PARAMETER name:arg index:0 type:I of .id @@ -62,8 +62,8 @@ FILE fqName: fileName:/timesInBuilder.kt $receiver: VALUE_PARAMETER name: type:.Column VALUE_PARAMETER name:t index:0 type:T of .lessEq BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun lessEq (t: T of .lessEq): .Expression [infix] declared in ' - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .Expression' type=.Expression origin=null + RETURN type=kotlin.Nothing from='public final fun lessEq (t: T of .lessEq): .Expression declared in ' + CONSTRUCTOR_CALL 'public constructor () declared in .Expression' type=.Expression origin=null FUN name:select visibility:public modality:FINAL ($receiver:.Column, t:T of .select, r:T of .select) returnType:.Expression TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Comparable.select>] reified:false $receiver: VALUE_PARAMETER name: type:.Column @@ -71,16 +71,16 @@ FILE fqName: fileName:/timesInBuilder.kt VALUE_PARAMETER name:r index:1 type:T of .select BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun select (t: T of .select, r: T of .select): .Expression declared in ' - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .Expression' type=.Expression origin=null + CONSTRUCTOR_CALL 'public constructor () declared in .Expression' type=.Expression origin=null CLASS CLASS name:Expression modality:FINAL visibility:public superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Expression CONSTRUCTOR visibility:public <> () returnType:.Expression [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Expression modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -95,11 +95,11 @@ FILE fqName: fileName:/timesInBuilder.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Column CONSTRUCTOR visibility:public <> () returnType:.Column [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Column modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -114,12 +114,12 @@ FILE fqName: fileName:/timesInBuilder.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.ArgumentsBuilder CONSTRUCTOR visibility:public <> () returnType:.ArgumentsBuilder [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:ArgumentsBuilder modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:arguments visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:arguments type:kotlin.collections.MutableList<.Expression> visibility:private [final] EXPRESSION_BODY - CALL 'public final fun mutableListOf (): kotlin.collections.MutableList [inline] declared in kotlin.collections.CollectionsKt' type=kotlin.collections.MutableList<.Expression> origin=null + CALL 'public final fun mutableListOf (): kotlin.collections.MutableList declared in kotlin.collections.CollectionsKt' type=kotlin.collections.MutableList<.Expression> origin=null : .Expression FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:.ArgumentsBuilder) returnType:kotlin.collections.MutableList<.Expression> correspondingProperty: PROPERTY name:arguments visibility:public modality:FINAL [val] @@ -139,7 +139,7 @@ FILE fqName: fileName:/timesInBuilder.kt element: GET_VAR ': .Expression declared in .ArgumentsBuilder.unaryPlus' type=.Expression 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/firProblems/typeParameterFromJavaClass.fir.ir.txt b/compiler/testData/ir/irText/firProblems/typeParameterFromJavaClass.fir.ir.txt index bd9d2f9e418..b933c69087c 100644 --- a/compiler/testData/ir/irText/firProblems/typeParameterFromJavaClass.fir.ir.txt +++ b/compiler/testData/ir/irText/firProblems/typeParameterFromJavaClass.fir.ir.txt @@ -2,7 +2,7 @@ FILE fqName: fileName:/typeParameterFromJavaClass.kt FUN name:foo visibility:public modality:FINAL <> (movedPaths:kotlin.collections.MutableList<.Couple<.FilePath>>) returnType:kotlin.Unit VALUE_PARAMETER name:movedPaths index:0 type:kotlin.collections.MutableList<.Couple<.FilePath>> BLOCK_BODY - CALL 'public final fun forEach (action: kotlin.Function1): kotlin.Unit [inline] declared in kotlin.collections.CollectionsKt' type=kotlin.Unit origin=null + CALL 'public final fun forEach (action: kotlin.Function1): kotlin.Unit declared in kotlin.collections.CollectionsKt' type=kotlin.Unit origin=null : .Couple<.FilePath> $receiver: GET_VAR 'movedPaths: kotlin.collections.MutableList<.Couple<.FilePath>> declared in .foo' type=kotlin.collections.MutableList<.Couple<.FilePath>> origin=null action: FUN_EXPR type=kotlin.Function1<.Couple<.FilePath>, kotlin.Unit> origin=LAMBDA diff --git a/compiler/testData/ir/irText/firProblems/typeParameterFromJavaClass.ir.txt b/compiler/testData/ir/irText/firProblems/typeParameterFromJavaClass.ir.txt index 680f73821b8..cc795e6b357 100644 --- a/compiler/testData/ir/irText/firProblems/typeParameterFromJavaClass.ir.txt +++ b/compiler/testData/ir/irText/firProblems/typeParameterFromJavaClass.ir.txt @@ -2,7 +2,7 @@ FILE fqName: fileName:/typeParameterFromJavaClass.kt FUN name:foo visibility:public modality:FINAL <> (movedPaths:kotlin.collections.MutableList<.Couple<.FilePath>>) returnType:kotlin.Unit VALUE_PARAMETER name:movedPaths index:0 type:kotlin.collections.MutableList<.Couple<.FilePath>> BLOCK_BODY - CALL 'public final fun forEach (action: kotlin.Function1): kotlin.Unit [inline] declared in kotlin.collections.CollectionsKt' type=kotlin.Unit origin=null + CALL 'public final fun forEach (action: kotlin.Function1): kotlin.Unit declared in kotlin.collections.CollectionsKt' type=kotlin.Unit origin=null : .Couple<.FilePath> $receiver: GET_VAR 'movedPaths: kotlin.collections.MutableList<.Couple<.FilePath>> declared in .foo' type=kotlin.collections.MutableList<.Couple<.FilePath>> origin=null action: FUN_EXPR type=kotlin.Function1<.Couple<.FilePath>, kotlin.Unit> origin=LAMBDA diff --git a/compiler/testData/ir/irText/firProblems/typeVariableAfterBuildMap.fir.ir.txt b/compiler/testData/ir/irText/firProblems/typeVariableAfterBuildMap.fir.ir.txt index 6ef32044cfb..22051920f56 100644 --- a/compiler/testData/ir/irText/firProblems/typeVariableAfterBuildMap.fir.ir.txt +++ b/compiler/testData/ir/irText/firProblems/typeVariableAfterBuildMap.fir.ir.txt @@ -5,7 +5,7 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt VALUE_PARAMETER name:name index:0 type:kotlin.String VALUE_PARAMETER name:isPublicAPI index:1 type:kotlin.Boolean BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Visibility modality:ABSTRACT visibility:public superTypes:[kotlin.Any]' PROPERTY name:name visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:name type:kotlin.String visibility:private [final] @@ -49,7 +49,7 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt $this: VALUE_PARAMETER name: type:.Visibility 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -64,13 +64,13 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Visibilities CONSTRUCTOR visibility:private <> () returnType:.Visibilities [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:Visibilities modality:FINAL visibility:public superTypes:[kotlin.Any]' CLASS OBJECT name:Private modality:FINAL visibility:public superTypes:[.Visibility] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Visibilities.Private CONSTRUCTOR visibility:private <> () returnType:.Visibilities.Private [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, isPublicAPI: kotlin.Boolean) [primary] declared in .Visibility' + DELEGATING_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, isPublicAPI: kotlin.Boolean) declared in .Visibility' name: CONST String type=kotlin.String value="private" isPublicAPI: CONST Boolean type=kotlin.Boolean value=false INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:Private modality:FINAL visibility:public superTypes:[.Visibility]' @@ -83,7 +83,7 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt CONST Boolean type=kotlin.Boolean value=true PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: - public final name: kotlin.String [val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.Visibility) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: @@ -91,7 +91,7 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt $this: VALUE_PARAMETER name: type:.Visibility PROPERTY FAKE_OVERRIDE name:isPublicAPI visibility:public modality:FINAL [fake_override,val] overridden: - public final isPublicAPI: kotlin.Boolean [val] + public final isPublicAPI: kotlin.Boolean FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.Visibility) returnType:kotlin.Boolean [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:isPublicAPI visibility:public modality:FINAL [fake_override,val] overridden: @@ -99,7 +99,7 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt $this: VALUE_PARAMETER name: type:.Visibility PROPERTY FAKE_OVERRIDE name:internalDisplayName visibility:public modality:OPEN [fake_override,val] overridden: - public open internalDisplayName: kotlin.String [val] + public open internalDisplayName: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:OPEN <> ($this:.Visibility) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:internalDisplayName visibility:public modality:OPEN [fake_override,val] overridden: @@ -107,7 +107,7 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt $this: VALUE_PARAMETER name: type:.Visibility PROPERTY FAKE_OVERRIDE name:externalDisplayName visibility:public modality:OPEN [fake_override,val] overridden: - public open externalDisplayName: kotlin.String [val] + public open externalDisplayName: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:OPEN <> ($this:.Visibility) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:externalDisplayName visibility:public modality:OPEN [fake_override,val] overridden: @@ -115,28 +115,28 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt $this: VALUE_PARAMETER name: type:.Visibility 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 .Visibility + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Visibility $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 .Visibility + public open fun hashCode (): kotlin.Int declared in .Visibility $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 .Visibility + public open fun toString (): kotlin.String declared in .Visibility $this: VALUE_PARAMETER name: type:kotlin.Any CLASS OBJECT name:PrivateToThis modality:FINAL visibility:public superTypes:[.Visibility] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Visibilities.PrivateToThis CONSTRUCTOR visibility:private <> () returnType:.Visibilities.PrivateToThis [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, isPublicAPI: kotlin.Boolean) [primary] declared in .Visibility' + DELEGATING_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, isPublicAPI: kotlin.Boolean) declared in .Visibility' name: CONST String type=kotlin.String value="private_to_this" isPublicAPI: CONST Boolean type=kotlin.Boolean value=false INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:PrivateToThis modality:FINAL visibility:public superTypes:[.Visibility]' PROPERTY name:internalDisplayName visibility:public modality:OPEN [val] overridden: - public open internalDisplayName: kotlin.String [val] + public open internalDisplayName: kotlin.String FUN name: visibility:public modality:OPEN <> ($this:.Visibilities.PrivateToThis) returnType:kotlin.String correspondingProperty: PROPERTY name:internalDisplayName visibility:public modality:OPEN [val] overridden: @@ -154,7 +154,7 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt CONST Boolean type=kotlin.Boolean value=true PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: - public final name: kotlin.String [val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.Visibility) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: @@ -162,7 +162,7 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt $this: VALUE_PARAMETER name: type:.Visibility PROPERTY FAKE_OVERRIDE name:isPublicAPI visibility:public modality:FINAL [fake_override,val] overridden: - public final isPublicAPI: kotlin.Boolean [val] + public final isPublicAPI: kotlin.Boolean FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.Visibility) returnType:kotlin.Boolean [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:isPublicAPI visibility:public modality:FINAL [fake_override,val] overridden: @@ -170,7 +170,7 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt $this: VALUE_PARAMETER name: type:.Visibility PROPERTY FAKE_OVERRIDE name:externalDisplayName visibility:public modality:OPEN [fake_override,val] overridden: - public open externalDisplayName: kotlin.String [val] + public open externalDisplayName: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:OPEN <> ($this:.Visibility) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:externalDisplayName visibility:public modality:OPEN [fake_override,val] overridden: @@ -178,22 +178,22 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt $this: VALUE_PARAMETER name: type:.Visibility 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 .Visibility + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Visibility $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 .Visibility + public open fun hashCode (): kotlin.Int declared in .Visibility $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 .Visibility + public open fun toString (): kotlin.String declared in .Visibility $this: VALUE_PARAMETER name: type:kotlin.Any CLASS OBJECT name:Protected modality:FINAL visibility:public superTypes:[.Visibility] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Visibilities.Protected CONSTRUCTOR visibility:private <> () returnType:.Visibilities.Protected [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, isPublicAPI: kotlin.Boolean) [primary] declared in .Visibility' + DELEGATING_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, isPublicAPI: kotlin.Boolean) declared in .Visibility' name: CONST String type=kotlin.String value="protected" isPublicAPI: CONST Boolean type=kotlin.Boolean value=true INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:Protected modality:FINAL visibility:public superTypes:[.Visibility]' @@ -206,7 +206,7 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt CONST Boolean type=kotlin.Boolean value=false PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: - public final name: kotlin.String [val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.Visibility) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: @@ -214,7 +214,7 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt $this: VALUE_PARAMETER name: type:.Visibility PROPERTY FAKE_OVERRIDE name:isPublicAPI visibility:public modality:FINAL [fake_override,val] overridden: - public final isPublicAPI: kotlin.Boolean [val] + public final isPublicAPI: kotlin.Boolean FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.Visibility) returnType:kotlin.Boolean [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:isPublicAPI visibility:public modality:FINAL [fake_override,val] overridden: @@ -222,7 +222,7 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt $this: VALUE_PARAMETER name: type:.Visibility PROPERTY FAKE_OVERRIDE name:internalDisplayName visibility:public modality:OPEN [fake_override,val] overridden: - public open internalDisplayName: kotlin.String [val] + public open internalDisplayName: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:OPEN <> ($this:.Visibility) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:internalDisplayName visibility:public modality:OPEN [fake_override,val] overridden: @@ -230,7 +230,7 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt $this: VALUE_PARAMETER name: type:.Visibility PROPERTY FAKE_OVERRIDE name:externalDisplayName visibility:public modality:OPEN [fake_override,val] overridden: - public open externalDisplayName: kotlin.String [val] + public open externalDisplayName: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:OPEN <> ($this:.Visibility) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:externalDisplayName visibility:public modality:OPEN [fake_override,val] overridden: @@ -238,22 +238,22 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt $this: VALUE_PARAMETER name: type:.Visibility 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 .Visibility + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Visibility $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 .Visibility + public open fun hashCode (): kotlin.Int declared in .Visibility $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 .Visibility + public open fun toString (): kotlin.String declared in .Visibility $this: VALUE_PARAMETER name: type:kotlin.Any CLASS OBJECT name:Internal modality:FINAL visibility:public superTypes:[.Visibility] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Visibilities.Internal CONSTRUCTOR visibility:private <> () returnType:.Visibilities.Internal [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, isPublicAPI: kotlin.Boolean) [primary] declared in .Visibility' + DELEGATING_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, isPublicAPI: kotlin.Boolean) declared in .Visibility' name: CONST String type=kotlin.String value="internal" isPublicAPI: CONST Boolean type=kotlin.Boolean value=false INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:Internal modality:FINAL visibility:public superTypes:[.Visibility]' @@ -266,7 +266,7 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt CONST Boolean type=kotlin.Boolean value=true PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: - public final name: kotlin.String [val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.Visibility) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: @@ -274,7 +274,7 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt $this: VALUE_PARAMETER name: type:.Visibility PROPERTY FAKE_OVERRIDE name:isPublicAPI visibility:public modality:FINAL [fake_override,val] overridden: - public final isPublicAPI: kotlin.Boolean [val] + public final isPublicAPI: kotlin.Boolean FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.Visibility) returnType:kotlin.Boolean [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:isPublicAPI visibility:public modality:FINAL [fake_override,val] overridden: @@ -282,7 +282,7 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt $this: VALUE_PARAMETER name: type:.Visibility PROPERTY FAKE_OVERRIDE name:internalDisplayName visibility:public modality:OPEN [fake_override,val] overridden: - public open internalDisplayName: kotlin.String [val] + public open internalDisplayName: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:OPEN <> ($this:.Visibility) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:internalDisplayName visibility:public modality:OPEN [fake_override,val] overridden: @@ -290,7 +290,7 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt $this: VALUE_PARAMETER name: type:.Visibility PROPERTY FAKE_OVERRIDE name:externalDisplayName visibility:public modality:OPEN [fake_override,val] overridden: - public open externalDisplayName: kotlin.String [val] + public open externalDisplayName: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:OPEN <> ($this:.Visibility) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:externalDisplayName visibility:public modality:OPEN [fake_override,val] overridden: @@ -298,22 +298,22 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt $this: VALUE_PARAMETER name: type:.Visibility 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 .Visibility + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Visibility $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 .Visibility + public open fun hashCode (): kotlin.Int declared in .Visibility $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 .Visibility + public open fun toString (): kotlin.String declared in .Visibility $this: VALUE_PARAMETER name: type:kotlin.Any CLASS OBJECT name:Public modality:FINAL visibility:public superTypes:[.Visibility] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Visibilities.Public CONSTRUCTOR visibility:private <> () returnType:.Visibilities.Public [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, isPublicAPI: kotlin.Boolean) [primary] declared in .Visibility' + DELEGATING_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, isPublicAPI: kotlin.Boolean) declared in .Visibility' name: CONST String type=kotlin.String value="public" isPublicAPI: CONST Boolean type=kotlin.Boolean value=true INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:Public modality:FINAL visibility:public superTypes:[.Visibility]' @@ -326,7 +326,7 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt CONST Boolean type=kotlin.Boolean value=false PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: - public final name: kotlin.String [val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.Visibility) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: @@ -334,7 +334,7 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt $this: VALUE_PARAMETER name: type:.Visibility PROPERTY FAKE_OVERRIDE name:isPublicAPI visibility:public modality:FINAL [fake_override,val] overridden: - public final isPublicAPI: kotlin.Boolean [val] + public final isPublicAPI: kotlin.Boolean FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.Visibility) returnType:kotlin.Boolean [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:isPublicAPI visibility:public modality:FINAL [fake_override,val] overridden: @@ -342,7 +342,7 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt $this: VALUE_PARAMETER name: type:.Visibility PROPERTY FAKE_OVERRIDE name:internalDisplayName visibility:public modality:OPEN [fake_override,val] overridden: - public open internalDisplayName: kotlin.String [val] + public open internalDisplayName: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:OPEN <> ($this:.Visibility) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:internalDisplayName visibility:public modality:OPEN [fake_override,val] overridden: @@ -350,7 +350,7 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt $this: VALUE_PARAMETER name: type:.Visibility PROPERTY FAKE_OVERRIDE name:externalDisplayName visibility:public modality:OPEN [fake_override,val] overridden: - public open externalDisplayName: kotlin.String [val] + public open externalDisplayName: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:OPEN <> ($this:.Visibility) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:externalDisplayName visibility:public modality:OPEN [fake_override,val] overridden: @@ -358,22 +358,22 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt $this: VALUE_PARAMETER name: type:.Visibility 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 .Visibility + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Visibility $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 .Visibility + public open fun hashCode (): kotlin.Int declared in .Visibility $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 .Visibility + public open fun toString (): kotlin.String declared in .Visibility $this: VALUE_PARAMETER name: type:kotlin.Any CLASS OBJECT name:Local modality:FINAL visibility:public superTypes:[.Visibility] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Visibilities.Local CONSTRUCTOR visibility:private <> () returnType:.Visibilities.Local [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, isPublicAPI: kotlin.Boolean) [primary] declared in .Visibility' + DELEGATING_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, isPublicAPI: kotlin.Boolean) declared in .Visibility' name: CONST String type=kotlin.String value="local" isPublicAPI: CONST Boolean type=kotlin.Boolean value=false INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:Local modality:FINAL visibility:public superTypes:[.Visibility]' @@ -386,7 +386,7 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt CONST Boolean type=kotlin.Boolean value=true PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: - public final name: kotlin.String [val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.Visibility) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: @@ -394,7 +394,7 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt $this: VALUE_PARAMETER name: type:.Visibility PROPERTY FAKE_OVERRIDE name:isPublicAPI visibility:public modality:FINAL [fake_override,val] overridden: - public final isPublicAPI: kotlin.Boolean [val] + public final isPublicAPI: kotlin.Boolean FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.Visibility) returnType:kotlin.Boolean [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:isPublicAPI visibility:public modality:FINAL [fake_override,val] overridden: @@ -402,7 +402,7 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt $this: VALUE_PARAMETER name: type:.Visibility PROPERTY FAKE_OVERRIDE name:internalDisplayName visibility:public modality:OPEN [fake_override,val] overridden: - public open internalDisplayName: kotlin.String [val] + public open internalDisplayName: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:OPEN <> ($this:.Visibility) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:internalDisplayName visibility:public modality:OPEN [fake_override,val] overridden: @@ -410,7 +410,7 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt $this: VALUE_PARAMETER name: type:.Visibility PROPERTY FAKE_OVERRIDE name:externalDisplayName visibility:public modality:OPEN [fake_override,val] overridden: - public open externalDisplayName: kotlin.String [val] + public open externalDisplayName: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:OPEN <> ($this:.Visibility) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:externalDisplayName visibility:public modality:OPEN [fake_override,val] overridden: @@ -418,22 +418,22 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt $this: VALUE_PARAMETER name: type:.Visibility 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 .Visibility + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Visibility $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 .Visibility + public open fun hashCode (): kotlin.Int declared in .Visibility $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 .Visibility + public open fun toString (): kotlin.String declared in .Visibility $this: VALUE_PARAMETER name: type:kotlin.Any CLASS OBJECT name:Inherited modality:FINAL visibility:public superTypes:[.Visibility] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Visibilities.Inherited CONSTRUCTOR visibility:private <> () returnType:.Visibilities.Inherited [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, isPublicAPI: kotlin.Boolean) [primary] declared in .Visibility' + DELEGATING_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, isPublicAPI: kotlin.Boolean) declared in .Visibility' name: CONST String type=kotlin.String value="inherited" isPublicAPI: CONST Boolean type=kotlin.Boolean value=false INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:Inherited modality:FINAL visibility:public superTypes:[.Visibility]' @@ -447,7 +447,7 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt p0: CONST String type=kotlin.String value="This method shouldn't be invoked for INHERITED visibility" PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: - public final name: kotlin.String [val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.Visibility) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: @@ -455,7 +455,7 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt $this: VALUE_PARAMETER name: type:.Visibility PROPERTY FAKE_OVERRIDE name:isPublicAPI visibility:public modality:FINAL [fake_override,val] overridden: - public final isPublicAPI: kotlin.Boolean [val] + public final isPublicAPI: kotlin.Boolean FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.Visibility) returnType:kotlin.Boolean [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:isPublicAPI visibility:public modality:FINAL [fake_override,val] overridden: @@ -463,7 +463,7 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt $this: VALUE_PARAMETER name: type:.Visibility PROPERTY FAKE_OVERRIDE name:internalDisplayName visibility:public modality:OPEN [fake_override,val] overridden: - public open internalDisplayName: kotlin.String [val] + public open internalDisplayName: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:OPEN <> ($this:.Visibility) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:internalDisplayName visibility:public modality:OPEN [fake_override,val] overridden: @@ -471,7 +471,7 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt $this: VALUE_PARAMETER name: type:.Visibility PROPERTY FAKE_OVERRIDE name:externalDisplayName visibility:public modality:OPEN [fake_override,val] overridden: - public open externalDisplayName: kotlin.String [val] + public open externalDisplayName: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:OPEN <> ($this:.Visibility) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:externalDisplayName visibility:public modality:OPEN [fake_override,val] overridden: @@ -479,22 +479,22 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt $this: VALUE_PARAMETER name: type:.Visibility 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 .Visibility + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Visibility $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 .Visibility + public open fun hashCode (): kotlin.Int declared in .Visibility $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 .Visibility + public open fun toString (): kotlin.String declared in .Visibility $this: VALUE_PARAMETER name: type:kotlin.Any CLASS OBJECT name:InvisibleFake modality:FINAL visibility:public superTypes:[.Visibility] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Visibilities.InvisibleFake CONSTRUCTOR visibility:private <> () returnType:.Visibilities.InvisibleFake [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, isPublicAPI: kotlin.Boolean) [primary] declared in .Visibility' + DELEGATING_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, isPublicAPI: kotlin.Boolean) declared in .Visibility' name: CONST String type=kotlin.String value="invisible_fake" isPublicAPI: CONST Boolean type=kotlin.Boolean value=false INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:InvisibleFake modality:FINAL visibility:public superTypes:[.Visibility]' @@ -507,7 +507,7 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt CONST Boolean type=kotlin.Boolean value=true PROPERTY name:externalDisplayName visibility:public modality:OPEN [val] overridden: - public open externalDisplayName: kotlin.String [val] + public open externalDisplayName: kotlin.String FUN name: visibility:public modality:OPEN <> ($this:.Visibilities.InvisibleFake) returnType:kotlin.String correspondingProperty: PROPERTY name:externalDisplayName visibility:public modality:OPEN [val] overridden: @@ -518,7 +518,7 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt CONST String type=kotlin.String value="invisible (private in a supertype)" PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: - public final name: kotlin.String [val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.Visibility) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: @@ -526,7 +526,7 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt $this: VALUE_PARAMETER name: type:.Visibility PROPERTY FAKE_OVERRIDE name:isPublicAPI visibility:public modality:FINAL [fake_override,val] overridden: - public final isPublicAPI: kotlin.Boolean [val] + public final isPublicAPI: kotlin.Boolean FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.Visibility) returnType:kotlin.Boolean [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:isPublicAPI visibility:public modality:FINAL [fake_override,val] overridden: @@ -534,7 +534,7 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt $this: VALUE_PARAMETER name: type:.Visibility PROPERTY FAKE_OVERRIDE name:internalDisplayName visibility:public modality:OPEN [fake_override,val] overridden: - public open internalDisplayName: kotlin.String [val] + public open internalDisplayName: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:OPEN <> ($this:.Visibility) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:internalDisplayName visibility:public modality:OPEN [fake_override,val] overridden: @@ -542,22 +542,22 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt $this: VALUE_PARAMETER name: type:.Visibility 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 .Visibility + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Visibility $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 .Visibility + public open fun hashCode (): kotlin.Int declared in .Visibility $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 .Visibility + public open fun toString (): kotlin.String declared in .Visibility $this: VALUE_PARAMETER name: type:kotlin.Any CLASS OBJECT name:Unknown modality:FINAL visibility:public superTypes:[.Visibility] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Visibilities.Unknown CONSTRUCTOR visibility:private <> () returnType:.Visibilities.Unknown [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, isPublicAPI: kotlin.Boolean) [primary] declared in .Visibility' + DELEGATING_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, isPublicAPI: kotlin.Boolean) declared in .Visibility' name: CONST String type=kotlin.String value="unknown" isPublicAPI: CONST Boolean type=kotlin.Boolean value=false INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:Unknown modality:FINAL visibility:public superTypes:[.Visibility]' @@ -571,7 +571,7 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt p0: CONST String type=kotlin.String value="This method shouldn't be invoked for UNKNOWN visibility" PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: - public final name: kotlin.String [val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.Visibility) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: @@ -579,7 +579,7 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt $this: VALUE_PARAMETER name: type:.Visibility PROPERTY FAKE_OVERRIDE name:isPublicAPI visibility:public modality:FINAL [fake_override,val] overridden: - public final isPublicAPI: kotlin.Boolean [val] + public final isPublicAPI: kotlin.Boolean FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.Visibility) returnType:kotlin.Boolean [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:isPublicAPI visibility:public modality:FINAL [fake_override,val] overridden: @@ -587,7 +587,7 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt $this: VALUE_PARAMETER name: type:.Visibility PROPERTY FAKE_OVERRIDE name:internalDisplayName visibility:public modality:OPEN [fake_override,val] overridden: - public open internalDisplayName: kotlin.String [val] + public open internalDisplayName: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:OPEN <> ($this:.Visibility) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:internalDisplayName visibility:public modality:OPEN [fake_override,val] overridden: @@ -595,7 +595,7 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt $this: VALUE_PARAMETER name: type:.Visibility PROPERTY FAKE_OVERRIDE name:externalDisplayName visibility:public modality:OPEN [fake_override,val] overridden: - public open externalDisplayName: kotlin.String [val] + public open externalDisplayName: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:OPEN <> ($this:.Visibility) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:externalDisplayName visibility:public modality:OPEN [fake_override,val] overridden: @@ -603,21 +603,21 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt $this: VALUE_PARAMETER name: type:.Visibility 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 .Visibility + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Visibility $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 .Visibility + public open fun hashCode (): kotlin.Int declared in .Visibility $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 .Visibility + public open fun toString (): kotlin.String declared in .Visibility $this: VALUE_PARAMETER name: type:kotlin.Any PROPERTY name:ORDERED_VISIBILITIES visibility:private modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:ORDERED_VISIBILITIES type:kotlin.collections.Map<.Visibility, kotlin.Int> visibility:private [final] EXPRESSION_BODY - CALL 'public final fun buildMap (builderAction: @[ExtensionFunctionType] kotlin.Function1, kotlin.Unit>): kotlin.collections.Map [inline] declared in kotlin.collections.MapsKt' type=kotlin.collections.Map<.Visibility, kotlin.Int> origin=null + CALL 'public final fun buildMap (builderAction: @[ExtensionFunctionType] kotlin.Function1, kotlin.Unit>): kotlin.collections.Map declared in kotlin.collections.MapsKt' type=kotlin.collections.Map<.Visibility, kotlin.Int> origin=null : .Visibility : kotlin.Int builderAction: FUN_EXPR type=@[ExtensionFunctionType] kotlin.Function1.Visibility, kotlin.Int>, kotlin.Unit> origin=LAMBDA @@ -658,7 +658,7 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt receiver: GET_VAR ': .Visibilities declared in .Visibilities.' type=.Visibilities 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/firProblems/typeVariableAfterBuildMap.ir.txt b/compiler/testData/ir/irText/firProblems/typeVariableAfterBuildMap.ir.txt index cfcec7f571b..62c69662a66 100644 --- a/compiler/testData/ir/irText/firProblems/typeVariableAfterBuildMap.ir.txt +++ b/compiler/testData/ir/irText/firProblems/typeVariableAfterBuildMap.ir.txt @@ -5,7 +5,7 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt VALUE_PARAMETER name:name index:0 type:kotlin.String VALUE_PARAMETER name:isPublicAPI index:1 type:kotlin.Boolean BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Visibility modality:ABSTRACT visibility:public superTypes:[kotlin.Any]' PROPERTY name:name visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:name type:kotlin.String visibility:private [final] @@ -49,7 +49,7 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt $this: VALUE_PARAMETER name: type:.Visibility 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -64,13 +64,13 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Visibilities CONSTRUCTOR visibility:private <> () returnType:.Visibilities [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:Visibilities modality:FINAL visibility:public superTypes:[kotlin.Any]' CLASS OBJECT name:Private modality:FINAL visibility:public superTypes:[.Visibility] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Visibilities.Private CONSTRUCTOR visibility:private <> () returnType:.Visibilities.Private [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, isPublicAPI: kotlin.Boolean) [primary] declared in .Visibility' + DELEGATING_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, isPublicAPI: kotlin.Boolean) declared in .Visibility' name: CONST String type=kotlin.String value="private" isPublicAPI: CONST Boolean type=kotlin.Boolean value=false INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:Private modality:FINAL visibility:public superTypes:[.Visibility]' @@ -83,7 +83,7 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt CONST Boolean type=kotlin.Boolean value=true PROPERTY FAKE_OVERRIDE name:internalDisplayName visibility:public modality:OPEN [fake_override,val] overridden: - public open internalDisplayName: kotlin.String [val] + public open internalDisplayName: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:OPEN <> ($this:.Visibility) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:internalDisplayName visibility:public modality:OPEN [fake_override,val] overridden: @@ -91,7 +91,7 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt $this: VALUE_PARAMETER name: type:.Visibility PROPERTY FAKE_OVERRIDE name:externalDisplayName visibility:public modality:OPEN [fake_override,val] overridden: - public open externalDisplayName: kotlin.String [val] + public open externalDisplayName: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:OPEN <> ($this:.Visibility) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:externalDisplayName visibility:public modality:OPEN [fake_override,val] overridden: @@ -99,7 +99,7 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt $this: VALUE_PARAMETER name: type:.Visibility PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: - public final name: kotlin.String [val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.Visibility) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: @@ -107,7 +107,7 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt $this: VALUE_PARAMETER name: type:.Visibility PROPERTY FAKE_OVERRIDE name:isPublicAPI visibility:public modality:FINAL [fake_override,val] overridden: - public final isPublicAPI: kotlin.Boolean [val] + public final isPublicAPI: kotlin.Boolean FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.Visibility) returnType:kotlin.Boolean [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:isPublicAPI visibility:public modality:FINAL [fake_override,val] overridden: @@ -115,28 +115,28 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt $this: VALUE_PARAMETER name: type:.Visibility 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 .Visibility + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Visibility $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 .Visibility + public open fun hashCode (): kotlin.Int declared in .Visibility $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 .Visibility + public open fun toString (): kotlin.String declared in .Visibility $this: VALUE_PARAMETER name: type:kotlin.Any CLASS OBJECT name:PrivateToThis modality:FINAL visibility:public superTypes:[.Visibility] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Visibilities.PrivateToThis CONSTRUCTOR visibility:private <> () returnType:.Visibilities.PrivateToThis [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, isPublicAPI: kotlin.Boolean) [primary] declared in .Visibility' + DELEGATING_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, isPublicAPI: kotlin.Boolean) declared in .Visibility' name: CONST String type=kotlin.String value="private_to_this" isPublicAPI: CONST Boolean type=kotlin.Boolean value=false INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:PrivateToThis modality:FINAL visibility:public superTypes:[.Visibility]' PROPERTY name:internalDisplayName visibility:public modality:OPEN [val] overridden: - public open internalDisplayName: kotlin.String [val] + public open internalDisplayName: kotlin.String FUN name: visibility:public modality:OPEN <> ($this:.Visibilities.PrivateToThis) returnType:kotlin.String correspondingProperty: PROPERTY name:internalDisplayName visibility:public modality:OPEN [val] overridden: @@ -154,7 +154,7 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt CONST Boolean type=kotlin.Boolean value=true PROPERTY FAKE_OVERRIDE name:externalDisplayName visibility:public modality:OPEN [fake_override,val] overridden: - public open externalDisplayName: kotlin.String [val] + public open externalDisplayName: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:OPEN <> ($this:.Visibility) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:externalDisplayName visibility:public modality:OPEN [fake_override,val] overridden: @@ -162,7 +162,7 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt $this: VALUE_PARAMETER name: type:.Visibility PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: - public final name: kotlin.String [val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.Visibility) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: @@ -170,7 +170,7 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt $this: VALUE_PARAMETER name: type:.Visibility PROPERTY FAKE_OVERRIDE name:isPublicAPI visibility:public modality:FINAL [fake_override,val] overridden: - public final isPublicAPI: kotlin.Boolean [val] + public final isPublicAPI: kotlin.Boolean FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.Visibility) returnType:kotlin.Boolean [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:isPublicAPI visibility:public modality:FINAL [fake_override,val] overridden: @@ -178,22 +178,22 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt $this: VALUE_PARAMETER name: type:.Visibility 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 .Visibility + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Visibility $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 .Visibility + public open fun hashCode (): kotlin.Int declared in .Visibility $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 .Visibility + public open fun toString (): kotlin.String declared in .Visibility $this: VALUE_PARAMETER name: type:kotlin.Any CLASS OBJECT name:Protected modality:FINAL visibility:public superTypes:[.Visibility] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Visibilities.Protected CONSTRUCTOR visibility:private <> () returnType:.Visibilities.Protected [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, isPublicAPI: kotlin.Boolean) [primary] declared in .Visibility' + DELEGATING_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, isPublicAPI: kotlin.Boolean) declared in .Visibility' name: CONST String type=kotlin.String value="protected" isPublicAPI: CONST Boolean type=kotlin.Boolean value=true INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:Protected modality:FINAL visibility:public superTypes:[.Visibility]' @@ -206,7 +206,7 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt CONST Boolean type=kotlin.Boolean value=false PROPERTY FAKE_OVERRIDE name:internalDisplayName visibility:public modality:OPEN [fake_override,val] overridden: - public open internalDisplayName: kotlin.String [val] + public open internalDisplayName: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:OPEN <> ($this:.Visibility) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:internalDisplayName visibility:public modality:OPEN [fake_override,val] overridden: @@ -214,7 +214,7 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt $this: VALUE_PARAMETER name: type:.Visibility PROPERTY FAKE_OVERRIDE name:externalDisplayName visibility:public modality:OPEN [fake_override,val] overridden: - public open externalDisplayName: kotlin.String [val] + public open externalDisplayName: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:OPEN <> ($this:.Visibility) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:externalDisplayName visibility:public modality:OPEN [fake_override,val] overridden: @@ -222,7 +222,7 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt $this: VALUE_PARAMETER name: type:.Visibility PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: - public final name: kotlin.String [val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.Visibility) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: @@ -230,7 +230,7 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt $this: VALUE_PARAMETER name: type:.Visibility PROPERTY FAKE_OVERRIDE name:isPublicAPI visibility:public modality:FINAL [fake_override,val] overridden: - public final isPublicAPI: kotlin.Boolean [val] + public final isPublicAPI: kotlin.Boolean FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.Visibility) returnType:kotlin.Boolean [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:isPublicAPI visibility:public modality:FINAL [fake_override,val] overridden: @@ -238,22 +238,22 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt $this: VALUE_PARAMETER name: type:.Visibility 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 .Visibility + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Visibility $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 .Visibility + public open fun hashCode (): kotlin.Int declared in .Visibility $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 .Visibility + public open fun toString (): kotlin.String declared in .Visibility $this: VALUE_PARAMETER name: type:kotlin.Any CLASS OBJECT name:Internal modality:FINAL visibility:public superTypes:[.Visibility] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Visibilities.Internal CONSTRUCTOR visibility:private <> () returnType:.Visibilities.Internal [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, isPublicAPI: kotlin.Boolean) [primary] declared in .Visibility' + DELEGATING_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, isPublicAPI: kotlin.Boolean) declared in .Visibility' name: CONST String type=kotlin.String value="internal" isPublicAPI: CONST Boolean type=kotlin.Boolean value=false INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:Internal modality:FINAL visibility:public superTypes:[.Visibility]' @@ -266,7 +266,7 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt CONST Boolean type=kotlin.Boolean value=true PROPERTY FAKE_OVERRIDE name:internalDisplayName visibility:public modality:OPEN [fake_override,val] overridden: - public open internalDisplayName: kotlin.String [val] + public open internalDisplayName: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:OPEN <> ($this:.Visibility) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:internalDisplayName visibility:public modality:OPEN [fake_override,val] overridden: @@ -274,7 +274,7 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt $this: VALUE_PARAMETER name: type:.Visibility PROPERTY FAKE_OVERRIDE name:externalDisplayName visibility:public modality:OPEN [fake_override,val] overridden: - public open externalDisplayName: kotlin.String [val] + public open externalDisplayName: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:OPEN <> ($this:.Visibility) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:externalDisplayName visibility:public modality:OPEN [fake_override,val] overridden: @@ -282,7 +282,7 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt $this: VALUE_PARAMETER name: type:.Visibility PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: - public final name: kotlin.String [val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.Visibility) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: @@ -290,7 +290,7 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt $this: VALUE_PARAMETER name: type:.Visibility PROPERTY FAKE_OVERRIDE name:isPublicAPI visibility:public modality:FINAL [fake_override,val] overridden: - public final isPublicAPI: kotlin.Boolean [val] + public final isPublicAPI: kotlin.Boolean FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.Visibility) returnType:kotlin.Boolean [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:isPublicAPI visibility:public modality:FINAL [fake_override,val] overridden: @@ -298,22 +298,22 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt $this: VALUE_PARAMETER name: type:.Visibility 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 .Visibility + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Visibility $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 .Visibility + public open fun hashCode (): kotlin.Int declared in .Visibility $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 .Visibility + public open fun toString (): kotlin.String declared in .Visibility $this: VALUE_PARAMETER name: type:kotlin.Any CLASS OBJECT name:Public modality:FINAL visibility:public superTypes:[.Visibility] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Visibilities.Public CONSTRUCTOR visibility:private <> () returnType:.Visibilities.Public [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, isPublicAPI: kotlin.Boolean) [primary] declared in .Visibility' + DELEGATING_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, isPublicAPI: kotlin.Boolean) declared in .Visibility' name: CONST String type=kotlin.String value="public" isPublicAPI: CONST Boolean type=kotlin.Boolean value=true INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:Public modality:FINAL visibility:public superTypes:[.Visibility]' @@ -326,7 +326,7 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt CONST Boolean type=kotlin.Boolean value=false PROPERTY FAKE_OVERRIDE name:internalDisplayName visibility:public modality:OPEN [fake_override,val] overridden: - public open internalDisplayName: kotlin.String [val] + public open internalDisplayName: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:OPEN <> ($this:.Visibility) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:internalDisplayName visibility:public modality:OPEN [fake_override,val] overridden: @@ -334,7 +334,7 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt $this: VALUE_PARAMETER name: type:.Visibility PROPERTY FAKE_OVERRIDE name:externalDisplayName visibility:public modality:OPEN [fake_override,val] overridden: - public open externalDisplayName: kotlin.String [val] + public open externalDisplayName: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:OPEN <> ($this:.Visibility) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:externalDisplayName visibility:public modality:OPEN [fake_override,val] overridden: @@ -342,7 +342,7 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt $this: VALUE_PARAMETER name: type:.Visibility PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: - public final name: kotlin.String [val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.Visibility) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: @@ -350,7 +350,7 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt $this: VALUE_PARAMETER name: type:.Visibility PROPERTY FAKE_OVERRIDE name:isPublicAPI visibility:public modality:FINAL [fake_override,val] overridden: - public final isPublicAPI: kotlin.Boolean [val] + public final isPublicAPI: kotlin.Boolean FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.Visibility) returnType:kotlin.Boolean [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:isPublicAPI visibility:public modality:FINAL [fake_override,val] overridden: @@ -358,22 +358,22 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt $this: VALUE_PARAMETER name: type:.Visibility 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 .Visibility + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Visibility $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 .Visibility + public open fun hashCode (): kotlin.Int declared in .Visibility $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 .Visibility + public open fun toString (): kotlin.String declared in .Visibility $this: VALUE_PARAMETER name: type:kotlin.Any CLASS OBJECT name:Local modality:FINAL visibility:public superTypes:[.Visibility] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Visibilities.Local CONSTRUCTOR visibility:private <> () returnType:.Visibilities.Local [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, isPublicAPI: kotlin.Boolean) [primary] declared in .Visibility' + DELEGATING_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, isPublicAPI: kotlin.Boolean) declared in .Visibility' name: CONST String type=kotlin.String value="local" isPublicAPI: CONST Boolean type=kotlin.Boolean value=false INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:Local modality:FINAL visibility:public superTypes:[.Visibility]' @@ -386,7 +386,7 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt CONST Boolean type=kotlin.Boolean value=true PROPERTY FAKE_OVERRIDE name:internalDisplayName visibility:public modality:OPEN [fake_override,val] overridden: - public open internalDisplayName: kotlin.String [val] + public open internalDisplayName: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:OPEN <> ($this:.Visibility) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:internalDisplayName visibility:public modality:OPEN [fake_override,val] overridden: @@ -394,7 +394,7 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt $this: VALUE_PARAMETER name: type:.Visibility PROPERTY FAKE_OVERRIDE name:externalDisplayName visibility:public modality:OPEN [fake_override,val] overridden: - public open externalDisplayName: kotlin.String [val] + public open externalDisplayName: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:OPEN <> ($this:.Visibility) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:externalDisplayName visibility:public modality:OPEN [fake_override,val] overridden: @@ -402,7 +402,7 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt $this: VALUE_PARAMETER name: type:.Visibility PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: - public final name: kotlin.String [val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.Visibility) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: @@ -410,7 +410,7 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt $this: VALUE_PARAMETER name: type:.Visibility PROPERTY FAKE_OVERRIDE name:isPublicAPI visibility:public modality:FINAL [fake_override,val] overridden: - public final isPublicAPI: kotlin.Boolean [val] + public final isPublicAPI: kotlin.Boolean FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.Visibility) returnType:kotlin.Boolean [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:isPublicAPI visibility:public modality:FINAL [fake_override,val] overridden: @@ -418,22 +418,22 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt $this: VALUE_PARAMETER name: type:.Visibility 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 .Visibility + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Visibility $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 .Visibility + public open fun hashCode (): kotlin.Int declared in .Visibility $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 .Visibility + public open fun toString (): kotlin.String declared in .Visibility $this: VALUE_PARAMETER name: type:kotlin.Any CLASS OBJECT name:Inherited modality:FINAL visibility:public superTypes:[.Visibility] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Visibilities.Inherited CONSTRUCTOR visibility:private <> () returnType:.Visibilities.Inherited [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, isPublicAPI: kotlin.Boolean) [primary] declared in .Visibility' + DELEGATING_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, isPublicAPI: kotlin.Boolean) declared in .Visibility' name: CONST String type=kotlin.String value="inherited" isPublicAPI: CONST Boolean type=kotlin.Boolean value=false INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:Inherited modality:FINAL visibility:public superTypes:[.Visibility]' @@ -447,7 +447,7 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt p0: CONST String type=kotlin.String value="This method shouldn't be invoked for INHERITED visibility" PROPERTY FAKE_OVERRIDE name:internalDisplayName visibility:public modality:OPEN [fake_override,val] overridden: - public open internalDisplayName: kotlin.String [val] + public open internalDisplayName: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:OPEN <> ($this:.Visibility) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:internalDisplayName visibility:public modality:OPEN [fake_override,val] overridden: @@ -455,7 +455,7 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt $this: VALUE_PARAMETER name: type:.Visibility PROPERTY FAKE_OVERRIDE name:externalDisplayName visibility:public modality:OPEN [fake_override,val] overridden: - public open externalDisplayName: kotlin.String [val] + public open externalDisplayName: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:OPEN <> ($this:.Visibility) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:externalDisplayName visibility:public modality:OPEN [fake_override,val] overridden: @@ -463,7 +463,7 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt $this: VALUE_PARAMETER name: type:.Visibility PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: - public final name: kotlin.String [val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.Visibility) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: @@ -471,7 +471,7 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt $this: VALUE_PARAMETER name: type:.Visibility PROPERTY FAKE_OVERRIDE name:isPublicAPI visibility:public modality:FINAL [fake_override,val] overridden: - public final isPublicAPI: kotlin.Boolean [val] + public final isPublicAPI: kotlin.Boolean FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.Visibility) returnType:kotlin.Boolean [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:isPublicAPI visibility:public modality:FINAL [fake_override,val] overridden: @@ -479,22 +479,22 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt $this: VALUE_PARAMETER name: type:.Visibility 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 .Visibility + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Visibility $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 .Visibility + public open fun hashCode (): kotlin.Int declared in .Visibility $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 .Visibility + public open fun toString (): kotlin.String declared in .Visibility $this: VALUE_PARAMETER name: type:kotlin.Any CLASS OBJECT name:InvisibleFake modality:FINAL visibility:public superTypes:[.Visibility] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Visibilities.InvisibleFake CONSTRUCTOR visibility:private <> () returnType:.Visibilities.InvisibleFake [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, isPublicAPI: kotlin.Boolean) [primary] declared in .Visibility' + DELEGATING_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, isPublicAPI: kotlin.Boolean) declared in .Visibility' name: CONST String type=kotlin.String value="invisible_fake" isPublicAPI: CONST Boolean type=kotlin.Boolean value=false INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:InvisibleFake modality:FINAL visibility:public superTypes:[.Visibility]' @@ -507,7 +507,7 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt CONST Boolean type=kotlin.Boolean value=true PROPERTY name:externalDisplayName visibility:public modality:OPEN [val] overridden: - public open externalDisplayName: kotlin.String [val] + public open externalDisplayName: kotlin.String FUN name: visibility:public modality:OPEN <> ($this:.Visibilities.InvisibleFake) returnType:kotlin.String correspondingProperty: PROPERTY name:externalDisplayName visibility:public modality:OPEN [val] overridden: @@ -518,7 +518,7 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt CONST String type=kotlin.String value="invisible (private in a supertype)" PROPERTY FAKE_OVERRIDE name:internalDisplayName visibility:public modality:OPEN [fake_override,val] overridden: - public open internalDisplayName: kotlin.String [val] + public open internalDisplayName: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:OPEN <> ($this:.Visibility) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:internalDisplayName visibility:public modality:OPEN [fake_override,val] overridden: @@ -526,7 +526,7 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt $this: VALUE_PARAMETER name: type:.Visibility PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: - public final name: kotlin.String [val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.Visibility) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: @@ -534,7 +534,7 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt $this: VALUE_PARAMETER name: type:.Visibility PROPERTY FAKE_OVERRIDE name:isPublicAPI visibility:public modality:FINAL [fake_override,val] overridden: - public final isPublicAPI: kotlin.Boolean [val] + public final isPublicAPI: kotlin.Boolean FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.Visibility) returnType:kotlin.Boolean [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:isPublicAPI visibility:public modality:FINAL [fake_override,val] overridden: @@ -542,22 +542,22 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt $this: VALUE_PARAMETER name: type:.Visibility 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 .Visibility + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Visibility $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 .Visibility + public open fun hashCode (): kotlin.Int declared in .Visibility $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 .Visibility + public open fun toString (): kotlin.String declared in .Visibility $this: VALUE_PARAMETER name: type:kotlin.Any CLASS OBJECT name:Unknown modality:FINAL visibility:public superTypes:[.Visibility] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Visibilities.Unknown CONSTRUCTOR visibility:private <> () returnType:.Visibilities.Unknown [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, isPublicAPI: kotlin.Boolean) [primary] declared in .Visibility' + DELEGATING_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, isPublicAPI: kotlin.Boolean) declared in .Visibility' name: CONST String type=kotlin.String value="unknown" isPublicAPI: CONST Boolean type=kotlin.Boolean value=false INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:Unknown modality:FINAL visibility:public superTypes:[.Visibility]' @@ -571,7 +571,7 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt p0: CONST String type=kotlin.String value="This method shouldn't be invoked for UNKNOWN visibility" PROPERTY FAKE_OVERRIDE name:internalDisplayName visibility:public modality:OPEN [fake_override,val] overridden: - public open internalDisplayName: kotlin.String [val] + public open internalDisplayName: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:OPEN <> ($this:.Visibility) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:internalDisplayName visibility:public modality:OPEN [fake_override,val] overridden: @@ -579,7 +579,7 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt $this: VALUE_PARAMETER name: type:.Visibility PROPERTY FAKE_OVERRIDE name:externalDisplayName visibility:public modality:OPEN [fake_override,val] overridden: - public open externalDisplayName: kotlin.String [val] + public open externalDisplayName: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:OPEN <> ($this:.Visibility) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:externalDisplayName visibility:public modality:OPEN [fake_override,val] overridden: @@ -587,7 +587,7 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt $this: VALUE_PARAMETER name: type:.Visibility PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: - public final name: kotlin.String [val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.Visibility) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: @@ -595,7 +595,7 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt $this: VALUE_PARAMETER name: type:.Visibility PROPERTY FAKE_OVERRIDE name:isPublicAPI visibility:public modality:FINAL [fake_override,val] overridden: - public final isPublicAPI: kotlin.Boolean [val] + public final isPublicAPI: kotlin.Boolean FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.Visibility) returnType:kotlin.Boolean [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:isPublicAPI visibility:public modality:FINAL [fake_override,val] overridden: @@ -603,21 +603,21 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt $this: VALUE_PARAMETER name: type:.Visibility 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 .Visibility + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Visibility $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 .Visibility + public open fun hashCode (): kotlin.Int declared in .Visibility $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 .Visibility + public open fun toString (): kotlin.String declared in .Visibility $this: VALUE_PARAMETER name: type:kotlin.Any PROPERTY name:ORDERED_VISIBILITIES visibility:private modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:ORDERED_VISIBILITIES type:kotlin.collections.Map<.Visibility, kotlin.Int> visibility:private [final] EXPRESSION_BODY - CALL 'public final fun buildMap (builderAction: @[ExtensionFunctionType] kotlin.Function1, kotlin.Unit>): kotlin.collections.Map [inline] declared in kotlin.collections.MapsKt' type=kotlin.collections.Map<.Visibility, kotlin.Int> origin=null + CALL 'public final fun buildMap (builderAction: @[ExtensionFunctionType] kotlin.Function1, kotlin.Unit>): kotlin.collections.Map declared in kotlin.collections.MapsKt' type=kotlin.collections.Map<.Visibility, kotlin.Int> origin=null : .Visibility : kotlin.Int builderAction: FUN_EXPR type=@[ExtensionFunctionType] kotlin.Function1.Visibility, kotlin.Int>, kotlin.Unit> origin=LAMBDA @@ -658,7 +658,7 @@ FILE fqName: fileName:/typeVariableAfterBuildMap.kt receiver: GET_VAR ': .Visibilities declared in .Visibilities.' type=.Visibilities 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/firProblems/valueClassEquals.fir.ir.txt b/compiler/testData/ir/irText/firProblems/valueClassEquals.fir.ir.txt index 3a8bc95487c..d7032fd29c0 100644 --- a/compiler/testData/ir/irText/firProblems/valueClassEquals.fir.ir.txt +++ b/compiler/testData/ir/irText/firProblems/valueClassEquals.fir.ir.txt @@ -6,7 +6,7 @@ FILE fqName: fileName:/valueClassEquals.kt CONSTRUCTOR visibility:public <> (s:kotlin.String) returnType:.Z [primary] VALUE_PARAMETER name:s index:0 type:kotlin.String BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Z modality:FINAL visibility:public [value] superTypes:[kotlin.Any]' PROPERTY name:s visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:s type:kotlin.String visibility:private [final] @@ -21,7 +21,7 @@ FILE fqName: fileName:/valueClassEquals.kt receiver: GET_VAR ': .Z declared in .Z.' type=.Z origin=null FUN GENERATED_SINGLE_FIELD_VALUE_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:.Z, other:kotlin.Any?) returnType:kotlin.Boolean [operator] overridden: - public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any $this: VALUE_PARAMETER name: type:.Z VALUE_PARAMETER name:other index:0 type:kotlin.Any? BLOCK_BODY @@ -29,22 +29,22 @@ FILE fqName: fileName:/valueClassEquals.kt BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=.Z GET_VAR 'other: kotlin.Any? declared in .Z.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Z' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Z' CONST Boolean type=kotlin.Boolean value=false VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:.Z [val] TYPE_OP type=.Z origin=CAST typeOperand=.Z GET_VAR 'other: kotlin.Any? declared in .Z.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 + if: CALL 'public final fun not (): kotlin.Boolean 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:s type:kotlin.String visibility:private [final]' type=kotlin.String origin=null receiver: GET_VAR ': .Z declared in .Z.equals' type=.Z origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:s type:kotlin.String visibility:private [final]' type=kotlin.String origin=null - receiver: GET_VAR 'val tmp_0: .Z [val] declared in .Z.equals' type=.Z origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Z' + receiver: GET_VAR 'val tmp_0: .Z declared in .Z.equals' type=.Z origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Z' CONST Boolean type=kotlin.Boolean value=false - RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Z' + RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Z' CONST Boolean type=kotlin.Boolean value=true FUN GENERATED_SINGLE_FIELD_VALUE_CLASS_MEMBER name:hashCode visibility:public modality:OPEN <> ($this:.Z) returnType:kotlin.Int overridden: @@ -52,7 +52,7 @@ FILE fqName: fileName:/valueClassEquals.kt $this: VALUE_PARAMETER name: type:.Z BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun hashCode (): kotlin.Int declared in .Z' - CALL 'public open fun hashCode (): kotlin.Int [fake_override] declared in kotlin.String' type=kotlin.Int origin=null + CALL 'public open fun hashCode (): kotlin.Int declared in kotlin.String' type=kotlin.Int origin=null $this: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:s type:kotlin.String visibility:private [final]' type=kotlin.String origin=null receiver: GET_VAR ': .Z declared in .Z.hashCode' type=.Z origin=null FUN GENERATED_SINGLE_FIELD_VALUE_CLASS_MEMBER name:toString visibility:public modality:OPEN <> ($this:.Z) returnType:kotlin.String @@ -69,7 +69,7 @@ FILE fqName: fileName:/valueClassEquals.kt PROPERTY name:equals visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:equals type:kotlin.reflect.KFunction2<.Z, kotlin.Any?, kotlin.Boolean> visibility:private [final,static] EXPRESSION_BODY - FUNCTION_REFERENCE 'public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Any' type=kotlin.reflect.KFunction2<.Z, kotlin.Any?, kotlin.Boolean> origin=null reflectionTarget= + FUNCTION_REFERENCE 'public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any' type=kotlin.reflect.KFunction2<.Z, kotlin.Any?, kotlin.Boolean> origin=null reflectionTarget= FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:kotlin.reflect.KFunction2<.Z, kotlin.Any?, kotlin.Boolean> correspondingProperty: PROPERTY name:equals visibility:public modality:FINAL [val] BLOCK_BODY diff --git a/compiler/testData/ir/irText/firProblems/valueClassEquals.ir.txt b/compiler/testData/ir/irText/firProblems/valueClassEquals.ir.txt index d40a8c5ac3e..ac9e83162e4 100644 --- a/compiler/testData/ir/irText/firProblems/valueClassEquals.ir.txt +++ b/compiler/testData/ir/irText/firProblems/valueClassEquals.ir.txt @@ -6,7 +6,7 @@ FILE fqName: fileName:/valueClassEquals.kt CONSTRUCTOR visibility:public <> (s:kotlin.String) returnType:.Z [primary] VALUE_PARAMETER name:s index:0 type:kotlin.String BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Z modality:FINAL visibility:public [value] superTypes:[kotlin.Any]' PROPERTY name:s visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:s type:kotlin.String visibility:private [final] @@ -37,12 +37,12 @@ FILE fqName: fileName:/valueClassEquals.kt $this: VALUE_PARAMETER name: type:.Z BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun hashCode (): kotlin.Int declared in .Z' - CALL 'public open fun hashCode (): kotlin.Int [fake_override] declared in kotlin.String' type=kotlin.Int origin=null + CALL 'public open fun hashCode (): kotlin.Int declared in kotlin.String' type=kotlin.Int origin=null $this: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:s type:kotlin.String visibility:private [final]' type=kotlin.String origin=null receiver: GET_VAR ': .Z declared in .Z.hashCode' type=.Z origin=null FUN GENERATED_SINGLE_FIELD_VALUE_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:.Z, other:kotlin.Any?) returnType:kotlin.Boolean [operator] overridden: - public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any $this: VALUE_PARAMETER name: type:.Z VALUE_PARAMETER name:other index:0 type:kotlin.Any? BLOCK_BODY @@ -50,27 +50,27 @@ FILE fqName: fileName:/valueClassEquals.kt BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=.Z GET_VAR 'other: kotlin.Any? declared in .Z.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Z' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Z' CONST Boolean type=kotlin.Boolean value=false VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:.Z [val] TYPE_OP type=.Z origin=CAST typeOperand=.Z GET_VAR 'other: kotlin.Any? declared in .Z.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 + if: CALL 'public final fun not (): kotlin.Boolean 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:s type:kotlin.String visibility:private [final]' type=kotlin.String origin=null receiver: GET_VAR ': .Z declared in .Z.equals' type=.Z origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:s type:kotlin.String visibility:private [final]' type=kotlin.String origin=null - receiver: GET_VAR 'val tmp_0: .Z [val] declared in .Z.equals' type=.Z origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Z' + receiver: GET_VAR 'val tmp_0: .Z declared in .Z.equals' type=.Z origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Z' CONST Boolean type=kotlin.Boolean value=false - RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Z' + RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Z' CONST Boolean type=kotlin.Boolean value=true PROPERTY name:equals visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:equals type:kotlin.reflect.KFunction2<.Z, @[ParameterName(name = 'other')] kotlin.Any?, kotlin.Boolean> visibility:private [final,static] EXPRESSION_BODY - FUNCTION_REFERENCE 'public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Z' type=kotlin.reflect.KFunction2<.Z, @[ParameterName(name = 'other')] kotlin.Any?, kotlin.Boolean> origin=null reflectionTarget= + FUNCTION_REFERENCE 'public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Z' type=kotlin.reflect.KFunction2<.Z, @[ParameterName(name = 'other')] kotlin.Any?, kotlin.Boolean> origin=null reflectionTarget= FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:kotlin.reflect.KFunction2<.Z, @[ParameterName(name = 'other')] kotlin.Any?, kotlin.Boolean> correspondingProperty: PROPERTY name:equals visibility:public modality:FINAL [val] BLOCK_BODY diff --git a/compiler/testData/ir/irText/firProblems/valueClassEquals.kt b/compiler/testData/ir/irText/firProblems/valueClassEquals.kt index ad55071d0b7..a6048747064 100644 --- a/compiler/testData/ir/irText/firProblems/valueClassEquals.kt +++ b/compiler/testData/ir/irText/firProblems/valueClassEquals.kt @@ -1,5 +1,5 @@ // SKIP_KLIB_TEST -// IGNORE_BACKEND: JS_IR +// IGNORE_BACKEND_K1: JS_IR // WITH_STDLIB // LANGUAGE: +ValueClasses diff --git a/compiler/testData/ir/irText/firProblems/valueClassEquals.sig.kt.txt b/compiler/testData/ir/irText/firProblems/valueClassEquals.sig.kt.txt index 55d2ce6958e..859100b64e7 100644 --- a/compiler/testData/ir/irText/firProblems/valueClassEquals.sig.kt.txt +++ b/compiler/testData/ir/irText/firProblems/valueClassEquals.sig.kt.txt @@ -5,6 +5,9 @@ val equals: KFunction2 // CHECK JVM_IR: // Mangled name: #(){}kotlin.reflect.KFunction2 // Public signature: /equals.|5606412553566840313[0] + // CHECK JS_IR NATIVE: + // Mangled name: #(){} + // Public signature: /equals.|8604660172340853954[0] get // CHECK: @@ -19,6 +22,9 @@ value class Z { // CHECK JVM_IR: // Mangled name: Z#(){}kotlin.String // Public signature: /Z.s.|4142379646177092803[0] + // CHECK JS_IR NATIVE: + // Mangled name: Z#(){} + // Public signature: /Z.s.|-1662172381559511151[0] get // CHECK: @@ -28,16 +34,25 @@ value class Z { // CHECK JVM_IR: // Mangled name: Z#equals(kotlin.Any?){}kotlin.Boolean // Public signature: /Z.equals|722809408929142791[0] + // CHECK JS_IR NATIVE: + // Mangled name: Z#equals(kotlin.Any?){} + // Public signature: /Z.equals|4638265728071529943[0] override operator fun equals(other: Any?): Boolean // CHECK JVM_IR: // Mangled name: Z#hashCode(){}kotlin.Int // Public signature: /Z.hashCode|-8048879360829830756[0] + // CHECK JS_IR NATIVE: + // Mangled name: Z#hashCode(){} + // Public signature: /Z.hashCode|3409210261493131192[0] override fun hashCode(): Int // CHECK JVM_IR: // Mangled name: Z#toString(){}kotlin.String // Public signature: /Z.toString|6958853723545266802[0] + // CHECK JS_IR NATIVE: + // Mangled name: Z#toString(){} + // Public signature: /Z.toString|-1522858123163872138[0] override fun toString(): String } diff --git a/compiler/testData/ir/irText/js/dynamic/dynamicAndMembersOfAny.ir.txt b/compiler/testData/ir/irText/js/dynamic/dynamicAndMembersOfAny.ir.txt index 88d0613f7c7..46335169ac0 100644 --- a/compiler/testData/ir/irText/js/dynamic/dynamicAndMembersOfAny.ir.txt +++ b/compiler/testData/ir/irText/js/dynamic/dynamicAndMembersOfAny.ir.txt @@ -17,7 +17,7 @@ FILE fqName: fileName:/dynamicAndMembersOfAny.kt VALUE_PARAMETER name:d index:0 type:dynamic BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test3 (d: dynamic): kotlin.Boolean declared in ' - CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Any' type=kotlin.Boolean origin=null + CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any' type=kotlin.Boolean origin=null $this: TYPE_OP type=kotlin.Any origin=IMPLICIT_DYNAMIC_CAST typeOperand=kotlin.Any GET_VAR 'd: dynamic declared in .test3' type=dynamic origin=null other: CONST Int type=kotlin.Int value=42 diff --git a/compiler/testData/ir/irText/js/dynamic/dynamicCall.ir.txt b/compiler/testData/ir/irText/js/dynamic/dynamicCall.ir.txt index 48e177593ba..b26d747d5b7 100644 --- a/compiler/testData/ir/irText/js/dynamic/dynamicCall.ir.txt +++ b/compiler/testData/ir/irText/js/dynamic/dynamicCall.ir.txt @@ -19,14 +19,14 @@ FILE fqName: fileName:/dynamicCall.kt WHEN type=dynamic origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_0: dynamic [val] declared in .test2' type=dynamic origin=null + arg0: GET_VAR 'val tmp_0: dynamic declared in .test2' type=dynamic origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: DYN_OP operator=INVOKE type=dynamic receiver: DYN_MEMBER memberName='member' type=dynamic - GET_VAR 'val tmp_0: dynamic [val] declared in .test2' type=dynamic origin=null + GET_VAR 'val tmp_0: dynamic declared in .test2' type=dynamic origin=null 0: CONST Int type=kotlin.Int value=1 1: CONST Int type=kotlin.Int value=2 2: CONST Int type=kotlin.Int value=3 diff --git a/compiler/testData/ir/irText/js/dynamic/dynamicElvisOperator.fir.ir.txt b/compiler/testData/ir/irText/js/dynamic/dynamicElvisOperator.fir.ir.txt index 8146538096e..04e6f3f387e 100644 --- a/compiler/testData/ir/irText/js/dynamic/dynamicElvisOperator.fir.ir.txt +++ b/compiler/testData/ir/irText/js/dynamic/dynamicElvisOperator.fir.ir.txt @@ -9,9 +9,9 @@ FILE fqName: fileName:/dynamicElvisOperator.kt WHEN type=dynamic origin=ELVIS BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_0: dynamic [val] declared in .test' type=dynamic origin=null + arg0: GET_VAR 'val tmp_0: dynamic declared in .test' type=dynamic origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST String type=kotlin.String value="other" BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val tmp_0: dynamic [val] declared in .test' type=dynamic origin=null + then: GET_VAR 'val tmp_0: dynamic declared in .test' type=dynamic origin=null diff --git a/compiler/testData/ir/irText/js/dynamic/dynamicElvisOperator.ir.txt b/compiler/testData/ir/irText/js/dynamic/dynamicElvisOperator.ir.txt index c1455578729..6af5e2bd87b 100644 --- a/compiler/testData/ir/irText/js/dynamic/dynamicElvisOperator.ir.txt +++ b/compiler/testData/ir/irText/js/dynamic/dynamicElvisOperator.ir.txt @@ -9,9 +9,9 @@ FILE fqName: fileName:/dynamicElvisOperator.kt WHEN type=dynamic origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_0: dynamic [val] declared in .test' type=dynamic origin=null + arg0: GET_VAR 'val tmp_0: dynamic declared in .test' type=dynamic origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST String type=kotlin.String value="other" BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val tmp_0: dynamic [val] declared in .test' type=dynamic origin=null + then: GET_VAR 'val tmp_0: dynamic declared in .test' type=dynamic origin=null diff --git a/compiler/testData/ir/irText/js/dynamic/dynamicMemberAccess.ir.txt b/compiler/testData/ir/irText/js/dynamic/dynamicMemberAccess.ir.txt index af86f363c62..03085cf9040 100644 --- a/compiler/testData/ir/irText/js/dynamic/dynamicMemberAccess.ir.txt +++ b/compiler/testData/ir/irText/js/dynamic/dynamicMemberAccess.ir.txt @@ -15,10 +15,10 @@ FILE fqName: fileName:/dynamicMemberAccess.kt WHEN type=dynamic origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_0: dynamic [val] declared in .test2' type=dynamic origin=null + arg0: GET_VAR 'val tmp_0: dynamic declared in .test2' type=dynamic origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: DYN_MEMBER memberName='member' type=dynamic - GET_VAR 'val tmp_0: dynamic [val] declared in .test2' type=dynamic origin=null + GET_VAR 'val tmp_0: dynamic declared in .test2' type=dynamic origin=null diff --git a/compiler/testData/ir/irText/js/dynamic/dynamicMemberAssignment.fir.ir.txt b/compiler/testData/ir/irText/js/dynamic/dynamicMemberAssignment.fir.ir.txt index 81d5f55343d..63473165b26 100644 --- a/compiler/testData/ir/irText/js/dynamic/dynamicMemberAssignment.fir.ir.txt +++ b/compiler/testData/ir/irText/js/dynamic/dynamicMemberAssignment.fir.ir.txt @@ -16,12 +16,12 @@ FILE fqName: fileName:/dynamicMemberAssignment.kt WHEN type=kotlin.Unit? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_0: dynamic [val] declared in .testSafeMemberAssignment' type=dynamic origin=null + arg0: GET_VAR 'val tmp_0: dynamic declared in .testSafeMemberAssignment' type=dynamic origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: DYN_OP operator=EQ type=kotlin.Unit receiver: DYN_MEMBER memberName='m' type=kotlin.Unit - GET_VAR 'val tmp_0: dynamic [val] declared in .testSafeMemberAssignment' type=dynamic origin=null + GET_VAR 'val tmp_0: dynamic declared in .testSafeMemberAssignment' type=dynamic origin=null 0: CONST Int type=kotlin.Int value=1 diff --git a/compiler/testData/ir/irText/js/dynamic/dynamicMemberAssignment.ir.txt b/compiler/testData/ir/irText/js/dynamic/dynamicMemberAssignment.ir.txt index 73e3bb4474a..851f24ecb30 100644 --- a/compiler/testData/ir/irText/js/dynamic/dynamicMemberAssignment.ir.txt +++ b/compiler/testData/ir/irText/js/dynamic/dynamicMemberAssignment.ir.txt @@ -15,7 +15,7 @@ FILE fqName: fileName:/dynamicMemberAssignment.kt WHEN type=kotlin.Unit origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_0: dynamic [val] declared in .testSafeMemberAssignment' type=dynamic origin=null + arg0: GET_VAR 'val tmp_0: dynamic declared in .testSafeMemberAssignment' type=dynamic origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit CONST Null type=kotlin.Nothing? value=null @@ -23,5 +23,5 @@ FILE fqName: fileName:/dynamicMemberAssignment.kt if: CONST Boolean type=kotlin.Boolean value=true then: DYN_OP operator=EQ type=kotlin.Unit receiver: DYN_MEMBER memberName='m' type=kotlin.Unit - GET_VAR 'val tmp_0: dynamic [val] declared in .testSafeMemberAssignment' type=dynamic origin=null + GET_VAR 'val tmp_0: dynamic declared in .testSafeMemberAssignment' type=dynamic origin=null 0: CONST Int type=kotlin.Int value=1 diff --git a/compiler/testData/ir/irText/js/dynamic/dynamicMemberAugmentedAssignment.fir.ir.txt b/compiler/testData/ir/irText/js/dynamic/dynamicMemberAugmentedAssignment.fir.ir.txt index 3b807254943..09ad2fa1540 100644 --- a/compiler/testData/ir/irText/js/dynamic/dynamicMemberAugmentedAssignment.fir.ir.txt +++ b/compiler/testData/ir/irText/js/dynamic/dynamicMemberAugmentedAssignment.fir.ir.txt @@ -32,14 +32,14 @@ FILE fqName: fileName:/dynamicMemberAugmentedAssignment.kt WHEN type=kotlin.Unit? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_0: dynamic [val] declared in .testSafeAugmentedMemberAssignment' type=dynamic origin=null + arg0: GET_VAR 'val tmp_0: dynamic declared in .testSafeAugmentedMemberAssignment' type=dynamic origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: DYN_OP operator=PLUSEQ type=kotlin.Unit receiver: DYN_MEMBER memberName='m' type=dynamic - GET_VAR 'val tmp_0: dynamic [val] declared in .testSafeAugmentedMemberAssignment' type=dynamic origin=null + GET_VAR 'val tmp_0: dynamic declared in .testSafeAugmentedMemberAssignment' type=dynamic origin=null 0: CONST String type=kotlin.String value="+=" TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit BLOCK type=kotlin.Unit? origin=SAFE_CALL @@ -48,14 +48,14 @@ FILE fqName: fileName:/dynamicMemberAugmentedAssignment.kt WHEN type=kotlin.Unit? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_1: dynamic [val] declared in .testSafeAugmentedMemberAssignment' type=dynamic origin=null + arg0: GET_VAR 'val tmp_1: dynamic declared in .testSafeAugmentedMemberAssignment' type=dynamic origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: DYN_OP operator=MINUSEQ type=kotlin.Unit receiver: DYN_MEMBER memberName='m' type=dynamic - GET_VAR 'val tmp_1: dynamic [val] declared in .testSafeAugmentedMemberAssignment' type=dynamic origin=null + GET_VAR 'val tmp_1: dynamic declared in .testSafeAugmentedMemberAssignment' type=dynamic origin=null 0: CONST String type=kotlin.String value="-=" TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit BLOCK type=kotlin.Unit? origin=SAFE_CALL @@ -64,14 +64,14 @@ FILE fqName: fileName:/dynamicMemberAugmentedAssignment.kt WHEN type=kotlin.Unit? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_2: dynamic [val] declared in .testSafeAugmentedMemberAssignment' type=dynamic origin=null + arg0: GET_VAR 'val tmp_2: dynamic declared in .testSafeAugmentedMemberAssignment' type=dynamic origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: DYN_OP operator=MULEQ type=kotlin.Unit receiver: DYN_MEMBER memberName='m' type=dynamic - GET_VAR 'val tmp_2: dynamic [val] declared in .testSafeAugmentedMemberAssignment' type=dynamic origin=null + GET_VAR 'val tmp_2: dynamic declared in .testSafeAugmentedMemberAssignment' type=dynamic origin=null 0: CONST String type=kotlin.String value="*=" TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit BLOCK type=kotlin.Unit? origin=SAFE_CALL @@ -80,14 +80,14 @@ FILE fqName: fileName:/dynamicMemberAugmentedAssignment.kt WHEN type=kotlin.Unit? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_3: dynamic [val] declared in .testSafeAugmentedMemberAssignment' type=dynamic origin=null + arg0: GET_VAR 'val tmp_3: dynamic declared in .testSafeAugmentedMemberAssignment' type=dynamic origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: DYN_OP operator=DIVEQ type=kotlin.Unit receiver: DYN_MEMBER memberName='m' type=dynamic - GET_VAR 'val tmp_3: dynamic [val] declared in .testSafeAugmentedMemberAssignment' type=dynamic origin=null + GET_VAR 'val tmp_3: dynamic declared in .testSafeAugmentedMemberAssignment' type=dynamic origin=null 0: CONST String type=kotlin.String value="/=" TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit BLOCK type=kotlin.Unit? origin=SAFE_CALL @@ -96,12 +96,12 @@ FILE fqName: fileName:/dynamicMemberAugmentedAssignment.kt WHEN type=kotlin.Unit? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_4: dynamic [val] declared in .testSafeAugmentedMemberAssignment' type=dynamic origin=null + arg0: GET_VAR 'val tmp_4: dynamic declared in .testSafeAugmentedMemberAssignment' type=dynamic origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: DYN_OP operator=MODEQ type=kotlin.Unit receiver: DYN_MEMBER memberName='m' type=dynamic - GET_VAR 'val tmp_4: dynamic [val] declared in .testSafeAugmentedMemberAssignment' type=dynamic origin=null + GET_VAR 'val tmp_4: dynamic declared in .testSafeAugmentedMemberAssignment' type=dynamic origin=null 0: CONST String type=kotlin.String value="%=" diff --git a/compiler/testData/ir/irText/js/dynamic/dynamicMemberAugmentedAssignment.ir.txt b/compiler/testData/ir/irText/js/dynamic/dynamicMemberAugmentedAssignment.ir.txt index 895604dcc6d..a353b13219a 100644 --- a/compiler/testData/ir/irText/js/dynamic/dynamicMemberAugmentedAssignment.ir.txt +++ b/compiler/testData/ir/irText/js/dynamic/dynamicMemberAugmentedAssignment.ir.txt @@ -31,7 +31,7 @@ FILE fqName: fileName:/dynamicMemberAugmentedAssignment.kt WHEN type=kotlin.Unit origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_0: dynamic [val] declared in .testSafeAugmentedMemberAssignment' type=dynamic origin=null + arg0: GET_VAR 'val tmp_0: dynamic declared in .testSafeAugmentedMemberAssignment' type=dynamic origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit CONST Null type=kotlin.Nothing? value=null @@ -39,7 +39,7 @@ FILE fqName: fileName:/dynamicMemberAugmentedAssignment.kt if: CONST Boolean type=kotlin.Boolean value=true then: DYN_OP operator=PLUSEQ type=kotlin.Unit receiver: DYN_MEMBER memberName='m' type=dynamic - GET_VAR 'val tmp_0: dynamic [val] declared in .testSafeAugmentedMemberAssignment' type=dynamic origin=null + GET_VAR 'val tmp_0: dynamic declared in .testSafeAugmentedMemberAssignment' type=dynamic origin=null 0: CONST String type=kotlin.String value="+=" BLOCK type=kotlin.Unit origin=SAFE_CALL VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:dynamic [val] @@ -47,7 +47,7 @@ FILE fqName: fileName:/dynamicMemberAugmentedAssignment.kt WHEN type=kotlin.Unit origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_1: dynamic [val] declared in .testSafeAugmentedMemberAssignment' type=dynamic origin=null + arg0: GET_VAR 'val tmp_1: dynamic declared in .testSafeAugmentedMemberAssignment' type=dynamic origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit CONST Null type=kotlin.Nothing? value=null @@ -55,7 +55,7 @@ FILE fqName: fileName:/dynamicMemberAugmentedAssignment.kt if: CONST Boolean type=kotlin.Boolean value=true then: DYN_OP operator=MINUSEQ type=kotlin.Unit receiver: DYN_MEMBER memberName='m' type=dynamic - GET_VAR 'val tmp_1: dynamic [val] declared in .testSafeAugmentedMemberAssignment' type=dynamic origin=null + GET_VAR 'val tmp_1: dynamic declared in .testSafeAugmentedMemberAssignment' type=dynamic origin=null 0: CONST String type=kotlin.String value="-=" BLOCK type=kotlin.Unit origin=SAFE_CALL VAR IR_TEMPORARY_VARIABLE name:tmp_2 type:dynamic [val] @@ -63,7 +63,7 @@ FILE fqName: fileName:/dynamicMemberAugmentedAssignment.kt WHEN type=kotlin.Unit origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_2: dynamic [val] declared in .testSafeAugmentedMemberAssignment' type=dynamic origin=null + arg0: GET_VAR 'val tmp_2: dynamic declared in .testSafeAugmentedMemberAssignment' type=dynamic origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit CONST Null type=kotlin.Nothing? value=null @@ -71,7 +71,7 @@ FILE fqName: fileName:/dynamicMemberAugmentedAssignment.kt if: CONST Boolean type=kotlin.Boolean value=true then: DYN_OP operator=MULEQ type=kotlin.Unit receiver: DYN_MEMBER memberName='m' type=dynamic - GET_VAR 'val tmp_2: dynamic [val] declared in .testSafeAugmentedMemberAssignment' type=dynamic origin=null + GET_VAR 'val tmp_2: dynamic declared in .testSafeAugmentedMemberAssignment' type=dynamic origin=null 0: CONST String type=kotlin.String value="*=" BLOCK type=kotlin.Unit origin=SAFE_CALL VAR IR_TEMPORARY_VARIABLE name:tmp_3 type:dynamic [val] @@ -79,7 +79,7 @@ FILE fqName: fileName:/dynamicMemberAugmentedAssignment.kt WHEN type=kotlin.Unit origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_3: dynamic [val] declared in .testSafeAugmentedMemberAssignment' type=dynamic origin=null + arg0: GET_VAR 'val tmp_3: dynamic declared in .testSafeAugmentedMemberAssignment' type=dynamic origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit CONST Null type=kotlin.Nothing? value=null @@ -87,7 +87,7 @@ FILE fqName: fileName:/dynamicMemberAugmentedAssignment.kt if: CONST Boolean type=kotlin.Boolean value=true then: DYN_OP operator=DIVEQ type=kotlin.Unit receiver: DYN_MEMBER memberName='m' type=dynamic - GET_VAR 'val tmp_3: dynamic [val] declared in .testSafeAugmentedMemberAssignment' type=dynamic origin=null + GET_VAR 'val tmp_3: dynamic declared in .testSafeAugmentedMemberAssignment' type=dynamic origin=null 0: CONST String type=kotlin.String value="/=" BLOCK type=kotlin.Unit origin=SAFE_CALL VAR IR_TEMPORARY_VARIABLE name:tmp_4 type:dynamic [val] @@ -95,7 +95,7 @@ FILE fqName: fileName:/dynamicMemberAugmentedAssignment.kt WHEN type=kotlin.Unit origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_4: dynamic [val] declared in .testSafeAugmentedMemberAssignment' type=dynamic origin=null + arg0: GET_VAR 'val tmp_4: dynamic declared in .testSafeAugmentedMemberAssignment' type=dynamic origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit CONST Null type=kotlin.Nothing? value=null @@ -103,5 +103,5 @@ FILE fqName: fileName:/dynamicMemberAugmentedAssignment.kt if: CONST Boolean type=kotlin.Boolean value=true then: DYN_OP operator=MODEQ type=kotlin.Unit receiver: DYN_MEMBER memberName='m' type=dynamic - GET_VAR 'val tmp_4: dynamic [val] declared in .testSafeAugmentedMemberAssignment' type=dynamic origin=null + GET_VAR 'val tmp_4: dynamic declared in .testSafeAugmentedMemberAssignment' type=dynamic origin=null 0: CONST String type=kotlin.String value="%=" diff --git a/compiler/testData/ir/irText/js/dynamic/dynamicMemberIncrementDecrement.ir.txt b/compiler/testData/ir/irText/js/dynamic/dynamicMemberIncrementDecrement.ir.txt index c4ad7dd4613..806bfe22a22 100644 --- a/compiler/testData/ir/irText/js/dynamic/dynamicMemberIncrementDecrement.ir.txt +++ b/compiler/testData/ir/irText/js/dynamic/dynamicMemberIncrementDecrement.ir.txt @@ -28,14 +28,14 @@ FILE fqName: fileName:/dynamicMemberIncrementDecrement.kt WHEN type=dynamic origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_0: dynamic [val] declared in .testSafeMemberIncrementDecrement' type=dynamic origin=null + arg0: GET_VAR 'val tmp_0: dynamic declared in .testSafeMemberIncrementDecrement' type=dynamic origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: DYN_OP operator=PREFIX_INCREMENT type=dynamic receiver: DYN_MEMBER memberName='prefixIncr' type=dynamic - GET_VAR 'val tmp_0: dynamic [val] declared in .testSafeMemberIncrementDecrement' type=dynamic origin=null + GET_VAR 'val tmp_0: dynamic declared in .testSafeMemberIncrementDecrement' type=dynamic origin=null VAR name:t2 type:dynamic [val] BLOCK type=dynamic origin=SAFE_CALL VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:dynamic [val] @@ -43,14 +43,14 @@ FILE fqName: fileName:/dynamicMemberIncrementDecrement.kt WHEN type=dynamic origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_1: dynamic [val] declared in .testSafeMemberIncrementDecrement' type=dynamic origin=null + arg0: GET_VAR 'val tmp_1: dynamic declared in .testSafeMemberIncrementDecrement' type=dynamic origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: DYN_OP operator=PREFIX_DECREMENT type=dynamic receiver: DYN_MEMBER memberName='prefixDecr' type=dynamic - GET_VAR 'val tmp_1: dynamic [val] declared in .testSafeMemberIncrementDecrement' type=dynamic origin=null + GET_VAR 'val tmp_1: dynamic declared in .testSafeMemberIncrementDecrement' type=dynamic origin=null VAR name:t3 type:dynamic [val] BLOCK type=dynamic origin=SAFE_CALL VAR IR_TEMPORARY_VARIABLE name:tmp_2 type:dynamic [val] @@ -58,14 +58,14 @@ FILE fqName: fileName:/dynamicMemberIncrementDecrement.kt WHEN type=dynamic origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_2: dynamic [val] declared in .testSafeMemberIncrementDecrement' type=dynamic origin=null + arg0: GET_VAR 'val tmp_2: dynamic declared in .testSafeMemberIncrementDecrement' type=dynamic origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: DYN_OP operator=POSTFIX_INCREMENT type=dynamic receiver: DYN_MEMBER memberName='postfixIncr' type=dynamic - GET_VAR 'val tmp_2: dynamic [val] declared in .testSafeMemberIncrementDecrement' type=dynamic origin=null + GET_VAR 'val tmp_2: dynamic declared in .testSafeMemberIncrementDecrement' type=dynamic origin=null VAR name:t4 type:dynamic [val] BLOCK type=dynamic origin=SAFE_CALL VAR IR_TEMPORARY_VARIABLE name:tmp_3 type:dynamic [val] @@ -73,11 +73,11 @@ FILE fqName: fileName:/dynamicMemberIncrementDecrement.kt WHEN type=dynamic origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_3: dynamic [val] declared in .testSafeMemberIncrementDecrement' type=dynamic origin=null + arg0: GET_VAR 'val tmp_3: dynamic declared in .testSafeMemberIncrementDecrement' type=dynamic origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true then: DYN_OP operator=POSTFIX_DECREMENT type=dynamic receiver: DYN_MEMBER memberName='postfixDecr' type=dynamic - GET_VAR 'val tmp_3: dynamic [val] declared in .testSafeMemberIncrementDecrement' type=dynamic origin=null + GET_VAR 'val tmp_3: dynamic declared in .testSafeMemberIncrementDecrement' type=dynamic origin=null diff --git a/compiler/testData/ir/irText/js/dynamic/implicitCastToDynamic.fir.ir.txt b/compiler/testData/ir/irText/js/dynamic/implicitCastToDynamic.fir.ir.txt index d8a0a83b802..31b4b58fd67 100644 --- a/compiler/testData/ir/irText/js/dynamic/implicitCastToDynamic.fir.ir.txt +++ b/compiler/testData/ir/irText/js/dynamic/implicitCastToDynamic.fir.ir.txt @@ -60,11 +60,11 @@ FILE fqName: fileName:/implicitCastToDynamic.kt BLOCK_BODY VAR name:d type:dynamic [var] CALL 'public final fun (): kotlin.Int declared in ' type=kotlin.Int origin=GET_PROPERTY - SET_VAR 'var d: dynamic [var] declared in .test4' type=kotlin.Unit origin=EQ + SET_VAR 'var d: dynamic declared in .test4' type=kotlin.Unit origin=EQ GET_VAR 'a: kotlin.Any declared in .test4' type=kotlin.Any origin=null - SET_VAR 'var d: dynamic [var] declared in .test4' type=kotlin.Unit origin=EQ + SET_VAR 'var d: dynamic declared in .test4' type=kotlin.Unit origin=EQ GET_VAR 'na: kotlin.Any? declared in .test4' type=kotlin.Any? origin=null - SET_VAR 'var d: dynamic [var] declared in .test4' type=kotlin.Unit origin=EQ + SET_VAR 'var d: dynamic declared in .test4' type=kotlin.Unit origin=EQ GET_VAR 's: kotlin.String declared in .test4' type=kotlin.String origin=null FUN name:test5 visibility:public modality:FINAL <> (a:kotlin.Any, s:kotlin.String, na:kotlin.Any?) returnType:kotlin.Unit VALUE_PARAMETER name:a index:0 type:kotlin.Any diff --git a/compiler/testData/ir/irText/js/dynamic/implicitCastToDynamic.ir.txt b/compiler/testData/ir/irText/js/dynamic/implicitCastToDynamic.ir.txt index 5580ad4f811..1ec8e63e104 100644 --- a/compiler/testData/ir/irText/js/dynamic/implicitCastToDynamic.ir.txt +++ b/compiler/testData/ir/irText/js/dynamic/implicitCastToDynamic.ir.txt @@ -59,11 +59,11 @@ FILE fqName: fileName:/implicitCastToDynamic.kt BLOCK_BODY VAR name:d type:dynamic [var] CALL 'public final fun (): kotlin.Int declared in ' type=kotlin.Int origin=GET_PROPERTY - SET_VAR 'var d: dynamic [var] declared in .test4' type=kotlin.Unit origin=EQ + SET_VAR 'var d: dynamic declared in .test4' type=kotlin.Unit origin=EQ GET_VAR 'a: kotlin.Any declared in .test4' type=kotlin.Any origin=null - SET_VAR 'var d: dynamic [var] declared in .test4' type=kotlin.Unit origin=EQ + SET_VAR 'var d: dynamic declared in .test4' type=kotlin.Unit origin=EQ GET_VAR 'na: kotlin.Any? declared in .test4' type=kotlin.Any? origin=null - SET_VAR 'var d: dynamic [var] declared in .test4' type=kotlin.Unit origin=EQ + SET_VAR 'var d: dynamic declared in .test4' type=kotlin.Unit origin=EQ GET_VAR 's: kotlin.String declared in .test4' type=kotlin.String origin=null FUN name:test5 visibility:public modality:FINAL <> (a:kotlin.Any, s:kotlin.String, na:kotlin.Any?) returnType:kotlin.Unit VALUE_PARAMETER name:a index:0 type:kotlin.Any diff --git a/compiler/testData/ir/irText/js/external/kt38765.fir.ir.txt b/compiler/testData/ir/irText/js/external/kt38765.fir.ir.txt index 3f51ae16617..9b06ccda04a 100644 --- a/compiler/testData/ir/irText/js/external/kt38765.fir.ir.txt +++ b/compiler/testData/ir/irText/js/external/kt38765.fir.ir.txt @@ -3,79 +3,79 @@ FILE fqName:events fileName:/kt38765.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:events.internal CONSTRUCTOR visibility:public <> () returnType:events.internal [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:internal modality:OPEN visibility:public [external] superTypes:[kotlin.Any]' CLASS CLASS name:EventEmitterP modality:OPEN visibility:public superTypes:[events.internal] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:events.internal.EventEmitterP CONSTRUCTOR visibility:public <> () returnType:events.internal.EventEmitterP [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:EventEmitterP modality:OPEN visibility:public superTypes:[events.internal]' 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 events.internal + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in events.internal $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 events.internal + public open fun hashCode (): kotlin.Int declared in events.internal $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 events.internal + public open fun toString (): kotlin.String declared in events.internal $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:EventEmitterS modality:OPEN visibility:public superTypes:[events.internal] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:events.internal.EventEmitterS CONSTRUCTOR visibility:public <> (a:kotlin.Any) returnType:events.internal.EventEmitterS VALUE_PARAMETER name:a index:0 type:kotlin.Any BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in events.internal' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in events.internal' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:EventEmitterS modality:OPEN visibility:public superTypes:[events.internal]' 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 events.internal + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in events.internal $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 events.internal + public open fun hashCode (): kotlin.Int declared in events.internal $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 events.internal + public open fun toString (): kotlin.String declared in events.internal $this: VALUE_PARAMETER name: type:kotlin.Any CLASS OBJECT name:NestedExternalObject modality:FINAL visibility:public superTypes:[events.internal] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:events.internal.NestedExternalObject CONSTRUCTOR visibility:private <> () returnType:events.internal.NestedExternalObject [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:NestedExternalObject modality:FINAL visibility:public superTypes:[events.internal]' 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 events.internal + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in events.internal $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 events.internal + public open fun hashCode (): kotlin.Int declared in events.internal $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 events.internal + public open fun toString (): kotlin.String declared in events.internal $this: VALUE_PARAMETER name: type:kotlin.Any CLASS ENUM_CLASS name:NestedExternalEnum modality:FINAL visibility:public superTypes:[kotlin.Enum] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:events.internal.NestedExternalEnum CONSTRUCTOR visibility:private <> () returnType:events.internal.NestedExternalEnum [primary] BLOCK_BODY - ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) [primary] declared in kotlin.Enum' + ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) declared in kotlin.Enum' : events.internal.NestedExternalEnum INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_CLASS name:NestedExternalEnum modality:FINAL visibility:public superTypes:[kotlin.Enum]' ENUM_ENTRY name:A init: EXPRESSION_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor () [primary] declared in events.internal.NestedExternalEnum' + ENUM_CONSTRUCTOR_CALL 'private constructor () declared in events.internal.NestedExternalEnum' ENUM_ENTRY name:B init: EXPRESSION_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor () [primary] declared in events.internal.NestedExternalEnum' + ENUM_CONSTRUCTOR_CALL 'private constructor () declared in events.internal.NestedExternalEnum' FUN ENUM_CLASS_SPECIAL_MEMBER name:values visibility:public modality:FINAL <> () returnType:kotlin.Array SYNTHETIC_BODY kind=ENUM_VALUES FUN ENUM_CLASS_SPECIAL_MEMBER name:valueOf visibility:public modality:FINAL <> (value:kotlin.String) returnType:events.internal.NestedExternalEnum @@ -87,12 +87,12 @@ FILE fqName:events fileName:/kt38765.kt SYNTHETIC_BODY kind=ENUM_ENTRIES FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum, other:events.internal.NestedExternalEnum) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: E of kotlin.Enum): kotlin.Int [operator] declared in kotlin.Enum + public final fun compareTo (other: E of kotlin.Enum): kotlin.Int declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:events.internal.NestedExternalEnum FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Enum + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:hashCode visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] @@ -107,7 +107,7 @@ FILE fqName:events fileName:/kt38765.kt annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: @@ -115,7 +115,7 @@ FILE fqName:events fileName:/kt38765.kt $this: VALUE_PARAMETER name: type:kotlin.Enum PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: @@ -125,7 +125,7 @@ FILE fqName:events fileName:/kt38765.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:events.internal.NestedExternalInterface 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -138,7 +138,7 @@ FILE fqName:events fileName:/kt38765.kt $this: VALUE_PARAMETER name: type: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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/js/external/kt38765.ir.txt b/compiler/testData/ir/irText/js/external/kt38765.ir.txt index c446764fcd4..f075c6a4f45 100644 --- a/compiler/testData/ir/irText/js/external/kt38765.ir.txt +++ b/compiler/testData/ir/irText/js/external/kt38765.ir.txt @@ -7,16 +7,16 @@ FILE fqName:events fileName:/kt38765.kt CONSTRUCTOR visibility:public <> () returnType:events.internal.EventEmitterP [external,primary] FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean [external,fake_override,operator] overridden: - public open fun equals (other: kotlin.Any?): kotlin.Boolean [external,fake_override,operator] declared in events.internal + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in events.internal $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 [external,fake_override] overridden: - public open fun hashCode (): kotlin.Int [external,fake_override] declared in events.internal + public open fun hashCode (): kotlin.Int declared in events.internal $this: VALUE_PARAMETER name: type:kotlin.Any FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String [external,fake_override] overridden: - public open fun toString (): kotlin.String [external,fake_override] declared in events.internal + public open fun toString (): kotlin.String declared in events.internal $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:EventEmitterS modality:OPEN visibility:public [external] superTypes:[events.internal] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:events.internal.EventEmitterS @@ -24,47 +24,47 @@ FILE fqName:events fileName:/kt38765.kt VALUE_PARAMETER name:a index:0 type:kotlin.Any FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean [external,fake_override,operator] overridden: - public open fun equals (other: kotlin.Any?): kotlin.Boolean [external,fake_override,operator] declared in events.internal + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in events.internal $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 [external,fake_override] overridden: - public open fun hashCode (): kotlin.Int [external,fake_override] declared in events.internal + public open fun hashCode (): kotlin.Int declared in events.internal $this: VALUE_PARAMETER name: type:kotlin.Any FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String [external,fake_override] overridden: - public open fun toString (): kotlin.String [external,fake_override] declared in events.internal + public open fun toString (): kotlin.String declared in events.internal $this: VALUE_PARAMETER name: type:kotlin.Any CLASS OBJECT name:NestedExternalObject modality:FINAL visibility:public [external] superTypes:[events.internal] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:events.internal.NestedExternalObject CONSTRUCTOR visibility:private <> () returnType:events.internal.NestedExternalObject [external,primary] FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean [external,fake_override,operator] overridden: - public open fun equals (other: kotlin.Any?): kotlin.Boolean [external,fake_override,operator] declared in events.internal + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in events.internal $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 [external,fake_override] overridden: - public open fun hashCode (): kotlin.Int [external,fake_override] declared in events.internal + public open fun hashCode (): kotlin.Int declared in events.internal $this: VALUE_PARAMETER name: type:kotlin.Any FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String [external,fake_override] overridden: - public open fun toString (): kotlin.String [external,fake_override] declared in events.internal + public open fun toString (): kotlin.String declared in events.internal $this: VALUE_PARAMETER name: type:kotlin.Any CLASS ENUM_CLASS name:NestedExternalEnum modality:FINAL visibility:public [external] superTypes:[kotlin.Enum] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:events.internal.NestedExternalEnum CONSTRUCTOR visibility:private <> () returnType:events.internal.NestedExternalEnum [external,primary] ENUM_ENTRY name:A init: EXPRESSION_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor () [external,primary] declared in events.internal.NestedExternalEnum' + ENUM_CONSTRUCTOR_CALL 'private constructor () declared in events.internal.NestedExternalEnum' ENUM_ENTRY name:B init: EXPRESSION_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor () [external,primary] declared in events.internal.NestedExternalEnum' + ENUM_CONSTRUCTOR_CALL 'private constructor () declared in events.internal.NestedExternalEnum' PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [external,fake_override,val] annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.String [external,fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [external,fake_override,val] overridden: @@ -72,7 +72,7 @@ FILE fqName:events fileName:/kt38765.kt $this: VALUE_PARAMETER name: type:kotlin.Enum PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [external,fake_override,val] overridden: - public final ordinal: kotlin.Int [val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [external,fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [external,fake_override,val] overridden: @@ -80,12 +80,12 @@ FILE fqName:events fileName:/kt38765.kt $this: VALUE_PARAMETER name: type:kotlin.Enum FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum, other:events.internal.NestedExternalEnum) returnType:kotlin.Int [external,fake_override,operator] overridden: - public final fun compareTo (other: E of kotlin.Enum): kotlin.Int [operator] declared in kotlin.Enum + public final fun compareTo (other: E of kotlin.Enum): kotlin.Int declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:events.internal.NestedExternalEnum FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum, other:kotlin.Any?) returnType:kotlin.Boolean [external,fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Enum + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:hashCode visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [external,fake_override] @@ -109,7 +109,7 @@ FILE fqName:events fileName:/kt38765.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:events.internal.NestedExternalInterface FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean [external,fake_override,operator] overridden: - public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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 [external,fake_override] @@ -122,7 +122,7 @@ FILE fqName:events fileName:/kt38765.kt $this: VALUE_PARAMETER name: type:kotlin.Any FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean [external,fake_override,operator] overridden: - public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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 [external,fake_override] diff --git a/compiler/testData/ir/irText/js/native/nativeNativeKotlin.fir.ir.txt b/compiler/testData/ir/irText/js/native/nativeNativeKotlin.fir.ir.txt index 684b075d89c..466745202b3 100644 --- a/compiler/testData/ir/irText/js/native/nativeNativeKotlin.fir.ir.txt +++ b/compiler/testData/ir/irText/js/native/nativeNativeKotlin.fir.ir.txt @@ -3,13 +3,13 @@ FILE fqName:foo fileName:/nativeNativeKotlin.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:foo.A CONSTRUCTOR visibility:public <> () returnType:foo.A [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:A modality:OPEN visibility:public [external] superTypes:[kotlin.Any]' FUN name:foo visibility:public modality:FINAL <> ($this:foo.A) returnType:kotlin.String $this: VALUE_PARAMETER name: type:foo.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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -24,7 +24,7 @@ FILE fqName:foo fileName:/nativeNativeKotlin.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:foo.B CONSTRUCTOR visibility:public <> () returnType:foo.B [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:B modality:OPEN visibility:public [external] superTypes:[foo.A]' FUN name:bar visibility:public modality:FINAL <> ($this:foo.B) returnType:kotlin.String $this: VALUE_PARAMETER name: type:foo.B @@ -34,22 +34,22 @@ FILE fqName:foo fileName:/nativeNativeKotlin.kt $this: VALUE_PARAMETER name: type:foo.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 [fake_override,operator] declared in foo.A + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in foo.A $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 foo.A + public open fun hashCode (): kotlin.Int declared in foo.A $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 foo.A + public open fun toString (): kotlin.String declared in foo.A $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:C modality:FINAL visibility:public superTypes:[foo.B] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:foo.C CONSTRUCTOR visibility:public <> () returnType:foo.C [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in foo.B' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in foo.B' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C modality:FINAL visibility:public superTypes:[foo.B]' FUN FAKE_OVERRIDE name:bar visibility:public modality:FINAL <> ($this:foo.B) returnType:kotlin.String [fake_override] overridden: @@ -57,24 +57,24 @@ FILE fqName:foo fileName:/nativeNativeKotlin.kt $this: VALUE_PARAMETER name: type:foo.B FUN FAKE_OVERRIDE name:foo visibility:public modality:FINAL <> ($this:foo.A) returnType:kotlin.String [fake_override] overridden: - public final fun foo (): kotlin.String [fake_override] declared in foo.B + public final fun foo (): kotlin.String declared in foo.B $this: VALUE_PARAMETER name: type:foo.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 [fake_override,operator] declared in foo.B + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in foo.B $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 foo.B + public open fun hashCode (): kotlin.Int declared in foo.B $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 foo.B + public open fun toString (): kotlin.String declared in foo.B $this: VALUE_PARAMETER name: type:kotlin.Any FUN name:box visibility:public modality:FINAL <> () returnType:kotlin.String BLOCK_BODY VAR name:c type:foo.C [val] - CONSTRUCTOR_CALL 'public constructor () [primary] declared in foo.C' type=foo.C origin=null + CONSTRUCTOR_CALL 'public constructor () declared in foo.C' type=foo.C origin=null RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in foo' CONST String type=kotlin.String value="OK" diff --git a/compiler/testData/ir/irText/js/native/nativeNativeKotlin.ir.txt b/compiler/testData/ir/irText/js/native/nativeNativeKotlin.ir.txt index 019ffaf2f3a..e89cb7227f2 100644 --- a/compiler/testData/ir/irText/js/native/nativeNativeKotlin.ir.txt +++ b/compiler/testData/ir/irText/js/native/nativeNativeKotlin.ir.txt @@ -6,7 +6,7 @@ FILE fqName:foo fileName:/nativeNativeKotlin.kt $this: VALUE_PARAMETER name: type:foo.A FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean [external,fake_override,operator] overridden: - public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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 [external,fake_override] @@ -24,51 +24,51 @@ FILE fqName:foo fileName:/nativeNativeKotlin.kt $this: VALUE_PARAMETER name: type:foo.B FUN FAKE_OVERRIDE name:foo visibility:public modality:FINAL <> ($this:foo.A) returnType:kotlin.String [external,fake_override] overridden: - public final fun foo (): kotlin.String [external] declared in foo.A + public final fun foo (): kotlin.String declared in foo.A $this: VALUE_PARAMETER name: type:foo.A FUN FAKE_OVERRIDE name:equals visibility:public modality:OPEN <> ($this:kotlin.Any, other:kotlin.Any?) returnType:kotlin.Boolean [external,fake_override,operator] overridden: - public open fun equals (other: kotlin.Any?): kotlin.Boolean [external,fake_override,operator] declared in foo.A + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in foo.A $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 [external,fake_override] overridden: - public open fun hashCode (): kotlin.Int [external,fake_override] declared in foo.A + public open fun hashCode (): kotlin.Int declared in foo.A $this: VALUE_PARAMETER name: type:kotlin.Any FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Any) returnType:kotlin.String [external,fake_override] overridden: - public open fun toString (): kotlin.String [external,fake_override] declared in foo.A + public open fun toString (): kotlin.String declared in foo.A $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:C modality:FINAL visibility:public superTypes:[foo.B] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:foo.C CONSTRUCTOR visibility:public <> () returnType:foo.C [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [external,primary] declared in foo.B' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in foo.B' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C modality:FINAL visibility:public superTypes:[foo.B]' FUN FAKE_OVERRIDE name:bar visibility:public modality:FINAL <> ($this:foo.B) returnType:kotlin.String [fake_override] overridden: - public final fun bar (): kotlin.String [external] declared in foo.B + public final fun bar (): kotlin.String declared in foo.B $this: VALUE_PARAMETER name: type:foo.B FUN FAKE_OVERRIDE name:foo visibility:public modality:FINAL <> ($this:foo.A) returnType:kotlin.String [fake_override] overridden: - public final fun foo (): kotlin.String [external,fake_override] declared in foo.B + public final fun foo (): kotlin.String declared in foo.B $this: VALUE_PARAMETER name: type:foo.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 [external,fake_override,operator] declared in foo.B + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in foo.B $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 [external,fake_override] declared in foo.B + public open fun hashCode (): kotlin.Int declared in foo.B $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 [external,fake_override] declared in foo.B + public open fun toString (): kotlin.String declared in foo.B $this: VALUE_PARAMETER name: type:kotlin.Any FUN name:box visibility:public modality:FINAL <> () returnType:kotlin.String BLOCK_BODY VAR name:c type:foo.C [val] - CONSTRUCTOR_CALL 'public constructor () [primary] declared in foo.C' type=foo.C origin=null + CONSTRUCTOR_CALL 'public constructor () declared in foo.C' type=foo.C origin=null RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in foo' CONST String type=kotlin.String value="OK" diff --git a/compiler/testData/ir/irText/lambdas/anonymousFunction.ir.txt b/compiler/testData/ir/irText/lambdas/anonymousFunction.ir.txt index 1526811bb01..abb8c21b05d 100644 --- a/compiler/testData/ir/irText/lambdas/anonymousFunction.ir.txt +++ b/compiler/testData/ir/irText/lambdas/anonymousFunction.ir.txt @@ -5,7 +5,7 @@ FILE fqName: fileName:/anonymousFunction.kt FUN_EXPR type=kotlin.Function0 origin=ANONYMOUS_FUNCTION FUN LOCAL_FUNCTION name: visibility:local modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY - CALL 'public final fun println (): kotlin.Unit [inline] declared in kotlin.io' type=kotlin.Unit origin=null + CALL 'public final fun println (): kotlin.Unit declared in kotlin.io' type=kotlin.Unit origin=null FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:kotlin.Function0 correspondingProperty: PROPERTY name:anonymous visibility:public modality:FINAL [val] BLOCK_BODY diff --git a/compiler/testData/ir/irText/lambdas/anonymousFunction.kt b/compiler/testData/ir/irText/lambdas/anonymousFunction.kt index 4ff9e9ae4ea..99b78e8cd53 100644 --- a/compiler/testData/ir/irText/lambdas/anonymousFunction.kt +++ b/compiler/testData/ir/irText/lambdas/anonymousFunction.kt @@ -1,8 +1,6 @@ // FIR_IDENTICAL // WITH_STDLIB // DUMP_LOCAL_DECLARATION_SIGNATURES -// IGNORE_BACKEND: JS_IR -// IGNORE_BACKEND: JS_IR_ES6 // MUTE_SIGNATURE_COMPARISON_K2: ANY // ^ KT-57428 diff --git a/compiler/testData/ir/irText/lambdas/anonymousFunction.sig.kt.txt b/compiler/testData/ir/irText/lambdas/anonymousFunction.sig.kt.txt index c918abee2b9..b9d3a8220e8 100644 --- a/compiler/testData/ir/irText/lambdas/anonymousFunction.sig.kt.txt +++ b/compiler/testData/ir/irText/lambdas/anonymousFunction.sig.kt.txt @@ -7,12 +7,15 @@ val anonymous: Function0 // Mangled name (compatible mode: false): {}anonymous##static(){} // Mangled name (compatible mode: true): anonymous##static(){} // CHECK JS_IR NATIVE: - // Mangled name: #(){} - // Public signature: /anonymous.|-7938030596525369571[0] + // Mangled name (compatible mode: false): {}anonymous##static(){} + // Mangled name (compatible mode: true): anonymous##static(){} local fun (): Unit - // CHECK: + // CHECK JVM_IR: // Mangled name: #(){}kotlin.Function0 // Public signature: /anonymous.|4047260013555274752[0] + // CHECK JS_IR NATIVE: + // Mangled name: #(){} + // Public signature: /anonymous.|-7938030596525369571[0] get diff --git a/compiler/testData/ir/irText/lambdas/destructuringInLambda.fir.ir.txt b/compiler/testData/ir/irText/lambdas/destructuringInLambda.fir.ir.txt index 868faa79784..1ccb6b2cd3c 100644 --- a/compiler/testData/ir/irText/lambdas/destructuringInLambda.fir.ir.txt +++ b/compiler/testData/ir/irText/lambdas/destructuringInLambda.fir.ir.txt @@ -5,7 +5,7 @@ FILE fqName: fileName:/destructuringInLambda.kt VALUE_PARAMETER name:x index:0 type:kotlin.Int VALUE_PARAMETER name:y index:1 type:kotlin.Int BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:A modality:FINAL visibility:public [data] superTypes:[kotlin.Any]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private [final] @@ -32,13 +32,13 @@ FILE fqName: fileName:/destructuringInLambda.kt FUN GENERATED_DATA_CLASS_MEMBER name:component1 visibility:public modality:FINAL <> ($this:.A) returnType:kotlin.Int [operator] $this: VALUE_PARAMETER name: type:.A BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Int [operator] declared in .A' + RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Int declared in .A' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null receiver: GET_VAR ': .A declared in .A.component1' type=.A origin=null FUN GENERATED_DATA_CLASS_MEMBER name:component2 visibility:public modality:FINAL <> ($this:.A) returnType:kotlin.Int [operator] $this: VALUE_PARAMETER name: type:.A BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component2 (): kotlin.Int [operator] declared in .A' + RETURN type=kotlin.Nothing from='public final fun component2 (): kotlin.Int declared in .A' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:y type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null receiver: GET_VAR ': .A declared in .A.component2' type=.A origin=null FUN GENERATED_DATA_CLASS_MEMBER name:copy visibility:public modality:FINAL <> ($this:.A, x:kotlin.Int, y:kotlin.Int) returnType:.A @@ -53,12 +53,12 @@ FILE fqName: fileName:/destructuringInLambda.kt receiver: GET_VAR ': .A declared in .A.copy' type=.A origin=null BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun copy (x: kotlin.Int, y: kotlin.Int): .A declared in .A' - CONSTRUCTOR_CALL 'public constructor (x: kotlin.Int, y: kotlin.Int) [primary] declared in .A' type=.A origin=null + CONSTRUCTOR_CALL 'public constructor (x: kotlin.Int, y: kotlin.Int) declared in .A' type=.A origin=null x: GET_VAR 'x: kotlin.Int declared in .A.copy' type=kotlin.Int origin=null y: GET_VAR 'y: kotlin.Int declared in .A.copy' type=kotlin.Int origin=null FUN GENERATED_DATA_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:.A, other:kotlin.Any?) returnType:kotlin.Boolean [operator] overridden: - public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any $this: VALUE_PARAMETER name: type:.A VALUE_PARAMETER name:other index:0 type:kotlin.Any? BLOCK_BODY @@ -67,38 +67,38 @@ FILE fqName: fileName:/destructuringInLambda.kt 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 ': .A declared in .A.equals' type=.A origin=null arg1: GET_VAR 'other: kotlin.Any? declared in .A.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .A' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .A' CONST Boolean type=kotlin.Boolean value=true WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=.A GET_VAR 'other: kotlin.Any? declared in .A.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .A' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .A' CONST Boolean type=kotlin.Boolean value=false VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:.A [val] TYPE_OP type=.A origin=CAST typeOperand=.A GET_VAR 'other: kotlin.Any? declared in .A.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 + if: CALL 'public final fun not (): kotlin.Boolean 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:x type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null receiver: GET_VAR ': .A declared in .A.equals' type=.A origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null - receiver: GET_VAR 'val tmp_0: .A [val] declared in .A.equals' type=.A origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .A' + receiver: GET_VAR 'val tmp_0: .A declared in .A.equals' type=.A origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .A' CONST Boolean type=kotlin.Boolean value=false 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 + if: CALL 'public final fun not (): kotlin.Boolean 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:y type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null receiver: GET_VAR ': .A declared in .A.equals' type=.A origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:y type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null - receiver: GET_VAR 'val tmp_0: .A [val] declared in .A.equals' type=.A origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .A' + receiver: GET_VAR 'val tmp_0: .A declared in .A.equals' type=.A origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .A' CONST Boolean type=kotlin.Boolean value=false - RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .A' + RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .A' CONST Boolean type=kotlin.Boolean value=true FUN GENERATED_DATA_CLASS_MEMBER name:hashCode visibility:public modality:OPEN <> ($this:.A) returnType:kotlin.Int overridden: @@ -106,19 +106,19 @@ FILE fqName: fileName:/destructuringInLambda.kt $this: VALUE_PARAMETER name: type:.A BLOCK_BODY VAR name:result type:kotlin.Int [var] - CALL 'public open fun hashCode (): kotlin.Int [fake_override] declared in kotlin.Int' type=kotlin.Int origin=null + CALL 'public open fun hashCode (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null receiver: GET_VAR ': .A declared in .A.hashCode' type=.A origin=null - SET_VAR 'var result: kotlin.Int [var] declared in .A.hashCode' type=kotlin.Unit origin=EQ - CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: CALL 'public final fun times (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'var result: kotlin.Int [var] declared in .A.hashCode' type=kotlin.Int origin=null + SET_VAR 'var result: kotlin.Int declared in .A.hashCode' type=kotlin.Unit origin=EQ + CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: CALL 'public final fun times (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'var result: kotlin.Int declared in .A.hashCode' type=kotlin.Int origin=null other: CONST Int type=kotlin.Int value=31 - other: CALL 'public open fun hashCode (): kotlin.Int [fake_override] declared in kotlin.Int' type=kotlin.Int origin=null + other: CALL 'public open fun hashCode (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:y type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null receiver: GET_VAR ': .A declared in .A.hashCode' type=.A origin=null RETURN type=kotlin.Nothing from='public open fun hashCode (): kotlin.Int declared in .A' - GET_VAR 'var result: kotlin.Int [var] declared in .A.hashCode' type=kotlin.Int origin=null + GET_VAR 'var result: kotlin.Int declared in .A.hashCode' type=kotlin.Int origin=null FUN GENERATED_DATA_CLASS_MEMBER name:toString visibility:public modality:OPEN <> ($this:.A) returnType:kotlin.String overridden: public open fun toString (): kotlin.String declared in kotlin.Any @@ -141,12 +141,12 @@ FILE fqName: fileName:/destructuringInLambda.kt VALUE_PARAMETER DESTRUCTURED_OBJECT_PARAMETER name: index:0 type:.A BLOCK_BODY VAR name:y type:kotlin.Int [val] - CALL 'public final fun component2 (): kotlin.Int [operator] declared in .A' type=kotlin.Int origin=COMPONENT_N(index=2) + CALL 'public final fun component2 (): kotlin.Int declared in .A' type=kotlin.Int origin=COMPONENT_N(index=2) $this: GET_VAR ': .A declared in .fn.' type=.A origin=null RETURN type=kotlin.Nothing from='local final fun (: .A): kotlin.Int declared in .fn' - CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUS + CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUS $this: CONST Int type=kotlin.Int value=42 - other: GET_VAR 'val y: kotlin.Int [val] declared in .fn.' type=kotlin.Int origin=null + other: GET_VAR 'val y: kotlin.Int declared in .fn.' type=kotlin.Int origin=null FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:kotlin.Function1<.A, kotlin.Int> correspondingProperty: PROPERTY name:fn visibility:public modality:FINAL [var] BLOCK_BODY diff --git a/compiler/testData/ir/irText/lambdas/destructuringInLambda.ir.txt b/compiler/testData/ir/irText/lambdas/destructuringInLambda.ir.txt index e950276c6f4..4bf7e97c8f0 100644 --- a/compiler/testData/ir/irText/lambdas/destructuringInLambda.ir.txt +++ b/compiler/testData/ir/irText/lambdas/destructuringInLambda.ir.txt @@ -5,7 +5,7 @@ FILE fqName: fileName:/destructuringInLambda.kt VALUE_PARAMETER name:x index:0 type:kotlin.Int VALUE_PARAMETER name:y index:1 type:kotlin.Int BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:A modality:FINAL visibility:public [data] superTypes:[kotlin.Any]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private [final] @@ -32,13 +32,13 @@ FILE fqName: fileName:/destructuringInLambda.kt FUN GENERATED_DATA_CLASS_MEMBER name:component1 visibility:public modality:FINAL <> ($this:.A) returnType:kotlin.Int [operator] $this: VALUE_PARAMETER name: type:.A BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Int [operator] declared in .A' + RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Int declared in .A' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null receiver: GET_VAR ': .A declared in .A.component1' type=.A origin=null FUN GENERATED_DATA_CLASS_MEMBER name:component2 visibility:public modality:FINAL <> ($this:.A) returnType:kotlin.Int [operator] $this: VALUE_PARAMETER name: type:.A BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component2 (): kotlin.Int [operator] declared in .A' + RETURN type=kotlin.Nothing from='public final fun component2 (): kotlin.Int declared in .A' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:y type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null receiver: GET_VAR ': .A declared in .A.component2' type=.A origin=null FUN GENERATED_DATA_CLASS_MEMBER name:copy visibility:public modality:FINAL <> ($this:.A, x:kotlin.Int, y:kotlin.Int) returnType:.A @@ -53,7 +53,7 @@ FILE fqName: fileName:/destructuringInLambda.kt receiver: GET_VAR ': .A declared in .A.copy' type=.A origin=null BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun copy (x: kotlin.Int, y: kotlin.Int): .A declared in .A' - CONSTRUCTOR_CALL 'public constructor (x: kotlin.Int, y: kotlin.Int) [primary] declared in .A' type=.A origin=null + CONSTRUCTOR_CALL 'public constructor (x: kotlin.Int, y: kotlin.Int) declared in .A' type=.A origin=null x: GET_VAR 'x: kotlin.Int declared in .A.copy' type=kotlin.Int origin=null y: GET_VAR 'y: kotlin.Int declared in .A.copy' type=kotlin.Int origin=null FUN GENERATED_DATA_CLASS_MEMBER name:toString visibility:public modality:OPEN <> ($this:.A) returnType:kotlin.String @@ -78,22 +78,22 @@ FILE fqName: fileName:/destructuringInLambda.kt $this: VALUE_PARAMETER name: type:.A BLOCK_BODY VAR name:result type:kotlin.Int [var] - CALL 'public open fun hashCode (): kotlin.Int [fake_override] declared in kotlin.Int' type=kotlin.Int origin=null + CALL 'public open fun hashCode (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null receiver: GET_VAR ': .A declared in .A.hashCode' type=.A origin=null - SET_VAR 'var result: kotlin.Int [var] declared in .A.hashCode' type=kotlin.Unit origin=EQ - CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: CALL 'public final fun times (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'var result: kotlin.Int [var] declared in .A.hashCode' type=kotlin.Int origin=null + SET_VAR 'var result: kotlin.Int declared in .A.hashCode' type=kotlin.Unit origin=EQ + CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: CALL 'public final fun times (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'var result: kotlin.Int declared in .A.hashCode' type=kotlin.Int origin=null other: CONST Int type=kotlin.Int value=31 - other: CALL 'public open fun hashCode (): kotlin.Int [fake_override] declared in kotlin.Int' type=kotlin.Int origin=null + other: CALL 'public open fun hashCode (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:y type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null receiver: GET_VAR ': .A declared in .A.hashCode' type=.A origin=null RETURN type=kotlin.Nothing from='public open fun hashCode (): kotlin.Int declared in .A' - GET_VAR 'var result: kotlin.Int [var] declared in .A.hashCode' type=kotlin.Int origin=null + GET_VAR 'var result: kotlin.Int declared in .A.hashCode' type=kotlin.Int origin=null FUN GENERATED_DATA_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:.A, other:kotlin.Any?) returnType:kotlin.Boolean [operator] overridden: - public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any $this: VALUE_PARAMETER name: type:.A VALUE_PARAMETER name:other index:0 type:kotlin.Any? BLOCK_BODY @@ -102,38 +102,38 @@ FILE fqName: fileName:/destructuringInLambda.kt 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 ': .A declared in .A.equals' type=.A origin=null arg1: GET_VAR 'other: kotlin.Any? declared in .A.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .A' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .A' CONST Boolean type=kotlin.Boolean value=true WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=.A GET_VAR 'other: kotlin.Any? declared in .A.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .A' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .A' CONST Boolean type=kotlin.Boolean value=false VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:.A [val] TYPE_OP type=.A origin=CAST typeOperand=.A GET_VAR 'other: kotlin.Any? declared in .A.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 + if: CALL 'public final fun not (): kotlin.Boolean 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:x type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null receiver: GET_VAR ': .A declared in .A.equals' type=.A origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null - receiver: GET_VAR 'val tmp_0: .A [val] declared in .A.equals' type=.A origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .A' + receiver: GET_VAR 'val tmp_0: .A declared in .A.equals' type=.A origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .A' CONST Boolean type=kotlin.Boolean value=false 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 + if: CALL 'public final fun not (): kotlin.Boolean 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:y type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null receiver: GET_VAR ': .A declared in .A.equals' type=.A origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:y type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null - receiver: GET_VAR 'val tmp_0: .A [val] declared in .A.equals' type=.A origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .A' + receiver: GET_VAR 'val tmp_0: .A declared in .A.equals' type=.A origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .A' CONST Boolean type=kotlin.Boolean value=false - RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .A' + RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .A' CONST Boolean type=kotlin.Boolean value=true PROPERTY name:fn visibility:public modality:FINAL [var] FIELD PROPERTY_BACKING_FIELD name:fn type:kotlin.Function1<.A, kotlin.Int> visibility:private [static] @@ -143,12 +143,12 @@ FILE fqName: fileName:/destructuringInLambda.kt VALUE_PARAMETER DESTRUCTURED_OBJECT_PARAMETER name: index:0 type:.A BLOCK_BODY VAR name:y type:kotlin.Int [val] - CALL 'public final fun component2 (): kotlin.Int [operator] declared in .A' type=kotlin.Int origin=COMPONENT_N(index=2) + CALL 'public final fun component2 (): kotlin.Int declared in .A' type=kotlin.Int origin=COMPONENT_N(index=2) $this: GET_VAR ': .A declared in .fn.' type=.A origin=DESTRUCTURING_DECLARATION RETURN type=kotlin.Nothing from='local final fun (: .A): kotlin.Int declared in .fn' - CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUS + CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUS $this: CONST Int type=kotlin.Int value=42 - other: GET_VAR 'val y: kotlin.Int [val] declared in .fn.' type=kotlin.Int origin=null + other: GET_VAR 'val y: kotlin.Int declared in .fn.' type=kotlin.Int origin=null FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:kotlin.Function1<.A, kotlin.Int> correspondingProperty: PROPERTY name:fn visibility:public modality:FINAL [var] BLOCK_BODY diff --git a/compiler/testData/ir/irText/lambdas/destructuringInLambda.kt b/compiler/testData/ir/irText/lambdas/destructuringInLambda.kt index 3569e1148e6..f2356221415 100644 --- a/compiler/testData/ir/irText/lambdas/destructuringInLambda.kt +++ b/compiler/testData/ir/irText/lambdas/destructuringInLambda.kt @@ -1,6 +1,3 @@ -// IGNORE_BACKEND: JS_IR -// IGNORE_BACKEND: JS_IR_ES6 - data class A(val x: Int, val y: Int) var fn: (A) -> Int = { (_, y) -> 42 + y } diff --git a/compiler/testData/ir/irText/lambdas/extensionLambda.ir.txt b/compiler/testData/ir/irText/lambdas/extensionLambda.ir.txt index 5edcadc10ed..6084580d14e 100644 --- a/compiler/testData/ir/irText/lambdas/extensionLambda.ir.txt +++ b/compiler/testData/ir/irText/lambdas/extensionLambda.ir.txt @@ -2,7 +2,7 @@ FILE fqName: fileName:/extensionLambda.kt FUN name:test1 visibility:public modality:FINAL <> () returnType:kotlin.Int BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test1 (): kotlin.Int declared in ' - CALL 'public final fun run (block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.run [inline] declared in kotlin.StandardKt' type=kotlin.Int origin=null + CALL 'public final fun run (block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.run declared in kotlin.StandardKt' type=kotlin.Int origin=null : kotlin.String : kotlin.Int $receiver: CONST String type=kotlin.String value="42" diff --git a/compiler/testData/ir/irText/lambdas/lambdaReturningUnit.fir.ir.txt b/compiler/testData/ir/irText/lambdas/lambdaReturningUnit.fir.ir.txt index de94d045322..1f98c62cd38 100644 --- a/compiler/testData/ir/irText/lambdas/lambdaReturningUnit.fir.ir.txt +++ b/compiler/testData/ir/irText/lambdas/lambdaReturningUnit.fir.ir.txt @@ -3,11 +3,11 @@ FILE fqName: fileName:/lambdaReturningUnit.kt VALUE_PARAMETER name:block index:0 type:kotlin.Function0 BLOCK_BODY TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit - CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=kotlin.Any? origin=INVOKE + CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=kotlin.Any? origin=INVOKE $this: GET_VAR 'block: kotlin.Function0 declared in .flaf' type=kotlin.Function0 origin=VARIABLE_AS_FUNCTION FUN name:box visibility:public modality:FINAL <> () returnType:kotlin.Unit [suspend] BLOCK_BODY - CALL 'public final fun flaf (block: kotlin.Function0): kotlin.Unit [inline] declared in ' type=kotlin.Unit origin=null + CALL 'public final fun flaf (block: kotlin.Function0): kotlin.Unit declared in ' type=kotlin.Unit origin=null block: FUN_EXPR type=kotlin.Function0 origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:kotlin.Any? BLOCK_BODY diff --git a/compiler/testData/ir/irText/lambdas/lambdaReturningUnit.ir.txt b/compiler/testData/ir/irText/lambdas/lambdaReturningUnit.ir.txt index f5440d0b590..bb826b048ff 100644 --- a/compiler/testData/ir/irText/lambdas/lambdaReturningUnit.ir.txt +++ b/compiler/testData/ir/irText/lambdas/lambdaReturningUnit.ir.txt @@ -3,11 +3,11 @@ FILE fqName: fileName:/lambdaReturningUnit.kt VALUE_PARAMETER name:block index:0 type:kotlin.Function0 BLOCK_BODY TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit - CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=kotlin.Any? origin=INVOKE + CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=kotlin.Any? origin=INVOKE $this: GET_VAR 'block: kotlin.Function0 declared in .flaf' type=kotlin.Function0 origin=VARIABLE_AS_FUNCTION FUN name:box visibility:public modality:FINAL <> () returnType:kotlin.Unit [suspend] BLOCK_BODY - CALL 'public final fun flaf (block: kotlin.Function0): kotlin.Unit [inline] declared in ' type=kotlin.Unit origin=null + CALL 'public final fun flaf (block: kotlin.Function0): kotlin.Unit declared in ' type=kotlin.Unit origin=null block: FUN_EXPR type=kotlin.Function0 origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY diff --git a/compiler/testData/ir/irText/lambdas/localFunction.fir.ir.txt b/compiler/testData/ir/irText/lambdas/localFunction.fir.ir.txt index 9d93d67ddce..e793eb4d56a 100644 --- a/compiler/testData/ir/irText/lambdas/localFunction.fir.ir.txt +++ b/compiler/testData/ir/irText/lambdas/localFunction.fir.ir.txt @@ -8,9 +8,9 @@ FILE fqName: fileName:/localFunction.kt TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit BLOCK type=kotlin.Int origin=POSTFIX_INCR VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:kotlin.Int [val] - GET_VAR 'var x: kotlin.Int [var] declared in .outer' type=kotlin.Int origin=null - SET_VAR 'var x: kotlin.Int [var] declared in .outer' type=kotlin.Unit origin=POSTFIX_INCR - CALL 'public final fun inc (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp_0: kotlin.Int [val] declared in .outer.local' type=kotlin.Int origin=null - GET_VAR 'val tmp_0: kotlin.Int [val] declared in .outer.local' type=kotlin.Int origin=null + GET_VAR 'var x: kotlin.Int declared in .outer' type=kotlin.Int origin=null + SET_VAR 'var x: kotlin.Int declared in .outer' type=kotlin.Unit origin=POSTFIX_INCR + CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_0: kotlin.Int declared in .outer.local' type=kotlin.Int origin=null + GET_VAR 'val tmp_0: kotlin.Int declared in .outer.local' type=kotlin.Int origin=null CALL 'local final fun local (): kotlin.Unit declared in .outer' type=kotlin.Unit origin=null diff --git a/compiler/testData/ir/irText/lambdas/localFunction.ir.txt b/compiler/testData/ir/irText/lambdas/localFunction.ir.txt index f9aad287a56..4e7828017b0 100644 --- a/compiler/testData/ir/irText/lambdas/localFunction.ir.txt +++ b/compiler/testData/ir/irText/lambdas/localFunction.ir.txt @@ -8,9 +8,9 @@ FILE fqName: fileName:/localFunction.kt TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit BLOCK type=kotlin.Int origin=POSTFIX_INCR VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:kotlin.Int [val] - GET_VAR 'var x: kotlin.Int [var] declared in .outer' type=kotlin.Int origin=POSTFIX_INCR - SET_VAR 'var x: kotlin.Int [var] declared in .outer' type=kotlin.Unit origin=POSTFIX_INCR - CALL 'public final fun inc (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_INCR - $this: GET_VAR 'val tmp_0: kotlin.Int [val] declared in .outer.local' type=kotlin.Int origin=null - GET_VAR 'val tmp_0: kotlin.Int [val] declared in .outer.local' type=kotlin.Int origin=null + GET_VAR 'var x: kotlin.Int declared in .outer' type=kotlin.Int origin=POSTFIX_INCR + SET_VAR 'var x: kotlin.Int declared in .outer' type=kotlin.Unit origin=POSTFIX_INCR + CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_INCR + $this: GET_VAR 'val tmp_0: kotlin.Int declared in .outer.local' type=kotlin.Int origin=null + GET_VAR 'val tmp_0: kotlin.Int declared in .outer.local' type=kotlin.Int origin=null CALL 'local final fun local (): kotlin.Unit declared in .outer' type=kotlin.Unit origin=null diff --git a/compiler/testData/ir/irText/lambdas/multipleImplicitReceivers.fir.ir.txt b/compiler/testData/ir/irText/lambdas/multipleImplicitReceivers.fir.ir.txt index 039b9225eba..37556e5ca72 100644 --- a/compiler/testData/ir/irText/lambdas/multipleImplicitReceivers.fir.ir.txt +++ b/compiler/testData/ir/irText/lambdas/multipleImplicitReceivers.fir.ir.txt @@ -3,11 +3,11 @@ FILE fqName: fileName:/multipleImplicitReceivers.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.A CONSTRUCTOR visibility:private <> () returnType:.A [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:A modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -22,11 +22,11 @@ FILE fqName: fileName:/multipleImplicitReceivers.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.B CONSTRUCTOR visibility:private <> () returnType:.B [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:B modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -49,7 +49,7 @@ FILE fqName: fileName:/multipleImplicitReceivers.kt GET_OBJECT 'CLASS OBJECT name:B modality:FINAL visibility:public superTypes:[kotlin.Any]' type=.B 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -66,11 +66,11 @@ FILE fqName: fileName:/multipleImplicitReceivers.kt $this: VALUE_PARAMETER name: type:.IInvoke $receiver: VALUE_PARAMETER name: type:.B BLOCK_BODY - RETURN type=kotlin.Nothing from='public open fun invoke (): kotlin.Int [operator] declared in .IInvoke' + RETURN type=kotlin.Nothing from='public open fun invoke (): kotlin.Int declared in .IInvoke' CONST Int type=kotlin.Int value=42 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -86,7 +86,7 @@ FILE fqName: fileName:/multipleImplicitReceivers.kt VALUE_PARAMETER name:invokeImpl index:1 type:.IInvoke BLOCK_BODY TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with [inline] declared in kotlin.StandardKt' type=kotlin.Int origin=null + CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=kotlin.Int origin=null : .A : kotlin.Int receiver: GET_OBJECT 'CLASS OBJECT name:A modality:FINAL visibility:public superTypes:[kotlin.Any]' type=.A @@ -95,7 +95,7 @@ FILE fqName: fileName:/multipleImplicitReceivers.kt $receiver: VALUE_PARAMETER name:$this$with type:.A BLOCK_BODY RETURN type=kotlin.Nothing from='local final fun (): kotlin.Int declared in .test' - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with [inline] declared in kotlin.StandardKt' type=kotlin.Int origin=null + CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=kotlin.Int origin=null : .IFoo : kotlin.Int receiver: GET_VAR 'fooImpl: .IFoo declared in .test' type=.IFoo origin=null @@ -104,7 +104,7 @@ FILE fqName: fileName:/multipleImplicitReceivers.kt $receiver: VALUE_PARAMETER name:$this$with type:.IFoo BLOCK_BODY RETURN type=kotlin.Nothing from='local final fun (): kotlin.Int declared in .test.' - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with [inline] declared in kotlin.StandardKt' type=kotlin.Int origin=null + CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=kotlin.Int origin=null : .IInvoke : kotlin.Int receiver: GET_VAR 'invokeImpl: .IInvoke declared in .test' type=.IInvoke origin=null @@ -113,7 +113,7 @@ FILE fqName: fileName:/multipleImplicitReceivers.kt $receiver: VALUE_PARAMETER name:$this$with type:.IInvoke BLOCK_BODY RETURN type=kotlin.Nothing from='local final fun (): kotlin.Int declared in .test..' - CALL 'public open fun invoke (): kotlin.Int [operator] declared in .IInvoke' type=kotlin.Int origin=null + CALL 'public open fun invoke (): kotlin.Int declared in .IInvoke' type=kotlin.Int origin=null $this: GET_VAR '$this$with: .IInvoke declared in .test...' type=.IInvoke origin=null $receiver: CALL 'public open fun (): .B declared in .IFoo' type=.B origin=GET_PROPERTY $this: GET_VAR '$this$with: .IFoo declared in .test..' type=.IFoo origin=null diff --git a/compiler/testData/ir/irText/lambdas/multipleImplicitReceivers.ir.txt b/compiler/testData/ir/irText/lambdas/multipleImplicitReceivers.ir.txt index 7eaf96d43f5..ef002bb400e 100644 --- a/compiler/testData/ir/irText/lambdas/multipleImplicitReceivers.ir.txt +++ b/compiler/testData/ir/irText/lambdas/multipleImplicitReceivers.ir.txt @@ -3,11 +3,11 @@ FILE fqName: fileName:/multipleImplicitReceivers.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.A CONSTRUCTOR visibility:private <> () returnType:.A [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:A modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -22,11 +22,11 @@ FILE fqName: fileName:/multipleImplicitReceivers.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.B CONSTRUCTOR visibility:private <> () returnType:.B [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:B modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -49,7 +49,7 @@ FILE fqName: fileName:/multipleImplicitReceivers.kt GET_OBJECT 'CLASS OBJECT name:B modality:FINAL visibility:public superTypes:[kotlin.Any]' type=.B 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -66,11 +66,11 @@ FILE fqName: fileName:/multipleImplicitReceivers.kt $this: VALUE_PARAMETER name: type:.IInvoke $receiver: VALUE_PARAMETER name: type:.B BLOCK_BODY - RETURN type=kotlin.Nothing from='public open fun invoke (): kotlin.Int [operator] declared in .IInvoke' + RETURN type=kotlin.Nothing from='public open fun invoke (): kotlin.Int declared in .IInvoke' CONST Int type=kotlin.Int value=42 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -86,7 +86,7 @@ FILE fqName: fileName:/multipleImplicitReceivers.kt VALUE_PARAMETER name:invokeImpl index:1 type:.IInvoke BLOCK_BODY TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with [inline] declared in kotlin.StandardKt' type=kotlin.Int origin=null + CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=kotlin.Int origin=null : .A : kotlin.Int receiver: GET_OBJECT 'CLASS OBJECT name:A modality:FINAL visibility:public superTypes:[kotlin.Any]' type=.A @@ -95,7 +95,7 @@ FILE fqName: fileName:/multipleImplicitReceivers.kt $receiver: VALUE_PARAMETER name:$this$with type:.A BLOCK_BODY RETURN type=kotlin.Nothing from='local final fun (): kotlin.Int declared in .test' - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with [inline] declared in kotlin.StandardKt' type=kotlin.Int origin=null + CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=kotlin.Int origin=null : .IFoo : kotlin.Int receiver: GET_VAR 'fooImpl: .IFoo declared in .test' type=.IFoo origin=null @@ -104,7 +104,7 @@ FILE fqName: fileName:/multipleImplicitReceivers.kt $receiver: VALUE_PARAMETER name:$this$with type:.IFoo BLOCK_BODY RETURN type=kotlin.Nothing from='local final fun (): kotlin.Int declared in .test.' - CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with [inline] declared in kotlin.StandardKt' type=kotlin.Int origin=null + CALL 'public final fun with (receiver: T of kotlin.StandardKt.with, block: @[ExtensionFunctionType] kotlin.Function1): R of kotlin.StandardKt.with declared in kotlin.StandardKt' type=kotlin.Int origin=null : .IInvoke : kotlin.Int receiver: GET_VAR 'invokeImpl: .IInvoke declared in .test' type=.IInvoke origin=null @@ -113,7 +113,7 @@ FILE fqName: fileName:/multipleImplicitReceivers.kt $receiver: VALUE_PARAMETER name:$this$with type:.IInvoke BLOCK_BODY RETURN type=kotlin.Nothing from='local final fun (): kotlin.Int declared in .test..' - CALL 'public open fun invoke (): kotlin.Int [operator] declared in .IInvoke' type=kotlin.Int origin=INVOKE + CALL 'public open fun invoke (): kotlin.Int declared in .IInvoke' type=kotlin.Int origin=INVOKE $this: GET_VAR '$this$with: .IInvoke declared in .test...' type=.IInvoke origin=null $receiver: CALL 'public open fun (): .B declared in .IFoo' type=.B origin=GET_PROPERTY $this: GET_VAR '$this$with: .IFoo declared in .test..' type=.IFoo origin=null diff --git a/compiler/testData/ir/irText/lambdas/nonLocalReturn.ir.txt b/compiler/testData/ir/irText/lambdas/nonLocalReturn.ir.txt index db16c14c9e1..3cbe2016eb2 100644 --- a/compiler/testData/ir/irText/lambdas/nonLocalReturn.ir.txt +++ b/compiler/testData/ir/irText/lambdas/nonLocalReturn.ir.txt @@ -1,7 +1,7 @@ FILE fqName: fileName:/nonLocalReturn.kt FUN name:test0 visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY - CALL 'public final fun run (block: kotlin.Function0): R of kotlin.StandardKt.run [inline] declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + CALL 'public final fun run (block: kotlin.Function0): R of kotlin.StandardKt.run declared in kotlin.StandardKt' type=kotlin.Nothing origin=null : kotlin.Nothing block: FUN_EXPR type=kotlin.Function0 origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:kotlin.Nothing @@ -10,7 +10,7 @@ FILE fqName: fileName:/nonLocalReturn.kt GET_OBJECT 'CLASS IR_EXTERNAL_DECLARATION_STUB OBJECT name:Unit modality:FINAL visibility:public superTypes:[kotlin.Any]' type=kotlin.Unit FUN name:test1 visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY - CALL 'public final fun run (block: kotlin.Function0): R of kotlin.StandardKt.run [inline] declared in kotlin.StandardKt' type=kotlin.Unit origin=null + CALL 'public final fun run (block: kotlin.Function0): R of kotlin.StandardKt.run declared in kotlin.StandardKt' type=kotlin.Unit origin=null : kotlin.Unit block: FUN_EXPR type=kotlin.Function0 origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:kotlin.Unit @@ -19,7 +19,7 @@ FILE fqName: fileName:/nonLocalReturn.kt GET_OBJECT 'CLASS IR_EXTERNAL_DECLARATION_STUB OBJECT name:Unit modality:FINAL visibility:public superTypes:[kotlin.Any]' type=kotlin.Unit FUN name:test2 visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY - CALL 'public final fun run (block: kotlin.Function0): R of kotlin.StandardKt.run [inline] declared in kotlin.StandardKt' type=kotlin.Unit origin=null + CALL 'public final fun run (block: kotlin.Function0): R of kotlin.StandardKt.run declared in kotlin.StandardKt' type=kotlin.Unit origin=null : kotlin.Unit block: FUN_EXPR type=kotlin.Function0 origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:kotlin.Unit @@ -28,12 +28,12 @@ FILE fqName: fileName:/nonLocalReturn.kt GET_OBJECT 'CLASS IR_EXTERNAL_DECLARATION_STUB OBJECT name:Unit modality:FINAL visibility:public superTypes:[kotlin.Any]' type=kotlin.Unit FUN name:test3 visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY - CALL 'public final fun run (block: kotlin.Function0): R of kotlin.StandardKt.run [inline] declared in kotlin.StandardKt' type=kotlin.Unit origin=null + CALL 'public final fun run (block: kotlin.Function0): R of kotlin.StandardKt.run declared in kotlin.StandardKt' type=kotlin.Unit origin=null : kotlin.Unit block: FUN_EXPR type=kotlin.Function0 origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY - CALL 'public final fun run (block: kotlin.Function0): R of kotlin.StandardKt.run [inline] declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + CALL 'public final fun run (block: kotlin.Function0): R of kotlin.StandardKt.run declared in kotlin.StandardKt' type=kotlin.Nothing origin=null : kotlin.Nothing block: FUN_EXPR type=kotlin.Function0 origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:kotlin.Nothing @@ -43,7 +43,7 @@ FILE fqName: fileName:/nonLocalReturn.kt FUN name:testLrmFoo1 visibility:public modality:FINAL <> (ints:kotlin.collections.List) returnType:kotlin.Unit VALUE_PARAMETER name:ints index:0 type:kotlin.collections.List BLOCK_BODY - CALL 'public final fun forEach (action: kotlin.Function1): kotlin.Unit [inline] declared in kotlin.collections.CollectionsKt' type=kotlin.Unit origin=null + CALL 'public final fun forEach (action: kotlin.Function1): kotlin.Unit declared in kotlin.collections.CollectionsKt' type=kotlin.Unit origin=null : kotlin.Int $receiver: GET_VAR 'ints: kotlin.collections.List declared in .testLrmFoo1' type=kotlin.collections.List origin=null action: FUN_EXPR type=kotlin.Function1 origin=LAMBDA @@ -57,12 +57,12 @@ FILE fqName: fileName:/nonLocalReturn.kt arg1: CONST Int type=kotlin.Int value=0 then: RETURN type=kotlin.Nothing from='local final fun (it: kotlin.Int): kotlin.Unit declared in .testLrmFoo1' GET_OBJECT 'CLASS IR_EXTERNAL_DECLARATION_STUB OBJECT name:Unit modality:FINAL visibility:public superTypes:[kotlin.Any]' type=kotlin.Unit - CALL 'public final fun print (message: kotlin.Int): kotlin.Unit [inline] declared in kotlin.io' type=kotlin.Unit origin=null + CALL 'public final fun print (message: kotlin.Int): kotlin.Unit declared in kotlin.io' type=kotlin.Unit origin=null message: GET_VAR 'it: kotlin.Int declared in .testLrmFoo1.' type=kotlin.Int origin=null FUN name:testLrmFoo2 visibility:public modality:FINAL <> (ints:kotlin.collections.List) returnType:kotlin.Unit VALUE_PARAMETER name:ints index:0 type:kotlin.collections.List BLOCK_BODY - CALL 'public final fun forEach (action: kotlin.Function1): kotlin.Unit [inline] declared in kotlin.collections.CollectionsKt' type=kotlin.Unit origin=null + CALL 'public final fun forEach (action: kotlin.Function1): kotlin.Unit declared in kotlin.collections.CollectionsKt' type=kotlin.Unit origin=null : kotlin.Int $receiver: GET_VAR 'ints: kotlin.collections.List declared in .testLrmFoo2' type=kotlin.collections.List origin=null action: FUN_EXPR type=kotlin.Function1 origin=LAMBDA @@ -76,5 +76,5 @@ FILE fqName: fileName:/nonLocalReturn.kt arg1: CONST Int type=kotlin.Int value=0 then: RETURN type=kotlin.Nothing from='local final fun (it: kotlin.Int): kotlin.Unit declared in .testLrmFoo2' GET_OBJECT 'CLASS IR_EXTERNAL_DECLARATION_STUB OBJECT name:Unit modality:FINAL visibility:public superTypes:[kotlin.Any]' type=kotlin.Unit - CALL 'public final fun print (message: kotlin.Int): kotlin.Unit [inline] declared in kotlin.io' type=kotlin.Unit origin=null + CALL 'public final fun print (message: kotlin.Int): kotlin.Unit declared in kotlin.io' type=kotlin.Unit origin=null message: GET_VAR 'it: kotlin.Int declared in .testLrmFoo2.' type=kotlin.Int origin=null diff --git a/compiler/testData/ir/irText/lambdas/samAdapter.ir.txt b/compiler/testData/ir/irText/lambdas/samAdapter.ir.txt index 8e9063340a0..94f98821c54 100644 --- a/compiler/testData/ir/irText/lambdas/samAdapter.ir.txt +++ b/compiler/testData/ir/irText/lambdas/samAdapter.ir.txt @@ -6,7 +6,7 @@ FILE fqName: fileName:/samAdapter.kt FUN_EXPR type=kotlin.Function0 origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY - CALL 'public final fun println (message: kotlin.Any?): kotlin.Unit [inline] declared in kotlin.io' type=kotlin.Unit origin=null + CALL 'public final fun println (message: kotlin.Any?): kotlin.Unit declared in kotlin.io' type=kotlin.Unit origin=null message: CONST String type=kotlin.String value="Hello, world!" CALL 'public abstract fun run (): kotlin.Unit declared in java.lang.Runnable' type=kotlin.Unit origin=null - $this: GET_VAR 'val hello: java.lang.Runnable [val] declared in .test1' type=java.lang.Runnable origin=null + $this: GET_VAR 'val hello: java.lang.Runnable declared in .test1' type=java.lang.Runnable origin=null diff --git a/compiler/testData/ir/irText/properties/backingField/backingFieldVisibility.ir.txt b/compiler/testData/ir/irText/properties/backingField/backingFieldVisibility.ir.txt index 774b86b87bc..0de350d32b1 100644 --- a/compiler/testData/ir/irText/properties/backingField/backingFieldVisibility.ir.txt +++ b/compiler/testData/ir/irText/properties/backingField/backingFieldVisibility.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/backingFieldVisibility.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.A CONSTRUCTOR visibility:public <> () returnType:.A [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:A modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:a visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:a type:kotlin.Int visibility:private [final] @@ -19,7 +19,7 @@ FILE fqName: fileName:/backingFieldVisibility.kt PROPERTY name:b visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:b type:kotlin.Int visibility:internal [final] EXPRESSION_BODY - CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUS + CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUS $this: CALL 'public final fun (): kotlin.Number declared in .A' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR ': .A declared in .A' type=.A origin=null other: CONST Int type=kotlin.Int value=2 @@ -44,7 +44,7 @@ FILE fqName: fileName:/backingFieldVisibility.kt PROPERTY name:d visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:d type:kotlin.Int visibility:private [final] EXPRESSION_BODY - CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUS + CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUS $this: CALL 'public final fun (): kotlin.Int declared in .A' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR ': .A declared in .A' type=.A origin=null other: CONST Int type=kotlin.Int value=2 @@ -59,18 +59,18 @@ FILE fqName: fileName:/backingFieldVisibility.kt $this: VALUE_PARAMETER name: type:.A BLOCK_BODY VAR name:aI type:kotlin.Int [val] - CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUS + CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUS $this: CALL 'public final fun (): kotlin.Number declared in .A' type=kotlin.Int origin=GET_PROPERTY - $this: CONSTRUCTOR_CALL 'public constructor () [primary] declared in .A' type=.A origin=null + $this: CONSTRUCTOR_CALL 'public constructor () declared in .A' type=.A origin=null other: CONST Int type=kotlin.Int value=10 VAR name:bI type:kotlin.Int [val] - CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUS + CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUS $this: CALL 'public final fun (): kotlin.Number declared in .A' type=kotlin.Int origin=GET_PROPERTY - $this: CONSTRUCTOR_CALL 'public constructor () [primary] declared in .A' type=.A origin=null + $this: CONSTRUCTOR_CALL 'public constructor () declared in .A' type=.A origin=null other: CONST Int type=kotlin.Int value=20 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -84,7 +84,7 @@ FILE fqName: fileName:/backingFieldVisibility.kt FUN name:test visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY VAR name:bA type:kotlin.Int [val] - CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUS + CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUS $this: CALL 'public final fun (): kotlin.Number declared in .A' type=kotlin.Int origin=GET_PROPERTY - $this: CONSTRUCTOR_CALL 'public constructor () [primary] declared in .A' type=.A origin=null + $this: CONSTRUCTOR_CALL 'public constructor () declared in .A' type=.A origin=null other: CONST Int type=kotlin.Int value=20 diff --git a/compiler/testData/ir/irText/properties/backingField/explicitBackingFieldType.ir.txt b/compiler/testData/ir/irText/properties/backingField/explicitBackingFieldType.ir.txt index 26124921fa9..d67903cc75c 100644 --- a/compiler/testData/ir/irText/properties/backingField/explicitBackingFieldType.ir.txt +++ b/compiler/testData/ir/irText/properties/backingField/explicitBackingFieldType.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/explicitBackingFieldType.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.A CONSTRUCTOR visibility:public <> () returnType:.A [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:A modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:a visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:a type:kotlin.Int visibility:private [final] @@ -70,7 +70,7 @@ FILE fqName: fileName:/explicitBackingFieldType.kt receiver: GET_VAR ': .A declared in .A.' type=.A 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/properties/backingField/independentBackingFieldType.ir.txt b/compiler/testData/ir/irText/properties/backingField/independentBackingFieldType.ir.txt index c115296e87d..e2f466c1b78 100644 --- a/compiler/testData/ir/irText/properties/backingField/independentBackingFieldType.ir.txt +++ b/compiler/testData/ir/irText/properties/backingField/independentBackingFieldType.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/independentBackingFieldType.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.A CONSTRUCTOR visibility:public <> () returnType:.A [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:A modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:it visibility:public modality:FINAL [var] FIELD PROPERTY_BACKING_FIELD name:it type:kotlin.Double visibility:private @@ -15,7 +15,7 @@ FILE fqName: fileName:/independentBackingFieldType.kt BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun (): kotlin.Int declared in .A' CALL 'public open fun toInt (): kotlin.Int declared in kotlin.Double' type=kotlin.Int origin=null - $this: CALL 'public final fun plus (other: kotlin.Int): kotlin.Double [operator] declared in kotlin.Double' type=kotlin.Double origin=PLUS + $this: CALL 'public final fun plus (other: kotlin.Int): kotlin.Double declared in kotlin.Double' type=kotlin.Double origin=PLUS $this: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:it type:kotlin.Double visibility:private' type=kotlin.Double origin=GET_PROPERTY receiver: GET_VAR ': .A declared in .A.' type=.A origin=null other: CONST Int type=kotlin.Int value=10 @@ -27,12 +27,12 @@ FILE fqName: fileName:/independentBackingFieldType.kt SET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:it type:kotlin.Double visibility:private' type=kotlin.Unit origin=EQ receiver: GET_VAR ': .A declared in .A.' type=.A origin=null value: CALL 'public open fun toDouble (): kotlin.Double declared in kotlin.Int' type=kotlin.Double origin=null - $this: CALL 'public final fun minus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=MINUS + $this: CALL 'public final fun minus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=MINUS $this: GET_VAR 'value: kotlin.Int declared in .A.' type=kotlin.Int origin=null other: CONST Int type=kotlin.Int value=10 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -46,12 +46,12 @@ FILE fqName: fileName:/independentBackingFieldType.kt FUN name:test visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY VAR name:a type:.A [val] - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .A' type=.A origin=null + CONSTRUCTOR_CALL 'public constructor () declared in .A' type=.A origin=null VAR name:it type:kotlin.Int [val] - CALL 'public final fun and (other: kotlin.Int): kotlin.Int [infix] declared in kotlin.Int' type=kotlin.Int origin=null + CALL 'public final fun and (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: CALL 'public final fun (): kotlin.Int declared in .A' type=kotlin.Int origin=GET_PROPERTY - $this: CONSTRUCTOR_CALL 'public constructor () [primary] declared in .A' type=.A origin=null + $this: CONSTRUCTOR_CALL 'public constructor () declared in .A' type=.A origin=null other: CONST Int type=kotlin.Int value=10 CALL 'public final fun (value: kotlin.Int): kotlin.Unit declared in .A' type=kotlin.Unit origin=EQ - $this: GET_VAR 'val a: .A [val] declared in .test' type=.A origin=null - value: GET_VAR 'val it: kotlin.Int [val] declared in .test' type=kotlin.Int origin=null + $this: GET_VAR 'val a: .A declared in .test' type=.A origin=null + value: GET_VAR 'val it: kotlin.Int declared in .test' type=kotlin.Int origin=null diff --git a/compiler/testData/ir/irText/properties/backingField/propertyTypeNarrowing.ir.txt b/compiler/testData/ir/irText/properties/backingField/propertyTypeNarrowing.ir.txt index aaf1b069780..e47dbbb545c 100644 --- a/compiler/testData/ir/irText/properties/backingField/propertyTypeNarrowing.ir.txt +++ b/compiler/testData/ir/irText/properties/backingField/propertyTypeNarrowing.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/propertyTypeNarrowing.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.A CONSTRUCTOR visibility:public <> () returnType:.A [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:A modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:it visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:it type:kotlin.Int visibility:private [final] @@ -20,7 +20,7 @@ FILE fqName: fileName:/propertyTypeNarrowing.kt $this: VALUE_PARAMETER name: type:.A BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test (): kotlin.Int declared in .A' - CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUS + CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUS $this: CALL 'public final fun (): kotlin.Number declared in .A' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR ': .A declared in .A.test' type=.A origin=null other: CONST Int type=kotlin.Int value=3 @@ -37,7 +37,7 @@ FILE fqName: fileName:/propertyTypeNarrowing.kt receiver: GET_VAR ': .A declared in .A.' type=.A 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -53,7 +53,7 @@ FILE fqName: fileName:/propertyTypeNarrowing.kt VAR name:d type:kotlin.Unit [val] CALL 'public final fun test (): kotlin.Unit declared in ' type=kotlin.Unit origin=null VAR name:b type:kotlin.Int [val] - CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=PLUS + CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=PLUS $this: CALL 'public final fun (): kotlin.Int declared in .A' type=kotlin.Int origin=GET_PROPERTY - $this: CONSTRUCTOR_CALL 'public constructor () [primary] declared in .A' type=.A origin=null + $this: CONSTRUCTOR_CALL 'public constructor () declared in .A' type=.A origin=null other: CONST Int type=kotlin.Int value=2 diff --git a/compiler/testData/ir/irText/regressions/coercionInLoop.fir.ir.txt b/compiler/testData/ir/irText/regressions/coercionInLoop.fir.ir.txt index d2164bf112e..3b684fbe4ec 100644 --- a/compiler/testData/ir/irText/regressions/coercionInLoop.fir.ir.txt +++ b/compiler/testData/ir/irText/regressions/coercionInLoop.fir.ir.txt @@ -2,36 +2,36 @@ FILE fqName: fileName:/coercionInLoop.kt FUN name:box visibility:public modality:FINAL <> () returnType:kotlin.String BLOCK_BODY VAR name:a type:kotlin.DoubleArray [val] - CONSTRUCTOR_CALL 'public constructor (size: kotlin.Int) [primary] declared in kotlin.DoubleArray' type=kotlin.DoubleArray origin=null + CONSTRUCTOR_CALL 'public constructor (size: kotlin.Int) declared in kotlin.DoubleArray' type=kotlin.DoubleArray origin=null size: CONST Int type=kotlin.Int value=5 VAR name:x type:kotlin.collections.DoubleIterator [val] - CALL 'public final fun iterator (): kotlin.collections.DoubleIterator [operator] declared in kotlin.DoubleArray' type=kotlin.collections.DoubleIterator origin=null - $this: GET_VAR 'val a: kotlin.DoubleArray [val] declared in .box' type=kotlin.DoubleArray origin=null + CALL 'public final fun iterator (): kotlin.collections.DoubleIterator declared in kotlin.DoubleArray' type=kotlin.collections.DoubleIterator origin=null + $this: GET_VAR 'val a: kotlin.DoubleArray declared in .box' type=kotlin.DoubleArray origin=null VAR name:i type:kotlin.Int [var] CONST Int type=kotlin.Int value=0 WHILE label=null origin=WHILE_LOOP - condition: CALL 'public abstract fun hasNext (): kotlin.Boolean [fake_override,operator] declared in kotlin.collections.DoubleIterator' type=kotlin.Boolean origin=null - $this: GET_VAR 'val x: kotlin.collections.DoubleIterator [val] declared in .box' type=kotlin.collections.DoubleIterator origin=null + condition: CALL 'public abstract fun hasNext (): kotlin.Boolean declared in kotlin.collections.DoubleIterator' type=kotlin.Boolean origin=null + $this: GET_VAR 'val x: kotlin.collections.DoubleIterator declared in .box' type=kotlin.collections.DoubleIterator origin=null body: BLOCK type=kotlin.Int origin=null WHEN type=kotlin.Unit origin=IF BRANCH - if: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ + if: CALL 'public final fun not (): kotlin.Boolean declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ $this: CALL 'public final fun ieee754equals (arg0: kotlin.Double?, arg1: kotlin.Double?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EXCLEQ - arg0: CALL 'public final fun get (index: kotlin.Int): kotlin.Double [operator] declared in kotlin.DoubleArray' type=kotlin.Double origin=null - $this: GET_VAR 'val a: kotlin.DoubleArray [val] declared in .box' type=kotlin.DoubleArray origin=null - index: GET_VAR 'var i: kotlin.Int [var] declared in .box' type=kotlin.Int origin=null - arg1: CALL 'public final fun next (): kotlin.Double [operator] declared in kotlin.collections.DoubleIterator' type=kotlin.Double origin=null - $this: GET_VAR 'val x: kotlin.collections.DoubleIterator [val] declared in .box' type=kotlin.collections.DoubleIterator origin=null + arg0: CALL 'public final fun get (index: kotlin.Int): kotlin.Double declared in kotlin.DoubleArray' type=kotlin.Double origin=null + $this: GET_VAR 'val a: kotlin.DoubleArray declared in .box' type=kotlin.DoubleArray origin=null + index: GET_VAR 'var i: kotlin.Int declared in .box' type=kotlin.Int origin=null + arg1: CALL 'public final fun next (): kotlin.Double declared in kotlin.collections.DoubleIterator' type=kotlin.Double origin=null + $this: GET_VAR 'val x: kotlin.collections.DoubleIterator declared in .box' type=kotlin.collections.DoubleIterator origin=null then: RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' STRING_CONCATENATION type=kotlin.String CONST String type=kotlin.String value="Fail " - GET_VAR 'var i: kotlin.Int [var] declared in .box' type=kotlin.Int origin=null + GET_VAR 'var i: kotlin.Int declared in .box' type=kotlin.Int origin=null BLOCK type=kotlin.Int origin=POSTFIX_INCR VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:kotlin.Int [val] - GET_VAR 'var i: kotlin.Int [var] declared in .box' type=kotlin.Int origin=null - SET_VAR 'var i: kotlin.Int [var] declared in .box' type=kotlin.Unit origin=POSTFIX_INCR - CALL 'public final fun inc (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp_0: kotlin.Int [val] declared in .box' type=kotlin.Int origin=null - GET_VAR 'val tmp_0: kotlin.Int [val] declared in .box' type=kotlin.Int origin=null + GET_VAR 'var i: kotlin.Int declared in .box' type=kotlin.Int origin=null + SET_VAR 'var i: kotlin.Int declared in .box' type=kotlin.Unit origin=POSTFIX_INCR + CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_0: kotlin.Int declared in .box' type=kotlin.Int origin=null + GET_VAR 'val tmp_0: kotlin.Int declared in .box' type=kotlin.Int origin=null RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' CONST String type=kotlin.String value="OK" diff --git a/compiler/testData/ir/irText/regressions/coercionInLoop.ir.txt b/compiler/testData/ir/irText/regressions/coercionInLoop.ir.txt index 4d50b452aa4..ab7b41af2a0 100644 --- a/compiler/testData/ir/irText/regressions/coercionInLoop.ir.txt +++ b/compiler/testData/ir/irText/regressions/coercionInLoop.ir.txt @@ -2,37 +2,37 @@ FILE fqName: fileName:/coercionInLoop.kt FUN name:box visibility:public modality:FINAL <> () returnType:kotlin.String BLOCK_BODY VAR name:a type:kotlin.DoubleArray [val] - CONSTRUCTOR_CALL 'public constructor (size: kotlin.Int) [primary] declared in kotlin.DoubleArray' type=kotlin.DoubleArray origin=null + CONSTRUCTOR_CALL 'public constructor (size: kotlin.Int) declared in kotlin.DoubleArray' type=kotlin.DoubleArray origin=null size: CONST Int type=kotlin.Int value=5 VAR name:x type:kotlin.collections.DoubleIterator [val] - CALL 'public final fun iterator (): kotlin.collections.DoubleIterator [operator] declared in kotlin.DoubleArray' type=kotlin.collections.DoubleIterator origin=null - $this: GET_VAR 'val a: kotlin.DoubleArray [val] declared in .box' type=kotlin.DoubleArray origin=null + CALL 'public final fun iterator (): kotlin.collections.DoubleIterator declared in kotlin.DoubleArray' type=kotlin.collections.DoubleIterator origin=null + $this: GET_VAR 'val a: kotlin.DoubleArray declared in .box' type=kotlin.DoubleArray origin=null VAR name:i type:kotlin.Int [var] CONST Int type=kotlin.Int value=0 WHILE label=null origin=WHILE_LOOP - condition: CALL 'public abstract fun hasNext (): kotlin.Boolean [fake_override,operator] declared in kotlin.collections.DoubleIterator' type=kotlin.Boolean origin=null - $this: GET_VAR 'val x: kotlin.collections.DoubleIterator [val] declared in .box' type=kotlin.collections.DoubleIterator origin=null + condition: CALL 'public abstract fun hasNext (): kotlin.Boolean declared in kotlin.collections.DoubleIterator' type=kotlin.Boolean origin=null + $this: GET_VAR 'val x: kotlin.collections.DoubleIterator declared in .box' type=kotlin.collections.DoubleIterator origin=null body: BLOCK type=kotlin.Unit origin=null WHEN type=kotlin.Unit origin=IF BRANCH - if: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ + if: CALL 'public final fun not (): kotlin.Boolean declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ $this: CALL 'public final fun ieee754equals (arg0: kotlin.Double?, arg1: kotlin.Double?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EXCLEQ - arg0: CALL 'public final fun get (index: kotlin.Int): kotlin.Double [operator] declared in kotlin.DoubleArray' type=kotlin.Double origin=GET_ARRAY_ELEMENT - $this: GET_VAR 'val a: kotlin.DoubleArray [val] declared in .box' type=kotlin.DoubleArray origin=null - index: GET_VAR 'var i: kotlin.Int [var] declared in .box' type=kotlin.Int origin=null - arg1: CALL 'public final fun next (): kotlin.Double [operator] declared in kotlin.collections.DoubleIterator' type=kotlin.Double origin=null - $this: GET_VAR 'val x: kotlin.collections.DoubleIterator [val] declared in .box' type=kotlin.collections.DoubleIterator origin=null + arg0: CALL 'public final fun get (index: kotlin.Int): kotlin.Double declared in kotlin.DoubleArray' type=kotlin.Double origin=GET_ARRAY_ELEMENT + $this: GET_VAR 'val a: kotlin.DoubleArray declared in .box' type=kotlin.DoubleArray origin=null + index: GET_VAR 'var i: kotlin.Int declared in .box' type=kotlin.Int origin=null + arg1: CALL 'public final fun next (): kotlin.Double declared in kotlin.collections.DoubleIterator' type=kotlin.Double origin=null + $this: GET_VAR 'val x: kotlin.collections.DoubleIterator declared in .box' type=kotlin.collections.DoubleIterator origin=null then: RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' STRING_CONCATENATION type=kotlin.String CONST String type=kotlin.String value="Fail " - GET_VAR 'var i: kotlin.Int [var] declared in .box' type=kotlin.Int origin=null + GET_VAR 'var i: kotlin.Int declared in .box' type=kotlin.Int origin=null TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit BLOCK type=kotlin.Int origin=POSTFIX_INCR VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:kotlin.Int [val] - GET_VAR 'var i: kotlin.Int [var] declared in .box' type=kotlin.Int origin=POSTFIX_INCR - SET_VAR 'var i: kotlin.Int [var] declared in .box' type=kotlin.Unit origin=POSTFIX_INCR - CALL 'public final fun inc (): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_INCR - $this: GET_VAR 'val tmp_0: kotlin.Int [val] declared in .box' type=kotlin.Int origin=null - GET_VAR 'val tmp_0: kotlin.Int [val] declared in .box' type=kotlin.Int origin=null + GET_VAR 'var i: kotlin.Int declared in .box' type=kotlin.Int origin=POSTFIX_INCR + SET_VAR 'var i: kotlin.Int declared in .box' type=kotlin.Unit origin=POSTFIX_INCR + CALL 'public final fun inc (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=POSTFIX_INCR + $this: GET_VAR 'val tmp_0: kotlin.Int declared in .box' type=kotlin.Int origin=null + GET_VAR 'val tmp_0: kotlin.Int declared in .box' type=kotlin.Int origin=null RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' CONST String type=kotlin.String value="OK" diff --git a/compiler/testData/ir/irText/regressions/integerCoercionToT.fir.ir.txt b/compiler/testData/ir/irText/regressions/integerCoercionToT.fir.ir.txt index 0643a387bc8..566f210e7a2 100644 --- a/compiler/testData/ir/irText/regressions/integerCoercionToT.fir.ir.txt +++ b/compiler/testData/ir/irText/regressions/integerCoercionToT.fir.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/integerCoercionToT.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.CPointed 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -19,27 +19,27 @@ FILE fqName: fileName:/integerCoercionToT.kt TYPE_PARAMETER name:T index:0 variance: superTypes:[.CPointed] reified:true $receiver: VALUE_PARAMETER name: type:.CPointed BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun reinterpret (): T of .reinterpret [inline] declared in ' - CALL 'public final fun TODO (): kotlin.Nothing [inline] declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + RETURN type=kotlin.Nothing from='public final fun reinterpret (): T of .reinterpret declared in ' + CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin.StandardKt' type=kotlin.Nothing origin=null CLASS CLASS name:CInt32VarX modality:FINAL visibility:public superTypes:[.CPointed] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.CInt32VarX.CInt32VarX> TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false CONSTRUCTOR visibility:public <> () returnType:.CInt32VarX.CInt32VarX> [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:CInt32VarX modality:FINAL visibility:public superTypes:[.CPointed]' 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 .CPointed + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .CPointed $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 .CPointed + public open fun hashCode (): kotlin.Int declared in .CPointed $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 .CPointed + public open fun toString (): kotlin.String declared in .CPointed $this: VALUE_PARAMETER name: type:kotlin.Any PROPERTY name:value visibility:public modality:FINAL [var] FUN name: visibility:public modality:FINAL ($receiver:.CInt32VarX.>) returnType:T_INT of . @@ -48,7 +48,7 @@ FILE fqName: fileName:/integerCoercionToT.kt $receiver: VALUE_PARAMETER name: type:.CInt32VarX.> BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun (): T_INT of . declared in ' - CALL 'public final fun TODO (): kotlin.Nothing [inline] declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin.StandardKt' type=kotlin.Nothing origin=null FUN name: visibility:public modality:FINAL ($receiver:.CInt32VarX.>, value:T_INT of .) returnType:kotlin.Unit correspondingProperty: PROPERTY name:value visibility:public modality:FINAL [var] TYPE_PARAMETER name:T_INT index:0 variance: superTypes:[kotlin.Int] reified:false @@ -60,7 +60,7 @@ FILE fqName: fileName:/integerCoercionToT.kt CONSTRUCTOR visibility:public <> (value:kotlin.Int) returnType:.IdType [primary] VALUE_PARAMETER name:value index:0 type:kotlin.Int BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:IdType modality:FINAL visibility:public superTypes:[.CPointed]' PROPERTY name:value visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:value type:kotlin.Int visibility:private [final] @@ -75,16 +75,16 @@ FILE fqName: fileName:/integerCoercionToT.kt receiver: GET_VAR ': .IdType declared in .IdType.' type=.IdType 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 [fake_override,operator] declared in .CPointed + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .CPointed $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 .CPointed + public open fun hashCode (): kotlin.Int declared in .CPointed $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 .CPointed + public open fun toString (): kotlin.String declared in .CPointed $this: VALUE_PARAMETER name: type:kotlin.Any FUN name:foo visibility:public modality:FINAL <> (value:.IdType, cv:.CInt32VarX) returnType:kotlin.Unit VALUE_PARAMETER name:value index:0 type:.IdType diff --git a/compiler/testData/ir/irText/regressions/integerCoercionToT.ir.txt b/compiler/testData/ir/irText/regressions/integerCoercionToT.ir.txt index 77edac97c97..00296633859 100644 --- a/compiler/testData/ir/irText/regressions/integerCoercionToT.ir.txt +++ b/compiler/testData/ir/irText/regressions/integerCoercionToT.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/integerCoercionToT.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.CPointed 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -18,27 +18,27 @@ FILE fqName: fileName:/integerCoercionToT.kt TYPE_PARAMETER name:T index:0 variance: superTypes:[.CPointed] reified:true $receiver: VALUE_PARAMETER name: type:.CPointed BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun reinterpret (): T of .reinterpret [inline] declared in ' - CALL 'public final fun TODO (): kotlin.Nothing [inline] declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + RETURN type=kotlin.Nothing from='public final fun reinterpret (): T of .reinterpret declared in ' + CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin.StandardKt' type=kotlin.Nothing origin=null CLASS CLASS name:CInt32VarX modality:FINAL visibility:public superTypes:[.CPointed] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.CInt32VarX.CInt32VarX> TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false CONSTRUCTOR visibility:public <> () returnType:.CInt32VarX.CInt32VarX> [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:CInt32VarX modality:FINAL visibility:public superTypes:[.CPointed]' 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 .CPointed + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .CPointed $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 .CPointed + public open fun hashCode (): kotlin.Int declared in .CPointed $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 .CPointed + public open fun toString (): kotlin.String declared in .CPointed $this: VALUE_PARAMETER name: type:kotlin.Any TYPEALIAS name:CInt32Var visibility:public expandedType:.CInt32VarX PROPERTY name:value visibility:public modality:FINAL [var] @@ -48,7 +48,7 @@ FILE fqName: fileName:/integerCoercionToT.kt $receiver: VALUE_PARAMETER name: type:.CInt32VarX.> BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun (): T_INT of . declared in ' - CALL 'public final fun TODO (): kotlin.Nothing [inline] declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin.StandardKt' type=kotlin.Nothing origin=null FUN name: visibility:public modality:FINAL ($receiver:.CInt32VarX.>, value:T_INT of .) returnType:kotlin.Unit correspondingProperty: PROPERTY name:value visibility:public modality:FINAL [var] TYPE_PARAMETER name:T_INT index:0 variance: superTypes:[kotlin.Int] reified:false @@ -60,7 +60,7 @@ FILE fqName: fileName:/integerCoercionToT.kt CONSTRUCTOR visibility:public <> (value:kotlin.Int) returnType:.IdType [primary] VALUE_PARAMETER name:value index:0 type:kotlin.Int BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:IdType modality:FINAL visibility:public superTypes:[.CPointed]' PROPERTY name:value visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:value type:kotlin.Int visibility:private [final] @@ -75,16 +75,16 @@ FILE fqName: fileName:/integerCoercionToT.kt receiver: GET_VAR ': .IdType declared in .IdType.' type=.IdType 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 [fake_override,operator] declared in .CPointed + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .CPointed $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 .CPointed + public open fun hashCode (): kotlin.Int declared in .CPointed $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 .CPointed + public open fun toString (): kotlin.String declared in .CPointed $this: VALUE_PARAMETER name: type:kotlin.Any FUN name:foo visibility:public modality:FINAL <> (value:.IdType, cv:.CInt32VarX{ .CInt32Var }) returnType:kotlin.Unit VALUE_PARAMETER name:value index:0 type:.IdType diff --git a/compiler/testData/ir/irText/regressions/kt24114.fir.ir.txt b/compiler/testData/ir/irText/regressions/kt24114.fir.ir.txt index 0f13948fa07..3b919e4eb2f 100644 --- a/compiler/testData/ir/irText/regressions/kt24114.fir.ir.txt +++ b/compiler/testData/ir/irText/regressions/kt24114.fir.ir.txt @@ -17,7 +17,7 @@ FILE fqName: fileName:/kt24114.kt WHEN type=kotlin.Unit origin=WHEN BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_0: kotlin.Int [val] declared in .test1' type=kotlin.Int origin=null + arg0: GET_VAR 'val tmp_0: kotlin.Int declared in .test1' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=1 then: BLOCK type=kotlin.Unit origin=WHEN VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:kotlin.Int [val] @@ -25,7 +25,7 @@ FILE fqName: fileName:/kt24114.kt WHEN type=kotlin.Unit origin=WHEN BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_1: kotlin.Int [val] declared in .test1' type=kotlin.Int origin=null + arg0: GET_VAR 'val tmp_1: kotlin.Int declared in .test1' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=2 then: RETURN type=kotlin.Nothing from='public final fun test1 (): kotlin.Int declared in ' CONST Int type=kotlin.Int value=2 @@ -43,7 +43,7 @@ FILE fqName: fileName:/kt24114.kt WHEN type=kotlin.Unit origin=WHEN BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_2: kotlin.Int [val] declared in .test2' type=kotlin.Int origin=null + arg0: GET_VAR 'val tmp_2: kotlin.Int declared in .test2' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=1 then: BLOCK type=kotlin.Unit origin=WHEN VAR IR_TEMPORARY_VARIABLE name:tmp_3 type:kotlin.Int [val] @@ -51,7 +51,7 @@ FILE fqName: fileName:/kt24114.kt WHEN type=kotlin.Unit origin=WHEN BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_3: kotlin.Int [val] declared in .test2' type=kotlin.Int origin=null + arg0: GET_VAR 'val tmp_3: kotlin.Int declared in .test2' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=2 then: RETURN type=kotlin.Nothing from='public final fun test2 (): kotlin.Int declared in ' CONST Int type=kotlin.Int value=2 diff --git a/compiler/testData/ir/irText/regressions/kt24114.ir.txt b/compiler/testData/ir/irText/regressions/kt24114.ir.txt index 40a9f9bd19f..a608644a446 100644 --- a/compiler/testData/ir/irText/regressions/kt24114.ir.txt +++ b/compiler/testData/ir/irText/regressions/kt24114.ir.txt @@ -18,7 +18,7 @@ FILE fqName: fileName:/kt24114.kt WHEN type=kotlin.Unit origin=WHEN BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_0: kotlin.Int [val] declared in .test1' type=kotlin.Int origin=null + arg0: GET_VAR 'val tmp_0: kotlin.Int declared in .test1' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=1 then: BLOCK type=kotlin.Unit origin=null BLOCK type=kotlin.Unit origin=WHEN @@ -27,7 +27,7 @@ FILE fqName: fileName:/kt24114.kt WHEN type=kotlin.Unit origin=WHEN BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_1: kotlin.Int [val] declared in .test1' type=kotlin.Int origin=null + arg0: GET_VAR 'val tmp_1: kotlin.Int declared in .test1' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=2 then: RETURN type=kotlin.Nothing from='public final fun test1 (): kotlin.Int declared in ' CONST Int type=kotlin.Int value=2 @@ -46,7 +46,7 @@ FILE fqName: fileName:/kt24114.kt WHEN type=kotlin.Unit origin=WHEN BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_2: kotlin.Int [val] declared in .test2' type=kotlin.Int origin=null + arg0: GET_VAR 'val tmp_2: kotlin.Int declared in .test2' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=1 then: BLOCK type=kotlin.Unit origin=WHEN VAR IR_TEMPORARY_VARIABLE name:tmp_3 type:kotlin.Int [val] @@ -54,7 +54,7 @@ FILE fqName: fileName:/kt24114.kt WHEN type=kotlin.Unit origin=WHEN BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_3: kotlin.Int [val] declared in .test2' type=kotlin.Int origin=null + arg0: GET_VAR 'val tmp_3: kotlin.Int declared in .test2' type=kotlin.Int origin=null arg1: CONST Int type=kotlin.Int value=2 then: RETURN type=kotlin.Nothing from='public final fun test2 (): kotlin.Int declared in ' CONST Int type=kotlin.Int value=2 diff --git a/compiler/testData/ir/irText/regressions/kt44855.fir.ir.txt b/compiler/testData/ir/irText/regressions/kt44855.fir.ir.txt index 82f0528fe5d..974d73c25c9 100644 --- a/compiler/testData/ir/irText/regressions/kt44855.fir.ir.txt +++ b/compiler/testData/ir/irText/regressions/kt44855.fir.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/kt44855.kt CONSTRUCTOR visibility:public <> (x:.Parent?) returnType:.Child [primary] VALUE_PARAMETER name:x index:0 type:.Parent? BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .Parent' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .Parent' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Child modality:OPEN visibility:public superTypes:[.Parent]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:.Parent? visibility:private [final] @@ -22,7 +22,7 @@ FILE fqName: fileName:/kt44855.kt CONSTRUCTOR visibility:public <> ($this:.Child) returnType:.Child.QQQ [primary] $outer: VALUE_PARAMETER name: type:.Child BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:QQQ modality:FINAL visibility:public [inner] superTypes:[kotlin.Any]' FUN name:z visibility:public modality:FINAL <> ($this:.Child.QQQ) returnType:kotlin.Unit $this: VALUE_PARAMETER name: type:.Child.QQQ @@ -40,12 +40,12 @@ FILE fqName: fileName:/kt44855.kt receiver: TYPE_OP type=.Child origin=IMPLICIT_CAST typeOperand=.Child CALL 'public final fun (): .Parent? declared in .Child' type=.Parent? origin=GET_PROPERTY $this: GET_VAR ': .Child declared in .Child' type=.Child origin=null - value: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS - $this: GET_VAR 'val q: @[FlexibleNullability] kotlin.String? [val] declared in .Child.QQQ.z' type=@[FlexibleNullability] kotlin.String? origin=null + value: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS + $this: GET_VAR 'val q: @[FlexibleNullability] kotlin.String? declared in .Child.QQQ.z' type=@[FlexibleNullability] kotlin.String? origin=null other: CONST String type=kotlin.String value="OK" 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -62,14 +62,14 @@ FILE fqName: fileName:/kt44855.kt $this: VALUE_PARAMETER name: type:.Parent 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 .Parent + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Parent $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 .Parent + public open fun hashCode (): kotlin.Int declared in .Parent $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 .Parent + public open fun toString (): kotlin.String declared in .Parent $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/regressions/kt44855.ir.txt b/compiler/testData/ir/irText/regressions/kt44855.ir.txt index 6ea95f3ed4e..9e2c5b573ad 100644 --- a/compiler/testData/ir/irText/regressions/kt44855.ir.txt +++ b/compiler/testData/ir/irText/regressions/kt44855.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/kt44855.kt CONSTRUCTOR visibility:public <> (x:.Parent?) returnType:.Child [primary] VALUE_PARAMETER name:x index:0 type:.Parent? BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .Parent' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .Parent' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Child modality:OPEN visibility:public superTypes:[.Parent]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:.Parent? visibility:private [final] @@ -22,7 +22,7 @@ FILE fqName: fileName:/kt44855.kt CONSTRUCTOR visibility:public <> ($this:.Child) returnType:.Child.QQQ [primary] $outer: VALUE_PARAMETER name: type:.Child BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:QQQ modality:FINAL visibility:public [inner] superTypes:[kotlin.Any]' FUN name:z visibility:public modality:FINAL <> ($this:.Child.QQQ) returnType:kotlin.Unit $this: VALUE_PARAMETER name: type:.Child.QQQ @@ -40,13 +40,13 @@ FILE fqName: fileName:/kt44855.kt receiver: TYPE_OP type=.Child origin=IMPLICIT_CAST typeOperand=.Child CALL 'public final fun (): .Parent? declared in .Child' type=.Parent? origin=GET_PROPERTY $this: GET_VAR ': .Child declared in .Child' type=.Child origin=null - value: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String [operator] declared in kotlin.String' type=kotlin.String origin=PLUS + value: CALL 'public final fun plus (other: kotlin.Any?): kotlin.String declared in kotlin.String' type=kotlin.String origin=PLUS $this: TYPE_OP type=kotlin.String origin=IMPLICIT_NOTNULL typeOperand=kotlin.String - GET_VAR 'val q: @[FlexibleNullability] kotlin.String? [val] declared in .Child.QQQ.z' type=@[FlexibleNullability] kotlin.String? origin=null + GET_VAR 'val q: @[FlexibleNullability] kotlin.String? declared in .Child.QQQ.z' type=@[FlexibleNullability] kotlin.String? origin=null other: CONST String type=kotlin.String value="OK" 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -59,16 +59,16 @@ FILE fqName: fileName:/kt44855.kt $this: VALUE_PARAMETER name: type: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 [fake_override,operator] declared in .Parent + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Parent $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 .Parent + public open fun hashCode (): kotlin.Int declared in .Parent $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 .Parent + public open fun toString (): kotlin.String declared in .Parent $this: VALUE_PARAMETER name: type:kotlin.Any FUN FAKE_OVERRIDE name:getQqq visibility:public modality:OPEN <> ($this:.Parent) returnType:@[FlexibleNullability] kotlin.String? [fake_override] overridden: @@ -76,4 +76,4 @@ FILE fqName: fileName:/kt44855.kt $this: VALUE_PARAMETER name: type:.Parent PROPERTY FAKE_OVERRIDE name:qqq visibility:protected/*protected and package*/ modality:FINAL [fake_override,var] overridden: - protected/*protected and package*/ final qqq: @[FlexibleNullability] kotlin.String? [var] + protected/*protected and package*/ final qqq: @[FlexibleNullability] kotlin.String? diff --git a/compiler/testData/ir/irText/regressions/kt45236.fir.ir.txt b/compiler/testData/ir/irText/regressions/kt45236.fir.ir.txt index 431a04ad5fe..f41f36ace5c 100644 --- a/compiler/testData/ir/irText/regressions/kt45236.fir.ir.txt +++ b/compiler/testData/ir/irText/regressions/kt45236.fir.ir.txt @@ -6,7 +6,7 @@ FILE fqName: fileName:/kt45236.kt TYPE_PARAMETER name:T index:0 variance:out superTypes:[kotlin.Any] reified:false CONSTRUCTOR visibility:protected <> () returnType:.NetRequestStatus.NetRequestStatus> [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:NetRequestStatus modality:SEALED visibility:public superTypes:[kotlin.Any]' PROPERTY name:value visibility:public modality:ABSTRACT [val] FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:ABSTRACT <> ($this:.NetRequestStatus.NetRequestStatus>) returnType:T of .NetRequestStatus? @@ -21,7 +21,7 @@ FILE fqName: fileName:/kt45236.kt EXPRESSION_BODY CONST Null type=kotlin.Nothing? value=null BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'protected constructor () [primary] declared in .NetRequestStatus' + DELEGATING_CONSTRUCTOR_CALL 'protected constructor () declared in .NetRequestStatus' : T of .NetRequestStatus.Error INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Error modality:FINAL visibility:public [data] superTypes:[.NetRequestStatus.NetRequestStatus.Error>]' PROPERTY name:error visibility:public modality:FINAL [val] @@ -37,7 +37,7 @@ FILE fqName: fileName:/kt45236.kt receiver: GET_VAR ': .NetRequestStatus.Error.NetRequestStatus.Error> declared in .NetRequestStatus.Error.' type=.NetRequestStatus.Error.NetRequestStatus.Error> origin=null PROPERTY name:value visibility:public modality:OPEN [val] overridden: - public abstract value: T of .NetRequestStatus? [val] + public abstract value: T of .NetRequestStatus? FIELD PROPERTY_BACKING_FIELD name:value type:T of .NetRequestStatus.Error? visibility:private [final] EXPRESSION_BODY GET_VAR 'value: T of .NetRequestStatus.Error? declared in .NetRequestStatus.Error.' type=T of .NetRequestStatus.Error? origin=INITIALIZE_PROPERTY_FROM_PARAMETER @@ -53,13 +53,13 @@ FILE fqName: fileName:/kt45236.kt FUN GENERATED_DATA_CLASS_MEMBER name:component1 visibility:public modality:FINAL <> ($this:.NetRequestStatus.Error.NetRequestStatus.Error>) returnType:kotlin.Throwable [operator] $this: VALUE_PARAMETER name: type:.NetRequestStatus.Error.NetRequestStatus.Error> BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Throwable [operator] declared in .NetRequestStatus.Error' + RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Throwable declared in .NetRequestStatus.Error' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:error type:kotlin.Throwable visibility:private [final]' type=kotlin.Throwable origin=null receiver: GET_VAR ': .NetRequestStatus.Error.NetRequestStatus.Error> declared in .NetRequestStatus.Error.component1' type=.NetRequestStatus.Error.NetRequestStatus.Error> origin=null FUN GENERATED_DATA_CLASS_MEMBER name:component2 visibility:public modality:FINAL <> ($this:.NetRequestStatus.Error.NetRequestStatus.Error>) returnType:T of .NetRequestStatus.Error? [operator] $this: VALUE_PARAMETER name: type:.NetRequestStatus.Error.NetRequestStatus.Error> BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component2 (): T of .NetRequestStatus.Error? [operator] declared in .NetRequestStatus.Error' + RETURN type=kotlin.Nothing from='public final fun component2 (): T of .NetRequestStatus.Error? declared in .NetRequestStatus.Error' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:value type:T of .NetRequestStatus.Error? visibility:private [final]' type=T of .NetRequestStatus.Error? origin=null receiver: GET_VAR ': .NetRequestStatus.Error.NetRequestStatus.Error> declared in .NetRequestStatus.Error.component2' type=.NetRequestStatus.Error.NetRequestStatus.Error> origin=null FUN GENERATED_DATA_CLASS_MEMBER name:copy visibility:public modality:FINAL <> ($this:.NetRequestStatus.Error.NetRequestStatus.Error>, error:kotlin.Throwable, value:T of .NetRequestStatus.Error?) returnType:.NetRequestStatus.Error.NetRequestStatus.Error> @@ -74,13 +74,13 @@ FILE fqName: fileName:/kt45236.kt receiver: GET_VAR ': .NetRequestStatus.Error.NetRequestStatus.Error> declared in .NetRequestStatus.Error.copy' type=.NetRequestStatus.Error.NetRequestStatus.Error> origin=null BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun copy (error: kotlin.Throwable, value: T of .NetRequestStatus.Error?): .NetRequestStatus.Error.NetRequestStatus.Error> declared in .NetRequestStatus.Error' - CONSTRUCTOR_CALL 'public constructor (error: kotlin.Throwable, value: T of .NetRequestStatus.Error?) [primary] declared in .NetRequestStatus.Error' type=.NetRequestStatus.Error.NetRequestStatus.Error> origin=null + CONSTRUCTOR_CALL 'public constructor (error: kotlin.Throwable, value: T of .NetRequestStatus.Error?) declared in .NetRequestStatus.Error' type=.NetRequestStatus.Error.NetRequestStatus.Error> origin=null : kotlin.Any error: GET_VAR 'error: kotlin.Throwable declared in .NetRequestStatus.Error.copy' type=kotlin.Throwable origin=null value: GET_VAR 'value: T of .NetRequestStatus.Error? declared in .NetRequestStatus.Error.copy' type=T of .NetRequestStatus.Error? origin=null FUN GENERATED_DATA_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:.NetRequestStatus.Error.NetRequestStatus.Error>, other:kotlin.Any?) returnType:kotlin.Boolean [operator] overridden: - public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any $this: VALUE_PARAMETER name: type:.NetRequestStatus.Error.NetRequestStatus.Error> VALUE_PARAMETER name:other index:0 type:kotlin.Any? BLOCK_BODY @@ -89,38 +89,38 @@ FILE fqName: fileName:/kt45236.kt 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 ': .NetRequestStatus.Error.NetRequestStatus.Error> declared in .NetRequestStatus.Error.equals' type=.NetRequestStatus.Error.NetRequestStatus.Error> origin=null arg1: GET_VAR 'other: kotlin.Any? declared in .NetRequestStatus.Error.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .NetRequestStatus.Error' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .NetRequestStatus.Error' CONST Boolean type=kotlin.Boolean value=true WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=.NetRequestStatus.Error.NetRequestStatus.Error> GET_VAR 'other: kotlin.Any? declared in .NetRequestStatus.Error.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .NetRequestStatus.Error' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .NetRequestStatus.Error' CONST Boolean type=kotlin.Boolean value=false VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:.NetRequestStatus.Error.NetRequestStatus.Error> [val] TYPE_OP type=.NetRequestStatus.Error.NetRequestStatus.Error> origin=CAST typeOperand=.NetRequestStatus.Error.NetRequestStatus.Error> GET_VAR 'other: kotlin.Any? declared in .NetRequestStatus.Error.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 + if: CALL 'public final fun not (): kotlin.Boolean 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:error type:kotlin.Throwable visibility:private [final]' type=kotlin.Throwable origin=null receiver: GET_VAR ': .NetRequestStatus.Error.NetRequestStatus.Error> declared in .NetRequestStatus.Error.equals' type=.NetRequestStatus.Error.NetRequestStatus.Error> origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:error type:kotlin.Throwable visibility:private [final]' type=kotlin.Throwable origin=null - receiver: GET_VAR 'val tmp_0: .NetRequestStatus.Error.NetRequestStatus.Error> [val] declared in .NetRequestStatus.Error.equals' type=.NetRequestStatus.Error.NetRequestStatus.Error> origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .NetRequestStatus.Error' + receiver: GET_VAR 'val tmp_0: .NetRequestStatus.Error.NetRequestStatus.Error> declared in .NetRequestStatus.Error.equals' type=.NetRequestStatus.Error.NetRequestStatus.Error> origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .NetRequestStatus.Error' CONST Boolean type=kotlin.Boolean value=false 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 + if: CALL 'public final fun not (): kotlin.Boolean 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:value type:T of .NetRequestStatus.Error? visibility:private [final]' type=T of .NetRequestStatus.Error? origin=null receiver: GET_VAR ': .NetRequestStatus.Error.NetRequestStatus.Error> declared in .NetRequestStatus.Error.equals' type=.NetRequestStatus.Error.NetRequestStatus.Error> origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:value type:T of .NetRequestStatus.Error? visibility:private [final]' type=T of .NetRequestStatus.Error? origin=null - receiver: GET_VAR 'val tmp_0: .NetRequestStatus.Error.NetRequestStatus.Error> [val] declared in .NetRequestStatus.Error.equals' type=.NetRequestStatus.Error.NetRequestStatus.Error> origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .NetRequestStatus.Error' + receiver: GET_VAR 'val tmp_0: .NetRequestStatus.Error.NetRequestStatus.Error> declared in .NetRequestStatus.Error.equals' type=.NetRequestStatus.Error.NetRequestStatus.Error> origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .NetRequestStatus.Error' CONST Boolean type=kotlin.Boolean value=false - RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .NetRequestStatus.Error' + RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .NetRequestStatus.Error' CONST Boolean type=kotlin.Boolean value=true FUN GENERATED_DATA_CLASS_MEMBER name:hashCode visibility:public modality:OPEN <> ($this:.NetRequestStatus.Error.NetRequestStatus.Error>) returnType:kotlin.Int overridden: @@ -128,13 +128,13 @@ FILE fqName: fileName:/kt45236.kt $this: VALUE_PARAMETER name: type:.NetRequestStatus.Error.NetRequestStatus.Error> BLOCK_BODY VAR name:result type:kotlin.Int [var] - CALL 'public open fun hashCode (): kotlin.Int [fake_override] declared in kotlin.Throwable' type=kotlin.Int origin=null + CALL 'public open fun hashCode (): kotlin.Int declared in kotlin.Throwable' type=kotlin.Int origin=null $this: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:error type:kotlin.Throwable visibility:private [final]' type=kotlin.Throwable origin=null receiver: GET_VAR ': .NetRequestStatus.Error.NetRequestStatus.Error> declared in .NetRequestStatus.Error.hashCode' type=.NetRequestStatus.Error.NetRequestStatus.Error> origin=null - SET_VAR 'var result: kotlin.Int [var] declared in .NetRequestStatus.Error.hashCode' type=kotlin.Unit origin=EQ - CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: CALL 'public final fun times (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'var result: kotlin.Int [var] declared in .NetRequestStatus.Error.hashCode' type=kotlin.Int origin=null + SET_VAR 'var result: kotlin.Int declared in .NetRequestStatus.Error.hashCode' type=kotlin.Unit origin=EQ + CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: CALL 'public final fun times (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'var result: kotlin.Int declared in .NetRequestStatus.Error.hashCode' type=kotlin.Int origin=null other: CONST Int type=kotlin.Int value=31 other: WHEN type=kotlin.Int origin=null BRANCH @@ -149,7 +149,7 @@ FILE fqName: fileName:/kt45236.kt $this: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:value type:T of .NetRequestStatus.Error? visibility:private [final]' type=T of .NetRequestStatus.Error? origin=null receiver: GET_VAR ': .NetRequestStatus.Error.NetRequestStatus.Error> declared in .NetRequestStatus.Error.hashCode' type=.NetRequestStatus.Error.NetRequestStatus.Error> origin=null RETURN type=kotlin.Nothing from='public open fun hashCode (): kotlin.Int declared in .NetRequestStatus.Error' - GET_VAR 'var result: kotlin.Int [var] declared in .NetRequestStatus.Error.hashCode' type=kotlin.Int origin=null + GET_VAR 'var result: kotlin.Int declared in .NetRequestStatus.Error.hashCode' type=kotlin.Int origin=null FUN GENERATED_DATA_CLASS_MEMBER name:toString visibility:public modality:OPEN <> ($this:.NetRequestStatus.Error.NetRequestStatus.Error>) returnType:kotlin.String overridden: public open fun toString (): kotlin.String declared in kotlin.Any @@ -166,7 +166,7 @@ FILE fqName: fileName:/kt45236.kt CONST String type=kotlin.String value=")" 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -190,15 +190,15 @@ FILE fqName: fileName:/kt45236.kt TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any] reified:false BLOCK_BODY VAR name:nextTerminal type:.NetRequestStatus.successOrThrow> [val] - CONSTRUCTOR_CALL 'public constructor (error: kotlin.Throwable, value: T of .NetRequestStatus.Error?) [primary] declared in .NetRequestStatus.Error' type=.NetRequestStatus.Error.successOrThrow> origin=null + CONSTRUCTOR_CALL 'public constructor (error: kotlin.Throwable, value: T of .NetRequestStatus.Error?) declared in .NetRequestStatus.Error' type=.NetRequestStatus.Error.successOrThrow> origin=null : T of .successOrThrow error: CONSTRUCTOR_CALL 'public constructor () declared in java.lang.Exception' type=java.lang.Exception origin=null WHEN type=kotlin.Unit origin=IF BRANCH if: CALL 'public final fun isError (): kotlin.Boolean declared in ' type=kotlin.Boolean origin=null : T of .successOrThrow - $receiver: GET_VAR 'val nextTerminal: .NetRequestStatus.successOrThrow> [val] declared in .successOrThrow' type=.NetRequestStatus.successOrThrow> origin=null + $receiver: GET_VAR 'val nextTerminal: .NetRequestStatus.successOrThrow> declared in .successOrThrow' type=.NetRequestStatus.successOrThrow> origin=null then: THROW type=kotlin.Nothing CALL 'public final fun (): kotlin.Throwable declared in .NetRequestStatus.Error' type=kotlin.Throwable origin=GET_PROPERTY $this: TYPE_OP type=.NetRequestStatus.Error.successOrThrow> origin=IMPLICIT_CAST typeOperand=.NetRequestStatus.Error.successOrThrow> - GET_VAR 'val nextTerminal: .NetRequestStatus.successOrThrow> [val] declared in .successOrThrow' type=.NetRequestStatus.successOrThrow> origin=null + GET_VAR 'val nextTerminal: .NetRequestStatus.successOrThrow> declared in .successOrThrow' type=.NetRequestStatus.successOrThrow> origin=null diff --git a/compiler/testData/ir/irText/regressions/kt45236.ir.txt b/compiler/testData/ir/irText/regressions/kt45236.ir.txt index 48e454d83cf..3550c5f42b9 100644 --- a/compiler/testData/ir/irText/regressions/kt45236.ir.txt +++ b/compiler/testData/ir/irText/regressions/kt45236.ir.txt @@ -6,7 +6,7 @@ FILE fqName: fileName:/kt45236.kt TYPE_PARAMETER name:T index:0 variance:out superTypes:[kotlin.Any] reified:false CONSTRUCTOR visibility:protected <> () returnType:.NetRequestStatus.NetRequestStatus> [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:NetRequestStatus modality:SEALED visibility:public superTypes:[kotlin.Any]' PROPERTY name:value visibility:public modality:ABSTRACT [val] FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:ABSTRACT <> ($this:.NetRequestStatus.NetRequestStatus>) returnType:T of .NetRequestStatus? @@ -21,7 +21,7 @@ FILE fqName: fileName:/kt45236.kt EXPRESSION_BODY CONST Null type=kotlin.Nothing? value=null BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'protected constructor () [primary] declared in .NetRequestStatus' + DELEGATING_CONSTRUCTOR_CALL 'protected constructor () declared in .NetRequestStatus' : T of .NetRequestStatus.Error INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Error modality:FINAL visibility:public [data] superTypes:[.NetRequestStatus.NetRequestStatus.Error>]' PROPERTY name:error visibility:public modality:FINAL [val] @@ -37,7 +37,7 @@ FILE fqName: fileName:/kt45236.kt receiver: GET_VAR ': .NetRequestStatus.Error.NetRequestStatus.Error> declared in .NetRequestStatus.Error.' type=.NetRequestStatus.Error.NetRequestStatus.Error> origin=null PROPERTY name:value visibility:public modality:OPEN [val] overridden: - public abstract value: T of .NetRequestStatus? [val] + public abstract value: T of .NetRequestStatus? FIELD PROPERTY_BACKING_FIELD name:value type:T of .NetRequestStatus.Error? visibility:private [final] EXPRESSION_BODY GET_VAR 'value: T of .NetRequestStatus.Error? declared in .NetRequestStatus.Error.' type=T of .NetRequestStatus.Error? origin=INITIALIZE_PROPERTY_FROM_PARAMETER @@ -53,13 +53,13 @@ FILE fqName: fileName:/kt45236.kt FUN GENERATED_DATA_CLASS_MEMBER name:component1 visibility:public modality:FINAL <> ($this:.NetRequestStatus.Error.NetRequestStatus.Error>) returnType:kotlin.Throwable [operator] $this: VALUE_PARAMETER name: type:.NetRequestStatus.Error.NetRequestStatus.Error> BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Throwable [operator] declared in .NetRequestStatus.Error' + RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Throwable declared in .NetRequestStatus.Error' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:error type:kotlin.Throwable visibility:private [final]' type=kotlin.Throwable origin=null receiver: GET_VAR ': .NetRequestStatus.Error.NetRequestStatus.Error> declared in .NetRequestStatus.Error.component1' type=.NetRequestStatus.Error.NetRequestStatus.Error> origin=null FUN GENERATED_DATA_CLASS_MEMBER name:component2 visibility:public modality:FINAL <> ($this:.NetRequestStatus.Error.NetRequestStatus.Error>) returnType:T of .NetRequestStatus.Error? [operator] $this: VALUE_PARAMETER name: type:.NetRequestStatus.Error.NetRequestStatus.Error> BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component2 (): T of .NetRequestStatus.Error? [operator] declared in .NetRequestStatus.Error' + RETURN type=kotlin.Nothing from='public final fun component2 (): T of .NetRequestStatus.Error? declared in .NetRequestStatus.Error' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:value type:T of .NetRequestStatus.Error? visibility:private [final]' type=T of .NetRequestStatus.Error? origin=null receiver: GET_VAR ': .NetRequestStatus.Error.NetRequestStatus.Error> declared in .NetRequestStatus.Error.component2' type=.NetRequestStatus.Error.NetRequestStatus.Error> origin=null FUN GENERATED_DATA_CLASS_MEMBER name:copy visibility:public modality:FINAL <> ($this:.NetRequestStatus.Error.NetRequestStatus.Error>, error:kotlin.Throwable, value:T of .NetRequestStatus.Error?) returnType:.NetRequestStatus.Error.NetRequestStatus.Error> @@ -74,13 +74,13 @@ FILE fqName: fileName:/kt45236.kt receiver: GET_VAR ': .NetRequestStatus.Error.NetRequestStatus.Error> declared in .NetRequestStatus.Error.copy' type=.NetRequestStatus.Error.NetRequestStatus.Error> origin=null BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun copy (error: kotlin.Throwable, value: T of .NetRequestStatus.Error?): .NetRequestStatus.Error.NetRequestStatus.Error> declared in .NetRequestStatus.Error' - CONSTRUCTOR_CALL 'public constructor (error: kotlin.Throwable, value: T of .NetRequestStatus.Error?) [primary] declared in .NetRequestStatus.Error' type=.NetRequestStatus.Error.NetRequestStatus.Error> origin=null + CONSTRUCTOR_CALL 'public constructor (error: kotlin.Throwable, value: T of .NetRequestStatus.Error?) declared in .NetRequestStatus.Error' type=.NetRequestStatus.Error.NetRequestStatus.Error> origin=null : T of .NetRequestStatus.Error error: GET_VAR 'error: kotlin.Throwable declared in .NetRequestStatus.Error.copy' type=kotlin.Throwable origin=null value: GET_VAR 'value: T of .NetRequestStatus.Error? declared in .NetRequestStatus.Error.copy' type=T of .NetRequestStatus.Error? origin=null FUN GENERATED_DATA_CLASS_MEMBER name:toString visibility:public modality:OPEN <> ($this:.NetRequestStatus.Error.NetRequestStatus.Error>) returnType:kotlin.String overridden: - public open fun toString (): kotlin.String [fake_override] declared in .NetRequestStatus + public open fun toString (): kotlin.String declared in .NetRequestStatus $this: VALUE_PARAMETER name: type:.NetRequestStatus.Error.NetRequestStatus.Error> BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun toString (): kotlin.String declared in .NetRequestStatus.Error' @@ -96,17 +96,17 @@ FILE fqName: fileName:/kt45236.kt CONST String type=kotlin.String value=")" FUN GENERATED_DATA_CLASS_MEMBER name:hashCode visibility:public modality:OPEN <> ($this:.NetRequestStatus.Error.NetRequestStatus.Error>) returnType:kotlin.Int overridden: - public open fun hashCode (): kotlin.Int [fake_override] declared in .NetRequestStatus + public open fun hashCode (): kotlin.Int declared in .NetRequestStatus $this: VALUE_PARAMETER name: type:.NetRequestStatus.Error.NetRequestStatus.Error> BLOCK_BODY VAR name:result type:kotlin.Int [var] - CALL 'public open fun hashCode (): kotlin.Int [fake_override] declared in kotlin.Throwable' type=kotlin.Int origin=null + CALL 'public open fun hashCode (): kotlin.Int declared in kotlin.Throwable' type=kotlin.Int origin=null $this: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:error type:kotlin.Throwable visibility:private [final]' type=kotlin.Throwable origin=null receiver: GET_VAR ': .NetRequestStatus.Error.NetRequestStatus.Error> declared in .NetRequestStatus.Error.hashCode' type=.NetRequestStatus.Error.NetRequestStatus.Error> origin=null - SET_VAR 'var result: kotlin.Int [var] declared in .NetRequestStatus.Error.hashCode' type=kotlin.Unit origin=EQ - CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: CALL 'public final fun times (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'var result: kotlin.Int [var] declared in .NetRequestStatus.Error.hashCode' type=kotlin.Int origin=null + SET_VAR 'var result: kotlin.Int declared in .NetRequestStatus.Error.hashCode' type=kotlin.Unit origin=EQ + CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: CALL 'public final fun times (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'var result: kotlin.Int declared in .NetRequestStatus.Error.hashCode' type=kotlin.Int origin=null other: CONST Int type=kotlin.Int value=31 other: WHEN type=kotlin.Int origin=null BRANCH @@ -121,10 +121,10 @@ FILE fqName: fileName:/kt45236.kt $this: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:value type:T of .NetRequestStatus.Error? visibility:private [final]' type=T of .NetRequestStatus.Error? origin=null receiver: GET_VAR ': .NetRequestStatus.Error.NetRequestStatus.Error> declared in .NetRequestStatus.Error.hashCode' type=.NetRequestStatus.Error.NetRequestStatus.Error> origin=null RETURN type=kotlin.Nothing from='public open fun hashCode (): kotlin.Int declared in .NetRequestStatus.Error' - GET_VAR 'var result: kotlin.Int [var] declared in .NetRequestStatus.Error.hashCode' type=kotlin.Int origin=null + GET_VAR 'var result: kotlin.Int declared in .NetRequestStatus.Error.hashCode' type=kotlin.Int origin=null FUN GENERATED_DATA_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:.NetRequestStatus.Error.NetRequestStatus.Error>, other:kotlin.Any?) returnType:kotlin.Boolean [operator] overridden: - public open fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .NetRequestStatus + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .NetRequestStatus $this: VALUE_PARAMETER name: type:.NetRequestStatus.Error.NetRequestStatus.Error> VALUE_PARAMETER name:other index:0 type:kotlin.Any? BLOCK_BODY @@ -133,42 +133,42 @@ FILE fqName: fileName:/kt45236.kt 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 ': .NetRequestStatus.Error.NetRequestStatus.Error> declared in .NetRequestStatus.Error.equals' type=.NetRequestStatus.Error.NetRequestStatus.Error> origin=null arg1: GET_VAR 'other: kotlin.Any? declared in .NetRequestStatus.Error.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .NetRequestStatus.Error' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .NetRequestStatus.Error' CONST Boolean type=kotlin.Boolean value=true WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=.NetRequestStatus.Error.NetRequestStatus.Error> GET_VAR 'other: kotlin.Any? declared in .NetRequestStatus.Error.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .NetRequestStatus.Error' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .NetRequestStatus.Error' CONST Boolean type=kotlin.Boolean value=false VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:.NetRequestStatus.Error.NetRequestStatus.Error> [val] TYPE_OP type=.NetRequestStatus.Error.NetRequestStatus.Error> origin=CAST typeOperand=.NetRequestStatus.Error.NetRequestStatus.Error> GET_VAR 'other: kotlin.Any? declared in .NetRequestStatus.Error.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 + if: CALL 'public final fun not (): kotlin.Boolean 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:error type:kotlin.Throwable visibility:private [final]' type=kotlin.Throwable origin=null receiver: GET_VAR ': .NetRequestStatus.Error.NetRequestStatus.Error> declared in .NetRequestStatus.Error.equals' type=.NetRequestStatus.Error.NetRequestStatus.Error> origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:error type:kotlin.Throwable visibility:private [final]' type=kotlin.Throwable origin=null - receiver: GET_VAR 'val tmp_0: .NetRequestStatus.Error.NetRequestStatus.Error> [val] declared in .NetRequestStatus.Error.equals' type=.NetRequestStatus.Error.NetRequestStatus.Error> origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .NetRequestStatus.Error' + receiver: GET_VAR 'val tmp_0: .NetRequestStatus.Error.NetRequestStatus.Error> declared in .NetRequestStatus.Error.equals' type=.NetRequestStatus.Error.NetRequestStatus.Error> origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .NetRequestStatus.Error' CONST Boolean type=kotlin.Boolean value=false 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 + if: CALL 'public final fun not (): kotlin.Boolean 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:value type:T of .NetRequestStatus.Error? visibility:private [final]' type=T of .NetRequestStatus.Error? origin=null receiver: GET_VAR ': .NetRequestStatus.Error.NetRequestStatus.Error> declared in .NetRequestStatus.Error.equals' type=.NetRequestStatus.Error.NetRequestStatus.Error> origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:value type:T of .NetRequestStatus.Error? visibility:private [final]' type=T of .NetRequestStatus.Error? origin=null - receiver: GET_VAR 'val tmp_0: .NetRequestStatus.Error.NetRequestStatus.Error> [val] declared in .NetRequestStatus.Error.equals' type=.NetRequestStatus.Error.NetRequestStatus.Error> origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .NetRequestStatus.Error' + receiver: GET_VAR 'val tmp_0: .NetRequestStatus.Error.NetRequestStatus.Error> declared in .NetRequestStatus.Error.equals' type=.NetRequestStatus.Error.NetRequestStatus.Error> origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .NetRequestStatus.Error' CONST Boolean type=kotlin.Boolean value=false - RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .NetRequestStatus.Error' + RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .NetRequestStatus.Error' CONST Boolean type=kotlin.Boolean value=true 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -185,13 +185,13 @@ FILE fqName: fileName:/kt45236.kt TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any] reified:false $receiver: VALUE_PARAMETER name: type:.NetRequestStatus.isError> BLOCK_BODY - CALL 'public final fun contract (builder: @[ExtensionFunctionType] kotlin.Function1): kotlin.Unit [inline] declared in kotlin.contracts' type=kotlin.Unit origin=null + CALL 'public final fun contract (builder: @[ExtensionFunctionType] kotlin.Function1): kotlin.Unit declared in kotlin.contracts' type=kotlin.Unit origin=null builder: FUN_EXPR type=@[ExtensionFunctionType] kotlin.Function1 origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> ($receiver:kotlin.contracts.ContractBuilder) returnType:kotlin.Unit $receiver: VALUE_PARAMETER name:$this$contract type:kotlin.contracts.ContractBuilder BLOCK_BODY TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit - CALL 'public abstract fun implies (booleanExpression: kotlin.Boolean): kotlin.contracts.ConditionalEffect [fake_override,infix] declared in kotlin.contracts.Returns' type=kotlin.contracts.ConditionalEffect origin=null + CALL 'public abstract fun implies (booleanExpression: kotlin.Boolean): kotlin.contracts.ConditionalEffect declared in kotlin.contracts.Returns' type=kotlin.contracts.ConditionalEffect origin=null $this: CALL 'public abstract fun returns (value: kotlin.Any?): kotlin.contracts.Returns declared in kotlin.contracts.ContractBuilder' type=kotlin.contracts.Returns origin=null $this: GET_VAR '$this$contract: kotlin.contracts.ContractBuilder declared in .isError.' type=kotlin.contracts.ContractBuilder origin=null value: CONST Boolean type=kotlin.Boolean value=true @@ -204,15 +204,15 @@ FILE fqName: fileName:/kt45236.kt TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any] reified:false BLOCK_BODY VAR name:nextTerminal type:.NetRequestStatus.successOrThrow> [val] - CONSTRUCTOR_CALL 'public constructor (error: kotlin.Throwable, value: T of .NetRequestStatus.Error?) [primary] declared in .NetRequestStatus.Error' type=.NetRequestStatus.Error.successOrThrow> origin=null + CONSTRUCTOR_CALL 'public constructor (error: kotlin.Throwable, value: T of .NetRequestStatus.Error?) declared in .NetRequestStatus.Error' type=.NetRequestStatus.Error.successOrThrow> origin=null : T of .successOrThrow error: CONSTRUCTOR_CALL 'public constructor () declared in java.lang.Exception' type=java.lang.Exception origin=null WHEN type=kotlin.Unit origin=IF BRANCH if: CALL 'public final fun isError (): kotlin.Boolean declared in ' type=kotlin.Boolean origin=null : T of .successOrThrow - $receiver: GET_VAR 'val nextTerminal: .NetRequestStatus.successOrThrow> [val] declared in .successOrThrow' type=.NetRequestStatus.successOrThrow> origin=null + $receiver: GET_VAR 'val nextTerminal: .NetRequestStatus.successOrThrow> declared in .successOrThrow' type=.NetRequestStatus.successOrThrow> origin=null then: THROW type=kotlin.Nothing CALL 'public final fun (): kotlin.Throwable declared in .NetRequestStatus.Error' type=kotlin.Throwable origin=GET_PROPERTY $this: TYPE_OP type=.NetRequestStatus.Error.successOrThrow> origin=IMPLICIT_CAST typeOperand=.NetRequestStatus.Error.successOrThrow> - GET_VAR 'val nextTerminal: .NetRequestStatus.successOrThrow> [val] declared in .successOrThrow' type=.NetRequestStatus.successOrThrow> origin=null + GET_VAR 'val nextTerminal: .NetRequestStatus.successOrThrow> declared in .successOrThrow' type=.NetRequestStatus.successOrThrow> origin=null diff --git a/compiler/testData/ir/irText/regressions/newInferenceFixationOrder1.ir.txt b/compiler/testData/ir/irText/regressions/newInferenceFixationOrder1.ir.txt index f4d27c6c46b..2d7df81e7f3 100644 --- a/compiler/testData/ir/irText/regressions/newInferenceFixationOrder1.ir.txt +++ b/compiler/testData/ir/irText/regressions/newInferenceFixationOrder1.ir.txt @@ -4,14 +4,14 @@ FILE fqName: fileName:/newInferenceFixationOrder1.kt TYPE_PARAMETER name:Y index:1 variance: superTypes:[kotlin.Any?] reified:false BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun foo (): kotlin.Function1.foo, Y of .foo> declared in ' - CALL 'public final fun TODO (): kotlin.Nothing [inline] declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin.StandardKt' type=kotlin.Nothing origin=null CLASS INTERFACE name:Inv2 modality:ABSTRACT visibility:public superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Inv2.Inv2, B of .Inv2> TYPE_PARAMETER name:A index:0 variance: superTypes:[kotlin.Any?] reified:false TYPE_PARAMETER name:B index:1 variance: superTypes:[kotlin.Any?] reified:false 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -30,7 +30,7 @@ FILE fqName: fileName:/newInferenceFixationOrder1.kt VALUE_PARAMETER name:f index:2 type:kotlin.Function1.check, R of .check> BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun check (x: T of .check, y: R of .check, f: kotlin.Function1.check, R of .check>): .Inv2.check, R of .check> declared in ' - CALL 'public final fun TODO (): kotlin.Nothing [inline] declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin.StandardKt' type=kotlin.Nothing origin=null FUN name:test visibility:public modality:FINAL <> () returnType:.Inv2 BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test (): .Inv2 declared in ' diff --git a/compiler/testData/ir/irText/regressions/typeAliasCtorForGenericClass.fir.ir.txt b/compiler/testData/ir/irText/regressions/typeAliasCtorForGenericClass.fir.ir.txt index 1a360e60e92..c4422921521 100644 --- a/compiler/testData/ir/irText/regressions/typeAliasCtorForGenericClass.fir.ir.txt +++ b/compiler/testData/ir/irText/regressions/typeAliasCtorForGenericClass.fir.ir.txt @@ -9,7 +9,7 @@ FILE fqName: fileName:/typeAliasCtorForGenericClass.kt CONSTRUCTOR visibility:public <> (q:Q of .A) returnType:.A.A> [primary] VALUE_PARAMETER name:q index:0 type:Q of .A BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:A modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:q visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:q type:Q of .A visibility:private [final] @@ -24,7 +24,7 @@ FILE fqName: fileName:/typeAliasCtorForGenericClass.kt receiver: GET_VAR ': .A.A> declared in .A.' type=.A.A> 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -38,10 +38,10 @@ FILE fqName: fileName:/typeAliasCtorForGenericClass.kt FUN name:bar visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY VAR name:b type:.A [val] - CONSTRUCTOR_CALL 'public constructor (q: Q of .A) [primary] declared in .A' type=.A origin=null + CONSTRUCTOR_CALL 'public constructor (q: Q of .A) declared in .A' type=.A origin=null : kotlin.Int q: CONST Int type=kotlin.Int value=2 VAR name:b2 type:.A<.A> [val] - CONSTRUCTOR_CALL 'public constructor (q: Q of .A) [primary] declared in .A' type=.A<.A> origin=null + CONSTRUCTOR_CALL 'public constructor (q: Q of .A) declared in .A' type=.A<.A> origin=null : kotlin.Int - q: GET_VAR 'val b: .A [val] declared in .bar' type=.A origin=null + q: GET_VAR 'val b: .A declared in .bar' type=.A origin=null diff --git a/compiler/testData/ir/irText/regressions/typeAliasCtorForGenericClass.ir.txt b/compiler/testData/ir/irText/regressions/typeAliasCtorForGenericClass.ir.txt index 6c48e4548a3..9d0d95eba7e 100644 --- a/compiler/testData/ir/irText/regressions/typeAliasCtorForGenericClass.ir.txt +++ b/compiler/testData/ir/irText/regressions/typeAliasCtorForGenericClass.ir.txt @@ -5,7 +5,7 @@ FILE fqName: fileName:/typeAliasCtorForGenericClass.kt CONSTRUCTOR visibility:public <> (q:Q of .A) returnType:.A.A> [primary] VALUE_PARAMETER name:q index:0 type:Q of .A BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:A modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:q visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:q type:Q of .A visibility:private [final] @@ -20,7 +20,7 @@ FILE fqName: fileName:/typeAliasCtorForGenericClass.kt receiver: GET_VAR ': .A.A> declared in .A.' type=.A.A> 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -38,10 +38,10 @@ FILE fqName: fileName:/typeAliasCtorForGenericClass.kt FUN name:bar visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY VAR name:b type:.A{ .B } [val] - CONSTRUCTOR_CALL 'public constructor (q: Q of .A) [primary] declared in .A' type=.A origin=null + CONSTRUCTOR_CALL 'public constructor (q: Q of .A) declared in .A' type=.A origin=null : kotlin.Int q: CONST Int type=kotlin.Int value=2 VAR name:b2 type:.A<.A>{ .B2 } [val] - CONSTRUCTOR_CALL 'public constructor (q: Q of .A) [primary] declared in .A' type=.A<.A> origin=null + CONSTRUCTOR_CALL 'public constructor (q: Q of .A) declared in .A' type=.A<.A> origin=null : .A - q: GET_VAR 'val b: .A{ .B } [val] declared in .bar' type=.A{ .B } origin=null + q: GET_VAR 'val b: .A{ .B } declared in .bar' type=.A{ .B } origin=null diff --git a/compiler/testData/ir/irText/regressions/typeParametersInImplicitCast.fir.ir.txt b/compiler/testData/ir/irText/regressions/typeParametersInImplicitCast.fir.ir.txt index 5371f5ba9c7..c5927898d5c 100644 --- a/compiler/testData/ir/irText/regressions/typeParametersInImplicitCast.fir.ir.txt +++ b/compiler/testData/ir/irText/regressions/typeParametersInImplicitCast.fir.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/typeParametersInImplicitCast.kt VALUE_PARAMETER name:lss index:0 type:kotlin.collections.List.problematic>> BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun problematic (lss: kotlin.collections.List.problematic>>): kotlin.collections.List.problematic> declared in ' - CALL 'public final fun flatMap (transform: kotlin.Function1>): kotlin.collections.List [inline] declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List<@[FlexibleNullability] T of .problematic?> origin=null + CALL 'public final fun flatMap (transform: kotlin.Function1>): kotlin.collections.List declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List<@[FlexibleNullability] T of .problematic?> origin=null : kotlin.collections.List.problematic> : @[FlexibleNullability] T of .problematic? $receiver: GET_VAR 'lss: kotlin.collections.List.problematic>> declared in .problematic' type=kotlin.collections.List.problematic>> origin=null diff --git a/compiler/testData/ir/irText/regressions/typeParametersInImplicitCast.ir.txt b/compiler/testData/ir/irText/regressions/typeParametersInImplicitCast.ir.txt index d6ee139b3fd..e1b00ae132e 100644 --- a/compiler/testData/ir/irText/regressions/typeParametersInImplicitCast.ir.txt +++ b/compiler/testData/ir/irText/regressions/typeParametersInImplicitCast.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/typeParametersInImplicitCast.kt VALUE_PARAMETER name:lss index:0 type:kotlin.collections.List.problematic>> BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun problematic (lss: kotlin.collections.List.problematic>>): kotlin.collections.List.problematic> declared in ' - CALL 'public final fun flatMap (transform: kotlin.Function1>): kotlin.collections.List [inline] declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List<@[FlexibleNullability] T of .problematic?> origin=null + CALL 'public final fun flatMap (transform: kotlin.Function1>): kotlin.collections.List declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List<@[FlexibleNullability] T of .problematic?> origin=null : kotlin.collections.List.problematic> : @[FlexibleNullability] T of .problematic? $receiver: GET_VAR 'lss: kotlin.collections.List.problematic>> declared in .problematic' type=kotlin.collections.List.problematic>> origin=null diff --git a/compiler/testData/ir/irText/singletons/companion.ir.txt b/compiler/testData/ir/irText/singletons/companion.ir.txt index 569e08e032e..7b5e4b47d1a 100644 --- a/compiler/testData/ir/irText/singletons/companion.ir.txt +++ b/compiler/testData/ir/irText/singletons/companion.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/companion.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Z CONSTRUCTOR visibility:public <> () returnType:.Z [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Z modality:FINAL visibility:public superTypes:[kotlin.Any]' FUN name:test2 visibility:public modality:FINAL <> ($this:.Z) returnType:kotlin.Unit $this: VALUE_PARAMETER name: type:.Z @@ -14,14 +14,14 @@ FILE fqName: fileName:/companion.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Z.Companion CONSTRUCTOR visibility:private <> () returnType:.Z.Companion [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:Companion modality:FINAL visibility:public [companion] superTypes:[kotlin.Any]' FUN name:test visibility:public modality:FINAL <> ($this:.Z.Companion) returnType:kotlin.Unit $this: VALUE_PARAMETER name: type:.Z.Companion 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -34,7 +34,7 @@ FILE fqName: fileName:/companion.kt $this: VALUE_PARAMETER name: type: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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/singletons/enumEntry.fir.ir.txt b/compiler/testData/ir/irText/singletons/enumEntry.fir.ir.txt index 9a95318e6b4..c60dba0ab49 100644 --- a/compiler/testData/ir/irText/singletons/enumEntry.fir.ir.txt +++ b/compiler/testData/ir/irText/singletons/enumEntry.fir.ir.txt @@ -3,17 +3,17 @@ FILE fqName: fileName:/enumEntry.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Z CONSTRUCTOR visibility:private <> () returnType:.Z [primary] BLOCK_BODY - ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) [primary] declared in kotlin.Enum' + ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) declared in kotlin.Enum' : .Z INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_CLASS name:Z modality:OPEN visibility:public superTypes:[kotlin.Enum<.Z>]' ENUM_ENTRY name:ENTRY init: EXPRESSION_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor () [primary] declared in .Z.ENTRY' + ENUM_CONSTRUCTOR_CALL 'private constructor () declared in .Z.ENTRY' class: CLASS ENUM_ENTRY name:ENTRY modality:FINAL visibility:private superTypes:[.Z] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Z.ENTRY CONSTRUCTOR visibility:private <> () returnType:.Z.ENTRY [primary] BLOCK_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor () [primary] declared in .Z' + ENUM_CONSTRUCTOR_CALL 'private constructor () declared in .Z' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_ENTRY name:ENTRY modality:FINAL visibility:private superTypes:[.Z]' FUN name:test visibility:public modality:FINAL <> ($this:.Z.ENTRY) returnType:kotlin.Unit $this: VALUE_PARAMETER name: type:.Z.ENTRY @@ -23,7 +23,7 @@ FILE fqName: fileName:/enumEntry.kt CONSTRUCTOR visibility:public <> ($this:.Z.ENTRY) returnType:.Z.ENTRY.A [primary] $outer: VALUE_PARAMETER name: type:.Z.ENTRY BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:A modality:FINAL visibility:local [inner] superTypes:[kotlin.Any]' FUN name:test2 visibility:public modality:FINAL <> ($this:.Z.ENTRY.A) returnType:kotlin.Unit $this: VALUE_PARAMETER name: type:.Z.ENTRY.A @@ -32,7 +32,7 @@ FILE fqName: fileName:/enumEntry.kt $this: GET_VAR ': .Z.ENTRY declared in .Z.ENTRY' type=.Z.ENTRY 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -45,51 +45,51 @@ FILE fqName: fileName:/enumEntry.kt $this: VALUE_PARAMETER name: type:kotlin.Any FUN FAKE_OVERRIDE name:clone visibility:protected modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Any [fake_override] overridden: - protected final fun clone (): kotlin.Any [fake_override] declared in .Z + protected final fun clone (): kotlin.Any declared in .Z $this: VALUE_PARAMETER name: type:kotlin.Enum FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum, other:.Z) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: .Z): kotlin.Int [fake_override,operator] declared in .Z + public final fun compareTo (other: .Z): kotlin.Int declared in .Z $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:.Z FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .Z + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Z $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:hashCode visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] overridden: - public final fun hashCode (): kotlin.Int [fake_override] declared in .Z + public final fun hashCode (): kotlin.Int declared in .Z $this: VALUE_PARAMETER name: type:kotlin.Enum FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Enum) returnType:kotlin.String [fake_override] overridden: - public open fun toString (): kotlin.String [fake_override] declared in .Z + public open fun toString (): kotlin.String declared in .Z $this: VALUE_PARAMETER name: type:kotlin.Enum PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [fake_override,val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: - public final fun (): kotlin.String [fake_override] declared in .Z + public final fun (): kotlin.String declared in .Z $this: VALUE_PARAMETER name: type:kotlin.Enum PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [fake_override,val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final fun (): kotlin.Int [fake_override] declared in .Z + public final fun (): kotlin.Int declared in .Z $this: VALUE_PARAMETER name: type:kotlin.Enum FUN FAKE_OVERRIDE name:getDeclaringClass visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:@[FlexibleNullability] java.lang.Class<@[FlexibleNullability] .Z?>? [fake_override] overridden: - public final fun getDeclaringClass (): @[FlexibleNullability] java.lang.Class<@[FlexibleNullability] .Z?>? [fake_override] declared in .Z + public final fun getDeclaringClass (): @[FlexibleNullability] java.lang.Class<@[FlexibleNullability] .Z?>? declared in .Z $this: VALUE_PARAMETER name: type:kotlin.Enum FUN FAKE_OVERRIDE name:finalize visibility:protected/*protected and package*/ modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Unit [fake_override] overridden: - protected/*protected and package*/ final fun finalize (): kotlin.Unit [fake_override] declared in .Z + protected/*protected and package*/ final fun finalize (): kotlin.Unit declared in .Z $this: VALUE_PARAMETER name: type:kotlin.Enum FUN ENUM_CLASS_SPECIAL_MEMBER name:values visibility:public modality:FINAL <> () returnType:kotlin.Array<.Z> SYNTHETIC_BODY kind=ENUM_VALUES @@ -106,12 +106,12 @@ FILE fqName: fileName:/enumEntry.kt $this: VALUE_PARAMETER name: type:kotlin.Enum FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum, other:.Z) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: E of kotlin.Enum): kotlin.Int [operator] declared in kotlin.Enum + public final fun compareTo (other: E of kotlin.Enum): kotlin.Int declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:.Z FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Enum + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:hashCode visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] @@ -126,7 +126,7 @@ FILE fqName: fileName:/enumEntry.kt annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: @@ -134,7 +134,7 @@ FILE fqName: fileName:/enumEntry.kt $this: VALUE_PARAMETER name: type:kotlin.Enum PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: diff --git a/compiler/testData/ir/irText/singletons/enumEntry.ir.txt b/compiler/testData/ir/irText/singletons/enumEntry.ir.txt index 0d0587fd1f0..3b3ad78e4c4 100644 --- a/compiler/testData/ir/irText/singletons/enumEntry.ir.txt +++ b/compiler/testData/ir/irText/singletons/enumEntry.ir.txt @@ -3,18 +3,18 @@ FILE fqName: fileName:/enumEntry.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Z CONSTRUCTOR visibility:private <> () returnType:.Z [primary] BLOCK_BODY - ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) [primary] declared in kotlin.Enum' + ENUM_CONSTRUCTOR_CALL 'public constructor (name: kotlin.String, ordinal: kotlin.Int) declared in kotlin.Enum' : .Z INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_CLASS name:Z modality:OPEN visibility:public superTypes:[kotlin.Enum<.Z>]' ENUM_ENTRY name:ENTRY init: EXPRESSION_BODY - ENUM_CONSTRUCTOR_CALL 'private constructor () [primary] declared in .Z.ENTRY' + ENUM_CONSTRUCTOR_CALL 'private constructor () declared in .Z.ENTRY' class: CLASS ENUM_ENTRY name:ENTRY modality:FINAL visibility:private superTypes:[.Z] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Z.ENTRY CONSTRUCTOR visibility:private <> () returnType:.Z.ENTRY [primary] BLOCK_BODY TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit - ENUM_CONSTRUCTOR_CALL 'private constructor () [primary] declared in .Z' + ENUM_CONSTRUCTOR_CALL 'private constructor () declared in .Z' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS ENUM_ENTRY name:ENTRY modality:FINAL visibility:private superTypes:[.Z]' FUN name:test visibility:public modality:FINAL <> ($this:.Z.ENTRY) returnType:kotlin.Unit $this: VALUE_PARAMETER name: type:.Z.ENTRY @@ -24,7 +24,7 @@ FILE fqName: fileName:/enumEntry.kt CONSTRUCTOR visibility:public <> ($this:.Z.ENTRY) returnType:.Z.ENTRY.A [primary] $outer: VALUE_PARAMETER name: type:.Z.ENTRY BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:A modality:FINAL visibility:public [inner] superTypes:[kotlin.Any]' FUN name:test2 visibility:public modality:FINAL <> ($this:.Z.ENTRY.A) returnType:kotlin.Unit $this: VALUE_PARAMETER name: type:.Z.ENTRY.A @@ -33,7 +33,7 @@ FILE fqName: fileName:/enumEntry.kt $this: GET_ENUM 'ENUM_ENTRY name:ENTRY' type=.Z.ENTRY 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -48,55 +48,55 @@ FILE fqName: fileName:/enumEntry.kt annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [fake_override,val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.Z>) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: - public final fun (): kotlin.String [fake_override] declared in .Z + public final fun (): kotlin.String declared in .Z $this: VALUE_PARAMETER name: type:kotlin.Enum<.Z> PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [fake_override,val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.Z>) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final fun (): kotlin.Int [fake_override] declared in .Z + public final fun (): kotlin.Int declared in .Z $this: VALUE_PARAMETER name: type:kotlin.Enum<.Z> FUN FAKE_OVERRIDE name:clone visibility:protected modality:FINAL <> ($this:kotlin.Enum<.Z>) returnType:kotlin.Any [fake_override] overridden: - protected final fun clone (): kotlin.Any [fake_override] declared in .Z + protected final fun clone (): kotlin.Any declared in .Z $this: VALUE_PARAMETER name: type:kotlin.Enum<.Z> FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum<.Z>, other:.Z) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: .Z): kotlin.Int [fake_override,operator] declared in .Z + public final fun compareTo (other: .Z): kotlin.Int declared in .Z $this: VALUE_PARAMETER name: type:kotlin.Enum<.Z> VALUE_PARAMETER name:other index:0 type:.Z FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum<.Z>, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .Z + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Z $this: VALUE_PARAMETER name: type:kotlin.Enum<.Z> VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:finalize visibility:protected/*protected and package*/ modality:FINAL <> ($this:kotlin.Enum<.Z>) returnType:kotlin.Unit [fake_override] overridden: - protected/*protected and package*/ final fun finalize (): kotlin.Unit [fake_override] declared in .Z + protected/*protected and package*/ final fun finalize (): kotlin.Unit declared in .Z $this: VALUE_PARAMETER name: type:kotlin.Enum<.Z> FUN FAKE_OVERRIDE name:getDeclaringClass visibility:public modality:FINAL <> ($this:kotlin.Enum<.Z>) returnType:@[FlexibleNullability] java.lang.Class<@[FlexibleNullability] .Z?>? [fake_override] overridden: - public final fun getDeclaringClass (): @[FlexibleNullability] java.lang.Class<@[FlexibleNullability] .Z?>? [fake_override] declared in .Z + public final fun getDeclaringClass (): @[FlexibleNullability] java.lang.Class<@[FlexibleNullability] .Z?>? declared in .Z $this: VALUE_PARAMETER name: type:kotlin.Enum<.Z> FUN FAKE_OVERRIDE name:hashCode visibility:public modality:FINAL <> ($this:kotlin.Enum<.Z>) returnType:kotlin.Int [fake_override] overridden: - public final fun hashCode (): kotlin.Int [fake_override] declared in .Z + public final fun hashCode (): kotlin.Int declared in .Z $this: VALUE_PARAMETER name: type:kotlin.Enum<.Z> FUN FAKE_OVERRIDE name:toString visibility:public modality:OPEN <> ($this:kotlin.Enum<.Z>) returnType:kotlin.String [fake_override] overridden: - public open fun toString (): kotlin.String [fake_override] declared in .Z + public open fun toString (): kotlin.String declared in .Z $this: VALUE_PARAMETER name: type:kotlin.Enum<.Z> PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] annotations: IntrinsicConstEvaluation overridden: - public final name: kotlin.String [val] + public final name: kotlin.String FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.Z>) returnType:kotlin.String [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:name visibility:public modality:FINAL [fake_override,val] overridden: @@ -104,7 +104,7 @@ FILE fqName: fileName:/enumEntry.kt $this: VALUE_PARAMETER name: type:kotlin.Enum<.Z> PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: - public final ordinal: kotlin.Int [val] + public final ordinal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:kotlin.Enum<.Z>) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:ordinal visibility:public modality:FINAL [fake_override,val] overridden: @@ -116,12 +116,12 @@ FILE fqName: fileName:/enumEntry.kt $this: VALUE_PARAMETER name: type:kotlin.Enum<.Z> FUN FAKE_OVERRIDE name:compareTo visibility:public modality:FINAL <> ($this:kotlin.Enum<.Z>, other:.Z) returnType:kotlin.Int [fake_override,operator] overridden: - public final fun compareTo (other: E of kotlin.Enum): kotlin.Int [operator] declared in kotlin.Enum + public final fun compareTo (other: E of kotlin.Enum): kotlin.Int declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum<.Z> VALUE_PARAMETER name:other index:0 type:.Z FUN FAKE_OVERRIDE name:equals visibility:public modality:FINAL <> ($this:kotlin.Enum<.Z>, other:kotlin.Any?) returnType:kotlin.Boolean [fake_override,operator] overridden: - public final fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Enum + public final fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Enum $this: VALUE_PARAMETER name: type:kotlin.Enum<.Z> VALUE_PARAMETER name:other index:0 type:kotlin.Any? FUN FAKE_OVERRIDE name:finalize visibility:protected/*protected and package*/ modality:FINAL <> ($this:kotlin.Enum<.Z>) returnType:kotlin.Unit [fake_override] diff --git a/compiler/testData/ir/irText/singletons/object.ir.txt b/compiler/testData/ir/irText/singletons/object.ir.txt index a260175d25f..3ac1bb3286b 100644 --- a/compiler/testData/ir/irText/singletons/object.ir.txt +++ b/compiler/testData/ir/irText/singletons/object.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/object.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Z CONSTRUCTOR visibility:private <> () returnType:.Z [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:Z modality:FINAL visibility:public superTypes:[kotlin.Any]' FUN name:test visibility:public modality:FINAL <> ($this:.Z) returnType:kotlin.Unit $this: VALUE_PARAMETER name: type:.Z @@ -12,7 +12,7 @@ FILE fqName: fileName:/object.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Z.A CONSTRUCTOR visibility:public <> () returnType:.Z.A [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:A modality:FINAL visibility:public superTypes:[kotlin.Any]' FUN name:test2 visibility:public modality:FINAL <> ($this:.Z.A) returnType:kotlin.Unit $this: VALUE_PARAMETER name: type:.Z.A @@ -21,7 +21,7 @@ FILE fqName: fileName:/object.kt $this: GET_OBJECT 'CLASS OBJECT name:Z modality:FINAL visibility:public superTypes:[kotlin.Any]' type=.Z 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -34,7 +34,7 @@ FILE fqName: fileName:/object.kt $this: VALUE_PARAMETER name: type: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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/stubs/arraysFromBuiltins.ir.txt b/compiler/testData/ir/irText/stubs/arraysFromBuiltins.ir.txt index aafbfc24d5e..8e1ee13d6d5 100644 --- a/compiler/testData/ir/irText/stubs/arraysFromBuiltins.ir.txt +++ b/compiler/testData/ir/irText/stubs/arraysFromBuiltins.ir.txt @@ -2,8 +2,8 @@ FILE fqName: fileName:/arraysFromBuiltins.kt PROPERTY name:test visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:test type:kotlin.collections.IntIterator visibility:private [final,static] EXPRESSION_BODY - CALL 'public final fun iterator (): kotlin.collections.IntIterator [operator] declared in kotlin.IntArray' type=kotlin.collections.IntIterator origin=null - $this: CONSTRUCTOR_CALL 'public constructor (size: kotlin.Int) [primary] declared in kotlin.IntArray' type=kotlin.IntArray origin=null + CALL 'public final fun iterator (): kotlin.collections.IntIterator declared in kotlin.IntArray' type=kotlin.collections.IntIterator origin=null + $this: CONSTRUCTOR_CALL 'public constructor (size: kotlin.Int) declared in kotlin.IntArray' type=kotlin.IntArray origin=null size: CONST Int type=kotlin.Int value=1 FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:kotlin.collections.IntIterator correspondingProperty: PROPERTY name:test visibility:public modality:FINAL [val] diff --git a/compiler/testData/ir/irText/stubs/builtinMap.fir.ir.txt b/compiler/testData/ir/irText/stubs/builtinMap.fir.ir.txt index 06edb39c216..231874cceca 100644 --- a/compiler/testData/ir/irText/stubs/builtinMap.fir.ir.txt +++ b/compiler/testData/ir/irText/stubs/builtinMap.fir.ir.txt @@ -16,7 +16,7 @@ FILE fqName: fileName:/builtinMap.kt pair: GET_VAR 'pair: kotlin.Pair.plus, V1 of .plus> declared in .plus' type=kotlin.Pair.plus, V1 of .plus> origin=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: CALL 'public final fun apply (block: @[ExtensionFunctionType] kotlin.Function1): T of kotlin.StandardKt.apply [inline] declared in kotlin.StandardKt' type=java.util.LinkedHashMap<@[FlexibleNullability] K1 of .plus?, @[FlexibleNullability] V1 of .plus?> origin=null + then: CALL 'public final fun apply (block: @[ExtensionFunctionType] kotlin.Function1): T of kotlin.StandardKt.apply declared in kotlin.StandardKt' type=java.util.LinkedHashMap<@[FlexibleNullability] K1 of .plus?, @[FlexibleNullability] V1 of .plus?> origin=null : java.util.LinkedHashMap<@[FlexibleNullability] K1 of .plus?, @[FlexibleNullability] V1 of .plus?> $receiver: CONSTRUCTOR_CALL 'public constructor (p0: @[FlexibleNullability] @[FlexibleMutability] kotlin.collections.MutableMap?) declared in java.util.LinkedHashMap' type=java.util.LinkedHashMap<@[FlexibleNullability] K1 of .plus?, @[FlexibleNullability] V1 of .plus?> origin=null : @[FlexibleNullability] K1 of .plus? @@ -27,7 +27,7 @@ FILE fqName: fileName:/builtinMap.kt $receiver: VALUE_PARAMETER name:$this$apply type:java.util.LinkedHashMap<@[FlexibleNullability] K1 of .plus?, @[FlexibleNullability] V1 of .plus?> BLOCK_BODY TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit - CALL 'public open fun put (p0: @[EnhancedNullability] K of java.util.LinkedHashMap?, p1: @[EnhancedNullability] V of java.util.LinkedHashMap?): V of java.util.LinkedHashMap? [fake_override] declared in java.util.LinkedHashMap' type=V1 of .plus? origin=null + CALL 'public open fun put (p0: @[EnhancedNullability] K of java.util.LinkedHashMap?, p1: @[EnhancedNullability] V of java.util.LinkedHashMap?): V of java.util.LinkedHashMap? declared in java.util.LinkedHashMap' type=V1 of .plus? origin=null $this: GET_VAR '$this$apply: java.util.LinkedHashMap<@[FlexibleNullability] K1 of .plus?, @[FlexibleNullability] V1 of .plus?> declared in .plus.' type=java.util.LinkedHashMap<@[FlexibleNullability] K1 of .plus?, @[FlexibleNullability] V1 of .plus?> origin=null p0: CALL 'public final fun (): A of kotlin.Pair declared in kotlin.Pair' type=K1 of .plus origin=GET_PROPERTY $this: GET_VAR 'pair: kotlin.Pair.plus, V1 of .plus> declared in .plus' type=kotlin.Pair.plus, V1 of .plus> origin=null diff --git a/compiler/testData/ir/irText/stubs/builtinMap.ir.txt b/compiler/testData/ir/irText/stubs/builtinMap.ir.txt index 6b2ec71f94a..c4948c4f30b 100644 --- a/compiler/testData/ir/irText/stubs/builtinMap.ir.txt +++ b/compiler/testData/ir/irText/stubs/builtinMap.ir.txt @@ -16,7 +16,7 @@ FILE fqName: fileName:/builtinMap.kt pair: GET_VAR 'pair: kotlin.Pair.plus, V1 of .plus> declared in .plus' type=kotlin.Pair.plus, V1 of .plus> origin=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: CALL 'public final fun apply (block: @[ExtensionFunctionType] kotlin.Function1): T of kotlin.StandardKt.apply [inline] declared in kotlin.StandardKt' type=java.util.LinkedHashMap<@[FlexibleNullability] K1 of .plus?, @[FlexibleNullability] V1 of .plus?>{ kotlin.collections.LinkedHashMap<@[FlexibleNullability] K1 of .plus?, @[FlexibleNullability] V1 of .plus?> } origin=null + then: CALL 'public final fun apply (block: @[ExtensionFunctionType] kotlin.Function1): T of kotlin.StandardKt.apply declared in kotlin.StandardKt' type=java.util.LinkedHashMap<@[FlexibleNullability] K1 of .plus?, @[FlexibleNullability] V1 of .plus?>{ kotlin.collections.LinkedHashMap<@[FlexibleNullability] K1 of .plus?, @[FlexibleNullability] V1 of .plus?> } origin=null : java.util.LinkedHashMap<@[FlexibleNullability] K1 of .plus?, @[FlexibleNullability] V1 of .plus?>{ kotlin.collections.LinkedHashMap<@[FlexibleNullability] K1 of .plus?, @[FlexibleNullability] V1 of .plus?> } $receiver: CONSTRUCTOR_CALL 'public constructor (p0: @[FlexibleNullability] @[FlexibleMutability] kotlin.collections.MutableMap?) declared in java.util.LinkedHashMap' type=java.util.LinkedHashMap<@[FlexibleNullability] K1 of .plus?, @[FlexibleNullability] V1 of .plus?> origin=null : @[FlexibleNullability] K1 of .plus? @@ -27,7 +27,7 @@ FILE fqName: fileName:/builtinMap.kt $receiver: VALUE_PARAMETER name:$this$apply type:java.util.LinkedHashMap<@[FlexibleNullability] K1 of .plus?, @[FlexibleNullability] V1 of .plus?>{ kotlin.collections.LinkedHashMap<@[FlexibleNullability] K1 of .plus?, @[FlexibleNullability] V1 of .plus?> } BLOCK_BODY TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit - CALL 'public open fun put (key: @[EnhancedNullability] K of java.util.LinkedHashMap, value: @[EnhancedNullability] V of java.util.LinkedHashMap): @[EnhancedNullability] V of java.util.LinkedHashMap? [fake_override] declared in java.util.LinkedHashMap' type=@[EnhancedNullability] V1 of .plus? origin=null + CALL 'public open fun put (key: @[EnhancedNullability] K of java.util.LinkedHashMap, value: @[EnhancedNullability] V of java.util.LinkedHashMap): @[EnhancedNullability] V of java.util.LinkedHashMap? declared in java.util.LinkedHashMap' type=@[EnhancedNullability] V1 of .plus? origin=null $this: GET_VAR '$this$apply: java.util.LinkedHashMap<@[FlexibleNullability] K1 of .plus?, @[FlexibleNullability] V1 of .plus?>{ kotlin.collections.LinkedHashMap<@[FlexibleNullability] K1 of .plus?, @[FlexibleNullability] V1 of .plus?> } declared in .plus.' type=java.util.LinkedHashMap<@[FlexibleNullability] K1 of .plus?, @[FlexibleNullability] V1 of .plus?>{ kotlin.collections.LinkedHashMap<@[FlexibleNullability] K1 of .plus?, @[FlexibleNullability] V1 of .plus?> } origin=null key: CALL 'public final fun (): A of kotlin.Pair declared in kotlin.Pair' type=K1 of .plus origin=GET_PROPERTY $this: GET_VAR 'pair: kotlin.Pair.plus, V1 of .plus> declared in .plus' type=kotlin.Pair.plus, V1 of .plus> origin=null diff --git a/compiler/testData/ir/irText/stubs/genericClassInDifferentModule.fir.ir.txt b/compiler/testData/ir/irText/stubs/genericClassInDifferentModule.fir.ir.txt index 950158b6a91..305163d05ed 100644 --- a/compiler/testData/ir/irText/stubs/genericClassInDifferentModule.fir.ir.txt +++ b/compiler/testData/ir/irText/stubs/genericClassInDifferentModule.fir.ir.txt @@ -6,7 +6,7 @@ FILE fqName: fileName:/genericClassInDifferentModule_m1.kt CONSTRUCTOR visibility:public <> (x:T of .Base) returnType:.Base.Base> [primary] VALUE_PARAMETER name:x index:0 type:T of .Base BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Base modality:ABSTRACT visibility:public superTypes:[kotlin.Any]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:T of .Base visibility:private [final] @@ -45,7 +45,7 @@ FILE fqName: fileName:/genericClassInDifferentModule_m1.kt VALUE_PARAMETER name: index:0 type:T of .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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -64,7 +64,7 @@ FILE fqName: fileName:/genericClassInDifferentModule_m2.kt CONSTRUCTOR visibility:public <> (x:T of .Derived1) returnType:.Derived1.Derived1> [primary] VALUE_PARAMETER name:x index:0 type:T of .Derived1 BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor (x: T of .Base) [primary] declared in .Base' + DELEGATING_CONSTRUCTOR_CALL 'public constructor (x: T of .Base) declared in .Base' : T of .Derived1 x: GET_VAR 'x: T of .Derived1 declared in .Derived1.' type=T of .Derived1 origin=null INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Derived1 modality:FINAL visibility:public superTypes:[.Base.Derived1>]' @@ -76,11 +76,11 @@ FILE fqName: fileName:/genericClassInDifferentModule_m2.kt VALUE_PARAMETER name:y index:0 type:Y of .Derived1.foo BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun foo (y: Y of .Derived1.foo): T of .Derived1 declared in .Derived1' - CALL 'public final fun (): T of .Derived1 [fake_override] declared in .Derived1' type=T of .Derived1 origin=GET_PROPERTY + CALL 'public final fun (): T of .Derived1 declared in .Derived1' type=T of .Derived1 origin=GET_PROPERTY $this: GET_VAR ': .Derived1.Derived1> declared in .Derived1.foo' type=.Derived1.Derived1> origin=null PROPERTY name:bar visibility:public modality:OPEN [var] overridden: - public abstract bar: T of .Base [var] + public abstract bar: T of .Base FIELD PROPERTY_BACKING_FIELD name:bar type:T of .Derived1 visibility:private EXPRESSION_BODY GET_VAR 'x: T of .Derived1 declared in .Derived1.' type=T of .Derived1 origin=null @@ -105,7 +105,7 @@ FILE fqName: fileName:/genericClassInDifferentModule_m2.kt value: GET_VAR ': T of .Derived1 declared in .Derived1.' type=T of .Derived1 origin=null PROPERTY name:exn visibility:public modality:OPEN [var] overridden: - public abstract exn: T of .Base [var] + public abstract exn: T of .Base FUN name: visibility:public modality:OPEN ($this:.Derived1.Derived1>, $receiver:Z of .Derived1.) returnType:T of .Derived1 correspondingProperty: PROPERTY name:exn visibility:public modality:OPEN [var] overridden: @@ -115,7 +115,7 @@ FILE fqName: fileName:/genericClassInDifferentModule_m2.kt $receiver: VALUE_PARAMETER name: type:Z of .Derived1. BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun (): T of .Derived1 declared in .Derived1' - CALL 'public final fun (): T of .Derived1 [fake_override] declared in .Derived1' type=T of .Derived1 origin=GET_PROPERTY + CALL 'public final fun (): T of .Derived1 declared in .Derived1' type=T of .Derived1 origin=GET_PROPERTY $this: GET_VAR ': .Derived1.Derived1> declared in .Derived1.' type=.Derived1.Derived1> origin=null FUN name: visibility:public modality:OPEN ($this:.Derived1.Derived1>, $receiver:Z of .Derived1., value:T of .Derived1) returnType:kotlin.Unit correspondingProperty: PROPERTY name:exn visibility:public modality:OPEN [var] @@ -128,7 +128,7 @@ FILE fqName: fileName:/genericClassInDifferentModule_m2.kt BLOCK_BODY PROPERTY FAKE_OVERRIDE name:x visibility:public modality:FINAL [fake_override,val] overridden: - public final x: T of .Base [val] + public final x: T of .Base FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.Base.Base>) returnType:T of .Derived1 [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:x visibility:public modality:FINAL [fake_override,val] overridden: @@ -136,14 +136,14 @@ FILE fqName: fileName:/genericClassInDifferentModule_m2.kt $this: VALUE_PARAMETER name: type:.Base.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 [fake_override,operator] declared in .Base + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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 + public open fun hashCode (): kotlin.Int 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 + public open fun toString (): kotlin.String declared in .Base $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/stubs/genericClassInDifferentModule.ir.txt b/compiler/testData/ir/irText/stubs/genericClassInDifferentModule.ir.txt index 7ed1395fb6a..9f3196753eb 100644 --- a/compiler/testData/ir/irText/stubs/genericClassInDifferentModule.ir.txt +++ b/compiler/testData/ir/irText/stubs/genericClassInDifferentModule.ir.txt @@ -6,7 +6,7 @@ FILE fqName: fileName:/genericClassInDifferentModule_m1.kt CONSTRUCTOR visibility:public <> (x:T of .Base) returnType:.Base.Base> [primary] VALUE_PARAMETER name:x index:0 type:T of .Base BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Base modality:ABSTRACT visibility:public superTypes:[kotlin.Any]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:T of .Base visibility:private [final] @@ -45,7 +45,7 @@ FILE fqName: fileName:/genericClassInDifferentModule_m1.kt VALUE_PARAMETER name: index:0 type:T of .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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -64,7 +64,7 @@ FILE fqName: fileName:/genericClassInDifferentModule_m2.kt CONSTRUCTOR visibility:public <> (x:T of .Derived1) returnType:.Derived1.Derived1> [primary] VALUE_PARAMETER name:x index:0 type:T of .Derived1 BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor (x: T of .Base) [primary] declared in .Base' + DELEGATING_CONSTRUCTOR_CALL 'public constructor (x: T of .Base) declared in .Base' : T of .Derived1 x: GET_VAR 'x: T of .Derived1 declared in .Derived1.' type=T of .Derived1 origin=null INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Derived1 modality:FINAL visibility:public superTypes:[.Base.Derived1>]' @@ -76,11 +76,11 @@ FILE fqName: fileName:/genericClassInDifferentModule_m2.kt VALUE_PARAMETER name:y index:0 type:Y of .Derived1.foo BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun foo (y: Y of .Derived1.foo): T of .Derived1 declared in .Derived1' - CALL 'public final fun (): T of .Derived1 [fake_override] declared in .Derived1' type=T of .Derived1 origin=GET_PROPERTY + CALL 'public final fun (): T of .Derived1 declared in .Derived1' type=T of .Derived1 origin=GET_PROPERTY $this: GET_VAR ': .Derived1.Derived1> declared in .Derived1.foo' type=.Derived1.Derived1> origin=null PROPERTY name:bar visibility:public modality:OPEN [var] overridden: - public abstract bar: T of .Base [var] + public abstract bar: T of .Base FIELD PROPERTY_BACKING_FIELD name:bar type:T of .Derived1 visibility:private EXPRESSION_BODY GET_VAR 'x: T of .Derived1 declared in .Derived1.' type=T of .Derived1 origin=null @@ -105,7 +105,7 @@ FILE fqName: fileName:/genericClassInDifferentModule_m2.kt value: GET_VAR ': T of .Derived1 declared in .Derived1.' type=T of .Derived1 origin=null PROPERTY name:exn visibility:public modality:OPEN [var] overridden: - public abstract exn: T of .Base [var] + public abstract exn: T of .Base FUN name: visibility:public modality:OPEN ($this:.Derived1.Derived1>, $receiver:Z of .Derived1.) returnType:T of .Derived1 correspondingProperty: PROPERTY name:exn visibility:public modality:OPEN [var] overridden: @@ -115,7 +115,7 @@ FILE fqName: fileName:/genericClassInDifferentModule_m2.kt $receiver: VALUE_PARAMETER name: type:Z of .Derived1. BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun (): T of .Derived1 declared in .Derived1' - CALL 'public final fun (): T of .Derived1 [fake_override] declared in .Derived1' type=T of .Derived1 origin=GET_PROPERTY + CALL 'public final fun (): T of .Derived1 declared in .Derived1' type=T of .Derived1 origin=GET_PROPERTY $this: GET_VAR ': .Derived1.Derived1> declared in .Derived1.' type=.Derived1.Derived1> origin=null FUN name: visibility:public modality:OPEN ($this:.Derived1.Derived1>, $receiver:Z of .Derived1., value:T of .Derived1) returnType:kotlin.Unit correspondingProperty: PROPERTY name:exn visibility:public modality:OPEN [var] @@ -128,7 +128,7 @@ FILE fqName: fileName:/genericClassInDifferentModule_m2.kt BLOCK_BODY PROPERTY FAKE_OVERRIDE name:x visibility:public modality:FINAL [fake_override,val] overridden: - public final x: T of .Base [val] + public final x: T of .Base FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.Base.Derived1>) returnType:T of .Derived1 [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:x visibility:public modality:FINAL [fake_override,val] overridden: @@ -136,14 +136,14 @@ FILE fqName: fileName:/genericClassInDifferentModule_m2.kt $this: VALUE_PARAMETER name: type:.Base.Derived1> 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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 + public open fun hashCode (): kotlin.Int 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 + public open fun toString (): kotlin.String declared in .Base $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/stubs/javaInnerClass.fir.ir.txt b/compiler/testData/ir/irText/stubs/javaInnerClass.fir.ir.txt index f44505a0230..7e81f6a86e1 100644 --- a/compiler/testData/ir/irText/stubs/javaInnerClass.fir.ir.txt +++ b/compiler/testData/ir/irText/stubs/javaInnerClass.fir.ir.txt @@ -3,12 +3,12 @@ FILE fqName: fileName:/javaInnerClass.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Test1 CONSTRUCTOR visibility:public <> () returnType:.Test1 [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .J' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .J' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test1 modality:FINAL visibility:public superTypes:[.J]' PROPERTY name:test visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:test type:.J.JInner visibility:private [final] EXPRESSION_BODY - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .J.JInner' type=.J.JInner origin=null + CONSTRUCTOR_CALL 'public constructor () declared in .J.JInner' type=.J.JInner origin=null $outer: GET_VAR ': .Test1 declared in .Test1' type=.Test1 origin=null FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:.Test1) returnType:.J.JInner correspondingProperty: PROPERTY name:test visibility:public modality:FINAL [val] @@ -23,14 +23,14 @@ FILE fqName: fileName:/javaInnerClass.kt $this: VALUE_PARAMETER name: type:.J 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 .J + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .J $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 .J + public open fun hashCode (): kotlin.Int declared in .J $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 .J + public open fun toString (): kotlin.String declared in .J $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/stubs/javaInnerClass.ir.txt b/compiler/testData/ir/irText/stubs/javaInnerClass.ir.txt index 82ec939eced..99809ba0998 100644 --- a/compiler/testData/ir/irText/stubs/javaInnerClass.ir.txt +++ b/compiler/testData/ir/irText/stubs/javaInnerClass.ir.txt @@ -3,12 +3,12 @@ FILE fqName: fileName:/javaInnerClass.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Test1 CONSTRUCTOR visibility:public <> () returnType:.Test1 [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .J' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .J' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test1 modality:FINAL visibility:public superTypes:[.J]' PROPERTY name:test visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:test type:.J.JInner visibility:private [final] EXPRESSION_BODY - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .J.JInner' type=.J.JInner origin=null + CONSTRUCTOR_CALL 'public constructor () declared in .J.JInner' type=.J.JInner origin=null $outer: GET_VAR ': .Test1 declared in .Test1' type=.Test1 origin=null FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:.Test1) returnType:.J.JInner correspondingProperty: PROPERTY name:test visibility:public modality:FINAL [val] @@ -19,16 +19,16 @@ FILE fqName: fileName:/javaInnerClass.kt receiver: GET_VAR ': .Test1 declared in .Test1.' type=.Test1 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 [fake_override,operator] declared in .J + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .J $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 .J + public open fun hashCode (): kotlin.Int declared in .J $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 .J + public open fun toString (): kotlin.String declared in .J $this: VALUE_PARAMETER name: type:kotlin.Any FUN FAKE_OVERRIDE name:bar visibility:public modality:OPEN <> ($this:.J) returnType:kotlin.Unit [fake_override] overridden: @@ -36,4 +36,4 @@ FILE fqName: fileName:/javaInnerClass.kt $this: VALUE_PARAMETER name: type:.J PROPERTY FAKE_OVERRIDE name:x visibility:public modality:FINAL [fake_override,var] overridden: - public final x: kotlin.Int [var] + public final x: kotlin.Int diff --git a/compiler/testData/ir/irText/stubs/javaSyntheticProperty.ir.txt b/compiler/testData/ir/irText/stubs/javaSyntheticProperty.ir.txt index 1aab95618c8..5e770500258 100644 --- a/compiler/testData/ir/irText/stubs/javaSyntheticProperty.ir.txt +++ b/compiler/testData/ir/irText/stubs/javaSyntheticProperty.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/javaSyntheticProperty.kt FIELD PROPERTY_BACKING_FIELD name:test type:@[FlexibleNullability] kotlin.String? visibility:private [final,static] EXPRESSION_BODY CALL 'public open fun getFoo (): @[FlexibleNullability] kotlin.String? declared in .J' type=@[FlexibleNullability] kotlin.String? origin=GET_PROPERTY - $this: CONSTRUCTOR_CALL 'public/*package*/ constructor () [primary] declared in .J' type=.J origin=null + $this: CONSTRUCTOR_CALL 'public/*package*/ constructor () declared in .J' type=.J origin=null FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> () returnType:@[FlexibleNullability] kotlin.String? correspondingProperty: PROPERTY name:test visibility:public modality:FINAL [val] BLOCK_BODY diff --git a/compiler/testData/ir/irText/types/asOnPlatformType.ir.txt b/compiler/testData/ir/irText/types/asOnPlatformType.ir.txt index dda4a06f659..4cb95c637be 100644 --- a/compiler/testData/ir/irText/types/asOnPlatformType.ir.txt +++ b/compiler/testData/ir/irText/types/asOnPlatformType.ir.txt @@ -6,32 +6,32 @@ FILE fqName: fileName:/asOnPlatformType.kt VAR name:nonnullStr type:@[FlexibleNullability] kotlin.String? [val] CALL 'public open fun nonnullString (): @[FlexibleNullability] kotlin.String? declared in .JavaClass' type=@[FlexibleNullability] kotlin.String? origin=null TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit - CALL 'public final fun foo (): T of .foo [inline] declared in ' type=@[FlexibleNullability] kotlin.String? origin=null + CALL 'public final fun foo (): T of .foo declared in ' type=@[FlexibleNullability] kotlin.String? origin=null : @[FlexibleNullability] kotlin.String? - $receiver: GET_VAR 'val nullStr: @[FlexibleNullability] kotlin.String? [val] declared in .test' type=@[FlexibleNullability] kotlin.String? origin=null + $receiver: GET_VAR 'val nullStr: @[FlexibleNullability] kotlin.String? declared in .test' type=@[FlexibleNullability] kotlin.String? origin=null TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit - CALL 'public final fun foo (): T of .foo [inline] declared in ' type=@[FlexibleNullability] kotlin.String? origin=null + CALL 'public final fun foo (): T of .foo declared in ' type=@[FlexibleNullability] kotlin.String? origin=null : @[FlexibleNullability] kotlin.String? - $receiver: GET_VAR 'val nonnullStr: @[FlexibleNullability] kotlin.String? [val] declared in .test' type=@[FlexibleNullability] kotlin.String? origin=null + $receiver: GET_VAR 'val nonnullStr: @[FlexibleNullability] kotlin.String? declared in .test' type=@[FlexibleNullability] kotlin.String? origin=null TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit - CALL 'public final fun fooN (): T of .fooN? [inline] declared in ' type=kotlin.String? origin=null + CALL 'public final fun fooN (): T of .fooN? declared in ' type=kotlin.String? origin=null : @[FlexibleNullability] kotlin.String? - $receiver: GET_VAR 'val nullStr: @[FlexibleNullability] kotlin.String? [val] declared in .test' type=@[FlexibleNullability] kotlin.String? origin=null + $receiver: GET_VAR 'val nullStr: @[FlexibleNullability] kotlin.String? declared in .test' type=@[FlexibleNullability] kotlin.String? origin=null TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit - CALL 'public final fun fooN (): T of .fooN? [inline] declared in ' type=kotlin.String? origin=null + CALL 'public final fun fooN (): T of .fooN? declared in ' type=kotlin.String? origin=null : @[FlexibleNullability] kotlin.String? - $receiver: GET_VAR 'val nonnullStr: @[FlexibleNullability] kotlin.String? [val] declared in .test' type=@[FlexibleNullability] kotlin.String? origin=null + $receiver: GET_VAR 'val nonnullStr: @[FlexibleNullability] kotlin.String? declared in .test' type=@[FlexibleNullability] kotlin.String? origin=null FUN name:foo visibility:public modality:FINAL ($receiver:T of .foo) returnType:T of .foo [inline] TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:true $receiver: VALUE_PARAMETER name: type:T of .foo BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun foo (): T of .foo [inline] declared in ' + RETURN type=kotlin.Nothing from='public final fun foo (): T of .foo declared in ' TYPE_OP type=T of .foo origin=CAST typeOperand=T of .foo GET_VAR ': T of .foo declared in .foo' type=T of .foo origin=null FUN name:fooN visibility:public modality:FINAL ($receiver:T of .fooN) returnType:T of .fooN? [inline] TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:true $receiver: VALUE_PARAMETER name: type:T of .fooN BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun fooN (): T of .fooN? [inline] declared in ' + RETURN type=kotlin.Nothing from='public final fun fooN (): T of .fooN? declared in ' TYPE_OP type=T of .fooN? origin=CAST typeOperand=T of .fooN? GET_VAR ': T of .fooN declared in .fooN' type=T of .fooN origin=null diff --git a/compiler/testData/ir/irText/types/castsInsideCoroutineInference.fir.ir.txt b/compiler/testData/ir/irText/types/castsInsideCoroutineInference.fir.ir.txt index df448845e61..f5679f85b00 100644 --- a/compiler/testData/ir/irText/types/castsInsideCoroutineInference.fir.ir.txt +++ b/compiler/testData/ir/irText/types/castsInsideCoroutineInference.fir.ir.txt @@ -14,35 +14,35 @@ FILE fqName: fileName:/castsInsideCoroutineInference.kt BLOCK_BODY VAR name:collector type:.FlowCollector.scopedFlow> [val] GET_VAR '$this$flow: .FlowCollector.scopedFlow> declared in .scopedFlow.' type=.FlowCollector.scopedFlow> origin=null - CALL 'public final fun flowScope (block: @[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1<.CoroutineScope, R of .flowScope>): R of .flowScope [suspend] declared in ' type=kotlin.Unit origin=null + CALL 'public final fun flowScope (block: @[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1<.CoroutineScope, R of .flowScope>): R of .flowScope declared in ' type=kotlin.Unit origin=null : kotlin.Unit block: FUN_EXPR type=@[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1<.CoroutineScope, kotlin.Unit> origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> ($receiver:.CoroutineScope) returnType:kotlin.Unit [suspend] $receiver: VALUE_PARAMETER name:$this$flowScope type:.CoroutineScope BLOCK_BODY - CALL 'public abstract fun invoke (p1: P1 of kotlin.coroutines.SuspendFunction2, p2: P2 of kotlin.coroutines.SuspendFunction2): R of kotlin.coroutines.SuspendFunction2 [suspend,operator] declared in kotlin.coroutines.SuspendFunction2' type=kotlin.Unit origin=null + CALL 'public abstract fun invoke (p1: P1 of kotlin.coroutines.SuspendFunction2, p2: P2 of kotlin.coroutines.SuspendFunction2): R of kotlin.coroutines.SuspendFunction2 declared in kotlin.coroutines.SuspendFunction2' type=kotlin.Unit origin=null $this: GET_VAR 'block: @[ExtensionFunctionType] kotlin.coroutines.SuspendFunction2<.CoroutineScope, .FlowCollector.scopedFlow>, kotlin.Unit> declared in .scopedFlow' type=@[ExtensionFunctionType] kotlin.coroutines.SuspendFunction2<.CoroutineScope, .FlowCollector.scopedFlow>, kotlin.Unit> origin=VARIABLE_AS_FUNCTION p1: GET_VAR '$this$flowScope: .CoroutineScope declared in .scopedFlow..' type=.CoroutineScope origin=null - p2: GET_VAR 'val collector: .FlowCollector.scopedFlow> [val] declared in .scopedFlow.' type=.FlowCollector.scopedFlow> origin=null + p2: GET_VAR 'val collector: .FlowCollector.scopedFlow> declared in .scopedFlow.' type=.FlowCollector.scopedFlow> origin=null FUN name:onCompletion visibility:public modality:FINAL ($receiver:.Flow.onCompletion>, action:@[ExtensionFunctionType] kotlin.coroutines.SuspendFunction2<.FlowCollector.onCompletion>, @[ParameterName(name = 'cause')] kotlin.Throwable?, kotlin.Unit>) returnType:.Flow.onCompletion> TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false $receiver: VALUE_PARAMETER name: type:.Flow.onCompletion> VALUE_PARAMETER name:action index:0 type:@[ExtensionFunctionType] kotlin.coroutines.SuspendFunction2<.FlowCollector.onCompletion>, @[ParameterName(name = 'cause')] kotlin.Throwable?, kotlin.Unit> BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun onCompletion (action: @[ExtensionFunctionType] kotlin.coroutines.SuspendFunction2<.FlowCollector.onCompletion>, @[ParameterName(name = 'cause')] kotlin.Throwable?, kotlin.Unit>): .Flow.onCompletion> declared in ' - CALL 'public final fun unsafeFlow (block: @[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1<.FlowCollector.unsafeFlow>, kotlin.Unit>): .Flow.unsafeFlow> [inline] declared in ' type=.Flow.onCompletion> origin=null + CALL 'public final fun unsafeFlow (block: @[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1<.FlowCollector.unsafeFlow>, kotlin.Unit>): .Flow.unsafeFlow> declared in ' type=.Flow.onCompletion> origin=null : T of .onCompletion block: FUN_EXPR type=@[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1<.FlowCollector.onCompletion>, kotlin.Unit> origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> ($receiver:.FlowCollector.onCompletion>) returnType:kotlin.Unit [suspend] $receiver: VALUE_PARAMETER name:$this$unsafeFlow type:.FlowCollector.onCompletion> BLOCK_BODY VAR name:safeCollector type:.SafeCollector.onCompletion> [val] - CONSTRUCTOR_CALL 'public constructor (collector: .FlowCollector.SafeCollector>) [primary] declared in .SafeCollector' type=.SafeCollector.onCompletion> origin=null + CONSTRUCTOR_CALL 'public constructor (collector: .FlowCollector.SafeCollector>) declared in .SafeCollector' type=.SafeCollector.onCompletion> origin=null : T of .onCompletion collector: GET_VAR '$this$unsafeFlow: .FlowCollector.onCompletion> declared in .onCompletion.' type=.FlowCollector.onCompletion> origin=null - CALL 'public final fun invokeSafely (action: @[ExtensionFunctionType] kotlin.coroutines.SuspendFunction2<.FlowCollector.invokeSafely>, @[ParameterName(name = 'cause')] kotlin.Throwable?, kotlin.Unit>): kotlin.Unit [suspend] declared in ' type=kotlin.Unit origin=null + CALL 'public final fun invokeSafely (action: @[ExtensionFunctionType] kotlin.coroutines.SuspendFunction2<.FlowCollector.invokeSafely>, @[ParameterName(name = 'cause')] kotlin.Throwable?, kotlin.Unit>): kotlin.Unit declared in ' type=kotlin.Unit origin=null : T of .onCompletion - $receiver: GET_VAR 'val safeCollector: .SafeCollector.onCompletion> [val] declared in .onCompletion.' type=.SafeCollector.onCompletion> origin=null + $receiver: GET_VAR 'val safeCollector: .SafeCollector.onCompletion> declared in .onCompletion.' type=.SafeCollector.onCompletion> origin=null action: GET_VAR 'action: @[ExtensionFunctionType] kotlin.coroutines.SuspendFunction2<.FlowCollector.onCompletion>, @[ParameterName(name = 'cause')] kotlin.Throwable?, kotlin.Unit> declared in .onCompletion' type=@[ExtensionFunctionType] kotlin.coroutines.SuspendFunction2<.FlowCollector.onCompletion>, @[ParameterName(name = 'cause')] kotlin.Throwable?, kotlin.Unit> origin=null FUN name:invokeSafely visibility:public modality:FINAL ($receiver:.FlowCollector.invokeSafely>, action:@[ExtensionFunctionType] kotlin.coroutines.SuspendFunction2<.FlowCollector.invokeSafely>, @[ParameterName(name = 'cause')] kotlin.Throwable?, kotlin.Unit>) returnType:kotlin.Unit [suspend] TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false @@ -55,8 +55,8 @@ FILE fqName: fileName:/castsInsideCoroutineInference.kt TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false VALUE_PARAMETER name:block index:0 type:@[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1<.FlowCollector.unsafeFlow>, kotlin.Unit> [crossinline] BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun unsafeFlow (block: @[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1<.FlowCollector.unsafeFlow>, kotlin.Unit>): .Flow.unsafeFlow> [inline] declared in ' - CALL 'public final fun TODO (): kotlin.Nothing [inline] declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + RETURN type=kotlin.Nothing from='public final fun unsafeFlow (block: @[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1<.FlowCollector.unsafeFlow>, kotlin.Unit>): .Flow.unsafeFlow> declared in ' + CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin.StandardKt' type=kotlin.Nothing origin=null FUN name:onCompletion visibility:public modality:FINAL ($receiver:.Flow.onCompletion>, action:kotlin.coroutines.SuspendFunction1<@[ParameterName(name = 'cause')] kotlin.Throwable?, kotlin.Unit>) returnType:.Flow.onCompletion> annotations: Deprecated(message = 'binary compatibility with a version w/o FlowCollector receiver', replaceWith = , level = GET_ENUM 'ENUM_ENTRY IR_EXTERNAL_DECLARATION_STUB name:HIDDEN' type=kotlin.DeprecationLevel) @@ -73,7 +73,7 @@ FILE fqName: fileName:/castsInsideCoroutineInference.kt $receiver: VALUE_PARAMETER name:$this$onCompletion type:.FlowCollector.onCompletion> VALUE_PARAMETER name:it index:0 type:@[ParameterName(name = 'cause')] kotlin.Throwable? BLOCK_BODY - CALL 'public abstract fun invoke (p1: P1 of kotlin.coroutines.SuspendFunction1): R of kotlin.coroutines.SuspendFunction1 [suspend,operator] declared in kotlin.coroutines.SuspendFunction1' type=kotlin.Unit origin=null + CALL 'public abstract fun invoke (p1: P1 of kotlin.coroutines.SuspendFunction1): R of kotlin.coroutines.SuspendFunction1 declared in kotlin.coroutines.SuspendFunction1' type=kotlin.Unit origin=null $this: GET_VAR 'action: kotlin.coroutines.SuspendFunction1<@[ParameterName(name = 'cause')] kotlin.Throwable?, kotlin.Unit> declared in .onCompletion' type=kotlin.coroutines.SuspendFunction1<@[ParameterName(name = 'cause')] kotlin.Throwable?, kotlin.Unit> origin=VARIABLE_AS_FUNCTION p1: GET_VAR 'it: @[ParameterName(name = 'cause')] kotlin.Throwable? declared in .onCompletion.' type=@[ParameterName(name = 'cause')] kotlin.Throwable? origin=null FUN name:asFairChannel visibility:private modality:FINAL <> ($receiver:.CoroutineScope, flow:.Flow<*>) returnType:.ReceiveChannel @@ -92,28 +92,28 @@ FILE fqName: fileName:/castsInsideCoroutineInference.kt TYPE_OP type=.ChannelCoroutine origin=CAST typeOperand=.ChannelCoroutine CALL 'public abstract fun (): .SendChannel.ProducerScope> declared in .ProducerScope' type=.SendChannel origin=GET_PROPERTY $this: GET_VAR '$this$produce: .ProducerScope declared in .asFairChannel.' type=.ProducerScope origin=null - CALL 'public final fun collect (action: kotlin.coroutines.SuspendFunction1<@[ParameterName(name = 'value')] T of .collect, kotlin.Unit>): kotlin.Unit [inline,suspend] declared in ' type=kotlin.Unit origin=null + CALL 'public final fun collect (action: kotlin.coroutines.SuspendFunction1<@[ParameterName(name = 'value')] T of .collect, kotlin.Unit>): kotlin.Unit declared in ' type=kotlin.Unit origin=null : kotlin.Any? $receiver: GET_VAR 'flow: .Flow<*> declared in .asFairChannel' type=.Flow<*> origin=null action: FUN_EXPR type=kotlin.coroutines.SuspendFunction1<@[ParameterName(name = 'value')] kotlin.Any?, kotlin.Unit> origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> (value:@[ParameterName(name = 'value')] kotlin.Any?) returnType:kotlin.Unit [suspend] VALUE_PARAMETER name:value index:0 type:@[ParameterName(name = 'value')] kotlin.Any? BLOCK_BODY - RETURN type=kotlin.Nothing from='local final fun (value: @[ParameterName(name = 'value')] kotlin.Any?): kotlin.Unit [suspend] declared in .asFairChannel.' - CALL 'public final fun sendFair (element: E of .ChannelCoroutine): kotlin.Unit [suspend] declared in .ChannelCoroutine' type=kotlin.Unit origin=null - $this: GET_VAR 'val channel: .ChannelCoroutine [val] declared in .asFairChannel.' type=.ChannelCoroutine origin=null + RETURN type=kotlin.Nothing from='local final fun (value: @[ParameterName(name = 'value')] kotlin.Any?): kotlin.Unit declared in .asFairChannel.' + CALL 'public final fun sendFair (element: E of .ChannelCoroutine): kotlin.Unit declared in .ChannelCoroutine' type=kotlin.Unit origin=null + $this: GET_VAR 'val channel: .ChannelCoroutine declared in .asFairChannel.' type=.ChannelCoroutine origin=null element: BLOCK type=@[ParameterName(name = 'value')] kotlin.Any origin=ELVIS VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:@[ParameterName(name = 'value')] kotlin.Any? [val] GET_VAR 'value: @[ParameterName(name = 'value')] kotlin.Any? declared in .asFairChannel..' type=@[ParameterName(name = 'value')] kotlin.Any? origin=null WHEN type=@[ParameterName(name = 'value')] kotlin.Any origin=ELVIS BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_0: @[ParameterName(name = 'value')] kotlin.Any? [val] declared in .asFairChannel..' type=@[ParameterName(name = 'value')] kotlin.Any? origin=null + arg0: GET_VAR 'val tmp_0: @[ParameterName(name = 'value')] kotlin.Any? declared in .asFairChannel..' type=@[ParameterName(name = 'value')] kotlin.Any? origin=null arg1: CONST Null type=kotlin.Nothing? value=null - then: CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' type=kotlin.Any origin=null + then: CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' type=kotlin.Any origin=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val tmp_0: @[ParameterName(name = 'value')] kotlin.Any? [val] declared in .asFairChannel..' type=@[ParameterName(name = 'value')] kotlin.Any? origin=null + then: GET_VAR 'val tmp_0: @[ParameterName(name = 'value')] kotlin.Any? declared in .asFairChannel..' type=@[ParameterName(name = 'value')] kotlin.Any? origin=null FUN name:asChannel visibility:private modality:FINAL <> ($receiver:.CoroutineScope, flow:.Flow<*>) returnType:.ReceiveChannel $receiver: VALUE_PARAMETER name: type:.CoroutineScope VALUE_PARAMETER name:flow index:0 type:.Flow<*> @@ -126,15 +126,15 @@ FILE fqName: fileName:/castsInsideCoroutineInference.kt FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> ($receiver:.ProducerScope) returnType:kotlin.Unit [suspend] $receiver: VALUE_PARAMETER name:$this$produce type:.ProducerScope BLOCK_BODY - CALL 'public final fun collect (action: kotlin.coroutines.SuspendFunction1<@[ParameterName(name = 'value')] T of .collect, kotlin.Unit>): kotlin.Unit [inline,suspend] declared in ' type=kotlin.Unit origin=null + CALL 'public final fun collect (action: kotlin.coroutines.SuspendFunction1<@[ParameterName(name = 'value')] T of .collect, kotlin.Unit>): kotlin.Unit declared in ' type=kotlin.Unit origin=null : kotlin.Any? $receiver: GET_VAR 'flow: .Flow<*> declared in .asChannel' type=.Flow<*> origin=null action: FUN_EXPR type=kotlin.coroutines.SuspendFunction1<@[ParameterName(name = 'value')] kotlin.Any?, kotlin.Unit> origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> (value:@[ParameterName(name = 'value')] kotlin.Any?) returnType:kotlin.Unit [suspend] VALUE_PARAMETER name:value index:0 type:@[ParameterName(name = 'value')] kotlin.Any? BLOCK_BODY - RETURN type=kotlin.Nothing from='local final fun (value: @[ParameterName(name = 'value')] kotlin.Any?): kotlin.Unit [suspend] declared in .asChannel.' - CALL 'public abstract fun send (e: E of .SendChannel): kotlin.Unit [suspend] declared in .SendChannel' type=kotlin.Unit origin=null + RETURN type=kotlin.Nothing from='local final fun (value: @[ParameterName(name = 'value')] kotlin.Any?): kotlin.Unit declared in .asChannel.' + CALL 'public abstract fun send (e: E of .SendChannel): kotlin.Unit declared in .SendChannel' type=kotlin.Unit origin=null $this: CALL 'public abstract fun (): .SendChannel.ProducerScope> declared in .ProducerScope' type=.SendChannel origin=GET_PROPERTY $this: GET_VAR '$this$produce: .ProducerScope declared in .asChannel.' type=.ProducerScope origin=null e: BLOCK type=@[ParameterName(name = 'value')] kotlin.Any origin=ELVIS @@ -143,19 +143,19 @@ FILE fqName: fileName:/castsInsideCoroutineInference.kt WHEN type=@[ParameterName(name = 'value')] kotlin.Any origin=ELVIS BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_1: @[ParameterName(name = 'value')] kotlin.Any? [val] declared in .asChannel..' type=@[ParameterName(name = 'value')] kotlin.Any? origin=null + arg0: GET_VAR 'val tmp_1: @[ParameterName(name = 'value')] kotlin.Any? declared in .asChannel..' type=@[ParameterName(name = 'value')] kotlin.Any? origin=null arg1: CONST Null type=kotlin.Nothing? value=null - then: CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' type=kotlin.Any origin=null + then: CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' type=kotlin.Any origin=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val tmp_1: @[ParameterName(name = 'value')] kotlin.Any? [val] declared in .asChannel..' type=@[ParameterName(name = 'value')] kotlin.Any? origin=null + then: GET_VAR 'val tmp_1: @[ParameterName(name = 'value')] kotlin.Any? declared in .asChannel..' type=@[ParameterName(name = 'value')] kotlin.Any? origin=null CLASS CLASS name:SafeCollector modality:FINAL visibility:public superTypes:[.FlowCollector.SafeCollector>] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.SafeCollector.SafeCollector> TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false CONSTRUCTOR visibility:public <> (collector:.FlowCollector.SafeCollector>) returnType:.SafeCollector.SafeCollector> [primary] VALUE_PARAMETER name:collector index:0 type:.FlowCollector.SafeCollector> BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:SafeCollector modality:FINAL visibility:public superTypes:[.FlowCollector.SafeCollector>]' PROPERTY name:collector visibility:internal modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:collector type:.FlowCollector.SafeCollector> visibility:private [final] @@ -170,22 +170,22 @@ FILE fqName: fileName:/castsInsideCoroutineInference.kt receiver: GET_VAR ': .SafeCollector.SafeCollector> declared in .SafeCollector.' type=.SafeCollector.SafeCollector> origin=null FUN name:emit visibility:public modality:OPEN <> ($this:.SafeCollector.SafeCollector>, value:T of .SafeCollector) returnType:kotlin.Unit [suspend] overridden: - public abstract fun emit (value: T of .FlowCollector): kotlin.Unit [suspend] declared in .FlowCollector + public abstract fun emit (value: T of .FlowCollector): kotlin.Unit declared in .FlowCollector $this: VALUE_PARAMETER name: type:.SafeCollector.SafeCollector> VALUE_PARAMETER name:value index:0 type:T of .SafeCollector 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 [fake_override,operator] declared in .FlowCollector + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .FlowCollector $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 .FlowCollector + public open fun hashCode (): kotlin.Int declared in .FlowCollector $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 .FlowCollector + public open fun toString (): kotlin.String declared in .FlowCollector $this: VALUE_PARAMETER name: type:kotlin.Any FUN name:flow visibility:public modality:FINAL (block:@[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1<.FlowCollector.flow>, kotlin.Unit>) returnType:.Flow.flow> annotations: @@ -194,15 +194,15 @@ FILE fqName: fileName:/castsInsideCoroutineInference.kt VALUE_PARAMETER name:block index:0 type:@[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1<.FlowCollector.flow>, kotlin.Unit> BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun flow (block: @[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1<.FlowCollector.flow>, kotlin.Unit>): .Flow.flow> declared in ' - CALL 'public final fun TODO (): kotlin.Nothing [inline] declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin.StandardKt' type=kotlin.Nothing origin=null FUN name:flowScope visibility:public modality:FINAL (block:@[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1<.CoroutineScope, R of .flowScope>) returnType:R of .flowScope [suspend] annotations: OptIn(markerClass = [CLASS_REFERENCE 'CLASS IR_EXTERNAL_DECLARATION_STUB ANNOTATION_CLASS name:ExperimentalTypeInference modality:FINAL visibility:public superTypes:[kotlin.Annotation]' type=kotlin.reflect.KClass]) TYPE_PARAMETER name:R index:0 variance: superTypes:[kotlin.Any?] reified:false VALUE_PARAMETER name:block index:0 type:@[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1<.CoroutineScope, R of .flowScope> BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun flowScope (block: @[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1<.CoroutineScope, R of .flowScope>): R of .flowScope [suspend] declared in ' - CALL 'public final fun TODO (): kotlin.Nothing [inline] declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + RETURN type=kotlin.Nothing from='public final fun flowScope (block: @[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1<.CoroutineScope, R of .flowScope>): R of .flowScope declared in ' + CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin.StandardKt' type=kotlin.Nothing origin=null FUN name:collect visibility:public modality:FINAL ($receiver:.Flow.collect>, action:kotlin.coroutines.SuspendFunction1<@[ParameterName(name = 'value')] T of .collect, kotlin.Unit>) returnType:kotlin.Unit [inline,suspend] TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false $receiver: VALUE_PARAMETER name: type:.Flow.collect> @@ -213,7 +213,7 @@ FILE fqName: fileName:/castsInsideCoroutineInference.kt TYPE_PARAMETER name:E index:0 variance: superTypes:[kotlin.Any?] reified:false CONSTRUCTOR visibility:public <> () returnType:.ChannelCoroutine.ChannelCoroutine> [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:ChannelCoroutine modality:OPEN visibility:public superTypes:[kotlin.Any]' FUN name:sendFair visibility:public modality:FINAL <> ($this:.ChannelCoroutine.ChannelCoroutine>, element:E of .ChannelCoroutine) returnType:kotlin.Unit [suspend] $this: VALUE_PARAMETER name: type:.ChannelCoroutine.ChannelCoroutine> @@ -221,7 +221,7 @@ FILE fqName: fileName:/castsInsideCoroutineInference.kt 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -236,7 +236,7 @@ FILE fqName: fileName:/castsInsideCoroutineInference.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.CoroutineScope 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -255,7 +255,7 @@ FILE fqName: fileName:/castsInsideCoroutineInference.kt VALUE_PARAMETER name:collector index:0 type:.FlowCollector.Flow> 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -274,7 +274,7 @@ FILE fqName: fileName:/castsInsideCoroutineInference.kt VALUE_PARAMETER name:value index:0 type:T of .FlowCollector 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -290,7 +290,7 @@ FILE fqName: fileName:/castsInsideCoroutineInference.kt TYPE_PARAMETER name:E index:0 variance:out superTypes:[kotlin.Any?] reified:false 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -309,7 +309,7 @@ FILE fqName: fileName:/castsInsideCoroutineInference.kt VALUE_PARAMETER name:block index:0 type:@[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1<.ProducerScope.produce>, kotlin.Unit> BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun produce (block: @[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1<.ProducerScope.produce>, kotlin.Unit>): .ReceiveChannel.produce> declared in ' - CALL 'public final fun TODO (): kotlin.Nothing [inline] declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin.StandardKt' type=kotlin.Nothing origin=null CLASS INTERFACE name:ProducerScope modality:ABSTRACT visibility:public superTypes:[.CoroutineScope; .SendChannel.ProducerScope>] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.ProducerScope.ProducerScope> TYPE_PARAMETER name:E index:0 variance:in superTypes:[kotlin.Any?] reified:false @@ -319,23 +319,23 @@ FILE fqName: fileName:/castsInsideCoroutineInference.kt $this: VALUE_PARAMETER name: type:.ProducerScope.ProducerScope> 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 .CoroutineScope - public open fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .SendChannel + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .CoroutineScope + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .SendChannel $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 .CoroutineScope - public open fun hashCode (): kotlin.Int [fake_override] declared in .SendChannel + public open fun hashCode (): kotlin.Int declared in .CoroutineScope + public open fun hashCode (): kotlin.Int declared in .SendChannel $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 .CoroutineScope - public open fun toString (): kotlin.String [fake_override] declared in .SendChannel + public open fun toString (): kotlin.String declared in .CoroutineScope + public open fun toString (): kotlin.String declared in .SendChannel $this: VALUE_PARAMETER name: type:kotlin.Any FUN FAKE_OVERRIDE name:send visibility:public modality:ABSTRACT <> ($this:.SendChannel.SendChannel>, e:E of .ProducerScope) returnType:kotlin.Unit [suspend,fake_override] overridden: - public abstract fun send (e: E of .SendChannel): kotlin.Unit [suspend] declared in .SendChannel + public abstract fun send (e: E of .SendChannel): kotlin.Unit declared in .SendChannel $this: VALUE_PARAMETER name: type:.SendChannel.SendChannel> VALUE_PARAMETER name:e index:0 type:E of .ProducerScope CLASS INTERFACE name:SendChannel modality:ABSTRACT visibility:public superTypes:[kotlin.Any] @@ -346,7 +346,7 @@ FILE fqName: fileName:/castsInsideCoroutineInference.kt VALUE_PARAMETER name:e index:0 type:E of .SendChannel 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/types/castsInsideCoroutineInference.ir.txt b/compiler/testData/ir/irText/types/castsInsideCoroutineInference.ir.txt index 701391c4d66..180805fcf9e 100644 --- a/compiler/testData/ir/irText/types/castsInsideCoroutineInference.ir.txt +++ b/compiler/testData/ir/irText/types/castsInsideCoroutineInference.ir.txt @@ -14,35 +14,35 @@ FILE fqName: fileName:/castsInsideCoroutineInference.kt BLOCK_BODY VAR name:collector type:.FlowCollector.scopedFlow> [val] GET_VAR '$this$flow: .FlowCollector.scopedFlow> declared in .scopedFlow.' type=.FlowCollector.scopedFlow> origin=null - CALL 'public final fun flowScope (block: @[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1<.CoroutineScope, R of .flowScope>): R of .flowScope [suspend] declared in ' type=kotlin.Unit origin=null + CALL 'public final fun flowScope (block: @[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1<.CoroutineScope, R of .flowScope>): R of .flowScope declared in ' type=kotlin.Unit origin=null : kotlin.Unit block: FUN_EXPR type=@[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1<.CoroutineScope, kotlin.Unit> origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> ($receiver:.CoroutineScope) returnType:kotlin.Unit [suspend] $receiver: VALUE_PARAMETER name:$this$flowScope type:.CoroutineScope BLOCK_BODY - CALL 'public abstract fun invoke (p1: P1 of kotlin.coroutines.SuspendFunction2, p2: P2 of kotlin.coroutines.SuspendFunction2): R of kotlin.coroutines.SuspendFunction2 [suspend,operator] declared in kotlin.coroutines.SuspendFunction2' type=kotlin.Unit origin=INVOKE + CALL 'public abstract fun invoke (p1: P1 of kotlin.coroutines.SuspendFunction2, p2: P2 of kotlin.coroutines.SuspendFunction2): R of kotlin.coroutines.SuspendFunction2 declared in kotlin.coroutines.SuspendFunction2' type=kotlin.Unit origin=INVOKE $this: GET_VAR 'block: @[ExtensionFunctionType] kotlin.coroutines.SuspendFunction2<.CoroutineScope, .FlowCollector.scopedFlow>, kotlin.Unit> declared in .scopedFlow' type=@[ExtensionFunctionType] kotlin.coroutines.SuspendFunction2<.CoroutineScope, .FlowCollector.scopedFlow>, kotlin.Unit> origin=VARIABLE_AS_FUNCTION p1: GET_VAR '$this$flowScope: .CoroutineScope declared in .scopedFlow..' type=.CoroutineScope origin=null - p2: GET_VAR 'val collector: .FlowCollector.scopedFlow> [val] declared in .scopedFlow.' type=.FlowCollector.scopedFlow> origin=null + p2: GET_VAR 'val collector: .FlowCollector.scopedFlow> declared in .scopedFlow.' type=.FlowCollector.scopedFlow> origin=null FUN name:onCompletion visibility:public modality:FINAL ($receiver:.Flow.onCompletion>, action:@[ExtensionFunctionType] kotlin.coroutines.SuspendFunction2<.FlowCollector.onCompletion>, @[ParameterName(name = 'cause')] kotlin.Throwable?, kotlin.Unit>) returnType:.Flow.onCompletion> TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false $receiver: VALUE_PARAMETER name: type:.Flow.onCompletion> VALUE_PARAMETER name:action index:0 type:@[ExtensionFunctionType] kotlin.coroutines.SuspendFunction2<.FlowCollector.onCompletion>, @[ParameterName(name = 'cause')] kotlin.Throwable?, kotlin.Unit> BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun onCompletion (action: @[ExtensionFunctionType] kotlin.coroutines.SuspendFunction2<.FlowCollector.onCompletion>, @[ParameterName(name = 'cause')] kotlin.Throwable?, kotlin.Unit>): .Flow.onCompletion> declared in ' - CALL 'public final fun unsafeFlow (block: @[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1<.FlowCollector.unsafeFlow>, kotlin.Unit>): .Flow.unsafeFlow> [inline] declared in ' type=.Flow.onCompletion> origin=null + CALL 'public final fun unsafeFlow (block: @[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1<.FlowCollector.unsafeFlow>, kotlin.Unit>): .Flow.unsafeFlow> declared in ' type=.Flow.onCompletion> origin=null : T of .onCompletion block: FUN_EXPR type=@[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1<.FlowCollector.onCompletion>, kotlin.Unit> origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> ($receiver:.FlowCollector.onCompletion>) returnType:kotlin.Unit [suspend] $receiver: VALUE_PARAMETER name:$this$unsafeFlow type:.FlowCollector.onCompletion> BLOCK_BODY VAR name:safeCollector type:.SafeCollector.onCompletion> [val] - CONSTRUCTOR_CALL 'public constructor (collector: .FlowCollector.SafeCollector>) [primary] declared in .SafeCollector' type=.SafeCollector.onCompletion> origin=null + CONSTRUCTOR_CALL 'public constructor (collector: .FlowCollector.SafeCollector>) declared in .SafeCollector' type=.SafeCollector.onCompletion> origin=null : T of .onCompletion collector: GET_VAR '$this$unsafeFlow: .FlowCollector.onCompletion> declared in .onCompletion.' type=.FlowCollector.onCompletion> origin=null - CALL 'public final fun invokeSafely (action: @[ExtensionFunctionType] kotlin.coroutines.SuspendFunction2<.FlowCollector.invokeSafely>, @[ParameterName(name = 'cause')] kotlin.Throwable?, kotlin.Unit>): kotlin.Unit [suspend] declared in ' type=kotlin.Unit origin=null + CALL 'public final fun invokeSafely (action: @[ExtensionFunctionType] kotlin.coroutines.SuspendFunction2<.FlowCollector.invokeSafely>, @[ParameterName(name = 'cause')] kotlin.Throwable?, kotlin.Unit>): kotlin.Unit declared in ' type=kotlin.Unit origin=null : T of .onCompletion - $receiver: GET_VAR 'val safeCollector: .SafeCollector.onCompletion> [val] declared in .onCompletion.' type=.SafeCollector.onCompletion> origin=null + $receiver: GET_VAR 'val safeCollector: .SafeCollector.onCompletion> declared in .onCompletion.' type=.SafeCollector.onCompletion> origin=null action: GET_VAR 'action: @[ExtensionFunctionType] kotlin.coroutines.SuspendFunction2<.FlowCollector.onCompletion>, @[ParameterName(name = 'cause')] kotlin.Throwable?, kotlin.Unit> declared in .onCompletion' type=@[ExtensionFunctionType] kotlin.coroutines.SuspendFunction2<.FlowCollector.onCompletion>, @[ParameterName(name = 'cause')] kotlin.Throwable?, kotlin.Unit> origin=null FUN name:invokeSafely visibility:public modality:FINAL ($receiver:.FlowCollector.invokeSafely>, action:@[ExtensionFunctionType] kotlin.coroutines.SuspendFunction2<.FlowCollector.invokeSafely>, @[ParameterName(name = 'cause')] kotlin.Throwable?, kotlin.Unit>) returnType:kotlin.Unit [suspend] TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false @@ -55,8 +55,8 @@ FILE fqName: fileName:/castsInsideCoroutineInference.kt TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false VALUE_PARAMETER name:block index:0 type:@[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1<.FlowCollector.unsafeFlow>, kotlin.Unit> [crossinline] BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun unsafeFlow (block: @[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1<.FlowCollector.unsafeFlow>, kotlin.Unit>): .Flow.unsafeFlow> [inline] declared in ' - CALL 'public final fun TODO (): kotlin.Nothing [inline] declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + RETURN type=kotlin.Nothing from='public final fun unsafeFlow (block: @[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1<.FlowCollector.unsafeFlow>, kotlin.Unit>): .Flow.unsafeFlow> declared in ' + CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin.StandardKt' type=kotlin.Nothing origin=null FUN name:onCompletion visibility:public modality:FINAL ($receiver:.Flow.onCompletion>, action:kotlin.coroutines.SuspendFunction1<@[ParameterName(name = 'cause')] kotlin.Throwable?, kotlin.Unit>) returnType:.Flow.onCompletion> annotations: Deprecated(message = 'binary compatibility with a version w/o FlowCollector receiver', replaceWith = , level = GET_ENUM 'ENUM_ENTRY IR_EXTERNAL_DECLARATION_STUB name:HIDDEN' type=kotlin.DeprecationLevel) @@ -73,7 +73,7 @@ FILE fqName: fileName:/castsInsideCoroutineInference.kt $receiver: VALUE_PARAMETER name:$this$onCompletion type:.FlowCollector.onCompletion> VALUE_PARAMETER name:it index:0 type:kotlin.Throwable? BLOCK_BODY - CALL 'public abstract fun invoke (p1: P1 of kotlin.coroutines.SuspendFunction1): R of kotlin.coroutines.SuspendFunction1 [suspend,operator] declared in kotlin.coroutines.SuspendFunction1' type=kotlin.Unit origin=INVOKE + CALL 'public abstract fun invoke (p1: P1 of kotlin.coroutines.SuspendFunction1): R of kotlin.coroutines.SuspendFunction1 declared in kotlin.coroutines.SuspendFunction1' type=kotlin.Unit origin=INVOKE $this: GET_VAR 'action: kotlin.coroutines.SuspendFunction1<@[ParameterName(name = 'cause')] kotlin.Throwable?, kotlin.Unit> declared in .onCompletion' type=kotlin.coroutines.SuspendFunction1<@[ParameterName(name = 'cause')] kotlin.Throwable?, kotlin.Unit> origin=VARIABLE_AS_FUNCTION p1: GET_VAR 'it: kotlin.Throwable? declared in .onCompletion.' type=kotlin.Throwable? origin=null FUN name:asFairChannel visibility:private modality:FINAL <> ($receiver:.CoroutineScope, flow:.Flow<*>) returnType:.ReceiveChannel @@ -92,28 +92,28 @@ FILE fqName: fileName:/castsInsideCoroutineInference.kt TYPE_OP type=.ChannelCoroutine origin=CAST typeOperand=.ChannelCoroutine CALL 'public abstract fun (): .SendChannel.ProducerScope> declared in .ProducerScope' type=.SendChannel origin=GET_PROPERTY $this: GET_VAR '$this$produce: .ProducerScope declared in .asFairChannel.' type=.ProducerScope origin=null - CALL 'public final fun collect (action: kotlin.coroutines.SuspendFunction1<@[ParameterName(name = 'value')] T of .collect, kotlin.Unit>): kotlin.Unit [inline,suspend] declared in ' type=kotlin.Unit origin=null + CALL 'public final fun collect (action: kotlin.coroutines.SuspendFunction1<@[ParameterName(name = 'value')] T of .collect, kotlin.Unit>): kotlin.Unit declared in ' type=kotlin.Unit origin=null : kotlin.Any? $receiver: GET_VAR 'flow: .Flow<*> declared in .asFairChannel' type=.Flow<*> origin=null action: FUN_EXPR type=kotlin.coroutines.SuspendFunction1<@[ParameterName(name = 'value')] kotlin.Any?, kotlin.Unit> origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> (value:kotlin.Any?) returnType:kotlin.Unit [suspend] VALUE_PARAMETER name:value index:0 type:kotlin.Any? BLOCK_BODY - RETURN type=kotlin.Nothing from='local final fun (value: kotlin.Any?): kotlin.Unit [suspend] declared in .asFairChannel.' - CALL 'public final fun sendFair (element: E of .ChannelCoroutine): kotlin.Unit [suspend] declared in .ChannelCoroutine' type=kotlin.Unit origin=null - $this: GET_VAR 'val channel: .ChannelCoroutine [val] declared in .asFairChannel.' type=.ChannelCoroutine origin=null + RETURN type=kotlin.Nothing from='local final fun (value: kotlin.Any?): kotlin.Unit declared in .asFairChannel.' + CALL 'public final fun sendFair (element: E of .ChannelCoroutine): kotlin.Unit declared in .ChannelCoroutine' type=kotlin.Unit origin=null + $this: GET_VAR 'val channel: .ChannelCoroutine declared in .asFairChannel.' type=.ChannelCoroutine origin=null element: BLOCK type=kotlin.Any origin=ELVIS VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:kotlin.Any? [val] GET_VAR 'value: kotlin.Any? declared in .asFairChannel..' type=kotlin.Any? origin=null WHEN type=kotlin.Any origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_0: kotlin.Any? [val] declared in .asFairChannel..' type=kotlin.Any? origin=null + arg0: GET_VAR 'val tmp_0: kotlin.Any? declared in .asFairChannel..' type=kotlin.Any? origin=null arg1: CONST Null type=kotlin.Nothing? value=null - then: CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' type=kotlin.Any origin=null + then: CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' type=kotlin.Any origin=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val tmp_0: kotlin.Any? [val] declared in .asFairChannel..' type=kotlin.Any? origin=null + then: GET_VAR 'val tmp_0: kotlin.Any? declared in .asFairChannel..' type=kotlin.Any? origin=null FUN name:asChannel visibility:private modality:FINAL <> ($receiver:.CoroutineScope, flow:.Flow<*>) returnType:.ReceiveChannel $receiver: VALUE_PARAMETER name: type:.CoroutineScope VALUE_PARAMETER name:flow index:0 type:.Flow<*> @@ -126,15 +126,15 @@ FILE fqName: fileName:/castsInsideCoroutineInference.kt FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> ($receiver:.ProducerScope) returnType:kotlin.Unit [suspend] $receiver: VALUE_PARAMETER name:$this$produce type:.ProducerScope BLOCK_BODY - CALL 'public final fun collect (action: kotlin.coroutines.SuspendFunction1<@[ParameterName(name = 'value')] T of .collect, kotlin.Unit>): kotlin.Unit [inline,suspend] declared in ' type=kotlin.Unit origin=null + CALL 'public final fun collect (action: kotlin.coroutines.SuspendFunction1<@[ParameterName(name = 'value')] T of .collect, kotlin.Unit>): kotlin.Unit declared in ' type=kotlin.Unit origin=null : kotlin.Any? $receiver: GET_VAR 'flow: .Flow<*> declared in .asChannel' type=.Flow<*> origin=null action: FUN_EXPR type=kotlin.coroutines.SuspendFunction1<@[ParameterName(name = 'value')] kotlin.Any?, kotlin.Unit> origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> (value:kotlin.Any?) returnType:kotlin.Unit [suspend] VALUE_PARAMETER name:value index:0 type:kotlin.Any? BLOCK_BODY - RETURN type=kotlin.Nothing from='local final fun (value: kotlin.Any?): kotlin.Unit [suspend] declared in .asChannel.' - CALL 'public abstract fun send (e: E of .SendChannel): kotlin.Unit [suspend] declared in .SendChannel' type=kotlin.Unit origin=null + RETURN type=kotlin.Nothing from='local final fun (value: kotlin.Any?): kotlin.Unit declared in .asChannel.' + CALL 'public abstract fun send (e: E of .SendChannel): kotlin.Unit declared in .SendChannel' type=kotlin.Unit origin=null $this: CALL 'public abstract fun (): .SendChannel.ProducerScope> declared in .ProducerScope' type=.SendChannel origin=GET_PROPERTY $this: GET_VAR '$this$produce: .ProducerScope declared in .asChannel.' type=.ProducerScope origin=null e: BLOCK type=kotlin.Any origin=ELVIS @@ -143,19 +143,19 @@ FILE fqName: fileName:/castsInsideCoroutineInference.kt WHEN type=kotlin.Any origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_1: kotlin.Any? [val] declared in .asChannel..' type=kotlin.Any? origin=null + arg0: GET_VAR 'val tmp_1: kotlin.Any? declared in .asChannel..' type=kotlin.Any? origin=null arg1: CONST Null type=kotlin.Nothing? value=null - then: CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' type=kotlin.Any origin=null + then: CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' type=kotlin.Any origin=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val tmp_1: kotlin.Any? [val] declared in .asChannel..' type=kotlin.Any? origin=null + then: GET_VAR 'val tmp_1: kotlin.Any? declared in .asChannel..' type=kotlin.Any? origin=null CLASS CLASS name:SafeCollector modality:FINAL visibility:public superTypes:[.FlowCollector.SafeCollector>] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.SafeCollector.SafeCollector> TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false CONSTRUCTOR visibility:public <> (collector:.FlowCollector.SafeCollector>) returnType:.SafeCollector.SafeCollector> [primary] VALUE_PARAMETER name:collector index:0 type:.FlowCollector.SafeCollector> BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:SafeCollector modality:FINAL visibility:public superTypes:[.FlowCollector.SafeCollector>]' PROPERTY name:collector visibility:internal modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:collector type:.FlowCollector.SafeCollector> visibility:private [final] @@ -170,22 +170,22 @@ FILE fqName: fileName:/castsInsideCoroutineInference.kt receiver: GET_VAR ': .SafeCollector.SafeCollector> declared in .SafeCollector.' type=.SafeCollector.SafeCollector> origin=null FUN name:emit visibility:public modality:OPEN <> ($this:.SafeCollector.SafeCollector>, value:T of .SafeCollector) returnType:kotlin.Unit [suspend] overridden: - public abstract fun emit (value: T of .FlowCollector): kotlin.Unit [suspend] declared in .FlowCollector + public abstract fun emit (value: T of .FlowCollector): kotlin.Unit declared in .FlowCollector $this: VALUE_PARAMETER name: type:.SafeCollector.SafeCollector> VALUE_PARAMETER name:value index:0 type:T of .SafeCollector 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 [fake_override,operator] declared in .FlowCollector + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .FlowCollector $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 .FlowCollector + public open fun hashCode (): kotlin.Int declared in .FlowCollector $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 .FlowCollector + public open fun toString (): kotlin.String declared in .FlowCollector $this: VALUE_PARAMETER name: type:kotlin.Any FUN name:flow visibility:public modality:FINAL (block:@[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1<.FlowCollector.flow>, kotlin.Unit>) returnType:.Flow.flow> annotations: @@ -194,15 +194,15 @@ FILE fqName: fileName:/castsInsideCoroutineInference.kt VALUE_PARAMETER name:block index:0 type:@[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1<.FlowCollector.flow>, kotlin.Unit> BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun flow (block: @[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1<.FlowCollector.flow>, kotlin.Unit>): .Flow.flow> declared in ' - CALL 'public final fun TODO (): kotlin.Nothing [inline] declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin.StandardKt' type=kotlin.Nothing origin=null FUN name:flowScope visibility:public modality:FINAL (block:@[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1<.CoroutineScope, R of .flowScope>) returnType:R of .flowScope [suspend] annotations: OptIn(markerClass = [CLASS_REFERENCE 'CLASS IR_EXTERNAL_DECLARATION_STUB ANNOTATION_CLASS name:ExperimentalTypeInference modality:OPEN visibility:public superTypes:[kotlin.Annotation]' type=kotlin.reflect.KClass]) TYPE_PARAMETER name:R index:0 variance: superTypes:[kotlin.Any?] reified:false VALUE_PARAMETER name:block index:0 type:@[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1<.CoroutineScope, R of .flowScope> BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun flowScope (block: @[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1<.CoroutineScope, R of .flowScope>): R of .flowScope [suspend] declared in ' - CALL 'public final fun TODO (): kotlin.Nothing [inline] declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + RETURN type=kotlin.Nothing from='public final fun flowScope (block: @[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1<.CoroutineScope, R of .flowScope>): R of .flowScope declared in ' + CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin.StandardKt' type=kotlin.Nothing origin=null FUN name:collect visibility:public modality:FINAL ($receiver:.Flow.collect>, action:kotlin.coroutines.SuspendFunction1<@[ParameterName(name = 'value')] T of .collect, kotlin.Unit>) returnType:kotlin.Unit [inline,suspend] TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false $receiver: VALUE_PARAMETER name: type:.Flow.collect> @@ -213,7 +213,7 @@ FILE fqName: fileName:/castsInsideCoroutineInference.kt TYPE_PARAMETER name:E index:0 variance: superTypes:[kotlin.Any?] reified:false CONSTRUCTOR visibility:public <> () returnType:.ChannelCoroutine.ChannelCoroutine> [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:ChannelCoroutine modality:OPEN visibility:public superTypes:[kotlin.Any]' FUN name:sendFair visibility:public modality:FINAL <> ($this:.ChannelCoroutine.ChannelCoroutine>, element:E of .ChannelCoroutine) returnType:kotlin.Unit [suspend] $this: VALUE_PARAMETER name: type:.ChannelCoroutine.ChannelCoroutine> @@ -221,7 +221,7 @@ FILE fqName: fileName:/castsInsideCoroutineInference.kt 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -236,7 +236,7 @@ FILE fqName: fileName:/castsInsideCoroutineInference.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.CoroutineScope 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -255,7 +255,7 @@ FILE fqName: fileName:/castsInsideCoroutineInference.kt VALUE_PARAMETER name:collector index:0 type:.FlowCollector.Flow> 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -274,7 +274,7 @@ FILE fqName: fileName:/castsInsideCoroutineInference.kt VALUE_PARAMETER name:value index:0 type:T of .FlowCollector 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -290,7 +290,7 @@ FILE fqName: fileName:/castsInsideCoroutineInference.kt TYPE_PARAMETER name:E index:0 variance:out superTypes:[kotlin.Any?] reified:false 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -309,7 +309,7 @@ FILE fqName: fileName:/castsInsideCoroutineInference.kt VALUE_PARAMETER name:block index:0 type:@[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1<.ProducerScope.produce>, kotlin.Unit> BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun produce (block: @[ExtensionFunctionType] kotlin.coroutines.SuspendFunction1<.ProducerScope.produce>, kotlin.Unit>): .ReceiveChannel.produce> declared in ' - CALL 'public final fun TODO (): kotlin.Nothing [inline] declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin.StandardKt' type=kotlin.Nothing origin=null CLASS INTERFACE name:ProducerScope modality:ABSTRACT visibility:public superTypes:[.CoroutineScope; .SendChannel.ProducerScope>] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.ProducerScope.ProducerScope> TYPE_PARAMETER name:E index:0 variance:in superTypes:[kotlin.Any?] reified:false @@ -319,23 +319,23 @@ FILE fqName: fileName:/castsInsideCoroutineInference.kt $this: VALUE_PARAMETER name: type:.ProducerScope.ProducerScope> 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 .CoroutineScope - public open fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .SendChannel + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .CoroutineScope + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .SendChannel $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 .CoroutineScope - public open fun hashCode (): kotlin.Int [fake_override] declared in .SendChannel + public open fun hashCode (): kotlin.Int declared in .CoroutineScope + public open fun hashCode (): kotlin.Int declared in .SendChannel $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 .CoroutineScope - public open fun toString (): kotlin.String [fake_override] declared in .SendChannel + public open fun toString (): kotlin.String declared in .CoroutineScope + public open fun toString (): kotlin.String declared in .SendChannel $this: VALUE_PARAMETER name: type:kotlin.Any FUN FAKE_OVERRIDE name:send visibility:public modality:ABSTRACT <> ($this:.SendChannel.ProducerScope>, e:E of .ProducerScope) returnType:kotlin.Unit [suspend,fake_override] overridden: - public abstract fun send (e: E of .SendChannel): kotlin.Unit [suspend] declared in .SendChannel + public abstract fun send (e: E of .SendChannel): kotlin.Unit declared in .SendChannel $this: VALUE_PARAMETER name: type:.SendChannel.ProducerScope> VALUE_PARAMETER name:e index:0 type:E of .ProducerScope CLASS INTERFACE name:SendChannel modality:ABSTRACT visibility:public superTypes:[kotlin.Any] @@ -346,7 +346,7 @@ FILE fqName: fileName:/castsInsideCoroutineInference.kt VALUE_PARAMETER name:e index:0 type:E of .SendChannel 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/types/definitelyNonNull.fir.ir.txt b/compiler/testData/ir/irText/types/definitelyNonNull.fir.ir.txt index ab8bdb01a22..a320667cb00 100644 --- a/compiler/testData/ir/irText/types/definitelyNonNull.fir.ir.txt +++ b/compiler/testData/ir/irText/types/definitelyNonNull.fir.ir.txt @@ -11,12 +11,12 @@ FILE fqName: fileName:/definitelyNonNull.kt WHEN type={T of .elvisLike & Any} origin=ELVIS BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_0: T of .elvisLike [val] declared in .elvisLike' type=T of .elvisLike origin=null + arg0: GET_VAR 'val tmp_0: T of .elvisLike declared in .elvisLike' type=T of .elvisLike origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: GET_VAR 'y: {T of .elvisLike & Any} declared in .elvisLike' type={T of .elvisLike & Any} origin=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val tmp_0: T of .elvisLike [val] declared in .elvisLike' type=T of .elvisLike origin=null + then: GET_VAR 'val tmp_0: T of .elvisLike declared in .elvisLike' type=T of .elvisLike origin=null FUN name:main visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit diff --git a/compiler/testData/ir/irText/types/definitelyNonNull.ir.txt b/compiler/testData/ir/irText/types/definitelyNonNull.ir.txt index 6fcc7d46c1e..e13ced597cb 100644 --- a/compiler/testData/ir/irText/types/definitelyNonNull.ir.txt +++ b/compiler/testData/ir/irText/types/definitelyNonNull.ir.txt @@ -11,12 +11,12 @@ FILE fqName: fileName:/definitelyNonNull.kt WHEN type={T of .elvisLike & Any} origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_0: T of .elvisLike [val] declared in .elvisLike' type=T of .elvisLike origin=null + arg0: GET_VAR 'val tmp_0: T of .elvisLike declared in .elvisLike' type=T of .elvisLike origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: GET_VAR 'y: {T of .elvisLike & Any} declared in .elvisLike' type={T of .elvisLike & Any} origin=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val tmp_0: T of .elvisLike [val] declared in .elvisLike' type=T of .elvisLike origin=null + then: GET_VAR 'val tmp_0: T of .elvisLike declared in .elvisLike' type=T of .elvisLike origin=null FUN name:main visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit diff --git a/compiler/testData/ir/irText/types/definitelyNonNullOverride.fir.ir.txt b/compiler/testData/ir/irText/types/definitelyNonNullOverride.fir.ir.txt index 0fccf290c21..8c07b85e4ec 100644 --- a/compiler/testData/ir/irText/types/definitelyNonNullOverride.fir.ir.txt +++ b/compiler/testData/ir/irText/types/definitelyNonNullOverride.fir.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/definitelyNonNullOverride.kt TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false CONSTRUCTOR visibility:public <> () returnType:.B.B> [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:B modality:OPEN visibility:public superTypes:[kotlin.Any]' FUN name:foo visibility:public modality:OPEN <> ($this:.B.B>, t:T of .B) returnType:kotlin.Unit $this: VALUE_PARAMETER name: type:.B.B> @@ -26,7 +26,7 @@ FILE fqName: fileName:/definitelyNonNullOverride.kt 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -42,7 +42,7 @@ FILE fqName: fileName:/definitelyNonNullOverride.kt TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false CONSTRUCTOR visibility:public <> () returnType:.D.D> [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .B' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .B' : {T of .D & Any} INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:D modality:FINAL visibility:public superTypes:[.B<{T of .D & Any}>]' FUN name:foo visibility:public modality:OPEN <> ($this:.D.D>, t:{T of .D & Any}) returnType:kotlin.Unit @@ -70,14 +70,14 @@ FILE fqName: fileName:/definitelyNonNullOverride.kt VALUE_PARAMETER name:q index:1 type:F of .D.six 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 .B + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .B $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 .B + public open fun hashCode (): kotlin.Int declared in .B $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 .B + public open fun toString (): kotlin.String declared in .B $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/types/definitelyNonNullOverride.ir.txt b/compiler/testData/ir/irText/types/definitelyNonNullOverride.ir.txt index 8ba7c8d1e09..91f4eb43607 100644 --- a/compiler/testData/ir/irText/types/definitelyNonNullOverride.ir.txt +++ b/compiler/testData/ir/irText/types/definitelyNonNullOverride.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/definitelyNonNullOverride.kt TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false CONSTRUCTOR visibility:public <> () returnType:.B.B> [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:B modality:OPEN visibility:public superTypes:[kotlin.Any]' FUN name:foo visibility:public modality:OPEN <> ($this:.B.B>, t:T of .B) returnType:kotlin.Unit $this: VALUE_PARAMETER name: type:.B.B> @@ -26,7 +26,7 @@ FILE fqName: fileName:/definitelyNonNullOverride.kt 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -42,7 +42,7 @@ FILE fqName: fileName:/definitelyNonNullOverride.kt TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false CONSTRUCTOR visibility:public <> () returnType:.D.D> [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .B' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .B' : {T of .D & Any} INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:D modality:FINAL visibility:public superTypes:[.B<{T of .D & Any}>]' FUN name:foo visibility:public modality:OPEN <> ($this:.D.D>, t:{T of .D & Any}) returnType:kotlin.Unit @@ -70,14 +70,14 @@ FILE fqName: fileName:/definitelyNonNullOverride.kt VALUE_PARAMETER name:q index:1 type:F of .D.six 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 .B + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .B $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 .B + public open fun hashCode (): kotlin.Int declared in .B $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 .B + public open fun toString (): kotlin.String declared in .B $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/types/definitelyNonNullSAM.fir.ir.txt b/compiler/testData/ir/irText/types/definitelyNonNullSAM.fir.ir.txt index 11d9656b71b..367d21a0645 100644 --- a/compiler/testData/ir/irText/types/definitelyNonNullSAM.fir.ir.txt +++ b/compiler/testData/ir/irText/types/definitelyNonNullSAM.fir.ir.txt @@ -7,7 +7,7 @@ FILE fqName: fileName:/definitelyNonNullSAM.kt VALUE_PARAMETER name:x index:0 type:T of .FIn 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -23,7 +23,7 @@ FILE fqName: fileName:/definitelyNonNullSAM.kt TYPE_PARAMETER name:S index:0 variance: superTypes:[kotlin.Any?] reified:false CONSTRUCTOR visibility:public <> () returnType:.Test.Test> [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test modality:FINAL visibility:public superTypes:[kotlin.Any]' FUN name:foo visibility:public modality:FINAL <> ($this:.Test.Test>) returnType:.FIn<{S of .Test & Any}> $this: VALUE_PARAMETER name: type:.Test.Test> @@ -39,7 +39,7 @@ FILE fqName: fileName:/definitelyNonNullSAM.kt $this: GET_VAR 'sx: {S of .Test & Any} declared in .Test.foo.' type={S of .Test & Any} 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -59,7 +59,7 @@ FILE fqName: fileName:/definitelyNonNullSAM.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.bar..bar> CONSTRUCTOR visibility:public <> () returnType:.bar..bar> [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name: modality:FINAL visibility:local superTypes:[.FIn<{T of .bar & Any}>]' FUN name:f visibility:public modality:OPEN <> ($this:.bar..bar>, sx:{T of .bar & Any}) returnType:kotlin.Unit overridden: @@ -72,18 +72,18 @@ FILE fqName: fileName:/definitelyNonNullSAM.kt $this: GET_VAR 'sx: {T of .bar & Any} declared in .bar..f' type={T of .bar & Any} 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 [fake_override,operator] declared in .FIn + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .FIn $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 .FIn + public open fun hashCode (): kotlin.Int declared in .FIn $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 .FIn + public open fun toString (): kotlin.String declared in .FIn $this: VALUE_PARAMETER name: type:kotlin.Any - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .bar.' type=.bar..bar> origin=OBJECT_LITERAL + CONSTRUCTOR_CALL 'public constructor () declared in .bar.' type=.bar..bar> origin=OBJECT_LITERAL CLASS INTERFACE name:I1 modality:ABSTRACT visibility:public superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.I1.I1> TYPE_PARAMETER name:T index:0 variance:in superTypes:[kotlin.Any?] reified:false @@ -93,7 +93,7 @@ FILE fqName: fileName:/definitelyNonNullSAM.kt $this: VALUE_PARAMETER name: type:.I1.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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -113,7 +113,7 @@ FILE fqName: fileName:/definitelyNonNullSAM.kt $this: VALUE_PARAMETER name: type:.I2.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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -129,15 +129,15 @@ FILE fqName: fileName:/definitelyNonNullSAM.kt TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false CONSTRUCTOR visibility:public <> () returnType:.AC.AC> [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:AC modality:ABSTRACT visibility:public superTypes:[.I1.AC>; .I2.AC>]' PROPERTY name:sam visibility:public modality:OPEN [val] overridden: - public abstract sam: .FIn.I2> [val] + public abstract sam: .FIn.I2> FIELD PROPERTY_BACKING_FIELD name:sam type:.FIn.AC> visibility:private [final] EXPRESSION_BODY TYPE_OP type=.FIn.AC> origin=SAM_CONVERSION typeOperand=.FIn.AC> - CALL 'public abstract fun (): @[ExtensionFunctionType] kotlin.Function1.AC, kotlin.Unit> [fake_override] declared in .AC' type=@[ExtensionFunctionType] kotlin.Function1.AC, kotlin.Unit> origin=GET_PROPERTY + CALL 'public abstract fun (): @[ExtensionFunctionType] kotlin.Function1.AC, kotlin.Unit> declared in .AC' type=@[ExtensionFunctionType] kotlin.Function1.AC, kotlin.Unit> origin=GET_PROPERTY $this: GET_VAR ': .AC.AC> declared in .AC' type=.AC.AC> origin=null FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:OPEN <> ($this:.AC.AC>) returnType:.FIn.AC> correspondingProperty: PROPERTY name:sam visibility:public modality:OPEN [val] @@ -150,7 +150,7 @@ FILE fqName: fileName:/definitelyNonNullSAM.kt receiver: GET_VAR ': .AC.AC> declared in .AC.' type=.AC.AC> origin=null PROPERTY FAKE_OVERRIDE name:l visibility:public modality:ABSTRACT [fake_override,val] overridden: - public abstract l: @[ExtensionFunctionType] kotlin.Function1.I1, kotlin.Unit> [val] + public abstract l: @[ExtensionFunctionType] kotlin.Function1.I1, kotlin.Unit> FUN FAKE_OVERRIDE name: visibility:public modality:ABSTRACT <> ($this:.I1.I1>) returnType:@[ExtensionFunctionType] kotlin.Function1.AC, kotlin.Unit> [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:l visibility:public modality:ABSTRACT [fake_override,val] overridden: @@ -158,31 +158,31 @@ FILE fqName: fileName:/definitelyNonNullSAM.kt $this: VALUE_PARAMETER name: type:.I1.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 [fake_override,operator] declared in .I1 - public open fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .I2 + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .I1 + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .I2 $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 .I1 - public open fun hashCode (): kotlin.Int [fake_override] declared in .I2 + public open fun hashCode (): kotlin.Int declared in .I1 + public open fun hashCode (): kotlin.Int declared in .I2 $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 .I1 - public open fun toString (): kotlin.String [fake_override] declared in .I2 + public open fun toString (): kotlin.String declared in .I1 + public open fun toString (): kotlin.String declared in .I2 $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:AD modality:ABSTRACT visibility:public superTypes:[.AC<{T of .AD & Any}>] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.AD.AD> TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false CONSTRUCTOR visibility:public <> () returnType:.AD.AD> [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .AC' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .AC' : {T of .AD & Any} INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:AD modality:ABSTRACT visibility:public superTypes:[.AC<{T of .AD & Any}>]' PROPERTY name:l visibility:public modality:OPEN [val] overridden: - public abstract l: @[ExtensionFunctionType] kotlin.Function1.AC, kotlin.Unit> [fake_override,val] + public abstract l: @[ExtensionFunctionType] kotlin.Function1.AC, kotlin.Unit> FIELD PROPERTY_BACKING_FIELD name:l type:@[ExtensionFunctionType] kotlin.Function1<{T of .AD & Any}, kotlin.Unit> visibility:private [final] EXPRESSION_BODY FUN_EXPR type=@[ExtensionFunctionType] kotlin.Function1<{T of .AD & Any}, kotlin.Unit> origin=LAMBDA @@ -194,7 +194,7 @@ FILE fqName: fileName:/definitelyNonNullSAM.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:OPEN <> ($this:.AD.AD>) returnType:@[ExtensionFunctionType] kotlin.Function1<{T of .AD & Any}, kotlin.Unit> correspondingProperty: PROPERTY name:l visibility:public modality:OPEN [val] overridden: - public abstract fun (): @[ExtensionFunctionType] kotlin.Function1.AC, kotlin.Unit> [fake_override] declared in .AC + public abstract fun (): @[ExtensionFunctionType] kotlin.Function1.AC, kotlin.Unit> declared in .AC $this: VALUE_PARAMETER name: type:.AD.AD> BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun (): @[ExtensionFunctionType] kotlin.Function1<{T of .AD & Any}, kotlin.Unit> declared in .AD' @@ -202,7 +202,7 @@ FILE fqName: fileName:/definitelyNonNullSAM.kt receiver: GET_VAR ': .AD.AD> declared in .AD.' type=.AD.AD> origin=null PROPERTY FAKE_OVERRIDE name:sam visibility:public modality:OPEN [fake_override,val] overridden: - public open sam: .FIn.AC> [val] + public open sam: .FIn.AC> FUN FAKE_OVERRIDE name: visibility:public modality:OPEN <> ($this:.AC.AC>) returnType:.FIn<{T of .AD & Any}> [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:sam visibility:public modality:OPEN [fake_override,val] overridden: @@ -210,14 +210,14 @@ FILE fqName: fileName:/definitelyNonNullSAM.kt $this: VALUE_PARAMETER name: type:.AC.AC> 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 .AC + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .AC $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 .AC + public open fun hashCode (): kotlin.Int declared in .AC $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 .AC + public open fun toString (): kotlin.String declared in .AC $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/types/definitelyNonNullSAM.ir.txt b/compiler/testData/ir/irText/types/definitelyNonNullSAM.ir.txt index 263ffbf687b..8c086da4c51 100644 --- a/compiler/testData/ir/irText/types/definitelyNonNullSAM.ir.txt +++ b/compiler/testData/ir/irText/types/definitelyNonNullSAM.ir.txt @@ -7,7 +7,7 @@ FILE fqName: fileName:/definitelyNonNullSAM.kt VALUE_PARAMETER name:x index:0 type:T of .FIn 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -23,7 +23,7 @@ FILE fqName: fileName:/definitelyNonNullSAM.kt TYPE_PARAMETER name:S index:0 variance: superTypes:[kotlin.Any?] reified:false CONSTRUCTOR visibility:public <> () returnType:.Test.Test> [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Test modality:FINAL visibility:public superTypes:[kotlin.Any]' FUN name:foo visibility:public modality:FINAL <> ($this:.Test.Test>) returnType:.FIn<{S of .Test & Any}> $this: VALUE_PARAMETER name: type:.Test.Test> @@ -39,7 +39,7 @@ FILE fqName: fileName:/definitelyNonNullSAM.kt $this: GET_VAR 'sx: {S of .Test & Any} declared in .Test.foo.' type={S of .Test & Any} 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -59,7 +59,7 @@ FILE fqName: fileName:/definitelyNonNullSAM.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.bar..bar> CONSTRUCTOR visibility:public <> () returnType:.bar..bar> [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name: modality:FINAL visibility:local superTypes:[.FIn<{T of .bar & Any}>]' FUN name:f visibility:public modality:OPEN <> ($this:.bar..bar>, sx:{T of .bar & Any}) returnType:kotlin.Unit overridden: @@ -72,18 +72,18 @@ FILE fqName: fileName:/definitelyNonNullSAM.kt $this: GET_VAR 'sx: {T of .bar & Any} declared in .bar..f' type={T of .bar & Any} 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 [fake_override,operator] declared in .FIn + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .FIn $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 .FIn + public open fun hashCode (): kotlin.Int declared in .FIn $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 .FIn + public open fun toString (): kotlin.String declared in .FIn $this: VALUE_PARAMETER name: type:kotlin.Any - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .bar.' type=.bar..bar> origin=OBJECT_LITERAL + CONSTRUCTOR_CALL 'public constructor () declared in .bar.' type=.bar..bar> origin=OBJECT_LITERAL CLASS INTERFACE name:I1 modality:ABSTRACT visibility:public superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.I1.I1> TYPE_PARAMETER name:T index:0 variance:in superTypes:[kotlin.Any?] reified:false @@ -93,7 +93,7 @@ FILE fqName: fileName:/definitelyNonNullSAM.kt $this: VALUE_PARAMETER name: type:.I1.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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -113,7 +113,7 @@ FILE fqName: fileName:/definitelyNonNullSAM.kt $this: VALUE_PARAMETER name: type:.I2.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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -129,15 +129,15 @@ FILE fqName: fileName:/definitelyNonNullSAM.kt TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false CONSTRUCTOR visibility:public <> () returnType:.AC.AC> [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:AC modality:ABSTRACT visibility:public superTypes:[.I1.AC>; .I2.AC>]' PROPERTY name:sam visibility:public modality:OPEN [val] overridden: - public abstract sam: .FIn.I2> [val] + public abstract sam: .FIn.I2> FIELD PROPERTY_BACKING_FIELD name:sam type:.FIn.AC> visibility:private [final] EXPRESSION_BODY TYPE_OP type=.FIn.AC> origin=SAM_CONVERSION typeOperand=.FIn.AC> - CALL 'public abstract fun (): @[ExtensionFunctionType] kotlin.Function1.AC, kotlin.Unit> [fake_override] declared in .AC' type=@[ExtensionFunctionType] kotlin.Function1.AC, kotlin.Unit> origin=GET_PROPERTY + CALL 'public abstract fun (): @[ExtensionFunctionType] kotlin.Function1.AC, kotlin.Unit> declared in .AC' type=@[ExtensionFunctionType] kotlin.Function1.AC, kotlin.Unit> origin=GET_PROPERTY $this: GET_VAR ': .AC.AC> declared in .AC' type=.AC.AC> origin=null FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:OPEN <> ($this:.AC.AC>) returnType:.FIn.AC> correspondingProperty: PROPERTY name:sam visibility:public modality:OPEN [val] @@ -150,7 +150,7 @@ FILE fqName: fileName:/definitelyNonNullSAM.kt receiver: GET_VAR ': .AC.AC> declared in .AC.' type=.AC.AC> origin=null PROPERTY FAKE_OVERRIDE name:l visibility:public modality:ABSTRACT [fake_override,val] overridden: - public abstract l: @[ExtensionFunctionType] kotlin.Function1.I1, kotlin.Unit> [val] + public abstract l: @[ExtensionFunctionType] kotlin.Function1.I1, kotlin.Unit> FUN FAKE_OVERRIDE name: visibility:public modality:ABSTRACT <> ($this:.I1.AC>) returnType:@[ExtensionFunctionType] kotlin.Function1.AC, kotlin.Unit> [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:l visibility:public modality:ABSTRACT [fake_override,val] overridden: @@ -158,31 +158,31 @@ FILE fqName: fileName:/definitelyNonNullSAM.kt $this: VALUE_PARAMETER name: type:.I1.AC> 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 .I1 - public open fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .I2 + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .I1 + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .I2 $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 .I1 - public open fun hashCode (): kotlin.Int [fake_override] declared in .I2 + public open fun hashCode (): kotlin.Int declared in .I1 + public open fun hashCode (): kotlin.Int declared in .I2 $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 .I1 - public open fun toString (): kotlin.String [fake_override] declared in .I2 + public open fun toString (): kotlin.String declared in .I1 + public open fun toString (): kotlin.String declared in .I2 $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:AD modality:ABSTRACT visibility:public superTypes:[.AC<{T of .AD & Any}>] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.AD.AD> TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false CONSTRUCTOR visibility:public <> () returnType:.AD.AD> [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .AC' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .AC' : {T of .AD & Any} INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:AD modality:ABSTRACT visibility:public superTypes:[.AC<{T of .AD & Any}>]' PROPERTY name:l visibility:public modality:OPEN [val] overridden: - public abstract l: @[ExtensionFunctionType] kotlin.Function1.AC, kotlin.Unit> [fake_override,val] + public abstract l: @[ExtensionFunctionType] kotlin.Function1.AC, kotlin.Unit> FIELD PROPERTY_BACKING_FIELD name:l type:@[ExtensionFunctionType] kotlin.Function1<{T of .AD & Any}, kotlin.Unit> visibility:private [final] EXPRESSION_BODY FUN_EXPR type=@[ExtensionFunctionType] kotlin.Function1<{T of .AD & Any}, kotlin.Unit> origin=LAMBDA @@ -194,7 +194,7 @@ FILE fqName: fileName:/definitelyNonNullSAM.kt FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:OPEN <> ($this:.AD.AD>) returnType:@[ExtensionFunctionType] kotlin.Function1<{T of .AD & Any}, kotlin.Unit> correspondingProperty: PROPERTY name:l visibility:public modality:OPEN [val] overridden: - public abstract fun (): @[ExtensionFunctionType] kotlin.Function1.AC, kotlin.Unit> [fake_override] declared in .AC + public abstract fun (): @[ExtensionFunctionType] kotlin.Function1.AC, kotlin.Unit> declared in .AC $this: VALUE_PARAMETER name: type:.AD.AD> BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun (): @[ExtensionFunctionType] kotlin.Function1<{T of .AD & Any}, kotlin.Unit> declared in .AD' @@ -202,7 +202,7 @@ FILE fqName: fileName:/definitelyNonNullSAM.kt receiver: GET_VAR ': .AD.AD> declared in .AD.' type=.AD.AD> origin=null PROPERTY FAKE_OVERRIDE name:sam visibility:public modality:OPEN [fake_override,val] overridden: - public open sam: .FIn.AC> [val] + public open sam: .FIn.AC> FUN FAKE_OVERRIDE name: visibility:public modality:OPEN <> ($this:.AC<{T of .AD & Any}>) returnType:.FIn<{T of .AD & Any}> [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:sam visibility:public modality:OPEN [fake_override,val] overridden: @@ -210,14 +210,14 @@ FILE fqName: fileName:/definitelyNonNullSAM.kt $this: VALUE_PARAMETER name: type:.AC<{T of .AD & 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 [fake_override,operator] declared in .AC + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .AC $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 .AC + public open fun hashCode (): kotlin.Int declared in .AC $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 .AC + public open fun toString (): kotlin.String declared in .AC $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/types/definitelyNonNullWithJava.ir.txt b/compiler/testData/ir/irText/types/definitelyNonNullWithJava.ir.txt index 5f194a6a802..6731ec2303a 100644 --- a/compiler/testData/ir/irText/types/definitelyNonNullWithJava.ir.txt +++ b/compiler/testData/ir/irText/types/definitelyNonNullWithJava.ir.txt @@ -14,14 +14,14 @@ FILE fqName: fileName:/main.kt VALUE_PARAMETER name:x index:0 type:{T1 of .B & 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 [fake_override,operator] declared in .A + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .A $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 .A + public open fun hashCode (): kotlin.Int declared in .A $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 .A + public open fun toString (): kotlin.String declared in .A $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/types/definitelyNotNullAsArgument.fir.ir.txt b/compiler/testData/ir/irText/types/definitelyNotNullAsArgument.fir.ir.txt index e7fb28a7a4f..cf9a39950f3 100644 --- a/compiler/testData/ir/irText/types/definitelyNotNullAsArgument.fir.ir.txt +++ b/compiler/testData/ir/irText/types/definitelyNotNullAsArgument.fir.ir.txt @@ -9,7 +9,7 @@ FILE fqName: fileName:/definitelyNotNullAsArgument.kt $this: VALUE_PARAMETER name: type:.I.I> 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -51,7 +51,7 @@ FILE fqName: fileName:/definitelyNotNullAsArgument.kt CONSTRUCTOR visibility:public <> (t:TT of .C) returnType:.C.C> [primary] VALUE_PARAMETER name:t index:0 type:TT of .C BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C modality:FINAL visibility:public superTypes:[.I<{TT of .C & Any}>]' PROPERTY name:t visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:t type:TT of .C visibility:private [final] @@ -82,16 +82,16 @@ FILE fqName: fileName:/definitelyNotNullAsArgument.kt $this: GET_VAR ': .C.C> declared in .C.output' type=.C.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 [fake_override,operator] declared in .I + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .I $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 .I + public open fun hashCode (): kotlin.Int declared in .I $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 .I + public open fun toString (): kotlin.String declared in .I $this: VALUE_PARAMETER name: type:kotlin.Any FUN name:foo2 visibility:public modality:FINAL (p1:T1 of .foo2, p2:T2 of .foo2) returnType:kotlin.Unit TYPE_PARAMETER name:T1 index:0 variance: superTypes:[kotlin.Any?] reified:false diff --git a/compiler/testData/ir/irText/types/definitelyNotNullAsArgument.ir.txt b/compiler/testData/ir/irText/types/definitelyNotNullAsArgument.ir.txt index 2907fa59282..3642faeae18 100644 --- a/compiler/testData/ir/irText/types/definitelyNotNullAsArgument.ir.txt +++ b/compiler/testData/ir/irText/types/definitelyNotNullAsArgument.ir.txt @@ -9,7 +9,7 @@ FILE fqName: fileName:/definitelyNotNullAsArgument.kt $this: VALUE_PARAMETER name: type:.I.I> 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -51,7 +51,7 @@ FILE fqName: fileName:/definitelyNotNullAsArgument.kt CONSTRUCTOR visibility:public <> (t:TT of .C) returnType:.C.C> [primary] VALUE_PARAMETER name:t index:0 type:TT of .C BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C modality:FINAL visibility:public superTypes:[.I<{TT of .C & Any}>]' PROPERTY name:t visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:t type:TT of .C visibility:private [final] @@ -82,16 +82,16 @@ FILE fqName: fileName:/definitelyNotNullAsArgument.kt $this: GET_VAR ': .C.C> declared in .C.output' type=.C.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 [fake_override,operator] declared in .I + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .I $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 .I + public open fun hashCode (): kotlin.Int declared in .I $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 .I + public open fun toString (): kotlin.String declared in .I $this: VALUE_PARAMETER name: type:kotlin.Any FUN name:foo2 visibility:public modality:FINAL (p1:T1 of .foo2, p2:T2 of .foo2) returnType:kotlin.Unit TYPE_PARAMETER name:T1 index:0 variance: superTypes:[kotlin.Any?] reified:false diff --git a/compiler/testData/ir/irText/types/definitelyNotNullWithIntersection1.fir.ir.txt b/compiler/testData/ir/irText/types/definitelyNotNullWithIntersection1.fir.ir.txt index 6fff4d4dc64..aa2c3936cb0 100644 --- a/compiler/testData/ir/irText/types/definitelyNotNullWithIntersection1.fir.ir.txt +++ b/compiler/testData/ir/irText/types/definitelyNotNullWithIntersection1.fir.ir.txt @@ -4,11 +4,11 @@ FILE fqName: fileName:/definitelyNotNullWithIntersection1.kt TYPE_PARAMETER name:I index:0 variance:in superTypes:[kotlin.Any?] reified:false CONSTRUCTOR visibility:public <> () returnType:.In.In> [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:In modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -34,9 +34,9 @@ FILE fqName: fileName:/definitelyNotNullWithIntersection1.kt VALUE_PARAMETER name:c index:2 type:kotlin.Array<.In.foo>> BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun foo (a: kotlin.Array<.In<{T of .foo & Any}>>, b: kotlin.Array<.In>, c: kotlin.Array<.In.foo>>): kotlin.Boolean declared in ' - CALL 'public final fun ofType (y: kotlin.Any?): kotlin.Boolean [inline] declared in ' type=kotlin.Boolean origin=null + CALL 'public final fun ofType (y: kotlin.Any?): kotlin.Boolean declared in ' type=kotlin.Boolean origin=null : kotlin.Any - $receiver: CALL 'public final fun get (index: kotlin.Int): T of kotlin.Array [operator] declared in kotlin.Array' type=.In origin=null + $receiver: CALL 'public final fun get (index: kotlin.Int): T of kotlin.Array declared in kotlin.Array' type=.In origin=null $this: CALL 'public final fun select (x: S of .select, y: S of .select, z: S of .select): S of .select declared in ' type=kotlin.Array.In> origin=null : kotlin.Array.In> x: GET_VAR 'a: kotlin.Array<.In<{T of .foo & Any}>> declared in .foo' type=kotlin.Array<.In<{T of .foo & Any}>> origin=null @@ -49,32 +49,32 @@ FILE fqName: fileName:/definitelyNotNullWithIntersection1.kt $receiver: VALUE_PARAMETER name: type:.In.ofType> VALUE_PARAMETER name:y index:0 type:kotlin.Any? BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun ofType (y: kotlin.Any?): kotlin.Boolean [inline] declared in ' + RETURN type=kotlin.Nothing from='public final fun ofType (y: kotlin.Any?): kotlin.Boolean declared in ' TYPE_OP type=kotlin.Boolean origin=INSTANCEOF typeOperand=K of .ofType GET_VAR 'y: kotlin.Any? declared in .ofType' type=kotlin.Any? origin=null FUN name:test visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY VAR name:a1 type:kotlin.Array<.In> [val] - CALL 'public final fun arrayOf (vararg elements: T of kotlin.arrayOf): kotlin.Array [inline] declared in kotlin' type=kotlin.Array<.In> origin=null + CALL 'public final fun arrayOf (vararg elements: T of kotlin.arrayOf): kotlin.Array declared in kotlin' type=kotlin.Array<.In> origin=null : .In elements: VARARG type=kotlin.Array.In> varargElementType=.In - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .In' type=.In origin=null + CONSTRUCTOR_CALL 'public constructor () declared in .In' type=.In origin=null : kotlin.Int VAR name:a2 type:kotlin.Array<.In> [val] - CALL 'public final fun arrayOf (vararg elements: T of kotlin.arrayOf): kotlin.Array [inline] declared in kotlin' type=kotlin.Array<.In> origin=null + CALL 'public final fun arrayOf (vararg elements: T of kotlin.arrayOf): kotlin.Array declared in kotlin' type=kotlin.Array<.In> origin=null : .In elements: VARARG type=kotlin.Array.In> varargElementType=.In - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .In' type=.In origin=null + CONSTRUCTOR_CALL 'public constructor () declared in .In' type=.In origin=null : kotlin.String VAR name:a3 type:kotlin.Array<.In> [val] - CALL 'public final fun arrayOf (vararg elements: T of kotlin.arrayOf): kotlin.Array [inline] declared in kotlin' type=kotlin.Array<.In> origin=null + CALL 'public final fun arrayOf (vararg elements: T of kotlin.arrayOf): kotlin.Array declared in kotlin' type=kotlin.Array<.In> origin=null : .In elements: VARARG type=kotlin.Array.In> varargElementType=.In - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .In' type=.In origin=null + CONSTRUCTOR_CALL 'public constructor () declared in .In' type=.In origin=null : kotlin.Int TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit CALL 'public final fun foo (a: kotlin.Array<.In<{T of .foo & Any}>>, b: kotlin.Array<.In>, c: kotlin.Array<.In.foo>>): kotlin.Boolean declared in ' type=kotlin.Boolean origin=null : kotlin.Int - a: GET_VAR 'val a1: kotlin.Array<.In> [val] declared in .test' type=kotlin.Array<.In> origin=null - b: GET_VAR 'val a2: kotlin.Array<.In> [val] declared in .test' type=kotlin.Array<.In> origin=null - c: GET_VAR 'val a3: kotlin.Array<.In> [val] declared in .test' type=kotlin.Array<.In> origin=null + a: GET_VAR 'val a1: kotlin.Array<.In> declared in .test' type=kotlin.Array<.In> origin=null + b: GET_VAR 'val a2: kotlin.Array<.In> declared in .test' type=kotlin.Array<.In> origin=null + c: GET_VAR 'val a3: kotlin.Array<.In> declared in .test' type=kotlin.Array<.In> origin=null diff --git a/compiler/testData/ir/irText/types/definitelyNotNullWithIntersection1.ir.txt b/compiler/testData/ir/irText/types/definitelyNotNullWithIntersection1.ir.txt index 3bc6e233ba3..300e9494028 100644 --- a/compiler/testData/ir/irText/types/definitelyNotNullWithIntersection1.ir.txt +++ b/compiler/testData/ir/irText/types/definitelyNotNullWithIntersection1.ir.txt @@ -4,11 +4,11 @@ FILE fqName: fileName:/definitelyNotNullWithIntersection1.kt TYPE_PARAMETER name:I index:0 variance:in superTypes:[kotlin.Any?] reified:false CONSTRUCTOR visibility:public <> () returnType:.In.In> [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:In modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -34,9 +34,9 @@ FILE fqName: fileName:/definitelyNotNullWithIntersection1.kt VALUE_PARAMETER name:c index:2 type:kotlin.Array<.In.foo>> BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun foo (a: kotlin.Array<.In<{T of .foo & Any}>>, b: kotlin.Array<.In>, c: kotlin.Array<.In.foo>>): kotlin.Boolean declared in ' - CALL 'public final fun ofType (y: kotlin.Any?): kotlin.Boolean [inline] declared in ' type=kotlin.Boolean origin=null + CALL 'public final fun ofType (y: kotlin.Any?): kotlin.Boolean declared in ' type=kotlin.Boolean origin=null : kotlin.Any - $receiver: CALL 'public final fun get (index: kotlin.Int): T of kotlin.Array [operator] declared in kotlin.Array' type=.In origin=GET_ARRAY_ELEMENT + $receiver: CALL 'public final fun get (index: kotlin.Int): T of kotlin.Array declared in kotlin.Array' type=.In origin=GET_ARRAY_ELEMENT $this: CALL 'public final fun select (x: S of .select, y: S of .select, z: S of .select): S of .select declared in ' type=kotlin.Array.In> origin=null : kotlin.Array.In> x: GET_VAR 'a: kotlin.Array<.In<{T of .foo & Any}>> declared in .foo' type=kotlin.Array<.In<{T of .foo & Any}>> origin=null @@ -49,32 +49,32 @@ FILE fqName: fileName:/definitelyNotNullWithIntersection1.kt $receiver: VALUE_PARAMETER name: type:.In.ofType> VALUE_PARAMETER name:y index:0 type:kotlin.Any? BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun ofType (y: kotlin.Any?): kotlin.Boolean [inline] declared in ' + RETURN type=kotlin.Nothing from='public final fun ofType (y: kotlin.Any?): kotlin.Boolean declared in ' TYPE_OP type=kotlin.Boolean origin=INSTANCEOF typeOperand=K of .ofType GET_VAR 'y: kotlin.Any? declared in .ofType' type=kotlin.Any? origin=null FUN name:test visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY VAR name:a1 type:kotlin.Array<.In> [val] - CALL 'public final fun arrayOf (vararg elements: T of kotlin.arrayOf): kotlin.Array [inline] declared in kotlin' type=kotlin.Array<.In> origin=null + CALL 'public final fun arrayOf (vararg elements: T of kotlin.arrayOf): kotlin.Array declared in kotlin' type=kotlin.Array<.In> origin=null : .In elements: VARARG type=kotlin.Array.In> varargElementType=.In - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .In' type=.In origin=null + CONSTRUCTOR_CALL 'public constructor () declared in .In' type=.In origin=null : kotlin.Int VAR name:a2 type:kotlin.Array<.In> [val] - CALL 'public final fun arrayOf (vararg elements: T of kotlin.arrayOf): kotlin.Array [inline] declared in kotlin' type=kotlin.Array<.In> origin=null + CALL 'public final fun arrayOf (vararg elements: T of kotlin.arrayOf): kotlin.Array declared in kotlin' type=kotlin.Array<.In> origin=null : .In elements: VARARG type=kotlin.Array.In> varargElementType=.In - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .In' type=.In origin=null + CONSTRUCTOR_CALL 'public constructor () declared in .In' type=.In origin=null : kotlin.String VAR name:a3 type:kotlin.Array<.In> [val] - CALL 'public final fun arrayOf (vararg elements: T of kotlin.arrayOf): kotlin.Array [inline] declared in kotlin' type=kotlin.Array<.In> origin=null + CALL 'public final fun arrayOf (vararg elements: T of kotlin.arrayOf): kotlin.Array declared in kotlin' type=kotlin.Array<.In> origin=null : .In elements: VARARG type=kotlin.Array.In> varargElementType=.In - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .In' type=.In origin=null + CONSTRUCTOR_CALL 'public constructor () declared in .In' type=.In origin=null : kotlin.Int TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit CALL 'public final fun foo (a: kotlin.Array<.In<{T of .foo & Any}>>, b: kotlin.Array<.In>, c: kotlin.Array<.In.foo>>): kotlin.Boolean declared in ' type=kotlin.Boolean origin=null : kotlin.Int - a: GET_VAR 'val a1: kotlin.Array<.In> [val] declared in .test' type=kotlin.Array<.In> origin=null - b: GET_VAR 'val a2: kotlin.Array<.In> [val] declared in .test' type=kotlin.Array<.In> origin=null - c: GET_VAR 'val a3: kotlin.Array<.In> [val] declared in .test' type=kotlin.Array<.In> origin=null + a: GET_VAR 'val a1: kotlin.Array<.In> declared in .test' type=kotlin.Array<.In> origin=null + b: GET_VAR 'val a2: kotlin.Array<.In> declared in .test' type=kotlin.Array<.In> origin=null + c: GET_VAR 'val a3: kotlin.Array<.In> declared in .test' type=kotlin.Array<.In> origin=null diff --git a/compiler/testData/ir/irText/types/dontLeaveStubTypesInSetter.ir.txt b/compiler/testData/ir/irText/types/dontLeaveStubTypesInSetter.ir.txt index 32992602d50..ab682e3278f 100644 --- a/compiler/testData/ir/irText/types/dontLeaveStubTypesInSetter.ir.txt +++ b/compiler/testData/ir/irText/types/dontLeaveStubTypesInSetter.ir.txt @@ -5,7 +5,7 @@ FILE fqName: fileName:/dontLeaveStubTypesInSetter.kt CONSTRUCTOR visibility:public <> (x:T of .Foo) returnType:.Foo.Foo> [primary] VALUE_PARAMETER name:x index:0 type:T of .Foo BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Foo modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:x visibility:public modality:FINAL [var] FIELD PROPERTY_BACKING_FIELD name:x type:T of .Foo visibility:private @@ -28,7 +28,7 @@ FILE fqName: fileName:/dontLeaveStubTypesInSetter.kt value: GET_VAR ': T of .Foo declared in .Foo.' type=T of .Foo 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -44,11 +44,11 @@ FILE fqName: fileName:/dontLeaveStubTypesInSetter.kt VALUE_PARAMETER name:x index:0 type:kotlin.collections.MutableList.foo> BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun foo (x: kotlin.collections.MutableList.foo>): .Foo.foo> declared in ' - CALL 'public final fun TODO (): kotlin.Nothing [inline] declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin.StandardKt' type=kotlin.Nothing origin=null FUN name:main visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY VAR name:x type:kotlin.collections.List [val] - CALL 'public final fun buildList (builderAction: @[ExtensionFunctionType] kotlin.Function1, kotlin.Unit>): kotlin.collections.List [inline] declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List origin=null + CALL 'public final fun buildList (builderAction: @[ExtensionFunctionType] kotlin.Function1, kotlin.Unit>): kotlin.collections.List declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List origin=null : kotlin.String builderAction: FUN_EXPR type=@[ExtensionFunctionType] kotlin.Function1, kotlin.Unit> origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> ($receiver:kotlin.collections.MutableList) returnType:kotlin.Unit @@ -63,5 +63,5 @@ FILE fqName: fileName:/dontLeaveStubTypesInSetter.kt : kotlin.String x: GET_VAR '$this$buildList: kotlin.collections.MutableList declared in .main.' type=kotlin.collections.MutableList origin=null CALL 'public final fun (: T of .Foo): kotlin.Unit declared in .Foo' type=kotlin.Unit origin=EQ - $this: GET_VAR 'val foo: .Foo [val] declared in .main.' type=.Foo origin=null + $this: GET_VAR 'val foo: .Foo declared in .main.' type=.Foo origin=null : CONST String type=kotlin.String value="" diff --git a/compiler/testData/ir/irText/types/genericDelegatedDeepProperty.fir.ir.txt b/compiler/testData/ir/irText/types/genericDelegatedDeepProperty.fir.ir.txt index 77d90b389f9..7c6a417645e 100644 --- a/compiler/testData/ir/irText/types/genericDelegatedDeepProperty.fir.ir.txt +++ b/compiler/testData/ir/irText/types/genericDelegatedDeepProperty.fir.ir.txt @@ -7,7 +7,7 @@ FILE fqName: fileName:/genericDelegatedDeepProperty.kt VALUE_PARAMETER name:value1 index:0 type:T of .Value VALUE_PARAMETER name:value2 index:1 type:IT of .Value BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Value modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:value1 visibility:public modality:FINAL [var] FIELD PROPERTY_BACKING_FIELD name:value1 type:T of .Value visibility:private @@ -41,7 +41,7 @@ FILE fqName: fileName:/genericDelegatedDeepProperty.kt receiver: GET_VAR ': .Value.Value, IT of .Value> declared in .Value.' type=.Value.Value, IT of .Value> 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -62,7 +62,7 @@ FILE fqName: fileName:/genericDelegatedDeepProperty.kt VALUE_PARAMETER name:p index:1 type:kotlin.reflect.KProperty<*> 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -83,7 +83,7 @@ FILE fqName: fileName:/genericDelegatedDeepProperty.kt VALUE_PARAMETER name:p index:1 type:kotlin.reflect.KProperty<*> 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -101,7 +101,7 @@ FILE fqName: fileName:/genericDelegatedDeepProperty.kt $this: VALUE_PARAMETER name: type:.IR.IR> 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -118,7 +118,7 @@ FILE fqName: fileName:/genericDelegatedDeepProperty.kt CONSTRUCTOR visibility:public <> (r:R of .CR) returnType:.CR.CR> [primary] VALUE_PARAMETER name:r index:0 type:R of .CR BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:CR modality:FINAL visibility:public superTypes:[.IR.CR>]' PROPERTY name:r visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:r type:R of .CR visibility:private [final] @@ -141,16 +141,16 @@ FILE fqName: fileName:/genericDelegatedDeepProperty.kt $this: GET_VAR ': .CR.CR> declared in .CR.foo' type=.CR.CR> 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 [fake_override,operator] declared in .IR + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IR $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 .IR + public open fun hashCode (): kotlin.Int declared in .IR $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 .IR + public open fun toString (): kotlin.String declared in .IR $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:P modality:FINAL visibility:public superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.P.P, P2 of .P> @@ -160,7 +160,7 @@ FILE fqName: fileName:/genericDelegatedDeepProperty.kt VALUE_PARAMETER name:p1 index:0 type:P1 of .P VALUE_PARAMETER name:p2 index:1 type:P2 of .P BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:P modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:p1 visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:p1 type:P1 of .P visibility:private [final] @@ -186,7 +186,7 @@ FILE fqName: fileName:/genericDelegatedDeepProperty.kt receiver: GET_VAR ': .P.P, P2 of .P> declared in .P.' type=.P.P, P2 of .P> 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -205,7 +205,7 @@ FILE fqName: fileName:/genericDelegatedDeepProperty.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.additionalText$delegate..> CONSTRUCTOR visibility:public <> () returnType:.additionalText$delegate..> [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name: modality:FINAL visibility:local superTypes:[.IDelegate1<.Value., .CR.>>, .P., T of .>>]' FUN name:qux11 visibility:public modality:FINAL ($this:.additionalText$delegate..>, t:F11T of .additionalText$delegate..qux11) returnType:F11T of .additionalText$delegate..qux11 TYPE_PARAMETER name:F11T index:0 variance: superTypes:[kotlin.Any?] reified:false @@ -230,16 +230,16 @@ FILE fqName: fileName:/genericDelegatedDeepProperty.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.additionalText$delegate..deepO$delegate..> CONSTRUCTOR visibility:public <> () returnType:.additionalText$delegate..deepO$delegate..> [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name: modality:FINAL visibility:local superTypes:[.IDelegate1<.Value., .CR.>>, T of .>]' FUN name:getValue visibility:public modality:OPEN <> ($this:.additionalText$delegate..deepO$delegate..>, t:.Value., .CR.>>, p:kotlin.reflect.KProperty<*>) returnType:T of . [operator] overridden: - public abstract fun getValue (t: T1 of .IDelegate1, p: kotlin.reflect.KProperty<*>): R1 of .IDelegate1 [operator] declared in .IDelegate1 + public abstract fun getValue (t: T1 of .IDelegate1, p: kotlin.reflect.KProperty<*>): R1 of .IDelegate1 declared in .IDelegate1 $this: VALUE_PARAMETER name: type:.additionalText$delegate..deepO$delegate..> VALUE_PARAMETER name:t index:0 type:.Value., .CR.>> VALUE_PARAMETER name:p index:1 type:kotlin.reflect.KProperty<*> BLOCK_BODY - RETURN type=kotlin.Nothing from='public open fun getValue (t: .Value., .CR.>>, p: kotlin.reflect.KProperty<*>): T of . [operator] declared in .additionalText$delegate..deepO$delegate.' + RETURN type=kotlin.Nothing from='public open fun getValue (t: .Value., .CR.>>, p: kotlin.reflect.KProperty<*>): T of . declared in .additionalText$delegate..deepO$delegate.' CALL 'public final fun (): T of .Value declared in .Value' type=T of . origin=GET_PROPERTY $this: GET_VAR 't: .Value., .CR.>> declared in .additionalText$delegate..deepO$delegate..getValue' type=.Value., .CR.>> origin=null FUN name:qux21 visibility:public modality:FINAL ($this:.additionalText$delegate..deepO$delegate..>, t:F21T of .additionalText$delegate..deepO$delegate..qux21) returnType:F21T of .additionalText$delegate..deepO$delegate..qux21 @@ -259,29 +259,29 @@ FILE fqName: fileName:/genericDelegatedDeepProperty.kt $this: GET_VAR 't: F22T of .additionalText$delegate..deepO$delegate..qux22 declared in .additionalText$delegate..deepO$delegate..qux22' type=F22T of .additionalText$delegate..deepO$delegate..qux22 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 [fake_override,operator] declared in .IDelegate1 + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IDelegate1 $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 .IDelegate1 + public open fun hashCode (): kotlin.Int declared in .IDelegate1 $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 .IDelegate1 + public open fun toString (): kotlin.String declared in .IDelegate1 $this: VALUE_PARAMETER name: type:kotlin.Any - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .additionalText$delegate..deepO$delegate.' type=.additionalText$delegate..deepO$delegate..> origin=OBJECT_LITERAL + CONSTRUCTOR_CALL 'public constructor () declared in .additionalText$delegate..deepO$delegate.' type=.additionalText$delegate..deepO$delegate..> origin=OBJECT_LITERAL FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:private modality:FINAL <> ($this:.additionalText$delegate..>, $receiver:.Value., .CR.>>) returnType:T of . correspondingProperty: PROPERTY name:deepO visibility:private modality:FINAL [delegated,val] $this: VALUE_PARAMETER name: type:.additionalText$delegate..> $receiver: VALUE_PARAMETER name: type:.Value., .CR.>> BLOCK_BODY RETURN type=kotlin.Nothing from='private final fun (): T of . declared in .additionalText$delegate.' - CALL 'public open fun getValue (t: .Value., .CR.>>, p: kotlin.reflect.KProperty<*>): T of . [operator] declared in .additionalText$delegate..deepO$delegate.' type=T of . origin=null + CALL 'public open fun getValue (t: .Value., .CR.>>, p: kotlin.reflect.KProperty<*>): T of . declared in .additionalText$delegate..deepO$delegate.' type=T of . origin=null $this: GET_FIELD 'FIELD PROPERTY_DELEGATE name:deepO$delegate type:.additionalText$delegate..deepO$delegate..> visibility:private [final]' type=.additionalText$delegate..deepO$delegate..> origin=null receiver: GET_VAR ': .additionalText$delegate..> declared in .additionalText$delegate..' type=.additionalText$delegate..> origin=null t: GET_VAR ': .Value., .CR.>> declared in .additionalText$delegate..' type=.Value., .CR.>> origin=null - p: PROPERTY_REFERENCE 'private final deepO: T of . [delegated,val]' field=null getter='private final fun (): T of . declared in .additionalText$delegate.' setter=null type=kotlin.reflect.KProperty2<.Value., .CR.>>, *, T of .> origin=PROPERTY_REFERENCE_FOR_DELEGATE + p: PROPERTY_REFERENCE 'private final deepO: T of .' field=null getter='private final fun (): T of . declared in .additionalText$delegate.' setter=null type=kotlin.reflect.KProperty2<.Value., .CR.>>, *, T of .> origin=PROPERTY_REFERENCE_FOR_DELEGATE PROPERTY name:deepK visibility:private modality:FINAL [delegated,val] FIELD PROPERTY_DELEGATE name:deepK$delegate type:.additionalText$delegate..deepK$delegate..> visibility:private [final] EXPRESSION_BODY @@ -290,53 +290,53 @@ FILE fqName: fileName:/genericDelegatedDeepProperty.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.additionalText$delegate..deepK$delegate..> CONSTRUCTOR visibility:public <> () returnType:.additionalText$delegate..deepK$delegate..> [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name: modality:FINAL visibility:local superTypes:[.IDelegate1<.Value., .CR.>>, T of .>]' FUN name:getValue visibility:public modality:OPEN <> ($this:.additionalText$delegate..deepK$delegate..>, t:.Value., .CR.>>, p:kotlin.reflect.KProperty<*>) returnType:T of . [operator] overridden: - public abstract fun getValue (t: T1 of .IDelegate1, p: kotlin.reflect.KProperty<*>): R1 of .IDelegate1 [operator] declared in .IDelegate1 + public abstract fun getValue (t: T1 of .IDelegate1, p: kotlin.reflect.KProperty<*>): R1 of .IDelegate1 declared in .IDelegate1 $this: VALUE_PARAMETER name: type:.additionalText$delegate..deepK$delegate..> VALUE_PARAMETER name:t index:0 type:.Value., .CR.>> VALUE_PARAMETER name:p index:1 type:kotlin.reflect.KProperty<*> BLOCK_BODY - RETURN type=kotlin.Nothing from='public open fun getValue (t: .Value., .CR.>>, p: kotlin.reflect.KProperty<*>): T of . [operator] declared in .additionalText$delegate..deepK$delegate.' + RETURN type=kotlin.Nothing from='public open fun getValue (t: .Value., .CR.>>, p: kotlin.reflect.KProperty<*>): T of . declared in .additionalText$delegate..deepK$delegate.' CALL 'public open fun foo (): R of .CR declared in .CR' type=T of . origin=null $this: CALL 'public final fun (): IT of .Value declared in .Value' type=.CR.> origin=GET_PROPERTY $this: GET_VAR 't: .Value., .CR.>> declared in .additionalText$delegate..deepK$delegate..getValue' type=.Value., .CR.>> 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 [fake_override,operator] declared in .IDelegate1 + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IDelegate1 $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 .IDelegate1 + public open fun hashCode (): kotlin.Int declared in .IDelegate1 $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 .IDelegate1 + public open fun toString (): kotlin.String declared in .IDelegate1 $this: VALUE_PARAMETER name: type:kotlin.Any - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .additionalText$delegate..deepK$delegate.' type=.additionalText$delegate..deepK$delegate..> origin=OBJECT_LITERAL + CONSTRUCTOR_CALL 'public constructor () declared in .additionalText$delegate..deepK$delegate.' type=.additionalText$delegate..deepK$delegate..> origin=OBJECT_LITERAL FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:private modality:FINAL <> ($this:.additionalText$delegate..>, $receiver:.Value., .CR.>>) returnType:T of . correspondingProperty: PROPERTY name:deepK visibility:private modality:FINAL [delegated,val] $this: VALUE_PARAMETER name: type:.additionalText$delegate..> $receiver: VALUE_PARAMETER name: type:.Value., .CR.>> BLOCK_BODY RETURN type=kotlin.Nothing from='private final fun (): T of . declared in .additionalText$delegate.' - CALL 'public open fun getValue (t: .Value., .CR.>>, p: kotlin.reflect.KProperty<*>): T of . [operator] declared in .additionalText$delegate..deepK$delegate.' type=T of . origin=null + CALL 'public open fun getValue (t: .Value., .CR.>>, p: kotlin.reflect.KProperty<*>): T of . declared in .additionalText$delegate..deepK$delegate.' type=T of . origin=null $this: GET_FIELD 'FIELD PROPERTY_DELEGATE name:deepK$delegate type:.additionalText$delegate..deepK$delegate..> visibility:private [final]' type=.additionalText$delegate..deepK$delegate..> origin=null receiver: GET_VAR ': .additionalText$delegate..> declared in .additionalText$delegate..' type=.additionalText$delegate..> origin=null t: GET_VAR ': .Value., .CR.>> declared in .additionalText$delegate..' type=.Value., .CR.>> origin=null - p: PROPERTY_REFERENCE 'private final deepK: T of . [delegated,val]' field=null getter='private final fun (): T of . declared in .additionalText$delegate.' setter=null type=kotlin.reflect.KProperty2<.Value., .CR.>>, *, T of .> origin=PROPERTY_REFERENCE_FOR_DELEGATE + p: PROPERTY_REFERENCE 'private final deepK: T of .' field=null getter='private final fun (): T of . declared in .additionalText$delegate.' setter=null type=kotlin.reflect.KProperty2<.Value., .CR.>>, *, T of .> origin=PROPERTY_REFERENCE_FOR_DELEGATE FUN name:getValue visibility:public modality:OPEN <> ($this:.additionalText$delegate..>, t:.Value., .CR.>>, p:kotlin.reflect.KProperty<*>) returnType:.P., T of .> [operator] overridden: - public abstract fun getValue (t: T1 of .IDelegate1, p: kotlin.reflect.KProperty<*>): R1 of .IDelegate1 [operator] declared in .IDelegate1 + public abstract fun getValue (t: T1 of .IDelegate1, p: kotlin.reflect.KProperty<*>): R1 of .IDelegate1 declared in .IDelegate1 $this: VALUE_PARAMETER name: type:.additionalText$delegate..> VALUE_PARAMETER name:t index:0 type:.Value., .CR.>> VALUE_PARAMETER name:p index:1 type:kotlin.reflect.KProperty<*> BLOCK_BODY - RETURN type=kotlin.Nothing from='public open fun getValue (t: .Value., .CR.>>, p: kotlin.reflect.KProperty<*>): .P., T of .> [operator] declared in .additionalText$delegate.' - CONSTRUCTOR_CALL 'public constructor (p1: P1 of .P, p2: P2 of .P) [primary] declared in .P' type=.P., T of .> origin=null + RETURN type=kotlin.Nothing from='public open fun getValue (t: .Value., .CR.>>, p: kotlin.reflect.KProperty<*>): .P., T of .> declared in .additionalText$delegate.' + CONSTRUCTOR_CALL 'public constructor (p1: P1 of .P, p2: P2 of .P) declared in .P' type=.P., T of .> origin=null : T of . : T of . p1: CALL 'private final fun (): T of . declared in .additionalText$delegate.' type=T of . origin=GET_PROPERTY @@ -347,26 +347,26 @@ FILE fqName: fileName:/genericDelegatedDeepProperty.kt $receiver: GET_VAR 't: .Value., .CR.>> declared in .additionalText$delegate..getValue' type=.Value., .CR.>> 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 [fake_override,operator] declared in .IDelegate1 + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IDelegate1 $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 .IDelegate1 + public open fun hashCode (): kotlin.Int declared in .IDelegate1 $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 .IDelegate1 + public open fun toString (): kotlin.String declared in .IDelegate1 $this: VALUE_PARAMETER name: type:kotlin.Any - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .additionalText$delegate.' type=.additionalText$delegate..> origin=OBJECT_LITERAL + CONSTRUCTOR_CALL 'public constructor () declared in .additionalText$delegate.' type=.additionalText$delegate..> origin=OBJECT_LITERAL FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:public modality:FINAL ($receiver:.Value., .CR.>>) returnType:.P., T of .> correspondingProperty: PROPERTY name:additionalText visibility:public modality:FINAL [delegated,val] TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false $receiver: VALUE_PARAMETER name: type:.Value., .CR.>> BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun (): .P., T of .> declared in ' - CALL 'public open fun getValue (t: .Value., .CR.>>, p: kotlin.reflect.KProperty<*>): .P., T of .> [operator] declared in .additionalText$delegate.' type=.P., T of .> origin=null + CALL 'public open fun getValue (t: .Value., .CR.>>, p: kotlin.reflect.KProperty<*>): .P., T of .> declared in .additionalText$delegate.' type=.P., T of .> origin=null $this: GET_FIELD 'FIELD PROPERTY_DELEGATE name:additionalText$delegate type:.additionalText$delegate..> visibility:private [final,static]' type=.additionalText$delegate..> origin=null t: GET_VAR ': .Value., .CR.>> declared in .' type=.Value., .CR.>> origin=null - p: PROPERTY_REFERENCE 'public final additionalText: .P., T of .> [delegated,val]' field=null getter='public final fun (): .P., T of .> declared in ' setter=null type=kotlin.reflect.KProperty1<.Value., .CR.>>, .P., T of .>> origin=PROPERTY_REFERENCE_FOR_DELEGATE + p: PROPERTY_REFERENCE 'public final additionalText: .P., T of .>' field=null getter='public final fun (): .P., T of .> declared in ' setter=null type=kotlin.reflect.KProperty1<.Value., .CR.>>, .P., T of .>> origin=PROPERTY_REFERENCE_FOR_DELEGATE <1>: T of . diff --git a/compiler/testData/ir/irText/types/genericDelegatedDeepProperty.ir.txt b/compiler/testData/ir/irText/types/genericDelegatedDeepProperty.ir.txt index 855796e757c..6b7137ceef9 100644 --- a/compiler/testData/ir/irText/types/genericDelegatedDeepProperty.ir.txt +++ b/compiler/testData/ir/irText/types/genericDelegatedDeepProperty.ir.txt @@ -7,7 +7,7 @@ FILE fqName: fileName:/genericDelegatedDeepProperty.kt VALUE_PARAMETER name:value1 index:0 type:T of .Value VALUE_PARAMETER name:value2 index:1 type:IT of .Value BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Value modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:value1 visibility:public modality:FINAL [var] FIELD PROPERTY_BACKING_FIELD name:value1 type:T of .Value visibility:private @@ -41,7 +41,7 @@ FILE fqName: fileName:/genericDelegatedDeepProperty.kt receiver: GET_VAR ': .Value.Value, IT of .Value> declared in .Value.' type=.Value.Value, IT of .Value> 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -62,7 +62,7 @@ FILE fqName: fileName:/genericDelegatedDeepProperty.kt VALUE_PARAMETER name:p index:1 type:kotlin.reflect.KProperty<*> 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -83,7 +83,7 @@ FILE fqName: fileName:/genericDelegatedDeepProperty.kt VALUE_PARAMETER name:p index:1 type:kotlin.reflect.KProperty<*> 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -101,7 +101,7 @@ FILE fqName: fileName:/genericDelegatedDeepProperty.kt $this: VALUE_PARAMETER name: type:.IR.IR> 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -118,7 +118,7 @@ FILE fqName: fileName:/genericDelegatedDeepProperty.kt CONSTRUCTOR visibility:public <> (r:R of .CR) returnType:.CR.CR> [primary] VALUE_PARAMETER name:r index:0 type:R of .CR BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:CR modality:FINAL visibility:public superTypes:[.IR.CR>]' PROPERTY name:r visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:r type:R of .CR visibility:private [final] @@ -141,16 +141,16 @@ FILE fqName: fileName:/genericDelegatedDeepProperty.kt $this: GET_VAR ': .CR.CR> declared in .CR.foo' type=.CR.CR> 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 [fake_override,operator] declared in .IR + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IR $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 .IR + public open fun hashCode (): kotlin.Int declared in .IR $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 .IR + public open fun toString (): kotlin.String declared in .IR $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:P modality:FINAL visibility:public superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.P.P, P2 of .P> @@ -160,7 +160,7 @@ FILE fqName: fileName:/genericDelegatedDeepProperty.kt VALUE_PARAMETER name:p1 index:0 type:P1 of .P VALUE_PARAMETER name:p2 index:1 type:P2 of .P BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:P modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:p1 visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:p1 type:P1 of .P visibility:private [final] @@ -186,7 +186,7 @@ FILE fqName: fileName:/genericDelegatedDeepProperty.kt receiver: GET_VAR ': .P.P, P2 of .P> declared in .P.' type=.P.P, P2 of .P> 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -205,7 +205,7 @@ FILE fqName: fileName:/genericDelegatedDeepProperty.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.additionalText$delegate. CONSTRUCTOR visibility:public <> () returnType:.additionalText$delegate. [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name: modality:FINAL visibility:local superTypes:[.IDelegate1<.Value.CR>, .P>]' FUN name:qux11 visibility:public modality:FINAL ($this:.additionalText$delegate., t:F11T of .additionalText$delegate..qux11) returnType:F11T of .additionalText$delegate..qux11 TYPE_PARAMETER name:F11T index:0 variance: superTypes:[kotlin.Any?] reified:false @@ -231,16 +231,16 @@ FILE fqName: fileName:/genericDelegatedDeepProperty.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.additionalText$delegate..deepO$delegate. CONSTRUCTOR visibility:public <> () returnType:.additionalText$delegate..deepO$delegate. [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name: modality:FINAL visibility:local superTypes:[.IDelegate1<.Value.CR>, kotlin.Any?>]' FUN name:getValue visibility:public modality:OPEN <> ($this:.additionalText$delegate..deepO$delegate., t:.Value.CR>, p:kotlin.reflect.KProperty<*>) returnType:kotlin.Any? [operator] overridden: - public abstract fun getValue (t: T1 of .IDelegate1, p: kotlin.reflect.KProperty<*>): R1 of .IDelegate1 [operator] declared in .IDelegate1 + public abstract fun getValue (t: T1 of .IDelegate1, p: kotlin.reflect.KProperty<*>): R1 of .IDelegate1 declared in .IDelegate1 $this: VALUE_PARAMETER name: type:.additionalText$delegate..deepO$delegate. VALUE_PARAMETER name:t index:0 type:.Value.CR> VALUE_PARAMETER name:p index:1 type:kotlin.reflect.KProperty<*> BLOCK_BODY - RETURN type=kotlin.Nothing from='public open fun getValue (t: .Value.CR>, p: kotlin.reflect.KProperty<*>): kotlin.Any? [operator] declared in .additionalText$delegate..deepO$delegate.' + RETURN type=kotlin.Nothing from='public open fun getValue (t: .Value.CR>, p: kotlin.reflect.KProperty<*>): kotlin.Any? declared in .additionalText$delegate..deepO$delegate.' TYPE_OP type=kotlin.Any? origin=IMPLICIT_CAST typeOperand=kotlin.Any? CALL 'public final fun (): T of .Value declared in .Value' type=kotlin.Any? origin=GET_PROPERTY $this: GET_VAR 't: .Value.CR> declared in .additionalText$delegate..deepO$delegate..getValue' type=.Value.CR> origin=null @@ -262,18 +262,18 @@ FILE fqName: fileName:/genericDelegatedDeepProperty.kt $this: GET_VAR 't: F22T of .additionalText$delegate..deepO$delegate..qux22 declared in .additionalText$delegate..deepO$delegate..qux22' type=F22T of .additionalText$delegate..deepO$delegate..qux22 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 [fake_override,operator] declared in .IDelegate1 + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IDelegate1 $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 .IDelegate1 + public open fun hashCode (): kotlin.Int declared in .IDelegate1 $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 .IDelegate1 + public open fun toString (): kotlin.String declared in .IDelegate1 $this: VALUE_PARAMETER name: type:kotlin.Any - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .additionalText$delegate..deepO$delegate.' type=.additionalText$delegate..deepO$delegate. origin=OBJECT_LITERAL + CONSTRUCTOR_CALL 'public constructor () declared in .additionalText$delegate..deepO$delegate.' type=.additionalText$delegate..deepO$delegate. origin=OBJECT_LITERAL FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:private modality:FINAL <> ($this:.additionalText$delegate., $receiver:.Value.CR>) returnType:kotlin.Any? correspondingProperty: PROPERTY name:deepO visibility:private modality:FINAL [delegated,val] $this: VALUE_PARAMETER name: type:.additionalText$delegate. @@ -281,11 +281,11 @@ FILE fqName: fileName:/genericDelegatedDeepProperty.kt BLOCK_BODY RETURN type=kotlin.Nothing from='private final fun (): kotlin.Any? declared in .additionalText$delegate.' TYPE_OP type=kotlin.Any? origin=IMPLICIT_CAST typeOperand=kotlin.Any? - CALL 'public open fun getValue (t: .Value.CR>, p: kotlin.reflect.KProperty<*>): kotlin.Any? [operator] declared in .additionalText$delegate..deepO$delegate.' type=kotlin.Any? origin=null + CALL 'public open fun getValue (t: .Value.CR>, p: kotlin.reflect.KProperty<*>): kotlin.Any? declared in .additionalText$delegate..deepO$delegate.' type=kotlin.Any? origin=null $this: GET_FIELD 'FIELD PROPERTY_DELEGATE name:deepO$delegate type:.additionalText$delegate..deepO$delegate. visibility:private [final]' type=.additionalText$delegate..deepO$delegate. origin=null receiver: GET_VAR ': .additionalText$delegate. declared in .additionalText$delegate..' type=.additionalText$delegate. origin=null t: GET_VAR ': .Value.CR> declared in .additionalText$delegate..' type=.Value.CR> origin=null - p: PROPERTY_REFERENCE 'private final deepO: kotlin.Any? [delegated,val]' field=null getter='private final fun (): kotlin.Any? declared in .additionalText$delegate.' setter=null type=kotlin.reflect.KProperty2<.Value.CR>, .additionalText$delegate., kotlin.Any?> origin=PROPERTY_REFERENCE_FOR_DELEGATE + p: PROPERTY_REFERENCE 'private final deepO: kotlin.Any?' field=null getter='private final fun (): kotlin.Any? declared in .additionalText$delegate.' setter=null type=kotlin.reflect.KProperty2<.Value.CR>, .additionalText$delegate., kotlin.Any?> origin=PROPERTY_REFERENCE_FOR_DELEGATE PROPERTY name:deepK visibility:private modality:FINAL [delegated,val] FIELD PROPERTY_DELEGATE name:deepK$delegate type:.additionalText$delegate..deepK$delegate. visibility:private [final] EXPRESSION_BODY @@ -294,34 +294,34 @@ FILE fqName: fileName:/genericDelegatedDeepProperty.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.additionalText$delegate..deepK$delegate. CONSTRUCTOR visibility:public <> () returnType:.additionalText$delegate..deepK$delegate. [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name: modality:FINAL visibility:local superTypes:[.IDelegate1<.Value.CR>, kotlin.Any?>]' FUN name:getValue visibility:public modality:OPEN <> ($this:.additionalText$delegate..deepK$delegate., t:.Value.CR>, p:kotlin.reflect.KProperty<*>) returnType:kotlin.Any? [operator] overridden: - public abstract fun getValue (t: T1 of .IDelegate1, p: kotlin.reflect.KProperty<*>): R1 of .IDelegate1 [operator] declared in .IDelegate1 + public abstract fun getValue (t: T1 of .IDelegate1, p: kotlin.reflect.KProperty<*>): R1 of .IDelegate1 declared in .IDelegate1 $this: VALUE_PARAMETER name: type:.additionalText$delegate..deepK$delegate. VALUE_PARAMETER name:t index:0 type:.Value.CR> VALUE_PARAMETER name:p index:1 type:kotlin.reflect.KProperty<*> BLOCK_BODY - RETURN type=kotlin.Nothing from='public open fun getValue (t: .Value.CR>, p: kotlin.reflect.KProperty<*>): kotlin.Any? [operator] declared in .additionalText$delegate..deepK$delegate.' + RETURN type=kotlin.Nothing from='public open fun getValue (t: .Value.CR>, p: kotlin.reflect.KProperty<*>): kotlin.Any? declared in .additionalText$delegate..deepK$delegate.' TYPE_OP type=kotlin.Any? origin=IMPLICIT_CAST typeOperand=kotlin.Any? CALL 'public open fun foo (): R of .CR declared in .CR' type=kotlin.Any? origin=null $this: CALL 'public final fun (): IT of .Value declared in .Value' type=.CR origin=GET_PROPERTY $this: GET_VAR 't: .Value.CR> declared in .additionalText$delegate..deepK$delegate..getValue' type=.Value.CR> 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 [fake_override,operator] declared in .IDelegate1 + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IDelegate1 $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 .IDelegate1 + public open fun hashCode (): kotlin.Int declared in .IDelegate1 $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 .IDelegate1 + public open fun toString (): kotlin.String declared in .IDelegate1 $this: VALUE_PARAMETER name: type:kotlin.Any - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .additionalText$delegate..deepK$delegate.' type=.additionalText$delegate..deepK$delegate. origin=OBJECT_LITERAL + CONSTRUCTOR_CALL 'public constructor () declared in .additionalText$delegate..deepK$delegate.' type=.additionalText$delegate..deepK$delegate. origin=OBJECT_LITERAL FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:private modality:FINAL <> ($this:.additionalText$delegate., $receiver:.Value.CR>) returnType:kotlin.Any? correspondingProperty: PROPERTY name:deepK visibility:private modality:FINAL [delegated,val] $this: VALUE_PARAMETER name: type:.additionalText$delegate. @@ -329,20 +329,20 @@ FILE fqName: fileName:/genericDelegatedDeepProperty.kt BLOCK_BODY RETURN type=kotlin.Nothing from='private final fun (): kotlin.Any? declared in .additionalText$delegate.' TYPE_OP type=kotlin.Any? origin=IMPLICIT_CAST typeOperand=kotlin.Any? - CALL 'public open fun getValue (t: .Value.CR>, p: kotlin.reflect.KProperty<*>): kotlin.Any? [operator] declared in .additionalText$delegate..deepK$delegate.' type=kotlin.Any? origin=null + CALL 'public open fun getValue (t: .Value.CR>, p: kotlin.reflect.KProperty<*>): kotlin.Any? declared in .additionalText$delegate..deepK$delegate.' type=kotlin.Any? origin=null $this: GET_FIELD 'FIELD PROPERTY_DELEGATE name:deepK$delegate type:.additionalText$delegate..deepK$delegate. visibility:private [final]' type=.additionalText$delegate..deepK$delegate. origin=null receiver: GET_VAR ': .additionalText$delegate. declared in .additionalText$delegate..' type=.additionalText$delegate. origin=null t: GET_VAR ': .Value.CR> declared in .additionalText$delegate..' type=.Value.CR> origin=null - p: PROPERTY_REFERENCE 'private final deepK: kotlin.Any? [delegated,val]' field=null getter='private final fun (): kotlin.Any? declared in .additionalText$delegate.' setter=null type=kotlin.reflect.KProperty2<.Value.CR>, .additionalText$delegate., kotlin.Any?> origin=PROPERTY_REFERENCE_FOR_DELEGATE + p: PROPERTY_REFERENCE 'private final deepK: kotlin.Any?' field=null getter='private final fun (): kotlin.Any? declared in .additionalText$delegate.' setter=null type=kotlin.reflect.KProperty2<.Value.CR>, .additionalText$delegate., kotlin.Any?> origin=PROPERTY_REFERENCE_FOR_DELEGATE FUN name:getValue visibility:public modality:OPEN <> ($this:.additionalText$delegate., t:.Value.CR>, p:kotlin.reflect.KProperty<*>) returnType:.P [operator] overridden: - public abstract fun getValue (t: T1 of .IDelegate1, p: kotlin.reflect.KProperty<*>): R1 of .IDelegate1 [operator] declared in .IDelegate1 + public abstract fun getValue (t: T1 of .IDelegate1, p: kotlin.reflect.KProperty<*>): R1 of .IDelegate1 declared in .IDelegate1 $this: VALUE_PARAMETER name: type:.additionalText$delegate. VALUE_PARAMETER name:t index:0 type:.Value.CR> VALUE_PARAMETER name:p index:1 type:kotlin.reflect.KProperty<*> BLOCK_BODY - RETURN type=kotlin.Nothing from='public open fun getValue (t: .Value.CR>, p: kotlin.reflect.KProperty<*>): .P [operator] declared in .additionalText$delegate.' - CONSTRUCTOR_CALL 'public constructor (p1: P1 of .P, p2: P2 of .P) [primary] declared in .P' type=.P origin=null + RETURN type=kotlin.Nothing from='public open fun getValue (t: .Value.CR>, p: kotlin.reflect.KProperty<*>): .P declared in .additionalText$delegate.' + CONSTRUCTOR_CALL 'public constructor (p1: P1 of .P, p2: P2 of .P) declared in .P' type=.P origin=null : kotlin.Any? : kotlin.Any? p1: TYPE_OP type=kotlin.Any? origin=IMPLICIT_CAST typeOperand=kotlin.Any? @@ -355,26 +355,26 @@ FILE fqName: fileName:/genericDelegatedDeepProperty.kt $receiver: GET_VAR 't: .Value.CR> declared in .additionalText$delegate..getValue' type=.Value.CR> 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 [fake_override,operator] declared in .IDelegate1 + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IDelegate1 $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 .IDelegate1 + public open fun hashCode (): kotlin.Int declared in .IDelegate1 $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 .IDelegate1 + public open fun toString (): kotlin.String declared in .IDelegate1 $this: VALUE_PARAMETER name: type:kotlin.Any - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .additionalText$delegate.' type=.additionalText$delegate. origin=OBJECT_LITERAL + CONSTRUCTOR_CALL 'public constructor () declared in .additionalText$delegate.' type=.additionalText$delegate. origin=OBJECT_LITERAL FUN DELEGATED_PROPERTY_ACCESSOR name: visibility:public modality:FINAL ($receiver:.Value., .CR.>>) returnType:.P., T of .> correspondingProperty: PROPERTY name:additionalText visibility:public modality:FINAL [delegated,val] TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false $receiver: VALUE_PARAMETER name: type:.Value., .CR.>> BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun (): .P., T of .> declared in ' - CALL 'public open fun getValue (t: .Value.CR>, p: kotlin.reflect.KProperty<*>): .P [operator] declared in .additionalText$delegate.' type=.P., T of .> origin=null + CALL 'public open fun getValue (t: .Value.CR>, p: kotlin.reflect.KProperty<*>): .P declared in .additionalText$delegate.' type=.P., T of .> origin=null $this: GET_FIELD 'FIELD PROPERTY_DELEGATE name:additionalText$delegate type:.additionalText$delegate. visibility:private [final,static]' type=.additionalText$delegate. origin=null t: GET_VAR ': .Value., .CR.>> declared in .' type=.Value., .CR.>> origin=null - p: PROPERTY_REFERENCE 'public final additionalText: .P., T of .> [delegated,val]' field=null getter='public final fun (): .P., T of .> declared in ' setter=null type=kotlin.reflect.KProperty1<.Value., .CR.>>, .P., T of .>> origin=PROPERTY_REFERENCE_FOR_DELEGATE + p: PROPERTY_REFERENCE 'public final additionalText: .P., T of .>' field=null getter='public final fun (): .P., T of .> declared in ' setter=null type=kotlin.reflect.KProperty1<.Value., .CR.>>, .P., T of .>> origin=PROPERTY_REFERENCE_FOR_DELEGATE <1>: T of . diff --git a/compiler/testData/ir/irText/types/genericFunWithStar.fir.ir.txt b/compiler/testData/ir/irText/types/genericFunWithStar.fir.ir.txt index 7f60e1f0c84..7a2fda40acf 100644 --- a/compiler/testData/ir/irText/types/genericFunWithStar.fir.ir.txt +++ b/compiler/testData/ir/irText/types/genericFunWithStar.fir.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/genericFunWithStar.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.IBase 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -18,38 +18,38 @@ FILE fqName: fileName:/genericFunWithStar.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.IFoo 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 .IBase + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IBase $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 .IBase + public open fun hashCode (): kotlin.Int declared in .IBase $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 .IBase + public open fun toString (): kotlin.String declared in .IBase $this: VALUE_PARAMETER name: type:kotlin.Any CLASS INTERFACE name:IBar modality:ABSTRACT visibility:public superTypes:[.IBase] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.IBar 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 .IBase + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IBase $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 .IBase + public open fun hashCode (): kotlin.Int declared in .IBase $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 .IBase + public open fun toString (): kotlin.String declared in .IBase $this: VALUE_PARAMETER name: type:kotlin.Any CLASS INTERFACE name:I modality:ABSTRACT visibility:public superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.I.I> TYPE_PARAMETER name:G index:0 variance: superTypes:[.IFoo; .IBar] reified:false 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -65,7 +65,7 @@ FILE fqName: fileName:/genericFunWithStar.kt TYPE_PARAMETER name:T index:0 variance: superTypes:[.IFoo; .IBar] reified:false CONSTRUCTOR visibility:public <> () returnType:.Box.Box> [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Box modality:ABSTRACT visibility:public superTypes:[.IFoo; .IBar]' FUN name:foo visibility:public modality:ABSTRACT ($this:.Box.Box>, tSerializer:.I.Box.foo>) returnType:.I<.Box.Box.foo>> TYPE_PARAMETER name:F index:0 variance: superTypes:[.IFoo; .IBar] reified:false @@ -79,22 +79,22 @@ FILE fqName: fileName:/genericFunWithStar.kt CALL 'public abstract fun foo (tSerializer: .I.Box.foo>): .I<.Box.Box.foo>> declared in .Box' type=.I.Box<*>> origin=null : .IFoo $this: GET_VAR ': .Box.Box> declared in .Box.bar' type=.Box.Box> origin=null - tSerializer: CALL 'public final fun get (index: kotlin.Int): T of kotlin.Array [operator] declared in kotlin.Array' type=.I<*> origin=null - $this: GET_VAR 'serializers: kotlin.Array.I<*>> [vararg] declared in .Box.bar' type=kotlin.Array.I<*>> origin=null + tSerializer: CALL 'public final fun get (index: kotlin.Int): T of kotlin.Array declared in kotlin.Array' type=.I<*> origin=null + $this: GET_VAR 'serializers: kotlin.Array.I<*>> declared in .Box.bar' type=kotlin.Array.I<*>> origin=null index: CONST Int type=kotlin.Int value=0 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 .IFoo - public open fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .IBar + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IFoo + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IBar $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 .IFoo - public open fun hashCode (): kotlin.Int [fake_override] declared in .IBar + public open fun hashCode (): kotlin.Int declared in .IFoo + public open fun hashCode (): kotlin.Int declared in .IBar $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 .IFoo - public open fun toString (): kotlin.String [fake_override] declared in .IBar + public open fun toString (): kotlin.String declared in .IFoo + public open fun toString (): kotlin.String declared in .IBar $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/types/genericFunWithStar.ir.txt b/compiler/testData/ir/irText/types/genericFunWithStar.ir.txt index aeb2fe53f23..8a5f129b338 100644 --- a/compiler/testData/ir/irText/types/genericFunWithStar.ir.txt +++ b/compiler/testData/ir/irText/types/genericFunWithStar.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/genericFunWithStar.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.IBase 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -18,38 +18,38 @@ FILE fqName: fileName:/genericFunWithStar.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.IFoo 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 .IBase + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IBase $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 .IBase + public open fun hashCode (): kotlin.Int declared in .IBase $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 .IBase + public open fun toString (): kotlin.String declared in .IBase $this: VALUE_PARAMETER name: type:kotlin.Any CLASS INTERFACE name:IBar modality:ABSTRACT visibility:public superTypes:[.IBase] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.IBar 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 .IBase + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IBase $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 .IBase + public open fun hashCode (): kotlin.Int declared in .IBase $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 .IBase + public open fun toString (): kotlin.String declared in .IBase $this: VALUE_PARAMETER name: type:kotlin.Any CLASS INTERFACE name:I modality:ABSTRACT visibility:public superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.I.I> TYPE_PARAMETER name:G index:0 variance: superTypes:[.IFoo; .IBar] reified:false 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -65,7 +65,7 @@ FILE fqName: fileName:/genericFunWithStar.kt TYPE_PARAMETER name:T index:0 variance: superTypes:[.IFoo; .IBar] reified:false CONSTRUCTOR visibility:public <> () returnType:.Box.Box> [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Box modality:ABSTRACT visibility:public superTypes:[.IFoo; .IBar]' FUN name:foo visibility:public modality:ABSTRACT ($this:.Box.Box>, tSerializer:.I.Box.foo>) returnType:.I<.Box.Box.foo>> TYPE_PARAMETER name:F index:0 variance: superTypes:[.IFoo; .IBar] reified:false @@ -79,22 +79,22 @@ FILE fqName: fileName:/genericFunWithStar.kt CALL 'public abstract fun foo (tSerializer: .I.Box.foo>): .I<.Box.Box.foo>> declared in .Box' type=.I.Box<*>> origin=null : .IBase $this: GET_VAR ': .Box.Box> declared in .Box.bar' type=.Box.Box> origin=null - tSerializer: CALL 'public final fun get (index: kotlin.Int): T of kotlin.Array [operator] declared in kotlin.Array' type=.I<*> origin=GET_ARRAY_ELEMENT - $this: GET_VAR 'serializers: kotlin.Array.I<*>> [vararg] declared in .Box.bar' type=kotlin.Array.I<*>> origin=null + tSerializer: CALL 'public final fun get (index: kotlin.Int): T of kotlin.Array declared in kotlin.Array' type=.I<*> origin=GET_ARRAY_ELEMENT + $this: GET_VAR 'serializers: kotlin.Array.I<*>> declared in .Box.bar' type=kotlin.Array.I<*>> origin=null index: CONST Int type=kotlin.Int value=0 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 .IFoo - public open fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .IBar + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IFoo + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IBar $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 .IFoo - public open fun hashCode (): kotlin.Int [fake_override] declared in .IBar + public open fun hashCode (): kotlin.Int declared in .IFoo + public open fun hashCode (): kotlin.Int declared in .IBar $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 .IFoo - public open fun toString (): kotlin.String [fake_override] declared in .IBar + public open fun toString (): kotlin.String declared in .IFoo + public open fun toString (): kotlin.String declared in .IBar $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/types/genericPropertyReferenceType.ir.txt b/compiler/testData/ir/irText/types/genericPropertyReferenceType.ir.txt index b659baced71..e83983c4306 100644 --- a/compiler/testData/ir/irText/types/genericPropertyReferenceType.ir.txt +++ b/compiler/testData/ir/irText/types/genericPropertyReferenceType.ir.txt @@ -5,7 +5,7 @@ FILE fqName: fileName:/genericPropertyReferenceType.kt CONSTRUCTOR visibility:public <> (x:T of .C) returnType:.C.C> [primary] VALUE_PARAMETER name:x index:0 type:T of .C BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:x visibility:public modality:FINAL [var] FIELD PROPERTY_BACKING_FIELD name:x type:T of .C visibility:private @@ -28,7 +28,7 @@ FILE fqName: fileName:/genericPropertyReferenceType.kt value: GET_VAR ': T of .C declared in .C.' type=T of .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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -63,9 +63,9 @@ FILE fqName: fileName:/genericPropertyReferenceType.kt FUN name:test1 visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY CALL 'public final fun use (p: kotlin.reflect.KMutableProperty): kotlin.Unit declared in ' type=kotlin.Unit origin=null - p: PROPERTY_REFERENCE 'public final y: T of . [var]' field=null getter='public final fun (): T of . declared in ' setter='public final fun (v: T of .): kotlin.Unit declared in ' type=kotlin.reflect.KMutableProperty0 origin=null + p: PROPERTY_REFERENCE 'public final y: T of .' field=null getter='public final fun (): T of . declared in ' setter='public final fun (v: T of .): kotlin.Unit declared in ' type=kotlin.reflect.KMutableProperty0 origin=null <1>: kotlin.String - $receiver: CONSTRUCTOR_CALL 'public constructor (x: T of .C) [primary] declared in .C' type=.C origin=null + $receiver: CONSTRUCTOR_CALL 'public constructor (x: T of .C) declared in .C' type=.C origin=null : kotlin.String x: CONST String type=kotlin.String value="abc" FUN name:test2 visibility:public modality:FINAL <> (a:kotlin.Any) returnType:kotlin.Unit @@ -75,7 +75,7 @@ FILE fqName: fileName:/genericPropertyReferenceType.kt TYPE_OP type=.C origin=CAST typeOperand=.C GET_VAR 'a: kotlin.Any declared in .test2' type=kotlin.Any origin=null CALL 'public final fun use (p: kotlin.reflect.KMutableProperty): kotlin.Unit declared in ' type=kotlin.Unit origin=null - p: PROPERTY_REFERENCE 'public final y: T of . [var]' field=null getter='public final fun (): T of . declared in ' setter='public final fun (v: T of .): kotlin.Unit declared in ' type=kotlin.reflect.KMutableProperty0 origin=null + p: PROPERTY_REFERENCE 'public final y: T of .' field=null getter='public final fun (): T of . declared in ' setter='public final fun (v: T of .): kotlin.Unit declared in ' type=kotlin.reflect.KMutableProperty0 origin=null <1>: kotlin.String $receiver: TYPE_OP type=.C origin=IMPLICIT_CAST typeOperand=.C GET_VAR 'a: kotlin.Any declared in .test2' type=kotlin.Any origin=null diff --git a/compiler/testData/ir/irText/types/inStarProjectionInReceiverType.ir.txt b/compiler/testData/ir/irText/types/inStarProjectionInReceiverType.ir.txt index feae9404469..ad71af72447 100644 --- a/compiler/testData/ir/irText/types/inStarProjectionInReceiverType.ir.txt +++ b/compiler/testData/ir/irText/types/inStarProjectionInReceiverType.ir.txt @@ -11,7 +11,7 @@ FILE fqName: fileName:/inStarProjectionInReceiverType.kt VALUE_PARAMETER name:x index:0 type:T of .Foo 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/types/intersectionType1.fir.ir.txt b/compiler/testData/ir/irText/types/intersectionType1.fir.ir.txt index f8eef1d2a11..bbf3217bd1b 100644 --- a/compiler/testData/ir/irText/types/intersectionType1.fir.ir.txt +++ b/compiler/testData/ir/irText/types/intersectionType1.fir.ir.txt @@ -4,11 +4,11 @@ FILE fqName: fileName:/intersectionType1.kt TYPE_PARAMETER name:I index:0 variance:in superTypes:[kotlin.Any?] reified:false CONSTRUCTOR visibility:public <> () returnType:.In.In> [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:In modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -32,9 +32,9 @@ FILE fqName: fileName:/intersectionType1.kt VALUE_PARAMETER name:b index:1 type:kotlin.Array<.In> BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun foo (a: kotlin.Array<.In.foo>>, b: kotlin.Array<.In>): kotlin.Boolean declared in ' - CALL 'public final fun ofType (y: kotlin.Any?): kotlin.Boolean [inline] declared in ' type=kotlin.Boolean origin=null + CALL 'public final fun ofType (y: kotlin.Any?): kotlin.Boolean declared in ' type=kotlin.Boolean origin=null : kotlin.Any - $receiver: CALL 'public final fun get (index: kotlin.Int): T of kotlin.Array [operator] declared in kotlin.Array' type=.In origin=null + $receiver: CALL 'public final fun get (index: kotlin.Int): T of kotlin.Array declared in kotlin.Array' type=.In origin=null $this: CALL 'public final fun select (x: S of .select, y: S of .select): S of .select declared in ' type=kotlin.Array.In> origin=null : kotlin.Array.In> x: GET_VAR 'a: kotlin.Array<.In.foo>> declared in .foo' type=kotlin.Array<.In.foo>> origin=null @@ -46,25 +46,25 @@ FILE fqName: fileName:/intersectionType1.kt $receiver: VALUE_PARAMETER name: type:.In.ofType> VALUE_PARAMETER name:y index:0 type:kotlin.Any? BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun ofType (y: kotlin.Any?): kotlin.Boolean [inline] declared in ' + RETURN type=kotlin.Nothing from='public final fun ofType (y: kotlin.Any?): kotlin.Boolean declared in ' TYPE_OP type=kotlin.Boolean origin=INSTANCEOF typeOperand=K of .ofType GET_VAR 'y: kotlin.Any? declared in .ofType' type=kotlin.Any? origin=null FUN name:test visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY VAR name:a1 type:kotlin.Array<.In> [val] - CALL 'public final fun arrayOf (vararg elements: T of kotlin.arrayOf): kotlin.Array [inline] declared in kotlin' type=kotlin.Array<.In> origin=null + CALL 'public final fun arrayOf (vararg elements: T of kotlin.arrayOf): kotlin.Array declared in kotlin' type=kotlin.Array<.In> origin=null : .In elements: VARARG type=kotlin.Array.In> varargElementType=.In - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .In' type=.In origin=null + CONSTRUCTOR_CALL 'public constructor () declared in .In' type=.In origin=null : kotlin.Int VAR name:a2 type:kotlin.Array<.In> [val] - CALL 'public final fun arrayOf (vararg elements: T of kotlin.arrayOf): kotlin.Array [inline] declared in kotlin' type=kotlin.Array<.In> origin=null + CALL 'public final fun arrayOf (vararg elements: T of kotlin.arrayOf): kotlin.Array declared in kotlin' type=kotlin.Array<.In> origin=null : .In elements: VARARG type=kotlin.Array.In> varargElementType=.In - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .In' type=.In origin=null + CONSTRUCTOR_CALL 'public constructor () declared in .In' type=.In origin=null : kotlin.String TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit CALL 'public final fun foo (a: kotlin.Array<.In.foo>>, b: kotlin.Array<.In>): kotlin.Boolean declared in ' type=kotlin.Boolean origin=null : kotlin.Int - a: GET_VAR 'val a1: kotlin.Array<.In> [val] declared in .test' type=kotlin.Array<.In> origin=null - b: GET_VAR 'val a2: kotlin.Array<.In> [val] declared in .test' type=kotlin.Array<.In> origin=null + a: GET_VAR 'val a1: kotlin.Array<.In> declared in .test' type=kotlin.Array<.In> origin=null + b: GET_VAR 'val a2: kotlin.Array<.In> declared in .test' type=kotlin.Array<.In> origin=null diff --git a/compiler/testData/ir/irText/types/intersectionType1.ir.txt b/compiler/testData/ir/irText/types/intersectionType1.ir.txt index fe238ba5142..b4170715aed 100644 --- a/compiler/testData/ir/irText/types/intersectionType1.ir.txt +++ b/compiler/testData/ir/irText/types/intersectionType1.ir.txt @@ -4,11 +4,11 @@ FILE fqName: fileName:/intersectionType1.kt TYPE_PARAMETER name:I index:0 variance:in superTypes:[kotlin.Any?] reified:false CONSTRUCTOR visibility:public <> () returnType:.In.In> [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:In modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -32,9 +32,9 @@ FILE fqName: fileName:/intersectionType1.kt VALUE_PARAMETER name:b index:1 type:kotlin.Array<.In> BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun foo (a: kotlin.Array<.In.foo>>, b: kotlin.Array<.In>): kotlin.Boolean declared in ' - CALL 'public final fun ofType (y: kotlin.Any?): kotlin.Boolean [inline] declared in ' type=kotlin.Boolean origin=null + CALL 'public final fun ofType (y: kotlin.Any?): kotlin.Boolean declared in ' type=kotlin.Boolean origin=null : kotlin.Any - $receiver: CALL 'public final fun get (index: kotlin.Int): T of kotlin.Array [operator] declared in kotlin.Array' type=.In origin=GET_ARRAY_ELEMENT + $receiver: CALL 'public final fun get (index: kotlin.Int): T of kotlin.Array declared in kotlin.Array' type=.In origin=GET_ARRAY_ELEMENT $this: CALL 'public final fun select (x: S of .select, y: S of .select): S of .select declared in ' type=kotlin.Array.In> origin=null : kotlin.Array.In> x: GET_VAR 'a: kotlin.Array<.In.foo>> declared in .foo' type=kotlin.Array<.In.foo>> origin=null @@ -46,25 +46,25 @@ FILE fqName: fileName:/intersectionType1.kt $receiver: VALUE_PARAMETER name: type:.In.ofType> VALUE_PARAMETER name:y index:0 type:kotlin.Any? BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun ofType (y: kotlin.Any?): kotlin.Boolean [inline] declared in ' + RETURN type=kotlin.Nothing from='public final fun ofType (y: kotlin.Any?): kotlin.Boolean declared in ' TYPE_OP type=kotlin.Boolean origin=INSTANCEOF typeOperand=K of .ofType GET_VAR 'y: kotlin.Any? declared in .ofType' type=kotlin.Any? origin=null FUN name:test visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY VAR name:a1 type:kotlin.Array<.In> [val] - CALL 'public final fun arrayOf (vararg elements: T of kotlin.arrayOf): kotlin.Array [inline] declared in kotlin' type=kotlin.Array<.In> origin=null + CALL 'public final fun arrayOf (vararg elements: T of kotlin.arrayOf): kotlin.Array declared in kotlin' type=kotlin.Array<.In> origin=null : .In elements: VARARG type=kotlin.Array.In> varargElementType=.In - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .In' type=.In origin=null + CONSTRUCTOR_CALL 'public constructor () declared in .In' type=.In origin=null : kotlin.Int VAR name:a2 type:kotlin.Array<.In> [val] - CALL 'public final fun arrayOf (vararg elements: T of kotlin.arrayOf): kotlin.Array [inline] declared in kotlin' type=kotlin.Array<.In> origin=null + CALL 'public final fun arrayOf (vararg elements: T of kotlin.arrayOf): kotlin.Array declared in kotlin' type=kotlin.Array<.In> origin=null : .In elements: VARARG type=kotlin.Array.In> varargElementType=.In - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .In' type=.In origin=null + CONSTRUCTOR_CALL 'public constructor () declared in .In' type=.In origin=null : kotlin.String TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit CALL 'public final fun foo (a: kotlin.Array<.In.foo>>, b: kotlin.Array<.In>): kotlin.Boolean declared in ' type=kotlin.Boolean origin=null : kotlin.Int - a: GET_VAR 'val a1: kotlin.Array<.In> [val] declared in .test' type=kotlin.Array<.In> origin=null - b: GET_VAR 'val a2: kotlin.Array<.In> [val] declared in .test' type=kotlin.Array<.In> origin=null + a: GET_VAR 'val a1: kotlin.Array<.In> declared in .test' type=kotlin.Array<.In> origin=null + b: GET_VAR 'val a2: kotlin.Array<.In> declared in .test' type=kotlin.Array<.In> origin=null diff --git a/compiler/testData/ir/irText/types/intersectionType2.fir.ir.txt b/compiler/testData/ir/irText/types/intersectionType2.fir.ir.txt index 3b02bffbec0..249afe360db 100644 --- a/compiler/testData/ir/irText/types/intersectionType2.fir.ir.txt +++ b/compiler/testData/ir/irText/types/intersectionType2.fir.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/intersectionType2.kt TYPE_PARAMETER name:T index:0 variance:out superTypes:[kotlin.Any?] reified:false 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -19,7 +19,7 @@ FILE fqName: fileName:/intersectionType2.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Foo 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -34,52 +34,52 @@ FILE fqName: fileName:/intersectionType2.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.B CONSTRUCTOR visibility:public <> () returnType:.B [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:B modality:OPEN visibility:public superTypes:[.Foo; .A<.B>]' 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 .Foo - public open fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .A + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Foo + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .A $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 .Foo - public open fun hashCode (): kotlin.Int [fake_override] declared in .A + public open fun hashCode (): kotlin.Int declared in .Foo + public open fun hashCode (): kotlin.Int declared in .A $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 .Foo - public open fun toString (): kotlin.String [fake_override] declared in .A + public open fun toString (): kotlin.String declared in .Foo + public open fun toString (): kotlin.String declared in .A $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:C modality:OPEN visibility:public superTypes:[.Foo; .A<.C>] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.C CONSTRUCTOR visibility:public <> () returnType:.C [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C modality:OPEN visibility:public superTypes:[.Foo; .A<.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 [fake_override,operator] declared in .Foo - public open fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .A + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Foo + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .A $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 .Foo - public open fun hashCode (): kotlin.Int [fake_override] declared in .A + public open fun hashCode (): kotlin.Int declared in .Foo + public open fun hashCode (): kotlin.Int declared in .A $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 .Foo - public open fun toString (): kotlin.String [fake_override] declared in .A + public open fun toString (): kotlin.String declared in .Foo + public open fun toString (): kotlin.String declared in .A $this: VALUE_PARAMETER name: type:kotlin.Any FUN name:run visibility:public modality:FINAL (fn:kotlin.Function0.run>) returnType:T of .run TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false VALUE_PARAMETER name:fn index:0 type:kotlin.Function0.run> BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun run (fn: kotlin.Function0.run>): T of .run declared in ' - CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=T of .run origin=INVOKE + CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=T of .run origin=INVOKE $this: GET_VAR 'fn: kotlin.Function0.run> declared in .run' type=kotlin.Function0.run> origin=VARIABLE_AS_FUNCTION FUN name:foo visibility:public modality:FINAL <> () returnType:kotlin.Any BLOCK_BODY @@ -90,16 +90,16 @@ FILE fqName: fileName:/intersectionType2.kt FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:.Foo BLOCK_BODY VAR name:mm type:.B [val] - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .B' type=.B origin=null + CONSTRUCTOR_CALL 'public constructor () declared in .B' type=.B origin=null VAR name:nn type:.C [val] - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .C' type=.C origin=null + CONSTRUCTOR_CALL 'public constructor () declared in .C' type=.C origin=null VAR name:c type:.Foo [val] WHEN type=.Foo origin=IF BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val mm: .B [val] declared in .foo.' type=.B origin=null + then: GET_VAR 'val mm: .B declared in .foo.' type=.B origin=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val nn: .C [val] declared in .foo.' type=.C origin=null + then: GET_VAR 'val nn: .C declared in .foo.' type=.C origin=null RETURN type=kotlin.Nothing from='local final fun (): .Foo declared in .foo' - GET_VAR 'val c: .Foo [val] declared in .foo.' type=.Foo origin=null + GET_VAR 'val c: .Foo declared in .foo.' type=.Foo origin=null diff --git a/compiler/testData/ir/irText/types/intersectionType2.ir.txt b/compiler/testData/ir/irText/types/intersectionType2.ir.txt index d57a9cb0168..df8a72d98e7 100644 --- a/compiler/testData/ir/irText/types/intersectionType2.ir.txt +++ b/compiler/testData/ir/irText/types/intersectionType2.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/intersectionType2.kt TYPE_PARAMETER name:T index:0 variance:out superTypes:[kotlin.Any?] reified:false 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -19,7 +19,7 @@ FILE fqName: fileName:/intersectionType2.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Foo 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -34,52 +34,52 @@ FILE fqName: fileName:/intersectionType2.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.B CONSTRUCTOR visibility:public <> () returnType:.B [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:B modality:OPEN visibility:public superTypes:[.Foo; .A<.B>]' 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 .Foo - public open fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .A + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Foo + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .A $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 .Foo - public open fun hashCode (): kotlin.Int [fake_override] declared in .A + public open fun hashCode (): kotlin.Int declared in .Foo + public open fun hashCode (): kotlin.Int declared in .A $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 .Foo - public open fun toString (): kotlin.String [fake_override] declared in .A + public open fun toString (): kotlin.String declared in .Foo + public open fun toString (): kotlin.String declared in .A $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:C modality:OPEN visibility:public superTypes:[.Foo; .A<.C>] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.C CONSTRUCTOR visibility:public <> () returnType:.C [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C modality:OPEN visibility:public superTypes:[.Foo; .A<.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 [fake_override,operator] declared in .Foo - public open fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .A + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Foo + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .A $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 .Foo - public open fun hashCode (): kotlin.Int [fake_override] declared in .A + public open fun hashCode (): kotlin.Int declared in .Foo + public open fun hashCode (): kotlin.Int declared in .A $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 .Foo - public open fun toString (): kotlin.String [fake_override] declared in .A + public open fun toString (): kotlin.String declared in .Foo + public open fun toString (): kotlin.String declared in .A $this: VALUE_PARAMETER name: type:kotlin.Any FUN name:run visibility:public modality:FINAL (fn:kotlin.Function0.run>) returnType:T of .run TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false VALUE_PARAMETER name:fn index:0 type:kotlin.Function0.run> BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun run (fn: kotlin.Function0.run>): T of .run declared in ' - CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=T of .run origin=INVOKE + CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=T of .run origin=INVOKE $this: GET_VAR 'fn: kotlin.Function0.run> declared in .run' type=kotlin.Function0.run> origin=VARIABLE_AS_FUNCTION FUN name:foo visibility:public modality:FINAL <> () returnType:kotlin.Any BLOCK_BODY @@ -90,16 +90,16 @@ FILE fqName: fileName:/intersectionType2.kt FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> () returnType:kotlin.Any BLOCK_BODY VAR name:mm type:.B [val] - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .B' type=.B origin=null + CONSTRUCTOR_CALL 'public constructor () declared in .B' type=.B origin=null VAR name:nn type:.C [val] - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .C' type=.C origin=null + CONSTRUCTOR_CALL 'public constructor () declared in .C' type=.C origin=null VAR name:c type:kotlin.Any [val] WHEN type=kotlin.Any origin=IF BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val mm: .B [val] declared in .foo.' type=.B origin=null + then: GET_VAR 'val mm: .B declared in .foo.' type=.B origin=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val nn: .C [val] declared in .foo.' type=.C origin=null + then: GET_VAR 'val nn: .C declared in .foo.' type=.C origin=null RETURN type=kotlin.Nothing from='local final fun (): kotlin.Any declared in .foo' - GET_VAR 'val c: kotlin.Any [val] declared in .foo.' type=kotlin.Any origin=null + GET_VAR 'val c: kotlin.Any declared in .foo.' type=kotlin.Any origin=null diff --git a/compiler/testData/ir/irText/types/intersectionType3.ir.txt b/compiler/testData/ir/irText/types/intersectionType3.ir.txt index ddc95a8327f..da837b7e244 100644 --- a/compiler/testData/ir/irText/types/intersectionType3.ir.txt +++ b/compiler/testData/ir/irText/types/intersectionType3.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/intersectionType3.kt TYPE_PARAMETER name:T index:0 variance:in superTypes:[kotlin.Any?] reified:false 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -19,7 +19,7 @@ FILE fqName: fileName:/intersectionType3.kt TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:true $receiver: VALUE_PARAMETER name: type:.In.isT> BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun isT (): kotlin.Boolean [inline] declared in ' + RETURN type=kotlin.Nothing from='public final fun isT (): kotlin.Boolean declared in ' TYPE_OP type=kotlin.Boolean origin=INSTANCEOF typeOperand=T of .isT GET_VAR ': .In.isT> declared in .isT' type=.In.isT> origin=null FUN name:asT visibility:public modality:FINAL ($receiver:.In.asT>) returnType:kotlin.Unit [inline] @@ -40,7 +40,7 @@ FILE fqName: fileName:/intersectionType3.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -55,7 +55,7 @@ FILE fqName: fileName:/intersectionType3.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.B 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -70,74 +70,74 @@ FILE fqName: fileName:/intersectionType3.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.A1 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 .A + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .A $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 .A + public open fun hashCode (): kotlin.Int declared in .A $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 .A + public open fun toString (): kotlin.String declared in .A $this: VALUE_PARAMETER name: type:kotlin.Any CLASS INTERFACE name:A2 modality:ABSTRACT visibility:public superTypes:[.A] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.A2 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 .A + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .A $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 .A + public open fun hashCode (): kotlin.Int declared in .A $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 .A + public open fun toString (): kotlin.String declared in .A $this: VALUE_PARAMETER name: type:kotlin.Any CLASS INTERFACE name:Z1 modality:ABSTRACT visibility:public superTypes:[.A; .B] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Z1 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 .A - public open fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .B + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .A + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .B $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 .A - public open fun hashCode (): kotlin.Int [fake_override] declared in .B + public open fun hashCode (): kotlin.Int declared in .A + public open fun hashCode (): kotlin.Int declared in .B $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 .A - public open fun toString (): kotlin.String [fake_override] declared in .B + public open fun toString (): kotlin.String declared in .A + public open fun toString (): kotlin.String declared in .B $this: VALUE_PARAMETER name: type:kotlin.Any CLASS INTERFACE name:Z2 modality:ABSTRACT visibility:public superTypes:[.A; .B] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Z2 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 .A - public open fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .B + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .A + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .B $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 .A - public open fun hashCode (): kotlin.Int [fake_override] declared in .B + public open fun hashCode (): kotlin.Int declared in .A + public open fun hashCode (): kotlin.Int declared in .B $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 .A - public open fun toString (): kotlin.String [fake_override] declared in .B + public open fun toString (): kotlin.String declared in .A + public open fun toString (): kotlin.String declared in .B $this: VALUE_PARAMETER name: type:kotlin.Any FUN name:testInIs1 visibility:public modality:FINAL <> (x:.In<.A>, y:.In<.B>) returnType:kotlin.Boolean VALUE_PARAMETER name:x index:0 type:.In<.A> VALUE_PARAMETER name:y index:1 type:.In<.B> BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun testInIs1 (x: .In<.A>, y: .In<.B>): kotlin.Boolean declared in ' - CALL 'public final fun isT (): kotlin.Boolean [inline] declared in ' type=kotlin.Boolean origin=null + CALL 'public final fun isT (): kotlin.Boolean declared in ' type=kotlin.Boolean origin=null : kotlin.Any $receiver: CALL 'public final fun sel (x: S of .sel, y: S of .sel): S of .sel declared in ' type=.In origin=null : .In @@ -148,7 +148,7 @@ FILE fqName: fileName:/intersectionType3.kt VALUE_PARAMETER name:y index:1 type:.In<.Z2> BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun testInIs2 (x: .In<.Z1>, y: .In<.Z2>): kotlin.Boolean declared in ' - CALL 'public final fun isT (): kotlin.Boolean [inline] declared in ' type=kotlin.Boolean origin=null + CALL 'public final fun isT (): kotlin.Boolean declared in ' type=kotlin.Boolean origin=null : kotlin.Any $receiver: CALL 'public final fun sel (x: S of .sel, y: S of .sel): S of .sel declared in ' type=.In origin=null : .In @@ -159,7 +159,7 @@ FILE fqName: fileName:/intersectionType3.kt VALUE_PARAMETER name:y index:1 type:.In<.A2> BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun testInIs3 (x: .In<.A1>, y: .In<.A2>): kotlin.Boolean declared in ' - CALL 'public final fun isT (): kotlin.Boolean [inline] declared in ' type=kotlin.Boolean origin=null + CALL 'public final fun isT (): kotlin.Boolean declared in ' type=kotlin.Boolean origin=null : .A $receiver: CALL 'public final fun sel (x: S of .sel, y: S of .sel): S of .sel declared in ' type=.In origin=null : .In @@ -170,7 +170,7 @@ FILE fqName: fileName:/intersectionType3.kt VALUE_PARAMETER name:y index:1 type:.In<.B> BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun testInAs1 (x: .In<.A>, y: .In<.B>): kotlin.Unit declared in ' - CALL 'public final fun asT (): kotlin.Unit [inline] declared in ' type=kotlin.Unit origin=null + CALL 'public final fun asT (): kotlin.Unit declared in ' type=kotlin.Unit origin=null : kotlin.Any $receiver: CALL 'public final fun sel (x: S of .sel, y: S of .sel): S of .sel declared in ' type=.In origin=null : .In @@ -181,7 +181,7 @@ FILE fqName: fileName:/intersectionType3.kt VALUE_PARAMETER name:y index:1 type:.In<.Z2> BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun testInAs2 (x: .In<.Z1>, y: .In<.Z2>): kotlin.Unit declared in ' - CALL 'public final fun asT (): kotlin.Unit [inline] declared in ' type=kotlin.Unit origin=null + CALL 'public final fun asT (): kotlin.Unit declared in ' type=kotlin.Unit origin=null : kotlin.Any $receiver: CALL 'public final fun sel (x: S of .sel, y: S of .sel): S of .sel declared in ' type=.In origin=null : .In @@ -192,7 +192,7 @@ FILE fqName: fileName:/intersectionType3.kt VALUE_PARAMETER name:y index:1 type:.In<.A2> BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun testInAs3 (x: .In<.A1>, y: .In<.A2>): kotlin.Unit declared in ' - CALL 'public final fun asT (): kotlin.Unit [inline] declared in ' type=kotlin.Unit origin=null + CALL 'public final fun asT (): kotlin.Unit declared in ' type=kotlin.Unit origin=null : .A $receiver: CALL 'public final fun sel (x: S of .sel, y: S of .sel): S of .sel declared in ' type=.In origin=null : .In diff --git a/compiler/testData/ir/irText/types/intersectionTypeInSamType.fir.ir.txt b/compiler/testData/ir/irText/types/intersectionTypeInSamType.fir.ir.txt index 2cb28c9c421..b39cf12e5d1 100644 --- a/compiler/testData/ir/irText/types/intersectionTypeInSamType.fir.ir.txt +++ b/compiler/testData/ir/irText/types/intersectionTypeInSamType.fir.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/intersectionTypeInSamType.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.X 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -18,7 +18,7 @@ FILE fqName: fileName:/intersectionTypeInSamType.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Z 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -33,37 +33,37 @@ FILE fqName: fileName:/intersectionTypeInSamType.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.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 [fake_override,operator] declared in .X - public open fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .Z + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .X + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Z $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 .X - public open fun hashCode (): kotlin.Int [fake_override] declared in .Z + public open fun hashCode (): kotlin.Int declared in .X + public open fun hashCode (): kotlin.Int declared in .Z $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 .X - public open fun toString (): kotlin.String [fake_override] declared in .Z + public open fun toString (): kotlin.String declared in .X + public open fun toString (): kotlin.String declared in .Z $this: VALUE_PARAMETER name: type:kotlin.Any CLASS INTERFACE name:B modality:ABSTRACT visibility:public superTypes:[.X; .Z] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.B 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 .X - public open fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .Z + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .X + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Z $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 .X - public open fun hashCode (): kotlin.Int [fake_override] declared in .Z + public open fun hashCode (): kotlin.Int declared in .X + public open fun hashCode (): kotlin.Int declared in .Z $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 .X - public open fun toString (): kotlin.String [fake_override] declared in .Z + public open fun toString (): kotlin.String declared in .X + public open fun toString (): kotlin.String declared in .Z $this: VALUE_PARAMETER name: type:kotlin.Any CLASS INTERFACE name:IFoo modality:ABSTRACT visibility:public [fun] superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.IFoo.IFoo> @@ -73,7 +73,7 @@ FILE fqName: fileName:/intersectionTypeInSamType.kt VALUE_PARAMETER name:t index:0 type:T of .IFoo 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -92,7 +92,7 @@ FILE fqName: fileName:/intersectionTypeInSamType.kt VALUE_PARAMETER name:t index:0 type:T of .IBar1 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -111,7 +111,7 @@ FILE fqName: fileName:/intersectionTypeInSamType.kt VALUE_PARAMETER name:t index:0 type:T of .IBar2 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -134,7 +134,7 @@ FILE fqName: fileName:/intersectionTypeInSamType.kt TYPE_PARAMETER name:T index:0 variance: superTypes:[.X] reified:false CONSTRUCTOR visibility:public <> () returnType:.G1.G1> [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:G1 modality:FINAL visibility:public superTypes:[kotlin.Any]' FUN name:checkFoo visibility:public modality:FINAL <> ($this:.G1.G1>, x:.IFoo.G1>) returnType:kotlin.Unit $this: VALUE_PARAMETER name: type:.G1.G1> @@ -142,7 +142,7 @@ FILE fqName: fileName:/intersectionTypeInSamType.kt 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -158,7 +158,7 @@ FILE fqName: fileName:/intersectionTypeInSamType.kt TYPE_PARAMETER name:T index:0 variance: superTypes:[.X; .Z] reified:false CONSTRUCTOR visibility:public <> () returnType:.G2.G2> [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:G2 modality:FINAL visibility:public superTypes:[kotlin.Any]' FUN name:checkFoo visibility:public modality:FINAL <> ($this:.G2.G2>, x:.IFoo.G2>) returnType:kotlin.Unit $this: VALUE_PARAMETER name: type:.G2.G2> @@ -174,7 +174,7 @@ FILE fqName: fileName:/intersectionTypeInSamType.kt 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -190,12 +190,12 @@ FILE fqName: fileName:/intersectionTypeInSamType.kt VAR name:g type:.G1<*> [val] CALL 'public final fun sel (x: T of .sel, y: T of .sel): T of .sel declared in ' type=.G1<*> origin=null : .G1<*> - x: CONSTRUCTOR_CALL 'public constructor () [primary] declared in .G1' type=.G1<.A> origin=null + x: CONSTRUCTOR_CALL 'public constructor () declared in .G1' type=.G1<.A> origin=null : .A - y: CONSTRUCTOR_CALL 'public constructor () [primary] declared in .G1' type=.G1<.B> origin=null + y: CONSTRUCTOR_CALL 'public constructor () declared in .G1' type=.G1<.B> origin=null : .B CALL 'public final fun checkFoo (x: .IFoo.G1>): kotlin.Unit declared in .G1' type=kotlin.Unit origin=null - $this: GET_VAR 'val g: .G1<*> [val] declared in .test1' type=.G1<*> origin=null + $this: GET_VAR 'val g: .G1<*> declared in .test1' type=.G1<*> origin=null x: TYPE_OP type=.IFoo origin=SAM_CONVERSION typeOperand=.IFoo FUN_EXPR type=kotlin.Function1 origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> (it:.X) returnType:kotlin.Unit @@ -208,12 +208,12 @@ FILE fqName: fileName:/intersectionTypeInSamType.kt VAR name:g type:.G2<*> [val] CALL 'public final fun sel (x: T of .sel, y: T of .sel): T of .sel declared in ' type=.G2<*> origin=null : .G2<*> - x: CONSTRUCTOR_CALL 'public constructor () [primary] declared in .G2' type=.G2<.A> origin=null + x: CONSTRUCTOR_CALL 'public constructor () declared in .G2' type=.G2<.A> origin=null : .A - y: CONSTRUCTOR_CALL 'public constructor () [primary] declared in .G2' type=.G2<.B> origin=null + y: CONSTRUCTOR_CALL 'public constructor () declared in .G2' type=.G2<.B> origin=null : .B CALL 'public final fun checkFoo (x: .IFoo.G2>): kotlin.Unit declared in .G2' type=kotlin.Unit origin=null - $this: GET_VAR 'val g: .G2<*> [val] declared in .test2' type=.G2<*> origin=null + $this: GET_VAR 'val g: .G2<*> declared in .test2' type=.G2<*> origin=null x: TYPE_OP type=.IFoo origin=SAM_CONVERSION typeOperand=.IFoo FUN_EXPR type=kotlin.Function1 origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> (it:.X) returnType:kotlin.Unit @@ -222,7 +222,7 @@ FILE fqName: fileName:/intersectionTypeInSamType.kt RETURN type=kotlin.Nothing from='local final fun (it: .X): kotlin.Unit declared in .test2' GET_OBJECT 'CLASS IR_EXTERNAL_DECLARATION_STUB OBJECT name:Unit modality:FINAL visibility:public superTypes:[kotlin.Any]' type=kotlin.Unit CALL 'public final fun checkBar1 (x: .IBar1.G2>): kotlin.Unit declared in .G2' type=kotlin.Unit origin=null - $this: GET_VAR 'val g: .G2<*> [val] declared in .test2' type=.G2<*> origin=null + $this: GET_VAR 'val g: .G2<*> declared in .test2' type=.G2<*> origin=null x: TYPE_OP type=.IBar1 origin=SAM_CONVERSION typeOperand=.IBar1 FUN_EXPR type=kotlin.Function1 origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> (it:.X) returnType:kotlin.Unit @@ -231,7 +231,7 @@ FILE fqName: fileName:/intersectionTypeInSamType.kt RETURN type=kotlin.Nothing from='local final fun (it: .X): kotlin.Unit declared in .test2' GET_OBJECT 'CLASS IR_EXTERNAL_DECLARATION_STUB OBJECT name:Unit modality:FINAL visibility:public superTypes:[kotlin.Any]' type=kotlin.Unit CALL 'public final fun checkBar2 (x: .IBar2.G2>): kotlin.Unit declared in .G2' type=kotlin.Unit origin=null - $this: GET_VAR 'val g: .G2<*> [val] declared in .test2' type=.G2<*> origin=null + $this: GET_VAR 'val g: .G2<*> declared in .test2' type=.G2<*> origin=null x: TYPE_OP type=.IBar2 origin=SAM_CONVERSION typeOperand=.IBar2 FUN_EXPR type=kotlin.Function1 origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> (it:.X) returnType:kotlin.Unit diff --git a/compiler/testData/ir/irText/types/intersectionTypeInSamType.ir.txt b/compiler/testData/ir/irText/types/intersectionTypeInSamType.ir.txt index 7677e4fe3c1..e4061ff2be0 100644 --- a/compiler/testData/ir/irText/types/intersectionTypeInSamType.ir.txt +++ b/compiler/testData/ir/irText/types/intersectionTypeInSamType.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/intersectionTypeInSamType.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.X 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -18,7 +18,7 @@ FILE fqName: fileName:/intersectionTypeInSamType.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Z 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -33,37 +33,37 @@ FILE fqName: fileName:/intersectionTypeInSamType.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.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 [fake_override,operator] declared in .X - public open fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .Z + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .X + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Z $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 .X - public open fun hashCode (): kotlin.Int [fake_override] declared in .Z + public open fun hashCode (): kotlin.Int declared in .X + public open fun hashCode (): kotlin.Int declared in .Z $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 .X - public open fun toString (): kotlin.String [fake_override] declared in .Z + public open fun toString (): kotlin.String declared in .X + public open fun toString (): kotlin.String declared in .Z $this: VALUE_PARAMETER name: type:kotlin.Any CLASS INTERFACE name:B modality:ABSTRACT visibility:public superTypes:[.X; .Z] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.B 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 .X - public open fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .Z + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .X + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Z $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 .X - public open fun hashCode (): kotlin.Int [fake_override] declared in .Z + public open fun hashCode (): kotlin.Int declared in .X + public open fun hashCode (): kotlin.Int declared in .Z $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 .X - public open fun toString (): kotlin.String [fake_override] declared in .Z + public open fun toString (): kotlin.String declared in .X + public open fun toString (): kotlin.String declared in .Z $this: VALUE_PARAMETER name: type:kotlin.Any CLASS INTERFACE name:IFoo modality:ABSTRACT visibility:public [fun] superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.IFoo.IFoo> @@ -73,7 +73,7 @@ FILE fqName: fileName:/intersectionTypeInSamType.kt VALUE_PARAMETER name:t index:0 type:T of .IFoo 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -92,7 +92,7 @@ FILE fqName: fileName:/intersectionTypeInSamType.kt VALUE_PARAMETER name:t index:0 type:T of .IBar1 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -111,7 +111,7 @@ FILE fqName: fileName:/intersectionTypeInSamType.kt VALUE_PARAMETER name:t index:0 type:T of .IBar2 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -134,7 +134,7 @@ FILE fqName: fileName:/intersectionTypeInSamType.kt TYPE_PARAMETER name:T index:0 variance: superTypes:[.X] reified:false CONSTRUCTOR visibility:public <> () returnType:.G1.G1> [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:G1 modality:FINAL visibility:public superTypes:[kotlin.Any]' FUN name:checkFoo visibility:public modality:FINAL <> ($this:.G1.G1>, x:.IFoo.G1>) returnType:kotlin.Unit $this: VALUE_PARAMETER name: type:.G1.G1> @@ -142,7 +142,7 @@ FILE fqName: fileName:/intersectionTypeInSamType.kt 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -158,7 +158,7 @@ FILE fqName: fileName:/intersectionTypeInSamType.kt TYPE_PARAMETER name:T index:0 variance: superTypes:[.X; .Z] reified:false CONSTRUCTOR visibility:public <> () returnType:.G2.G2> [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:G2 modality:FINAL visibility:public superTypes:[kotlin.Any]' FUN name:checkFoo visibility:public modality:FINAL <> ($this:.G2.G2>, x:.IFoo.G2>) returnType:kotlin.Unit $this: VALUE_PARAMETER name: type:.G2.G2> @@ -174,7 +174,7 @@ FILE fqName: fileName:/intersectionTypeInSamType.kt 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -190,12 +190,12 @@ FILE fqName: fileName:/intersectionTypeInSamType.kt VAR name:g type:.G1<*> [val] CALL 'public final fun sel (x: T of .sel, y: T of .sel): T of .sel declared in ' type=.G1<*> origin=null : .G1<*> - x: CONSTRUCTOR_CALL 'public constructor () [primary] declared in .G1' type=.G1<.A> origin=null + x: CONSTRUCTOR_CALL 'public constructor () declared in .G1' type=.G1<.A> origin=null : .A - y: CONSTRUCTOR_CALL 'public constructor () [primary] declared in .G1' type=.G1<.B> origin=null + y: CONSTRUCTOR_CALL 'public constructor () declared in .G1' type=.G1<.B> origin=null : .B CALL 'public final fun checkFoo (x: .IFoo.G1>): kotlin.Unit declared in .G1' type=kotlin.Unit origin=null - $this: GET_VAR 'val g: .G1<*> [val] declared in .test1' type=.G1<*> origin=null + $this: GET_VAR 'val g: .G1<*> declared in .test1' type=.G1<*> origin=null x: TYPE_OP type=.IFoo origin=SAM_CONVERSION typeOperand=.IFoo FUN_EXPR type=kotlin.Function1 origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> (it:kotlin.Any) returnType:kotlin.Unit @@ -208,12 +208,12 @@ FILE fqName: fileName:/intersectionTypeInSamType.kt VAR name:g type:.G2<*> [val] CALL 'public final fun sel (x: T of .sel, y: T of .sel): T of .sel declared in ' type=.G2<*> origin=null : .G2<*> - x: CONSTRUCTOR_CALL 'public constructor () [primary] declared in .G2' type=.G2<.A> origin=null + x: CONSTRUCTOR_CALL 'public constructor () declared in .G2' type=.G2<.A> origin=null : .A - y: CONSTRUCTOR_CALL 'public constructor () [primary] declared in .G2' type=.G2<.B> origin=null + y: CONSTRUCTOR_CALL 'public constructor () declared in .G2' type=.G2<.B> origin=null : .B CALL 'public final fun checkFoo (x: .IFoo.G2>): kotlin.Unit declared in .G2' type=kotlin.Unit origin=null - $this: GET_VAR 'val g: .G2<*> [val] declared in .test2' type=.G2<*> origin=null + $this: GET_VAR 'val g: .G2<*> declared in .test2' type=.G2<*> origin=null x: TYPE_OP type=.IFoo origin=SAM_CONVERSION typeOperand=.IFoo FUN_EXPR type=kotlin.Function1 origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> (it:kotlin.Any) returnType:kotlin.Unit @@ -222,7 +222,7 @@ FILE fqName: fileName:/intersectionTypeInSamType.kt RETURN type=kotlin.Nothing from='local final fun (it: kotlin.Any): kotlin.Unit declared in .test2' GET_OBJECT 'CLASS IR_EXTERNAL_DECLARATION_STUB OBJECT name:Unit modality:FINAL visibility:public superTypes:[kotlin.Any]' type=kotlin.Unit CALL 'public final fun checkBar1 (x: .IBar1.G2>): kotlin.Unit declared in .G2' type=kotlin.Unit origin=null - $this: GET_VAR 'val g: .G2<*> [val] declared in .test2' type=.G2<*> origin=null + $this: GET_VAR 'val g: .G2<*> declared in .test2' type=.G2<*> origin=null x: TYPE_OP type=.IBar1 origin=SAM_CONVERSION typeOperand=.IBar1 FUN_EXPR type=kotlin.Function1 origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> (it:kotlin.Any) returnType:kotlin.Unit @@ -231,7 +231,7 @@ FILE fqName: fileName:/intersectionTypeInSamType.kt RETURN type=kotlin.Nothing from='local final fun (it: kotlin.Any): kotlin.Unit declared in .test2' GET_OBJECT 'CLASS IR_EXTERNAL_DECLARATION_STUB OBJECT name:Unit modality:FINAL visibility:public superTypes:[kotlin.Any]' type=kotlin.Unit CALL 'public final fun checkBar2 (x: .IBar2.G2>): kotlin.Unit declared in .G2' type=kotlin.Unit origin=null - $this: GET_VAR 'val g: .G2<*> [val] declared in .test2' type=.G2<*> origin=null + $this: GET_VAR 'val g: .G2<*> declared in .test2' type=.G2<*> origin=null x: TYPE_OP type=.IBar2 origin=SAM_CONVERSION typeOperand=.IBar2 FUN_EXPR type=kotlin.Function1 origin=LAMBDA FUN LOCAL_FUNCTION_FOR_LAMBDA name: visibility:local modality:FINAL <> (it:kotlin.Any) returnType:kotlin.Unit diff --git a/compiler/testData/ir/irText/types/javaWildcardType.fir.ir.txt b/compiler/testData/ir/irText/types/javaWildcardType.fir.ir.txt index b9072bc56d9..4a474097a8f 100644 --- a/compiler/testData/ir/irText/types/javaWildcardType.fir.ir.txt +++ b/compiler/testData/ir/irText/types/javaWildcardType.fir.ir.txt @@ -13,7 +13,7 @@ FILE fqName: fileName:/javaWildcardType.kt VALUE_PARAMETER name:c index:0 type:kotlin.collections.Collection 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -30,7 +30,7 @@ FILE fqName: fileName:/javaWildcardType.kt VALUE_PARAMETER name:j index:0 type:.J VALUE_PARAMETER name:k index:1 type:.K BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C modality:FINAL visibility:public superTypes:[.J; .K]' FUN DELEGATED_MEMBER name:jf1 visibility:public modality:OPEN <> ($this:.C) returnType:@[FlexibleNullability] @[FlexibleMutability] kotlin.collections.MutableCollection? overridden: @@ -116,17 +116,17 @@ FILE fqName: fileName:/javaWildcardType.kt GET_VAR 'k: .K declared in .C.' type=.K 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 [fake_override,operator] declared in .J - public open fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .K + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .J + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .K $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 .J - public open fun hashCode (): kotlin.Int [fake_override] declared in .K + public open fun hashCode (): kotlin.Int declared in .J + public open fun hashCode (): kotlin.Int declared in .K $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 .J - public open fun toString (): kotlin.String [fake_override] declared in .K + public open fun toString (): kotlin.String declared in .J + public open fun toString (): kotlin.String declared in .K $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/types/javaWildcardType.ir.txt b/compiler/testData/ir/irText/types/javaWildcardType.ir.txt index 94affa992ba..6333d3c21c6 100644 --- a/compiler/testData/ir/irText/types/javaWildcardType.ir.txt +++ b/compiler/testData/ir/irText/types/javaWildcardType.ir.txt @@ -13,7 +13,7 @@ FILE fqName: fileName:/javaWildcardType.kt VALUE_PARAMETER name:c index:0 type:kotlin.collections.Collection 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -30,7 +30,7 @@ FILE fqName: fileName:/javaWildcardType.kt VALUE_PARAMETER name:j index:0 type:.J VALUE_PARAMETER name:k index:1 type:.K BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C modality:FINAL visibility:public superTypes:[.J; .K]' FIELD DELEGATE name:$$delegate_0 type:.J visibility:private [final] EXPRESSION_BODY @@ -116,17 +116,17 @@ FILE fqName: fileName:/javaWildcardType.kt c: GET_VAR 'c: kotlin.collections.Collection declared in .C.kg2' type=kotlin.collections.Collection 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 [fake_override,operator] declared in .J - public open fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .K + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .J + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .K $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 .J - public open fun hashCode (): kotlin.Int [fake_override] declared in .K + public open fun hashCode (): kotlin.Int declared in .J + public open fun hashCode (): kotlin.Int declared in .K $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 .J - public open fun toString (): kotlin.String [fake_override] declared in .K + public open fun toString (): kotlin.String declared in .J + public open fun toString (): kotlin.String declared in .K $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/types/kt49526.fir.ir.txt b/compiler/testData/ir/irText/types/kt49526.fir.ir.txt index 9ab76928000..9043d0db27c 100644 --- a/compiler/testData/ir/irText/types/kt49526.fir.ir.txt +++ b/compiler/testData/ir/irText/types/kt49526.fir.ir.txt @@ -2,14 +2,14 @@ FILE fqName: fileName:/kt49526.kt FUN name:test visibility:public modality:FINAL <> () returnType:kotlin.Boolean BLOCK_BODY VAR name:ref type:kotlin.reflect.KFunction1 [val] - FUNCTION_REFERENCE 'public abstract fun contains (element: E of kotlin.collections.List): kotlin.Boolean [operator] declared in kotlin.collections.List' type=kotlin.reflect.KFunction1 origin=null reflectionTarget= - $this: CALL 'public final fun plus (element: T of kotlin.collections.CollectionsKt.plus): kotlin.collections.List [operator] declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List origin=PLUS + FUNCTION_REFERENCE 'public abstract fun contains (element: E of kotlin.collections.List): kotlin.Boolean declared in kotlin.collections.List' type=kotlin.reflect.KFunction1 origin=null reflectionTarget= + $this: CALL 'public final fun plus (element: T of kotlin.collections.CollectionsKt.plus): kotlin.collections.List declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List origin=PLUS : kotlin.Comparable $receiver: CALL 'public final fun listOf (element: T of kotlin.collections.CollectionsKt.listOf): kotlin.collections.List declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List origin=null : kotlin.Char element: CONST Char type=kotlin.Char value='a' element: CONST String type=kotlin.String value="-" RETURN type=kotlin.Nothing from='public final fun test (): kotlin.Boolean declared in ' - CALL 'public abstract fun invoke (p1: P1 of kotlin.reflect.KFunction1): R of kotlin.reflect.KFunction1 [operator] declared in kotlin.reflect.KFunction1' type=kotlin.Boolean origin=INVOKE - $this: GET_VAR 'val ref: kotlin.reflect.KFunction1 [val] declared in .test' type=kotlin.reflect.KFunction1 origin=VARIABLE_AS_FUNCTION + CALL 'public abstract fun invoke (p1: P1 of kotlin.reflect.KFunction1): R of kotlin.reflect.KFunction1 declared in kotlin.reflect.KFunction1' type=kotlin.Boolean origin=INVOKE + $this: GET_VAR 'val ref: kotlin.reflect.KFunction1 declared in .test' type=kotlin.reflect.KFunction1 origin=VARIABLE_AS_FUNCTION p1: CONST Char type=kotlin.Char value='a' diff --git a/compiler/testData/ir/irText/types/kt49526.ir.txt b/compiler/testData/ir/irText/types/kt49526.ir.txt index 18db14a9303..4aa80e07880 100644 --- a/compiler/testData/ir/irText/types/kt49526.ir.txt +++ b/compiler/testData/ir/irText/types/kt49526.ir.txt @@ -2,14 +2,14 @@ FILE fqName: fileName:/kt49526.kt FUN name:test visibility:public modality:FINAL <> () returnType:kotlin.Boolean BLOCK_BODY VAR name:ref type:kotlin.reflect.KFunction1 [val] - FUNCTION_REFERENCE 'public abstract fun contains (element: E of kotlin.collections.List): kotlin.Boolean [operator] declared in kotlin.collections.List' type=kotlin.reflect.KFunction1 origin=null reflectionTarget= - $this: CALL 'public final fun plus (element: T of kotlin.collections.CollectionsKt.plus): kotlin.collections.List [operator] declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List origin=PLUS + FUNCTION_REFERENCE 'public abstract fun contains (element: E of kotlin.collections.List): kotlin.Boolean declared in kotlin.collections.List' type=kotlin.reflect.KFunction1 origin=null reflectionTarget= + $this: CALL 'public final fun plus (element: T of kotlin.collections.CollectionsKt.plus): kotlin.collections.List declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List origin=PLUS : kotlin.Any $receiver: CALL 'public final fun listOf (element: T of kotlin.collections.CollectionsKt.listOf): kotlin.collections.List declared in kotlin.collections.CollectionsKt' type=kotlin.collections.List origin=null : kotlin.Char element: CONST Char type=kotlin.Char value='a' element: CONST String type=kotlin.String value="-" RETURN type=kotlin.Nothing from='public final fun test (): kotlin.Boolean declared in ' - CALL 'public abstract fun invoke (p1: P1 of kotlin.reflect.KFunction1): R of kotlin.reflect.KFunction1 [fake_override,operator] declared in kotlin.reflect.KFunction1' type=kotlin.Boolean origin=INVOKE - $this: GET_VAR 'val ref: kotlin.reflect.KFunction1 [val] declared in .test' type=kotlin.reflect.KFunction1 origin=VARIABLE_AS_FUNCTION + CALL 'public abstract fun invoke (p1: P1 of kotlin.reflect.KFunction1): R of kotlin.reflect.KFunction1 declared in kotlin.reflect.KFunction1' type=kotlin.Boolean origin=INVOKE + $this: GET_VAR 'val ref: kotlin.reflect.KFunction1 declared in .test' type=kotlin.reflect.KFunction1 origin=VARIABLE_AS_FUNCTION p1: CONST Char type=kotlin.Char value='a' diff --git a/compiler/testData/ir/irText/types/localVariableOfIntersectionType.fir.ir.txt b/compiler/testData/ir/irText/types/localVariableOfIntersectionType.fir.ir.txt index ff1e4003e49..59e7e6b9ded 100644 --- a/compiler/testData/ir/irText/types/localVariableOfIntersectionType.fir.ir.txt +++ b/compiler/testData/ir/irText/types/localVariableOfIntersectionType.fir.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/localVariableOfIntersectionType.kt TYPE_PARAMETER name:T index:0 variance:in superTypes:[kotlin.Any?] reified:false 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -24,7 +24,7 @@ FILE fqName: fileName:/localVariableOfIntersectionType.kt $this: VALUE_PARAMETER name: type:.Inv.Inv> 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -44,7 +44,7 @@ FILE fqName: fileName:/localVariableOfIntersectionType.kt VALUE_PARAMETER name:y index:1 type:.In.Z.create> 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -61,7 +61,7 @@ FILE fqName: fileName:/localVariableOfIntersectionType.kt $this: VALUE_PARAMETER name: type:.IA 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -78,7 +78,7 @@ FILE fqName: fileName:/localVariableOfIntersectionType.kt $this: VALUE_PARAMETER name: type:.IB 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -117,7 +117,7 @@ FILE fqName: fileName:/localVariableOfIntersectionType.kt x: GET_VAR 'a: .In<.IA> declared in .test' type=.In<.IA> origin=null y: GET_VAR 'b: .In<.IB> declared in .test' type=.In<.IB> origin=null CALL 'public abstract fun foo (): kotlin.Unit declared in .IA' type=kotlin.Unit origin=null - $this: GET_VAR 'val t: .IA [val] declared in .test' type=.IA origin=null + $this: GET_VAR 'val t: .IA declared in .test' type=.IA origin=null CALL 'public abstract fun bar (): kotlin.Unit declared in .IB' type=kotlin.Unit origin=null $this: TYPE_OP type=.IB origin=IMPLICIT_CAST typeOperand=.IB - GET_VAR 'val t: .IA [val] declared in .test' type=.IA origin=null + GET_VAR 'val t: .IA declared in .test' type=.IA origin=null diff --git a/compiler/testData/ir/irText/types/localVariableOfIntersectionType.ir.txt b/compiler/testData/ir/irText/types/localVariableOfIntersectionType.ir.txt index 54d444a2e26..56a9a0fa055 100644 --- a/compiler/testData/ir/irText/types/localVariableOfIntersectionType.ir.txt +++ b/compiler/testData/ir/irText/types/localVariableOfIntersectionType.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/localVariableOfIntersectionType.kt TYPE_PARAMETER name:T index:0 variance:in superTypes:[kotlin.Any?] reified:false 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -24,7 +24,7 @@ FILE fqName: fileName:/localVariableOfIntersectionType.kt $this: VALUE_PARAMETER name: type:.Inv.Inv> 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -44,7 +44,7 @@ FILE fqName: fileName:/localVariableOfIntersectionType.kt VALUE_PARAMETER name:y index:1 type:.In.Z.create> 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -61,7 +61,7 @@ FILE fqName: fileName:/localVariableOfIntersectionType.kt $this: VALUE_PARAMETER name: type:.IA 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -78,7 +78,7 @@ FILE fqName: fileName:/localVariableOfIntersectionType.kt $this: VALUE_PARAMETER name: type:.IB 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -119,7 +119,7 @@ FILE fqName: fileName:/localVariableOfIntersectionType.kt y: GET_VAR 'b: .In<.IB> declared in .test' type=.In<.IB> origin=null CALL 'public abstract fun foo (): kotlin.Unit declared in .IA' type=kotlin.Unit origin=null $this: TYPE_OP type=.IA origin=IMPLICIT_CAST typeOperand=.IA - GET_VAR 'val t: kotlin.Any [val] declared in .test' type=kotlin.Any origin=null + GET_VAR 'val t: kotlin.Any declared in .test' type=kotlin.Any origin=null CALL 'public abstract fun bar (): kotlin.Unit declared in .IB' type=kotlin.Unit origin=null $this: TYPE_OP type=.IB origin=IMPLICIT_CAST typeOperand=.IB - GET_VAR 'val t: kotlin.Any [val] declared in .test' type=kotlin.Any origin=null + GET_VAR 'val t: kotlin.Any declared in .test' type=kotlin.Any origin=null diff --git a/compiler/testData/ir/irText/types/nullChecks/enhancedNullability.ir.txt b/compiler/testData/ir/irText/types/nullChecks/enhancedNullability.ir.txt index b4b5cf6e179..206ecad8d09 100644 --- a/compiler/testData/ir/irText/types/nullChecks/enhancedNullability.ir.txt +++ b/compiler/testData/ir/irText/types/nullChecks/enhancedNullability.ir.txt @@ -47,9 +47,9 @@ FILE fqName: fileName:/enhancedNullability.kt VAR name:ns type:@[FlexibleNullability] kotlin.String? [val] CALL 'public open fun nullString (): @[FlexibleNullability] kotlin.String? declared in .J' type=@[FlexibleNullability] kotlin.String? origin=null CALL 'public open fun use (s: @[EnhancedNullability] kotlin.String): kotlin.Unit declared in .J' type=kotlin.Unit origin=null - s: GET_VAR 'val ns: @[FlexibleNullability] kotlin.String? [val] declared in .testLocalVarUse' type=@[FlexibleNullability] kotlin.String? origin=null + s: GET_VAR 'val ns: @[FlexibleNullability] kotlin.String? declared in .testLocalVarUse' type=@[FlexibleNullability] kotlin.String? origin=null VAR name:nns type:kotlin.String [val] TYPE_OP type=kotlin.String origin=IMPLICIT_NOTNULL typeOperand=kotlin.String CALL 'public open fun notNullString (): @[EnhancedNullability] kotlin.String declared in .J' type=@[EnhancedNullability] kotlin.String origin=null CALL 'public open fun use (s: @[EnhancedNullability] kotlin.String): kotlin.Unit declared in .J' type=kotlin.Unit origin=null - s: GET_VAR 'val nns: kotlin.String [val] declared in .testLocalVarUse' type=kotlin.String origin=null + s: GET_VAR 'val nns: kotlin.String declared in .testLocalVarUse' type=kotlin.String origin=null diff --git a/compiler/testData/ir/irText/types/nullChecks/enhancedNullabilityInDestructuringAssignment.fir.ir.txt b/compiler/testData/ir/irText/types/nullChecks/enhancedNullabilityInDestructuringAssignment.fir.ir.txt index 2636a6a4dae..8f2c155acf6 100644 --- a/compiler/testData/ir/irText/types/nullChecks/enhancedNullabilityInDestructuringAssignment.fir.ir.txt +++ b/compiler/testData/ir/irText/types/nullChecks/enhancedNullabilityInDestructuringAssignment.fir.ir.txt @@ -9,7 +9,7 @@ FILE fqName: fileName:/enhancedNullabilityInDestructuringAssignment.kt VALUE_PARAMETER name:x index:0 type:kotlin.Int VALUE_PARAMETER name:y index:1 type:kotlin.Int BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:P modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private [final] @@ -36,18 +36,18 @@ FILE fqName: fileName:/enhancedNullabilityInDestructuringAssignment.kt FUN name:component1 visibility:public modality:FINAL <> ($this:.P) returnType:kotlin.Int [operator] $this: VALUE_PARAMETER name: type:.P BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Int [operator] declared in .P' + RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Int declared in .P' CALL 'public final fun (): kotlin.Int declared in .P' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR ': .P declared in .P.component1' type=.P origin=null FUN name:component2 visibility:public modality:FINAL <> ($this:.P) returnType:kotlin.Int [operator] $this: VALUE_PARAMETER name: type:.P BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component2 (): kotlin.Int [operator] declared in .P' + RETURN type=kotlin.Nothing from='public final fun component2 (): kotlin.Int declared in .P' CALL 'public final fun (): kotlin.Int declared in .P' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR ': .P declared in .P.component2' type=.P 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -66,7 +66,7 @@ FILE fqName: fileName:/enhancedNullabilityInDestructuringAssignment.kt VALUE_PARAMETER name:x index:0 type:T1 of .Q VALUE_PARAMETER name:y index:1 type:T2 of .Q BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Q modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:T1 of .Q visibility:private [final] @@ -93,18 +93,18 @@ FILE fqName: fileName:/enhancedNullabilityInDestructuringAssignment.kt FUN name:component1 visibility:public modality:FINAL <> ($this:.Q.Q, T2 of .Q>) returnType:T1 of .Q [operator] $this: VALUE_PARAMETER name: type:.Q.Q, T2 of .Q> BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component1 (): T1 of .Q [operator] declared in .Q' + RETURN type=kotlin.Nothing from='public final fun component1 (): T1 of .Q declared in .Q' CALL 'public final fun (): T1 of .Q declared in .Q' type=T1 of .Q origin=GET_PROPERTY $this: GET_VAR ': .Q.Q, T2 of .Q> declared in .Q.component1' type=.Q.Q, T2 of .Q> origin=null FUN name:component2 visibility:public modality:FINAL <> ($this:.Q.Q, T2 of .Q>) returnType:T2 of .Q [operator] $this: VALUE_PARAMETER name: type:.Q.Q, T2 of .Q> BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component2 (): T2 of .Q [operator] declared in .Q' + RETURN type=kotlin.Nothing from='public final fun component2 (): T2 of .Q declared in .Q' CALL 'public final fun (): T2 of .Q declared in .Q' type=T2 of .Q origin=GET_PROPERTY $this: GET_VAR ': .Q.Q, T2 of .Q> declared in .Q.component2' type=.Q.Q, T2 of .Q> 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -121,44 +121,44 @@ FILE fqName: fileName:/enhancedNullabilityInDestructuringAssignment.kt TYPE_OP type=.P origin=IMPLICIT_NOTNULL typeOperand=.P CALL 'public open fun notNullP (): @[EnhancedNullability] .P declared in .J' type=@[EnhancedNullability] .P origin=null VAR name:x type:kotlin.Int [val] - CALL 'public final fun component1 (): kotlin.Int [operator] declared in .P' type=kotlin.Int origin=COMPONENT_N(index=1) - $this: GET_VAR 'val tmp_0: .P [val] declared in .test1' type=.P origin=null + CALL 'public final fun component1 (): kotlin.Int declared in .P' type=kotlin.Int origin=COMPONENT_N(index=1) + $this: GET_VAR 'val tmp_0: .P declared in .test1' type=.P origin=null VAR name:y type:kotlin.Int [val] - CALL 'public final fun component2 (): kotlin.Int [operator] declared in .P' type=kotlin.Int origin=COMPONENT_N(index=2) - $this: GET_VAR 'val tmp_0: .P [val] declared in .test1' type=.P origin=null + CALL 'public final fun component2 (): kotlin.Int declared in .P' type=kotlin.Int origin=COMPONENT_N(index=2) + $this: GET_VAR 'val tmp_0: .P declared in .test1' type=.P origin=null CALL 'public final fun use (x: kotlin.Any, y: kotlin.Any): kotlin.Unit declared in ' type=kotlin.Unit origin=null - x: GET_VAR 'val x: kotlin.Int [val] declared in .test1' type=kotlin.Int origin=null - y: GET_VAR 'val y: kotlin.Int [val] declared in .test1' type=kotlin.Int origin=null + x: GET_VAR 'val x: kotlin.Int declared in .test1' type=kotlin.Int origin=null + y: GET_VAR 'val y: kotlin.Int declared in .test1' type=kotlin.Int origin=null FUN name:test2 visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:@[FlexibleNullability] .Q<@[EnhancedNullability] kotlin.String, @[EnhancedNullability] kotlin.String>? [val] CALL 'public open fun notNullComponents (): @[FlexibleNullability] .Q<@[EnhancedNullability] kotlin.String, @[EnhancedNullability] kotlin.String>? declared in .J' type=@[FlexibleNullability] .Q<@[EnhancedNullability] kotlin.String, @[EnhancedNullability] kotlin.String>? origin=null VAR name:x type:@[EnhancedNullability] kotlin.String [val] TYPE_OP type=kotlin.String origin=IMPLICIT_NOTNULL typeOperand=kotlin.String - CALL 'public final fun component1 (): T1 of .Q [operator] declared in .Q' type=@[EnhancedNullability] kotlin.String origin=COMPONENT_N(index=1) - $this: GET_VAR 'val tmp_1: @[FlexibleNullability] .Q<@[EnhancedNullability] kotlin.String, @[EnhancedNullability] kotlin.String>? [val] declared in .test2' type=@[FlexibleNullability] .Q<@[EnhancedNullability] kotlin.String, @[EnhancedNullability] kotlin.String>? origin=null + CALL 'public final fun component1 (): T1 of .Q declared in .Q' type=@[EnhancedNullability] kotlin.String origin=COMPONENT_N(index=1) + $this: GET_VAR 'val tmp_1: @[FlexibleNullability] .Q<@[EnhancedNullability] kotlin.String, @[EnhancedNullability] kotlin.String>? declared in .test2' type=@[FlexibleNullability] .Q<@[EnhancedNullability] kotlin.String, @[EnhancedNullability] kotlin.String>? origin=null VAR name:y type:@[EnhancedNullability] kotlin.String [val] TYPE_OP type=kotlin.String origin=IMPLICIT_NOTNULL typeOperand=kotlin.String - CALL 'public final fun component2 (): T2 of .Q [operator] declared in .Q' type=@[EnhancedNullability] kotlin.String origin=COMPONENT_N(index=2) - $this: GET_VAR 'val tmp_1: @[FlexibleNullability] .Q<@[EnhancedNullability] kotlin.String, @[EnhancedNullability] kotlin.String>? [val] declared in .test2' type=@[FlexibleNullability] .Q<@[EnhancedNullability] kotlin.String, @[EnhancedNullability] kotlin.String>? origin=null + CALL 'public final fun component2 (): T2 of .Q declared in .Q' type=@[EnhancedNullability] kotlin.String origin=COMPONENT_N(index=2) + $this: GET_VAR 'val tmp_1: @[FlexibleNullability] .Q<@[EnhancedNullability] kotlin.String, @[EnhancedNullability] kotlin.String>? declared in .test2' type=@[FlexibleNullability] .Q<@[EnhancedNullability] kotlin.String, @[EnhancedNullability] kotlin.String>? origin=null CALL 'public final fun use (x: kotlin.Any, y: kotlin.Any): kotlin.Unit declared in ' type=kotlin.Unit origin=null - x: GET_VAR 'val x: @[EnhancedNullability] kotlin.String [val] declared in .test2' type=@[EnhancedNullability] kotlin.String origin=null - y: GET_VAR 'val y: @[EnhancedNullability] kotlin.String [val] declared in .test2' type=@[EnhancedNullability] kotlin.String origin=null + x: GET_VAR 'val x: @[EnhancedNullability] kotlin.String declared in .test2' type=@[EnhancedNullability] kotlin.String origin=null + y: GET_VAR 'val y: @[EnhancedNullability] kotlin.String declared in .test2' type=@[EnhancedNullability] kotlin.String origin=null FUN name:test2Desugared visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY VAR name:tmp type:@[FlexibleNullability] .Q<@[EnhancedNullability] kotlin.String, @[EnhancedNullability] kotlin.String>? [val] CALL 'public open fun notNullComponents (): @[FlexibleNullability] .Q<@[EnhancedNullability] kotlin.String, @[EnhancedNullability] kotlin.String>? declared in .J' type=@[FlexibleNullability] .Q<@[EnhancedNullability] kotlin.String, @[EnhancedNullability] kotlin.String>? origin=null VAR name:x type:kotlin.String [val] TYPE_OP type=kotlin.String origin=IMPLICIT_NOTNULL typeOperand=kotlin.String - CALL 'public final fun component1 (): T1 of .Q [operator] declared in .Q' type=@[EnhancedNullability] kotlin.String origin=null - $this: GET_VAR 'val tmp: @[FlexibleNullability] .Q<@[EnhancedNullability] kotlin.String, @[EnhancedNullability] kotlin.String>? [val] declared in .test2Desugared' type=@[FlexibleNullability] .Q<@[EnhancedNullability] kotlin.String, @[EnhancedNullability] kotlin.String>? origin=null + CALL 'public final fun component1 (): T1 of .Q declared in .Q' type=@[EnhancedNullability] kotlin.String origin=null + $this: GET_VAR 'val tmp: @[FlexibleNullability] .Q<@[EnhancedNullability] kotlin.String, @[EnhancedNullability] kotlin.String>? declared in .test2Desugared' type=@[FlexibleNullability] .Q<@[EnhancedNullability] kotlin.String, @[EnhancedNullability] kotlin.String>? origin=null VAR name:y type:kotlin.String [val] TYPE_OP type=kotlin.String origin=IMPLICIT_NOTNULL typeOperand=kotlin.String - CALL 'public final fun component2 (): T2 of .Q [operator] declared in .Q' type=@[EnhancedNullability] kotlin.String origin=null - $this: GET_VAR 'val tmp: @[FlexibleNullability] .Q<@[EnhancedNullability] kotlin.String, @[EnhancedNullability] kotlin.String>? [val] declared in .test2Desugared' type=@[FlexibleNullability] .Q<@[EnhancedNullability] kotlin.String, @[EnhancedNullability] kotlin.String>? origin=null + CALL 'public final fun component2 (): T2 of .Q declared in .Q' type=@[EnhancedNullability] kotlin.String origin=null + $this: GET_VAR 'val tmp: @[FlexibleNullability] .Q<@[EnhancedNullability] kotlin.String, @[EnhancedNullability] kotlin.String>? declared in .test2Desugared' type=@[FlexibleNullability] .Q<@[EnhancedNullability] kotlin.String, @[EnhancedNullability] kotlin.String>? origin=null CALL 'public final fun use (x: kotlin.Any, y: kotlin.Any): kotlin.Unit declared in ' type=kotlin.Unit origin=null - x: GET_VAR 'val x: kotlin.String [val] declared in .test2Desugared' type=kotlin.String origin=null - y: GET_VAR 'val y: kotlin.String [val] declared in .test2Desugared' type=kotlin.String origin=null + x: GET_VAR 'val x: kotlin.String declared in .test2Desugared' type=kotlin.String origin=null + y: GET_VAR 'val y: kotlin.String declared in .test2Desugared' type=kotlin.String origin=null FUN name:test3 visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY VAR IR_TEMPORARY_VARIABLE name:tmp_2 type:.Q<@[EnhancedNullability] kotlin.String, @[EnhancedNullability] kotlin.String> [val] @@ -166,15 +166,15 @@ FILE fqName: fileName:/enhancedNullabilityInDestructuringAssignment.kt CALL 'public open fun notNullQAndComponents (): @[EnhancedNullability] .Q<@[EnhancedNullability] kotlin.String, @[EnhancedNullability] kotlin.String> declared in .J' type=@[EnhancedNullability] .Q<@[EnhancedNullability] kotlin.String, @[EnhancedNullability] kotlin.String> origin=null VAR name:x type:@[EnhancedNullability] kotlin.String [val] TYPE_OP type=kotlin.String origin=IMPLICIT_NOTNULL typeOperand=kotlin.String - CALL 'public final fun component1 (): T1 of .Q [operator] declared in .Q' type=@[EnhancedNullability] kotlin.String origin=COMPONENT_N(index=1) - $this: GET_VAR 'val tmp_2: .Q<@[EnhancedNullability] kotlin.String, @[EnhancedNullability] kotlin.String> [val] declared in .test3' type=.Q<@[EnhancedNullability] kotlin.String, @[EnhancedNullability] kotlin.String> origin=null + CALL 'public final fun component1 (): T1 of .Q declared in .Q' type=@[EnhancedNullability] kotlin.String origin=COMPONENT_N(index=1) + $this: GET_VAR 'val tmp_2: .Q<@[EnhancedNullability] kotlin.String, @[EnhancedNullability] kotlin.String> declared in .test3' type=.Q<@[EnhancedNullability] kotlin.String, @[EnhancedNullability] kotlin.String> origin=null VAR name:y type:@[EnhancedNullability] kotlin.String [val] TYPE_OP type=kotlin.String origin=IMPLICIT_NOTNULL typeOperand=kotlin.String - CALL 'public final fun component2 (): T2 of .Q [operator] declared in .Q' type=@[EnhancedNullability] kotlin.String origin=COMPONENT_N(index=2) - $this: GET_VAR 'val tmp_2: .Q<@[EnhancedNullability] kotlin.String, @[EnhancedNullability] kotlin.String> [val] declared in .test3' type=.Q<@[EnhancedNullability] kotlin.String, @[EnhancedNullability] kotlin.String> origin=null + CALL 'public final fun component2 (): T2 of .Q declared in .Q' type=@[EnhancedNullability] kotlin.String origin=COMPONENT_N(index=2) + $this: GET_VAR 'val tmp_2: .Q<@[EnhancedNullability] kotlin.String, @[EnhancedNullability] kotlin.String> declared in .test3' type=.Q<@[EnhancedNullability] kotlin.String, @[EnhancedNullability] kotlin.String> origin=null CALL 'public final fun use (x: kotlin.Any, y: kotlin.Any): kotlin.Unit declared in ' type=kotlin.Unit origin=null - x: GET_VAR 'val x: @[EnhancedNullability] kotlin.String [val] declared in .test3' type=@[EnhancedNullability] kotlin.String origin=null - y: GET_VAR 'val y: @[EnhancedNullability] kotlin.String [val] declared in .test3' type=@[EnhancedNullability] kotlin.String origin=null + x: GET_VAR 'val x: @[EnhancedNullability] kotlin.String declared in .test3' type=@[EnhancedNullability] kotlin.String origin=null + y: GET_VAR 'val y: @[EnhancedNullability] kotlin.String declared in .test3' type=@[EnhancedNullability] kotlin.String origin=null FUN name:test4 visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY VAR IR_TEMPORARY_VARIABLE name:tmp_3 type:kotlin.collections.IndexedValue<@[EnhancedNullability] .P> [val] @@ -185,12 +185,12 @@ FILE fqName: fileName:/enhancedNullabilityInDestructuringAssignment.kt $receiver: TYPE_OP type=@[FlexibleMutability] kotlin.collections.MutableList<@[EnhancedNullability] .P> origin=IMPLICIT_NOTNULL typeOperand=@[FlexibleMutability] kotlin.collections.MutableList<@[EnhancedNullability] .P> CALL 'public open fun listOfNotNull (): @[FlexibleNullability] @[FlexibleMutability] kotlin.collections.MutableList<@[EnhancedNullability] .P>? declared in .J' type=@[FlexibleNullability] @[FlexibleMutability] kotlin.collections.MutableList<@[EnhancedNullability] .P>? origin=null VAR name:x type:kotlin.Int [val] - CALL 'public final fun component1 (): kotlin.Int [operator] declared in kotlin.collections.IndexedValue' type=kotlin.Int origin=COMPONENT_N(index=1) - $this: GET_VAR 'val tmp_3: kotlin.collections.IndexedValue<@[EnhancedNullability] .P> [val] declared in .test4' type=kotlin.collections.IndexedValue<@[EnhancedNullability] .P> origin=null + CALL 'public final fun component1 (): kotlin.Int declared in kotlin.collections.IndexedValue' type=kotlin.Int origin=COMPONENT_N(index=1) + $this: GET_VAR 'val tmp_3: kotlin.collections.IndexedValue<@[EnhancedNullability] .P> declared in .test4' type=kotlin.collections.IndexedValue<@[EnhancedNullability] .P> origin=null VAR name:y type:@[EnhancedNullability] .P [val] TYPE_OP type=.P origin=IMPLICIT_NOTNULL typeOperand=.P - CALL 'public final fun component2 (): T of kotlin.collections.IndexedValue [operator] declared in kotlin.collections.IndexedValue' type=@[EnhancedNullability] .P origin=COMPONENT_N(index=2) - $this: GET_VAR 'val tmp_3: kotlin.collections.IndexedValue<@[EnhancedNullability] .P> [val] declared in .test4' type=kotlin.collections.IndexedValue<@[EnhancedNullability] .P> origin=null + CALL 'public final fun component2 (): T of kotlin.collections.IndexedValue declared in kotlin.collections.IndexedValue' type=@[EnhancedNullability] .P origin=COMPONENT_N(index=2) + $this: GET_VAR 'val tmp_3: kotlin.collections.IndexedValue<@[EnhancedNullability] .P> declared in .test4' type=kotlin.collections.IndexedValue<@[EnhancedNullability] .P> origin=null CALL 'public final fun use (x: kotlin.Any, y: kotlin.Any): kotlin.Unit declared in ' type=kotlin.Unit origin=null - x: GET_VAR 'val x: kotlin.Int [val] declared in .test4' type=kotlin.Int origin=null - y: GET_VAR 'val y: @[EnhancedNullability] .P [val] declared in .test4' type=@[EnhancedNullability] .P origin=null + x: GET_VAR 'val x: kotlin.Int declared in .test4' type=kotlin.Int origin=null + y: GET_VAR 'val y: @[EnhancedNullability] .P declared in .test4' type=@[EnhancedNullability] .P origin=null diff --git a/compiler/testData/ir/irText/types/nullChecks/enhancedNullabilityInDestructuringAssignment.ir.txt b/compiler/testData/ir/irText/types/nullChecks/enhancedNullabilityInDestructuringAssignment.ir.txt index 0fa03db2466..24d0b46fc91 100644 --- a/compiler/testData/ir/irText/types/nullChecks/enhancedNullabilityInDestructuringAssignment.ir.txt +++ b/compiler/testData/ir/irText/types/nullChecks/enhancedNullabilityInDestructuringAssignment.ir.txt @@ -9,7 +9,7 @@ FILE fqName: fileName:/enhancedNullabilityInDestructuringAssignment.kt VALUE_PARAMETER name:x index:0 type:kotlin.Int VALUE_PARAMETER name:y index:1 type:kotlin.Int BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:P modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private [final] @@ -36,18 +36,18 @@ FILE fqName: fileName:/enhancedNullabilityInDestructuringAssignment.kt FUN name:component1 visibility:public modality:FINAL <> ($this:.P) returnType:kotlin.Int [operator] $this: VALUE_PARAMETER name: type:.P BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Int [operator] declared in .P' + RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Int declared in .P' CALL 'public final fun (): kotlin.Int declared in .P' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR ': .P declared in .P.component1' type=.P origin=null FUN name:component2 visibility:public modality:FINAL <> ($this:.P) returnType:kotlin.Int [operator] $this: VALUE_PARAMETER name: type:.P BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component2 (): kotlin.Int [operator] declared in .P' + RETURN type=kotlin.Nothing from='public final fun component2 (): kotlin.Int declared in .P' CALL 'public final fun (): kotlin.Int declared in .P' type=kotlin.Int origin=GET_PROPERTY $this: GET_VAR ': .P declared in .P.component2' type=.P 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -66,7 +66,7 @@ FILE fqName: fileName:/enhancedNullabilityInDestructuringAssignment.kt VALUE_PARAMETER name:x index:0 type:T1 of .Q VALUE_PARAMETER name:y index:1 type:T2 of .Q BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Q modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:T1 of .Q visibility:private [final] @@ -93,18 +93,18 @@ FILE fqName: fileName:/enhancedNullabilityInDestructuringAssignment.kt FUN name:component1 visibility:public modality:FINAL <> ($this:.Q.Q, T2 of .Q>) returnType:T1 of .Q [operator] $this: VALUE_PARAMETER name: type:.Q.Q, T2 of .Q> BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component1 (): T1 of .Q [operator] declared in .Q' + RETURN type=kotlin.Nothing from='public final fun component1 (): T1 of .Q declared in .Q' CALL 'public final fun (): T1 of .Q declared in .Q' type=T1 of .Q origin=GET_PROPERTY $this: GET_VAR ': .Q.Q, T2 of .Q> declared in .Q.component1' type=.Q.Q, T2 of .Q> origin=null FUN name:component2 visibility:public modality:FINAL <> ($this:.Q.Q, T2 of .Q>) returnType:T2 of .Q [operator] $this: VALUE_PARAMETER name: type:.Q.Q, T2 of .Q> BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component2 (): T2 of .Q [operator] declared in .Q' + RETURN type=kotlin.Nothing from='public final fun component2 (): T2 of .Q declared in .Q' CALL 'public final fun (): T2 of .Q declared in .Q' type=T2 of .Q origin=GET_PROPERTY $this: GET_VAR ': .Q.Q, T2 of .Q> declared in .Q.component2' type=.Q.Q, T2 of .Q> 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -121,69 +121,69 @@ FILE fqName: fileName:/enhancedNullabilityInDestructuringAssignment.kt VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:@[EnhancedNullability] .P [val] CALL 'public open fun notNullP (): @[EnhancedNullability] .P declared in .J' type=@[EnhancedNullability] .P origin=null VAR name:x type:kotlin.Int [val] - CALL 'public final fun component1 (): kotlin.Int [operator] declared in .P' type=kotlin.Int origin=COMPONENT_N(index=1) + CALL 'public final fun component1 (): kotlin.Int declared in .P' type=kotlin.Int origin=COMPONENT_N(index=1) $this: TYPE_OP type=.P origin=IMPLICIT_NOTNULL typeOperand=.P - GET_VAR 'val tmp_0: @[EnhancedNullability] .P [val] declared in .test1' type=@[EnhancedNullability] .P origin=null + GET_VAR 'val tmp_0: @[EnhancedNullability] .P declared in .test1' type=@[EnhancedNullability] .P origin=null VAR name:y type:kotlin.Int [val] - CALL 'public final fun component2 (): kotlin.Int [operator] declared in .P' type=kotlin.Int origin=COMPONENT_N(index=2) + CALL 'public final fun component2 (): kotlin.Int declared in .P' type=kotlin.Int origin=COMPONENT_N(index=2) $this: TYPE_OP type=.P origin=IMPLICIT_NOTNULL typeOperand=.P - GET_VAR 'val tmp_0: @[EnhancedNullability] .P [val] declared in .test1' type=@[EnhancedNullability] .P origin=null + GET_VAR 'val tmp_0: @[EnhancedNullability] .P declared in .test1' type=@[EnhancedNullability] .P origin=null CALL 'public final fun use (x: kotlin.Any, y: kotlin.Any): kotlin.Unit declared in ' type=kotlin.Unit origin=null - x: GET_VAR 'val x: kotlin.Int [val] declared in .test1' type=kotlin.Int origin=null - y: GET_VAR 'val y: kotlin.Int [val] declared in .test1' type=kotlin.Int origin=null + x: GET_VAR 'val x: kotlin.Int declared in .test1' type=kotlin.Int origin=null + y: GET_VAR 'val y: kotlin.Int declared in .test1' type=kotlin.Int origin=null FUN name:test2 visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY COMPOSITE type=kotlin.Unit origin=DESTRUCTURING_DECLARATION VAR IR_TEMPORARY_VARIABLE name:tmp_1 type:@[FlexibleNullability] .Q<@[NotNull(value = )] @[EnhancedNullability] kotlin.String, @[NotNull(value = )] @[EnhancedNullability] kotlin.String>? [val] CALL 'public open fun notNullComponents (): @[FlexibleNullability] .Q<@[NotNull(value = )] @[EnhancedNullability] kotlin.String, @[NotNull(value = )] @[EnhancedNullability] kotlin.String>? declared in .J' type=@[FlexibleNullability] .Q<@[NotNull(value = )] @[EnhancedNullability] kotlin.String, @[NotNull(value = )] @[EnhancedNullability] kotlin.String>? origin=null VAR name:x type:@[NotNull(value = )] @[EnhancedNullability] kotlin.String [val] - CALL 'public final fun component1 (): T1 of .Q [operator] declared in .Q' type=@[NotNull(value = )] @[EnhancedNullability] kotlin.String origin=COMPONENT_N(index=1) + CALL 'public final fun component1 (): T1 of .Q declared in .Q' type=@[NotNull(value = )] @[EnhancedNullability] kotlin.String origin=COMPONENT_N(index=1) $this: TYPE_OP type=.Q<@[NotNull(value = )] @[EnhancedNullability] kotlin.String, @[NotNull(value = )] @[EnhancedNullability] kotlin.String> origin=IMPLICIT_NOTNULL typeOperand=.Q<@[NotNull(value = )] @[EnhancedNullability] kotlin.String, @[NotNull(value = )] @[EnhancedNullability] kotlin.String> - GET_VAR 'val tmp_1: @[FlexibleNullability] .Q<@[NotNull(value = )] @[EnhancedNullability] kotlin.String, @[NotNull(value = )] @[EnhancedNullability] kotlin.String>? [val] declared in .test2' type=@[FlexibleNullability] .Q<@[NotNull(value = )] @[EnhancedNullability] kotlin.String, @[NotNull(value = )] @[EnhancedNullability] kotlin.String>? origin=null + GET_VAR 'val tmp_1: @[FlexibleNullability] .Q<@[NotNull(value = )] @[EnhancedNullability] kotlin.String, @[NotNull(value = )] @[EnhancedNullability] kotlin.String>? declared in .test2' type=@[FlexibleNullability] .Q<@[NotNull(value = )] @[EnhancedNullability] kotlin.String, @[NotNull(value = )] @[EnhancedNullability] kotlin.String>? origin=null VAR name:y type:@[NotNull(value = )] @[EnhancedNullability] kotlin.String [val] - CALL 'public final fun component2 (): T2 of .Q [operator] declared in .Q' type=@[NotNull(value = )] @[EnhancedNullability] kotlin.String origin=COMPONENT_N(index=2) + CALL 'public final fun component2 (): T2 of .Q declared in .Q' type=@[NotNull(value = )] @[EnhancedNullability] kotlin.String origin=COMPONENT_N(index=2) $this: TYPE_OP type=.Q<@[NotNull(value = )] @[EnhancedNullability] kotlin.String, @[NotNull(value = )] @[EnhancedNullability] kotlin.String> origin=IMPLICIT_NOTNULL typeOperand=.Q<@[NotNull(value = )] @[EnhancedNullability] kotlin.String, @[NotNull(value = )] @[EnhancedNullability] kotlin.String> - GET_VAR 'val tmp_1: @[FlexibleNullability] .Q<@[NotNull(value = )] @[EnhancedNullability] kotlin.String, @[NotNull(value = )] @[EnhancedNullability] kotlin.String>? [val] declared in .test2' type=@[FlexibleNullability] .Q<@[NotNull(value = )] @[EnhancedNullability] kotlin.String, @[NotNull(value = )] @[EnhancedNullability] kotlin.String>? origin=null + GET_VAR 'val tmp_1: @[FlexibleNullability] .Q<@[NotNull(value = )] @[EnhancedNullability] kotlin.String, @[NotNull(value = )] @[EnhancedNullability] kotlin.String>? declared in .test2' type=@[FlexibleNullability] .Q<@[NotNull(value = )] @[EnhancedNullability] kotlin.String, @[NotNull(value = )] @[EnhancedNullability] kotlin.String>? origin=null CALL 'public final fun use (x: kotlin.Any, y: kotlin.Any): kotlin.Unit declared in ' type=kotlin.Unit origin=null x: TYPE_OP type=@[NotNull(value = )] kotlin.String origin=IMPLICIT_NOTNULL typeOperand=@[NotNull(value = )] kotlin.String - GET_VAR 'val x: @[NotNull(value = )] @[EnhancedNullability] kotlin.String [val] declared in .test2' type=@[NotNull(value = )] @[EnhancedNullability] kotlin.String origin=null + GET_VAR 'val x: @[NotNull(value = )] @[EnhancedNullability] kotlin.String declared in .test2' type=@[NotNull(value = )] @[EnhancedNullability] kotlin.String origin=null y: TYPE_OP type=@[NotNull(value = )] kotlin.String origin=IMPLICIT_NOTNULL typeOperand=@[NotNull(value = )] kotlin.String - GET_VAR 'val y: @[NotNull(value = )] @[EnhancedNullability] kotlin.String [val] declared in .test2' type=@[NotNull(value = )] @[EnhancedNullability] kotlin.String origin=null + GET_VAR 'val y: @[NotNull(value = )] @[EnhancedNullability] kotlin.String declared in .test2' type=@[NotNull(value = )] @[EnhancedNullability] kotlin.String origin=null FUN name:test2Desugared visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY VAR name:tmp type:@[FlexibleNullability] .Q<@[NotNull(value = )] @[EnhancedNullability] kotlin.String, @[NotNull(value = )] @[EnhancedNullability] kotlin.String>? [val] CALL 'public open fun notNullComponents (): @[FlexibleNullability] .Q<@[NotNull(value = )] @[EnhancedNullability] kotlin.String, @[NotNull(value = )] @[EnhancedNullability] kotlin.String>? declared in .J' type=@[FlexibleNullability] .Q<@[NotNull(value = )] @[EnhancedNullability] kotlin.String, @[NotNull(value = )] @[EnhancedNullability] kotlin.String>? origin=null VAR name:x type:@[NotNull(value = )] kotlin.String [val] TYPE_OP type=@[NotNull(value = )] kotlin.String origin=IMPLICIT_NOTNULL typeOperand=@[NotNull(value = )] kotlin.String - CALL 'public final fun component1 (): T1 of .Q [operator] declared in .Q' type=@[NotNull(value = )] @[EnhancedNullability] kotlin.String origin=null + CALL 'public final fun component1 (): T1 of .Q declared in .Q' type=@[NotNull(value = )] @[EnhancedNullability] kotlin.String origin=null $this: TYPE_OP type=.Q<@[NotNull(value = )] @[EnhancedNullability] kotlin.String, @[NotNull(value = )] @[EnhancedNullability] kotlin.String> origin=IMPLICIT_NOTNULL typeOperand=.Q<@[NotNull(value = )] @[EnhancedNullability] kotlin.String, @[NotNull(value = )] @[EnhancedNullability] kotlin.String> - GET_VAR 'val tmp: @[FlexibleNullability] .Q<@[NotNull(value = )] @[EnhancedNullability] kotlin.String, @[NotNull(value = )] @[EnhancedNullability] kotlin.String>? [val] declared in .test2Desugared' type=@[FlexibleNullability] .Q<@[NotNull(value = )] @[EnhancedNullability] kotlin.String, @[NotNull(value = )] @[EnhancedNullability] kotlin.String>? origin=null + GET_VAR 'val tmp: @[FlexibleNullability] .Q<@[NotNull(value = )] @[EnhancedNullability] kotlin.String, @[NotNull(value = )] @[EnhancedNullability] kotlin.String>? declared in .test2Desugared' type=@[FlexibleNullability] .Q<@[NotNull(value = )] @[EnhancedNullability] kotlin.String, @[NotNull(value = )] @[EnhancedNullability] kotlin.String>? origin=null VAR name:y type:@[NotNull(value = )] kotlin.String [val] TYPE_OP type=@[NotNull(value = )] kotlin.String origin=IMPLICIT_NOTNULL typeOperand=@[NotNull(value = )] kotlin.String - CALL 'public final fun component2 (): T2 of .Q [operator] declared in .Q' type=@[NotNull(value = )] @[EnhancedNullability] kotlin.String origin=null + CALL 'public final fun component2 (): T2 of .Q declared in .Q' type=@[NotNull(value = )] @[EnhancedNullability] kotlin.String origin=null $this: TYPE_OP type=.Q<@[NotNull(value = )] @[EnhancedNullability] kotlin.String, @[NotNull(value = )] @[EnhancedNullability] kotlin.String> origin=IMPLICIT_NOTNULL typeOperand=.Q<@[NotNull(value = )] @[EnhancedNullability] kotlin.String, @[NotNull(value = )] @[EnhancedNullability] kotlin.String> - GET_VAR 'val tmp: @[FlexibleNullability] .Q<@[NotNull(value = )] @[EnhancedNullability] kotlin.String, @[NotNull(value = )] @[EnhancedNullability] kotlin.String>? [val] declared in .test2Desugared' type=@[FlexibleNullability] .Q<@[NotNull(value = )] @[EnhancedNullability] kotlin.String, @[NotNull(value = )] @[EnhancedNullability] kotlin.String>? origin=null + GET_VAR 'val tmp: @[FlexibleNullability] .Q<@[NotNull(value = )] @[EnhancedNullability] kotlin.String, @[NotNull(value = )] @[EnhancedNullability] kotlin.String>? declared in .test2Desugared' type=@[FlexibleNullability] .Q<@[NotNull(value = )] @[EnhancedNullability] kotlin.String, @[NotNull(value = )] @[EnhancedNullability] kotlin.String>? origin=null CALL 'public final fun use (x: kotlin.Any, y: kotlin.Any): kotlin.Unit declared in ' type=kotlin.Unit origin=null - x: GET_VAR 'val x: @[NotNull(value = )] kotlin.String [val] declared in .test2Desugared' type=@[NotNull(value = )] kotlin.String origin=null - y: GET_VAR 'val y: @[NotNull(value = )] kotlin.String [val] declared in .test2Desugared' type=@[NotNull(value = )] kotlin.String origin=null + x: GET_VAR 'val x: @[NotNull(value = )] kotlin.String declared in .test2Desugared' type=@[NotNull(value = )] kotlin.String origin=null + y: GET_VAR 'val y: @[NotNull(value = )] kotlin.String declared in .test2Desugared' type=@[NotNull(value = )] kotlin.String origin=null FUN name:test3 visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY COMPOSITE type=kotlin.Unit origin=DESTRUCTURING_DECLARATION VAR IR_TEMPORARY_VARIABLE name:tmp_2 type:@[EnhancedNullability] .Q<@[NotNull(value = )] @[EnhancedNullability] kotlin.String, @[NotNull(value = )] @[EnhancedNullability] kotlin.String> [val] CALL 'public open fun notNullQAndComponents (): @[EnhancedNullability] .Q<@[NotNull(value = )] @[EnhancedNullability] kotlin.String, @[NotNull(value = )] @[EnhancedNullability] kotlin.String> declared in .J' type=@[EnhancedNullability] .Q<@[NotNull(value = )] @[EnhancedNullability] kotlin.String, @[NotNull(value = )] @[EnhancedNullability] kotlin.String> origin=null VAR name:x type:@[NotNull(value = )] @[EnhancedNullability] kotlin.String [val] - CALL 'public final fun component1 (): T1 of .Q [operator] declared in .Q' type=@[NotNull(value = )] @[EnhancedNullability] kotlin.String origin=COMPONENT_N(index=1) + CALL 'public final fun component1 (): T1 of .Q declared in .Q' type=@[NotNull(value = )] @[EnhancedNullability] kotlin.String origin=COMPONENT_N(index=1) $this: TYPE_OP type=.Q<@[NotNull(value = )] @[EnhancedNullability] kotlin.String, @[NotNull(value = )] @[EnhancedNullability] kotlin.String> origin=IMPLICIT_NOTNULL typeOperand=.Q<@[NotNull(value = )] @[EnhancedNullability] kotlin.String, @[NotNull(value = )] @[EnhancedNullability] kotlin.String> - GET_VAR 'val tmp_2: @[EnhancedNullability] .Q<@[NotNull(value = )] @[EnhancedNullability] kotlin.String, @[NotNull(value = )] @[EnhancedNullability] kotlin.String> [val] declared in .test3' type=@[EnhancedNullability] .Q<@[NotNull(value = )] @[EnhancedNullability] kotlin.String, @[NotNull(value = )] @[EnhancedNullability] kotlin.String> origin=null + GET_VAR 'val tmp_2: @[EnhancedNullability] .Q<@[NotNull(value = )] @[EnhancedNullability] kotlin.String, @[NotNull(value = )] @[EnhancedNullability] kotlin.String> declared in .test3' type=@[EnhancedNullability] .Q<@[NotNull(value = )] @[EnhancedNullability] kotlin.String, @[NotNull(value = )] @[EnhancedNullability] kotlin.String> origin=null VAR name:y type:@[NotNull(value = )] @[EnhancedNullability] kotlin.String [val] - CALL 'public final fun component2 (): T2 of .Q [operator] declared in .Q' type=@[NotNull(value = )] @[EnhancedNullability] kotlin.String origin=COMPONENT_N(index=2) + CALL 'public final fun component2 (): T2 of .Q declared in .Q' type=@[NotNull(value = )] @[EnhancedNullability] kotlin.String origin=COMPONENT_N(index=2) $this: TYPE_OP type=.Q<@[NotNull(value = )] @[EnhancedNullability] kotlin.String, @[NotNull(value = )] @[EnhancedNullability] kotlin.String> origin=IMPLICIT_NOTNULL typeOperand=.Q<@[NotNull(value = )] @[EnhancedNullability] kotlin.String, @[NotNull(value = )] @[EnhancedNullability] kotlin.String> - GET_VAR 'val tmp_2: @[EnhancedNullability] .Q<@[NotNull(value = )] @[EnhancedNullability] kotlin.String, @[NotNull(value = )] @[EnhancedNullability] kotlin.String> [val] declared in .test3' type=@[EnhancedNullability] .Q<@[NotNull(value = )] @[EnhancedNullability] kotlin.String, @[NotNull(value = )] @[EnhancedNullability] kotlin.String> origin=null + GET_VAR 'val tmp_2: @[EnhancedNullability] .Q<@[NotNull(value = )] @[EnhancedNullability] kotlin.String, @[NotNull(value = )] @[EnhancedNullability] kotlin.String> declared in .test3' type=@[EnhancedNullability] .Q<@[NotNull(value = )] @[EnhancedNullability] kotlin.String, @[NotNull(value = )] @[EnhancedNullability] kotlin.String> origin=null CALL 'public final fun use (x: kotlin.Any, y: kotlin.Any): kotlin.Unit declared in ' type=kotlin.Unit origin=null x: TYPE_OP type=@[NotNull(value = )] kotlin.String origin=IMPLICIT_NOTNULL typeOperand=@[NotNull(value = )] kotlin.String - GET_VAR 'val x: @[NotNull(value = )] @[EnhancedNullability] kotlin.String [val] declared in .test3' type=@[NotNull(value = )] @[EnhancedNullability] kotlin.String origin=null + GET_VAR 'val x: @[NotNull(value = )] @[EnhancedNullability] kotlin.String declared in .test3' type=@[NotNull(value = )] @[EnhancedNullability] kotlin.String origin=null y: TYPE_OP type=@[NotNull(value = )] kotlin.String origin=IMPLICIT_NOTNULL typeOperand=@[NotNull(value = )] kotlin.String - GET_VAR 'val y: @[NotNull(value = )] @[EnhancedNullability] kotlin.String [val] declared in .test3' type=@[NotNull(value = )] @[EnhancedNullability] kotlin.String origin=null + GET_VAR 'val y: @[NotNull(value = )] @[EnhancedNullability] kotlin.String declared in .test3' type=@[NotNull(value = )] @[EnhancedNullability] kotlin.String origin=null FUN name:test4 visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY COMPOSITE type=kotlin.Unit origin=DESTRUCTURING_DECLARATION @@ -195,12 +195,12 @@ FILE fqName: fileName:/enhancedNullabilityInDestructuringAssignment.kt $receiver: TYPE_OP type=kotlin.collections.List<@[NotNull(value = )] @[EnhancedNullability] .P> origin=IMPLICIT_NOTNULL typeOperand=kotlin.collections.List<@[NotNull(value = )] @[EnhancedNullability] .P> CALL 'public open fun listOfNotNull (): @[FlexibleNullability] @[FlexibleMutability] kotlin.collections.MutableList<@[NotNull(value = )] @[EnhancedNullability] .P>? declared in .J' type=@[FlexibleNullability] @[FlexibleMutability] kotlin.collections.MutableList<@[NotNull(value = )] @[EnhancedNullability] .P>? origin=null VAR name:x type:kotlin.Int [val] - CALL 'public final fun component1 (): kotlin.Int [operator] declared in kotlin.collections.IndexedValue' type=kotlin.Int origin=COMPONENT_N(index=1) - $this: GET_VAR 'val tmp_3: kotlin.collections.IndexedValue<@[NotNull(value = )] @[EnhancedNullability] .P> [val] declared in .test4' type=kotlin.collections.IndexedValue<@[NotNull(value = )] @[EnhancedNullability] .P> origin=null + CALL 'public final fun component1 (): kotlin.Int declared in kotlin.collections.IndexedValue' type=kotlin.Int origin=COMPONENT_N(index=1) + $this: GET_VAR 'val tmp_3: kotlin.collections.IndexedValue<@[NotNull(value = )] @[EnhancedNullability] .P> declared in .test4' type=kotlin.collections.IndexedValue<@[NotNull(value = )] @[EnhancedNullability] .P> origin=null VAR name:y type:@[NotNull(value = )] @[EnhancedNullability] .P [val] - CALL 'public final fun component2 (): T of kotlin.collections.IndexedValue [operator] declared in kotlin.collections.IndexedValue' type=@[NotNull(value = )] @[EnhancedNullability] .P origin=COMPONENT_N(index=2) - $this: GET_VAR 'val tmp_3: kotlin.collections.IndexedValue<@[NotNull(value = )] @[EnhancedNullability] .P> [val] declared in .test4' type=kotlin.collections.IndexedValue<@[NotNull(value = )] @[EnhancedNullability] .P> origin=null + CALL 'public final fun component2 (): T of kotlin.collections.IndexedValue declared in kotlin.collections.IndexedValue' type=@[NotNull(value = )] @[EnhancedNullability] .P origin=COMPONENT_N(index=2) + $this: GET_VAR 'val tmp_3: kotlin.collections.IndexedValue<@[NotNull(value = )] @[EnhancedNullability] .P> declared in .test4' type=kotlin.collections.IndexedValue<@[NotNull(value = )] @[EnhancedNullability] .P> origin=null CALL 'public final fun use (x: kotlin.Any, y: kotlin.Any): kotlin.Unit declared in ' type=kotlin.Unit origin=null - x: GET_VAR 'val x: kotlin.Int [val] declared in .test4' type=kotlin.Int origin=null + x: GET_VAR 'val x: kotlin.Int declared in .test4' type=kotlin.Int origin=null y: TYPE_OP type=@[NotNull(value = )] .P origin=IMPLICIT_NOTNULL typeOperand=@[NotNull(value = )] .P - GET_VAR 'val y: @[NotNull(value = )] @[EnhancedNullability] .P [val] declared in .test4' type=@[NotNull(value = )] @[EnhancedNullability] .P origin=null + GET_VAR 'val y: @[NotNull(value = )] @[EnhancedNullability] .P declared in .test4' type=@[NotNull(value = )] @[EnhancedNullability] .P origin=null diff --git a/compiler/testData/ir/irText/types/nullChecks/enhancedNullabilityInForLoop.fir.ir.txt b/compiler/testData/ir/irText/types/nullChecks/enhancedNullabilityInForLoop.fir.ir.txt index a6f060ec2c8..4b87d6eef34 100644 --- a/compiler/testData/ir/irText/types/nullChecks/enhancedNullabilityInForLoop.fir.ir.txt +++ b/compiler/testData/ir/irText/types/nullChecks/enhancedNullabilityInForLoop.fir.ir.txt @@ -6,115 +6,115 @@ FILE fqName: fileName:/enhancedNullabilityInForLoop.kt BLOCK_BODY BLOCK type=kotlin.Unit origin=FOR_LOOP VAR FOR_LOOP_ITERATOR name:tmp_0 type:kotlin.collections.MutableIterator<@[EnhancedNullability] .P> [val] - CALL 'public abstract fun iterator (): kotlin.collections.MutableIterator [fake_override,operator] declared in kotlin.collections.MutableList' type=kotlin.collections.MutableIterator<@[EnhancedNullability] .P> origin=FOR_LOOP_ITERATOR + CALL 'public abstract fun iterator (): kotlin.collections.MutableIterator declared in kotlin.collections.MutableList' type=kotlin.collections.MutableIterator<@[EnhancedNullability] .P> origin=FOR_LOOP_ITERATOR $this: CALL 'public open fun listOfNotNull (): @[FlexibleNullability] @[FlexibleMutability] kotlin.collections.MutableList<@[EnhancedNullability] .P>? declared in .J' type=@[FlexibleNullability] @[FlexibleMutability] kotlin.collections.MutableList<@[EnhancedNullability] .P>? origin=null WHILE label=null origin=FOR_LOOP_INNER_WHILE - condition: CALL 'public abstract fun hasNext (): kotlin.Boolean [fake_override,operator] declared in kotlin.collections.MutableIterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT - $this: GET_VAR 'val tmp_0: kotlin.collections.MutableIterator<@[EnhancedNullability] .P> [val] declared in .testForInListUnused' type=kotlin.collections.MutableIterator<@[EnhancedNullability] .P> origin=null + condition: CALL 'public abstract fun hasNext (): kotlin.Boolean declared in kotlin.collections.MutableIterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT + $this: GET_VAR 'val tmp_0: kotlin.collections.MutableIterator<@[EnhancedNullability] .P> declared in .testForInListUnused' type=kotlin.collections.MutableIterator<@[EnhancedNullability] .P> origin=null body: BLOCK type=kotlin.Unit origin=FOR_LOOP_INNER_WHILE VAR FOR_LOOP_VARIABLE name:x type:.P [val] TYPE_OP type=.P origin=IMPLICIT_NOTNULL typeOperand=.P - CALL 'public abstract fun next (): T of kotlin.collections.MutableIterator [fake_override,operator] declared in kotlin.collections.MutableIterator' type=@[EnhancedNullability] .P origin=FOR_LOOP_NEXT - $this: GET_VAR 'val tmp_0: kotlin.collections.MutableIterator<@[EnhancedNullability] .P> [val] declared in .testForInListUnused' type=kotlin.collections.MutableIterator<@[EnhancedNullability] .P> origin=null + CALL 'public abstract fun next (): T of kotlin.collections.MutableIterator declared in kotlin.collections.MutableIterator' type=@[EnhancedNullability] .P origin=FOR_LOOP_NEXT + $this: GET_VAR 'val tmp_0: kotlin.collections.MutableIterator<@[EnhancedNullability] .P> declared in .testForInListUnused' type=kotlin.collections.MutableIterator<@[EnhancedNullability] .P> origin=null BLOCK type=kotlin.Unit origin=null FUN name:testForInListDestructured visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY BLOCK type=kotlin.Unit origin=FOR_LOOP VAR FOR_LOOP_ITERATOR name:tmp_1 type:kotlin.collections.MutableIterator<@[EnhancedNullability] .P> [val] - CALL 'public abstract fun iterator (): kotlin.collections.MutableIterator [fake_override,operator] declared in kotlin.collections.MutableList' type=kotlin.collections.MutableIterator<@[EnhancedNullability] .P> origin=FOR_LOOP_ITERATOR + CALL 'public abstract fun iterator (): kotlin.collections.MutableIterator declared in kotlin.collections.MutableList' type=kotlin.collections.MutableIterator<@[EnhancedNullability] .P> origin=FOR_LOOP_ITERATOR $this: CALL 'public open fun listOfNotNull (): @[FlexibleNullability] @[FlexibleMutability] kotlin.collections.MutableList<@[EnhancedNullability] .P>? declared in .J' type=@[FlexibleNullability] @[FlexibleMutability] kotlin.collections.MutableList<@[EnhancedNullability] .P>? origin=null WHILE label=null origin=FOR_LOOP_INNER_WHILE - condition: CALL 'public abstract fun hasNext (): kotlin.Boolean [fake_override,operator] declared in kotlin.collections.MutableIterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT - $this: GET_VAR 'val tmp_1: kotlin.collections.MutableIterator<@[EnhancedNullability] .P> [val] declared in .testForInListDestructured' type=kotlin.collections.MutableIterator<@[EnhancedNullability] .P> origin=null + condition: CALL 'public abstract fun hasNext (): kotlin.Boolean declared in kotlin.collections.MutableIterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT + $this: GET_VAR 'val tmp_1: kotlin.collections.MutableIterator<@[EnhancedNullability] .P> declared in .testForInListDestructured' type=kotlin.collections.MutableIterator<@[EnhancedNullability] .P> origin=null body: BLOCK type=kotlin.Unit origin=FOR_LOOP_INNER_WHILE VAR IR_TEMPORARY_VARIABLE name:tmp_2 type:.P [val] TYPE_OP type=.P origin=IMPLICIT_NOTNULL typeOperand=.P - CALL 'public abstract fun next (): T of kotlin.collections.MutableIterator [fake_override,operator] declared in kotlin.collections.MutableIterator' type=@[EnhancedNullability] .P origin=FOR_LOOP_NEXT - $this: GET_VAR 'val tmp_1: kotlin.collections.MutableIterator<@[EnhancedNullability] .P> [val] declared in .testForInListDestructured' type=kotlin.collections.MutableIterator<@[EnhancedNullability] .P> origin=null + CALL 'public abstract fun next (): T of kotlin.collections.MutableIterator declared in kotlin.collections.MutableIterator' type=@[EnhancedNullability] .P origin=FOR_LOOP_NEXT + $this: GET_VAR 'val tmp_1: kotlin.collections.MutableIterator<@[EnhancedNullability] .P> declared in .testForInListDestructured' type=kotlin.collections.MutableIterator<@[EnhancedNullability] .P> origin=null VAR name:x type:kotlin.Int [val] - CALL 'public final fun component1 (): kotlin.Int [operator] declared in .P' type=kotlin.Int origin=COMPONENT_N(index=1) - $this: GET_VAR 'val tmp_2: .P [val] declared in .testForInListDestructured' type=.P origin=null + CALL 'public final fun component1 (): kotlin.Int declared in .P' type=kotlin.Int origin=COMPONENT_N(index=1) + $this: GET_VAR 'val tmp_2: .P declared in .testForInListDestructured' type=.P origin=null VAR name:y type:kotlin.Int [val] - CALL 'public final fun component2 (): kotlin.Int [operator] declared in .P' type=kotlin.Int origin=COMPONENT_N(index=2) - $this: GET_VAR 'val tmp_2: .P [val] declared in .testForInListDestructured' type=.P origin=null + CALL 'public final fun component2 (): kotlin.Int declared in .P' type=kotlin.Int origin=COMPONENT_N(index=2) + $this: GET_VAR 'val tmp_2: .P declared in .testForInListDestructured' type=.P origin=null BLOCK type=kotlin.Unit origin=null FUN name:testDesugaredForInList visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY VAR name:iterator type:kotlin.collections.MutableIterator<@[EnhancedNullability] .P> [val] - CALL 'public abstract fun iterator (): kotlin.collections.MutableIterator [fake_override,operator] declared in kotlin.collections.MutableList' type=kotlin.collections.MutableIterator<@[EnhancedNullability] .P> origin=null + CALL 'public abstract fun iterator (): kotlin.collections.MutableIterator declared in kotlin.collections.MutableList' type=kotlin.collections.MutableIterator<@[EnhancedNullability] .P> origin=null $this: CALL 'public open fun listOfNotNull (): @[FlexibleNullability] @[FlexibleMutability] kotlin.collections.MutableList<@[EnhancedNullability] .P>? declared in .J' type=@[FlexibleNullability] @[FlexibleMutability] kotlin.collections.MutableList<@[EnhancedNullability] .P>? origin=null WHILE label=null origin=WHILE_LOOP - condition: CALL 'public abstract fun hasNext (): kotlin.Boolean [fake_override,operator] declared in kotlin.collections.MutableIterator' type=kotlin.Boolean origin=null - $this: GET_VAR 'val iterator: kotlin.collections.MutableIterator<@[EnhancedNullability] .P> [val] declared in .testDesugaredForInList' type=kotlin.collections.MutableIterator<@[EnhancedNullability] .P> origin=null + condition: CALL 'public abstract fun hasNext (): kotlin.Boolean declared in kotlin.collections.MutableIterator' type=kotlin.Boolean origin=null + $this: GET_VAR 'val iterator: kotlin.collections.MutableIterator<@[EnhancedNullability] .P> declared in .testDesugaredForInList' type=kotlin.collections.MutableIterator<@[EnhancedNullability] .P> origin=null body: BLOCK type=kotlin.Unit origin=null VAR name:x type:.P [val] TYPE_OP type=.P origin=IMPLICIT_NOTNULL typeOperand=.P - CALL 'public abstract fun next (): T of kotlin.collections.MutableIterator [fake_override,operator] declared in kotlin.collections.MutableIterator' type=@[EnhancedNullability] .P origin=null - $this: GET_VAR 'val iterator: kotlin.collections.MutableIterator<@[EnhancedNullability] .P> [val] declared in .testDesugaredForInList' type=kotlin.collections.MutableIterator<@[EnhancedNullability] .P> origin=null + CALL 'public abstract fun next (): T of kotlin.collections.MutableIterator declared in kotlin.collections.MutableIterator' type=@[EnhancedNullability] .P origin=null + $this: GET_VAR 'val iterator: kotlin.collections.MutableIterator<@[EnhancedNullability] .P> declared in .testDesugaredForInList' type=kotlin.collections.MutableIterator<@[EnhancedNullability] .P> origin=null FUN name:testForInArrayUnused visibility:public modality:FINAL <> (j:.J) returnType:kotlin.Unit VALUE_PARAMETER name:j index:0 type:.J BLOCK_BODY BLOCK type=kotlin.Unit origin=FOR_LOOP VAR FOR_LOOP_ITERATOR name:tmp_3 type:kotlin.collections.Iterator<@[EnhancedNullability] .P> [val] - CALL 'public final fun iterator (): kotlin.collections.Iterator [operator] declared in kotlin.Array' type=kotlin.collections.Iterator<@[EnhancedNullability] .P> origin=null + CALL 'public final fun iterator (): kotlin.collections.Iterator declared in kotlin.Array' type=kotlin.collections.Iterator<@[EnhancedNullability] .P> origin=null $this: CALL 'public open fun arrayOfNotNull (): @[EnhancedNullability] kotlin.Array.P> declared in .J' type=@[EnhancedNullability] kotlin.Array.P> origin=null $this: GET_VAR 'j: .J declared in .testForInArrayUnused' type=.J origin=null WHILE label=null origin=FOR_LOOP_INNER_WHILE - condition: CALL 'public abstract fun hasNext (): kotlin.Boolean [operator] declared in kotlin.collections.Iterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT - $this: GET_VAR 'val tmp_3: kotlin.collections.Iterator<@[EnhancedNullability] .P> [val] declared in .testForInArrayUnused' type=kotlin.collections.Iterator<@[EnhancedNullability] .P> origin=null + condition: CALL 'public abstract fun hasNext (): kotlin.Boolean declared in kotlin.collections.Iterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT + $this: GET_VAR 'val tmp_3: kotlin.collections.Iterator<@[EnhancedNullability] .P> declared in .testForInArrayUnused' type=kotlin.collections.Iterator<@[EnhancedNullability] .P> origin=null body: BLOCK type=kotlin.Unit origin=FOR_LOOP_INNER_WHILE VAR FOR_LOOP_VARIABLE name:x type:.P [val] TYPE_OP type=.P origin=IMPLICIT_NOTNULL typeOperand=.P - CALL 'public abstract fun next (): T of kotlin.collections.Iterator [operator] declared in kotlin.collections.Iterator' type=@[EnhancedNullability] .P origin=FOR_LOOP_NEXT - $this: GET_VAR 'val tmp_3: kotlin.collections.Iterator<@[EnhancedNullability] .P> [val] declared in .testForInArrayUnused' type=kotlin.collections.Iterator<@[EnhancedNullability] .P> origin=null + CALL 'public abstract fun next (): T of kotlin.collections.Iterator declared in kotlin.collections.Iterator' type=@[EnhancedNullability] .P origin=FOR_LOOP_NEXT + $this: GET_VAR 'val tmp_3: kotlin.collections.Iterator<@[EnhancedNullability] .P> declared in .testForInArrayUnused' type=kotlin.collections.Iterator<@[EnhancedNullability] .P> origin=null BLOCK type=kotlin.Unit origin=null FUN name:testForInListUse visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY BLOCK type=kotlin.Unit origin=FOR_LOOP VAR FOR_LOOP_ITERATOR name:tmp_4 type:kotlin.collections.MutableIterator<@[EnhancedNullability] .P> [val] - CALL 'public abstract fun iterator (): kotlin.collections.MutableIterator [fake_override,operator] declared in kotlin.collections.MutableList' type=kotlin.collections.MutableIterator<@[EnhancedNullability] .P> origin=FOR_LOOP_ITERATOR + CALL 'public abstract fun iterator (): kotlin.collections.MutableIterator declared in kotlin.collections.MutableList' type=kotlin.collections.MutableIterator<@[EnhancedNullability] .P> origin=FOR_LOOP_ITERATOR $this: CALL 'public open fun listOfNotNull (): @[FlexibleNullability] @[FlexibleMutability] kotlin.collections.MutableList<@[EnhancedNullability] .P>? declared in .J' type=@[FlexibleNullability] @[FlexibleMutability] kotlin.collections.MutableList<@[EnhancedNullability] .P>? origin=null WHILE label=null origin=FOR_LOOP_INNER_WHILE - condition: CALL 'public abstract fun hasNext (): kotlin.Boolean [fake_override,operator] declared in kotlin.collections.MutableIterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT - $this: GET_VAR 'val tmp_4: kotlin.collections.MutableIterator<@[EnhancedNullability] .P> [val] declared in .testForInListUse' type=kotlin.collections.MutableIterator<@[EnhancedNullability] .P> origin=null + condition: CALL 'public abstract fun hasNext (): kotlin.Boolean declared in kotlin.collections.MutableIterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT + $this: GET_VAR 'val tmp_4: kotlin.collections.MutableIterator<@[EnhancedNullability] .P> declared in .testForInListUse' type=kotlin.collections.MutableIterator<@[EnhancedNullability] .P> origin=null body: BLOCK type=kotlin.Unit origin=FOR_LOOP_INNER_WHILE VAR FOR_LOOP_VARIABLE name:x type:.P [val] TYPE_OP type=.P origin=IMPLICIT_NOTNULL typeOperand=.P - CALL 'public abstract fun next (): T of kotlin.collections.MutableIterator [fake_override,operator] declared in kotlin.collections.MutableIterator' type=@[EnhancedNullability] .P origin=FOR_LOOP_NEXT - $this: GET_VAR 'val tmp_4: kotlin.collections.MutableIterator<@[EnhancedNullability] .P> [val] declared in .testForInListUse' type=kotlin.collections.MutableIterator<@[EnhancedNullability] .P> origin=null + CALL 'public abstract fun next (): T of kotlin.collections.MutableIterator declared in kotlin.collections.MutableIterator' type=@[EnhancedNullability] .P origin=FOR_LOOP_NEXT + $this: GET_VAR 'val tmp_4: kotlin.collections.MutableIterator<@[EnhancedNullability] .P> declared in .testForInListUse' type=kotlin.collections.MutableIterator<@[EnhancedNullability] .P> origin=null BLOCK type=kotlin.Unit origin=null CALL 'public final fun use (s: .P): kotlin.Unit declared in ' type=kotlin.Unit origin=null - s: GET_VAR 'val x: .P [val] declared in .testForInListUse' type=.P origin=null + s: GET_VAR 'val x: .P declared in .testForInListUse' type=.P origin=null CALL 'public open fun use (s: @[EnhancedNullability] .P): kotlin.Unit declared in .J' type=kotlin.Unit origin=null - s: GET_VAR 'val x: .P [val] declared in .testForInListUse' type=.P origin=null + s: GET_VAR 'val x: .P declared in .testForInListUse' type=.P origin=null FUN name:testForInArrayUse visibility:public modality:FINAL <> (j:.J) returnType:kotlin.Unit VALUE_PARAMETER name:j index:0 type:.J BLOCK_BODY BLOCK type=kotlin.Unit origin=FOR_LOOP VAR FOR_LOOP_ITERATOR name:tmp_5 type:kotlin.collections.Iterator<@[EnhancedNullability] .P> [val] - CALL 'public final fun iterator (): kotlin.collections.Iterator [operator] declared in kotlin.Array' type=kotlin.collections.Iterator<@[EnhancedNullability] .P> origin=null + CALL 'public final fun iterator (): kotlin.collections.Iterator declared in kotlin.Array' type=kotlin.collections.Iterator<@[EnhancedNullability] .P> origin=null $this: CALL 'public open fun arrayOfNotNull (): @[EnhancedNullability] kotlin.Array.P> declared in .J' type=@[EnhancedNullability] kotlin.Array.P> origin=null $this: GET_VAR 'j: .J declared in .testForInArrayUse' type=.J origin=null WHILE label=null origin=FOR_LOOP_INNER_WHILE - condition: CALL 'public abstract fun hasNext (): kotlin.Boolean [operator] declared in kotlin.collections.Iterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT - $this: GET_VAR 'val tmp_5: kotlin.collections.Iterator<@[EnhancedNullability] .P> [val] declared in .testForInArrayUse' type=kotlin.collections.Iterator<@[EnhancedNullability] .P> origin=null + condition: CALL 'public abstract fun hasNext (): kotlin.Boolean declared in kotlin.collections.Iterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT + $this: GET_VAR 'val tmp_5: kotlin.collections.Iterator<@[EnhancedNullability] .P> declared in .testForInArrayUse' type=kotlin.collections.Iterator<@[EnhancedNullability] .P> origin=null body: BLOCK type=kotlin.Unit origin=FOR_LOOP_INNER_WHILE VAR FOR_LOOP_VARIABLE name:x type:.P [val] TYPE_OP type=.P origin=IMPLICIT_NOTNULL typeOperand=.P - CALL 'public abstract fun next (): T of kotlin.collections.Iterator [operator] declared in kotlin.collections.Iterator' type=@[EnhancedNullability] .P origin=FOR_LOOP_NEXT - $this: GET_VAR 'val tmp_5: kotlin.collections.Iterator<@[EnhancedNullability] .P> [val] declared in .testForInArrayUse' type=kotlin.collections.Iterator<@[EnhancedNullability] .P> origin=null + CALL 'public abstract fun next (): T of kotlin.collections.Iterator declared in kotlin.collections.Iterator' type=@[EnhancedNullability] .P origin=FOR_LOOP_NEXT + $this: GET_VAR 'val tmp_5: kotlin.collections.Iterator<@[EnhancedNullability] .P> declared in .testForInArrayUse' type=kotlin.collections.Iterator<@[EnhancedNullability] .P> origin=null BLOCK type=kotlin.Unit origin=null CALL 'public final fun use (s: .P): kotlin.Unit declared in ' type=kotlin.Unit origin=null - s: GET_VAR 'val x: .P [val] declared in .testForInArrayUse' type=.P origin=null + s: GET_VAR 'val x: .P declared in .testForInArrayUse' type=.P origin=null CALL 'public open fun use (s: @[EnhancedNullability] .P): kotlin.Unit declared in .J' type=kotlin.Unit origin=null - s: GET_VAR 'val x: .P [val] declared in .testForInArrayUse' type=.P origin=null + s: GET_VAR 'val x: .P declared in .testForInArrayUse' type=.P origin=null CLASS INTERFACE name:K modality:ABSTRACT visibility:public superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.K FUN name:arrayOfNotNull visibility:public modality:ABSTRACT <> ($this:.K) returnType:kotlin.Array<.P> $this: VALUE_PARAMETER name: type:.K 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -131,7 +131,7 @@ FILE fqName: fileName:/enhancedNullabilityInForLoop.kt VALUE_PARAMETER name:x index:0 type:kotlin.Int VALUE_PARAMETER name:y index:1 type:kotlin.Int BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:P modality:FINAL visibility:public [data] superTypes:[kotlin.Any]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private [final] @@ -158,13 +158,13 @@ FILE fqName: fileName:/enhancedNullabilityInForLoop.kt FUN GENERATED_DATA_CLASS_MEMBER name:component1 visibility:public modality:FINAL <> ($this:.P) returnType:kotlin.Int [operator] $this: VALUE_PARAMETER name: type:.P BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Int [operator] declared in .P' + RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Int declared in .P' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null receiver: GET_VAR ': .P declared in .P.component1' type=.P origin=null FUN GENERATED_DATA_CLASS_MEMBER name:component2 visibility:public modality:FINAL <> ($this:.P) returnType:kotlin.Int [operator] $this: VALUE_PARAMETER name: type:.P BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component2 (): kotlin.Int [operator] declared in .P' + RETURN type=kotlin.Nothing from='public final fun component2 (): kotlin.Int declared in .P' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:y type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null receiver: GET_VAR ': .P declared in .P.component2' type=.P origin=null FUN GENERATED_DATA_CLASS_MEMBER name:copy visibility:public modality:FINAL <> ($this:.P, x:kotlin.Int, y:kotlin.Int) returnType:.P @@ -179,12 +179,12 @@ FILE fqName: fileName:/enhancedNullabilityInForLoop.kt receiver: GET_VAR ': .P declared in .P.copy' type=.P origin=null BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun copy (x: kotlin.Int, y: kotlin.Int): .P declared in .P' - CONSTRUCTOR_CALL 'public constructor (x: kotlin.Int, y: kotlin.Int) [primary] declared in .P' type=.P origin=null + CONSTRUCTOR_CALL 'public constructor (x: kotlin.Int, y: kotlin.Int) declared in .P' type=.P origin=null x: GET_VAR 'x: kotlin.Int declared in .P.copy' type=kotlin.Int origin=null y: GET_VAR 'y: kotlin.Int declared in .P.copy' type=kotlin.Int origin=null FUN GENERATED_DATA_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:.P, other:kotlin.Any?) returnType:kotlin.Boolean [operator] overridden: - public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any $this: VALUE_PARAMETER name: type:.P VALUE_PARAMETER name:other index:0 type:kotlin.Any? BLOCK_BODY @@ -193,38 +193,38 @@ FILE fqName: fileName:/enhancedNullabilityInForLoop.kt 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 ': .P declared in .P.equals' type=.P origin=null arg1: GET_VAR 'other: kotlin.Any? declared in .P.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .P' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .P' CONST Boolean type=kotlin.Boolean value=true WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=.P GET_VAR 'other: kotlin.Any? declared in .P.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .P' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .P' CONST Boolean type=kotlin.Boolean value=false VAR IR_TEMPORARY_VARIABLE name:tmp_6 type:.P [val] TYPE_OP type=.P origin=CAST typeOperand=.P GET_VAR 'other: kotlin.Any? declared in .P.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 + if: CALL 'public final fun not (): kotlin.Boolean 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:x type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null receiver: GET_VAR ': .P declared in .P.equals' type=.P origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null - receiver: GET_VAR 'val tmp_6: .P [val] declared in .P.equals' type=.P origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .P' + receiver: GET_VAR 'val tmp_6: .P declared in .P.equals' type=.P origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .P' CONST Boolean type=kotlin.Boolean value=false 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 + if: CALL 'public final fun not (): kotlin.Boolean 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:y type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null receiver: GET_VAR ': .P declared in .P.equals' type=.P origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:y type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null - receiver: GET_VAR 'val tmp_6: .P [val] declared in .P.equals' type=.P origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .P' + receiver: GET_VAR 'val tmp_6: .P declared in .P.equals' type=.P origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .P' CONST Boolean type=kotlin.Boolean value=false - RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .P' + RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .P' CONST Boolean type=kotlin.Boolean value=true FUN GENERATED_DATA_CLASS_MEMBER name:hashCode visibility:public modality:OPEN <> ($this:.P) returnType:kotlin.Int overridden: @@ -232,19 +232,19 @@ FILE fqName: fileName:/enhancedNullabilityInForLoop.kt $this: VALUE_PARAMETER name: type:.P BLOCK_BODY VAR name:result type:kotlin.Int [var] - CALL 'public open fun hashCode (): kotlin.Int [fake_override] declared in kotlin.Int' type=kotlin.Int origin=null + CALL 'public open fun hashCode (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null receiver: GET_VAR ': .P declared in .P.hashCode' type=.P origin=null - SET_VAR 'var result: kotlin.Int [var] declared in .P.hashCode' type=kotlin.Unit origin=EQ - CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: CALL 'public final fun times (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'var result: kotlin.Int [var] declared in .P.hashCode' type=kotlin.Int origin=null + SET_VAR 'var result: kotlin.Int declared in .P.hashCode' type=kotlin.Unit origin=EQ + CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: CALL 'public final fun times (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'var result: kotlin.Int declared in .P.hashCode' type=kotlin.Int origin=null other: CONST Int type=kotlin.Int value=31 - other: CALL 'public open fun hashCode (): kotlin.Int [fake_override] declared in kotlin.Int' type=kotlin.Int origin=null + other: CALL 'public open fun hashCode (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:y type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null receiver: GET_VAR ': .P declared in .P.hashCode' type=.P origin=null RETURN type=kotlin.Nothing from='public open fun hashCode (): kotlin.Int declared in .P' - GET_VAR 'var result: kotlin.Int [var] declared in .P.hashCode' type=kotlin.Int origin=null + GET_VAR 'var result: kotlin.Int declared in .P.hashCode' type=kotlin.Int origin=null FUN GENERATED_DATA_CLASS_MEMBER name:toString visibility:public modality:OPEN <> ($this:.P) returnType:kotlin.String overridden: public open fun toString (): kotlin.String declared in kotlin.Any diff --git a/compiler/testData/ir/irText/types/nullChecks/enhancedNullabilityInForLoop.ir.txt b/compiler/testData/ir/irText/types/nullChecks/enhancedNullabilityInForLoop.ir.txt index 64eb25ebfcf..dff9a55d5b1 100644 --- a/compiler/testData/ir/irText/types/nullChecks/enhancedNullabilityInForLoop.ir.txt +++ b/compiler/testData/ir/irText/types/nullChecks/enhancedNullabilityInForLoop.ir.txt @@ -6,126 +6,126 @@ FILE fqName: fileName:/enhancedNullabilityInForLoop.kt BLOCK_BODY BLOCK type=kotlin.Unit origin=FOR_LOOP VAR FOR_LOOP_ITERATOR name:tmp_0 type:kotlin.collections.MutableIterator<@[NotNull(value = )] @[EnhancedNullability] .P> [val] - CALL 'public abstract fun iterator (): kotlin.collections.MutableIterator [fake_override,operator] declared in kotlin.collections.MutableList' type=kotlin.collections.MutableIterator<@[NotNull(value = )] @[EnhancedNullability] .P> origin=FOR_LOOP_ITERATOR + CALL 'public abstract fun iterator (): kotlin.collections.MutableIterator declared in kotlin.collections.MutableList' type=kotlin.collections.MutableIterator<@[NotNull(value = )] @[EnhancedNullability] .P> origin=FOR_LOOP_ITERATOR $this: TYPE_OP type=kotlin.collections.MutableList<*> origin=IMPLICIT_CAST typeOperand=kotlin.collections.MutableList<*> TYPE_OP type=kotlin.collections.List<@[NotNull(value = )] @[EnhancedNullability] .P> origin=IMPLICIT_NOTNULL typeOperand=kotlin.collections.List<@[NotNull(value = )] @[EnhancedNullability] .P> CALL 'public open fun listOfNotNull (): @[FlexibleNullability] @[FlexibleMutability] kotlin.collections.MutableList<@[NotNull(value = )] @[EnhancedNullability] .P>? declared in .J' type=@[FlexibleNullability] @[FlexibleMutability] kotlin.collections.MutableList<@[NotNull(value = )] @[EnhancedNullability] .P>? origin=null WHILE label=null origin=FOR_LOOP_INNER_WHILE - condition: CALL 'public abstract fun hasNext (): kotlin.Boolean [fake_override,operator] declared in kotlin.collections.MutableIterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT - $this: GET_VAR 'val tmp_0: kotlin.collections.MutableIterator<@[NotNull(value = )] @[EnhancedNullability] .P> [val] declared in .testForInListUnused' type=kotlin.collections.MutableIterator<@[NotNull(value = )] @[EnhancedNullability] .P> origin=null + condition: CALL 'public abstract fun hasNext (): kotlin.Boolean declared in kotlin.collections.MutableIterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT + $this: GET_VAR 'val tmp_0: kotlin.collections.MutableIterator<@[NotNull(value = )] @[EnhancedNullability] .P> declared in .testForInListUnused' type=kotlin.collections.MutableIterator<@[NotNull(value = )] @[EnhancedNullability] .P> origin=null body: BLOCK type=kotlin.Unit origin=FOR_LOOP_INNER_WHILE VAR FOR_LOOP_VARIABLE name:x type:@[NotNull(value = )] @[EnhancedNullability] .P [val] - CALL 'public abstract fun next (): T of kotlin.collections.MutableIterator [fake_override,operator] declared in kotlin.collections.MutableIterator' type=@[NotNull(value = )] @[EnhancedNullability] .P origin=FOR_LOOP_NEXT - $this: GET_VAR 'val tmp_0: kotlin.collections.MutableIterator<@[NotNull(value = )] @[EnhancedNullability] .P> [val] declared in .testForInListUnused' type=kotlin.collections.MutableIterator<@[NotNull(value = )] @[EnhancedNullability] .P> origin=null + CALL 'public abstract fun next (): T of kotlin.collections.MutableIterator declared in kotlin.collections.MutableIterator' type=@[NotNull(value = )] @[EnhancedNullability] .P origin=FOR_LOOP_NEXT + $this: GET_VAR 'val tmp_0: kotlin.collections.MutableIterator<@[NotNull(value = )] @[EnhancedNullability] .P> declared in .testForInListUnused' type=kotlin.collections.MutableIterator<@[NotNull(value = )] @[EnhancedNullability] .P> origin=null BLOCK type=kotlin.Unit origin=null FUN name:testForInListDestructured visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY BLOCK type=kotlin.Unit origin=FOR_LOOP VAR FOR_LOOP_ITERATOR name:tmp_1 type:kotlin.collections.MutableIterator<@[NotNull(value = )] @[EnhancedNullability] .P> [val] - CALL 'public abstract fun iterator (): kotlin.collections.MutableIterator [fake_override,operator] declared in kotlin.collections.MutableList' type=kotlin.collections.MutableIterator<@[NotNull(value = )] @[EnhancedNullability] .P> origin=FOR_LOOP_ITERATOR + CALL 'public abstract fun iterator (): kotlin.collections.MutableIterator declared in kotlin.collections.MutableList' type=kotlin.collections.MutableIterator<@[NotNull(value = )] @[EnhancedNullability] .P> origin=FOR_LOOP_ITERATOR $this: TYPE_OP type=kotlin.collections.MutableList<*> origin=IMPLICIT_CAST typeOperand=kotlin.collections.MutableList<*> TYPE_OP type=kotlin.collections.List<@[NotNull(value = )] @[EnhancedNullability] .P> origin=IMPLICIT_NOTNULL typeOperand=kotlin.collections.List<@[NotNull(value = )] @[EnhancedNullability] .P> CALL 'public open fun listOfNotNull (): @[FlexibleNullability] @[FlexibleMutability] kotlin.collections.MutableList<@[NotNull(value = )] @[EnhancedNullability] .P>? declared in .J' type=@[FlexibleNullability] @[FlexibleMutability] kotlin.collections.MutableList<@[NotNull(value = )] @[EnhancedNullability] .P>? origin=null WHILE label=null origin=FOR_LOOP_INNER_WHILE - condition: CALL 'public abstract fun hasNext (): kotlin.Boolean [fake_override,operator] declared in kotlin.collections.MutableIterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT - $this: GET_VAR 'val tmp_1: kotlin.collections.MutableIterator<@[NotNull(value = )] @[EnhancedNullability] .P> [val] declared in .testForInListDestructured' type=kotlin.collections.MutableIterator<@[NotNull(value = )] @[EnhancedNullability] .P> origin=null + condition: CALL 'public abstract fun hasNext (): kotlin.Boolean declared in kotlin.collections.MutableIterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT + $this: GET_VAR 'val tmp_1: kotlin.collections.MutableIterator<@[NotNull(value = )] @[EnhancedNullability] .P> declared in .testForInListDestructured' type=kotlin.collections.MutableIterator<@[NotNull(value = )] @[EnhancedNullability] .P> origin=null body: BLOCK type=kotlin.Unit origin=FOR_LOOP_INNER_WHILE VAR IR_TEMPORARY_VARIABLE name:tmp_2 type:@[NotNull(value = )] @[EnhancedNullability] .P [val] - CALL 'public abstract fun next (): T of kotlin.collections.MutableIterator [fake_override,operator] declared in kotlin.collections.MutableIterator' type=@[NotNull(value = )] @[EnhancedNullability] .P origin=FOR_LOOP_NEXT - $this: GET_VAR 'val tmp_1: kotlin.collections.MutableIterator<@[NotNull(value = )] @[EnhancedNullability] .P> [val] declared in .testForInListDestructured' type=kotlin.collections.MutableIterator<@[NotNull(value = )] @[EnhancedNullability] .P> origin=null + CALL 'public abstract fun next (): T of kotlin.collections.MutableIterator declared in kotlin.collections.MutableIterator' type=@[NotNull(value = )] @[EnhancedNullability] .P origin=FOR_LOOP_NEXT + $this: GET_VAR 'val tmp_1: kotlin.collections.MutableIterator<@[NotNull(value = )] @[EnhancedNullability] .P> declared in .testForInListDestructured' type=kotlin.collections.MutableIterator<@[NotNull(value = )] @[EnhancedNullability] .P> origin=null VAR name:x type:kotlin.Int [val] - CALL 'public final fun component1 (): kotlin.Int [operator] declared in .P' type=kotlin.Int origin=COMPONENT_N(index=1) + CALL 'public final fun component1 (): kotlin.Int declared in .P' type=kotlin.Int origin=COMPONENT_N(index=1) $this: TYPE_OP type=@[NotNull(value = )] .P origin=IMPLICIT_NOTNULL typeOperand=@[NotNull(value = )] .P - GET_VAR 'val tmp_2: @[NotNull(value = )] @[EnhancedNullability] .P [val] declared in .testForInListDestructured' type=@[NotNull(value = )] @[EnhancedNullability] .P origin=null + GET_VAR 'val tmp_2: @[NotNull(value = )] @[EnhancedNullability] .P declared in .testForInListDestructured' type=@[NotNull(value = )] @[EnhancedNullability] .P origin=null VAR name:y type:kotlin.Int [val] - CALL 'public final fun component2 (): kotlin.Int [operator] declared in .P' type=kotlin.Int origin=COMPONENT_N(index=2) + CALL 'public final fun component2 (): kotlin.Int declared in .P' type=kotlin.Int origin=COMPONENT_N(index=2) $this: TYPE_OP type=@[NotNull(value = )] .P origin=IMPLICIT_NOTNULL typeOperand=@[NotNull(value = )] .P - GET_VAR 'val tmp_2: @[NotNull(value = )] @[EnhancedNullability] .P [val] declared in .testForInListDestructured' type=@[NotNull(value = )] @[EnhancedNullability] .P origin=null + GET_VAR 'val tmp_2: @[NotNull(value = )] @[EnhancedNullability] .P declared in .testForInListDestructured' type=@[NotNull(value = )] @[EnhancedNullability] .P origin=null BLOCK type=kotlin.Unit origin=null FUN name:testDesugaredForInList visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY VAR name:iterator type:kotlin.collections.MutableIterator<@[NotNull(value = )] @[EnhancedNullability] .P> [val] - CALL 'public abstract fun iterator (): kotlin.collections.MutableIterator [fake_override,operator] declared in kotlin.collections.MutableList' type=kotlin.collections.MutableIterator<@[NotNull(value = )] @[EnhancedNullability] .P> origin=null + CALL 'public abstract fun iterator (): kotlin.collections.MutableIterator declared in kotlin.collections.MutableList' type=kotlin.collections.MutableIterator<@[NotNull(value = )] @[EnhancedNullability] .P> origin=null $this: TYPE_OP type=kotlin.collections.MutableList<*> origin=IMPLICIT_CAST typeOperand=kotlin.collections.MutableList<*> TYPE_OP type=kotlin.collections.List<@[NotNull(value = )] @[EnhancedNullability] .P> origin=IMPLICIT_NOTNULL typeOperand=kotlin.collections.List<@[NotNull(value = )] @[EnhancedNullability] .P> CALL 'public open fun listOfNotNull (): @[FlexibleNullability] @[FlexibleMutability] kotlin.collections.MutableList<@[NotNull(value = )] @[EnhancedNullability] .P>? declared in .J' type=@[FlexibleNullability] @[FlexibleMutability] kotlin.collections.MutableList<@[NotNull(value = )] @[EnhancedNullability] .P>? origin=null WHILE label=null origin=WHILE_LOOP - condition: CALL 'public abstract fun hasNext (): kotlin.Boolean [fake_override,operator] declared in kotlin.collections.MutableIterator' type=kotlin.Boolean origin=null - $this: GET_VAR 'val iterator: kotlin.collections.MutableIterator<@[NotNull(value = )] @[EnhancedNullability] .P> [val] declared in .testDesugaredForInList' type=kotlin.collections.MutableIterator<@[NotNull(value = )] @[EnhancedNullability] .P> origin=null + condition: CALL 'public abstract fun hasNext (): kotlin.Boolean declared in kotlin.collections.MutableIterator' type=kotlin.Boolean origin=null + $this: GET_VAR 'val iterator: kotlin.collections.MutableIterator<@[NotNull(value = )] @[EnhancedNullability] .P> declared in .testDesugaredForInList' type=kotlin.collections.MutableIterator<@[NotNull(value = )] @[EnhancedNullability] .P> origin=null body: BLOCK type=kotlin.Unit origin=null VAR name:x type:@[NotNull(value = )] .P [val] TYPE_OP type=@[NotNull(value = )] .P origin=IMPLICIT_NOTNULL typeOperand=@[NotNull(value = )] .P - CALL 'public abstract fun next (): T of kotlin.collections.MutableIterator [fake_override,operator] declared in kotlin.collections.MutableIterator' type=@[NotNull(value = )] @[EnhancedNullability] .P origin=null - $this: GET_VAR 'val iterator: kotlin.collections.MutableIterator<@[NotNull(value = )] @[EnhancedNullability] .P> [val] declared in .testDesugaredForInList' type=kotlin.collections.MutableIterator<@[NotNull(value = )] @[EnhancedNullability] .P> origin=null + CALL 'public abstract fun next (): T of kotlin.collections.MutableIterator declared in kotlin.collections.MutableIterator' type=@[NotNull(value = )] @[EnhancedNullability] .P origin=null + $this: GET_VAR 'val iterator: kotlin.collections.MutableIterator<@[NotNull(value = )] @[EnhancedNullability] .P> declared in .testDesugaredForInList' type=kotlin.collections.MutableIterator<@[NotNull(value = )] @[EnhancedNullability] .P> origin=null FUN name:testForInArrayUnused visibility:public modality:FINAL <> (j:.J) returnType:kotlin.Unit VALUE_PARAMETER name:j index:0 type:.J BLOCK_BODY BLOCK type=kotlin.Unit origin=FOR_LOOP VAR FOR_LOOP_ITERATOR name:tmp_3 type:kotlin.collections.Iterator<@[EnhancedNullability] .P> [val] - CALL 'public final fun iterator (): kotlin.collections.Iterator [operator] declared in kotlin.Array' type=kotlin.collections.Iterator<@[EnhancedNullability] .P> origin=FOR_LOOP_ITERATOR + CALL 'public final fun iterator (): kotlin.collections.Iterator declared in kotlin.Array' type=kotlin.collections.Iterator<@[EnhancedNullability] .P> origin=FOR_LOOP_ITERATOR $this: TYPE_OP type=kotlin.Array<@[EnhancedNullability] .P> origin=IMPLICIT_CAST typeOperand=kotlin.Array<@[EnhancedNullability] .P> TYPE_OP type=kotlin.Array.P> origin=IMPLICIT_NOTNULL typeOperand=kotlin.Array.P> CALL 'public open fun arrayOfNotNull (): @[EnhancedNullability] kotlin.Array.P> declared in .J' type=@[EnhancedNullability] kotlin.Array.P> origin=null $this: GET_VAR 'j: .J declared in .testForInArrayUnused' type=.J origin=null WHILE label=null origin=FOR_LOOP_INNER_WHILE - condition: CALL 'public abstract fun hasNext (): kotlin.Boolean [operator] declared in kotlin.collections.Iterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT - $this: GET_VAR 'val tmp_3: kotlin.collections.Iterator<@[EnhancedNullability] .P> [val] declared in .testForInArrayUnused' type=kotlin.collections.Iterator<@[EnhancedNullability] .P> origin=null + condition: CALL 'public abstract fun hasNext (): kotlin.Boolean declared in kotlin.collections.Iterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT + $this: GET_VAR 'val tmp_3: kotlin.collections.Iterator<@[EnhancedNullability] .P> declared in .testForInArrayUnused' type=kotlin.collections.Iterator<@[EnhancedNullability] .P> origin=null body: BLOCK type=kotlin.Unit origin=FOR_LOOP_INNER_WHILE VAR FOR_LOOP_VARIABLE name:x type:@[EnhancedNullability] .P [val] - CALL 'public abstract fun next (): T of kotlin.collections.Iterator [operator] declared in kotlin.collections.Iterator' type=@[EnhancedNullability] .P origin=FOR_LOOP_NEXT - $this: GET_VAR 'val tmp_3: kotlin.collections.Iterator<@[EnhancedNullability] .P> [val] declared in .testForInArrayUnused' type=kotlin.collections.Iterator<@[EnhancedNullability] .P> origin=null + CALL 'public abstract fun next (): T of kotlin.collections.Iterator declared in kotlin.collections.Iterator' type=@[EnhancedNullability] .P origin=FOR_LOOP_NEXT + $this: GET_VAR 'val tmp_3: kotlin.collections.Iterator<@[EnhancedNullability] .P> declared in .testForInArrayUnused' type=kotlin.collections.Iterator<@[EnhancedNullability] .P> origin=null BLOCK type=kotlin.Unit origin=null FUN name:testForInListUse visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY BLOCK type=kotlin.Unit origin=FOR_LOOP VAR FOR_LOOP_ITERATOR name:tmp_4 type:kotlin.collections.MutableIterator<@[NotNull(value = )] @[EnhancedNullability] .P> [val] - CALL 'public abstract fun iterator (): kotlin.collections.MutableIterator [fake_override,operator] declared in kotlin.collections.MutableList' type=kotlin.collections.MutableIterator<@[NotNull(value = )] @[EnhancedNullability] .P> origin=FOR_LOOP_ITERATOR + CALL 'public abstract fun iterator (): kotlin.collections.MutableIterator declared in kotlin.collections.MutableList' type=kotlin.collections.MutableIterator<@[NotNull(value = )] @[EnhancedNullability] .P> origin=FOR_LOOP_ITERATOR $this: TYPE_OP type=kotlin.collections.MutableList<*> origin=IMPLICIT_CAST typeOperand=kotlin.collections.MutableList<*> TYPE_OP type=kotlin.collections.List<@[NotNull(value = )] @[EnhancedNullability] .P> origin=IMPLICIT_NOTNULL typeOperand=kotlin.collections.List<@[NotNull(value = )] @[EnhancedNullability] .P> CALL 'public open fun listOfNotNull (): @[FlexibleNullability] @[FlexibleMutability] kotlin.collections.MutableList<@[NotNull(value = )] @[EnhancedNullability] .P>? declared in .J' type=@[FlexibleNullability] @[FlexibleMutability] kotlin.collections.MutableList<@[NotNull(value = )] @[EnhancedNullability] .P>? origin=null WHILE label=null origin=FOR_LOOP_INNER_WHILE - condition: CALL 'public abstract fun hasNext (): kotlin.Boolean [fake_override,operator] declared in kotlin.collections.MutableIterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT - $this: GET_VAR 'val tmp_4: kotlin.collections.MutableIterator<@[NotNull(value = )] @[EnhancedNullability] .P> [val] declared in .testForInListUse' type=kotlin.collections.MutableIterator<@[NotNull(value = )] @[EnhancedNullability] .P> origin=null + condition: CALL 'public abstract fun hasNext (): kotlin.Boolean declared in kotlin.collections.MutableIterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT + $this: GET_VAR 'val tmp_4: kotlin.collections.MutableIterator<@[NotNull(value = )] @[EnhancedNullability] .P> declared in .testForInListUse' type=kotlin.collections.MutableIterator<@[NotNull(value = )] @[EnhancedNullability] .P> origin=null body: BLOCK type=kotlin.Unit origin=FOR_LOOP_INNER_WHILE VAR FOR_LOOP_VARIABLE name:x type:@[NotNull(value = )] @[EnhancedNullability] .P [val] - CALL 'public abstract fun next (): T of kotlin.collections.MutableIterator [fake_override,operator] declared in kotlin.collections.MutableIterator' type=@[NotNull(value = )] @[EnhancedNullability] .P origin=FOR_LOOP_NEXT - $this: GET_VAR 'val tmp_4: kotlin.collections.MutableIterator<@[NotNull(value = )] @[EnhancedNullability] .P> [val] declared in .testForInListUse' type=kotlin.collections.MutableIterator<@[NotNull(value = )] @[EnhancedNullability] .P> origin=null + CALL 'public abstract fun next (): T of kotlin.collections.MutableIterator declared in kotlin.collections.MutableIterator' type=@[NotNull(value = )] @[EnhancedNullability] .P origin=FOR_LOOP_NEXT + $this: GET_VAR 'val tmp_4: kotlin.collections.MutableIterator<@[NotNull(value = )] @[EnhancedNullability] .P> declared in .testForInListUse' type=kotlin.collections.MutableIterator<@[NotNull(value = )] @[EnhancedNullability] .P> origin=null BLOCK type=kotlin.Unit origin=null CALL 'public final fun use (s: .P): kotlin.Unit declared in ' type=kotlin.Unit origin=null s: TYPE_OP type=@[NotNull(value = )] .P origin=IMPLICIT_NOTNULL typeOperand=@[NotNull(value = )] .P - GET_VAR 'val x: @[NotNull(value = )] @[EnhancedNullability] .P [val] declared in .testForInListUse' type=@[NotNull(value = )] @[EnhancedNullability] .P origin=null + GET_VAR 'val x: @[NotNull(value = )] @[EnhancedNullability] .P declared in .testForInListUse' type=@[NotNull(value = )] @[EnhancedNullability] .P origin=null CALL 'public open fun use (s: @[EnhancedNullability] .P): kotlin.Unit declared in .J' type=kotlin.Unit origin=null - s: GET_VAR 'val x: @[NotNull(value = )] @[EnhancedNullability] .P [val] declared in .testForInListUse' type=@[NotNull(value = )] @[EnhancedNullability] .P origin=null + s: GET_VAR 'val x: @[NotNull(value = )] @[EnhancedNullability] .P declared in .testForInListUse' type=@[NotNull(value = )] @[EnhancedNullability] .P origin=null FUN name:testForInArrayUse visibility:public modality:FINAL <> (j:.J) returnType:kotlin.Unit VALUE_PARAMETER name:j index:0 type:.J BLOCK_BODY BLOCK type=kotlin.Unit origin=FOR_LOOP VAR FOR_LOOP_ITERATOR name:tmp_5 type:kotlin.collections.Iterator<@[EnhancedNullability] .P> [val] - CALL 'public final fun iterator (): kotlin.collections.Iterator [operator] declared in kotlin.Array' type=kotlin.collections.Iterator<@[EnhancedNullability] .P> origin=FOR_LOOP_ITERATOR + CALL 'public final fun iterator (): kotlin.collections.Iterator declared in kotlin.Array' type=kotlin.collections.Iterator<@[EnhancedNullability] .P> origin=FOR_LOOP_ITERATOR $this: TYPE_OP type=kotlin.Array<@[EnhancedNullability] .P> origin=IMPLICIT_CAST typeOperand=kotlin.Array<@[EnhancedNullability] .P> TYPE_OP type=kotlin.Array.P> origin=IMPLICIT_NOTNULL typeOperand=kotlin.Array.P> CALL 'public open fun arrayOfNotNull (): @[EnhancedNullability] kotlin.Array.P> declared in .J' type=@[EnhancedNullability] kotlin.Array.P> origin=null $this: GET_VAR 'j: .J declared in .testForInArrayUse' type=.J origin=null WHILE label=null origin=FOR_LOOP_INNER_WHILE - condition: CALL 'public abstract fun hasNext (): kotlin.Boolean [operator] declared in kotlin.collections.Iterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT - $this: GET_VAR 'val tmp_5: kotlin.collections.Iterator<@[EnhancedNullability] .P> [val] declared in .testForInArrayUse' type=kotlin.collections.Iterator<@[EnhancedNullability] .P> origin=null + condition: CALL 'public abstract fun hasNext (): kotlin.Boolean declared in kotlin.collections.Iterator' type=kotlin.Boolean origin=FOR_LOOP_HAS_NEXT + $this: GET_VAR 'val tmp_5: kotlin.collections.Iterator<@[EnhancedNullability] .P> declared in .testForInArrayUse' type=kotlin.collections.Iterator<@[EnhancedNullability] .P> origin=null body: BLOCK type=kotlin.Unit origin=FOR_LOOP_INNER_WHILE VAR FOR_LOOP_VARIABLE name:x type:@[EnhancedNullability] .P [val] - CALL 'public abstract fun next (): T of kotlin.collections.Iterator [operator] declared in kotlin.collections.Iterator' type=@[EnhancedNullability] .P origin=FOR_LOOP_NEXT - $this: GET_VAR 'val tmp_5: kotlin.collections.Iterator<@[EnhancedNullability] .P> [val] declared in .testForInArrayUse' type=kotlin.collections.Iterator<@[EnhancedNullability] .P> origin=null + CALL 'public abstract fun next (): T of kotlin.collections.Iterator declared in kotlin.collections.Iterator' type=@[EnhancedNullability] .P origin=FOR_LOOP_NEXT + $this: GET_VAR 'val tmp_5: kotlin.collections.Iterator<@[EnhancedNullability] .P> declared in .testForInArrayUse' type=kotlin.collections.Iterator<@[EnhancedNullability] .P> origin=null BLOCK type=kotlin.Unit origin=null CALL 'public final fun use (s: .P): kotlin.Unit declared in ' type=kotlin.Unit origin=null s: TYPE_OP type=.P origin=IMPLICIT_NOTNULL typeOperand=.P - GET_VAR 'val x: @[EnhancedNullability] .P [val] declared in .testForInArrayUse' type=@[EnhancedNullability] .P origin=null + GET_VAR 'val x: @[EnhancedNullability] .P declared in .testForInArrayUse' type=@[EnhancedNullability] .P origin=null CALL 'public open fun use (s: @[EnhancedNullability] .P): kotlin.Unit declared in .J' type=kotlin.Unit origin=null - s: GET_VAR 'val x: @[EnhancedNullability] .P [val] declared in .testForInArrayUse' type=@[EnhancedNullability] .P origin=null + s: GET_VAR 'val x: @[EnhancedNullability] .P declared in .testForInArrayUse' type=@[EnhancedNullability] .P origin=null CLASS INTERFACE name:K modality:ABSTRACT visibility:public superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.K FUN name:arrayOfNotNull visibility:public modality:ABSTRACT <> ($this:.K) returnType:kotlin.Array<.P> $this: VALUE_PARAMETER name: type:.K 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -142,7 +142,7 @@ FILE fqName: fileName:/enhancedNullabilityInForLoop.kt VALUE_PARAMETER name:x index:0 type:kotlin.Int VALUE_PARAMETER name:y index:1 type:kotlin.Int BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:P modality:FINAL visibility:public [data] superTypes:[kotlin.Any]' PROPERTY name:x visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private [final] @@ -169,13 +169,13 @@ FILE fqName: fileName:/enhancedNullabilityInForLoop.kt FUN GENERATED_DATA_CLASS_MEMBER name:component1 visibility:public modality:FINAL <> ($this:.P) returnType:kotlin.Int [operator] $this: VALUE_PARAMETER name: type:.P BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Int [operator] declared in .P' + RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Int declared in .P' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null receiver: GET_VAR ': .P declared in .P.component1' type=.P origin=null FUN GENERATED_DATA_CLASS_MEMBER name:component2 visibility:public modality:FINAL <> ($this:.P) returnType:kotlin.Int [operator] $this: VALUE_PARAMETER name: type:.P BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component2 (): kotlin.Int [operator] declared in .P' + RETURN type=kotlin.Nothing from='public final fun component2 (): kotlin.Int declared in .P' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:y type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null receiver: GET_VAR ': .P declared in .P.component2' type=.P origin=null FUN GENERATED_DATA_CLASS_MEMBER name:copy visibility:public modality:FINAL <> ($this:.P, x:kotlin.Int, y:kotlin.Int) returnType:.P @@ -190,7 +190,7 @@ FILE fqName: fileName:/enhancedNullabilityInForLoop.kt receiver: GET_VAR ': .P declared in .P.copy' type=.P origin=null BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun copy (x: kotlin.Int, y: kotlin.Int): .P declared in .P' - CONSTRUCTOR_CALL 'public constructor (x: kotlin.Int, y: kotlin.Int) [primary] declared in .P' type=.P origin=null + CONSTRUCTOR_CALL 'public constructor (x: kotlin.Int, y: kotlin.Int) declared in .P' type=.P origin=null x: GET_VAR 'x: kotlin.Int declared in .P.copy' type=kotlin.Int origin=null y: GET_VAR 'y: kotlin.Int declared in .P.copy' type=kotlin.Int origin=null FUN GENERATED_DATA_CLASS_MEMBER name:toString visibility:public modality:OPEN <> ($this:.P) returnType:kotlin.String @@ -215,22 +215,22 @@ FILE fqName: fileName:/enhancedNullabilityInForLoop.kt $this: VALUE_PARAMETER name: type:.P BLOCK_BODY VAR name:result type:kotlin.Int [var] - CALL 'public open fun hashCode (): kotlin.Int [fake_override] declared in kotlin.Int' type=kotlin.Int origin=null + CALL 'public open fun hashCode (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null receiver: GET_VAR ': .P declared in .P.hashCode' type=.P origin=null - SET_VAR 'var result: kotlin.Int [var] declared in .P.hashCode' type=kotlin.Unit origin=EQ - CALL 'public final fun plus (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: CALL 'public final fun times (other: kotlin.Int): kotlin.Int [operator] declared in kotlin.Int' type=kotlin.Int origin=null - $this: GET_VAR 'var result: kotlin.Int [var] declared in .P.hashCode' type=kotlin.Int origin=null + SET_VAR 'var result: kotlin.Int declared in .P.hashCode' type=kotlin.Unit origin=EQ + CALL 'public final fun plus (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: CALL 'public final fun times (other: kotlin.Int): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null + $this: GET_VAR 'var result: kotlin.Int declared in .P.hashCode' type=kotlin.Int origin=null other: CONST Int type=kotlin.Int value=31 - other: CALL 'public open fun hashCode (): kotlin.Int [fake_override] declared in kotlin.Int' type=kotlin.Int origin=null + other: CALL 'public open fun hashCode (): kotlin.Int declared in kotlin.Int' type=kotlin.Int origin=null $this: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:y type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null receiver: GET_VAR ': .P declared in .P.hashCode' type=.P origin=null RETURN type=kotlin.Nothing from='public open fun hashCode (): kotlin.Int declared in .P' - GET_VAR 'var result: kotlin.Int [var] declared in .P.hashCode' type=kotlin.Int origin=null + GET_VAR 'var result: kotlin.Int declared in .P.hashCode' type=kotlin.Int origin=null FUN GENERATED_DATA_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:.P, other:kotlin.Any?) returnType:kotlin.Boolean [operator] overridden: - public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any $this: VALUE_PARAMETER name: type:.P VALUE_PARAMETER name:other index:0 type:kotlin.Any? BLOCK_BODY @@ -239,36 +239,36 @@ FILE fqName: fileName:/enhancedNullabilityInForLoop.kt 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 ': .P declared in .P.equals' type=.P origin=null arg1: GET_VAR 'other: kotlin.Any? declared in .P.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .P' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .P' CONST Boolean type=kotlin.Boolean value=true WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=.P GET_VAR 'other: kotlin.Any? declared in .P.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .P' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .P' CONST Boolean type=kotlin.Boolean value=false VAR IR_TEMPORARY_VARIABLE name:tmp_6 type:.P [val] TYPE_OP type=.P origin=CAST typeOperand=.P GET_VAR 'other: kotlin.Any? declared in .P.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 + if: CALL 'public final fun not (): kotlin.Boolean 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:x type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null receiver: GET_VAR ': .P declared in .P.equals' type=.P origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:x type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null - receiver: GET_VAR 'val tmp_6: .P [val] declared in .P.equals' type=.P origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .P' + receiver: GET_VAR 'val tmp_6: .P declared in .P.equals' type=.P origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .P' CONST Boolean type=kotlin.Boolean value=false 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 + if: CALL 'public final fun not (): kotlin.Boolean 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:y type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null receiver: GET_VAR ': .P declared in .P.equals' type=.P origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:y type:kotlin.Int visibility:private [final]' type=kotlin.Int origin=null - receiver: GET_VAR 'val tmp_6: .P [val] declared in .P.equals' type=.P origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .P' + receiver: GET_VAR 'val tmp_6: .P declared in .P.equals' type=.P origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .P' CONST Boolean type=kotlin.Boolean value=false - RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .P' + RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .P' CONST Boolean type=kotlin.Boolean value=true diff --git a/compiler/testData/ir/irText/types/nullChecks/explicitEqualsAndCompareToCallsOnPlatformTypeReceiver.fir.ir.txt b/compiler/testData/ir/irText/types/nullChecks/explicitEqualsAndCompareToCallsOnPlatformTypeReceiver.fir.ir.txt index 7fc948d9aaa..fe3437a5158 100644 --- a/compiler/testData/ir/irText/types/nullChecks/explicitEqualsAndCompareToCallsOnPlatformTypeReceiver.fir.ir.txt +++ b/compiler/testData/ir/irText/types/nullChecks/explicitEqualsAndCompareToCallsOnPlatformTypeReceiver.fir.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/explicitEqualsAndCompareToCallsOnPlatformTypeReceiv $receiver: VALUE_PARAMETER name: type:.JavaClass BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun testPlatformEqualsPlatform (): kotlin.Boolean declared in ' - CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Double' type=kotlin.Boolean origin=null + CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Double' type=kotlin.Boolean origin=null $this: CALL 'public open fun null0 (): @[FlexibleNullability] kotlin.Double? declared in .JavaClass' type=@[FlexibleNullability] kotlin.Double? origin=null $this: GET_VAR ': .JavaClass declared in .testPlatformEqualsPlatform' type=.JavaClass origin=null other: CALL 'public open fun null0 (): @[FlexibleNullability] kotlin.Double? declared in .JavaClass' type=@[FlexibleNullability] kotlin.Double? origin=null @@ -12,7 +12,7 @@ FILE fqName: fileName:/explicitEqualsAndCompareToCallsOnPlatformTypeReceiv $receiver: VALUE_PARAMETER name: type:.JavaClass BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun testPlatformEqualsKotlin (): kotlin.Boolean declared in ' - CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Double' type=kotlin.Boolean origin=null + CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Double' type=kotlin.Boolean origin=null $this: CALL 'public open fun null0 (): @[FlexibleNullability] kotlin.Double? declared in .JavaClass' type=@[FlexibleNullability] kotlin.Double? origin=null $this: GET_VAR ': .JavaClass declared in .testPlatformEqualsKotlin' type=.JavaClass origin=null other: CONST Double type=kotlin.Double value=0.0 @@ -20,7 +20,7 @@ FILE fqName: fileName:/explicitEqualsAndCompareToCallsOnPlatformTypeReceiv $receiver: VALUE_PARAMETER name: type:.JavaClass BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun testKotlinEqualsPlatform (): kotlin.Boolean declared in ' - CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Double' type=kotlin.Boolean origin=null + CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Double' type=kotlin.Boolean origin=null $this: CONST Double type=kotlin.Double value=0.0 other: CALL 'public open fun null0 (): @[FlexibleNullability] kotlin.Double? declared in .JavaClass' type=@[FlexibleNullability] kotlin.Double? origin=null $this: GET_VAR ': .JavaClass declared in .testKotlinEqualsPlatform' type=.JavaClass origin=null @@ -28,7 +28,7 @@ FILE fqName: fileName:/explicitEqualsAndCompareToCallsOnPlatformTypeReceiv $receiver: VALUE_PARAMETER name: type:.JavaClass BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun testPlatformCompareToPlatform (): kotlin.Int declared in ' - CALL 'public open fun compareTo (other: kotlin.Double): kotlin.Int [operator] declared in kotlin.Double' type=kotlin.Int origin=null + CALL 'public open fun compareTo (other: kotlin.Double): kotlin.Int declared in kotlin.Double' type=kotlin.Int origin=null $this: CALL 'public open fun null0 (): @[FlexibleNullability] kotlin.Double? declared in .JavaClass' type=@[FlexibleNullability] kotlin.Double? origin=null $this: GET_VAR ': .JavaClass declared in .testPlatformCompareToPlatform' type=.JavaClass origin=null other: TYPE_OP type=kotlin.Double origin=IMPLICIT_NOTNULL typeOperand=kotlin.Double @@ -38,7 +38,7 @@ FILE fqName: fileName:/explicitEqualsAndCompareToCallsOnPlatformTypeReceiv $receiver: VALUE_PARAMETER name: type:.JavaClass BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun testPlatformCompareToKotlin (): kotlin.Int declared in ' - CALL 'public open fun compareTo (other: kotlin.Double): kotlin.Int [operator] declared in kotlin.Double' type=kotlin.Int origin=null + CALL 'public open fun compareTo (other: kotlin.Double): kotlin.Int declared in kotlin.Double' type=kotlin.Int origin=null $this: CALL 'public open fun null0 (): @[FlexibleNullability] kotlin.Double? declared in .JavaClass' type=@[FlexibleNullability] kotlin.Double? origin=null $this: GET_VAR ': .JavaClass declared in .testPlatformCompareToKotlin' type=.JavaClass origin=null other: CONST Double type=kotlin.Double value=0.0 @@ -46,7 +46,7 @@ FILE fqName: fileName:/explicitEqualsAndCompareToCallsOnPlatformTypeReceiv $receiver: VALUE_PARAMETER name: type:.JavaClass BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun testKotlinCompareToPlatform (): kotlin.Int declared in ' - CALL 'public open fun compareTo (other: kotlin.Double): kotlin.Int [operator] declared in kotlin.Double' type=kotlin.Int origin=null + CALL 'public open fun compareTo (other: kotlin.Double): kotlin.Int declared in kotlin.Double' type=kotlin.Int origin=null $this: CONST Double type=kotlin.Double value=0.0 other: TYPE_OP type=kotlin.Double origin=IMPLICIT_NOTNULL typeOperand=kotlin.Double CALL 'public open fun null0 (): @[FlexibleNullability] kotlin.Double? declared in .JavaClass' type=@[FlexibleNullability] kotlin.Double? origin=null diff --git a/compiler/testData/ir/irText/types/nullChecks/explicitEqualsAndCompareToCallsOnPlatformTypeReceiver.ir.txt b/compiler/testData/ir/irText/types/nullChecks/explicitEqualsAndCompareToCallsOnPlatformTypeReceiver.ir.txt index 9ef6cfba58f..2a553631803 100644 --- a/compiler/testData/ir/irText/types/nullChecks/explicitEqualsAndCompareToCallsOnPlatformTypeReceiver.ir.txt +++ b/compiler/testData/ir/irText/types/nullChecks/explicitEqualsAndCompareToCallsOnPlatformTypeReceiver.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/explicitEqualsAndCompareToCallsOnPlatformTypeReceiv $receiver: VALUE_PARAMETER name: type:.JavaClass BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun testPlatformEqualsPlatform (): kotlin.Boolean declared in ' - CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Double' type=kotlin.Boolean origin=null + CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Double' type=kotlin.Boolean origin=null $this: TYPE_OP type=kotlin.Double origin=IMPLICIT_NOTNULL typeOperand=kotlin.Double CALL 'public open fun null0 (): @[FlexibleNullability] kotlin.Double? declared in .JavaClass' type=@[FlexibleNullability] kotlin.Double? origin=null $this: GET_VAR ': .JavaClass declared in .testPlatformEqualsPlatform' type=.JavaClass origin=null @@ -13,7 +13,7 @@ FILE fqName: fileName:/explicitEqualsAndCompareToCallsOnPlatformTypeReceiv $receiver: VALUE_PARAMETER name: type:.JavaClass BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun testPlatformEqualsKotlin (): kotlin.Boolean declared in ' - CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Double' type=kotlin.Boolean origin=null + CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Double' type=kotlin.Boolean origin=null $this: TYPE_OP type=kotlin.Double origin=IMPLICIT_NOTNULL typeOperand=kotlin.Double CALL 'public open fun null0 (): @[FlexibleNullability] kotlin.Double? declared in .JavaClass' type=@[FlexibleNullability] kotlin.Double? origin=null $this: GET_VAR ': .JavaClass declared in .testPlatformEqualsKotlin' type=.JavaClass origin=null @@ -22,7 +22,7 @@ FILE fqName: fileName:/explicitEqualsAndCompareToCallsOnPlatformTypeReceiv $receiver: VALUE_PARAMETER name: type:.JavaClass BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun testKotlinEqualsPlatform (): kotlin.Boolean declared in ' - CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Double' type=kotlin.Boolean origin=null + CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Double' type=kotlin.Boolean origin=null $this: CONST Double type=kotlin.Double value=0.0 other: CALL 'public open fun null0 (): @[FlexibleNullability] kotlin.Double? declared in .JavaClass' type=@[FlexibleNullability] kotlin.Double? origin=null $this: GET_VAR ': .JavaClass declared in .testKotlinEqualsPlatform' type=.JavaClass origin=null @@ -30,7 +30,7 @@ FILE fqName: fileName:/explicitEqualsAndCompareToCallsOnPlatformTypeReceiv $receiver: VALUE_PARAMETER name: type:.JavaClass BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun testPlatformCompareToPlatform (): kotlin.Int declared in ' - CALL 'public open fun compareTo (other: kotlin.Double): kotlin.Int [operator] declared in kotlin.Double' type=kotlin.Int origin=null + CALL 'public open fun compareTo (other: kotlin.Double): kotlin.Int declared in kotlin.Double' type=kotlin.Int origin=null $this: TYPE_OP type=kotlin.Double origin=IMPLICIT_NOTNULL typeOperand=kotlin.Double CALL 'public open fun null0 (): @[FlexibleNullability] kotlin.Double? declared in .JavaClass' type=@[FlexibleNullability] kotlin.Double? origin=null $this: GET_VAR ': .JavaClass declared in .testPlatformCompareToPlatform' type=.JavaClass origin=null @@ -41,7 +41,7 @@ FILE fqName: fileName:/explicitEqualsAndCompareToCallsOnPlatformTypeReceiv $receiver: VALUE_PARAMETER name: type:.JavaClass BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun testPlatformCompareToKotlin (): kotlin.Int declared in ' - CALL 'public open fun compareTo (other: kotlin.Double): kotlin.Int [operator] declared in kotlin.Double' type=kotlin.Int origin=null + CALL 'public open fun compareTo (other: kotlin.Double): kotlin.Int declared in kotlin.Double' type=kotlin.Int origin=null $this: TYPE_OP type=kotlin.Double origin=IMPLICIT_NOTNULL typeOperand=kotlin.Double CALL 'public open fun null0 (): @[FlexibleNullability] kotlin.Double? declared in .JavaClass' type=@[FlexibleNullability] kotlin.Double? origin=null $this: GET_VAR ': .JavaClass declared in .testPlatformCompareToKotlin' type=.JavaClass origin=null @@ -50,7 +50,7 @@ FILE fqName: fileName:/explicitEqualsAndCompareToCallsOnPlatformTypeReceiv $receiver: VALUE_PARAMETER name: type:.JavaClass BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun testKotlinCompareToPlatform (): kotlin.Int declared in ' - CALL 'public open fun compareTo (other: kotlin.Double): kotlin.Int [operator] declared in kotlin.Double' type=kotlin.Int origin=null + CALL 'public open fun compareTo (other: kotlin.Double): kotlin.Int declared in kotlin.Double' type=kotlin.Int origin=null $this: CONST Double type=kotlin.Double value=0.0 other: TYPE_OP type=kotlin.Double origin=IMPLICIT_NOTNULL typeOperand=kotlin.Double CALL 'public open fun null0 (): @[FlexibleNullability] kotlin.Double? declared in .JavaClass' type=@[FlexibleNullability] kotlin.Double? origin=null diff --git a/compiler/testData/ir/irText/types/nullChecks/implicitNotNullOnPlatformType.fir.ir.txt b/compiler/testData/ir/irText/types/nullChecks/implicitNotNullOnPlatformType.fir.ir.txt index a4e30dd0dd9..f7323e239e7 100644 --- a/compiler/testData/ir/irText/types/nullChecks/implicitNotNullOnPlatformType.fir.ir.txt +++ b/compiler/testData/ir/irText/types/nullChecks/implicitNotNullOnPlatformType.fir.ir.txt @@ -6,11 +6,11 @@ FILE fqName: fileName:/implicitNotNullOnPlatformType.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.MySet CONSTRUCTOR visibility:public <> () returnType:.MySet [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:MySet modality:FINAL visibility:public superTypes:[kotlin.collections.Set]' PROPERTY name:size visibility:public modality:OPEN [val] overridden: - public abstract size: kotlin.Int [val] + public abstract size: kotlin.Int FUN name: visibility:public modality:OPEN <> ($this:.MySet) returnType:kotlin.Int correspondingProperty: PROPERTY name:size visibility:public modality:OPEN [val] overridden: @@ -18,15 +18,15 @@ FILE fqName: fileName:/implicitNotNullOnPlatformType.kt $this: VALUE_PARAMETER name: type:.MySet BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun (): kotlin.Int declared in .MySet' - CALL 'public final fun TODO (): kotlin.Nothing [inline] declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin.StandardKt' type=kotlin.Nothing origin=null FUN name:contains visibility:public modality:OPEN <> ($this:.MySet, element:kotlin.String) returnType:kotlin.Boolean [operator] overridden: - public abstract fun contains (element: E of kotlin.collections.Set): kotlin.Boolean [operator] declared in kotlin.collections.Set + public abstract fun contains (element: E of kotlin.collections.Set): kotlin.Boolean declared in kotlin.collections.Set $this: VALUE_PARAMETER name: type:.MySet VALUE_PARAMETER name:element index:0 type:kotlin.String BLOCK_BODY - RETURN type=kotlin.Nothing from='public open fun contains (element: kotlin.String): kotlin.Boolean [operator] declared in .MySet' - CALL 'public final fun TODO (): kotlin.Nothing [inline] declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + RETURN type=kotlin.Nothing from='public open fun contains (element: kotlin.String): kotlin.Boolean declared in .MySet' + CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin.StandardKt' type=kotlin.Nothing origin=null FUN name:containsAll visibility:public modality:OPEN <> ($this:.MySet, elements:kotlin.collections.Collection) returnType:kotlin.Boolean overridden: public abstract fun containsAll (elements: kotlin.collections.Collection): kotlin.Boolean declared in kotlin.collections.Set @@ -34,33 +34,33 @@ FILE fqName: fileName:/implicitNotNullOnPlatformType.kt VALUE_PARAMETER name:elements index:0 type:kotlin.collections.Collection BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun containsAll (elements: kotlin.collections.Collection): kotlin.Boolean declared in .MySet' - CALL 'public final fun TODO (): kotlin.Nothing [inline] declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin.StandardKt' type=kotlin.Nothing origin=null FUN name:isEmpty visibility:public modality:OPEN <> ($this:.MySet) returnType:kotlin.Boolean overridden: public abstract fun isEmpty (): kotlin.Boolean declared in kotlin.collections.Set $this: VALUE_PARAMETER name: type:.MySet BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun isEmpty (): kotlin.Boolean declared in .MySet' - CALL 'public final fun TODO (): kotlin.Nothing [inline] declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin.StandardKt' type=kotlin.Nothing origin=null FUN name:iterator visibility:public modality:OPEN <> ($this:.MySet) returnType:kotlin.collections.Iterator [operator] overridden: - public abstract fun iterator (): kotlin.collections.Iterator [operator] declared in kotlin.collections.Set + public abstract fun iterator (): kotlin.collections.Iterator declared in kotlin.collections.Set $this: VALUE_PARAMETER name: type:.MySet BLOCK_BODY - RETURN type=kotlin.Nothing from='public open fun iterator (): kotlin.collections.Iterator [operator] declared in .MySet' - CALL 'public final fun TODO (): kotlin.Nothing [inline] declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + RETURN type=kotlin.Nothing from='public open fun iterator (): kotlin.collections.Iterator declared in .MySet' + CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin.StandardKt' type=kotlin.Nothing 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 [fake_override,operator] declared in kotlin.collections.Set + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.collections.Set $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 kotlin.collections.Set + public open fun hashCode (): kotlin.Int declared in kotlin.collections.Set $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 kotlin.collections.Set + public open fun toString (): kotlin.String declared in kotlin.collections.Set $this: VALUE_PARAMETER name: type:kotlin.Any FUN name:test visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY @@ -74,11 +74,11 @@ FILE fqName: fileName:/implicitNotNullOnPlatformType.kt VALUE_PARAMETER name:m index:0 type:.MySet BLOCK_BODY TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit - CALL 'public open fun contains (element: kotlin.String): kotlin.Boolean [operator] declared in .MySet' type=kotlin.Boolean origin=null + CALL 'public open fun contains (element: kotlin.String): kotlin.Boolean declared in .MySet' type=kotlin.Boolean origin=null $this: GET_VAR 'm: .MySet declared in .testContains' type=.MySet origin=null element: TYPE_OP type=kotlin.String origin=IMPLICIT_NOTNULL typeOperand=kotlin.String GET_FIELD 'FIELD IR_EXTERNAL_JAVA_DECLARATION_STUB name:STRING type:@[FlexibleNullability] kotlin.String? visibility:public [static]' type=@[FlexibleNullability] kotlin.String? origin=GET_PROPERTY TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit - CALL 'public open fun contains (element: kotlin.String): kotlin.Boolean [operator] declared in .MySet' type=kotlin.Boolean origin=null + CALL 'public open fun contains (element: kotlin.String): kotlin.Boolean declared in .MySet' type=kotlin.Boolean origin=null $this: GET_VAR 'm: .MySet declared in .testContains' type=.MySet origin=null element: CONST String type=kotlin.String value="abc" diff --git a/compiler/testData/ir/irText/types/nullChecks/implicitNotNullOnPlatformType.ir.txt b/compiler/testData/ir/irText/types/nullChecks/implicitNotNullOnPlatformType.ir.txt index a4e30dd0dd9..f7323e239e7 100644 --- a/compiler/testData/ir/irText/types/nullChecks/implicitNotNullOnPlatformType.ir.txt +++ b/compiler/testData/ir/irText/types/nullChecks/implicitNotNullOnPlatformType.ir.txt @@ -6,11 +6,11 @@ FILE fqName: fileName:/implicitNotNullOnPlatformType.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.MySet CONSTRUCTOR visibility:public <> () returnType:.MySet [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:MySet modality:FINAL visibility:public superTypes:[kotlin.collections.Set]' PROPERTY name:size visibility:public modality:OPEN [val] overridden: - public abstract size: kotlin.Int [val] + public abstract size: kotlin.Int FUN name: visibility:public modality:OPEN <> ($this:.MySet) returnType:kotlin.Int correspondingProperty: PROPERTY name:size visibility:public modality:OPEN [val] overridden: @@ -18,15 +18,15 @@ FILE fqName: fileName:/implicitNotNullOnPlatformType.kt $this: VALUE_PARAMETER name: type:.MySet BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun (): kotlin.Int declared in .MySet' - CALL 'public final fun TODO (): kotlin.Nothing [inline] declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin.StandardKt' type=kotlin.Nothing origin=null FUN name:contains visibility:public modality:OPEN <> ($this:.MySet, element:kotlin.String) returnType:kotlin.Boolean [operator] overridden: - public abstract fun contains (element: E of kotlin.collections.Set): kotlin.Boolean [operator] declared in kotlin.collections.Set + public abstract fun contains (element: E of kotlin.collections.Set): kotlin.Boolean declared in kotlin.collections.Set $this: VALUE_PARAMETER name: type:.MySet VALUE_PARAMETER name:element index:0 type:kotlin.String BLOCK_BODY - RETURN type=kotlin.Nothing from='public open fun contains (element: kotlin.String): kotlin.Boolean [operator] declared in .MySet' - CALL 'public final fun TODO (): kotlin.Nothing [inline] declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + RETURN type=kotlin.Nothing from='public open fun contains (element: kotlin.String): kotlin.Boolean declared in .MySet' + CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin.StandardKt' type=kotlin.Nothing origin=null FUN name:containsAll visibility:public modality:OPEN <> ($this:.MySet, elements:kotlin.collections.Collection) returnType:kotlin.Boolean overridden: public abstract fun containsAll (elements: kotlin.collections.Collection): kotlin.Boolean declared in kotlin.collections.Set @@ -34,33 +34,33 @@ FILE fqName: fileName:/implicitNotNullOnPlatformType.kt VALUE_PARAMETER name:elements index:0 type:kotlin.collections.Collection BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun containsAll (elements: kotlin.collections.Collection): kotlin.Boolean declared in .MySet' - CALL 'public final fun TODO (): kotlin.Nothing [inline] declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin.StandardKt' type=kotlin.Nothing origin=null FUN name:isEmpty visibility:public modality:OPEN <> ($this:.MySet) returnType:kotlin.Boolean overridden: public abstract fun isEmpty (): kotlin.Boolean declared in kotlin.collections.Set $this: VALUE_PARAMETER name: type:.MySet BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun isEmpty (): kotlin.Boolean declared in .MySet' - CALL 'public final fun TODO (): kotlin.Nothing [inline] declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin.StandardKt' type=kotlin.Nothing origin=null FUN name:iterator visibility:public modality:OPEN <> ($this:.MySet) returnType:kotlin.collections.Iterator [operator] overridden: - public abstract fun iterator (): kotlin.collections.Iterator [operator] declared in kotlin.collections.Set + public abstract fun iterator (): kotlin.collections.Iterator declared in kotlin.collections.Set $this: VALUE_PARAMETER name: type:.MySet BLOCK_BODY - RETURN type=kotlin.Nothing from='public open fun iterator (): kotlin.collections.Iterator [operator] declared in .MySet' - CALL 'public final fun TODO (): kotlin.Nothing [inline] declared in kotlin.StandardKt' type=kotlin.Nothing origin=null + RETURN type=kotlin.Nothing from='public open fun iterator (): kotlin.collections.Iterator declared in .MySet' + CALL 'public final fun TODO (): kotlin.Nothing declared in kotlin.StandardKt' type=kotlin.Nothing 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 [fake_override,operator] declared in kotlin.collections.Set + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.collections.Set $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 kotlin.collections.Set + public open fun hashCode (): kotlin.Int declared in kotlin.collections.Set $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 kotlin.collections.Set + public open fun toString (): kotlin.String declared in kotlin.collections.Set $this: VALUE_PARAMETER name: type:kotlin.Any FUN name:test visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY @@ -74,11 +74,11 @@ FILE fqName: fileName:/implicitNotNullOnPlatformType.kt VALUE_PARAMETER name:m index:0 type:.MySet BLOCK_BODY TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit - CALL 'public open fun contains (element: kotlin.String): kotlin.Boolean [operator] declared in .MySet' type=kotlin.Boolean origin=null + CALL 'public open fun contains (element: kotlin.String): kotlin.Boolean declared in .MySet' type=kotlin.Boolean origin=null $this: GET_VAR 'm: .MySet declared in .testContains' type=.MySet origin=null element: TYPE_OP type=kotlin.String origin=IMPLICIT_NOTNULL typeOperand=kotlin.String GET_FIELD 'FIELD IR_EXTERNAL_JAVA_DECLARATION_STUB name:STRING type:@[FlexibleNullability] kotlin.String? visibility:public [static]' type=@[FlexibleNullability] kotlin.String? origin=GET_PROPERTY TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit - CALL 'public open fun contains (element: kotlin.String): kotlin.Boolean [operator] declared in .MySet' type=kotlin.Boolean origin=null + CALL 'public open fun contains (element: kotlin.String): kotlin.Boolean declared in .MySet' type=kotlin.Boolean origin=null $this: GET_VAR 'm: .MySet declared in .testContains' type=.MySet origin=null element: CONST String type=kotlin.String value="abc" diff --git a/compiler/testData/ir/irText/types/nullChecks/nullCheckInElvisRhs.fir.ir.txt b/compiler/testData/ir/irText/types/nullChecks/nullCheckInElvisRhs.fir.ir.txt index 9114a8de79d..dc4ed420ad3 100644 --- a/compiler/testData/ir/irText/types/nullChecks/nullCheckInElvisRhs.fir.ir.txt +++ b/compiler/testData/ir/irText/types/nullChecks/nullCheckInElvisRhs.fir.ir.txt @@ -14,10 +14,10 @@ FILE fqName: fileName:/nullCheckInElvisRhs.kt WHEN type=kotlin.String origin=ELVIS BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_0: kotlin.String? [val] declared in .test' type=kotlin.String? origin=null + arg0: GET_VAR 'val tmp_0: kotlin.String? declared in .test' type=kotlin.String? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: TYPE_OP type=kotlin.String origin=IMPLICIT_NOTNULL typeOperand=kotlin.String CALL 'public/*package*/ open fun foo (): @[FlexibleNullability] kotlin.String? declared in .RightElvisOperand' type=@[FlexibleNullability] kotlin.String? origin=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val tmp_0: kotlin.String? [val] declared in .test' type=kotlin.String? origin=null + then: GET_VAR 'val tmp_0: kotlin.String? declared in .test' type=kotlin.String? origin=null diff --git a/compiler/testData/ir/irText/types/nullChecks/nullCheckInElvisRhs.ir.txt b/compiler/testData/ir/irText/types/nullChecks/nullCheckInElvisRhs.ir.txt index 52e741de578..96804e4dc49 100644 --- a/compiler/testData/ir/irText/types/nullChecks/nullCheckInElvisRhs.ir.txt +++ b/compiler/testData/ir/irText/types/nullChecks/nullCheckInElvisRhs.ir.txt @@ -14,10 +14,10 @@ FILE fqName: fileName:/nullCheckInElvisRhs.kt WHEN type=kotlin.String origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_0: kotlin.String? [val] declared in .test' type=kotlin.String? origin=null + arg0: GET_VAR 'val tmp_0: kotlin.String? declared in .test' type=kotlin.String? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: TYPE_OP type=kotlin.String origin=IMPLICIT_NOTNULL typeOperand=kotlin.String CALL 'public/*package*/ open fun foo (): @[FlexibleNullability] kotlin.String? declared in .RightElvisOperand' type=@[FlexibleNullability] kotlin.String? origin=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: GET_VAR 'val tmp_0: kotlin.String? [val] declared in .test' type=kotlin.String? origin=null + then: GET_VAR 'val tmp_0: kotlin.String? declared in .test' type=kotlin.String? origin=null diff --git a/compiler/testData/ir/irText/types/nullChecks/nullCheckOnInterfaceDelegation.fir.ir.txt b/compiler/testData/ir/irText/types/nullChecks/nullCheckOnInterfaceDelegation.fir.ir.txt index 5c31a85557f..5a16a4cf292 100644 --- a/compiler/testData/ir/irText/types/nullChecks/nullCheckOnInterfaceDelegation.fir.ir.txt +++ b/compiler/testData/ir/irText/types/nullChecks/nullCheckOnInterfaceDelegation.fir.ir.txt @@ -7,7 +7,7 @@ FILE fqName: fileName:/nullCheckOnInterfaceDelegation.kt $this: VALUE_PARAMETER name: type:.IFoo 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -22,7 +22,7 @@ FILE fqName: fileName:/nullCheckOnInterfaceDelegation.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Derived CONSTRUCTOR visibility:public <> () returnType:.Derived [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .A' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .A' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Derived modality:FINAL visibility:public superTypes:[.A; .IFoo]' FUN name:foo visibility:public modality:OPEN <> ($this:.Derived) returnType:@[FlexibleNullability] kotlin.String? overridden: @@ -35,25 +35,25 @@ FILE fqName: fileName:/nullCheckOnInterfaceDelegation.kt $this: GET_VAR ': .Derived declared in .Derived.foo' type=.Derived 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 [fake_override,operator] declared in .A - public open fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .IFoo + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .A + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IFoo $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 .A - public open fun hashCode (): kotlin.Int [fake_override] declared in .IFoo + public open fun hashCode (): kotlin.Int declared in .A + public open fun hashCode (): kotlin.Int declared in .IFoo $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 .A - public open fun toString (): kotlin.String [fake_override] declared in .IFoo + public open fun toString (): kotlin.String declared in .A + public open fun toString (): kotlin.String declared in .IFoo $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:Delegated modality:FINAL visibility:public superTypes:[.IFoo] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Delegated CONSTRUCTOR visibility:public <> () returnType:.Delegated [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Delegated modality:FINAL visibility:public superTypes:[.IFoo]' FUN DELEGATED_MEMBER name:foo visibility:public modality:OPEN <> ($this:.Delegated) returnType:kotlin.String overridden: @@ -67,22 +67,22 @@ FILE fqName: fileName:/nullCheckOnInterfaceDelegation.kt receiver: GET_VAR ': .Delegated declared in .Delegated.foo' type=.Delegated origin=null FIELD DELEGATE name:$$delegate_0 type:.Derived visibility:private [final] EXPRESSION_BODY - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .Derived' type=.Derived origin=null + CONSTRUCTOR_CALL 'public constructor () declared in .Derived' type=.Derived 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 [fake_override,operator] declared in .IFoo + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IFoo $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 .IFoo + public open fun hashCode (): kotlin.Int declared in .IFoo $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 .IFoo + public open fun toString (): kotlin.String declared in .IFoo $this: VALUE_PARAMETER name: type:kotlin.Any FUN name:testReturnValue visibility:public modality:FINAL <> () returnType:kotlin.String BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun testReturnValue (): kotlin.String declared in ' CALL 'public open fun foo (): kotlin.String declared in .Delegated' type=kotlin.String origin=null - $this: CONSTRUCTOR_CALL 'public constructor () [primary] declared in .Delegated' type=.Delegated origin=null + $this: CONSTRUCTOR_CALL 'public constructor () declared in .Delegated' type=.Delegated origin=null diff --git a/compiler/testData/ir/irText/types/nullChecks/nullCheckOnInterfaceDelegation.ir.txt b/compiler/testData/ir/irText/types/nullChecks/nullCheckOnInterfaceDelegation.ir.txt index 92c6048de26..eb5aaa6853f 100644 --- a/compiler/testData/ir/irText/types/nullChecks/nullCheckOnInterfaceDelegation.ir.txt +++ b/compiler/testData/ir/irText/types/nullChecks/nullCheckOnInterfaceDelegation.ir.txt @@ -7,7 +7,7 @@ FILE fqName: fileName:/nullCheckOnInterfaceDelegation.kt $this: VALUE_PARAMETER name: type:.IFoo 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -22,7 +22,7 @@ FILE fqName: fileName:/nullCheckOnInterfaceDelegation.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Derived CONSTRUCTOR visibility:public <> () returnType:.Derived [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .A' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .A' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Derived modality:FINAL visibility:public superTypes:[.A; .IFoo]' FUN name:foo visibility:public modality:OPEN <> ($this:.Derived) returnType:@[FlexibleNullability] kotlin.String? overridden: @@ -35,29 +35,29 @@ FILE fqName: fileName:/nullCheckOnInterfaceDelegation.kt $this: GET_VAR ': .Derived declared in .Derived.foo' type=.Derived 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 [fake_override,operator] declared in .A - public open fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .IFoo + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .A + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IFoo $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 .A - public open fun hashCode (): kotlin.Int [fake_override] declared in .IFoo + public open fun hashCode (): kotlin.Int declared in .A + public open fun hashCode (): kotlin.Int declared in .IFoo $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 .A - public open fun toString (): kotlin.String [fake_override] declared in .IFoo + public open fun toString (): kotlin.String declared in .A + public open fun toString (): kotlin.String declared in .IFoo $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:Delegated modality:FINAL visibility:public superTypes:[.IFoo] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Delegated CONSTRUCTOR visibility:public <> () returnType:.Delegated [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Delegated modality:FINAL visibility:public superTypes:[.IFoo]' FIELD DELEGATE name:$$delegate_0 type:.Derived visibility:private [final] EXPRESSION_BODY - CONSTRUCTOR_CALL 'public constructor () [primary] declared in .Derived' type=.Derived origin=null + CONSTRUCTOR_CALL 'public constructor () declared in .Derived' type=.Derived origin=null FUN DELEGATED_MEMBER name:foo visibility:public modality:OPEN <> ($this:.Delegated) returnType:kotlin.String overridden: public abstract fun foo (): kotlin.String declared in .IFoo @@ -70,19 +70,19 @@ FILE fqName: fileName:/nullCheckOnInterfaceDelegation.kt receiver: GET_VAR ': .Delegated declared in .Delegated.foo' type=.Delegated 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 [fake_override,operator] declared in .IFoo + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .IFoo $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 .IFoo + public open fun hashCode (): kotlin.Int declared in .IFoo $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 .IFoo + public open fun toString (): kotlin.String declared in .IFoo $this: VALUE_PARAMETER name: type:kotlin.Any FUN name:testReturnValue visibility:public modality:FINAL <> () returnType:kotlin.String BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun testReturnValue (): kotlin.String declared in ' CALL 'public open fun foo (): kotlin.String declared in .Delegated' type=kotlin.String origin=null - $this: CONSTRUCTOR_CALL 'public constructor () [primary] declared in .Delegated' type=.Delegated origin=null + $this: CONSTRUCTOR_CALL 'public constructor () declared in .Delegated' type=.Delegated origin=null diff --git a/compiler/testData/ir/irText/types/nullChecks/nullCheckOnLambdaResult/nnStringVsT.ir.txt b/compiler/testData/ir/irText/types/nullChecks/nullCheckOnLambdaResult/nnStringVsT.ir.txt index ce81e787a0e..627d7d056ca 100644 --- a/compiler/testData/ir/irText/types/nullChecks/nullCheckOnLambdaResult/nnStringVsT.ir.txt +++ b/compiler/testData/ir/irText/types/nullChecks/nullCheckOnLambdaResult/nnStringVsT.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/nnStringVsT.kt VALUE_PARAMETER name:fn index:0 type:kotlin.Function0.useT> BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun useT (fn: kotlin.Function0.useT>): T of .useT declared in ' - CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=T of .useT origin=INVOKE + CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=T of .useT origin=INVOKE $this: GET_VAR 'fn: kotlin.Function0.useT> declared in .useT' type=kotlin.Function0.useT> origin=VARIABLE_AS_FUNCTION FUN name:testNoNullCheck visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY diff --git a/compiler/testData/ir/irText/types/nullChecks/nullCheckOnLambdaResult/nnStringVsTAny.ir.txt b/compiler/testData/ir/irText/types/nullChecks/nullCheckOnLambdaResult/nnStringVsTAny.ir.txt index 8b5a7880114..fd3b22f4784 100644 --- a/compiler/testData/ir/irText/types/nullChecks/nullCheckOnLambdaResult/nnStringVsTAny.ir.txt +++ b/compiler/testData/ir/irText/types/nullChecks/nullCheckOnLambdaResult/nnStringVsTAny.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/nnStringVsTAny.kt VALUE_PARAMETER name:fn index:0 type:kotlin.Function0.useTAny> BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun useTAny (fn: kotlin.Function0.useTAny>): T of .useTAny declared in ' - CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=T of .useTAny origin=INVOKE + CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=T of .useTAny origin=INVOKE $this: GET_VAR 'fn: kotlin.Function0.useTAny> declared in .useTAny' type=kotlin.Function0.useTAny> origin=VARIABLE_AS_FUNCTION FUN name:testNoNullCheck visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY diff --git a/compiler/testData/ir/irText/types/nullChecks/nullCheckOnLambdaResult/nnStringVsTConstrained.ir.txt b/compiler/testData/ir/irText/types/nullChecks/nullCheckOnLambdaResult/nnStringVsTConstrained.ir.txt index b370c3b24d6..6d1e702964a 100644 --- a/compiler/testData/ir/irText/types/nullChecks/nullCheckOnLambdaResult/nnStringVsTConstrained.ir.txt +++ b/compiler/testData/ir/irText/types/nullChecks/nullCheckOnLambdaResult/nnStringVsTConstrained.ir.txt @@ -5,7 +5,7 @@ FILE fqName: fileName:/nnStringVsTConstrained.kt VALUE_PARAMETER name:fn index:1 type:kotlin.Function0.useTConstrained> BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun useTConstrained (xs: kotlin.Array.useTConstrained>, fn: kotlin.Function0.useTConstrained>): T of .useTConstrained declared in ' - CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=T of .useTConstrained origin=INVOKE + CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=T of .useTConstrained origin=INVOKE $this: GET_VAR 'fn: kotlin.Function0.useTConstrained> declared in .useTConstrained' type=kotlin.Function0.useTConstrained> origin=VARIABLE_AS_FUNCTION FUN name:testWithNullCheck visibility:public modality:FINAL <> (xs:kotlin.Array) returnType:kotlin.Unit VALUE_PARAMETER name:xs index:0 type:kotlin.Array diff --git a/compiler/testData/ir/irText/types/nullChecks/nullCheckOnLambdaResult/nnStringVsTXArray.ir.txt b/compiler/testData/ir/irText/types/nullChecks/nullCheckOnLambdaResult/nnStringVsTXArray.ir.txt index 9efd4f7901c..9496ec47937 100644 --- a/compiler/testData/ir/irText/types/nullChecks/nullCheckOnLambdaResult/nnStringVsTXArray.ir.txt +++ b/compiler/testData/ir/irText/types/nullChecks/nullCheckOnLambdaResult/nnStringVsTXArray.ir.txt @@ -5,7 +5,7 @@ FILE fqName: fileName:/nnStringVsTXArray.kt VALUE_PARAMETER name:fn index:1 type:kotlin.Function0.useTX> BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun useTX (x: T of .useTX, fn: kotlin.Function0.useTX>): T of .useTX declared in ' - CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=T of .useTX origin=INVOKE + CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=T of .useTX origin=INVOKE $this: GET_VAR 'fn: kotlin.Function0.useTX> declared in .useTX' type=kotlin.Function0.useTX> origin=VARIABLE_AS_FUNCTION FUN name:testWithNullCheck visibility:public modality:FINAL <> (xs:kotlin.Array) returnType:kotlin.Unit VALUE_PARAMETER name:xs index:0 type:kotlin.Array diff --git a/compiler/testData/ir/irText/types/nullChecks/nullCheckOnLambdaResult/nnStringVsTXString.ir.txt b/compiler/testData/ir/irText/types/nullChecks/nullCheckOnLambdaResult/nnStringVsTXString.ir.txt index 013864fe351..133a109ac00 100644 --- a/compiler/testData/ir/irText/types/nullChecks/nullCheckOnLambdaResult/nnStringVsTXString.ir.txt +++ b/compiler/testData/ir/irText/types/nullChecks/nullCheckOnLambdaResult/nnStringVsTXString.ir.txt @@ -5,7 +5,7 @@ FILE fqName: fileName:/nnStringVsTXString.kt VALUE_PARAMETER name:fn index:1 type:kotlin.Function0.useTX> BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun useTX (x: T of .useTX, fn: kotlin.Function0.useTX>): T of .useTX declared in ' - CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=T of .useTX origin=INVOKE + CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=T of .useTX origin=INVOKE $this: GET_VAR 'fn: kotlin.Function0.useTX> declared in .useTX' type=kotlin.Function0.useTX> origin=VARIABLE_AS_FUNCTION FUN name:testWithNullCheck visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY diff --git a/compiler/testData/ir/irText/types/nullChecks/nullCheckOnLambdaResult/stringVsAny.ir.txt b/compiler/testData/ir/irText/types/nullChecks/nullCheckOnLambdaResult/stringVsAny.ir.txt index 4c8e988b924..1d50785fd7b 100644 --- a/compiler/testData/ir/irText/types/nullChecks/nullCheckOnLambdaResult/stringVsAny.ir.txt +++ b/compiler/testData/ir/irText/types/nullChecks/nullCheckOnLambdaResult/stringVsAny.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/stringVsAny.kt VALUE_PARAMETER name:fn index:0 type:kotlin.Function0 BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun useAny (fn: kotlin.Function0): kotlin.Any declared in ' - CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=kotlin.Any origin=INVOKE + CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=kotlin.Any origin=INVOKE $this: GET_VAR 'fn: kotlin.Function0 declared in .useAny' type=kotlin.Function0 origin=VARIABLE_AS_FUNCTION FUN name:testNullCheck visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY diff --git a/compiler/testData/ir/irText/types/nullChecks/nullCheckOnLambdaResult/stringVsT.ir.txt b/compiler/testData/ir/irText/types/nullChecks/nullCheckOnLambdaResult/stringVsT.ir.txt index 6f8150bb431..407683f37b6 100644 --- a/compiler/testData/ir/irText/types/nullChecks/nullCheckOnLambdaResult/stringVsT.ir.txt +++ b/compiler/testData/ir/irText/types/nullChecks/nullCheckOnLambdaResult/stringVsT.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/stringVsT.kt VALUE_PARAMETER name:fn index:0 type:kotlin.Function0.useT> BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun useT (fn: kotlin.Function0.useT>): T of .useT declared in ' - CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=T of .useT origin=INVOKE + CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=T of .useT origin=INVOKE $this: GET_VAR 'fn: kotlin.Function0.useT> declared in .useT' type=kotlin.Function0.useT> origin=VARIABLE_AS_FUNCTION FUN name:testNoNullCheck visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY diff --git a/compiler/testData/ir/irText/types/nullChecks/nullCheckOnLambdaResult/stringVsTAny.ir.txt b/compiler/testData/ir/irText/types/nullChecks/nullCheckOnLambdaResult/stringVsTAny.ir.txt index d29d60ee99d..ee360456893 100644 --- a/compiler/testData/ir/irText/types/nullChecks/nullCheckOnLambdaResult/stringVsTAny.ir.txt +++ b/compiler/testData/ir/irText/types/nullChecks/nullCheckOnLambdaResult/stringVsTAny.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/stringVsTAny.kt VALUE_PARAMETER name:fn index:0 type:kotlin.Function0.useTAny> BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun useTAny (fn: kotlin.Function0.useTAny>): T of .useTAny declared in ' - CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=T of .useTAny origin=INVOKE + CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=T of .useTAny origin=INVOKE $this: GET_VAR 'fn: kotlin.Function0.useTAny> declared in .useTAny' type=kotlin.Function0.useTAny> origin=VARIABLE_AS_FUNCTION FUN name:testNoNullCheck visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY diff --git a/compiler/testData/ir/irText/types/nullChecks/nullCheckOnLambdaResult/stringVsTConstrained.ir.txt b/compiler/testData/ir/irText/types/nullChecks/nullCheckOnLambdaResult/stringVsTConstrained.ir.txt index 8a6d7d6501b..693c6ba786a 100644 --- a/compiler/testData/ir/irText/types/nullChecks/nullCheckOnLambdaResult/stringVsTConstrained.ir.txt +++ b/compiler/testData/ir/irText/types/nullChecks/nullCheckOnLambdaResult/stringVsTConstrained.ir.txt @@ -5,7 +5,7 @@ FILE fqName: fileName:/stringVsTConstrained.kt VALUE_PARAMETER name:fn index:1 type:kotlin.Function0.useTConstrained> BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun useTConstrained (xs: kotlin.Array.useTConstrained>, fn: kotlin.Function0.useTConstrained>): T of .useTConstrained declared in ' - CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=T of .useTConstrained origin=INVOKE + CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=T of .useTConstrained origin=INVOKE $this: GET_VAR 'fn: kotlin.Function0.useTConstrained> declared in .useTConstrained' type=kotlin.Function0.useTConstrained> origin=VARIABLE_AS_FUNCTION FUN name:testWithNullCheck visibility:public modality:FINAL <> (xs:kotlin.Array) returnType:kotlin.Unit VALUE_PARAMETER name:xs index:0 type:kotlin.Array diff --git a/compiler/testData/ir/irText/types/nullChecks/nullCheckOnLambdaResult/stringVsTXArray.ir.txt b/compiler/testData/ir/irText/types/nullChecks/nullCheckOnLambdaResult/stringVsTXArray.ir.txt index f2cfb594130..e27f5268e14 100644 --- a/compiler/testData/ir/irText/types/nullChecks/nullCheckOnLambdaResult/stringVsTXArray.ir.txt +++ b/compiler/testData/ir/irText/types/nullChecks/nullCheckOnLambdaResult/stringVsTXArray.ir.txt @@ -5,7 +5,7 @@ FILE fqName: fileName:/stringVsTXArray.kt VALUE_PARAMETER name:fn index:1 type:kotlin.Function0.useTX> BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun useTX (x: T of .useTX, fn: kotlin.Function0.useTX>): T of .useTX declared in ' - CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=T of .useTX origin=INVOKE + CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=T of .useTX origin=INVOKE $this: GET_VAR 'fn: kotlin.Function0.useTX> declared in .useTX' type=kotlin.Function0.useTX> origin=VARIABLE_AS_FUNCTION FUN name:testNoNullCheck visibility:public modality:FINAL <> (xs:kotlin.Array) returnType:kotlin.Unit VALUE_PARAMETER name:xs index:0 type:kotlin.Array diff --git a/compiler/testData/ir/irText/types/nullChecks/nullCheckOnLambdaResult/stringVsTXString.ir.txt b/compiler/testData/ir/irText/types/nullChecks/nullCheckOnLambdaResult/stringVsTXString.ir.txt index c10588815f1..3b6e7ecb61d 100644 --- a/compiler/testData/ir/irText/types/nullChecks/nullCheckOnLambdaResult/stringVsTXString.ir.txt +++ b/compiler/testData/ir/irText/types/nullChecks/nullCheckOnLambdaResult/stringVsTXString.ir.txt @@ -5,7 +5,7 @@ FILE fqName: fileName:/stringVsTXString.kt VALUE_PARAMETER name:fn index:1 type:kotlin.Function0.useTX> BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun useTX (x: T of .useTX, fn: kotlin.Function0.useTX>): T of .useTX declared in ' - CALL 'public abstract fun invoke (): R of kotlin.Function0 [operator] declared in kotlin.Function0' type=T of .useTX origin=INVOKE + CALL 'public abstract fun invoke (): R of kotlin.Function0 declared in kotlin.Function0' type=T of .useTX origin=INVOKE $this: GET_VAR 'fn: kotlin.Function0.useTX> declared in .useTX' type=kotlin.Function0.useTX> origin=VARIABLE_AS_FUNCTION FUN name:testNoNullCheck visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY diff --git a/compiler/testData/ir/irText/types/nullChecks/nullabilityAssertionOnExtensionReceiver.ir.txt b/compiler/testData/ir/irText/types/nullChecks/nullabilityAssertionOnExtensionReceiver.ir.txt index 0f4d66ee814..b37006c5eb3 100644 --- a/compiler/testData/ir/irText/types/nullChecks/nullabilityAssertionOnExtensionReceiver.ir.txt +++ b/compiler/testData/ir/irText/types/nullChecks/nullabilityAssertionOnExtensionReceiver.ir.txt @@ -6,7 +6,7 @@ FILE fqName: fileName:/nullabilityAssertionOnExtensionReceiver.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.C CONSTRUCTOR visibility:public <> () returnType:.C [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C modality:FINAL visibility:public superTypes:[kotlin.Any]' FUN name:memberExtension visibility:public modality:FINAL <> ($this:.C, $receiver:kotlin.String) returnType:kotlin.Unit $this: VALUE_PARAMETER name: type:.C @@ -14,7 +14,7 @@ FILE fqName: fileName:/nullabilityAssertionOnExtensionReceiver.kt 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/types/nullChecks/platformTypeReceiver.fir.ir.txt b/compiler/testData/ir/irText/types/nullChecks/platformTypeReceiver.fir.ir.txt index 8e3b0846827..bd0d626d0dd 100644 --- a/compiler/testData/ir/irText/types/nullChecks/platformTypeReceiver.fir.ir.txt +++ b/compiler/testData/ir/irText/types/nullChecks/platformTypeReceiver.fir.ir.txt @@ -2,12 +2,12 @@ FILE fqName: fileName:/platformTypeReceiver.kt FUN name:test1 visibility:public modality:FINAL <> () returnType:kotlin.Boolean BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test1 (): kotlin.Boolean declared in ' - CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=null + CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Boolean' type=kotlin.Boolean origin=null $this: GET_FIELD 'FIELD IR_EXTERNAL_JAVA_DECLARATION_STUB name:BOOL_NULL type:@[FlexibleNullability] kotlin.Boolean? visibility:public [static]' type=@[FlexibleNullability] kotlin.Boolean? origin=GET_PROPERTY other: CONST Null type=kotlin.Nothing? value=null FUN name:test2 visibility:public modality:FINAL <> () returnType:kotlin.Boolean BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test2 (): kotlin.Boolean declared in ' - CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=null + CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Boolean' type=kotlin.Boolean origin=null $this: CALL 'public open fun boolNull (): @[FlexibleNullability] kotlin.Boolean? declared in .J' type=@[FlexibleNullability] kotlin.Boolean? origin=null other: CONST Null type=kotlin.Nothing? value=null diff --git a/compiler/testData/ir/irText/types/nullChecks/platformTypeReceiver.ir.txt b/compiler/testData/ir/irText/types/nullChecks/platformTypeReceiver.ir.txt index b34e6f16e6d..e4fd9e0585c 100644 --- a/compiler/testData/ir/irText/types/nullChecks/platformTypeReceiver.ir.txt +++ b/compiler/testData/ir/irText/types/nullChecks/platformTypeReceiver.ir.txt @@ -2,14 +2,14 @@ FILE fqName: fileName:/platformTypeReceiver.kt FUN name:test1 visibility:public modality:FINAL <> () returnType:kotlin.Boolean BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test1 (): kotlin.Boolean declared in ' - CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=null + CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Boolean' type=kotlin.Boolean origin=null $this: TYPE_OP type=kotlin.Boolean origin=IMPLICIT_NOTNULL typeOperand=kotlin.Boolean GET_FIELD 'FIELD IR_EXTERNAL_JAVA_DECLARATION_STUB name:BOOL_NULL type:@[FlexibleNullability] kotlin.Boolean? visibility:public [static]' type=@[FlexibleNullability] kotlin.Boolean? origin=GET_PROPERTY other: CONST Null type=kotlin.Nothing? value=null FUN name:test2 visibility:public modality:FINAL <> () returnType:kotlin.Boolean BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun test2 (): kotlin.Boolean declared in ' - CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=null + CALL 'public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Boolean' type=kotlin.Boolean origin=null $this: TYPE_OP type=kotlin.Boolean origin=IMPLICIT_NOTNULL typeOperand=kotlin.Boolean CALL 'public open fun boolNull (): @[FlexibleNullability] kotlin.Boolean? declared in .J' type=@[FlexibleNullability] kotlin.Boolean? origin=null other: CONST Null type=kotlin.Nothing? value=null diff --git a/compiler/testData/ir/irText/types/nullChecks/typeParameterWithMixedNullableAndNotNullableBounds.fir.ir.txt b/compiler/testData/ir/irText/types/nullChecks/typeParameterWithMixedNullableAndNotNullableBounds.fir.ir.txt index e038ecd2dbc..cab71116594 100644 --- a/compiler/testData/ir/irText/types/nullChecks/typeParameterWithMixedNullableAndNotNullableBounds.fir.ir.txt +++ b/compiler/testData/ir/irText/types/nullChecks/typeParameterWithMixedNullableAndNotNullableBounds.fir.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/typeParameterWithMixedNullableAndNotNullableBounds. VALUE_PARAMETER name:x index:0 type:T of .f BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun f (x: T of .f): kotlin.Int declared in ' - CALL 'public abstract fun compareTo (other: T of kotlin.Comparable): kotlin.Int [operator] declared in kotlin.Comparable' type=kotlin.Int origin=null + CALL 'public abstract fun compareTo (other: T of kotlin.Comparable): kotlin.Int declared in kotlin.Comparable' type=kotlin.Int origin=null $this: GET_VAR 'x: T of .f declared in .f' type=T of .f origin=null other: GET_VAR 'x: T of .f declared in .f' type=T of .f origin=null FUN name:test visibility:public modality:FINAL <> () returnType:kotlin.Unit diff --git a/compiler/testData/ir/irText/types/nullChecks/typeParameterWithMixedNullableAndNotNullableBounds.ir.txt b/compiler/testData/ir/irText/types/nullChecks/typeParameterWithMixedNullableAndNotNullableBounds.ir.txt index e990e93a768..41b83271d0f 100644 --- a/compiler/testData/ir/irText/types/nullChecks/typeParameterWithMixedNullableAndNotNullableBounds.ir.txt +++ b/compiler/testData/ir/irText/types/nullChecks/typeParameterWithMixedNullableAndNotNullableBounds.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/typeParameterWithMixedNullableAndNotNullableBounds. VALUE_PARAMETER name:x index:0 type:T of .f BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun f (x: T of .f): kotlin.Int declared in ' - CALL 'public abstract fun compareTo (other: T of kotlin.Comparable): kotlin.Int [operator] declared in kotlin.Comparable' type=kotlin.Int origin=null + CALL 'public abstract fun compareTo (other: T of kotlin.Comparable): kotlin.Int declared in kotlin.Comparable' type=kotlin.Int origin=null $this: GET_VAR 'x: T of .f declared in .f' type=T of .f origin=null other: GET_VAR 'x: T of .f declared in .f' type=T of .f origin=null FUN name:test visibility:public modality:FINAL <> () returnType:kotlin.Unit diff --git a/compiler/testData/ir/irText/types/nullChecks/typeParameterWithMultipleNotNullableBounds.fir.ir.txt b/compiler/testData/ir/irText/types/nullChecks/typeParameterWithMultipleNotNullableBounds.fir.ir.txt index 6ab0ee16dee..bb616c5b15a 100644 --- a/compiler/testData/ir/irText/types/nullChecks/typeParameterWithMultipleNotNullableBounds.fir.ir.txt +++ b/compiler/testData/ir/irText/types/nullChecks/typeParameterWithMultipleNotNullableBounds.fir.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/typeParameterWithMultipleNotNullableBounds.kt VALUE_PARAMETER name:x index:0 type:T of .f BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun f (x: T of .f): kotlin.Int declared in ' - CALL 'public abstract fun compareTo (other: T of kotlin.Comparable): kotlin.Int [operator] declared in kotlin.Comparable' type=kotlin.Int origin=null + CALL 'public abstract fun compareTo (other: T of kotlin.Comparable): kotlin.Int declared in kotlin.Comparable' type=kotlin.Int origin=null $this: GET_VAR 'x: T of .f declared in .f' type=T of .f origin=null other: GET_VAR 'x: T of .f declared in .f' type=T of .f origin=null FUN name:test visibility:public modality:FINAL <> () returnType:kotlin.Unit diff --git a/compiler/testData/ir/irText/types/nullChecks/typeParameterWithMultipleNotNullableBounds.ir.txt b/compiler/testData/ir/irText/types/nullChecks/typeParameterWithMultipleNotNullableBounds.ir.txt index 7fe4166e72e..65f21c16e43 100644 --- a/compiler/testData/ir/irText/types/nullChecks/typeParameterWithMultipleNotNullableBounds.ir.txt +++ b/compiler/testData/ir/irText/types/nullChecks/typeParameterWithMultipleNotNullableBounds.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/typeParameterWithMultipleNotNullableBounds.kt VALUE_PARAMETER name:x index:0 type:T of .f BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun f (x: T of .f): kotlin.Int declared in ' - CALL 'public abstract fun compareTo (other: T of kotlin.Comparable): kotlin.Int [operator] declared in kotlin.Comparable' type=kotlin.Int origin=null + CALL 'public abstract fun compareTo (other: T of kotlin.Comparable): kotlin.Int declared in kotlin.Comparable' type=kotlin.Int origin=null $this: GET_VAR 'x: T of .f declared in .f' type=T of .f origin=null other: GET_VAR 'x: T of .f declared in .f' type=T of .f origin=null FUN name:test visibility:public modality:FINAL <> () returnType:kotlin.Unit diff --git a/compiler/testData/ir/irText/types/nullChecks/typeParameterWithMultipleNullableBounds.fir.ir.txt b/compiler/testData/ir/irText/types/nullChecks/typeParameterWithMultipleNullableBounds.fir.ir.txt index 297404a5bc4..cb12a0b2f70 100644 --- a/compiler/testData/ir/irText/types/nullChecks/typeParameterWithMultipleNullableBounds.fir.ir.txt +++ b/compiler/testData/ir/irText/types/nullChecks/typeParameterWithMultipleNullableBounds.fir.ir.txt @@ -10,13 +10,13 @@ FILE fqName: fileName:/typeParameterWithMultipleNullableBounds.kt WHEN type=kotlin.Int? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_0: T of .f [val] declared in .f' type=T of .f origin=null + arg0: GET_VAR 'val tmp_0: T of .f declared in .f' type=T of .f origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: CALL 'public abstract fun compareTo (other: T of kotlin.Comparable): kotlin.Int [operator] declared in kotlin.Comparable' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp_0: T of .f [val] declared in .f' type=T of .f origin=null + then: CALL 'public abstract fun compareTo (other: T of kotlin.Comparable): kotlin.Int declared in kotlin.Comparable' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_0: T of .f declared in .f' type=T of .f origin=null other: GET_VAR 'x: T of .f declared in .f' type=T of .f origin=null FUN name:test visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY diff --git a/compiler/testData/ir/irText/types/nullChecks/typeParameterWithMultipleNullableBounds.ir.txt b/compiler/testData/ir/irText/types/nullChecks/typeParameterWithMultipleNullableBounds.ir.txt index 297404a5bc4..cb12a0b2f70 100644 --- a/compiler/testData/ir/irText/types/nullChecks/typeParameterWithMultipleNullableBounds.ir.txt +++ b/compiler/testData/ir/irText/types/nullChecks/typeParameterWithMultipleNullableBounds.ir.txt @@ -10,13 +10,13 @@ FILE fqName: fileName:/typeParameterWithMultipleNullableBounds.kt WHEN type=kotlin.Int? origin=null BRANCH if: CALL 'public final fun EQEQ (arg0: kotlin.Any?, arg1: kotlin.Any?): kotlin.Boolean declared in kotlin.internal.ir' type=kotlin.Boolean origin=EQEQ - arg0: GET_VAR 'val tmp_0: T of .f [val] declared in .f' type=T of .f origin=null + arg0: GET_VAR 'val tmp_0: T of .f declared in .f' type=T of .f origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST Null type=kotlin.Nothing? value=null BRANCH if: CONST Boolean type=kotlin.Boolean value=true - then: CALL 'public abstract fun compareTo (other: T of kotlin.Comparable): kotlin.Int [operator] declared in kotlin.Comparable' type=kotlin.Int origin=null - $this: GET_VAR 'val tmp_0: T of .f [val] declared in .f' type=T of .f origin=null + then: CALL 'public abstract fun compareTo (other: T of kotlin.Comparable): kotlin.Int declared in kotlin.Comparable' type=kotlin.Int origin=null + $this: GET_VAR 'val tmp_0: T of .f declared in .f' type=T of .f origin=null other: GET_VAR 'x: T of .f declared in .f' type=T of .f origin=null FUN name:test visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY diff --git a/compiler/testData/ir/irText/types/rawTypeInSignature.fir.ir.txt b/compiler/testData/ir/irText/types/rawTypeInSignature.fir.ir.txt index 4f46b9d2640..4ac6a5403c1 100644 --- a/compiler/testData/ir/irText/types/rawTypeInSignature.fir.ir.txt +++ b/compiler/testData/ir/irText/types/rawTypeInSignature.fir.ir.txt @@ -4,11 +4,11 @@ FILE fqName: fileName:/rawTypeInSignature.kt TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Number] reified:false CONSTRUCTOR visibility:public <> () returnType:.GenericInv.GenericInv> [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:GenericInv modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -24,11 +24,11 @@ FILE fqName: fileName:/rawTypeInSignature.kt TYPE_PARAMETER name:T index:0 variance:in superTypes:[kotlin.Number] reified:false CONSTRUCTOR visibility:public <> () returnType:.GenericIn.GenericIn> [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:GenericIn modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -44,11 +44,11 @@ FILE fqName: fileName:/rawTypeInSignature.kt TYPE_PARAMETER name:T index:0 variance:out superTypes:[kotlin.Number] reified:false CONSTRUCTOR visibility:public <> () returnType:.GenericOut.GenericOut> [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:GenericOut modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -82,7 +82,7 @@ FILE fqName: fileName:/rawTypeInSignature.kt CONSTRUCTOR visibility:public <> (j:.JRaw) returnType:.KRaw [primary] VALUE_PARAMETER name:j index:0 type:.JRaw BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:KRaw modality:FINAL visibility:public superTypes:[.JRaw]' FUN DELEGATED_MEMBER name:takesRawList visibility:public modality:OPEN <> ($this:.KRaw, list:@[FlexibleNullability] @[FlexibleMutability] @[RawType] kotlin.collections.MutableList) returnType:kotlin.Unit overridden: @@ -169,14 +169,14 @@ FILE fqName: fileName:/rawTypeInSignature.kt GET_VAR 'j: .JRaw declared in .KRaw.' type=.JRaw 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 [fake_override,operator] declared in .JRaw + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .JRaw $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 .JRaw + public open fun hashCode (): kotlin.Int declared in .JRaw $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 .JRaw + public open fun toString (): kotlin.String declared in .JRaw $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/types/rawTypeInSignature.ir.txt b/compiler/testData/ir/irText/types/rawTypeInSignature.ir.txt index a391d6ecd1c..1231469ed10 100644 --- a/compiler/testData/ir/irText/types/rawTypeInSignature.ir.txt +++ b/compiler/testData/ir/irText/types/rawTypeInSignature.ir.txt @@ -4,11 +4,11 @@ FILE fqName: fileName:/rawTypeInSignature.kt TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Number] reified:false CONSTRUCTOR visibility:public <> () returnType:.GenericInv.GenericInv> [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:GenericInv modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -24,11 +24,11 @@ FILE fqName: fileName:/rawTypeInSignature.kt TYPE_PARAMETER name:T index:0 variance:in superTypes:[kotlin.Number] reified:false CONSTRUCTOR visibility:public <> () returnType:.GenericIn.GenericIn> [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:GenericIn modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -44,11 +44,11 @@ FILE fqName: fileName:/rawTypeInSignature.kt TYPE_PARAMETER name:T index:0 variance:out superTypes:[kotlin.Number] reified:false CONSTRUCTOR visibility:public <> () returnType:.GenericOut.GenericOut> [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:GenericOut modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -82,7 +82,7 @@ FILE fqName: fileName:/rawTypeInSignature.kt CONSTRUCTOR visibility:public <> (j:.JRaw) returnType:.KRaw [primary] VALUE_PARAMETER name:j index:0 type:.JRaw BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:KRaw modality:FINAL visibility:public superTypes:[.JRaw]' FIELD DELEGATE name:$$delegate_0 type:.JRaw visibility:private [final] EXPRESSION_BODY @@ -165,14 +165,14 @@ FILE fqName: fileName:/rawTypeInSignature.kt list: GET_VAR 'list: @[FlexibleNullability] @[FlexibleMutability] @[RawType] kotlin.collections.MutableList? declared in .KRaw.takesRawList' type=@[FlexibleNullability] @[FlexibleMutability] @[RawType] kotlin.collections.MutableList? 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 [fake_override,operator] declared in .JRaw + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .JRaw $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 .JRaw + public open fun hashCode (): kotlin.Int declared in .JRaw $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 .JRaw + public open fun toString (): kotlin.String declared in .JRaw $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/types/receiverOfIntersectionType.fir.ir.txt b/compiler/testData/ir/irText/types/receiverOfIntersectionType.fir.ir.txt index c52a1435a6f..483795eb74a 100644 --- a/compiler/testData/ir/irText/types/receiverOfIntersectionType.fir.ir.txt +++ b/compiler/testData/ir/irText/types/receiverOfIntersectionType.fir.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/receiverOfIntersectionType.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.K 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -20,37 +20,37 @@ FILE fqName: fileName:/receiverOfIntersectionType.kt $this: VALUE_PARAMETER name: type:.I 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 .K + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .K $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 .K + public open fun hashCode (): kotlin.Int declared in .K $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 .K + public open fun toString (): kotlin.String declared in .K $this: VALUE_PARAMETER name: type:kotlin.Any CLASS INTERFACE name:J modality:ABSTRACT visibility:public superTypes:[.K] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.J 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 .K + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .K $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 .K + public open fun hashCode (): kotlin.Int declared in .K $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 .K + public open fun toString (): kotlin.String declared in .K $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:A modality:FINAL visibility:public superTypes:[.I; .J] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.A CONSTRUCTOR visibility:public <> () returnType:.A [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:A modality:FINAL visibility:public superTypes:[.I; .J]' FUN name:ff visibility:public modality:OPEN <> ($this:.A) returnType:kotlin.Unit overridden: @@ -59,25 +59,25 @@ FILE fqName: fileName:/receiverOfIntersectionType.kt 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 [fake_override,operator] declared in .I - public open fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .J + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .I + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .J $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 .I - public open fun hashCode (): kotlin.Int [fake_override] declared in .J + public open fun hashCode (): kotlin.Int declared in .I + public open fun hashCode (): kotlin.Int declared in .J $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 .I - public open fun toString (): kotlin.String [fake_override] declared in .J + public open fun toString (): kotlin.String declared in .I + public open fun toString (): kotlin.String declared in .J $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:B modality:FINAL visibility:public superTypes:[.I; .J] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.B CONSTRUCTOR visibility:public <> () returnType:.B [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:B modality:FINAL visibility:public superTypes:[.I; .J]' FUN name:ff visibility:public modality:OPEN <> ($this:.B) returnType:kotlin.Unit overridden: @@ -86,19 +86,19 @@ FILE fqName: fileName:/receiverOfIntersectionType.kt 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 [fake_override,operator] declared in .I - public open fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .J + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .I + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .J $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 .I - public open fun hashCode (): kotlin.Int [fake_override] declared in .J + public open fun hashCode (): kotlin.Int declared in .I + public open fun hashCode (): kotlin.Int declared in .J $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 .I - public open fun toString (): kotlin.String [fake_override] declared in .J + public open fun toString (): kotlin.String declared in .I + public open fun toString (): kotlin.String declared in .J $this: VALUE_PARAMETER name: type:kotlin.Any FUN name:testIntersection visibility:public modality:FINAL <> (a:.A, b:.B) returnType:kotlin.Unit VALUE_PARAMETER name:a index:0 type:.A @@ -113,7 +113,7 @@ FILE fqName: fileName:/receiverOfIntersectionType.kt if: CONST Boolean type=kotlin.Boolean value=true then: GET_VAR 'b: .B declared in .testIntersection' type=.B origin=null CALL 'public abstract fun ff (): kotlin.Unit declared in .I' type=kotlin.Unit origin=null - $this: GET_VAR 'val v: .I [val] declared in .testIntersection' type=.I origin=null + $this: GET_VAR 'val v: .I declared in .testIntersection' type=.I origin=null FUN name:testFlexible1 visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY VAR name:v type:.I? [val] @@ -125,7 +125,7 @@ FILE fqName: fileName:/receiverOfIntersectionType.kt if: CONST Boolean type=kotlin.Boolean value=true then: CALL 'public open fun b (): @[FlexibleNullability] .B? declared in .Java' type=@[FlexibleNullability] .B? origin=null CALL 'public abstract fun ff (): kotlin.Unit declared in .I' type=kotlin.Unit origin=null - $this: GET_VAR 'val v: .I? [val] declared in .testFlexible1' type=.I? origin=null + $this: GET_VAR 'val v: .I? declared in .testFlexible1' type=.I? origin=null FUN name:testFlexible2 visibility:public modality:FINAL <> (a:.A, b:.B) returnType:kotlin.Unit VALUE_PARAMETER name:a index:0 type:.A VALUE_PARAMETER name:b index:1 type:.B @@ -143,4 +143,4 @@ FILE fqName: fileName:/receiverOfIntersectionType.kt : @[FlexibleNullability] .B? x: GET_VAR 'b: .B declared in .testFlexible2' type=.B origin=null CALL 'public abstract fun ff (): kotlin.Unit declared in .I' type=kotlin.Unit origin=null - $this: GET_VAR 'val v: .I? [val] declared in .testFlexible2' type=.I? origin=null + $this: GET_VAR 'val v: .I? declared in .testFlexible2' type=.I? origin=null diff --git a/compiler/testData/ir/irText/types/receiverOfIntersectionType.ir.txt b/compiler/testData/ir/irText/types/receiverOfIntersectionType.ir.txt index 3a9ffcfd3e9..d4740563589 100644 --- a/compiler/testData/ir/irText/types/receiverOfIntersectionType.ir.txt +++ b/compiler/testData/ir/irText/types/receiverOfIntersectionType.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/receiverOfIntersectionType.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.K 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -20,37 +20,37 @@ FILE fqName: fileName:/receiverOfIntersectionType.kt $this: VALUE_PARAMETER name: type:.I 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 .K + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .K $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 .K + public open fun hashCode (): kotlin.Int declared in .K $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 .K + public open fun toString (): kotlin.String declared in .K $this: VALUE_PARAMETER name: type:kotlin.Any CLASS INTERFACE name:J modality:ABSTRACT visibility:public superTypes:[.K] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.J 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 .K + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .K $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 .K + public open fun hashCode (): kotlin.Int declared in .K $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 .K + public open fun toString (): kotlin.String declared in .K $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:A modality:FINAL visibility:public superTypes:[.I; .J] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.A CONSTRUCTOR visibility:public <> () returnType:.A [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:A modality:FINAL visibility:public superTypes:[.I; .J]' FUN name:ff visibility:public modality:OPEN <> ($this:.A) returnType:kotlin.Unit overridden: @@ -59,25 +59,25 @@ FILE fqName: fileName:/receiverOfIntersectionType.kt 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 [fake_override,operator] declared in .I - public open fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .J + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .I + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .J $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 .I - public open fun hashCode (): kotlin.Int [fake_override] declared in .J + public open fun hashCode (): kotlin.Int declared in .I + public open fun hashCode (): kotlin.Int declared in .J $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 .I - public open fun toString (): kotlin.String [fake_override] declared in .J + public open fun toString (): kotlin.String declared in .I + public open fun toString (): kotlin.String declared in .J $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:B modality:FINAL visibility:public superTypes:[.I; .J] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.B CONSTRUCTOR visibility:public <> () returnType:.B [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:B modality:FINAL visibility:public superTypes:[.I; .J]' FUN name:ff visibility:public modality:OPEN <> ($this:.B) returnType:kotlin.Unit overridden: @@ -86,19 +86,19 @@ FILE fqName: fileName:/receiverOfIntersectionType.kt 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 [fake_override,operator] declared in .I - public open fun equals (other: kotlin.Any?): kotlin.Boolean [fake_override,operator] declared in .J + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .I + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .J $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 .I - public open fun hashCode (): kotlin.Int [fake_override] declared in .J + public open fun hashCode (): kotlin.Int declared in .I + public open fun hashCode (): kotlin.Int declared in .J $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 .I - public open fun toString (): kotlin.String [fake_override] declared in .J + public open fun toString (): kotlin.String declared in .I + public open fun toString (): kotlin.String declared in .J $this: VALUE_PARAMETER name: type:kotlin.Any FUN name:testIntersection visibility:public modality:FINAL <> (a:.A, b:.B) returnType:kotlin.Unit VALUE_PARAMETER name:a index:0 type:.A @@ -114,7 +114,7 @@ FILE fqName: fileName:/receiverOfIntersectionType.kt then: GET_VAR 'b: .B declared in .testIntersection' type=.B origin=null CALL 'public abstract fun ff (): kotlin.Unit declared in .I' type=kotlin.Unit origin=null $this: TYPE_OP type=.I origin=IMPLICIT_CAST typeOperand=.I - GET_VAR 'val v: .K [val] declared in .testIntersection' type=.K origin=null + GET_VAR 'val v: .K declared in .testIntersection' type=.K origin=null FUN name:testFlexible1 visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY VAR name:v type:@[FlexibleNullability] .K? [val] @@ -128,7 +128,7 @@ FILE fqName: fileName:/receiverOfIntersectionType.kt CALL 'public abstract fun ff (): kotlin.Unit declared in .I' type=kotlin.Unit origin=null $this: TYPE_OP type=.I origin=IMPLICIT_CAST typeOperand=.I TYPE_OP type=.K origin=IMPLICIT_NOTNULL typeOperand=.K - GET_VAR 'val v: @[FlexibleNullability] .K? [val] declared in .testFlexible1' type=@[FlexibleNullability] .K? origin=null + GET_VAR 'val v: @[FlexibleNullability] .K? declared in .testFlexible1' type=@[FlexibleNullability] .K? origin=null FUN name:testFlexible2 visibility:public modality:FINAL <> (a:.A, b:.B) returnType:kotlin.Unit VALUE_PARAMETER name:a index:0 type:.A VALUE_PARAMETER name:b index:1 type:.B @@ -148,4 +148,4 @@ FILE fqName: fileName:/receiverOfIntersectionType.kt CALL 'public abstract fun ff (): kotlin.Unit declared in .I' type=kotlin.Unit origin=null $this: TYPE_OP type=.I origin=IMPLICIT_CAST typeOperand=.I TYPE_OP type=.K origin=IMPLICIT_NOTNULL typeOperand=.K - GET_VAR 'val v: @[FlexibleNullability] .K? [val] declared in .testFlexible2' type=@[FlexibleNullability] .K? origin=null + GET_VAR 'val v: @[FlexibleNullability] .K? declared in .testFlexible2' type=@[FlexibleNullability] .K? origin=null diff --git a/compiler/testData/ir/irText/types/smartCastOnFakeOverrideReceiver.fir.ir.txt b/compiler/testData/ir/irText/types/smartCastOnFakeOverrideReceiver.fir.ir.txt index ae688dc0a78..eff154a1a44 100644 --- a/compiler/testData/ir/irText/types/smartCastOnFakeOverrideReceiver.fir.ir.txt +++ b/compiler/testData/ir/irText/types/smartCastOnFakeOverrideReceiver.fir.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/smartCastOnFakeOverrideReceiver.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.A CONSTRUCTOR visibility:public <> () returnType:.A [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:A modality:OPEN visibility:public superTypes:[kotlin.Any]' FUN name:f visibility:public modality:FINAL <> ($this:.A) returnType:kotlin.Int $this: VALUE_PARAMETER name: type:.A @@ -30,7 +30,7 @@ FILE fqName: fileName:/smartCastOnFakeOverrideReceiver.kt BRANCH if: TYPE_OP type=kotlin.Boolean origin=INSTANCEOF typeOperand=.B GET_VAR 'x: kotlin.Any declared in .A.testA1' type=kotlin.Any origin=null - then: CALL 'public final fun f (): kotlin.Int [fake_override] declared in .B' type=kotlin.Int origin=null + then: CALL 'public final fun f (): kotlin.Int declared in .B' type=kotlin.Int origin=null $this: TYPE_OP type=.B origin=IMPLICIT_CAST typeOperand=.B GET_VAR 'x: kotlin.Any declared in .A.testA1' type=kotlin.Any origin=null BRANCH @@ -45,7 +45,7 @@ FILE fqName: fileName:/smartCastOnFakeOverrideReceiver.kt BRANCH if: TYPE_OP type=kotlin.Boolean origin=INSTANCEOF typeOperand=.B GET_VAR 'x: kotlin.Any declared in .A.testA2' type=kotlin.Any origin=null - then: CALL 'public final fun (): kotlin.Int [fake_override] declared in .B' type=kotlin.Int origin=GET_PROPERTY + then: CALL 'public final fun (): kotlin.Int declared in .B' type=kotlin.Int origin=GET_PROPERTY $this: TYPE_OP type=.B origin=IMPLICIT_CAST typeOperand=.B GET_VAR 'x: kotlin.Any declared in .A.testA2' type=kotlin.Any origin=null BRANCH @@ -53,7 +53,7 @@ FILE fqName: fileName:/smartCastOnFakeOverrideReceiver.kt then: CONST Null type=kotlin.Nothing? value=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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -68,7 +68,7 @@ FILE fqName: fileName:/smartCastOnFakeOverrideReceiver.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.B CONSTRUCTOR visibility:public <> () returnType:.B [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .A' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .A' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:B modality:FINAL visibility:public superTypes:[.A]' FUN name:testB1 visibility:public modality:FINAL <> ($this:.B, x:kotlin.Any) returnType:kotlin.Int? $this: VALUE_PARAMETER name: type:.B @@ -79,7 +79,7 @@ FILE fqName: fileName:/smartCastOnFakeOverrideReceiver.kt BRANCH if: TYPE_OP type=kotlin.Boolean origin=INSTANCEOF typeOperand=.B GET_VAR 'x: kotlin.Any declared in .B.testB1' type=kotlin.Any origin=null - then: CALL 'public final fun f (): kotlin.Int [fake_override] declared in .B' type=kotlin.Int origin=null + then: CALL 'public final fun f (): kotlin.Int declared in .B' type=kotlin.Int origin=null $this: TYPE_OP type=.B origin=IMPLICIT_CAST typeOperand=.B GET_VAR 'x: kotlin.Any declared in .B.testB1' type=kotlin.Any origin=null BRANCH @@ -94,7 +94,7 @@ FILE fqName: fileName:/smartCastOnFakeOverrideReceiver.kt BRANCH if: TYPE_OP type=kotlin.Boolean origin=INSTANCEOF typeOperand=.B GET_VAR 'x: kotlin.Any declared in .B.testB2' type=kotlin.Any origin=null - then: CALL 'public final fun (): kotlin.Int [fake_override] declared in .B' type=kotlin.Int origin=GET_PROPERTY + then: CALL 'public final fun (): kotlin.Int declared in .B' type=kotlin.Int origin=GET_PROPERTY $this: TYPE_OP type=.B origin=IMPLICIT_CAST typeOperand=.B GET_VAR 'x: kotlin.Any declared in .B.testB2' type=kotlin.Any origin=null BRANCH @@ -106,7 +106,7 @@ FILE fqName: fileName:/smartCastOnFakeOverrideReceiver.kt $this: VALUE_PARAMETER name: type:.A PROPERTY FAKE_OVERRIDE name:aVal visibility:public modality:FINAL [fake_override,val] overridden: - public final aVal: kotlin.Int [val] + public final aVal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.A) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:aVal visibility:public modality:FINAL [fake_override,val] overridden: @@ -124,23 +124,23 @@ FILE fqName: fileName:/smartCastOnFakeOverrideReceiver.kt VALUE_PARAMETER name:x index:0 type: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 [fake_override,operator] declared in .A + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .A $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 .A + public open fun hashCode (): kotlin.Int declared in .A $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 .A + public open fun toString (): kotlin.String declared in .A $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:GA modality:OPEN visibility:public superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.GA.GA> TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false CONSTRUCTOR visibility:public <> () returnType:.GA.GA> [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:GA modality:OPEN visibility:public superTypes:[kotlin.Any]' FUN name:f visibility:public modality:FINAL <> ($this:.GA.GA>) returnType:kotlin.Int $this: VALUE_PARAMETER name: type:.GA.GA> @@ -160,7 +160,7 @@ FILE fqName: fileName:/smartCastOnFakeOverrideReceiver.kt receiver: GET_VAR ': .GA.GA> declared in .GA.' type=.GA.GA> 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -177,7 +177,7 @@ FILE fqName: fileName:/smartCastOnFakeOverrideReceiver.kt TYPE_PARAMETER name:S index:1 variance: superTypes:[kotlin.Any?] reified:false CONSTRUCTOR visibility:public <> () returnType:.GB.GB, S of .GB> [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .GA' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .GA' : T of .GB INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:GB modality:FINAL visibility:public superTypes:[.GA.GB>]' FUN name:testGB1 visibility:public modality:FINAL <> ($this:.GB.GB, S of .GB>, a:kotlin.Any) returnType:kotlin.Unit @@ -188,11 +188,11 @@ FILE fqName: fileName:/smartCastOnFakeOverrideReceiver.kt TYPE_OP type=.GB origin=CAST typeOperand=.GB GET_VAR 'a: kotlin.Any declared in .GB.testGB1' type=kotlin.Any origin=null TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit - CALL 'public final fun f (): kotlin.Int [fake_override] declared in .GB' type=kotlin.Int origin=null + CALL 'public final fun f (): kotlin.Int declared in .GB' type=kotlin.Int origin=null $this: TYPE_OP type=.GB origin=IMPLICIT_CAST typeOperand=.GB GET_VAR 'a: kotlin.Any declared in .GB.testGB1' type=kotlin.Any origin=null TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit - CALL 'public final fun (): kotlin.Int [fake_override] declared in .GB' type=kotlin.Int origin=GET_PROPERTY + CALL 'public final fun (): kotlin.Int declared in .GB' type=kotlin.Int origin=GET_PROPERTY $this: TYPE_OP type=.GB origin=IMPLICIT_CAST typeOperand=.GB GET_VAR 'a: kotlin.Any declared in .GB.testGB1' type=kotlin.Any origin=null FUN FAKE_OVERRIDE name:f visibility:public modality:FINAL <> ($this:.GA.GA>) returnType:kotlin.Int [fake_override] @@ -201,7 +201,7 @@ FILE fqName: fileName:/smartCastOnFakeOverrideReceiver.kt $this: VALUE_PARAMETER name: type:.GA.GA> PROPERTY FAKE_OVERRIDE name:aVal visibility:public modality:FINAL [fake_override,val] overridden: - public final aVal: kotlin.Int [val] + public final aVal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.GA.GA>) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:aVal visibility:public modality:FINAL [fake_override,val] overridden: @@ -209,14 +209,14 @@ FILE fqName: fileName:/smartCastOnFakeOverrideReceiver.kt $this: VALUE_PARAMETER name: type:.GA.GA> 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 .GA + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .GA $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 .GA + public open fun hashCode (): kotlin.Int declared in .GA $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 .GA + public open fun toString (): kotlin.String declared in .GA $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/types/smartCastOnFakeOverrideReceiver.ir.txt b/compiler/testData/ir/irText/types/smartCastOnFakeOverrideReceiver.ir.txt index 18f80025aac..371436c499f 100644 --- a/compiler/testData/ir/irText/types/smartCastOnFakeOverrideReceiver.ir.txt +++ b/compiler/testData/ir/irText/types/smartCastOnFakeOverrideReceiver.ir.txt @@ -3,7 +3,7 @@ FILE fqName: fileName:/smartCastOnFakeOverrideReceiver.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.A CONSTRUCTOR visibility:public <> () returnType:.A [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:A modality:OPEN visibility:public superTypes:[kotlin.Any]' FUN name:f visibility:public modality:FINAL <> ($this:.A) returnType:kotlin.Int $this: VALUE_PARAMETER name: type:.A @@ -30,7 +30,7 @@ FILE fqName: fileName:/smartCastOnFakeOverrideReceiver.kt BRANCH if: TYPE_OP type=kotlin.Boolean origin=INSTANCEOF typeOperand=.B GET_VAR 'x: kotlin.Any declared in .A.testA1' type=kotlin.Any origin=null - then: CALL 'public final fun f (): kotlin.Int [fake_override] declared in .B' type=kotlin.Int origin=null + then: CALL 'public final fun f (): kotlin.Int declared in .B' type=kotlin.Int origin=null $this: TYPE_OP type=.B origin=IMPLICIT_CAST typeOperand=.B GET_VAR 'x: kotlin.Any declared in .A.testA1' type=kotlin.Any origin=null BRANCH @@ -45,7 +45,7 @@ FILE fqName: fileName:/smartCastOnFakeOverrideReceiver.kt BRANCH if: TYPE_OP type=kotlin.Boolean origin=INSTANCEOF typeOperand=.B GET_VAR 'x: kotlin.Any declared in .A.testA2' type=kotlin.Any origin=null - then: CALL 'public final fun (): kotlin.Int [fake_override] declared in .B' type=kotlin.Int origin=GET_PROPERTY + then: CALL 'public final fun (): kotlin.Int declared in .B' type=kotlin.Int origin=GET_PROPERTY $this: TYPE_OP type=.B origin=IMPLICIT_CAST typeOperand=.B GET_VAR 'x: kotlin.Any declared in .A.testA2' type=kotlin.Any origin=null BRANCH @@ -53,7 +53,7 @@ FILE fqName: fileName:/smartCastOnFakeOverrideReceiver.kt then: CONST Null type=kotlin.Nothing? value=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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -68,7 +68,7 @@ FILE fqName: fileName:/smartCastOnFakeOverrideReceiver.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.B CONSTRUCTOR visibility:public <> () returnType:.B [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .A' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .A' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:B modality:FINAL visibility:public superTypes:[.A]' FUN name:testB1 visibility:public modality:FINAL <> ($this:.B, x:kotlin.Any) returnType:kotlin.Int? $this: VALUE_PARAMETER name: type:.B @@ -79,7 +79,7 @@ FILE fqName: fileName:/smartCastOnFakeOverrideReceiver.kt BRANCH if: TYPE_OP type=kotlin.Boolean origin=INSTANCEOF typeOperand=.B GET_VAR 'x: kotlin.Any declared in .B.testB1' type=kotlin.Any origin=null - then: CALL 'public final fun f (): kotlin.Int [fake_override] declared in .B' type=kotlin.Int origin=null + then: CALL 'public final fun f (): kotlin.Int declared in .B' type=kotlin.Int origin=null $this: TYPE_OP type=.B origin=IMPLICIT_CAST typeOperand=.B GET_VAR 'x: kotlin.Any declared in .B.testB1' type=kotlin.Any origin=null BRANCH @@ -94,7 +94,7 @@ FILE fqName: fileName:/smartCastOnFakeOverrideReceiver.kt BRANCH if: TYPE_OP type=kotlin.Boolean origin=INSTANCEOF typeOperand=.B GET_VAR 'x: kotlin.Any declared in .B.testB2' type=kotlin.Any origin=null - then: CALL 'public final fun (): kotlin.Int [fake_override] declared in .B' type=kotlin.Int origin=GET_PROPERTY + then: CALL 'public final fun (): kotlin.Int declared in .B' type=kotlin.Int origin=GET_PROPERTY $this: TYPE_OP type=.B origin=IMPLICIT_CAST typeOperand=.B GET_VAR 'x: kotlin.Any declared in .B.testB2' type=kotlin.Any origin=null BRANCH @@ -106,7 +106,7 @@ FILE fqName: fileName:/smartCastOnFakeOverrideReceiver.kt $this: VALUE_PARAMETER name: type:.A PROPERTY FAKE_OVERRIDE name:aVal visibility:public modality:FINAL [fake_override,val] overridden: - public final aVal: kotlin.Int [val] + public final aVal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.A) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:aVal visibility:public modality:FINAL [fake_override,val] overridden: @@ -124,23 +124,23 @@ FILE fqName: fileName:/smartCastOnFakeOverrideReceiver.kt VALUE_PARAMETER name:x index:0 type: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 [fake_override,operator] declared in .A + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .A $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 .A + public open fun hashCode (): kotlin.Int declared in .A $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 .A + public open fun toString (): kotlin.String declared in .A $this: VALUE_PARAMETER name: type:kotlin.Any CLASS CLASS name:GA modality:OPEN visibility:public superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.GA.GA> TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.Any?] reified:false CONSTRUCTOR visibility:public <> () returnType:.GA.GA> [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:GA modality:OPEN visibility:public superTypes:[kotlin.Any]' FUN name:f visibility:public modality:FINAL <> ($this:.GA.GA>) returnType:kotlin.Int $this: VALUE_PARAMETER name: type:.GA.GA> @@ -160,7 +160,7 @@ FILE fqName: fileName:/smartCastOnFakeOverrideReceiver.kt receiver: GET_VAR ': .GA.GA> declared in .GA.' type=.GA.GA> 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -177,7 +177,7 @@ FILE fqName: fileName:/smartCastOnFakeOverrideReceiver.kt TYPE_PARAMETER name:S index:1 variance: superTypes:[kotlin.Any?] reified:false CONSTRUCTOR visibility:public <> () returnType:.GB.GB, S of .GB> [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .GA' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .GA' : T of .GB INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:GB modality:FINAL visibility:public superTypes:[.GA.GB>]' FUN name:testGB1 visibility:public modality:FINAL <> ($this:.GB.GB, S of .GB>, a:kotlin.Any) returnType:kotlin.Unit @@ -188,11 +188,11 @@ FILE fqName: fileName:/smartCastOnFakeOverrideReceiver.kt TYPE_OP type=.GB origin=CAST typeOperand=.GB GET_VAR 'a: kotlin.Any declared in .GB.testGB1' type=kotlin.Any origin=null TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit - CALL 'public final fun f (): kotlin.Int [fake_override] declared in .GB' type=kotlin.Int origin=null + CALL 'public final fun f (): kotlin.Int declared in .GB' type=kotlin.Int origin=null $this: TYPE_OP type=.GB origin=IMPLICIT_CAST typeOperand=.GB GET_VAR 'a: kotlin.Any declared in .GB.testGB1' type=kotlin.Any origin=null TYPE_OP type=kotlin.Unit origin=IMPLICIT_COERCION_TO_UNIT typeOperand=kotlin.Unit - CALL 'public final fun (): kotlin.Int [fake_override] declared in .GB' type=kotlin.Int origin=GET_PROPERTY + CALL 'public final fun (): kotlin.Int declared in .GB' type=kotlin.Int origin=GET_PROPERTY $this: TYPE_OP type=.GB origin=IMPLICIT_CAST typeOperand=.GB GET_VAR 'a: kotlin.Any declared in .GB.testGB1' type=kotlin.Any origin=null FUN FAKE_OVERRIDE name:f visibility:public modality:FINAL <> ($this:.GA.GB>) returnType:kotlin.Int [fake_override] @@ -201,7 +201,7 @@ FILE fqName: fileName:/smartCastOnFakeOverrideReceiver.kt $this: VALUE_PARAMETER name: type:.GA.GB> PROPERTY FAKE_OVERRIDE name:aVal visibility:public modality:FINAL [fake_override,val] overridden: - public final aVal: kotlin.Int [val] + public final aVal: kotlin.Int FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.GA.GB>) returnType:kotlin.Int [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:aVal visibility:public modality:FINAL [fake_override,val] overridden: @@ -209,14 +209,14 @@ FILE fqName: fileName:/smartCastOnFakeOverrideReceiver.kt $this: VALUE_PARAMETER name: type:.GA.GB> 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 .GA + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .GA $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 .GA + public open fun hashCode (): kotlin.Int declared in .GA $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 .GA + public open fun toString (): kotlin.String declared in .GA $this: VALUE_PARAMETER name: type:kotlin.Any diff --git a/compiler/testData/ir/irText/types/smartCastOnReceiverOfGenericType.ir.txt b/compiler/testData/ir/irText/types/smartCastOnReceiverOfGenericType.ir.txt index 08def90cac4..74dd922196f 100644 --- a/compiler/testData/ir/irText/types/smartCastOnReceiverOfGenericType.ir.txt +++ b/compiler/testData/ir/irText/types/smartCastOnReceiverOfGenericType.ir.txt @@ -74,7 +74,7 @@ FILE fqName: fileName:/smartCastOnReceiverOfGenericType.kt CONSTRUCTOR visibility:public <> (value:T of .Cell) returnType:.Cell.Cell> [primary] VALUE_PARAMETER name:value index:0 type:T of .Cell BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Cell modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:value visibility:public modality:FINAL [var] FIELD PROPERTY_BACKING_FIELD name:value type:T of .Cell visibility:private @@ -97,7 +97,7 @@ FILE fqName: fileName:/smartCastOnReceiverOfGenericType.kt value: GET_VAR ': T of .Cell declared in .Cell.' type=T of .Cell 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -113,7 +113,7 @@ FILE fqName: fileName:/smartCastOnReceiverOfGenericType.kt TYPE_PARAMETER name:T1 index:0 variance: superTypes:[kotlin.Any?] reified:false CONSTRUCTOR visibility:public <> () returnType:.Outer.Outer> [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Outer modality:FINAL visibility:public superTypes:[kotlin.Any]' CLASS CLASS name:Inner modality:FINAL visibility:public [inner] superTypes:[kotlin.Any] $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Outer.Inner.Outer.Inner, T1 of .Outer> @@ -121,7 +121,7 @@ FILE fqName: fileName:/smartCastOnReceiverOfGenericType.kt CONSTRUCTOR visibility:public <> ($this:.Outer.Outer>) returnType:.Outer.Inner.Outer.Inner, T1 of .Outer> [primary] $outer: VALUE_PARAMETER name: type:.Outer.Outer> BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Inner modality:FINAL visibility:public [inner] superTypes:[kotlin.Any]' FUN name:use visibility:public modality:FINAL <> ($this:.Outer.Inner.Outer.Inner, T1 of .Outer>, x1:T1 of .Outer, x2:T2 of .Outer.Inner) returnType:kotlin.Unit $this: VALUE_PARAMETER name: type:.Outer.Inner.Outer.Inner, T1 of .Outer> @@ -130,7 +130,7 @@ FILE fqName: fileName:/smartCastOnReceiverOfGenericType.kt 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -143,7 +143,7 @@ FILE fqName: fileName:/smartCastOnReceiverOfGenericType.kt $this: VALUE_PARAMETER name: type: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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/types/starProjection.ir.txt b/compiler/testData/ir/irText/types/starProjection.ir.txt index cfa79534ee2..fd03ca02435 100644 --- a/compiler/testData/ir/irText/types/starProjection.ir.txt +++ b/compiler/testData/ir/irText/types/starProjection.ir.txt @@ -4,7 +4,7 @@ FILE fqName: fileName:/starProjection.kt TYPE_PARAMETER name:T index:0 variance:in superTypes:[kotlin.Any?] reified:false 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -19,7 +19,7 @@ FILE fqName: fileName:/starProjection.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.C CONSTRUCTOR visibility:public <> () returnType:.C [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C modality:ABSTRACT visibility:public superTypes:[kotlin.Any]' FUN name:dispatchResumeWithException visibility:public modality:ABSTRACT <> ($this:.C, exception:kotlin.Throwable, continuation:.Continuation<*>) returnType:kotlin.Boolean $this: VALUE_PARAMETER name: type:.C @@ -27,7 +27,7 @@ FILE fqName: fileName:/starProjection.kt VALUE_PARAMETER name:continuation index:1 type:.Continuation<*> 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] diff --git a/compiler/testData/ir/irText/types/typeAliasWithUnsafeVariance.fir.ir.txt b/compiler/testData/ir/irText/types/typeAliasWithUnsafeVariance.fir.ir.txt index dcfc355a4e9..c786696e6a9 100644 --- a/compiler/testData/ir/irText/types/typeAliasWithUnsafeVariance.fir.ir.txt +++ b/compiler/testData/ir/irText/types/typeAliasWithUnsafeVariance.fir.ir.txt @@ -7,7 +7,7 @@ FILE fqName: fileName:/typeAliasWithUnsafeVariance.kt CONSTRUCTOR visibility:public <> (action:kotlin.Function1.Tag, kotlin.Unit>) returnType:.Tag.Tag> [primary] VALUE_PARAMETER name:action index:0 type:kotlin.Function1.Tag, kotlin.Unit> BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Tag modality:FINAL visibility:public [data] superTypes:[kotlin.Any]' PROPERTY name:action visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:action type:kotlin.Function1.Tag, kotlin.Unit> visibility:private [final] @@ -23,7 +23,7 @@ FILE fqName: fileName:/typeAliasWithUnsafeVariance.kt FUN GENERATED_DATA_CLASS_MEMBER name:component1 visibility:public modality:FINAL <> ($this:.Tag.Tag>) returnType:kotlin.Function1.Tag, kotlin.Unit> [operator] $this: VALUE_PARAMETER name: type:.Tag.Tag> BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Function1.Tag, kotlin.Unit> [operator] declared in .Tag' + RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Function1.Tag, kotlin.Unit> declared in .Tag' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:action type:kotlin.Function1.Tag, kotlin.Unit> visibility:private [final]' type=kotlin.Function1.Tag, kotlin.Unit> origin=null receiver: GET_VAR ': .Tag.Tag> declared in .Tag.component1' type=.Tag.Tag> origin=null FUN GENERATED_DATA_CLASS_MEMBER name:copy visibility:public modality:FINAL <> ($this:.Tag.Tag>, action:kotlin.Function1.Tag, kotlin.Unit>) returnType:.Tag.Tag> @@ -34,12 +34,12 @@ FILE fqName: fileName:/typeAliasWithUnsafeVariance.kt receiver: GET_VAR ': .Tag.Tag> declared in .Tag.copy' type=.Tag.Tag> origin=null BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun copy (action: kotlin.Function1.Tag, kotlin.Unit>): .Tag.Tag> declared in .Tag' - CONSTRUCTOR_CALL 'public constructor (action: kotlin.Function1.Tag, kotlin.Unit>) [primary] declared in .Tag' type=.Tag.Tag> origin=null + CONSTRUCTOR_CALL 'public constructor (action: kotlin.Function1.Tag, kotlin.Unit>) declared in .Tag' type=.Tag.Tag> origin=null : kotlin.Any action: GET_VAR 'action: kotlin.Function1.Tag, kotlin.Unit> declared in .Tag.copy' type=kotlin.Function1.Tag, kotlin.Unit> origin=null FUN GENERATED_DATA_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:.Tag.Tag>, other:kotlin.Any?) returnType:kotlin.Boolean [operator] overridden: - public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any $this: VALUE_PARAMETER name: type:.Tag.Tag> VALUE_PARAMETER name:other index:0 type:kotlin.Any? BLOCK_BODY @@ -48,28 +48,28 @@ FILE fqName: fileName:/typeAliasWithUnsafeVariance.kt 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 ': .Tag.Tag> declared in .Tag.equals' type=.Tag.Tag> origin=null arg1: GET_VAR 'other: kotlin.Any? declared in .Tag.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Tag' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Tag' CONST Boolean type=kotlin.Boolean value=true WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=.Tag.Tag> GET_VAR 'other: kotlin.Any? declared in .Tag.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Tag' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Tag' CONST Boolean type=kotlin.Boolean value=false VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:.Tag.Tag> [val] TYPE_OP type=.Tag.Tag> origin=CAST typeOperand=.Tag.Tag> GET_VAR 'other: kotlin.Any? declared in .Tag.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 + if: CALL 'public final fun not (): kotlin.Boolean 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:action type:kotlin.Function1.Tag, kotlin.Unit> visibility:private [final]' type=kotlin.Function1.Tag, kotlin.Unit> origin=null receiver: GET_VAR ': .Tag.Tag> declared in .Tag.equals' type=.Tag.Tag> origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:action type:kotlin.Function1.Tag, kotlin.Unit> visibility:private [final]' type=kotlin.Function1.Tag, kotlin.Unit> origin=null - receiver: GET_VAR 'val tmp_0: .Tag.Tag> [val] declared in .Tag.equals' type=.Tag.Tag> origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Tag' + receiver: GET_VAR 'val tmp_0: .Tag.Tag> declared in .Tag.equals' type=.Tag.Tag> origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Tag' CONST Boolean type=kotlin.Boolean value=false - RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Tag' + RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Tag' CONST Boolean type=kotlin.Boolean value=true FUN GENERATED_DATA_CLASS_MEMBER name:hashCode visibility:public modality:OPEN <> ($this:.Tag.Tag>) returnType:kotlin.Int overridden: @@ -77,7 +77,7 @@ FILE fqName: fileName:/typeAliasWithUnsafeVariance.kt $this: VALUE_PARAMETER name: type:.Tag.Tag> BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun hashCode (): kotlin.Int declared in .Tag' - CALL 'public open fun hashCode (): kotlin.Int [fake_override] declared in kotlin.Function1' type=kotlin.Int origin=null + CALL 'public open fun hashCode (): kotlin.Int declared in kotlin.Function1' type=kotlin.Int origin=null $this: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:action type:kotlin.Function1.Tag, kotlin.Unit> visibility:private [final]' type=kotlin.Function1.Tag, kotlin.Unit> origin=null receiver: GET_VAR ': .Tag.Tag> declared in .Tag.hashCode' type=.Tag.Tag> origin=null FUN GENERATED_DATA_CLASS_MEMBER name:toString visibility:public modality:OPEN <> ($this:.Tag.Tag>) returnType:kotlin.String diff --git a/compiler/testData/ir/irText/types/typeAliasWithUnsafeVariance.ir.txt b/compiler/testData/ir/irText/types/typeAliasWithUnsafeVariance.ir.txt index d4ebb8b223a..f690eded4fe 100644 --- a/compiler/testData/ir/irText/types/typeAliasWithUnsafeVariance.ir.txt +++ b/compiler/testData/ir/irText/types/typeAliasWithUnsafeVariance.ir.txt @@ -7,7 +7,7 @@ FILE fqName: fileName:/typeAliasWithUnsafeVariance.kt CONSTRUCTOR visibility:public <> (action:kotlin.Function1<@[UnsafeVariance] RenderingT of .Tag, kotlin.Unit>{ .Action.Tag> }) returnType:.Tag.Tag> [primary] VALUE_PARAMETER name:action index:0 type:kotlin.Function1<@[UnsafeVariance] RenderingT of .Tag, kotlin.Unit>{ .Action.Tag> } BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Tag modality:FINAL visibility:public [data] superTypes:[kotlin.Any]' PROPERTY name:action visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:action type:kotlin.Function1<@[UnsafeVariance] RenderingT of .Tag, kotlin.Unit>{ .Action.Tag> } visibility:private [final] @@ -23,7 +23,7 @@ FILE fqName: fileName:/typeAliasWithUnsafeVariance.kt FUN GENERATED_DATA_CLASS_MEMBER name:component1 visibility:public modality:FINAL <> ($this:.Tag.Tag>) returnType:kotlin.Function1<@[UnsafeVariance] RenderingT of .Tag, kotlin.Unit>{ .Action.Tag> } [operator] $this: VALUE_PARAMETER name: type:.Tag.Tag> BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Function1<@[UnsafeVariance] RenderingT of .Tag, kotlin.Unit>{ .Action.Tag> } [operator] declared in .Tag' + RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Function1<@[UnsafeVariance] RenderingT of .Tag, kotlin.Unit>{ .Action.Tag> } declared in .Tag' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:action type:kotlin.Function1<@[UnsafeVariance] RenderingT of .Tag, kotlin.Unit>{ .Action.Tag> } visibility:private [final]' type=kotlin.Function1<@[UnsafeVariance] RenderingT of .Tag, kotlin.Unit>{ .Action.Tag> } origin=null receiver: GET_VAR ': .Tag.Tag> declared in .Tag.component1' type=.Tag.Tag> origin=null FUN GENERATED_DATA_CLASS_MEMBER name:copy visibility:public modality:FINAL <> ($this:.Tag.Tag>, action:kotlin.Function1<@[UnsafeVariance] RenderingT of .Tag, kotlin.Unit>{ .Action.Tag> }) returnType:.Tag.Tag> @@ -34,7 +34,7 @@ FILE fqName: fileName:/typeAliasWithUnsafeVariance.kt receiver: GET_VAR ': .Tag.Tag> declared in .Tag.copy' type=.Tag.Tag> origin=null BLOCK_BODY RETURN type=kotlin.Nothing from='public final fun copy (action: kotlin.Function1<@[UnsafeVariance] RenderingT of .Tag, kotlin.Unit>{ .Action.Tag> }): .Tag.Tag> declared in .Tag' - CONSTRUCTOR_CALL 'public constructor (action: kotlin.Function1<@[UnsafeVariance] RenderingT of .Tag, kotlin.Unit>{ .Action.Tag> }) [primary] declared in .Tag' type=.Tag.Tag> origin=null + CONSTRUCTOR_CALL 'public constructor (action: kotlin.Function1<@[UnsafeVariance] RenderingT of .Tag, kotlin.Unit>{ .Action.Tag> }) declared in .Tag' type=.Tag.Tag> origin=null : RenderingT of .Tag action: GET_VAR 'action: kotlin.Function1<@[UnsafeVariance] RenderingT of .Tag, kotlin.Unit>{ .Action.Tag> } declared in .Tag.copy' type=kotlin.Function1<@[UnsafeVariance] RenderingT of .Tag, kotlin.Unit>{ .Action.Tag> } origin=null FUN GENERATED_DATA_CLASS_MEMBER name:toString visibility:public modality:OPEN <> ($this:.Tag.Tag>) returnType:kotlin.String @@ -55,12 +55,12 @@ FILE fqName: fileName:/typeAliasWithUnsafeVariance.kt $this: VALUE_PARAMETER name: type:.Tag.Tag> BLOCK_BODY RETURN type=kotlin.Nothing from='public open fun hashCode (): kotlin.Int declared in .Tag' - CALL 'public open fun hashCode (): kotlin.Int [fake_override] declared in kotlin.Function1' type=kotlin.Int origin=null + CALL 'public open fun hashCode (): kotlin.Int declared in kotlin.Function1' type=kotlin.Int origin=null $this: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:action type:kotlin.Function1<@[UnsafeVariance] RenderingT of .Tag, kotlin.Unit>{ .Action.Tag> } visibility:private [final]' type=kotlin.Function1<@[UnsafeVariance] RenderingT of .Tag, kotlin.Unit>{ .Action.Tag> } origin=null receiver: GET_VAR ': .Tag.Tag> declared in .Tag.hashCode' type=.Tag.Tag> origin=null FUN GENERATED_DATA_CLASS_MEMBER name:equals visibility:public modality:OPEN <> ($this:.Tag.Tag>, other:kotlin.Any?) returnType:kotlin.Boolean [operator] overridden: - public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in kotlin.Any $this: VALUE_PARAMETER name: type:.Tag.Tag> VALUE_PARAMETER name:other index:0 type:kotlin.Any? BLOCK_BODY @@ -69,28 +69,28 @@ FILE fqName: fileName:/typeAliasWithUnsafeVariance.kt 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 ': .Tag.Tag> declared in .Tag.equals' type=.Tag.Tag> origin=null arg1: GET_VAR 'other: kotlin.Any? declared in .Tag.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Tag' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Tag' CONST Boolean type=kotlin.Boolean value=true WHEN type=kotlin.Unit origin=null BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=.Tag.Tag> GET_VAR 'other: kotlin.Any? declared in .Tag.equals' type=kotlin.Any? origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Tag' + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Tag' CONST Boolean type=kotlin.Boolean value=false VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:.Tag.Tag> [val] TYPE_OP type=.Tag.Tag> origin=CAST typeOperand=.Tag.Tag> GET_VAR 'other: kotlin.Any? declared in .Tag.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 + if: CALL 'public final fun not (): kotlin.Boolean 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:action type:kotlin.Function1<@[UnsafeVariance] RenderingT of .Tag, kotlin.Unit>{ .Action.Tag> } visibility:private [final]' type=kotlin.Function1<@[UnsafeVariance] RenderingT of .Tag, kotlin.Unit>{ .Action.Tag> } origin=null receiver: GET_VAR ': .Tag.Tag> declared in .Tag.equals' type=.Tag.Tag> origin=null arg1: GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:action type:kotlin.Function1<@[UnsafeVariance] RenderingT of .Tag, kotlin.Unit>{ .Action.Tag> } visibility:private [final]' type=kotlin.Function1<@[UnsafeVariance] RenderingT of .Tag, kotlin.Unit>{ .Action.Tag> } origin=null - receiver: GET_VAR 'val tmp_0: .Tag.Tag> [val] declared in .Tag.equals' type=.Tag.Tag> origin=null - then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Tag' + receiver: GET_VAR 'val tmp_0: .Tag.Tag> declared in .Tag.equals' type=.Tag.Tag> origin=null + then: RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Tag' CONST Boolean type=kotlin.Boolean value=false - RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean [operator] declared in .Tag' + RETURN type=kotlin.Nothing from='public open fun equals (other: kotlin.Any?): kotlin.Boolean declared in .Tag' CONST Boolean type=kotlin.Boolean value=true FUN name:getTag visibility:public modality:FINAL <> () returnType:.Tag<*> BLOCK_BODY diff --git a/compiler/testData/ir/irText/types/typeCheckOnDefinitelyNotNull.ir.txt b/compiler/testData/ir/irText/types/typeCheckOnDefinitelyNotNull.ir.txt index 79f0ef524f2..7d3c13c882f 100644 --- a/compiler/testData/ir/irText/types/typeCheckOnDefinitelyNotNull.ir.txt +++ b/compiler/testData/ir/irText/types/typeCheckOnDefinitelyNotNull.ir.txt @@ -17,7 +17,7 @@ FILE fqName: fileName:/typeCheckOnDefinitelyNotNull.kt TYPE_PARAMETER name:T index:0 variance: superTypes:[kotlin.CharSequence?] reified:true VALUE_PARAMETER name:x index:0 type:kotlin.Any BLOCK_BODY - RETURN type=kotlin.Nothing from='public final fun implicitAsFoo (x: kotlin.Any): kotlin.Int [inline] declared in ' + RETURN type=kotlin.Nothing from='public final fun implicitAsFoo (x: kotlin.Any): kotlin.Int declared in ' WHEN type=kotlin.Int origin=IF BRANCH if: TYPE_OP type=kotlin.Boolean origin=NOT_INSTANCEOF typeOperand=T of .implicitAsFoo diff --git a/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/backend/handlers/IrTextDumpHandler.kt b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/backend/handlers/IrTextDumpHandler.kt index f909c1d223a..d0e5be56ef6 100644 --- a/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/backend/handlers/IrTextDumpHandler.kt +++ b/compiler/tests-common-new/tests/org/jetbrains/kotlin/test/backend/handlers/IrTextDumpHandler.kt @@ -65,6 +65,7 @@ class IrTextDumpHandler(testServices: TestServices) : AbstractIrHandler(testServ val dumpOptions = DumpIrTreeOptions( normalizeNames = true, printFacadeClassInFqNames = false, + printFlagsInDeclarationReferences = false, ) info.processAllIrModuleFragments(module) { irModuleFragment, moduleName -> diff --git a/plugins/fir-plugin-prototype/testData/box/classWithAllPropertiesConstructor.fir.ir.txt b/plugins/fir-plugin-prototype/testData/box/classWithAllPropertiesConstructor.fir.ir.txt index b3fe0a97491..2be835a4be4 100644 --- a/plugins/fir-plugin-prototype/testData/box/classWithAllPropertiesConstructor.fir.ir.txt +++ b/plugins/fir-plugin-prototype/testData/box/classWithAllPropertiesConstructor.fir.ir.txt @@ -5,7 +5,7 @@ FILE fqName: fileName:/module_a_classWithAllPropertiesConstructor.kt CONSTRUCTOR visibility:public <> (s:kotlin.String) returnType:.A [primary] VALUE_PARAMETER name:s index:0 type:kotlin.String BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:A modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:s visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:s type:kotlin.String visibility:private [final] @@ -20,7 +20,7 @@ FILE fqName: fileName:/module_a_classWithAllPropertiesConstructor.kt receiver: GET_VAR ': .A declared in .A.' type=.A 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -36,7 +36,7 @@ FILE fqName: fileName:/module_a_classWithAllPropertiesConstructor.kt CONSTRUCTOR visibility:public <> (s:kotlin.String) returnType:.B [primary] VALUE_PARAMETER name:s index:0 type:kotlin.String BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:B modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:s visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:s type:kotlin.String visibility:private [final] @@ -51,7 +51,7 @@ FILE fqName: fileName:/module_a_classWithAllPropertiesConstructor.kt receiver: GET_VAR ': .B declared in .B.' type=.B 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -67,7 +67,7 @@ FILE fqName: fileName:/module_a_classWithAllPropertiesConstructor.kt CONSTRUCTOR visibility:public <> (s:kotlin.String) returnType:.C [primary] VALUE_PARAMETER name:s index:0 type:kotlin.String BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C modality:FINAL visibility:public superTypes:[kotlin.Any]' PROPERTY name:s visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:s type:kotlin.String visibility:private [final] @@ -82,7 +82,7 @@ FILE fqName: fileName:/module_a_classWithAllPropertiesConstructor.kt receiver: GET_VAR ': .C declared in .C.' type=.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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -99,12 +99,12 @@ FILE fqName: fileName:/module_a_classWithAllPropertiesConstructor.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Base CONSTRUCTOR visibility:public <> () returnType:.Base [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Base modality:OPEN visibility:public superTypes:[kotlin.Any]' PROPERTY name:a visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:a type:.A visibility:private [final] EXPRESSION_BODY - CONSTRUCTOR_CALL 'public constructor (s: kotlin.String) [primary] declared in .A' type=.A origin=null + CONSTRUCTOR_CALL 'public constructor (s: kotlin.String) declared in .A' type=.A origin=null s: CONST String type=kotlin.String value="a" FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:.Base) returnType:.A correspondingProperty: PROPERTY name:a visibility:public modality:FINAL [val] @@ -116,7 +116,7 @@ FILE fqName: fileName:/module_a_classWithAllPropertiesConstructor.kt PROPERTY name:b visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:b type:.B visibility:private [final] EXPRESSION_BODY - CONSTRUCTOR_CALL 'public constructor (s: kotlin.String) [primary] declared in .B' type=.B origin=null + CONSTRUCTOR_CALL 'public constructor (s: kotlin.String) declared in .B' type=.B origin=null s: CONST String type=kotlin.String value="b" FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:.Base) returnType:.B correspondingProperty: PROPERTY name:b visibility:public modality:FINAL [val] @@ -127,7 +127,7 @@ FILE fqName: fileName:/module_a_classWithAllPropertiesConstructor.kt receiver: GET_VAR ': .Base declared in .Base.' type=.Base 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -142,7 +142,7 @@ FILE fqName: fileName:/module_a_classWithAllPropertiesConstructor.kt VALUE_PARAMETER name:a index:0 type:.A VALUE_PARAMETER name:b index:1 type:.B BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' Module: b FILE fqName: fileName:/Derived.kt CLASS CLASS name:Derived modality:FINAL visibility:public superTypes:[.Base] @@ -151,12 +151,12 @@ FILE fqName: fileName:/Derived.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.Derived CONSTRUCTOR visibility:public <> () returnType:.Derived [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in .Base' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in .Base' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Derived modality:FINAL visibility:public superTypes:[.Base]' PROPERTY name:c visibility:public modality:FINAL [val] FIELD PROPERTY_BACKING_FIELD name:c type:.C visibility:private [final] EXPRESSION_BODY - CONSTRUCTOR_CALL 'public constructor (s: kotlin.String) [primary] declared in .C' type=.C origin=null + CONSTRUCTOR_CALL 'public constructor (s: kotlin.String) declared in .C' type=.C origin=null s: CONST String type=kotlin.String value="c" FUN DEFAULT_PROPERTY_ACCESSOR name: visibility:public modality:FINAL <> ($this:.Derived) returnType:.C correspondingProperty: PROPERTY name:c visibility:public modality:FINAL [val] @@ -167,7 +167,7 @@ FILE fqName: fileName:/Derived.kt receiver: GET_VAR ': .Derived declared in .Derived.' type=.Derived origin=null PROPERTY FAKE_OVERRIDE name:a visibility:public modality:FINAL [fake_override,val] overridden: - public final a: .A [val] + public final a: .A FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.Base) returnType:.A [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:a visibility:public modality:FINAL [fake_override,val] overridden: @@ -175,7 +175,7 @@ FILE fqName: fileName:/Derived.kt $this: VALUE_PARAMETER name: type:.Base PROPERTY FAKE_OVERRIDE name:b visibility:public modality:FINAL [fake_override,val] overridden: - public final b: .B [val] + public final b: .B FUN FAKE_OVERRIDE name: visibility:public modality:FINAL <> ($this:.Base) returnType:.B [fake_override] correspondingProperty: PROPERTY FAKE_OVERRIDE name:b visibility:public modality:FINAL [fake_override,val] overridden: @@ -183,16 +183,16 @@ FILE fqName: fileName:/Derived.kt $this: VALUE_PARAMETER 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 [fake_override,operator] declared in .Base + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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 + public open fun hashCode (): kotlin.Int 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 + public open fun toString (): kotlin.String declared in .Base $this: VALUE_PARAMETER name: type:kotlin.Any CONSTRUCTOR visibility:public <> (a:.A, b:.B, c:.C) returnType:.Derived VALUE_PARAMETER name:a index:0 type:.A @@ -210,7 +210,7 @@ FILE fqName: fileName:/main.kt : java.lang.reflect.Constructor<.Derived> arg0: CALL 'public final fun (): java.lang.reflect.Constructor>? declared in kotlin.reflect.jvm' type=java.lang.reflect.Constructor<.Derived>? origin=GET_PROPERTY : .Derived - $receiver: CALL 'public final fun first (predicate: kotlin.Function1): T of kotlin.collections.CollectionsKt.first [inline] declared in kotlin.collections.CollectionsKt' type=kotlin.reflect.KFunction<.Derived> origin=null + $receiver: CALL 'public final fun first (predicate: kotlin.Function1): T of kotlin.collections.CollectionsKt.first declared in kotlin.collections.CollectionsKt' type=kotlin.reflect.KFunction<.Derived> origin=null : kotlin.reflect.KFunction<.Derived> $receiver: CALL 'public abstract fun (): kotlin.collections.Collection> declared in kotlin.reflect.KClass' type=kotlin.collections.Collection.Derived>> origin=GET_PROPERTY $this: CLASS_REFERENCE 'CLASS CLASS name:Derived modality:FINAL visibility:public superTypes:[.Base]' type=kotlin.reflect.KClass<.Derived> @@ -226,20 +226,20 @@ FILE fqName: fileName:/main.kt arg1: CONST Int type=kotlin.Int value=3 VAR name:derived type:@[FlexibleNullability] .Derived? [val] CALL 'public open fun newInstance (vararg p0: @[FlexibleNullability] kotlin.Any?): @[FlexibleNullability] T of java.lang.reflect.Constructor? declared in java.lang.reflect.Constructor' type=@[FlexibleNullability] .Derived? origin=null - $this: GET_VAR 'val constructor: java.lang.reflect.Constructor<.Derived> [val] declared in .box' type=java.lang.reflect.Constructor<.Derived> origin=null + $this: GET_VAR 'val constructor: java.lang.reflect.Constructor<.Derived> declared in .box' type=java.lang.reflect.Constructor<.Derived> origin=null p0: VARARG type=@[FlexibleNullability] kotlin.Array? varargElementType=@[FlexibleNullability] kotlin.Any? - CONSTRUCTOR_CALL 'public constructor (s: kotlin.String) [primary] declared in .A' type=.A origin=null + CONSTRUCTOR_CALL 'public constructor (s: kotlin.String) declared in .A' type=.A origin=null s: CONST String type=kotlin.String value="a" - CONSTRUCTOR_CALL 'public constructor (s: kotlin.String) [primary] declared in .B' type=.B origin=null + CONSTRUCTOR_CALL 'public constructor (s: kotlin.String) declared in .B' type=.B origin=null s: CONST String type=kotlin.String value="b" - CONSTRUCTOR_CALL 'public constructor (s: kotlin.String) [primary] declared in .C' type=.C origin=null + CONSTRUCTOR_CALL 'public constructor (s: kotlin.String) declared in .C' type=.C origin=null s: CONST String type=kotlin.String value="c" RETURN type=kotlin.Nothing from='public final fun box (): kotlin.String declared in ' WHEN type=kotlin.String origin=IF BRANCH - if: CALL 'public final fun not (): kotlin.Boolean [operator] declared in kotlin.Boolean' type=kotlin.Boolean origin=EXCLEQ + if: CALL 'public final fun not (): kotlin.Boolean 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_VAR 'val derived: @[FlexibleNullability] .Derived? [val] declared in .box' type=@[FlexibleNullability] .Derived? origin=null + arg0: GET_VAR 'val derived: @[FlexibleNullability] .Derived? declared in .box' type=@[FlexibleNullability] .Derived? origin=null arg1: CONST Null type=kotlin.Nothing? value=null then: CONST String type=kotlin.String value="OK" BRANCH diff --git a/plugins/fir-plugin-prototype/testData/box/generatedClassWithMembersAndNestedClasses.fir.ir.txt b/plugins/fir-plugin-prototype/testData/box/generatedClassWithMembersAndNestedClasses.fir.ir.txt index 2d45510e923..0c91c80ae82 100644 --- a/plugins/fir-plugin-prototype/testData/box/generatedClassWithMembersAndNestedClasses.fir.ir.txt +++ b/plugins/fir-plugin-prototype/testData/box/generatedClassWithMembersAndNestedClasses.fir.ir.txt @@ -5,7 +5,7 @@ FILE fqName:bar fileName:/generatedClassWithMembersAndNestedClasses.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:bar.Foo CONSTRUCTOR visibility:public <> () returnType:bar.Foo [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:Foo modality:FINAL visibility:public superTypes:[kotlin.Any]' FUN name:box visibility:public modality:FINAL <> ($this:bar.Foo) returnType:kotlin.String $this: VALUE_PARAMETER name: type:bar.Foo @@ -14,7 +14,7 @@ FILE fqName:bar fileName:/generatedClassWithMembersAndNestedClasses.kt CONST String type=kotlin.String value="OK" 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 + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -36,7 +36,7 @@ FILE fqName:bar fileName:/generatedClassWithMembersAndNestedClasses.kt RETURN type=kotlin.Nothing from='public final fun testNestedClasses (): kotlin.String declared in bar' CALL 'public final fun box (): kotlin.String declared in bar.Foo' type=kotlin.String origin=null $this: CALL 'public final fun materialize (): bar.Foo declared in foo.AllOpenGenerated.NestedFoo' type=bar.Foo origin=null - $this: GET_VAR 'val nestedFoo: foo.AllOpenGenerated.NestedFoo [val] declared in bar.testNestedClasses' type=foo.AllOpenGenerated.NestedFoo origin=null + $this: GET_VAR 'val nestedFoo: foo.AllOpenGenerated.NestedFoo declared in bar.testNestedClasses' type=foo.AllOpenGenerated.NestedFoo origin=null FUN name:box visibility:public modality:FINAL <> () returnType:kotlin.String BLOCK_BODY CALL 'public final fun testConstructor (): kotlin.Unit declared in bar' type=kotlin.Unit origin=null diff --git a/plugins/fir-plugin-prototype/testData/box/serializer.fir.ir.txt b/plugins/fir-plugin-prototype/testData/box/serializer.fir.ir.txt index 772f2cc3fc3..cd8ad192d4e 100644 --- a/plugins/fir-plugin-prototype/testData/box/serializer.fir.ir.txt +++ b/plugins/fir-plugin-prototype/testData/box/serializer.fir.ir.txt @@ -5,7 +5,7 @@ FILE fqName: fileName:/serializer.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.FirstSerializer CONSTRUCTOR visibility:private <> () returnType:.FirstSerializer [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:FirstSerializer modality:FINAL visibility:public superTypes:[kotlin.Any]' FUN name:bFunction visibility:public modality:FINAL <> ($this:.FirstSerializer) returnType:kotlin.Unit $this: VALUE_PARAMETER name: type:.FirstSerializer @@ -53,7 +53,7 @@ FILE fqName: fileName:/serializer.kt 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -70,7 +70,7 @@ FILE fqName: fileName:/serializer.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.SecondSerializer CONSTRUCTOR visibility:private <> () returnType:.SecondSerializer [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS OBJECT name:SecondSerializer modality:FINAL visibility:public superTypes:[kotlin.Any]' FUN GENERATED[org.jetbrains.kotlin.fir.plugin.generators.MembersOfSerializerGenerator.Key] name:serializeA visibility:public modality:FINAL <> ($this:.SecondSerializer, x:.A) returnType:kotlin.Unit $this: VALUE_PARAMETER name: type:.SecondSerializer @@ -90,7 +90,7 @@ FILE fqName: fileName:/serializer.kt 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -107,11 +107,11 @@ FILE fqName: fileName:/serializer.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.D CONSTRUCTOR visibility:public <> () returnType:.D [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:D modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -128,11 +128,11 @@ FILE fqName: fileName:/serializer.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.C CONSTRUCTOR visibility:public <> () returnType:.C [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:C modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -149,11 +149,11 @@ FILE fqName: fileName:/serializer.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.B CONSTRUCTOR visibility:public <> () returnType:.B [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:B modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -170,11 +170,11 @@ FILE fqName: fileName:/serializer.kt $this: VALUE_PARAMETER INSTANCE_RECEIVER name: type:.A CONSTRUCTOR visibility:public <> () returnType:.A [primary] BLOCK_BODY - DELEGATING_CONSTRUCTOR_CALL 'public constructor () [primary] declared in kotlin.Any' + DELEGATING_CONSTRUCTOR_CALL 'public constructor () declared in kotlin.Any' INSTANCE_INITIALIZER_CALL classDescriptor='CLASS CLASS name:A modality:FINAL 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 [operator] declared in kotlin.Any + public open fun equals (other: kotlin.Any?): kotlin.Boolean 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] @@ -189,30 +189,30 @@ FILE fqName: fileName:/serializer.kt BLOCK_BODY CALL 'public final fun serializeA (x: .A): kotlin.Unit declared in .FirstSerializer' type=kotlin.Unit origin=null $this: GET_OBJECT 'CLASS OBJECT name:FirstSerializer modality:FINAL visibility:public superTypes:[kotlin.Any]' type=.FirstSerializer - x: CONSTRUCTOR_CALL 'public constructor () [primary] declared in .A' type=.A origin=null + x: CONSTRUCTOR_CALL 'public constructor () declared in .A' type=.A origin=null CALL 'public final fun serializeB (x: .B): kotlin.Unit declared in .FirstSerializer' type=kotlin.Unit origin=null $this: GET_OBJECT 'CLASS OBJECT name:FirstSerializer modality:FINAL visibility:public superTypes:[kotlin.Any]' type=.FirstSerializer - x: CONSTRUCTOR_CALL 'public constructor () [primary] declared in .B' type=.B origin=null + x: CONSTRUCTOR_CALL 'public constructor () declared in .B' type=.B origin=null CALL 'public final fun serializeC (x: .C): kotlin.Unit declared in .FirstSerializer' type=kotlin.Unit origin=null $this: GET_OBJECT 'CLASS OBJECT name:FirstSerializer modality:FINAL visibility:public superTypes:[kotlin.Any]' type=.FirstSerializer - x: CONSTRUCTOR_CALL 'public constructor () [primary] declared in .C' type=.C origin=null + x: CONSTRUCTOR_CALL 'public constructor () declared in .C' type=.C origin=null CALL 'public final fun serializeD (x: .D): kotlin.Unit declared in .FirstSerializer' type=kotlin.Unit origin=null $this: GET_OBJECT 'CLASS OBJECT name:FirstSerializer modality:FINAL visibility:public superTypes:[kotlin.Any]' type=.FirstSerializer - x: CONSTRUCTOR_CALL 'public constructor () [primary] declared in .D' type=.D origin=null + x: CONSTRUCTOR_CALL 'public constructor () declared in .D' type=.D origin=null FUN name:testSecondSerializer visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY CALL 'public final fun serializeA (x: .A): kotlin.Unit declared in .SecondSerializer' type=kotlin.Unit origin=null $this: GET_OBJECT 'CLASS OBJECT name:SecondSerializer modality:FINAL visibility:public superTypes:[kotlin.Any]' type=.SecondSerializer - x: CONSTRUCTOR_CALL 'public constructor () [primary] declared in .A' type=.A origin=null + x: CONSTRUCTOR_CALL 'public constructor () declared in .A' type=.A origin=null CALL 'public final fun serializeB (x: .B): kotlin.Unit declared in .SecondSerializer' type=kotlin.Unit origin=null $this: GET_OBJECT 'CLASS OBJECT name:SecondSerializer modality:FINAL visibility:public superTypes:[kotlin.Any]' type=.SecondSerializer - x: CONSTRUCTOR_CALL 'public constructor () [primary] declared in .B' type=.B origin=null + x: CONSTRUCTOR_CALL 'public constructor () declared in .B' type=.B origin=null CALL 'public final fun serializeC (x: .C): kotlin.Unit declared in .SecondSerializer' type=kotlin.Unit origin=null $this: GET_OBJECT 'CLASS OBJECT name:SecondSerializer modality:FINAL visibility:public superTypes:[kotlin.Any]' type=.SecondSerializer - x: CONSTRUCTOR_CALL 'public constructor () [primary] declared in .C' type=.C origin=null + x: CONSTRUCTOR_CALL 'public constructor () declared in .C' type=.C origin=null CALL 'public final fun serializeD (x: .D): kotlin.Unit declared in .SecondSerializer' type=kotlin.Unit origin=null $this: GET_OBJECT 'CLASS OBJECT name:SecondSerializer modality:FINAL visibility:public superTypes:[kotlin.Any]' type=.SecondSerializer - x: CONSTRUCTOR_CALL 'public constructor () [primary] declared in .D' type=.D origin=null + x: CONSTRUCTOR_CALL 'public constructor () declared in .D' type=.D origin=null FUN name:box visibility:public modality:FINAL <> () returnType:kotlin.String BLOCK_BODY CALL 'public final fun testFirstSerializer (): kotlin.Unit declared in ' type=kotlin.Unit origin=null