diff --git a/compiler/fir/analysis-tests/testData/resolve/constantValues.fir.txt b/compiler/fir/analysis-tests/testData/resolve/constantValues.fir.txt index d4ece21144a..81bbe2a4f85 100644 --- a/compiler/fir/analysis-tests/testData/resolve/constantValues.fir.txt +++ b/compiler/fir/analysis-tests/testData/resolve/constantValues.fir.txt @@ -19,9 +19,9 @@ FILE: constantValues.kt public final val arrayNestedness: R|kotlin/Int| = R|/arrayNestedness| public get(): R|kotlin/Int| - public final fun component1(): R|ClassId| + public final operator fun component1(): R|ClassId| - public final fun component2(): R|kotlin/Int| + public final operator fun component2(): R|kotlin/Int| public final fun copy(classId: R|ClassId| = this@R|/ClassLiteralValue|.R|/ClassLiteralValue.classId|, arrayNestedness: R|kotlin/Int| = this@R|/ClassLiteralValue|.R|/ClassLiteralValue.arrayNestedness|): R|ClassLiteralValue| @@ -62,7 +62,7 @@ FILE: constantValues.kt public final val arrayDimensions: R|kotlin/Int| public get(): R|kotlin/Int| - public final fun component1(): R|ClassLiteralValue| + public final operator fun component1(): R|ClassLiteralValue| public final fun copy(value: R|ClassLiteralValue| = this@R|/KClassValue.Value.NormalClass|.R|/KClassValue.Value.NormalClass.value|): R|KClassValue.Value.NormalClass| @@ -76,7 +76,7 @@ FILE: constantValues.kt public final val type: R|KotlinType| = R|/type| public get(): R|KotlinType| - public final fun component1(): R|KotlinType| + public final operator fun component1(): R|KotlinType| public final fun copy(type: R|KotlinType| = this@R|/KClassValue.Value.LocalClass|.R|/KClassValue.Value.LocalClass.type|): R|KClassValue.Value.LocalClass| diff --git a/compiler/fir/analysis-tests/testData/resolve/copy.fir.txt b/compiler/fir/analysis-tests/testData/resolve/copy.fir.txt index a6bbbc6e633..a2fcf1d8146 100644 --- a/compiler/fir/analysis-tests/testData/resolve/copy.fir.txt +++ b/compiler/fir/analysis-tests/testData/resolve/copy.fir.txt @@ -10,9 +10,9 @@ FILE: copy.kt public final val y: R|kotlin/String| = R|/y| public get(): R|kotlin/String| - public final fun component1(): R|kotlin/Int| + public final operator fun component1(): R|kotlin/Int| - public final fun component2(): R|kotlin/String| + public final operator fun component2(): R|kotlin/String| public final fun copy(x: R|kotlin/Int| = this@R|/Some|.R|/Some.x|, y: R|kotlin/String| = this@R|/Some|.R|/Some.y|): R|Some| diff --git a/compiler/fir/analysis-tests/testData/resolve/diagnostics/incompatibleModifiers.fir.txt b/compiler/fir/analysis-tests/testData/resolve/diagnostics/incompatibleModifiers.fir.txt index 8612d5498d2..823b6488df7 100644 --- a/compiler/fir/analysis-tests/testData/resolve/diagnostics/incompatibleModifiers.fir.txt +++ b/compiler/fir/analysis-tests/testData/resolve/diagnostics/incompatibleModifiers.fir.txt @@ -51,7 +51,7 @@ FILE: incompatibleModifiers.kt public final val i: R|kotlin/Int| = R|/i| public get(): R|kotlin/Int| - public final fun component1(): R|kotlin/Int| + public final operator fun component1(): R|kotlin/Int| public final fun copy(i: R|kotlin/Int| = this@R|/H|.R|/H.i|): R|H| @@ -64,7 +64,7 @@ FILE: incompatibleModifiers.kt public final val i: R|kotlin/Int| = R|/i| public get(): R|kotlin/Int| - public final fun component1(): R|kotlin/Int| + public final operator fun component1(): R|kotlin/Int| public final fun copy(i: R|kotlin/Int| = this@R|/I|.R|/I.i|): R|I| @@ -77,7 +77,7 @@ FILE: incompatibleModifiers.kt public final val i: R|kotlin/Int| = R|/i| public get(): R|kotlin/Int| - public final fun component1(): R|kotlin/Int| + public final operator fun component1(): R|kotlin/Int| public final fun copy(i: R|kotlin/Int| = this@R|/J|.R|/J.i|): R|J| @@ -119,7 +119,7 @@ FILE: incompatibleModifiers.kt public final val i: R|kotlin/Int| = R|/i| public get(): R|kotlin/Int| - public final fun component1(): R|kotlin/Int| + public final operator fun component1(): R|kotlin/Int| public final fun copy(i: R|kotlin/Int| = this@R|/X.Y|.R|/X.Y.i|): R|X.Y| diff --git a/compiler/fir/analysis-tests/testData/resolve/extendedCheckers/RedundantCallOfConversionMethod/nullable2.fir.txt b/compiler/fir/analysis-tests/testData/resolve/extendedCheckers/RedundantCallOfConversionMethod/nullable2.fir.txt index 65ce0bd6660..2cc9689d21d 100644 --- a/compiler/fir/analysis-tests/testData/resolve/extendedCheckers/RedundantCallOfConversionMethod/nullable2.fir.txt +++ b/compiler/fir/analysis-tests/testData/resolve/extendedCheckers/RedundantCallOfConversionMethod/nullable2.fir.txt @@ -7,7 +7,7 @@ FILE: nullable2.kt public final val name: R|kotlin/String| = R|/name| public get(): R|kotlin/String| - public final fun component1(): R|kotlin/String| + public final operator fun component1(): R|kotlin/String| public final fun copy(name: R|kotlin/String| = this@R|/Foo|.R|/Foo.name|): R|Foo| diff --git a/compiler/fir/analysis-tests/testData/resolve/extendedCheckers/RedundantCallOfConversionMethod/safeString2.fir.txt b/compiler/fir/analysis-tests/testData/resolve/extendedCheckers/RedundantCallOfConversionMethod/safeString2.fir.txt index 0e76b7f9b95..0916f69024b 100644 --- a/compiler/fir/analysis-tests/testData/resolve/extendedCheckers/RedundantCallOfConversionMethod/safeString2.fir.txt +++ b/compiler/fir/analysis-tests/testData/resolve/extendedCheckers/RedundantCallOfConversionMethod/safeString2.fir.txt @@ -7,7 +7,7 @@ FILE: safeString2.kt public final val name: R|kotlin/String| = R|/name| public get(): R|kotlin/String| - public final fun component1(): R|kotlin/String| + public final operator fun component1(): R|kotlin/String| public final fun copy(name: R|kotlin/String| = this@R|/Foo|.R|/Foo.name|): R|Foo| diff --git a/compiler/fir/analysis-tests/testData/resolve/extendedCheckers/RedundantReturnUnitTypeChecker.fir.txt b/compiler/fir/analysis-tests/testData/resolve/extendedCheckers/RedundantReturnUnitTypeChecker.fir.txt index 58e4524988a..b1bd68e22fe 100644 --- a/compiler/fir/analysis-tests/testData/resolve/extendedCheckers/RedundantReturnUnitTypeChecker.fir.txt +++ b/compiler/fir/analysis-tests/testData/resolve/extendedCheckers/RedundantReturnUnitTypeChecker.fir.txt @@ -7,7 +7,7 @@ FILE: RedundantReturnUnitTypeChecker.kt public final val x: R|kotlin/Unit| = R|/x| public get(): R|kotlin/Unit| - public final fun component1(): R|kotlin/Unit| + public final operator fun component1(): R|kotlin/Unit| public final fun copy(x: R|kotlin/Unit| = this@R|/My|.R|/My.x|): R|My| diff --git a/compiler/fir/analysis-tests/testData/resolve/extendedCheckers/RedundantSingleExpressionStringTemplateChecker.fir.txt b/compiler/fir/analysis-tests/testData/resolve/extendedCheckers/RedundantSingleExpressionStringTemplateChecker.fir.txt index 9c66c0fa4b3..07ba2f8bba6 100644 --- a/compiler/fir/analysis-tests/testData/resolve/extendedCheckers/RedundantSingleExpressionStringTemplateChecker.fir.txt +++ b/compiler/fir/analysis-tests/testData/resolve/extendedCheckers/RedundantSingleExpressionStringTemplateChecker.fir.txt @@ -30,9 +30,9 @@ FILE: RedundantSingleExpressionStringTemplateChecker.kt public get(): R|kotlin/String| - public final fun component1(): R|kotlin/String| + public final operator fun component1(): R|kotlin/String| - public final fun component2(): R|ProductGroup?| + public final operator fun component2(): R|ProductGroup?| public final fun copy(short_name: R|kotlin/String| = this@R|/ProductGroup|.R|/ProductGroup.short_name|, parent: R|ProductGroup?| = this@R|/ProductGroup|.R|/ProductGroup.parent|): R|ProductGroup| diff --git a/compiler/fir/analysis-tests/testData/resolve/problems2.fir.txt b/compiler/fir/analysis-tests/testData/resolve/problems2.fir.txt index 0d4d591ad3b..87c323b2568 100644 --- a/compiler/fir/analysis-tests/testData/resolve/problems2.fir.txt +++ b/compiler/fir/analysis-tests/testData/resolve/problems2.fir.txt @@ -42,11 +42,11 @@ FILE: problems2.kt public final val s: R|kotlin/String?| = R|/s| public get(): R|kotlin/String?| - public final fun component1(): R|kotlin/Int| + public final operator fun component1(): R|kotlin/Int| - public final fun component2(): R|kotlin/Array?| + public final operator fun component2(): R|kotlin/Array?| - public final fun component3(): R|kotlin/String?| + public final operator fun component3(): R|kotlin/String?| public final fun copy(x: R|kotlin/Int| = this@R|/Some.WithPrimary|.R|/Some.WithPrimary.x|, arr: R|kotlin/Array?| = this@R|/Some.WithPrimary|.R|/Some.WithPrimary.arr|, s: R|kotlin/String?| = this@R|/Some.WithPrimary|.R|/Some.WithPrimary.s|): R|Some.WithPrimary| diff --git a/compiler/fir/analysis-tests/testData/resolve/smartcasts/lambdas/lambdaInWhenBranch.fir.txt b/compiler/fir/analysis-tests/testData/resolve/smartcasts/lambdas/lambdaInWhenBranch.fir.txt index ce5a47d0a8f..30d59e0510e 100644 --- a/compiler/fir/analysis-tests/testData/resolve/smartcasts/lambdas/lambdaInWhenBranch.fir.txt +++ b/compiler/fir/analysis-tests/testData/resolve/smartcasts/lambdas/lambdaInWhenBranch.fir.txt @@ -13,7 +13,7 @@ FILE: lambdaInWhenBranch.kt public final val t: R|kotlin/String| = R|/t| public get(): R|kotlin/String| - public final fun component1(): R|kotlin/String| + public final operator fun component1(): R|kotlin/String| public final fun copy(t: R|kotlin/String| = this@R|/SubClass1|.R|/SubClass1.t|): R|SubClass1| diff --git a/compiler/fir/analysis-tests/testData/resolveWithStdlib/components.fir.txt b/compiler/fir/analysis-tests/testData/resolveWithStdlib/components.fir.txt index beb03d83f97..d503171be06 100644 --- a/compiler/fir/analysis-tests/testData/resolveWithStdlib/components.fir.txt +++ b/compiler/fir/analysis-tests/testData/resolveWithStdlib/components.fir.txt @@ -10,9 +10,9 @@ FILE: components.kt public final val y: R|kotlin/String| = R|/y| public get(): R|kotlin/String| - public final fun component1(): R|kotlin/Int| + public final operator fun component1(): R|kotlin/Int| - public final fun component2(): R|kotlin/String| + public final operator fun component2(): R|kotlin/String| public final fun copy(x: R|kotlin/Int| = this@R|/D|.R|/D.x|, y: R|kotlin/String| = this@R|/D|.R|/D.y|): R|D| diff --git a/compiler/fir/raw-fir/psi2fir/testData/rawBuilder/expressions/destructuring.lazyBodies.txt b/compiler/fir/raw-fir/psi2fir/testData/rawBuilder/expressions/destructuring.lazyBodies.txt index be3cbea5662..3e478c47f88 100644 --- a/compiler/fir/raw-fir/psi2fir/testData/rawBuilder/expressions/destructuring.lazyBodies.txt +++ b/compiler/fir/raw-fir/psi2fir/testData/rawBuilder/expressions/destructuring.lazyBodies.txt @@ -13,11 +13,11 @@ FILE: destructuring.kt public? final? val third: String = R|/third| public? get(): String - public final fun component1(): Int + public final operator fun component1(): Int - public final fun component2(): Double + public final operator fun component2(): Double - public final fun component3(): String + public final operator fun component3(): String public final fun copy(first: Int = this@R|/Some|.R|/Some.first|, second: Double = this@R|/Some|.R|/Some.second|, third: String = this@R|/Some|.R|/Some.third|): R|Some| diff --git a/compiler/fir/raw-fir/psi2fir/testData/rawBuilder/expressions/destructuring.txt b/compiler/fir/raw-fir/psi2fir/testData/rawBuilder/expressions/destructuring.txt index e912e0574ac..ee4f8490435 100644 --- a/compiler/fir/raw-fir/psi2fir/testData/rawBuilder/expressions/destructuring.txt +++ b/compiler/fir/raw-fir/psi2fir/testData/rawBuilder/expressions/destructuring.txt @@ -13,11 +13,11 @@ FILE: destructuring.kt public? final? val third: String = R|/third| public? get(): String - public final fun component1(): Int + public final operator fun component1(): Int - public final fun component2(): Double + public final operator fun component2(): Double - public final fun component3(): String + public final operator fun component3(): String public final fun copy(first: Int = this@R|/Some|.R|/Some.first|, second: Double = this@R|/Some|.R|/Some.second|, third: String = this@R|/Some|.R|/Some.third|): R|Some| diff --git a/compiler/fir/raw-fir/psi2fir/testData/rawBuilder/expressions/for.lazyBodies.txt b/compiler/fir/raw-fir/psi2fir/testData/rawBuilder/expressions/for.lazyBodies.txt index 1d9267964c8..7cd142a462a 100644 --- a/compiler/fir/raw-fir/psi2fir/testData/rawBuilder/expressions/for.lazyBodies.txt +++ b/compiler/fir/raw-fir/psi2fir/testData/rawBuilder/expressions/for.lazyBodies.txt @@ -13,9 +13,9 @@ FILE: for.kt public? final? val y: Int = R|/y| public? get(): Int - public final fun component1(): Int + public final operator fun component1(): Int - public final fun component2(): Int + public final operator fun component2(): Int public final fun copy(x: Int = this@R|/Some|.R|/Some.x|, y: Int = this@R|/Some|.R|/Some.y|): R|Some| diff --git a/compiler/fir/raw-fir/psi2fir/testData/rawBuilder/expressions/for.txt b/compiler/fir/raw-fir/psi2fir/testData/rawBuilder/expressions/for.txt index 6ed4d975f0b..d5b38a79842 100644 --- a/compiler/fir/raw-fir/psi2fir/testData/rawBuilder/expressions/for.txt +++ b/compiler/fir/raw-fir/psi2fir/testData/rawBuilder/expressions/for.txt @@ -48,9 +48,9 @@ FILE: for.kt public? final? val y: Int = R|/y| public? get(): Int - public final fun component1(): Int + public final operator fun component1(): Int - public final fun component2(): Int + public final operator fun component2(): Int public final fun copy(x: Int = this@R|/Some|.R|/Some.x|, y: Int = this@R|/Some|.R|/Some.y|): R|Some| diff --git a/compiler/fir/raw-fir/psi2fir/testData/rawBuilder/expressions/lambda.lazyBodies.txt b/compiler/fir/raw-fir/psi2fir/testData/rawBuilder/expressions/lambda.lazyBodies.txt index 19adef109f1..7c646906766 100644 --- a/compiler/fir/raw-fir/psi2fir/testData/rawBuilder/expressions/lambda.lazyBodies.txt +++ b/compiler/fir/raw-fir/psi2fir/testData/rawBuilder/expressions/lambda.lazyBodies.txt @@ -10,9 +10,9 @@ FILE: lambda.kt public? final? val y: Int = R|/y| public? get(): Int - public final fun component1(): Int + public final operator fun component1(): Int - public final fun component2(): Int + public final operator fun component2(): Int public final fun copy(x: Int = this@R|/Tuple|.R|/Tuple.x|, y: Int = this@R|/Tuple|.R|/Tuple.y|): R|Tuple| diff --git a/compiler/fir/raw-fir/psi2fir/testData/rawBuilder/expressions/lambda.txt b/compiler/fir/raw-fir/psi2fir/testData/rawBuilder/expressions/lambda.txt index da65537ecce..9780696c942 100644 --- a/compiler/fir/raw-fir/psi2fir/testData/rawBuilder/expressions/lambda.txt +++ b/compiler/fir/raw-fir/psi2fir/testData/rawBuilder/expressions/lambda.txt @@ -10,9 +10,9 @@ FILE: lambda.kt public? final? val y: Int = R|/y| public? get(): Int - public final fun component1(): Int + public final operator fun component1(): Int - public final fun component2(): Int + public final operator fun component2(): Int public final fun copy(x: Int = this@R|/Tuple|.R|/Tuple.x|, y: Int = this@R|/Tuple|.R|/Tuple.y|): R|Tuple| diff --git a/compiler/fir/raw-fir/raw-fir.common/src/org/jetbrains/kotlin/fir/builder/BaseFirBuilder.kt b/compiler/fir/raw-fir/raw-fir.common/src/org/jetbrains/kotlin/fir/builder/BaseFirBuilder.kt index 00499bafcf2..66697d1d9ac 100644 --- a/compiler/fir/raw-fir/raw-fir.common/src/org/jetbrains/kotlin/fir/builder/BaseFirBuilder.kt +++ b/compiler/fir/raw-fir/raw-fir.common/src/org/jetbrains/kotlin/fir/builder/BaseFirBuilder.kt @@ -1089,7 +1089,9 @@ abstract class BaseFirBuilder(val baseSession: FirSession, val context: Conte returnTypeRef = firProperty.returnTypeRef receiverTypeRef = null this.name = name - status = FirDeclarationStatusImpl(Visibilities.Public, Modality.FINAL) + status = FirDeclarationStatusImpl(Visibilities.Public, Modality.FINAL).apply { + isOperator = true + } symbol = FirNamedFunctionSymbol(CallableId(packageFqName, classFqName, name)) dispatchReceiverType = currentDispatchReceiverType() // Refer to FIR backend ClassMemberGenerator for body generation. diff --git a/compiler/testData/ir/irText/classes/dataClassWithArrayMembers.fir.kt.txt b/compiler/testData/ir/irText/classes/dataClassWithArrayMembers.fir.kt.txt index 065d0ceeae6..4fc9e7c7b4f 100644 --- a/compiler/testData/ir/irText/classes/dataClassWithArrayMembers.fir.kt.txt +++ b/compiler/testData/ir/irText/classes/dataClassWithArrayMembers.fir.kt.txt @@ -41,39 +41,39 @@ data class Test1 { field = doubleArray get - fun component1(): Array { + operator fun component1(): Array { return .#stringArray } - fun component2(): CharArray { + operator fun component2(): CharArray { return .#charArray } - fun component3(): BooleanArray { + operator fun component3(): BooleanArray { return .#booleanArray } - fun component4(): ByteArray { + operator fun component4(): ByteArray { return .#byteArray } - fun component5(): ShortArray { + operator fun component5(): ShortArray { return .#shortArray } - fun component6(): IntArray { + operator fun component6(): IntArray { return .#intArray } - fun component7(): LongArray { + operator fun component7(): LongArray { return .#longArray } - fun component8(): FloatArray { + operator fun component8(): FloatArray { return .#floatArray } - fun component9(): DoubleArray { + operator fun component9(): DoubleArray { return .#doubleArray } @@ -149,7 +149,7 @@ data class Test2 { field = genericArray get - fun component1(): Array { + operator fun component1(): Array { return .#genericArray } @@ -192,7 +192,7 @@ data class Test3 { field = anyArrayN get - fun component1(): Array? { + operator fun component1(): Array? { return .#anyArrayN } @@ -226,3 +226,4 @@ data class Test3 { } } + diff --git a/compiler/testData/ir/irText/classes/dataClassWithArrayMembers.fir.txt b/compiler/testData/ir/irText/classes/dataClassWithArrayMembers.fir.txt index 29be395b658..e71a6efdfe4 100644 --- a/compiler/testData/ir/irText/classes/dataClassWithArrayMembers.fir.txt +++ b/compiler/testData/ir/irText/classes/dataClassWithArrayMembers.fir.txt @@ -113,58 +113,58 @@ FILE fqName: fileName:/dataClassWithArrayMembers.kt RETURN type=kotlin.Nothing from='public final fun (): 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.' type=.Test1 origin=null - FUN name:component1 visibility:public modality:FINAL <> ($this:.Test1) returnType:kotlin.Array + FUN 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 declared in .Test1' + RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Array [operator] 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 name:component2 visibility:public modality:FINAL <> ($this:.Test1) returnType:kotlin.CharArray + FUN 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 declared in .Test1' + RETURN type=kotlin.Nothing from='public final fun component2 (): kotlin.CharArray [operator] 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 name:component3 visibility:public modality:FINAL <> ($this:.Test1) returnType:kotlin.BooleanArray + FUN 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 declared in .Test1' + RETURN type=kotlin.Nothing from='public final fun component3 (): kotlin.BooleanArray [operator] 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 name:component4 visibility:public modality:FINAL <> ($this:.Test1) returnType:kotlin.ByteArray + FUN 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 declared in .Test1' + RETURN type=kotlin.Nothing from='public final fun component4 (): kotlin.ByteArray [operator] 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 name:component5 visibility:public modality:FINAL <> ($this:.Test1) returnType:kotlin.ShortArray + FUN 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 declared in .Test1' + RETURN type=kotlin.Nothing from='public final fun component5 (): kotlin.ShortArray [operator] 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 name:component6 visibility:public modality:FINAL <> ($this:.Test1) returnType:kotlin.IntArray + FUN 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 declared in .Test1' + RETURN type=kotlin.Nothing from='public final fun component6 (): kotlin.IntArray [operator] 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 name:component7 visibility:public modality:FINAL <> ($this:.Test1) returnType:kotlin.LongArray + FUN 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 declared in .Test1' + RETURN type=kotlin.Nothing from='public final fun component7 (): kotlin.LongArray [operator] 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 name:component8 visibility:public modality:FINAL <> ($this:.Test1) returnType:kotlin.FloatArray + FUN 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 declared in .Test1' + RETURN type=kotlin.Nothing from='public final fun component8 (): kotlin.FloatArray [operator] 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 name:component9 visibility:public modality:FINAL <> ($this:.Test1) returnType:kotlin.DoubleArray + FUN 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 declared in .Test1' + RETURN type=kotlin.Nothing from='public final fun component9 (): kotlin.DoubleArray [operator] 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 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 @@ -478,10 +478,10 @@ FILE fqName: fileName:/dataClassWithArrayMembers.kt RETURN type=kotlin.Nothing from='public final fun (): 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.' type=.Test2.Test2> origin=null - FUN name:component1 visibility:public modality:FINAL <> ($this:.Test2.Test2>) returnType:kotlin.Array.Test2> + FUN 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> declared in .Test2' + RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Array.Test2> [operator] 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 name:copy visibility:public modality:FINAL <> ($this:.Test2.Test2>, genericArray:kotlin.Array.Test2>) returnType:.Test2.Test2> @@ -569,10 +569,10 @@ FILE fqName: fileName:/dataClassWithArrayMembers.kt RETURN type=kotlin.Nothing from='public final fun (): 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.' type=.Test3 origin=null - FUN name:component1 visibility:public modality:FINAL <> ($this:.Test3) returnType:kotlin.Array? + FUN 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? declared in .Test3' + RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Array? [operator] 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 name:copy visibility:public modality:FINAL <> ($this:.Test3, anyArrayN:kotlin.Array?) returnType:.Test3 diff --git a/compiler/testData/ir/irText/classes/dataClasses.fir.kt.txt b/compiler/testData/ir/irText/classes/dataClasses.fir.kt.txt index 9203bc4657f..fbba8285987 100644 --- a/compiler/testData/ir/irText/classes/dataClasses.fir.kt.txt +++ b/compiler/testData/ir/irText/classes/dataClasses.fir.kt.txt @@ -17,15 +17,15 @@ data class Test1 { field = z get - fun component1(): Int { + operator fun component1(): Int { return .#x } - fun component2(): String { + operator fun component2(): String { return .#y } - fun component3(): Any { + operator fun component3(): Any { return .#z } @@ -77,7 +77,7 @@ data class Test2 { field = x get - fun component1(): Any? { + operator fun component1(): Any? { return .#x } @@ -135,19 +135,19 @@ data class Test3 { field = df get - fun component1(): Double { + operator fun component1(): Double { return .#d } - fun component2(): Double? { + operator fun component2(): Double? { return .#dn } - fun component3(): Float { + operator fun component3(): Float { return .#f } - fun component4(): Float? { + operator fun component4(): Float? { return .#df } diff --git a/compiler/testData/ir/irText/classes/dataClasses.fir.txt b/compiler/testData/ir/irText/classes/dataClasses.fir.txt index df172c33a01..5b85b83a7cf 100644 --- a/compiler/testData/ir/irText/classes/dataClasses.fir.txt +++ b/compiler/testData/ir/irText/classes/dataClasses.fir.txt @@ -41,22 +41,22 @@ FILE fqName: fileName:/dataClasses.kt RETURN type=kotlin.Nothing from='public final fun (): 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.' type=.Test1 origin=null - FUN name:component1 visibility:public modality:FINAL <> ($this:.Test1) returnType:kotlin.Int + FUN 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 declared in .Test1' + RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Int [operator] 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 name:component2 visibility:public modality:FINAL <> ($this:.Test1) returnType:kotlin.String + FUN 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 declared in .Test1' + RETURN type=kotlin.Nothing from='public final fun component2 (): kotlin.String [operator] 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 name:component3 visibility:public modality:FINAL <> ($this:.Test1) returnType:kotlin.Any + FUN 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 declared in .Test1' + RETURN type=kotlin.Nothing from='public final fun component3 (): kotlin.Any [operator] 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 name:copy visibility:public modality:FINAL <> ($this:.Test1, x:kotlin.Int, y:kotlin.String, z:kotlin.Any) returnType:.Test1 @@ -198,10 +198,10 @@ FILE fqName: fileName:/dataClasses.kt RETURN type=kotlin.Nothing from='public final fun (): 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.' type=.Test2 origin=null - FUN name:component1 visibility:public modality:FINAL <> ($this:.Test2) returnType:kotlin.Any? + FUN 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? declared in .Test2' + RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Any? [operator] 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 name:copy visibility:public modality:FINAL <> ($this:.Test2, x:kotlin.Any?) returnType:.Test2 @@ -332,28 +332,28 @@ FILE fqName: fileName:/dataClasses.kt RETURN type=kotlin.Nothing from='public final fun (): 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.' type=.Test3 origin=null - FUN name:component1 visibility:public modality:FINAL <> ($this:.Test3) returnType:kotlin.Double + FUN 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 declared in .Test3' + RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Double [operator] 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 name:component2 visibility:public modality:FINAL <> ($this:.Test3) returnType:kotlin.Double? + FUN 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? declared in .Test3' + RETURN type=kotlin.Nothing from='public final fun component2 (): kotlin.Double? [operator] 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 name:component3 visibility:public modality:FINAL <> ($this:.Test3) returnType:kotlin.Float + FUN 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 declared in .Test3' + RETURN type=kotlin.Nothing from='public final fun component3 (): kotlin.Float [operator] 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 name:component4 visibility:public modality:FINAL <> ($this:.Test3) returnType:kotlin.Float? + FUN 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? declared in .Test3' + RETURN type=kotlin.Nothing from='public final fun component4 (): kotlin.Float? [operator] 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 name:copy visibility:public modality:FINAL <> ($this:.Test3, d:kotlin.Double, dn:kotlin.Double?, f:kotlin.Float, df:kotlin.Float?) returnType:.Test3 diff --git a/compiler/testData/ir/irText/classes/dataClassesGeneric.fir.kt.txt b/compiler/testData/ir/irText/classes/dataClassesGeneric.fir.kt.txt index d932e4fc785..9a8e39bb9d2 100644 --- a/compiler/testData/ir/irText/classes/dataClassesGeneric.fir.kt.txt +++ b/compiler/testData/ir/irText/classes/dataClassesGeneric.fir.kt.txt @@ -9,7 +9,7 @@ data class Test1 { field = x get - fun component1(): T { + operator fun component1(): T { return .#x } @@ -55,7 +55,7 @@ data class Test2 { field = x get - fun component1(): T { + operator fun component1(): T { return .#x } @@ -98,7 +98,7 @@ data class Test3 { field = x get - fun component1(): List { + operator fun component1(): List { return .#x } @@ -141,7 +141,7 @@ data class Test4 { field = x get - fun component1(): List { + operator fun component1(): List { return .#x } diff --git a/compiler/testData/ir/irText/classes/dataClassesGeneric.fir.txt b/compiler/testData/ir/irText/classes/dataClassesGeneric.fir.txt index 53f24fef139..fa5d743a162 100644 --- a/compiler/testData/ir/irText/classes/dataClassesGeneric.fir.txt +++ b/compiler/testData/ir/irText/classes/dataClassesGeneric.fir.txt @@ -18,10 +18,10 @@ FILE fqName: fileName:/dataClassesGeneric.kt RETURN type=kotlin.Nothing from='public final fun (): 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.' type=.Test1.Test1> origin=null - FUN name:component1 visibility:public modality:FINAL <> ($this:.Test1.Test1>) returnType:T of .Test1 + FUN 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 declared in .Test1' + RETURN type=kotlin.Nothing from='public final fun component1 (): T of .Test1 [operator] 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 name:copy visibility:public modality:FINAL <> ($this:.Test1.Test1>, x:T of .Test1) returnType:.Test1.Test1> @@ -118,10 +118,10 @@ FILE fqName: fileName:/dataClassesGeneric.kt RETURN type=kotlin.Nothing from='public final fun (): 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.' type=.Test2.Test2> origin=null - FUN name:component1 visibility:public modality:FINAL <> ($this:.Test2.Test2>) returnType:T of .Test2 + FUN 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 declared in .Test2' + RETURN type=kotlin.Nothing from='public final fun component1 (): T of .Test2 [operator] 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 name:copy visibility:public modality:FINAL <> ($this:.Test2.Test2>, x:T of .Test2) returnType:.Test2.Test2> @@ -209,10 +209,10 @@ FILE fqName: fileName:/dataClassesGeneric.kt RETURN type=kotlin.Nothing from='public final fun (): 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.' type=.Test3.Test3> origin=null - FUN name:component1 visibility:public modality:FINAL <> ($this:.Test3.Test3>) returnType:kotlin.collections.List.Test3> + FUN 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> declared in .Test3' + RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.collections.List.Test3> [operator] 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 name:copy visibility:public modality:FINAL <> ($this:.Test3.Test3>, x:kotlin.collections.List.Test3>) returnType:.Test3.Test3> @@ -299,10 +299,10 @@ FILE fqName: fileName:/dataClassesGeneric.kt RETURN type=kotlin.Nothing from='public final fun (): 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.' type=.Test4 origin=null - FUN name:component1 visibility:public modality:FINAL <> ($this:.Test4) returnType:kotlin.collections.List + FUN 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 declared in .Test4' + RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.collections.List [operator] 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 name:copy visibility:public modality:FINAL <> ($this:.Test4, x:kotlin.collections.List) returnType:.Test4 diff --git a/compiler/testData/ir/irText/classes/kt31649.fir.kt.txt b/compiler/testData/ir/irText/classes/kt31649.fir.kt.txt index 0947f7f3e7e..6940b09c3f7 100644 --- a/compiler/testData/ir/irText/classes/kt31649.fir.kt.txt +++ b/compiler/testData/ir/irText/classes/kt31649.fir.kt.txt @@ -9,7 +9,7 @@ data class TestData { field = nn get - fun component1(): Nothing? { + operator fun component1(): Nothing? { return .#nn } diff --git a/compiler/testData/ir/irText/classes/kt31649.fir.txt b/compiler/testData/ir/irText/classes/kt31649.fir.txt index 30d6ffb8a4e..894dc1d62f1 100644 --- a/compiler/testData/ir/irText/classes/kt31649.fir.txt +++ b/compiler/testData/ir/irText/classes/kt31649.fir.txt @@ -17,10 +17,10 @@ FILE fqName: fileName:/kt31649.kt RETURN type=kotlin.Nothing from='public final fun (): 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.' type=.TestData origin=null - FUN name:component1 visibility:public modality:FINAL <> ($this:.TestData) returnType:kotlin.Nothing? + FUN 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? declared in .TestData' + RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Nothing? [operator] 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 name:copy visibility:public modality:FINAL <> ($this:.TestData, nn:kotlin.Nothing?) returnType:.TestData diff --git a/compiler/testData/ir/irText/classes/lambdaInDataClassDefaultParameter.fir.kt.txt b/compiler/testData/ir/irText/classes/lambdaInDataClassDefaultParameter.fir.kt.txt index 22448fd726c..275779bf357 100644 --- a/compiler/testData/ir/irText/classes/lambdaInDataClassDefaultParameter.fir.kt.txt +++ b/compiler/testData/ir/irText/classes/lambdaInDataClassDefaultParameter.fir.kt.txt @@ -12,7 +12,7 @@ data class A { field = runA get - fun component1(): @ExtensionFunctionType Function2 { + operator fun component1(): @ExtensionFunctionType Function2 { return .#runA } @@ -66,7 +66,7 @@ data class B { field = x get - fun component1(): Any { + operator fun component1(): Any { return .#x } diff --git a/compiler/testData/ir/irText/classes/lambdaInDataClassDefaultParameter.fir.txt b/compiler/testData/ir/irText/classes/lambdaInDataClassDefaultParameter.fir.txt index 41833762667..43d469be2e7 100644 --- a/compiler/testData/ir/irText/classes/lambdaInDataClassDefaultParameter.fir.txt +++ b/compiler/testData/ir/irText/classes/lambdaInDataClassDefaultParameter.fir.txt @@ -25,10 +25,10 @@ FILE fqName: fileName:/lambdaInDataClassDefaultParameter.kt RETURN type=kotlin.Nothing from='public final fun (): @[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.' type=.A origin=null - FUN name:component1 visibility:public modality:FINAL <> ($this:.A) returnType:@[ExtensionFunctionType] kotlin.Function2<.A, kotlin.String, kotlin.Unit> + FUN 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> declared in .A' + RETURN type=kotlin.Nothing from='public final fun component1 (): @[ExtensionFunctionType] kotlin.Function2<.A, kotlin.String, kotlin.Unit> [operator] 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 name:copy visibility:public modality:FINAL <> ($this:.A, runA:@[ExtensionFunctionType] kotlin.Function2<.A, kotlin.String, kotlin.Unit>) returnType:.A @@ -136,10 +136,10 @@ FILE fqName: fileName:/lambdaInDataClassDefaultParameter.kt RETURN type=kotlin.Nothing from='public final fun (): 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.' type=.B origin=null - FUN name:component1 visibility:public modality:FINAL <> ($this:.B) returnType:kotlin.Any + FUN 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 declared in .B' + RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Any [operator] 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 name:copy visibility:public modality:FINAL <> ($this:.B, x:kotlin.Any) returnType:.B diff --git a/compiler/testData/ir/irText/classes/openDataClass.fir.kt.txt b/compiler/testData/ir/irText/classes/openDataClass.fir.kt.txt index 0a475797811..9531a7e5269 100644 --- a/compiler/testData/ir/irText/classes/openDataClass.fir.kt.txt +++ b/compiler/testData/ir/irText/classes/openDataClass.fir.kt.txt @@ -14,11 +14,11 @@ open data class ValidatedProperties { field = test2 open get - fun component1(): String { + operator fun component1(): String { return .() } - fun component2(): String { + operator fun component2(): String { return .() } diff --git a/compiler/testData/ir/irText/classes/openDataClass.fir.txt b/compiler/testData/ir/irText/classes/openDataClass.fir.txt index 445e2927336..895c66ee370 100644 --- a/compiler/testData/ir/irText/classes/openDataClass.fir.txt +++ b/compiler/testData/ir/irText/classes/openDataClass.fir.txt @@ -31,16 +31,16 @@ FILE fqName: fileName:/openDataClass.kt RETURN type=kotlin.Nothing from='public open fun (): kotlin.String declared in .ValidatedProperties' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:test2 type:kotlin.String visibility:private [final]' type=kotlin.String origin=null receiver: GET_VAR ': .ValidatedProperties declared in .ValidatedProperties.' type=.ValidatedProperties origin=null - FUN name:component1 visibility:public modality:FINAL <> ($this:.ValidatedProperties) returnType:kotlin.String + FUN 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 declared in .ValidatedProperties' + RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.String [operator] 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 name:component2 visibility:public modality:FINAL <> ($this:.ValidatedProperties) returnType:kotlin.String + FUN 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 declared in .ValidatedProperties' + RETURN type=kotlin.Nothing from='public final fun component2 (): kotlin.String [operator] 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 name:copy visibility:public modality:FINAL <> ($this:.ValidatedProperties, test1:kotlin.String, test2:kotlin.String) returnType:.ValidatedProperties diff --git a/compiler/testData/ir/irText/declarations/parameters/dataClassMembers.fir.kt.txt b/compiler/testData/ir/irText/declarations/parameters/dataClassMembers.fir.kt.txt index c60bd70017d..99ac9bd8cf6 100644 --- a/compiler/testData/ir/irText/declarations/parameters/dataClassMembers.fir.kt.txt +++ b/compiler/testData/ir/irText/declarations/parameters/dataClassMembers.fir.kt.txt @@ -13,11 +13,11 @@ data class Test { field = y get - fun component1(): T { + operator fun component1(): T { return .#x } - fun component2(): String { + operator fun component2(): String { return .#y } diff --git a/compiler/testData/ir/irText/declarations/parameters/dataClassMembers.fir.txt b/compiler/testData/ir/irText/declarations/parameters/dataClassMembers.fir.txt index edd9a6f028b..b0b5bdc6aa5 100644 --- a/compiler/testData/ir/irText/declarations/parameters/dataClassMembers.fir.txt +++ b/compiler/testData/ir/irText/declarations/parameters/dataClassMembers.fir.txt @@ -32,16 +32,16 @@ FILE fqName: fileName:/dataClassMembers.kt RETURN type=kotlin.Nothing from='public final fun (): 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.' type=.Test.Test> origin=null - FUN name:component1 visibility:public modality:FINAL <> ($this:.Test.Test>) returnType:T of .Test + FUN 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 declared in .Test' + RETURN type=kotlin.Nothing from='public final fun component1 (): T of .Test [operator] 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 name:component2 visibility:public modality:FINAL <> ($this:.Test.Test>) returnType:kotlin.String + FUN 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 declared in .Test' + RETURN type=kotlin.Nothing from='public final fun component2 (): kotlin.String [operator] 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 name:copy visibility:public modality:FINAL <> ($this:.Test.Test>, x:T of .Test, y:kotlin.String) returnType:.Test.Test> diff --git a/compiler/testData/ir/irText/firProblems/MultiList.fir.kt.txt b/compiler/testData/ir/irText/firProblems/MultiList.fir.kt.txt index 7a96913bc62..c3cc6eda24c 100644 --- a/compiler/testData/ir/irText/firProblems/MultiList.fir.kt.txt +++ b/compiler/testData/ir/irText/firProblems/MultiList.fir.kt.txt @@ -9,7 +9,7 @@ data class Some { field = value get - fun component1(): T { + operator fun component1(): T { return .#value } diff --git a/compiler/testData/ir/irText/firProblems/MultiList.fir.txt b/compiler/testData/ir/irText/firProblems/MultiList.fir.txt index c682c9524ee..8d210d28fb8 100644 --- a/compiler/testData/ir/irText/firProblems/MultiList.fir.txt +++ b/compiler/testData/ir/irText/firProblems/MultiList.fir.txt @@ -18,10 +18,10 @@ FILE fqName: fileName:/MultiList.kt RETURN type=kotlin.Nothing from='public final fun (): 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.' type=.Some.Some> origin=null - FUN name:component1 visibility:public modality:FINAL <> ($this:.Some.Some>) returnType:T of .Some + FUN 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 declared in .Some' + RETURN type=kotlin.Nothing from='public final fun component1 (): T of .Some [operator] 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 name:copy visibility:public modality:FINAL <> ($this:.Some.Some>, value:T of .Some) returnType:.Some.Some> diff --git a/compiler/testData/ir/irText/firProblems/SignatureClash.fir.kt.txt b/compiler/testData/ir/irText/firProblems/SignatureClash.fir.kt.txt index cf0380f32ae..885315add8f 100644 --- a/compiler/testData/ir/irText/firProblems/SignatureClash.fir.kt.txt +++ b/compiler/testData/ir/irText/firProblems/SignatureClash.fir.kt.txt @@ -41,7 +41,7 @@ data class DataClass : Derived, Delegate { field = delegate get - fun component1(): Delegate { + operator fun component1(): Delegate { return .#delegate } diff --git a/compiler/testData/ir/irText/firProblems/SignatureClash.fir.txt b/compiler/testData/ir/irText/firProblems/SignatureClash.fir.txt index c2fbb9ed3f7..eee7eb43a0e 100644 --- a/compiler/testData/ir/irText/firProblems/SignatureClash.fir.txt +++ b/compiler/testData/ir/irText/firProblems/SignatureClash.fir.txt @@ -104,10 +104,10 @@ FILE fqName: fileName:/SignatureClash.kt RETURN type=kotlin.Nothing from='public final fun (): .Delegate declared in .DataClass' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:delegate type:.Delegate visibility:private [final]' type=.Delegate origin=null receiver: GET_VAR ': .DataClass declared in .DataClass.' type=.DataClass origin=null - FUN name:component1 visibility:public modality:FINAL <> ($this:.DataClass) returnType:.Delegate + FUN 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 declared in .DataClass' + RETURN type=kotlin.Nothing from='public final fun component1 (): .Delegate [operator] declared in .DataClass' GET_FIELD 'FIELD PROPERTY_BACKING_FIELD name:delegate type:.Delegate visibility:private [final]' type=.Delegate origin=null receiver: GET_VAR ': .DataClass declared in .DataClass.component1' type=.DataClass origin=null FUN name:copy visibility:public modality:FINAL <> ($this:.DataClass, delegate:.Delegate) returnType:.DataClass diff --git a/compiler/testData/ir/irText/lambdas/destructuringInLambda.fir.kt.txt b/compiler/testData/ir/irText/lambdas/destructuringInLambda.fir.kt.txt index 23eb3ba3ee1..0cd20cbde77 100644 --- a/compiler/testData/ir/irText/lambdas/destructuringInLambda.fir.kt.txt +++ b/compiler/testData/ir/irText/lambdas/destructuringInLambda.fir.kt.txt @@ -13,11 +13,11 @@ data class A { field = y get - fun component1(): Int { + operator fun component1(): Int { return .#x } - fun component2(): Int { + operator fun component2(): Int { return .#y } diff --git a/compiler/testData/ir/irText/lambdas/destructuringInLambda.fir.txt b/compiler/testData/ir/irText/lambdas/destructuringInLambda.fir.txt index f47ca804e57..4dfedbe9ffb 100644 --- a/compiler/testData/ir/irText/lambdas/destructuringInLambda.fir.txt +++ b/compiler/testData/ir/irText/lambdas/destructuringInLambda.fir.txt @@ -29,16 +29,16 @@ FILE fqName: fileName:/destructuringInLambda.kt RETURN type=kotlin.Nothing from='public final fun (): 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.' type=.A origin=null - FUN name:component1 visibility:public modality:FINAL <> ($this:.A) returnType:kotlin.Int + FUN 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 declared in .A' + RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Int [operator] 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 name:component2 visibility:public modality:FINAL <> ($this:.A) returnType:kotlin.Int + FUN 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 declared in .A' + RETURN type=kotlin.Nothing from='public final fun component2 (): kotlin.Int [operator] 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 name:copy visibility:public modality:FINAL <> ($this:.A, x:kotlin.Int, y:kotlin.Int) returnType:.A @@ -143,7 +143,7 @@ FILE fqName: fileName:/destructuringInLambda.kt VALUE_PARAMETER name: index:0 type:.A BLOCK_BODY VAR name:y type:kotlin.Int [val] - CALL 'public final fun component2 (): kotlin.Int declared in .A' type=kotlin.Int origin=null + CALL 'public final fun component2 (): kotlin.Int [operator] declared in .A' type=kotlin.Int origin=null $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 diff --git a/compiler/testData/ir/irText/types/nullChecks/enhancedNullabilityInForLoop.fir.kt.txt b/compiler/testData/ir/irText/types/nullChecks/enhancedNullabilityInForLoop.fir.kt.txt index d450046e42d..74cbc9be0fa 100644 --- a/compiler/testData/ir/irText/types/nullChecks/enhancedNullabilityInForLoop.fir.kt.txt +++ b/compiler/testData/ir/irText/types/nullChecks/enhancedNullabilityInForLoop.fir.kt.txt @@ -79,11 +79,11 @@ data class P { field = y get - fun component1(): Int { + operator fun component1(): Int { return .#x } - fun component2(): Int { + operator fun component2(): Int { return .#y } diff --git a/compiler/testData/ir/irText/types/nullChecks/enhancedNullabilityInForLoop.fir.txt b/compiler/testData/ir/irText/types/nullChecks/enhancedNullabilityInForLoop.fir.txt index 9cf32cd3d9e..b8b589952e9 100644 --- a/compiler/testData/ir/irText/types/nullChecks/enhancedNullabilityInForLoop.fir.txt +++ b/compiler/testData/ir/irText/types/nullChecks/enhancedNullabilityInForLoop.fir.txt @@ -29,10 +29,10 @@ FILE fqName: fileName:/enhancedNullabilityInForLoop.kt CALL 'public abstract fun next (): T of kotlin.collections.MutableIterator [fake_override,operator] declared in kotlin.collections.MutableIterator' type=.P? origin=FOR_LOOP_NEXT $this: GET_VAR 'val tmp_1: kotlin.collections.MutableIterator<.P?> [val] declared in .testForInListDestructured' type=kotlin.collections.MutableIterator<.P?> origin=null VAR name:x type:kotlin.Int [val] - CALL 'public final fun component1 (): kotlin.Int declared in .P' type=kotlin.Int origin=null + CALL 'public final fun component1 (): kotlin.Int [operator] declared in .P' type=kotlin.Int origin=null $this: GET_VAR 'val : .P? [val] declared in .testForInListDestructured' type=.P? origin=null VAR name:y type:kotlin.Int [val] - CALL 'public final fun component2 (): kotlin.Int declared in .P' type=kotlin.Int origin=null + CALL 'public final fun component2 (): kotlin.Int [operator] declared in .P' type=kotlin.Int origin=null $this: GET_VAR 'val : .P? [val] declared in .testForInListDestructured' type=.P? origin=null FUN name:testDesugaredForInList visibility:public modality:FINAL <> () returnType:kotlin.Unit BLOCK_BODY @@ -146,16 +146,16 @@ FILE fqName: fileName:/enhancedNullabilityInForLoop.kt RETURN type=kotlin.Nothing from='public final fun (): 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.' type=.P origin=null - FUN name:component1 visibility:public modality:FINAL <> ($this:.P) returnType:kotlin.Int + 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 declared in .P' + RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Int [operator] 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 name:component2 visibility:public modality:FINAL <> ($this:.P) returnType:kotlin.Int + 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 declared in .P' + RETURN type=kotlin.Nothing from='public final fun component2 (): kotlin.Int [operator] 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 name:copy visibility:public modality:FINAL <> ($this:.P, x:kotlin.Int, y:kotlin.Int) returnType:.P diff --git a/compiler/testData/ir/irText/types/typeAliasWithUnsafeVariance.fir.kt.txt b/compiler/testData/ir/irText/types/typeAliasWithUnsafeVariance.fir.kt.txt index ad11ecd704c..93b2be28f4f 100644 --- a/compiler/testData/ir/irText/types/typeAliasWithUnsafeVariance.fir.kt.txt +++ b/compiler/testData/ir/irText/types/typeAliasWithUnsafeVariance.fir.kt.txt @@ -10,7 +10,7 @@ data class Tag { field = action get - fun component1(): Function1 { + operator fun component1(): Function1 { return .#action } diff --git a/compiler/testData/ir/irText/types/typeAliasWithUnsafeVariance.fir.txt b/compiler/testData/ir/irText/types/typeAliasWithUnsafeVariance.fir.txt index 66300117be1..02643aef73c 100644 --- a/compiler/testData/ir/irText/types/typeAliasWithUnsafeVariance.fir.txt +++ b/compiler/testData/ir/irText/types/typeAliasWithUnsafeVariance.fir.txt @@ -20,10 +20,10 @@ FILE fqName: fileName:/typeAliasWithUnsafeVariance.kt RETURN type=kotlin.Nothing from='public final fun (): 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.' type=.Tag.Tag> origin=null - FUN name:component1 visibility:public modality:FINAL <> ($this:.Tag.Tag>) returnType:kotlin.Function1.Tag, kotlin.Unit> + FUN 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> declared in .Tag' + RETURN type=kotlin.Nothing from='public final fun component1 (): kotlin.Function1.Tag, kotlin.Unit> [operator] 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 name:copy visibility:public modality:FINAL <> ($this:.Tag.Tag>, action:kotlin.Function1.Tag, kotlin.Unit>) returnType:.Tag.Tag>